define("@tiledb-inc/pybabylonjs",[],(()=>(()=>{var e,t,r={64770:(e,t,r)=>{"use strict";var n=r(8966),o=r.n(n),a=r(12319);let i,l;(s=f||(f={}))[s.init=0]="init",s[s.data=1]="data",s[s.idle=2]="idle";var s,f,u=e=>{if(e)return{X:new Float32Array(e.X),Y:new Float32Array(e.Y),Z:new Float32Array(e.Z),Red:new Uint16Array(e.Red),Green:new Uint16Array(e.Green),Blue:new Uint16Array(e.Blue)}};let y="",d="",p=0,b=0,c=0,v=1,m=255,g=2e8;self.onmessage=async e=>{let t=e.data;t.type===f.init&&(y=t.namespace,d=t.groupName,i=t.arraySchema,p=t.translateX,b=t.translateY,c=t.translateZ,v=t.zScale,m=t.rgbMax,g=t.bufferSize,l=new(o())({apiKey:t.token,...t.tiledbEnv?{basePath:t.tiledbEnv}:{}}).query),t.type===f.data&&async function(e){let t=[[e.minPoint._x+p,e.maxPoint._x+p],[e.minPoint._z+c,e.maxPoint._z+c],[e.minPoint._y+b,e.maxPoint._y+b]],r={layout:a.Layout.Unordered,ranges:t,attributes:["X","Y","Z","Red","Green","Blue"],bufferSize:g,returnRawBuffers:!0};for await(let t of l.ReadQuery(y,d+"_"+e.lod,r,i))!function(e,t){let r=function(e,t,r,n,o,a){if(!a)return;let i={Position:new Float32Array(3*a.X.length),Color:new Float32Array(4*a.X.length)};for(let l=0;l<a.X.length;++l)i.Position[3*l]=a.X[l]-e,i.Position[3*l+1]=(a.Z[l]-t)*n,i.Position[3*l+2]=a.Y[l]-r,i.Color[4*l]=a.Red[l]/o,i.Color[4*l+1]=a.Green[l]/o,i.Color[4*l+2]=a.Blue[l]/o,i.Color[4*l+3]=1;return i}(p,b,c,v,m,u(t));self.postMessage({type:f.data,block:e,entries:r,name:self.name},[r?.Position.buffer,r?.Color.buffer])}(e,t);self.postMessage({type:f.idle,name:self.name,idle:!0})}(t.block)}},18291:()=>{},14447:()=>{}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,o),a.exports}return o.m=r,o.x=()=>{var e=o.O(void 0,[522],(()=>o(64770)));return o.O(e)},e=[],o.O=(t,r,n,a)=>{if(!r){var i=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],l=!0,s=0;s<r.length;s++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](r[s])))?r.splice(s--,1):(l=!1,a<i&&(i=a));if(l){e.splice(u--,1);var f=n();void 0!==f&&(t=f)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".index.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="",(()=>{var e={900:1,2:1};o.f.i=(t,r)=>{e[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunk_tiledb_inc_pybabylonjs=self.webpackChunk_tiledb_inc_pybabylonjs||[],r=t.push.bind(t);t.push=t=>{var[n,a,i]=t;for(var l in a)o.o(a,l)&&(o.m[l]=a[l]);for(i&&i(o);n.length;)e[n.pop()]=1;r(t)}})(),t=o.x,o.x=()=>o.e(522).then(t),o.x()})()));
//# sourceMappingURL=900.index.js.map