{"version":3,"file":"nativeDocumentLoader.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/libraries/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;AAE5B,KAAI,CAAC,OAAQ,OAAM,IAAI,MAAM,gFAAgF;AAC7G,KAAI,OAAO,WAAW,WAAY,QAAO;AACzC,KAAI,OAAO,WAAW,YAAY,OAAO,OAAO,YAAY,WAAY,QAAO,OAAO;AAEtF,OAAM,IAAI,MAAM,iFAAiF"}