/** * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0. * Original file: /npm/@litertjs/wasm-utils@0.2.1/dist/index.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ async function e(e){if("function"!=typeof importScripts){const o=document.createElement("script");return o.src=e.toString(),o.crossOrigin="anonymous",new Promise(((e,t)=>{o.addEventListener("load",(()=>{e()}),!1),o.addEventListener("error",(e=>{t(e)}),!1),document.body.appendChild(o)}))}importScripts(e.toString())}var o=async(o,t,r,l,n)=>{if(t&&await e(t),!self.ModuleFactory)throw new Error("ModuleFactory not set.");if(r&&(await e(r),!self.ModuleFactory))throw new Error("ModuleFactory not set.");if(self.Module&&n){const e=self.Module;e.locateFile=n.locateFile,n.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=n.mainScriptUrlOrBlob)}const i=await self.ModuleFactory(self.Module||n);return self.ModuleFactory=self.Module=void 0,new o(i,l)};export{o as createWasmLib};export default null; //# sourceMappingURL=litertjs-wasm-utils.js.map