// Decode fallback profiles locally for extrusions lacking Rhino display meshes. declare const rhino3dm:(config:unknown)=>Promise; self.onmessage=async(e:MessageEvent)=>{ try{ const url=new URL(e.data.libraryUrl);importScripts(new URL('rhino3dm.js',url).href); const rhino=await rhino3dm({locateFile:(name:string)=>new URL(name,url).href}); const doc=rhino.File3dm.fromByteArray(new Uint8Array(e.data.buffer)),out:any[]=[]; for(let i=0;i