(function(){let e=new URL(`/app/assets/pub2json-Dh9ChSvv.mjs`,``+self.location.href),t=new URL(`/app/assets/pub2json-DQ6lLw69.wasm`,``+self.location.href),n=null;function r(){return n||=(async()=>(await import(e.href)).default({locateFile:()=>t.href}))(),n}async function i(e){let t;try{t=await r()}catch(e){throw Error(`Failed to load the .pub converter module: ${e instanceof Error?e.message:String(e)}`)}let n=t._malloc(e.length);try{t.HEAPU8.set(e,n);let r=t._pub2json_convert(n,e.length);if(!r)throw Error(`The .pub converter returned no result for this file.`);try{return t.UTF8ToString(r)}finally{t._pub2json_free(r)}}finally{t._free(n)}}let a=globalThis;a.addEventListener(`message`,e=>{let{id:t,bytes:n}=e.data;i(new Uint8Array(n)).then(e=>{a.postMessage({id:t,ok:!0,json:e})}).catch(e=>{a.postMessage({id:t,ok:!1,error:e instanceof Error?e.message:String(e)})})})})();