@ifc-lite/viewer 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +32 -31
- package/CHANGELOG.md +58 -0
- package/dist/assets/{basketViewActivator-BSRgF1Hw.js → basketViewActivator-BHNb23Vw.js} +6 -6
- package/dist/assets/{bcf-3uE1MvcT.js → bcf-C0XZ2DSl.js} +1 -1
- package/dist/assets/{deflate-BLlUfw9-.js → deflate-DvvFcUtV.js} +1 -1
- package/dist/assets/{exporters-BL6UmxRa.js → exporters-CvORJOLn.js} +1345 -1434
- package/dist/assets/geometry.worker-B7X9DQQY.js +1 -0
- package/dist/assets/{geotiff-BydcIud8.js → geotiff-fSD_sVw_.js} +10 -10
- package/dist/assets/{ids-DFl74rTt.js → ids-BUOe5QQl.js} +951 -713
- package/dist/assets/idsValidation.worker-DEodXb0f.js +190468 -0
- package/dist/assets/ifc-lite_bg-CmMuB1zf.wasm +0 -0
- package/dist/assets/{index-BNTlm2lP.js → index-B6T42T86.js} +35235 -32937
- package/dist/assets/index-D0tqJL0X.css +1 -0
- package/dist/assets/{index.es-Bk4nLsyS.js → index.es-YGMensDM.js} +7 -7
- package/dist/assets/{jpeg-BvMO8-Tc.js → jpeg-0Sla88_N.js} +1 -1
- package/dist/assets/{jspdf.es.min-BZ_ed66E.js → jspdf.es.min-mnbLNj-p.js} +4 -4
- package/dist/assets/{lerc-CNnDpLpV.js → lerc-C7xUDHpL.js} +1 -1
- package/dist/assets/{lzw-DBaPrGGZ.js → lzw-CK480t0_.js} +1 -1
- package/dist/assets/{native-bridge-DFOoBvTg.js → native-bridge-sLWRanza.js} +1 -1
- package/dist/assets/{packbits-C7uyD2Bi.js → packbits-DcL4imYS.js} +1 -1
- package/dist/assets/parser.worker-BsGV6ml7.js +182 -0
- package/dist/assets/{pdf-DlqdjX9e.js → pdf-BARGfLmx.js} +8 -8
- package/dist/assets/raw-BMWh6mDy.js +1 -0
- package/dist/assets/{sandbox-0Z2NzeOJ.js → sandbox-BSiO04m8.js} +2801 -2609
- package/dist/assets/server-client-AlpWMVq9.js +741 -0
- package/dist/assets/{webimage-zN-oCabb.js → webimage-uy5DjZLk.js} +1 -1
- package/dist/assets/{xlsx-N2LbIR1G.js → xlsx-D02ho69_.js} +6 -6
- package/dist/assets/{zstd-Jk3QKIeb.js → zstd-DcR1TBwT.js} +1 -1
- package/dist/index.html +7 -7
- package/package.json +27 -32
- package/src/components/viewer/CesiumOverlay.tsx +195 -8
- package/src/components/viewer/IDSPanel.tsx +23 -7
- package/src/components/viewer/MainToolbar.tsx +31 -0
- package/src/components/viewer/SunSkyPanel.tsx +363 -0
- package/src/components/viewer/Viewport.tsx +49 -1
- package/src/components/viewer/ViewportContainer.tsx +20 -1
- package/src/components/viewer/useAnimationLoop.ts +19 -1
- package/src/disable-react-dev-perf-track.ts +38 -0
- package/src/hooks/has-entity-type.ts +33 -0
- package/src/hooks/ids/idsWorkerClient.ts +136 -0
- package/src/hooks/ingest/federationAlign.ts +1 -1
- package/src/hooks/ingest/pointCloudIngest.ts +22 -98
- package/src/hooks/ingest/viewerModelIngest.ts +8 -13
- package/src/hooks/useAlignmentLines3D.ts +5 -0
- package/src/hooks/useGridLines3D.ts +4 -0
- package/src/hooks/useIDS.ts +77 -13
- package/src/hooks/useIfcCache.ts +1 -1
- package/src/hooks/useIfcFederation.ts +1 -1
- package/src/hooks/useIfcServer.ts +1 -1
- package/src/hooks/useModelSelection.ts +1 -1
- package/src/hooks/useSolarEnvironment.ts +114 -0
- package/src/hooks/useSolarSweep.ts +66 -0
- package/src/hooks/useSymbolicAnnotations.ts +10 -0
- package/src/hooks/useViewerSelectors.ts +1 -1
- package/src/lib/geo/cesium-sun.ts +277 -0
- package/src/lib/geo/solar-direction.test.ts +70 -0
- package/src/lib/geo/solar-direction.ts +94 -0
- package/src/lib/lighting-presets.ts +128 -0
- package/src/lib/recent-files.ts +4 -24
- package/src/lib/solar-time.ts +55 -0
- package/src/main.tsx +5 -0
- package/src/store/index.ts +8 -0
- package/src/store/slices/annotationsSlice.test.ts +0 -16
- package/src/store/slices/cesiumSlice.ts +3 -3
- package/src/store/slices/dataSlice.test.ts +0 -40
- package/src/store/slices/environmentSlice.ts +101 -0
- package/src/store/slices/idsSlice.ts +6 -1
- package/src/store/slices/selectionSlice.test.ts +0 -43
- package/src/store/slices/solarSlice.ts +121 -0
- package/src/store/slices/visibilitySlice.test.ts +15 -45
- package/src/utils/loadingUtils.ts +1 -1
- package/src/workers/idsValidation.worker.ts +98 -0
- package/dist/assets/geometry.worker-DVwFYHTq.js +0 -1
- package/dist/assets/ifc-lite_bg-FPffpFK_.wasm +0 -0
- package/dist/assets/index-DpoJvkdg.css +0 -1
- package/dist/assets/parser.worker-U_PVhLNi.js +0 -182
- package/dist/assets/raw-p_2cfl6T.js +0 -1
- package/dist/assets/server-client-DUMy2mXg.js +0 -719
- package/src/components/ui/context-menu.tsx +0 -174
- package/src/store.ts +0 -80
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let r;function d(e){z===h.length&&h.push(h.length+1);const t=z;return z=h[t],h[t]=e,t}function Zt(e){if(J==1)throw new Error("out of js stack");return h[--J]=e,J}function Kt(e){e<132||(h[e]=z,z=e)}function nt(e,t){return e=e>>>0,qt().subarray(e/4,e/4+t)}function It(e,t){return e=e>>>0,vt().subarray(e/4,e/4+t)}function Qt(e,t){return e=e>>>0,Jt().subarray(e/8,e/8+t)}function $t(e,t){return e=e>>>0,A().subarray(e/1,e/1+t)}let C=null;function Jt(){return(C===null||C.byteLength===0)&&(C=new BigUint64Array(r.memory.buffer)),C}let I=null;function o(){return(I===null||I.buffer.detached===!0||I.buffer.detached===void 0&&I.buffer!==r.memory.buffer)&&(I=new DataView(r.memory.buffer)),I}let k=null;function qt(){return(k===null||k.byteLength===0)&&(k=new Float32Array(r.memory.buffer)),k}function f(e,t){return e=e>>>0,te(e,t)}let R=null;function vt(){return(R===null||R.byteLength===0)&&(R=new Uint32Array(r.memory.buffer)),R}let M=null;function A(){return(M===null||M.byteLength===0)&&(M=new Uint8Array(r.memory.buffer)),M}function b(e){return h[e]}function ot(e,t){try{return e.apply(this,t)}catch(n){r.__wbindgen_export3(d(n))}}let h=new Array(128).fill(void 0);h.push(void 0,null,!0,!1);let z=h.length;function et(e){return e==null}function x(e,t){const n=t(e.length*4,4)>>>0;return vt().set(e,n/4),g=e.length,n}function j(e,t){const n=t(e.length*1,1)>>>0;return A().set(e,n/1),g=e.length,n}function m(e,t,n){if(n===void 0){const a=E.encode(e),p=t(a.length,1)>>>0;return A().subarray(p,p+a.length).set(a),g=a.length,p}let i=e.length,s=t(i,1)>>>0;const _=A();let c=0;for(;c<i;c++){const a=e.charCodeAt(c);if(a>127)break;_[s+c]=a}if(c!==i){c!==0&&(e=e.slice(c)),s=n(s,i,i=c+e.length*3,1)>>>0;const a=A().subarray(s+c,s+i),p=E.encodeInto(e,a);c+=p.written,s=n(s,i,c,1)>>>0}return g=c,s}let J=128;function l(e){const t=b(e);return Kt(e),t}let q=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();const Nt=2146435072;let rt=0;function te(e,t){return rt+=t,rt>=Nt&&(q=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),q.decode(),rt=t),q.decode(A().subarray(e,e+t))}const E=new TextEncoder;"encodeInto"in E||(E.encodeInto=function(e,t){const n=E.encode(e);return t.set(n),{read:e.length,written:n.length}});let g=0;typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>r.__wbg_clashrunresult_free(e>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>r.__wbg_clashsession_free(e>>>0,1));const at=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_gridaxiscollection_free(e>>>0,1)),ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_gridaxisjs_free(e>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ifcapi_free(e>>>0,1)),gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_meshcollection_free(e>>>0,1)),pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_meshdatajs_free(e>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>r.__wbg_meshoutlinejs_free(e>>>0,1));const dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_profilecollection_free(e>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_profileentryjs_free(e>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>r.__wbg_spaceplatehandle_free(e>>>0,1));const bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_symboliccircle_free(e>>>0,1)),ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_symbolicfillarea_free(e>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_symbolicpolyline_free(e>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_symbolicrepresentationcollection_free(e>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_symbolictext_free(e>>>0,1));class B{static __wrap(t){t=t>>>0;const n=Object.create(B.prototype);return n.__wbg_ptr=t,at.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,at.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gridaxiscollection_free(t,0)}get length(){return r.gridaxiscollection_length(this.__wbg_ptr)>>>0}getAxis(t){const n=r.gridaxiscollection_getAxis(this.__wbg_ptr,t);return n===0?void 0:O.__wrap(n)}get isEmpty(){return r.gridaxiscollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class O{static __wrap(t){t=t>>>0;const n=Object.create(O.prototype);return n.__wbg_ptr=t,ct.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ct.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gridaxisjs_free(t,0)}get end(){const t=r.gridaxisjs_end(this.__wbg_ptr);return l(t)}get tag(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gridaxisjs_tag(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get start(){const t=r.gridaxisjs_start(this.__wbg_ptr);return l(t)}get axisId(){return r.gridaxisjs_axisId(this.__wbg_ptr)>>>0}get gridId(){return r.gridaxisjs_gridId(this.__wbg_ptr)>>>0}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class tt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}buildPrePassOnce(t){const n=j(t,r.__wbindgen_export),i=g,s=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,n,i);return l(s)}processGeometryBatch(t,n,i,s,_,c,a,p,w,Q,$,v){const S=j(t,r.__wbindgen_export),F=g,Et=x(n,r.__wbindgen_export),Bt=g,Ot=x(p,r.__wbindgen_export),Pt=g,Wt=x(w,r.__wbindgen_export),Lt=g,Ut=x(Q,r.__wbindgen_export),Ht=g,Gt=x($,r.__wbindgen_export),Yt=g,Dt=j(v,r.__wbindgen_export),Vt=g,Xt=r.ifcapi_processGeometryBatch(this.__wbg_ptr,S,F,Et,Bt,i,s,_,c,a,Ot,Pt,Wt,Lt,Ut,Ht,Gt,Yt,Dt,Vt);return P.__wrap(Xt)}buildPrePassStreaming(t,n,i){try{const a=r.__wbindgen_add_to_stack_pointer(-16),p=j(t,r.__wbindgen_export),w=g;r.ifcapi_buildPrePassStreaming(a,this.__wbg_ptr,p,w,Zt(n),i);var s=o().getInt32(a+0,!0),_=o().getInt32(a+4,!0),c=o().getInt32(a+8,!0);if(c)throw l(_);return l(s)}finally{r.__wbindgen_add_to_stack_pointer(16),h[J++]=void 0}}parseGridAxes(t){const n=m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g,s=r.ifcapi_parseGridAxes(this.__wbg_ptr,n,i);return B.__wrap(s)}parseGridLines(t){const n=m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g,s=r.ifcapi_parseGridLines(this.__wbg_ptr,n,i);return l(s)}parseAlignmentLines(t){const n=m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g,s=r.ifcapi_parseAlignmentLines(this.__wbg_ptr,n,i);return l(s)}extractProfiles(t,n){const i=m(t,r.__wbindgen_export,r.__wbindgen_export2),s=g,_=r.ifcapi_extractProfiles(this.__wbg_ptr,i,s,n);return L.__wrap(_)}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return l(t)}setEntityIndex(t,n,i){const s=x(t,r.__wbindgen_export),_=g,c=x(n,r.__wbindgen_export),a=g,p=x(i,r.__wbindgen_export),w=g;r.ifcapi_setEntityIndex(this.__wbg_ptr,s,_,c,a,p,w)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}setTessellationQuality(t){try{const c=r.__wbindgen_add_to_stack_pointer(-16);var n=et(t)?0:m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g;r.ifcapi_setTessellationQuality(c,this.__wbg_ptr,n,i);var s=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0);if(_)throw l(s)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setComputeGeometryHashes(t){r.ifcapi_setComputeGeometryHashes(this.__wbg_ptr,!et(t),et(t)?0:t)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,lt.register(this,this.__wbg_ptr,this),this}get version(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}scanEntitiesFast(t){const n=m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g,s=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,n,i);return l(s)}scanEntitiesFastBytes(t){const n=j(t,r.__wbindgen_export),i=g,s=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,n,i);return l(s)}scanGeometryEntitiesFast(t){const n=m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g,s=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,n,i);return l(s)}parseSymbolicRepresentations(t){const n=m(t,r.__wbindgen_export,r.__wbindgen_export2),i=g,s=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,n,i);return D.__wrap(s)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class P{static __wrap(t){t=t>>>0;const n=Object.create(P.prototype);return n.__wbg_ptr=t,gt.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.meshcollection_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(i,this.__wbg_ptr);var t=o().getInt32(i+0,!0),n=o().getFloat64(i+8,!0);return t===0?void 0:n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get geometryHashIds(){const t=r.meshcollection_geometryHashIds(this.__wbg_ptr);return l(t)}get geometryHashCount(){return r.meshcollection_geometryHashCount(this.__wbg_ptr)>>>0}get geometryHashValues(){const t=r.meshcollection_geometryHashValues(this.__wbg_ptr);return l(t)}get(t){const n=r.meshcollection_get(this.__wbg_ptr,t);return n===0?void 0:W.__wrap(n)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class W{static __wrap(t){t=t>>>0;const n=Object.create(W.prototype);return n.__wbg_ptr=t,pt.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get hasTexture(){return r.meshdatajs_hasTexture(this.__wbg_ptr)!==0}get textureRgba(){const t=r.meshdatajs_textureRgba(this.__wbg_ptr);return l(t)}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_shadingColor(i,this.__wbg_ptr);var t=o().getInt32(i+0,!0),n=o().getInt32(i+4,!0);let s;return t!==0&&(s=nt(t,n).slice(),r.__wbindgen_export4(t,n*4,4)),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}get textureWidth(){return r.meshdatajs_textureWidth(this.__wbg_ptr)>>>0}get geometryClass(){return r.meshdatajs_geometryClass(this.__wbg_ptr)}get textureHeight(){return r.meshdatajs_textureHeight(this.__wbg_ptr)>>>0}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get textureRepeatS(){return r.meshdatajs_textureRepeatS(this.__wbg_ptr)!==0}get textureRepeatT(){return r.meshdatajs_textureRepeatT(this.__wbg_ptr)!==0}get uvs(){const t=r.meshdatajs_uvs(this.__wbg_ptr);return l(t)}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(s,this.__wbg_ptr);var t=o().getInt32(s+0,!0),n=o().getInt32(s+4,!0),i=nt(t,n).slice();return r.__wbindgen_export4(t,n*4,4),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return l(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return l(t)}get ifcType(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class L{static __wrap(t){t=t>>>0;const n=Object.create(L.prototype);return n.__wbg_ptr=t,dt.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const n=r.profilecollection_get(this.__wbg_ptr,t);return n===0?void 0:U.__wrap(n)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class U{static __wrap(t){t=t>>>0;const n=Object.create(U.prototype);return n.__wbg_ptr=t,ft.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return l(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return l(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return l(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return l(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return l(t)}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class H{static __wrap(t){t=t>>>0;const n=Object.create(H.prototype);return n.__wbg_ptr=t,bt.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.symboliccircle_expressId(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get worldY(){return r.symboliccircle_worldY(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class G{static __wrap(t){t=t>>>0;const n=Object.create(G.prototype);return n.__wbg_ptr=t,ut.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicfillarea_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCount(){return r.symbolicfillarea_holeCount(this.__wbg_ptr)>>>0}get hatchAngle(){return r.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get pointCount(){return r.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get hasHatching(){return r.symbolicfillarea_hasHatching(this.__wbg_ptr)!==0}get hatchSpacing(){return r.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get holesOffsets(){const t=r.symbolicfillarea_holesOffsets(this.__wbg_ptr);return l(t)}get repIdentifier(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicfillarea_repIdentifier(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get hatchLineWidth(){return r.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get hatchAngleSecondary(){return r.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get fillA(){return r.symbolicfillarea_fillA(this.__wbg_ptr)}get fillB(){return r.symbolicfillarea_fillB(this.__wbg_ptr)}get fillG(){return r.symbolicfillarea_fillG(this.__wbg_ptr)}get fillR(){return r.symbolicfillarea_fillR(this.__wbg_ptr)}get points(){const t=r.symbolicfillarea_points(this.__wbg_ptr);return l(t)}get worldY(){return r.symbolicfillarea_worldY(this.__wbg_ptr)}get ifcType(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicfillarea_ifcType(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class Y{static __wrap(t){t=t>>>0;const n=Object.create(Y.prototype);return n.__wbg_ptr=t,wt.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicfillarea_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return l(t)}get worldY(){return r.symboliccircle_worldY(this.__wbg_ptr)}get ifcType(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class D{static __wrap(t){t=t>>>0;const n=Object.create(D.prototype);return n.__wbg_ptr=t,yt.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}get fillCount(){return r.symbolicrepresentationcollection_fillCount(this.__wbg_ptr)>>>0}getCircle(t){const n=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return n===0?void 0:H.__wrap(n)}get textCount(){return r.symbolicrepresentationcollection_textCount(this.__wbg_ptr)>>>0}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const n=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return n===0?void 0:Y.__wrap(n)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=o().getInt32(s+0,!0),n=o().getInt32(s+4,!0),i=It(t,n).slice();return r.__wbindgen_export4(t,n*4,4),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}getFill(t){const n=r.symbolicrepresentationcollection_getFill(this.__wbg_ptr,t);return n===0?void 0:G.__wrap(n)}getText(t){const n=r.symbolicrepresentationcollection_getText(this.__wbg_ptr,t);return n===0?void 0:V.__wrap(n)}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class V{static __wrap(t){t=t>>>0;const n=Object.create(V.prototype);return n.__wbg_ptr=t,ht.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolictext_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get repIdentifier(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolictext_repIdentifier(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get x(){return r.symbolicfillarea_fillR(this.__wbg_ptr)}get y(){return r.symbolicfillarea_fillG(this.__wbg_ptr)}get dirX(){return r.symbolicfillarea_fillB(this.__wbg_ptr)}get dirY(){return r.symbolicfillarea_fillA(this.__wbg_ptr)}get height(){return r.symbolicfillarea_hatchSpacing(this.__wbg_ptr)}get colorA(){return r.symbolictext_colorA(this.__wbg_ptr)}get colorB(){return r.symbolicfillarea_worldY(this.__wbg_ptr)}get colorG(){return r.symbolicfillarea_hatchLineWidth(this.__wbg_ptr)}get colorR(){return r.symbolicfillarea_hatchAngleSecondary(this.__wbg_ptr)}get content(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolictext_content(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get worldY(){return r.symbolicfillarea_hatchAngle(this.__wbg_ptr)}get ifcType(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolictext_ifcType(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get alignment(){let t,n;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolictext_alignment(_,this.__wbg_ptr);var i=o().getInt32(_+0,!0),s=o().getInt32(_+4,!0);return t=i,n=s,f(i,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export4(t,n,1)}}get targetPx(){return r.symbolictext_targetPx(this.__wbg_ptr)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);const ee=new Set(["basic","cors","default"]);async function re(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(i){if(e.ok&&ee.has(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function At(){const e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(t,n){const i=Error(f(t,n));return d(i)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){const i=String(b(n)),s=m(i,r.__wbindgen_export,r.__wbindgen_export2),_=g;o().setInt32(t+4,_,!0),o().setInt32(t+0,s,!0)},e.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=r.memory;return d(t)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,n){throw new Error(f(t,n))},e.wbg.__wbg_call_3020136f7a2d6e44=function(){return ot(function(t,n,i){const s=b(t).call(b(n),b(i));return d(s)},arguments)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){let i,s;try{i=t,s=n,console.error(f(t,n))}finally{r.__wbindgen_export4(i,s,1)}},e.wbg.__wbg_info_ce6bcc489c22f6f0=function(t){console.info(b(t))},e.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return d(t)},e.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return d(t)},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return d(t)},e.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,n){const i=new Float32Array(nt(t,n));return d(i)},e.wbg.__wbg_new_from_slice_883d10a76ca46292=function(t,n){const i=new BigUint64Array(Qt(t,n));return d(i)},e.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,n){const i=new Uint32Array(It(t,n));return d(i)},e.wbg.__wbg_new_from_slice_f9c22b9153b26992=function(t,n){const i=new Uint8Array($t(t,n));return d(i)},e.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const n=new Uint32Array(t>>>0);return d(n)},e.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const n=new Float64Array(t>>>0);return d(n)},e.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const n=new Uint8Array(t>>>0);return d(n)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(t,n,i){b(t)[l(n)]=l(i)},e.wbg.__wbg_set_781438a03c0c3c81=function(){return ot(function(t,n,i){return Reflect.set(b(t),b(n),b(i))},arguments)},e.wbg.__wbg_set_7df433eea03a5c14=function(t,n,i){b(t)[n>>>0]=l(i)},e.wbg.__wbg_set_index_021489b2916af13e=function(t,n,i){b(t)[n>>>0]=i},e.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,n,i){b(t)[n>>>0]=i},e.wbg.__wbg_set_index_42abe35f117e614e=function(t,n,i){b(t)[n>>>0]=i>>>0},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,n){const i=b(n).stack,s=m(i,r.__wbindgen_export,r.__wbindgen_export2),_=g;o().setInt32(t+4,_,!0),o().setInt32(t+0,s,!0)},e.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(b(t))},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,n){const i=f(t,n);return d(i)},e.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const n=BigInt.asUintN(64,t);return d(n)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return d(t)},e.wbg.__wbindgen_object_clone_ref=function(t){const n=b(t);return d(n)},e.wbg.__wbindgen_object_drop_ref=function(t){l(t)},e}function St(e,t){return r=e.exports,Ft.__wbindgen_wasm_module=t,C=null,I=null,k=null,R=null,M=null,r.__wbindgen_start(),r}function ne(e){if(r!==void 0)return r;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=At();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));const n=new WebAssembly.Instance(e,t);return St(n,e)}async function Ft(e){if(r!==void 0)return r;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("/assets/ifc-lite_bg-CmMuB1zf.wasm",import.meta.url));const t=At();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:i}=await re(await e,t);return St(n,i)}let u=null,jt;async function T(){return u||(await Ft(jt),u=new tt,X=!1,it(),Z=!1,st(),K=!1,_t(),u)}let Ct=!1,X=!1;function it(){if(!u||X)return;const e=u;typeof e.setMergeLayers=="function"&&e.setMergeLayers(Ct),X=!0}let kt=null,Z=!1;function st(){if(!u||Z)return;const e=u;typeof e.setComputeGeometryHashes=="function"&&e.setComputeGeometryHashes(kt),Z=!0}let Rt=null,K=!1;function _t(){if(!u||K)return;const e=u;typeof e.setTessellationQuality=="function"&&e.setTessellationQuality(Rt),K=!0}function Mt(e){return new Uint8Array(e)}function Tt(e){const t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t}let y=null;const mt=1e6;function ie(e){return{sharedBuffer:e.sharedBuffer,localBytes:Mt(e.sharedBuffer),sabFallbackTaken:!1,unitScale:e.unitScale,rtcX:e.rtcX,rtcY:e.rtcY,rtcZ:e.rtcZ,needsShift:e.needsShift,voidKeys:e.voidKeys,voidCounts:e.voidCounts,voidValues:e.voidValues,styleIds:e.styleIds,styleColors:e.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function zt(e){if(e.pendingMeshes.length===0)return;const t=e.pendingMeshes,n=e.pendingTransfers;e.pendingMeshes=[],e.pendingTransfers=[],e.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},n)}function se(e,t){try{const n=_e(t);for(let i=0;i<t.length;i++){const s=t.get(i);if(s)try{const _=new Float32Array(s.positions),c=new Float32Array(s.normals),a=new Uint32Array(s.indices),p=s.color,w=s.shadingColor,Q=w&&w.length===4?[w[0],w[1],w[2],w[3]]:void 0,$=n.get(s.expressId),v={expressId:s.expressId,ifcType:s.ifcType,positions:_,normals:c,indices:a,color:[p[0],p[1],p[2],p[3]],...Q?{shadingColor:Q}:{},geometryClass:s.geometryClass??0};if(e.pendingTransfers.push(_.buffer,c.buffer,a.buffer),e.cumulativeMeshBytes+=_.byteLength+c.byteLength+a.byteLength,s.hasTexture){const S=new Float32Array(s.uvs),F=new Uint8Array(s.textureRgba);v.uvs=S,v.texture={rgba:F,width:s.textureWidth,height:s.textureHeight,repeatS:s.textureRepeatS,repeatT:s.textureRepeatT},e.pendingTransfers.push(S.buffer,F.buffer),e.cumulativeMeshBytes+=S.byteLength+F.byteLength}$!==void 0&&(v.geometryHash=$),e.pendingMeshes.push(v)}finally{s.free()}}}finally{t.free()}}function _e(e){const t=new Map,n=e;if((n.geometryHashCount??0)===0)return t;const s=n.geometryHashIds,_=n.geometryHashValues;if(!s||!_)return t;const c=Math.min(s.length,_.length);for(let a=0;a<c;a++)t.set(s[a],_[a]);return t}async function N(e,t){const n=Math.floor(t.length/3);if(n!==0)try{const s=(await T()).processGeometryBatch(e.localBytes,t,e.unitScale,e.rtcX,e.rtcY,e.rtcZ,e.needsShift,e.voidKeys,e.voidCounts,e.voidValues,e.styleIds,e.styleColors);se(e,s)}catch(i){const s=i.message;if(!e.sabFallbackTaken&&e.localBytes.buffer instanceof SharedArrayBuffer){e.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),e.localBytes=Tt(e.sharedBuffer),await N(e,t);return}if(n===1){console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),u=null;return}console.warn(`[Worker] Batch of ${n} entities failed (${s}), splitting…`),u=null;const _=Math.floor(n/2)*3;await N(e,t.slice(0,_)),await N(e,t.slice(_))}}async function oe(e,t){const n=Math.floor(t.length/3);for(let i=0;i<n;i+=mt){const s=i*3,_=Math.min(s+mt*3,t.length);await N(e,t.subarray(s,_)),zt(e)}}function ae(e){zt(e);let t=0;try{t=u?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",meshBytes:e.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage({type:"complete",totalMeshes:e.totalMeshesEmitted})}let xt=Promise.resolve();self.onmessage=e=>{xt=xt.then(()=>ce(e)).catch(t=>{self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})})};async function ce(e){try{if(e.data.type==="prepass-streaming"){const t=await T();self.postMessage({type:"prepass-progress",phase:"parsing"});const n=e.data.sharedBuffer,i=e.data.chunkSize??5e4;let s=Mt(n),_=!1;const c=a=>{self.postMessage({type:"prepass-stream",event:a})};try{t.buildPrePassStreaming(s,c,i)}catch(a){const p=a instanceof Error?a.message:String(a);if(!_)_=!0,console.warn(`[Worker] Streaming prepass with SAB view failed (${p}), retrying with copy`),s=Tt(n),t.buildPrePassStreaming(s,c,i);else throw a}return}if(e.data.type==="init"){e.data.wasmUrl&&(jt=e.data.wasmUrl),e.data.wasmModule?(ne({module_or_path:e.data.wasmModule}),u=new tt,X=!1,it(),Z=!1,st(),K=!1,_t()):await T(),self.postMessage({type:"ready"});return}if(e.data.type==="stream-start"){await T(),y=ie({sharedBuffer:e.data.sharedBuffer,unitScale:e.data.unitScale,rtcX:e.data.rtcX,rtcY:e.data.rtcY,rtcZ:e.data.rtcZ,needsShift:e.data.needsShift,voidKeys:e.data.voidKeys,voidCounts:e.data.voidCounts,voidValues:e.data.voidValues,styleIds:e.data.styleIds,styleColors:e.data.styleColors});return}if(e.data.type==="stream-chunk"){if(!y)throw new Error("stream-chunk received before stream-start");await oe(y,e.data.jobsFlat);return}if(e.data.type==="set-styles"){if(!y)return;y.styleIds=e.data.styleIds,y.styleColors=e.data.styleColors,y.voidKeys=e.data.voidKeys,y.voidCounts=e.data.voidCounts,y.voidValues=e.data.voidValues;return}if(e.data.type==="set-entity-index"){(await T()).setEntityIndex(e.data.ids,e.data.starts,e.data.lengths);return}if(e.data.type==="set-merge-layers"){Ct=e.data.enabled===!0,X=!1,it();return}if(e.data.type==="set-compute-geometry-hashes"){const t=e.data.tolerance;kt=t!=null&&t>0?t:null,Z=!1,st();return}if(e.data.type==="set-tessellation-quality"){Rt=e.data.level??null,K=!1,_t();return}if(e.data.type==="stream-end"){if(!y)throw new Error("stream-end received before stream-start");ae(y),y=null;return}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-
|
|
2
|
-
import { _ as H, __tla as __tla_0 } from "./sandbox-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-BMWh6mDy.js","assets/sandbox-BSiO04m8.js","assets/lens-DMnqMXpz.js","assets/__vite-browser-external-B1O5LaIO.js","assets/lzw-CK480t0_.js","assets/jpeg-0Sla88_N.js","assets/deflate-DvvFcUtV.js","assets/pako.esm-n3Pgozwg.js","assets/packbits-DcL4imYS.js","assets/lerc-C7xUDHpL.js","assets/zip-DFgP-l20.js","assets/zstd-DcR1TBwT.js","assets/webimage-uy5DjZLk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as H, __tla as __tla_0 } from "./sandbox-BSiO04m8.js";
|
|
3
3
|
import P from "./__vite-browser-external-B1O5LaIO.js";
|
|
4
4
|
let Se, gI, II, Ye;
|
|
5
5
|
let __tla = Promise.all([
|
|
@@ -953,12 +953,12 @@ let __tla = Promise.all([
|
|
|
953
953
|
void 0,
|
|
954
954
|
1
|
|
955
955
|
],
|
|
956
|
-
importFn: ()=>H(()=>import("./raw-
|
|
956
|
+
importFn: ()=>H(()=>import("./raw-BMWh6mDy.js"), __vite__mapDeps([0,1,2,3])).then((I)=>I.default),
|
|
957
957
|
preferWorker: !1
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
960
|
cases: 5,
|
|
961
|
-
importFn: ()=>H(()=>import("./lzw-
|
|
961
|
+
importFn: ()=>H(()=>import("./lzw-CK480t0_.js"), __vite__mapDeps([4,1,2,3])).then((I)=>I.default)
|
|
962
962
|
},
|
|
963
963
|
{
|
|
964
964
|
cases: 6,
|
|
@@ -968,7 +968,7 @@ let __tla = Promise.all([
|
|
|
968
968
|
},
|
|
969
969
|
{
|
|
970
970
|
cases: 7,
|
|
971
|
-
importFn: ()=>H(()=>import("./jpeg-
|
|
971
|
+
importFn: ()=>H(()=>import("./jpeg-0Sla88_N.js"), __vite__mapDeps([5,1,2,3])).then((I)=>I.default),
|
|
972
972
|
decoderParameterFn: async (I)=>({
|
|
973
973
|
...await rA(I),
|
|
974
974
|
JPEGTables: await I.loadValue("JPEGTables")
|
|
@@ -979,15 +979,15 @@ let __tla = Promise.all([
|
|
|
979
979
|
8,
|
|
980
980
|
32946
|
|
981
981
|
],
|
|
982
|
-
importFn: ()=>H(()=>import("./deflate-
|
|
982
|
+
importFn: ()=>H(()=>import("./deflate-DvvFcUtV.js"), __vite__mapDeps([6,7,1,2,3])).then((I)=>I.default)
|
|
983
983
|
},
|
|
984
984
|
{
|
|
985
985
|
cases: 32773,
|
|
986
|
-
importFn: ()=>H(()=>import("./packbits-
|
|
986
|
+
importFn: ()=>H(()=>import("./packbits-DcL4imYS.js"), __vite__mapDeps([8,1,2,3])).then((I)=>I.default)
|
|
987
987
|
},
|
|
988
988
|
{
|
|
989
989
|
cases: 34887,
|
|
990
|
-
importFn: ()=>H(()=>import("./lerc-
|
|
990
|
+
importFn: ()=>H(()=>import("./lerc-C7xUDHpL.js"), __vite__mapDeps([9,7,10,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default),
|
|
991
991
|
decoderParameterFn: async (I)=>({
|
|
992
992
|
...await rA(I),
|
|
993
993
|
LercParameters: await I.loadValue("LercParameters")
|
|
@@ -995,11 +995,11 @@ let __tla = Promise.all([
|
|
|
995
995
|
},
|
|
996
996
|
{
|
|
997
997
|
cases: 5e4,
|
|
998
|
-
importFn: ()=>H(()=>import("./zstd-
|
|
998
|
+
importFn: ()=>H(()=>import("./zstd-DcR1TBwT.js"), __vite__mapDeps([11,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default)
|
|
999
999
|
},
|
|
1000
1000
|
{
|
|
1001
1001
|
cases: 50001,
|
|
1002
|
-
importFn: ()=>H(()=>import("./webimage-
|
|
1002
|
+
importFn: ()=>H(()=>import("./webimage-uy5DjZLk.js"), __vite__mapDeps([12,1,2,3])).then((I)=>I.default),
|
|
1003
1003
|
decoderParameterFn: async (I)=>({
|
|
1004
1004
|
...await rA(I),
|
|
1005
1005
|
samplesPerPixel: Number(await I.loadValue("SamplesPerPixel")) || 4
|