{"version":3,"file":"nativeDocumentLoader.mjs","names":[],"sources":["../../../../src/modules/vc/jsonld/nativeDocumentLoader.ts"],"sourcesContent":["import type { DocumentLoader } from './jsonld.js'\n\nexport async function getNativeDocumentLoader(): Promise<() => DocumentLoader> {\n  // @ts-expect-error package doesn't have types\n  const loader = await import('@digitalcredentials/jsonld/lib/documentLoaders/node.js')\n\n  if (!loader) throw new Error('Could not load node document loader. Module did not contain a loader function')\n  if (typeof loader === 'function') return loader\n  if (typeof loader === 'object' && typeof loader.default === 'function') return loader.default\n\n  throw new Error('Could not load node document loader. Module did not contain a loader function.')\n}\n"],"mappings":";AAEA,eAAsB,0BAAyD;CAE7E,MAAM,SAAS,MAAM,OAAO;CAE5B,IAAI,CAAC,QAAQ,MAAM,IAAI,MAAM,+EAA+E;CAC5G,IAAI,OAAO,WAAW,YAAY,OAAO;CACzC,IAAI,OAAO,WAAW,YAAY,OAAO,OAAO,YAAY,YAAY,OAAO,OAAO;CAEtF,MAAM,IAAI,MAAM,gFAAgF;AAClG"}