@navaramap/three 0.0.8 → 0.1.1
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/LICENSE +1 -1
- package/README.md +20 -8
- package/dist/assets/fontWorker-C5cHhkWQ.js +2 -0
- package/dist/assets/fontWorker-C5cHhkWQ.js.map +1 -0
- package/dist/assets/{index-DaejBdUz.js → index-VfUncKuS.js} +2 -2
- package/dist/assets/index-VfUncKuS.js.map +1 -0
- package/dist/assets/{navara_wasm_font_worker_bg-CSmoDs_Q.wasm → navara_wasm_font_worker_bg-CKqHBoCR.wasm} +0 -0
- package/dist/assets/{navara_wasm_worker_bg-C1dUd_Nk.wasm → navara_wasm_worker_bg-CT26EH41.wasm} +0 -0
- package/dist/index.d.ts +298 -54
- package/dist/index.js +1569 -1396
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +90 -69
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +12 -12
- package/src/core/BaseDesc.ts +25 -1
- package/src/core/MeshDesc.test.ts +6 -8
- package/src/core/MeshDesc.ts +4 -6
- package/src/evaluations/FeatureEvaluator.ts +17 -10
- package/src/event/feature.ts +15 -2
- package/src/event/features/billboard.test.ts +62 -0
- package/src/event/features/billboard.ts +4 -2
- package/src/index.ts +266 -98
- package/src/material/enhancer/model/modelBaseEnhancer/shader.ts +2 -2
- package/src/material/enhancer/polygon/polygonBaseEnhancer/shader.ts +2 -2
- package/src/material/macro/tileShader.ts +12 -2
- package/src/mesh/polyline.ts +32 -4
- package/src/mesh/sdfText/batchedSdfText.test.ts +65 -0
- package/src/mesh/sdfText/batchedSdfText.ts +121 -43
- package/src/mesh/sprite/instancedSprite.ts +173 -65
- package/src/pick/pickHelper.test.ts +389 -4
- package/src/pick/pickHelper.ts +212 -37
- package/src/plugins/AttributionPlugin/index.ts +1 -1
- package/src/renderOrder.ts +10 -0
- package/src/terrain/sampleTerrainMostDetailed.test.ts +6 -6
- package/src/terrain/sampleTerrainMostDetailed.ts +7 -5
- package/src/type/index.ts +22 -1
- package/dist/assets/fontWorker-CkLGtrXf.js +0 -2
- package/dist/assets/fontWorker-CkLGtrXf.js.map +0 -1
- package/dist/assets/index-DaejBdUz.js.map +0 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
`,r+=" spawnfile: `"+o.spawnfile+`\`
|
|
9
9
|
`,r+=" stdout: `"+o.stdout+`\`
|
|
10
10
|
`,r+=" stderr: `"+o.stderr+`\`
|
|
11
|
-
`,i(new O(r))}),this.processing=Object.create(null),this.tracking=Object.create(null),this.terminating=!1,this.terminated=!1,this.cleaning=!1,this.terminationHandler=null,this.lastId=0}E.prototype.methods=function(){return this.exec(`methods`)},E.prototype.exec=function(e,t,r,i){r||=n.defer();var a=++this.lastId;this.processing[a]={id:a,resolver:r,options:i};var o={message:{id:a,method:e,params:t},transfer:i&&i.transfer};this.terminated?r.reject(new O(`Worker is terminated`)):this.worker.ready?this.worker.send(o.message,o.transfer):this.requestQueue.push(o);var s=this;return r.promise.catch(function(e){if(e instanceof n.CancellationError||e instanceof n.TimeoutError)return s.tracking[a]={id:a,resolver:n.defer(),options:i,error:e},delete s.processing[a],s.tracking[a].resolver.promise=s.tracking[a].resolver.promise.catch(function(e){if(delete s.tracking[a],e instanceof D)throw e.error;return s.terminateAndNotify(!0).then(function(){throw e},function(e){throw e})}),s.worker.send({id:a,method:l}),s.tracking[a].timeoutId=setTimeout(function(){s.tracking[a].resolver.reject(e)},s.workerTerminateTimeout),s.tracking[a].resolver.promise;throw e})},E.prototype.busy=function(){return this.cleaning||Object.keys(this.processing).length>0||Object.keys(this.tracking).length>0},E.prototype.terminate=function(e,t){var n=this;if(e){for(var r in this.processing)this.processing[r]!==void 0&&this.processing[r].resolver.reject(Error(`Worker terminated`));this.processing=Object.create(null)}for(var i of Object.values(n.tracking))clearTimeout(i.timeoutId),i.resolver.reject(Error(`Worker Terminating`));if(n.tracking=Object.create(null),typeof t==`function`&&(this.terminationHandler=t),this.busy())this.terminating=!0;else{var a=function(e){if(n.terminated=!0,n.cleaning=!1,n.worker!=null&&n.worker.removeAllListeners&&n.worker.removeAllListeners(`message`),n.worker=null,n.terminating=!1,n.terminationHandler)n.terminationHandler(e,n);else if(e)throw e};if(this.worker){if(typeof this.worker.kill==`function`){if(this.worker.killed){a(Error(`worker already killed!`));return}var o=setTimeout(function(){n.worker&&n.worker.kill()},this.workerTerminateTimeout);this.worker.once(`exit`,function(){clearTimeout(o),n.worker&&(n.worker.killed=!0),a()}),this.worker.ready?this.worker.send(c):this.requestQueue.push({message:c}),this.cleaning=!0;return}if(typeof this.worker.terminate==`function`)this.worker.terminate(),this.worker.killed=!0;else throw Error(`Failed to terminate worker`)}a()}},E.prototype.terminateAndNotify=function(e,t){var r=n.defer();return t&&r.promise.timeout(t),this.terminate(e,function(e,t){e?r.reject(e):r.resolve(t)}),r.promise};function D(e){this.error=e,this.stack=Error().stack}var O=class extends Error{constructor(e,t){super(e||`worker terminated`),this.cause=t}};t.exports=E,t.exports._tryRequireWorkerThreads=_,t.exports._setupProcessWorker=S,t.exports._setupBrowserWorker=b,t.exports._setupWorkerThreadWorker=x,t.exports.ensureWorkerThreads=u,t.exports.TerminateError=O})),_=o(((e,t)=>{function n(){this.tasks=[]}n.prototype.push=function(e){this.tasks.push(e)},n.prototype.pop=function(){return this.tasks.shift()},n.prototype.size=function(){return this.tasks.length},n.prototype.contains=function(e){return this.tasks.includes(e)},n.prototype.clear=function(){this.tasks.length=0};function r(){this.tasks=[]}r.prototype.push=function(e){this.tasks.push(e)},r.prototype.pop=function(){return this.tasks.pop()},r.prototype.size=function(){return this.tasks.length},r.prototype.contains=function(e){return this.tasks.includes(e)},r.prototype.clear=function(){this.tasks.length=0},t.exports={FIFOQueue:n,LIFOQueue:r}})),v=o(((e,t)=>{t.exports=n;function n(){this.ports=Object.create(null),this.length=0}n.prototype.nextAvailableStartingAt=function(e){for(;this.ports[e]===!0;)e++;if(e>=65535)throw Error(`WorkerPool debug port limit reached: `+e+`>= 65535`);return this.ports[e]=!0,this.length++,e},n.prototype.releasePort=function(e){delete this.ports[e],this.length--}})),y=o(((e,t)=>{var{Promise:n}=p(),r=g(),i=f(),{FIFOQueue:a,LIFOQueue:o}=_(),s=new(v());function c(e,t){typeof e==`string`?this.script=e||null:(this.script=null,t=e),this.workers=[],this.taskQueue=this._createQueue(t&&t.queueStrategy||`fifo`),t||={},this.forkArgs=Object.freeze(t.forkArgs||[]),this.forkOpts=Object.freeze(t.forkOpts||{}),this.workerOpts=Object.freeze(t.workerOpts||{}),this.workerThreadOpts=Object.freeze(t.workerThreadOpts||{}),this.debugPortStart=t.debugPortStart||43210,this.nodeWorker=t.nodeWorker,this.workerType=t.workerType||t.nodeWorker||`auto`,this.maxQueueSize=t.maxQueueSize||1/0,this.workerTerminateTimeout=t.workerTerminateTimeout||1e3,this.onCreateWorker=t.onCreateWorker||(()=>null),this.onTerminateWorker=t.onTerminateWorker||(()=>null),this.emitStdStreams=t.emitStdStreams||!1,t&&`maxWorkers`in t?(l(t.maxWorkers),this.maxWorkers=t.maxWorkers):this.maxWorkers=Math.max((i.cpus||4)-1,1),t&&`minWorkers`in t&&(t.minWorkers===`max`?this.minWorkers=this.maxWorkers:(u(t.minWorkers),this.minWorkers=t.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),this.workerType===`thread`&&r.ensureWorkerThreads()}c.prototype.exec=function(e,t,r){if(t&&!Array.isArray(t))throw TypeError(`Array expected as argument "params"`);if(typeof e==`string`){var i=n.defer();if(this.taskQueue.size()>=this.maxQueueSize)throw Error(`Max queue size of `+this.maxQueueSize+` reached`);var a={method:e,params:t,resolver:i,timeout:null,options:r};this.taskQueue.push(a);var o=i.promise.timeout,s=this.taskQueue;return i.promise.timeout=function(e){return s.contains(a)?(a.timeout=e,i.promise):o.call(i.promise,e)},this._next(),i.promise}if(typeof e==`function`)return this.exec(`run`,[String(e),t],r);throw TypeError(`Function or string expected as argument "method"`)},c.prototype.proxy=function(){if(arguments.length>0)throw Error(`No arguments expected`);var e=this;return this.exec(`methods`).then(function(t){var n={};return t.forEach(function(t){n[t]=function(){return e.exec(t,Array.prototype.slice.call(arguments))}}),n})},c.prototype._next=function(){if(this.taskQueue.size()>0){var e=this._getWorker();if(e){var t=this,n=this.taskQueue.pop();if(n.resolver.promise.pending){var r=e.exec(n.method,n.params,n.resolver,n.options).then(t._boundNext).catch(function(){if(e.terminated)return t._removeWorker(e)}).then(function(){t._next()});typeof n.timeout==`number`&&r.timeout(n.timeout)}else t._next()}}},c.prototype._getWorker=function(){for(var e=this.workers,t=0;t<e.length;t++){var n=e[t];if(n.busy()===!1)return n}return e.length<this.maxWorkers?(n=this._createWorkerHandler(),e.push(n),n):null},c.prototype._removeWorker=function(e){var t=this;return s.releasePort(e.debugPort),this._removeWorkerFromList(e),this._ensureMinWorkers(),new n(function(n,r){e.terminate(!1,function(i){t.onTerminateWorker({forkArgs:e.forkArgs,forkOpts:e.forkOpts,workerThreadOpts:e.workerThreadOpts,script:e.script}),i?r(i):n(e)})})},c.prototype._removeWorkerFromList=function(e){var t=this.workers.indexOf(e);t!==-1&&this.workers.splice(t,1)},c.prototype.terminate=function(e,t){for(var r=this,i=this.taskQueue;i.size()>0;){var a=i.pop();if(a)a.resolver.reject(Error(`Pool terminated`));else break}i.clear();var o=function(e){s.releasePort(e.debugPort),this._removeWorkerFromList(e)}.bind(this),c=[];return this.workers.slice().forEach(function(n){var i=n.terminateAndNotify(e,t).then(o).always(function(){r.onTerminateWorker({forkArgs:n.forkArgs,forkOpts:n.forkOpts,workerThreadOpts:n.workerThreadOpts,script:n.script})});c.push(i)}),n.all(c)},c.prototype.stats=function(){var e=this.workers.length,t=this.workers.filter(function(e){return e.busy()}).length;return{totalWorkers:e,busyWorkers:t,idleWorkers:e-t,pendingTasks:this.taskQueue.size(),activeTasks:t}},c.prototype._ensureMinWorkers=function(){if(this.minWorkers)for(var e=this.workers.length;e<this.minWorkers;e++)this.workers.push(this._createWorkerHandler())},c.prototype._createWorkerHandler=function(){let e=this.onCreateWorker({forkArgs:this.forkArgs,forkOpts:this.forkOpts,workerOpts:this.workerOpts,workerThreadOpts:this.workerThreadOpts,script:this.script})||{};return new r(e.script||this.script,{forkArgs:e.forkArgs||this.forkArgs,forkOpts:e.forkOpts||this.forkOpts,workerOpts:e.workerOpts||this.workerOpts,workerThreadOpts:e.workerThreadOpts||this.workerThreadOpts,debugPort:s.nextAvailableStartingAt(this.debugPortStart),workerType:this.workerType,workerTerminateTimeout:this.workerTerminateTimeout,emitStdStreams:this.emitStdStreams})},c.prototype._createQueue=function(e){if(typeof e==`string`)switch(e){case`fifo`:return new a;case`lifo`:return new o;default:throw Error(`Unknown queue strategy: `+e)}if(!e)throw Error(`Queue strategy cannot be null or undefined`);for(var t=[`push`,`pop`,`size`,`contains`,`clear`],n=0;n<t.length;n++){var r=t[n];if(typeof e[r]!=`function`)throw Error(`Queue strategy must implement method: `+r)}return e};function l(e){if(!d(e)||!m(e)||e<1)throw TypeError(`Option maxWorkers must be an integer number >= 1`)}function u(e){if(!d(e)||!m(e)||e<0)throw TypeError(`Option minWorkers must be an integer number >= 0`)}function d(e){return typeof e==`number`}function m(e){return Math.round(e)==e}t.exports=c})),b=o(((e,t)=>{function n(e,t){this.message=e,this.transfer=t}t.exports=n})),x=o((e=>{var t=b(),n=p().Promise,r=`__workerpool-terminate__`,i=`__workerpool-cleanup__`,a=1e3,o={exit:function(){}},s={addAbortListener:function(e){o.abortListeners.push(e)},emit:o.emit};if(typeof self<`u`&&typeof postMessage==`function`&&typeof addEventListener==`function`)o.on=function(e,t){addEventListener(e,function(e){t(e.data)})},o.send=function(e,t){t?postMessage(e,t):postMessage(e)};else if(typeof process<`u`){var c;try{c=d()}catch(e){if(!(typeof e==`object`&&e&&e.code===`MODULE_NOT_FOUND`))throw e}if(c&&c.parentPort!==null){var l=c.parentPort;o.send=l.postMessage.bind(l),o.on=l.on.bind(l),o.exit=process.exit.bind(process)}else o.on=process.on.bind(process),o.send=function(e){process.send(e)},o.on(`disconnect`,function(){process.exit(1)}),o.exit=process.exit.bind(process)}else throw Error(`Script must be executed as a worker`);function u(e){return e&&e.toJSON?JSON.parse(JSON.stringify(e)):JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}function f(e){return e&&typeof e.then==`function`&&typeof e.catch==`function`}o.methods={},o.methods.run=function(e,t){var n=Function(`return (`+e+`).apply(this, arguments);`);return n.worker=s,n.apply(n,t)},o.methods.methods=function(){return Object.keys(o.methods)},o.terminationHandler=void 0,o.abortListenerTimeout=a,o.abortListeners=[],o.terminateAndExit=function(e){var t=function(){o.exit(e)};if(!o.terminationHandler)return t();var r=o.terminationHandler(e);return f(r)?(r.then(t,t),r):(t(),new n(function(e,t){t(Error(`Worker terminating`))}))},o.cleanup=function(e){if(!o.abortListeners.length)return o.send({id:e,method:i,error:u(Error(`Worker terminating`))}),new n(function(e){e()});var t=function(){o.exit()},r=function(){o.abortListeners.length&&(o.abortListeners=[])};let a=o.abortListeners.map(e=>e()),s,c=new n((e,t)=>{s=setTimeout(function(){t(Error(`Timeout occurred waiting for abort handler, killing worker`))},o.abortListenerTimeout)}),l=n.all(a).then(function(){clearTimeout(s),r()},function(){clearTimeout(s),t()});return new n(function(e,t){l.then(e,t),c.then(e,t)}).then(function(){o.send({id:e,method:i,error:null})},function(t){o.send({id:e,method:i,error:t?u(t):null})})};var m=null;o.on(`message`,function(e){if(e===r)return o.terminateAndExit(0);if(e.method===i)return o.cleanup(e.id);try{var n=o.methods[e.method];if(n){m=e.id;var a=n.apply(n,e.params);f(a)?a.then(function(n){n instanceof t?o.send({id:e.id,result:n.message,error:null},n.transfer):o.send({id:e.id,result:n,error:null}),m=null}).catch(function(t){o.send({id:e.id,result:null,error:u(t)}),m=null}):(a instanceof t?o.send({id:e.id,result:a.message,error:null},a.transfer):o.send({id:e.id,result:a,error:null}),m=null)}else throw Error(`Unknown method "`+e.method+`"`)}catch(t){o.send({id:e.id,result:null,error:u(t)})}}),o.register=function(e,t){if(e)for(var n in e)e.hasOwnProperty(n)&&(o.methods[n]=e[n],o.methods[n].worker=s);t&&(o.terminationHandler=t.onTerminate,o.abortListenerTimeout=t.abortListenerTimeout||a),o.send(`ready`)},o.emit=function(e){if(m){if(e instanceof t){o.send({id:m,isEvent:!0,payload:e.message},e.transfer);return}o.send({id:m,isEvent:!0,payload:e})}},e!==void 0&&(e.add=o.register,e.emit=o.emit)})),S=c(o((e=>{let{platform:t,isMainThread:n,cpus:r}=f(),{TerminateError:i}=g();function a(e,t){return new(y())(e,t)}e.pool=a;function o(e,t){x().add(e,t)}e.worker=o;let{Promise:s}=p();e.Transfer=b()}))(),1);let C=e=>S.pool(e,{maxWorkers:1,minWorkers:0,workerTerminateTimeout:3e4,workerOpts:{type:void 0}});var w=class{url;maxWorkerHeapBytes;slots;idleSweepTimer;terminated=!1;constructor(e,t,n){u(t>0,`maxWorkers must be a positive number.`),this.url=e,this.maxWorkerHeapBytes=n?.maxWorkerHeapBytes??268435456,this.slots=Array.from({length:t},()=>({pool:C(e),tasksSinceSpawn:0,inflight:0,draining:!1,probing:!1,lastHeapBytes:void 0}))}exec(e,t,n){let r=this.pickSlot();r.inflight++;try{return r.pool.exec(e,t,n).then(e=>(this.onSettled(r),e)).catch(e=>{throw this.onSettled(r),e})}catch(e){throw this.onSettled(r),e}}warmUp(){let[e,...t]=this.slots;return this.warmSlot(e).then(()=>{for(let e of t)this.warmSlot(e).catch(()=>void 0)},e=>{if(t.length===0)throw e;return Promise.any(t.map(e=>this.warmSlot(e))).then(()=>void 0)})}canAcceptTasks(){return this.slots.some(e=>!e.draining)}stats(){let e={totalWorkers:0,busyWorkers:0,idleWorkers:0,pendingTasks:0,activeTasks:0,tasksSinceSpawn:0};for(let t of this.slots){let n=t.pool.stats();e.totalWorkers+=n.totalWorkers,e.busyWorkers+=n.busyWorkers,e.idleWorkers+=n.idleWorkers,e.pendingTasks+=n.pendingTasks,e.activeTasks+=n.activeTasks,e.tasksSinceSpawn+=t.tasksSinceSpawn}return e}heapStats(){let e=this.slots.map(e=>e.lastHeapBytes);return{perSlot:e,totalBytes:e.reduce((e,t)=>e+(t??0),0),maxWorkerHeapBytes:this.maxWorkerHeapBytes}}probeHeap(){if(!this.terminated)for(let e of this.slots)e.draining||this.probeSlot(e)}terminate(){this.idleSweepTimer!==void 0&&(clearTimeout(this.idleSweepTimer),this.idleSweepTimer=void 0),this.terminated=!0;for(let e of this.slots)e.pool.terminate()}pickSlot(){let e=this.slots.filter(e=>!e.draining);return(e.length>0?e:this.slots).reduce((e,t)=>t.inflight<e.inflight?t:e)}onSettled(e){e.inflight--,!this.terminated&&(e.tasksSinceSpawn++,e.tasksSinceSpawn>=128&&(e.draining=!0),e.draining&&e.inflight===0?this.recycleSlot(e):e.draining||this.probeSlot(e),this.armIdleSweep())}recycleSlot(e){e.pool.terminate(),e.pool=C(this.url),e.tasksSinceSpawn=0,e.draining=!1,e.lastHeapBytes=void 0,this.warmSlot(e).catch(()=>void 0)}warmSlot(e){e.inflight++;let t=()=>{e.inflight--,!this.terminated&&e.draining&&e.inflight===0&&this.recycleSlot(e)};return new Promise((n,r)=>{try{e.pool.exec(`warmUp`).then(()=>{t(),n()}).catch(e=>{t(),r(e)})}catch(e){t(),r(e)}})}probeSlot(e){if(e.probing)return;e.probing=!0,e.inflight++;let t=t=>{e.probing=!1,e.inflight--,!this.terminated&&(t&&(e.draining=!0),e.draining&&e.inflight===0&&this.recycleSlot(e))};try{e.pool.exec(`getWasmMemoryUsage`).then(n=>{typeof n==`number`&&(e.lastHeapBytes=n),t(typeof n==`number`&&n>=this.maxWorkerHeapBytes)}).catch(()=>{t(!0)})}catch{t(!0)}}armIdleSweep(){this.idleSweepTimer!==void 0&&clearTimeout(this.idleSweepTimer),this.idleSweepTimer=setTimeout(()=>{this.idleSweepTimer=void 0;for(let e of this.slots)e.tasksSinceSpawn>0&&e.inflight===0&&this.recycleSlot(e)},5e3)}};function T(e){return e!=null}var E=class{x;y;z;constructor(e){this.x=e.x,this.y=e.y,this.z=e.z}},D=class{vertices;uvs;indices;heights;max_height;min_height;rtc_translation;normals;skirt_vertices;skirt_uvs;skirt_indices;skirt_normals;watermask;constructor(e){this.vertices=e.transferVertices(),this.uvs=e.transferUvs(),this.indices=e.transferIndices(),this.heights=e.transferHeights(),this.max_height=e.max_height,this.min_height=e.min_height,this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0,e.hasNormals()&&(this.normals=e.transferNormals()),e.hasSkirt()&&(this.skirt_vertices=e.transferSkirtVertices(),this.skirt_uvs=e.transferSkirtUvs(),this.skirt_indices=e.transferSkirtIndices(),this.skirt_normals=e.transferSkirtNormals()),e.hasWatermask()&&(this.watermask=e.transferWatermask())}transferVertices(){throw Error()}transferUvs(){throw Error()}transferIndices(){throw Error()}transferHeights(){throw Error()}transferNormals(){throw Error()}transferSkirtVertices(){throw Error()}transferSkirtUvs(){throw Error()}transferSkirtIndices(){throw Error()}transferSkirtNormals(){throw Error()}transferWatermask(){throw Error()}hasSkirt(){return this.skirt_vertices!==void 0&&this.skirt_uvs!==void 0&&this.skirt_indices!==void 0}hasNormals(){return this.normals!==void 0}hasWatermask(){return this.watermask!==void 0}},O=class{east;north;south;west;constructor(e){this.east=e.east,this.north=e.north,this.south=e.south,this.west=e.west}},ee=class{extent;position_3d_high;position_3d_high_size;position_3d_low;position_3d_low_size;position;position_size;normal;normal_size;scale_normal_and_cap;scale_normal_and_cap_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;rtc_translation;outline_position;outline_position_size;outline_position_3d_high;outline_position_3d_high_size;outline_position_3d_low;outline_position_3d_low_size;outline_scale_normal_and_cap;outline_scale_normal_and_cap_size;outline_skip_indices;outline_batch_index;outline_batch_index_size;constructor(e){let t=e.extent;this.extent=t?new O(t):void 0,this.position_3d_high=e.position_3d_high()?.slice(),this.position_3d_high_size=e.position_3d_high_size(),this.position_3d_low=e.position_3d_low()?.slice(),this.position_3d_low_size=e.position_3d_low_size(),this.position=e.position()?.slice(),this.position_size=e.position_size(),this.normal=e.normal()?.slice(),this.normal_size=e.normal_size(),this.scale_normal_and_cap=e.scale_normal_and_cap()?.slice(),this.scale_normal_and_cap_size=e.scale_normal_and_cap_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice(),this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0;let n=e.outline();n&&(this.outline_position=n.position()?.slice(),this.outline_position_size=n.position_size(),this.outline_position_3d_high=n.position_3d_high()?.slice(),this.outline_position_3d_high_size=n.position_3d_high_size(),this.outline_position_3d_low=n.position_3d_low()?.slice(),this.outline_position_3d_low_size=n.position_3d_low_size(),this.outline_scale_normal_and_cap=n.scale_normal_and_cap()?.slice(),this.outline_scale_normal_and_cap_size=n.scale_normal_and_cap_size(),this.outline_skip_indices=n.skip_indices()?.slice(),this.outline_batch_index=n.batch_index()?.slice(),this.outline_batch_index_size=n.batch_index_size(),n.free())}},k=class{extent;position;position_size;position_high;position_high_size;position_low;position_low_size;start;start_size;start_high;start_high_size;start_low;start_low_size;forward_offset;forward_offset_size;end_high;end_high_size;end_low;end_low_size;start_normals;start_normals_size;end_normal_and_texture_coordinate_normalization_x;end_normal_and_texture_coordinate_normalization_x_size;right_normal_and_texture_coordinate_normalization_y;right_normal_and_texture_coordinate_normalization_y_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;constructor(e){let t=e.extent;this.extent=t?new O(t):void 0,this.position=e.position().slice(),this.position_size=e.position_size(),this.position_high=e.position_high()?.slice(),this.position_high_size=e.position_high_size(),this.position_low=e.position_low()?.slice(),this.position_low_size=e.position_low_size(),this.start=e.start()?.slice(),this.start_size=e.start_size(),this.start_high=e.start_high()?.slice(),this.start_high_size=e.start_high_size(),this.start_low=e.start_low()?.slice(),this.start_low_size=e.start_low_size(),this.forward_offset=e.forward_offset()?.slice(),this.forward_offset_size=e.forward_offset_size(),this.end_high=e.end_high()?.slice(),this.end_high_size=e.end_high_size(),this.end_low=e.end_low()?.slice(),this.end_low_size=e.end_low_size(),this.start_normals=e.start_normals()?.slice(),this.start_normals_size=e.start_normals_size(),this.end_normal_and_texture_coordinate_normalization_x=e.end_normal_and_texture_coordinate_normalization_x()?.slice(),this.end_normal_and_texture_coordinate_normalization_x_size=e.end_normal_and_texture_coordinate_normalization_x_size(),this.right_normal_and_texture_coordinate_normalization_y=e.right_normal_and_texture_coordinate_normalization_y().slice(),this.right_normal_and_texture_coordinate_normalization_y_size=e.right_normal_and_texture_coordinate_normalization_y_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice()}},te={value:()=>{}};function ne(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new re(n)}function re(e){this._=e}function ie(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}re.prototype=ne.prototype={constructor:re,on:function(e,t){var n=this._,r=ie(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=ae(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=oe(n[i],e.name,t);else if(t==null)for(i in n)n[i]=oe(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function ae(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function oe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=te,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var se={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ce(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),se.hasOwnProperty(t)?{space:se[t],local:e}:e}function le(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function ue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function de(e){var t=ce(e);return(t.local?ue:le)(t)}function fe(){}function pe(e){return e==null?fe:function(){return this.querySelector(e)}}function me(e){typeof e!=`function`&&(e=pe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new nn(r,this._parents)}function he(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ge(){return[]}function _e(e){return e==null?ge:function(){return this.querySelectorAll(e)}}function ve(e){return function(){return he(e.apply(this,arguments))}}function ye(e){e=typeof e==`function`?ve(e):_e(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new nn(r,i)}function be(e){return function(){return this.matches(e)}}function xe(e){return function(t){return t.matches(e)}}var Se=Array.prototype.find;function Ce(e){return function(){return Se.call(this.children,e)}}function we(){return this.firstElementChild}function Te(e){return this.select(e==null?we:Ce(typeof e==`function`?e:xe(e)))}var Ee=Array.prototype.filter;function De(){return Array.from(this.children)}function Oe(e){return function(){return Ee.call(this.children,e)}}function ke(e){return this.selectAll(e==null?De:Oe(typeof e==`function`?e:xe(e)))}function Ae(e){typeof e!=`function`&&(e=be(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new nn(r,this._parents)}function je(e){return Array(e.length)}function Me(){return new nn(this._enter||this._groups.map(je),this._parents)}function Ne(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ne.prototype={constructor:Ne,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pe(e){return function(){return e}}function Fe(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Ne(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Ie(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Ne(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Le(e){return e.__data__}function Re(e,t){if(!arguments.length)return Array.from(this,Le);var n=t?Ie:Fe,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Pe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ze(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new nn(o,r),o._enter=s,o._exit=c,o}function ze(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Be(){return new nn(this._exit||this._groups.map(je),this._parents)}function Ve(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function He(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new nn(s,this._parents)}function Ue(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function We(e){e||=Ge;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new nn(i,this._parents).order()}function Ge(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ke(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function qe(){return Array.from(this)}function Je(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Ye(){let e=0;for(let t of this)++e;return e}function Xe(){return!this.node()}function Ze(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Qe(e){return function(){this.removeAttribute(e)}}function $e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function et(e,t){return function(){this.setAttribute(e,t)}}function tt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function it(e,t){var n=ce(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?$e:Qe:typeof t==`function`?n.local?rt:nt:n.local?tt:et)(n,t))}function at(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ot(e){return function(){this.style.removeProperty(e)}}function st(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ct(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lt(e,t,n){return arguments.length>1?this.each((t==null?ot:typeof t==`function`?ct:st)(e,t,n??``)):ut(this.node(),e)}function ut(e,t){return e.style.getPropertyValue(t)||at(e).getComputedStyle(e,null).getPropertyValue(t)}function dt(e){return function(){delete this[e]}}function ft(e,t){return function(){this[e]=t}}function pt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mt(e,t){return arguments.length>1?this.each((t==null?dt:typeof t==`function`?pt:ft)(e,t)):this.node()[e]}function ht(e){return e.trim().split(/^|\s+/)}function gt(e){return e.classList||new _t(e)}function _t(e){this._node=e,this._names=ht(e.getAttribute(`class`)||``)}_t.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function vt(e,t){for(var n=gt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function yt(e,t){for(var n=gt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function bt(e){return function(){vt(this,e)}}function xt(e){return function(){yt(this,e)}}function St(e,t){return function(){(t.apply(this,arguments)?vt:yt)(this,e)}}function Ct(e,t){var n=ht(e+``);if(arguments.length<2){for(var r=gt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?St:t?bt:xt)(n,t))}function wt(){this.textContent=``}function Tt(e){return function(){this.textContent=e}}function Et(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Dt(e){return arguments.length?this.each(e==null?wt:(typeof e==`function`?Et:Tt)(e)):this.node().textContent}function Ot(){this.innerHTML=``}function kt(e){return function(){this.innerHTML=e}}function At(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function jt(e){return arguments.length?this.each(e==null?Ot:(typeof e==`function`?At:kt)(e)):this.node().innerHTML}function Mt(){this.nextSibling&&this.parentNode.appendChild(this)}function Nt(){return this.each(Mt)}function Pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ft(){return this.each(Pt)}function It(e){var t=typeof e==`function`?e:de(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Lt(){return null}function Rt(e,t){var n=typeof e==`function`?e:de(e),r=t==null?Lt:typeof t==`function`?t:pe(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zt(){var e=this.parentNode;e&&e.removeChild(this)}function Bt(){return this.each(zt)}function Vt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ht(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ut(e){return this.select(e?Ht:Vt)}function Wt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Gt(e){return function(t){e.call(this,t,this.__data__)}}function Kt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function qt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Jt(e,t,n){return function(){var r=this.__on,i,a=Gt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Yt(e,t,n){var r=Kt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Jt:qt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Xt(e,t,n){var r=at(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Zt(e,t){return function(){return Xt(this,e,t)}}function Qt(e,t){return function(){return Xt(this,e,t.apply(this,arguments))}}function $t(e,t){return this.each((typeof t==`function`?Qt:Zt)(e,t))}function*en(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var tn=[null];function nn(e,t){this._groups=e,this._parents=t}function rn(){return new nn([[document.documentElement]],tn)}function an(){return this}nn.prototype=rn.prototype={constructor:nn,select:me,selectAll:ye,selectChild:Te,selectChildren:ke,filter:Ae,data:Re,enter:Me,exit:Be,join:Ve,merge:He,selection:an,order:Ue,sort:We,call:Ke,nodes:qe,node:Je,size:Ye,empty:Xe,each:Ze,attr:it,style:lt,property:mt,classed:Ct,text:Dt,html:jt,raise:Nt,lower:Ft,append:It,insert:Rt,remove:Bt,clone:Ut,datum:Wt,on:Yt,dispatch:$t,[Symbol.iterator]:en};function on(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cn(){}var ln=.7,un=1/ln,dn=`\\s*([+-]?\\d+)\\s*`,fn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,pn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,mn=/^#([0-9a-f]{3,8})$/,hn=RegExp(`^rgb\\(${dn},${dn},${dn}\\)$`),gn=RegExp(`^rgb\\(${pn},${pn},${pn}\\)$`),_n=RegExp(`^rgba\\(${dn},${dn},${dn},${fn}\\)$`),vn=RegExp(`^rgba\\(${pn},${pn},${pn},${fn}\\)$`),yn=RegExp(`^hsl\\(${fn},${pn},${pn}\\)$`),bn=RegExp(`^hsla\\(${fn},${pn},${pn},${fn}\\)$`),xn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};on(cn,En,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sn,formatHex:Sn,formatHex8:Cn,formatHsl:wn,formatRgb:Tn,toString:Tn});function Sn(){return this.rgb().formatHex()}function Cn(){return this.rgb().formatHex8()}function wn(){return Rn(this).formatHsl()}function Tn(){return this.rgb().formatRgb()}function En(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=mn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Dn(t):n===3?new A(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?On(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?On(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=hn.exec(e))?new A(t[1],t[2],t[3],1):(t=gn.exec(e))?new A(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_n.exec(e))?On(t[1],t[2],t[3],t[4]):(t=vn.exec(e))?On(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yn.exec(e))?Ln(t[1],t[2]/100,t[3]/100,1):(t=bn.exec(e))?Ln(t[1],t[2]/100,t[3]/100,t[4]):xn.hasOwnProperty(e)?Dn(xn[e]):e===`transparent`?new A(NaN,NaN,NaN,0):null}function Dn(e){return new A(e>>16&255,e>>8&255,e&255,1)}function On(e,t,n,r){return r<=0&&(e=t=n=NaN),new A(e,t,n,r)}function kn(e){return e instanceof cn||(e=En(e)),e?(e=e.rgb(),new A(e.r,e.g,e.b,e.opacity)):new A}function An(e,t,n,r){return arguments.length===1?kn(e):new A(e,t,n,r??1)}function A(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}on(A,An,sn(cn,{brighter(e){return e=e==null?un:un**+e,new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ln:ln**+e,new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new A(Fn(this.r),Fn(this.g),Fn(this.b),Pn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jn,formatHex:jn,formatHex8:Mn,formatRgb:Nn,toString:Nn}));function jn(){return`#${In(this.r)}${In(this.g)}${In(this.b)}`}function Mn(){return`#${In(this.r)}${In(this.g)}${In(this.b)}${In((isNaN(this.opacity)?1:this.opacity)*255)}`}function Nn(){let e=Pn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Fn(this.r)}, ${Fn(this.g)}, ${Fn(this.b)}${e===1?`)`:`, ${e})`}`}function Pn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function In(e){return e=Fn(e),(e<16?`0`:``)+e.toString(16)}function Ln(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bn(e,t,n,r)}function Rn(e){if(e instanceof Bn)return new Bn(e.h,e.s,e.l,e.opacity);if(e instanceof cn||(e=En(e)),!e)return new Bn;if(e instanceof Bn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Bn(o,s,c,e.opacity)}function zn(e,t,n,r){return arguments.length===1?Rn(e):new Bn(e,t,n,r??1)}function Bn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}on(Bn,zn,sn(cn,{brighter(e){return e=e==null?un:un**+e,new Bn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ln:ln**+e,new Bn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new A(Un(e>=240?e-240:e+120,i,r),Un(e,i,r),Un(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Bn(Vn(this.h),Hn(this.s),Hn(this.l),Pn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Pn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Vn(this.h)}, ${Hn(this.s)*100}%, ${Hn(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Vn(e){return e=(e||0)%360,e<0?e+360:e}function Hn(e){return Math.max(0,Math.min(1,e||0))}function Un(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Wn=e=>()=>e;function Gn(e,t){return function(n){return e+n*t}}function Kn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function qn(e){return(e=+e)==1?Jn:function(t,n){return n-t?Kn(t,n,e):Wn(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?Gn(e,n):Wn(isNaN(e)?t:e)}var Yn=(function e(t){var n=qn(t);function r(e,t){var r=n((e=An(e)).r,(t=An(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Jn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Xn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qn=new RegExp(Zn.source,`g`);function $n(e){return function(){return e}}function er(e){return function(t){return e(t)+``}}function tr(e,t){var n=Zn.lastIndex=Qn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Zn.exec(e))&&(i=Qn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Xn(r,i)})),n=Qn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?er(c[0].x):$n(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var nr=180/Math.PI,rr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ir(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*nr,skewX:Math.atan(c)*nr,scaleX:o,scaleY:s}}var ar;function or(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?rr:ir(t.a,t.b,t.c,t.d,t.e,t.f)}function sr(e){return e==null||(ar||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),ar.setAttribute(`transform`,e),!(e=ar.transform.baseVal.consolidate()))?rr:(e=e.matrix,ir(e.a,e.b,e.c,e.d,e.e,e.f))}function cr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Xn(e,i)},{i:c-2,x:Xn(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Xn(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Xn(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Xn(e,n)},{i:s-2,x:Xn(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var lr=cr(or,`px, `,`px)`,`deg)`),ur=cr(sr,`, `,`)`,`)`),dr=0,fr=0,pr=0,mr=1e3,hr,gr,_r=0,vr=0,yr=0,br=typeof performance==`object`&&performance.now?performance:Date,xr=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Sr(){return vr||=(xr(Cr),br.now()+yr)}function Cr(){vr=0}function wr(){this._call=this._time=this._next=null}wr.prototype=Tr.prototype={constructor:wr,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Sr():+n)+(t==null?0:+t),!this._next&&gr!==this&&(gr?gr._next=this:hr=this,gr=this),this._call=e,this._time=n,Ar()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ar())}};function Tr(e,t,n){var r=new wr;return r.restart(e,t,n),r}function Er(){Sr(),++dr;for(var e=hr,t;e;)(t=vr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--dr}function Dr(){vr=(_r=br.now())+yr,dr=fr=0;try{Er()}finally{dr=0,kr(),vr=0}}function Or(){var e=br.now(),t=e-_r;t>mr&&(yr-=t,_r=e)}function kr(){for(var e,t=hr,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:hr=n);gr=e,Ar(r)}function Ar(e){dr||(fr&&=clearTimeout(fr),e-vr>24?(e<1/0&&(fr=setTimeout(Dr,e-br.now()-yr)),pr&&=clearInterval(pr)):(pr||=(_r=br.now(),setInterval(Or,mr)),dr=1,xr(Dr)))}function jr(e,t,n){var r=new wr;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Mr=ne(`start`,`end`,`cancel`,`interrupt`),Nr=[];function Pr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Rr(e,n,{name:t,index:r,group:i,on:Mr,tween:Nr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Fr(e,t){var n=Lr(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Ir(e,t){var n=Lr(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Lr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Rr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Tr(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return jr(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(jr(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function zr(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Br(e){return this.each(function(){zr(this,e)})}function Vr(e,t){var n,r;return function(){var i=Ir(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Hr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Ir(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ur(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Lr(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Vr:Hr)(n,e,t))}function Wr(e,t,n){var r=e._id;return e.each(function(){var e=Ir(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Lr(e,r).value[t]}}function Gr(e,t){var n;return(typeof t==`number`?Xn:t instanceof En?Yn:(n=En(t))?(t=n,Yn):tr)(e,t)}function Kr(e){return function(){this.removeAttribute(e)}}function qr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Yr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Xr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Zr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Qr(e,t){var n=ce(e),r=n===`transform`?ur:Gr;return this.attrTween(e,typeof t==`function`?(n.local?Zr:Xr)(n,r,Wr(this,`attr.`+e,t)):t==null?(n.local?qr:Kr)(n):(n.local?Yr:Jr)(n,r,t))}function $r(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ei(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ti(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ei(e,i)),n}return i._value=t,i}function ni(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&$r(e,i)),n}return i._value=t,i}function ri(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ce(e);return this.tween(n,(r.local?ti:ni)(r,t))}function ii(e,t){return function(){Fr(this,e).delay=+t.apply(this,arguments)}}function ai(e,t){return t=+t,function(){Fr(this,e).delay=t}}function oi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ii:ai)(t,e)):Lr(this.node(),t).delay}function si(e,t){return function(){Ir(this,e).duration=+t.apply(this,arguments)}}function ci(e,t){return t=+t,function(){Ir(this,e).duration=t}}function li(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?si:ci)(t,e)):Lr(this.node(),t).duration}function ui(e,t){if(typeof t!=`function`)throw Error();return function(){Ir(this,e).ease=t}}function di(e){var t=this._id;return arguments.length?this.each(ui(t,e)):Lr(this.node(),t).ease}function fi(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Ir(this,e).ease=n}}function pi(e){if(typeof e!=`function`)throw Error();return this.each(fi(this._id,e))}function mi(e){typeof e!=`function`&&(e=be(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Ui(r,this._parents,this._name,this._id)}function hi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Ui(o,this._parents,this._name,this._id)}function gi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function _i(e,t,n){var r,i,a=gi(t)?Fr:Ir;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function vi(e,t){var n=this._id;return arguments.length<2?Lr(this.node(),n).on.on(e):this.each(_i(n,e,t))}function yi(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function bi(){return this.on(`end.remove`,yi(this._id))}function xi(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=pe(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Pr(l[f],t,n,f,l,Lr(u,n)));return new Ui(a,this._parents,t,n)}function Si(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=_e(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Lr(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Pr(p,t,n,h,f,m);a.push(f),o.push(u)}return new Ui(a,o,t,n)}var Ci=rn.prototype.constructor;function wi(){return new Ci(this._groups,this._parents)}function Ti(e,t){var n,r,i;return function(){var a=ut(this,e),o=(this.style.removeProperty(e),ut(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Ei(e){return function(){this.style.removeProperty(e)}}function Di(e,t,n){var r,i=n+``,a;return function(){var o=ut(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Oi(e,t,n){var r,i,a;return function(){var o=ut(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),ut(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function ki(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Ir(this,e),l=c.on,u=c.value[a]==null?s||=Ei(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Ai(e,t,n){var r=(e+=``)==`transform`?lr:Gr;return t==null?this.styleTween(e,Ti(e,r)).on(`end.style.`+e,Ei(e)):typeof t==`function`?this.styleTween(e,Oi(e,r,Wr(this,`style.`+e,t))).each(ki(this._id,e)):this.styleTween(e,Di(e,r,t),n).on(`end.style.`+e,null)}function ji(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Mi(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ji(e,a,n)),r}return a._value=t,a}function Ni(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Mi(e,t,n??``))}function Pi(e){return function(){this.textContent=e}}function Fi(e){return function(){var t=e(this);this.textContent=t??``}}function Ii(e){return this.tween(`text`,typeof e==`function`?Fi(Wr(this,`text`,e)):Pi(e==null?``:e+``))}function Li(e){return function(t){this.textContent=e.call(this,t)}}function Ri(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Li(r)),t}return r._value=e,r}function zi(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Ri(e))}function Bi(){for(var e=this._name,t=this._id,n=Wi(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Lr(c,t);Pr(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ui(r,this._parents,e,n)}function Vi(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Ir(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Hi=0;function Ui(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Wi(){return++Hi}var Gi=rn.prototype;Ui.prototype={constructor:Ui,select:xi,selectAll:Si,selectChild:Gi.selectChild,selectChildren:Gi.selectChildren,filter:mi,merge:hi,selection:wi,transition:Bi,call:Gi.call,nodes:Gi.nodes,node:Gi.node,size:Gi.size,empty:Gi.empty,each:Gi.each,on:vi,attr:Qr,attrTween:ri,style:Ai,styleTween:Ni,text:Ii,textTween:zi,remove:bi,tween:Ur,delay:oi,duration:li,ease:di,easeVarying:pi,end:Vi,[Symbol.iterator]:Gi[Symbol.iterator]};function Ki(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qi={time:null,delay:0,duration:250,ease:Ki};function Ji(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Yi(e){var t,n;e instanceof Ui?(t=e._id,e=e._name):(t=Wi(),(n=qi).time=Sr(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Pr(c,e,t,l,o,n||Ji(c,t));return new Ui(r,this._parents,e,t)}rn.prototype.interrupt=Br,rn.prototype.transition=Yi;let{abs:Xi,max:Zi,min:Qi}=Math;[`w`,`e`].map($i),[`n`,`s`].map($i),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map($i);function $i(e){return{type:e}}function ea(e,t,n){this.k=e,this.x=t,this.y=n}ea.prototype={constructor:ea,scale:function(e){return e===1?this:new ea(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ea(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var ta=new ea(1,0,0);na.prototype=ea.prototype;function na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ta;return e.__zoom}var ra=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,yo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_aabb_free(e,0)}constructor(e,t){N(e,M);var n=e.__destroy_into_raw();N(t,M);var r=t.__destroy_into_raw();let i=R.aabb_new(n,r);return this.__wbg_ptr=i,yo.register(this,this.__wbg_ptr,this),this}get center(){let e=R.__wbg_get_aabb_center(this.__wbg_ptr);return M.__wrap(e)}get extent(){let e=R.__wbg_get_aabb_extent(this.__wbg_ptr);return M.__wrap(e)}set center(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_aabb_center(this.__wbg_ptr,t)}set extent(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_aabb_extent(this.__wbg_ptr,t)}};Symbol.dispose&&(ra.prototype[Symbol.dispose]=ra.prototype.free);var ia=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_batchpropresult_free(e,0)}get layerId(){let e=R.__wbg_get_batchpropresult_layerId(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get properties(){return R.__wbg_get_batchpropresult_properties(this.__wbg_ptr)}set layerId(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_batchpropresult_layerId(this.__wbg_ptr,t,n)}set properties(e){R.__wbg_set_batchpropresult_properties(this.__wbg_ptr,e)}};Symbol.dispose&&(ia.prototype[Symbol.dispose]=ia.prototype.free);var aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_billboardmaterial_free(e,0)}get alphaTest(){let e=R.__wbg_get_billboardmaterial_alphaTest(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_billboardmaterial_center(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}get clampToGround(){let e=R.__wbg_get_billboardmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_billboardmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_billboardmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_billboardmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_billboardmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_billboardmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_billboardmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_billboardmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_billboardmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_billboardmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_billboardmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_billboardmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_billboardmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_billboardmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_billboardmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_billboardmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}set alphaTest(e){R.__wbg_set_billboardmaterial_alphaTest(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(N(e,j),t=e.__destroy_into_raw()),R.__wbg_set_billboardmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_billboardmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_billboardmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_billboardmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_billboardmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_billboardmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_billboardmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_billboardmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_billboardmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_billboardmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_billboardmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_billboardmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_billboardmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_billboardmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_billboardmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_billboardmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_billboardmaterial_url(this.__wbg_ptr,t,n)}};Symbol.dispose&&(aa.prototype[Symbol.dispose]=aa.prototype.free);var oa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,So.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_boundingsphere_free(e,0)}constructor(e,t,n,r){let i=R.boundingsphere_new(e,t,n,r);return this.__wbg_ptr=i,So.register(this,this.__wbg_ptr,this),this}get center_x(){return R.__wbg_get_boundingsphere_center_x(this.__wbg_ptr)}get center_y(){return R.__wbg_get_boundingsphere_center_y(this.__wbg_ptr)}get center_z(){return R.__wbg_get_boundingsphere_center_z(this.__wbg_ptr)}get radius(){return R.__wbg_get_boundingsphere_radius(this.__wbg_ptr)}set center_x(e){R.__wbg_set_boundingsphere_center_x(this.__wbg_ptr,e)}set center_y(e){R.__wbg_set_boundingsphere_center_y(this.__wbg_ptr,e)}set center_z(e){R.__wbg_set_boundingsphere_center_z(this.__wbg_ptr,e)}set radius(e){R.__wbg_set_boundingsphere_radius(this.__wbg_ptr,e)}};Symbol.dispose&&(oa.prototype[Symbol.dispose]=oa.prototype.free),Object.freeze({Geographic:0,0:`Geographic`,Geocentric:1,1:`Geocentric`});var sa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Co.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Co.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cachedmeshhandle_free(e,0)}constructor(e,t,n,r){let i=R.cachedmeshhandle_new(e,t,n,F(r)?2**53-1:r>>0);return this.__wbg_ptr=i,Co.register(this,this.__wbg_ptr,this),this}get heights(){let e=R.__wbg_get_cachedmeshhandle_heights(this.__wbg_ptr);return e===2**53-1?void 0:e}get indices(){return R.__wbg_get_cachedmeshhandle_indices(this.__wbg_ptr)}get normals(){let e=R.__wbg_get_cachedmeshhandle_normals(this.__wbg_ptr);return e===2**53-1?void 0:e}get uvs(){return R.__wbg_get_cachedmeshhandle_uvs(this.__wbg_ptr)}get vertices(){return R.__wbg_get_cachedmeshhandle_vertices(this.__wbg_ptr)}get watermask(){let e=R.__wbg_get_cachedmeshhandle_watermask(this.__wbg_ptr);return e===2**53-1?void 0:e}set heights(e){R.__wbg_set_cachedmeshhandle_heights(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set indices(e){R.__wbg_set_cachedmeshhandle_indices(this.__wbg_ptr,e)}set normals(e){R.__wbg_set_cachedmeshhandle_normals(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set uvs(e){R.__wbg_set_cachedmeshhandle_uvs(this.__wbg_ptr,e)}set vertices(e){R.__wbg_set_cachedmeshhandle_vertices(this.__wbg_ptr,e)}set watermask(e){R.__wbg_set_cachedmeshhandle_watermask(this.__wbg_ptr,F(e)?2**53-1:e>>0)}};Symbol.dispose&&(sa.prototype[Symbol.dispose]=sa.prototype.free);var ca=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameracontrolupdateevent_free(e,0)}constructor(){let e=R.cameracontrolupdateevent_new();return this.__wbg_ptr=e,wo.register(this,this.__wbg_ptr,this),this}get autoAdjustNearFar(){let e=R.__wbg_get_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableSpin(){let e=R.__wbg_get_cameracontrolupdateevent_enableSpin(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableTilt(){let e=R.__wbg_get_cameracontrolupdateevent_enableTilt(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableZoom(){let e=R.__wbg_get_cameracontrolupdateevent_enableZoom(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maximumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minimumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get spinDuration(){let e=R.__wbg_get_cameracontrolupdateevent_spinDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get spinSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get translateDuration(){let e=R.__wbg_get_cameracontrolupdateevent_translateDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomDuration(){let e=R.__wbg_get_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set autoAdjustNearFar(e){R.__wbg_set_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableSpin(e){R.__wbg_set_cameracontrolupdateevent_enableSpin(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableTilt(e){R.__wbg_set_cameracontrolupdateevent_enableTilt(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableZoom(e){R.__wbg_set_cameracontrolupdateevent_enableZoom(this.__wbg_ptr,F(e)?16777215:+!!e)}set maximumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set minimumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set spinDuration(e){R.__wbg_set_cameracontrolupdateevent_spinDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set spinSpeed(e){R.__wbg_set_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}set translateDuration(e){R.__wbg_set_cameracontrolupdateevent_translateDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomDuration(e){R.__wbg_set_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomSpeed(e){R.__wbg_set_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ca.prototype[Symbol.dispose]=ca.prototype.free),Object.freeze({Forward:0,0:`Forward`,Backward:1,1:`Backward`,Left:2,2:`Left`,Right:3,3:`Right`,Up:4,4:`Up`,Down:5,5:`Down`});var la=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,To.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameraflightendedevent_free(e,0)}get completed(){return R.__wbg_get_cameraflightendedevent_completed(this.__wbg_ptr)!==0}get id(){return R.__wbg_get_cameraflightendedevent_id(this.__wbg_ptr)>>>0}set completed(e){R.__wbg_set_cameraflightendedevent_completed(this.__wbg_ptr,e)}set id(e){R.__wbg_set_cameraflightendedevent_id(this.__wbg_ptr,e)}};Symbol.dispose&&(la.prototype[Symbol.dispose]=la.prototype.free);var ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Eo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerafrustum_free(e,0)}constructor(e,t,n,r){let i=R.camerafrustum_new(e,t,n,r);return this.__wbg_ptr=i,Eo.register(this,this.__wbg_ptr,this),this}get aspect_ratio(){return R.__wbg_get_camerafrustum_aspect_ratio(this.__wbg_ptr)}get far(){return R.__wbg_get_camerafrustum_far(this.__wbg_ptr)}get fov(){return R.__wbg_get_camerafrustum_fov(this.__wbg_ptr)}get near(){return R.__wbg_get_camerafrustum_near(this.__wbg_ptr)}set aspect_ratio(e){R.__wbg_set_camerafrustum_aspect_ratio(this.__wbg_ptr,e)}set far(e){R.__wbg_set_camerafrustum_far(this.__wbg_ptr,e)}set fov(e){R.__wbg_set_camerafrustum_fov(this.__wbg_ptr,e)}set near(e){R.__wbg_set_camerafrustum_near(this.__wbg_ptr,e)}};Symbol.dispose&&(ua.prototype[Symbol.dispose]=ua.prototype.free);var da=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Do.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameraorientation_free(e,0)}get heading(){return R.__wbg_get_cameraorientation_heading(this.__wbg_ptr)}get pitch(){return R.__wbg_get_cameraorientation_pitch(this.__wbg_ptr)}get roll(){return R.__wbg_get_cameraorientation_roll(this.__wbg_ptr)}set heading(e){R.__wbg_set_cameraorientation_heading(this.__wbg_ptr,e)}set pitch(e){R.__wbg_set_cameraorientation_pitch(this.__wbg_ptr,e)}set roll(e){R.__wbg_set_cameraorientation_roll(this.__wbg_ptr,e)}};Symbol.dispose&&(da.prototype[Symbol.dispose]=da.prototype.free);var fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Oo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerastatus_free(e,0)}get status(){let e=R.__wbg_get_camerastatus_status(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}set status(e){let t=Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_camerastatus_status(this.__wbg_ptr,t,n)}};Symbol.dispose&&(fa.prototype[Symbol.dispose]=fa.prototype.free),Object.freeze({Change:0,0:`Change`,LookAt:1,1:`LookAt`,Rotate:2,2:`Rotate`,MoveStart:3,3:`MoveStart`,Moving:4,4:`Moving`,MoveEnd:5,5:`MoveEnd`});var pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledexpression_free(e,0)}evaluate(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledexpression_evaluate(this.__wbg_ptr,e,t,r,i);if(a[2])throw Zs(a[1]);return Zs(a[0])}getRequiredProperties(){return R.compiledexpression_getRequiredProperties(this.__wbg_ptr)}constructor(e,t){var n=F(t)?0:I(t,R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;let i=R.compiledexpression_new(e,n,r);if(i[2])throw Zs(i[1]);return this.__wbg_ptr=i[0],ko.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(pa.prototype[Symbol.dispose]=pa.prototype.free);var ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ao.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledfilter_free(e,0)}constructor(e){let t=R.compiledfilter_new(e);if(t[2])throw Zs(t[1]);return this.__wbg_ptr=t[0],Ao.register(this,this.__wbg_ptr,this),this}test(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledfilter_test(this.__wbg_ptr,e,t,r,i);if(a[2])throw Zs(a[1]);return a[0]!==0}};Symbol.dispose&&(ma.prototype[Symbol.dispose]=ma.prototype.free);var ha=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,jo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygongeometry_free(e,0)}batch_id(){return R.constructedpolygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolygongeometry_indices(this.__wbg_ptr)}normal(){return R.constructedpolygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.constructedpolygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}outline(){let e=R.constructedpolygongeometry_outline(this.__wbg_ptr);return e===0?void 0:ga.__wrap(e)}position(){return R.constructedpolygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.constructedpolygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.constructedpolygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.constructedpolygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.constructedpolygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.constructedpolygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.constructedpolygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.constructedpolygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.__wbg_get_constructedpolygongeometry_extent(this.__wbg_ptr);return e===0?void 0:Sa.__wrap(e)}get rtc_translation(){let e=R.__wbg_get_constructedpolygongeometry_rtc_translation(this.__wbg_ptr);return e===0?void 0:M.__wrap(e)}set extent(e){let t=0;F(e)||(N(e,Sa),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_extent(this.__wbg_ptr,t)}set rtc_translation(e){let t=0;F(e)||(N(e,M),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(ha.prototype[Symbol.dispose]=ha.prototype.free);var ga=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Mo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Mo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygonoutlinegeometry_free(e,0)}batch_index(){return R.constructedpolygonoutlinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygonoutlinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.constructedpolygonoutlinegeometry_position(this.__wbg_ptr)}position_3d_high(){return R.constructedpolygonoutlinegeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.constructedpolygonoutlinegeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.constructedpolygonoutlinegeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.constructedpolygonoutlinegeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.constructedpolygonoutlinegeometry_position_size(this.__wbg_ptr)}scale_normal_and_cap(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap_size(this.__wbg_ptr)}skip_indices(){return R.constructedpolygonoutlinegeometry_skip_indices(this.__wbg_ptr)}};Symbol.dispose&&(ga.prototype[Symbol.dispose]=ga.prototype.free);var _a=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,No.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,No.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolylinegeometry_free(e,0)}batch_id(){return R.constructedpolylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.constructedpolylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.constructedpolylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.constructedpolylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.constructedpolylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.constructedpolylinegeometry_extent(this.__wbg_ptr);return e===0?void 0:Sa.__wrap(e)}forward_offset(){return R.constructedpolylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.constructedpolylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolylinegeometry_indices(this.__wbg_ptr)}position(){return R.constructedpolylinegeometry_position(this.__wbg_ptr)}position_high(){return R.constructedpolylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.constructedpolylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.constructedpolylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.constructedpolylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.constructedpolylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.constructedpolylinegeometry_start(this.__wbg_ptr)}start_high(){return R.constructedpolylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.constructedpolylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.constructedpolylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.constructedpolylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.constructedpolylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.constructedpolylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.constructedpolylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(_a.prototype[Symbol.dispose]=_a.prototype.free);var va=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Po.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Po.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationdecoder_free(e,0)}static japanGSI(){let t=R.elevationdecoder_japanGSI();return e.__wrap(t)}static mapbox(){let t=R.elevationdecoder_mapbox();return e.__wrap(t)}constructor(e,t,n,r,i,a,o,s){let c=R.elevationdecoder_new(e,t,n,r,i,a,o,s);return this.__wbg_ptr=c,Po.register(this,this.__wbg_ptr,this),this}static terrarium(){let t=R.elevationdecoder_terrarium();return e.__wrap(t)}get b_scaler(){return R.__wbg_get_elevationdecoder_b_scaler(this.__wbg_ptr)}get boundary(){return R.__wbg_get_elevationdecoder_boundary(this.__wbg_ptr)}get epsilon(){return R.__wbg_get_elevationdecoder_epsilon(this.__wbg_ptr)}get g_scaler(){return R.__wbg_get_elevationdecoder_g_scaler(this.__wbg_ptr)}get max_offset(){return R.__wbg_get_elevationdecoder_max_offset(this.__wbg_ptr)}get min_offset(){return R.__wbg_get_elevationdecoder_min_offset(this.__wbg_ptr)}get offset(){return R.__wbg_get_elevationdecoder_offset(this.__wbg_ptr)}get r_scaler(){return R.__wbg_get_elevationdecoder_r_scaler(this.__wbg_ptr)}set b_scaler(e){R.__wbg_set_elevationdecoder_b_scaler(this.__wbg_ptr,e)}set boundary(e){R.__wbg_set_elevationdecoder_boundary(this.__wbg_ptr,e)}set epsilon(e){R.__wbg_set_elevationdecoder_epsilon(this.__wbg_ptr,e)}set g_scaler(e){R.__wbg_set_elevationdecoder_g_scaler(this.__wbg_ptr,e)}set max_offset(e){R.__wbg_set_elevationdecoder_max_offset(this.__wbg_ptr,e)}set min_offset(e){R.__wbg_set_elevationdecoder_min_offset(this.__wbg_ptr,e)}set offset(e){R.__wbg_set_elevationdecoder_offset(this.__wbg_ptr,e)}set r_scaler(e){R.__wbg_set_elevationdecoder_r_scaler(this.__wbg_ptr,e)}};Symbol.dispose&&(va.prototype[Symbol.dispose]=va.prototype.free);var ya=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Fo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationheatmapmaterial_free(e,0)}get logBoundary(){let e=R.__wbg_get_elevationheatmapmaterial_logBoundary(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get logarithmic(){let e=R.__wbg_get_elevationheatmapmaterial_logarithmic(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxHeight(){let e=R.__wbg_get_elevationheatmapmaterial_maxHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minHeight(){let e=R.__wbg_get_elevationheatmapmaterial_minHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set logBoundary(e){R.__wbg_set_elevationheatmapmaterial_logBoundary(this.__wbg_ptr,!F(e),F(e)?0:e)}set logarithmic(e){R.__wbg_set_elevationheatmapmaterial_logarithmic(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxHeight(e){R.__wbg_set_elevationheatmapmaterial_maxHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}set minHeight(e){R.__wbg_set_elevationheatmapmaterial_minHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ya.prototype[Symbol.dispose]=ya.prototype.free);var ba=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Io.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ellipsoidgeodesic_free(e,0)}interpolateDistance(e){let t=R.ellipsoidgeodesic_interpolateDistance(this.__wbg_ptr,e);return Da.__wrap(t)}interpolateGeodeticPoints(e){let t=R.ellipsoidgeodesic_interpolateGeodeticPoints(this.__wbg_ptr,!F(e),F(e)?0:e);var n=Ms(t[0],t[1]).slice();return R.__wbindgen_free(t[0],t[1]*4,4),n}constructor(e,t){N(e,Da);var n=e.__destroy_into_raw();N(t,Da);var r=t.__destroy_into_raw();let i=R.ellipsoidgeodesic_new(n,r);return this.__wbg_ptr=i,Io.register(this,this.__wbg_ptr,this),this}get converged(){return R.__wbg_get_ellipsoidgeodesic_converged(this.__wbg_ptr)!==0}get distance(){return R.__wbg_get_ellipsoidgeodesic_distance(this.__wbg_ptr)}get end_heading(){return R.__wbg_get_ellipsoidgeodesic_end_heading(this.__wbg_ptr)}get end(){let e=R.__wbg_get_ellipsoidgeodesic_end(this.__wbg_ptr);return Da.__wrap(e)}get start_heading(){return R.__wbg_get_ellipsoidgeodesic_start_heading(this.__wbg_ptr)}get start(){let e=R.__wbg_get_ellipsoidgeodesic_start(this.__wbg_ptr);return Da.__wrap(e)}set converged(e){R.__wbg_set_ellipsoidgeodesic_converged(this.__wbg_ptr,e)}set distance(e){R.__wbg_set_ellipsoidgeodesic_distance(this.__wbg_ptr,e)}set end_heading(e){R.__wbg_set_ellipsoidgeodesic_end_heading(this.__wbg_ptr,e)}set end(e){N(e,Da);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_end(this.__wbg_ptr,t)}set start_heading(e){R.__wbg_set_ellipsoidgeodesic_start_heading(this.__wbg_ptr,e)}set start(e){N(e,Da);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_start(this.__wbg_ptr,t)}};Symbol.dispose&&(ba.prototype[Symbol.dispose]=ba.prototype.free);var xa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Lo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_encodedvec3_free(e,0)}constructor(e,t){N(e,M);var n=e.__destroy_into_raw();N(t,M);var r=t.__destroy_into_raw();let i=R.encodedvec3_new(n,r);return this.__wbg_ptr=i,Lo.register(this,this.__wbg_ptr,this),this}get high(){let e=R.__wbg_get_encodedvec3_high(this.__wbg_ptr);return M.__wrap(e)}get low(){let e=R.__wbg_get_encodedvec3_low(this.__wbg_ptr);return M.__wrap(e)}set high(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_high(this.__wbg_ptr,t)}set low(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_low(this.__wbg_ptr,t)}};Symbol.dispose&&(xa.prototype[Symbol.dispose]=xa.prototype.free);var Sa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ro.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ro.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_extentradianf32_free(e,0)}constructor(e,t,n,r){let i=R.extentradianf32_new(e,t,n,r);return this.__wbg_ptr=i,Ro.register(this,this.__wbg_ptr,this),this}get east(){return R.__wbg_get_extentradianf32_east(this.__wbg_ptr)}get north(){return R.__wbg_get_extentradianf32_north(this.__wbg_ptr)}get south(){return R.__wbg_get_extentradianf32_south(this.__wbg_ptr)}get west(){return R.__wbg_get_extentradianf32_west(this.__wbg_ptr)}set east(e){R.__wbg_set_extentradianf32_east(this.__wbg_ptr,e)}set north(e){R.__wbg_set_extentradianf32_north(this.__wbg_ptr,e)}set south(e){R.__wbg_set_extentradianf32_south(this.__wbg_ptr,e)}set west(e){R.__wbg_set_extentradianf32_west(this.__wbg_ptr,e)}};Symbol.dispose&&(Sa.prototype[Symbol.dispose]=Sa.prototype.free);var Ca=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_floatattribute_free(e,0)}constructor(e,t){let n=Js(e,R.__wbindgen_malloc),r=L,i=R.floatattribute_new(n,r,t);return this.__wbg_ptr=i,zo.register(this,this.__wbg_ptr,this),this}transferData(){return R.floatattribute_transferData(this.__wbg_ptr)}get size(){return R.__wbg_get_floatattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_floatattribute_size(this.__wbg_ptr,e)}};Symbol.dispose&&(Ca.prototype[Symbol.dispose]=Ca.prototype.free);var wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_geometry_free(e,0)}hasNormals(){return R.geometry_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.geometry_hasSkirt(this.__wbg_ptr)!==0}constructor(e,t,n){let r=Js(e,R.__wbindgen_malloc),i=L,a=Ks(t,R.__wbindgen_malloc),o=L,s=Js(n,R.__wbindgen_malloc),c=L,l=R.geometry_new(r,i,a,o,s,c);return this.__wbg_ptr=l,Bo.register(this,this.__wbg_ptr,this),this}transferIndices(){return R.geometry_transferIndices(this.__wbg_ptr)}transferNormals(){return R.geometry_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.geometry_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.geometry_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.geometry_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.geometry_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.geometry_transferUvs(this.__wbg_ptr)}transferVertices(){return R.geometry_transferVertices(this.__wbg_ptr)}};Symbol.dispose&&(wa.prototype[Symbol.dispose]=wa.prototype.free);var Ta=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Vo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_globe_free(e,0)}get color(){return R.__wbg_get_globe_color(this.__wbg_ptr)>>>0}get elevationColormap(){let e=R.__wbg_get_globe_elevationColormap(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get hideUnderground(){return R.__wbg_get_globe_hideUnderground(this.__wbg_ptr)!==0}get isGeographicTiling(){return R.__wbg_get_globe_isGeographicTiling(this.__wbg_ptr)!==0}get maxSse(){return R.__wbg_get_globe_maxSse(this.__wbg_ptr)}get opacity(){return R.__wbg_get_globe_opacity(this.__wbg_ptr)}get segments(){return R.__wbg_get_globe_segments(this.__wbg_ptr)}get transparent(){return R.__wbg_get_globe_transparent(this.__wbg_ptr)!==0}get useNormal(){return R.__wbg_get_globe_useNormal(this.__wbg_ptr)!==0}get wireframe(){return R.__wbg_get_globe_wireframe(this.__wbg_ptr)!==0}constructor(e,t,n,r,i,a,o,s,c){let l=Js(c,R.__wbindgen_malloc),u=L,d=R.globe_new(e,t,n,r,i,a,o,s,l,u);return this.__wbg_ptr=d,Vo.register(this,this.__wbg_ptr,this),this}set color(e){R.__wbg_set_globe_color(this.__wbg_ptr,e)}set elevationColormap(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_globe_elevationColormap(this.__wbg_ptr,t,n)}set hideUnderground(e){R.__wbg_set_globe_hideUnderground(this.__wbg_ptr,e)}set isGeographicTiling(e){R.__wbg_set_globe_isGeographicTiling(this.__wbg_ptr,e)}set maxSse(e){R.__wbg_set_globe_maxSse(this.__wbg_ptr,e)}set opacity(e){R.__wbg_set_globe_opacity(this.__wbg_ptr,e)}set segments(e){R.__wbg_set_globe_segments(this.__wbg_ptr,e)}set transparent(e){R.__wbg_set_globe_transparent(this.__wbg_ptr,e)}set useNormal(e){R.__wbg_set_globe_useNormal(this.__wbg_ptr,e)}set wireframe(e){R.__wbg_set_globe_wireframe(this.__wbg_ptr,e)}};Symbol.dispose&&(Ta.prototype[Symbol.dispose]=Ta.prototype.free);var Ea=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ho.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_hillshadematerial_free(e,0)}get exaggeration(){let e=R.__wbg_get_hillshadematerial_exaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}set exaggeration(e){R.__wbg_set_hillshadematerial_exaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Ea.prototype[Symbol.dispose]=Ea.prototype.free);var Da=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Uo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Uo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_lle_free(e,0)}get height(){return R.__wbg_get_lle_height(this.__wbg_ptr)}get lat(){return R.__wbg_get_lle_lat(this.__wbg_ptr)}get lng(){return R.__wbg_get_lle_lng(this.__wbg_ptr)}constructor(e,t,n){let r=R.lle_new(e,t,n);return this.__wbg_ptr=r,Uo.register(this,this.__wbg_ptr,this),this}set height(e){R.__wbg_set_lle_height(this.__wbg_ptr,e)}set lat(e){R.__wbg_set_lle_lat(this.__wbg_ptr,e)}set lng(e){R.__wbg_set_lle_lng(this.__wbg_ptr,e)}};Symbol.dispose&&(Da.prototype[Symbol.dispose]=Da.prototype.free);var Oa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Wo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelinternalmaterial_free(e,0)}get dracoCompressed(){return R.__wbg_get_modelinternalmaterial_dracoCompressed(this.__wbg_ptr)!==0}get pointCloudGeodeticNormal(){let e=R.__wbg_get_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr);return M.__wrap(e)}get pointCloud(){return R.__wbg_get_modelinternalmaterial_pointCloud(this.__wbg_ptr)!==0}set dracoCompressed(e){R.__wbg_set_modelinternalmaterial_dracoCompressed(this.__wbg_ptr,e)}set pointCloudGeodeticNormal(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr,t)}set pointCloud(e){R.__wbg_set_modelinternalmaterial_pointCloud(this.__wbg_ptr,e)}};Symbol.dispose&&(Oa.prototype[Symbol.dispose]=Oa.prototype.free);var ka=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Go.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_modelmaterial___internal__(this.__wbg_ptr);return e===0?void 0:Oa.__wrap(e)}get animationActiveClip(){let e=R.__wbg_get_modelmaterial_animationActiveClip(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get animationSpeed(){let e=R.__wbg_get_modelmaterial_animationSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get applyWaterNormal(){let e=R.__wbg_get_modelmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_modelmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_modelmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get creaseNormalAngle(){let e=R.__wbg_get_modelmaterial_creaseNormalAngle(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_modelmaterial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_modelmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_modelmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_modelmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_modelmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_modelmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get lit(){let e=R.__wbg_get_modelmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxSse(){let e=R.__wbg_get_modelmaterial_maxSse(this.__wbg_ptr);return e===2**53-1?void 0:e}get metalness(){let e=R.__wbg_get_modelmaterial_metalness(this.__wbg_ptr);return e===2**53-1?void 0:e}get normals(){let e=R.__wbg_get_modelmaterial_normals(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_modelmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get pointSize(){let e=R.__wbg_get_modelmaterial_pointSize(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_modelmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_modelmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_modelmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_modelmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get shouldRotateInDefault(){let e=R.__wbg_get_modelmaterial_shouldRotateInDefault(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_modelmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_modelmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_modelmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get specularStrength(){let e=R.__wbg_get_modelmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_modelmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_modelmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_modelmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get waterScaleNormal(){let e=R.__wbg_get_modelmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_modelmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_modelmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}set __internal__(e){let t=0;F(e)||(N(e,Oa),t=e.__destroy_into_raw()),R.__wbg_set_modelmaterial___internal__(this.__wbg_ptr,t)}set animationActiveClip(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_animationActiveClip(this.__wbg_ptr,t,n)}set animationSpeed(e){R.__wbg_set_modelmaterial_animationSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set applyWaterNormal(e){R.__wbg_set_modelmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_modelmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set creaseNormalAngle(e){R.__wbg_set_modelmaterial_creaseNormalAngle(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set depthWrite(e){R.__wbg_set_modelmaterial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_modelmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_modelmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_modelmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_modelmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_modelmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set lit(e){R.__wbg_set_modelmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxSse(e){R.__wbg_set_modelmaterial_maxSse(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set metalness(e){R.__wbg_set_modelmaterial_metalness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set normals(e){R.__wbg_set_modelmaterial_normals(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_modelmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set pointSize(e){R.__wbg_set_modelmaterial_pointSize(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_modelmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_modelmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_modelmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_modelmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shouldRotateInDefault(e){R.__wbg_set_modelmaterial_shouldRotateInDefault(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_modelmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_modelmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_modelmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specularStrength(e){R.__wbg_set_modelmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_modelmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_modelmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_url(this.__wbg_ptr,t,n)}set waterScaleNormal(e){R.__wbg_set_modelmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_modelmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_modelmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(ka.prototype[Symbol.dispose]=ka.prototype.free);var Aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_nearfar_free(e,0)}get far(){return R.__wbg_get_nearfar_far(this.__wbg_ptr)}get near(){return R.__wbg_get_nearfar_near(this.__wbg_ptr)}set far(e){R.__wbg_set_nearfar_far(this.__wbg_ptr,e)}set near(e){R.__wbg_set_nearfar_near(this.__wbg_ptr,e)}};Symbol.dispose&&(Aa.prototype[Symbol.dispose]=Aa.prototype.free);var ja=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_overscaledtilehandle_free(e,0)}get handle(){let e=R.__wbg_get_overscaledtilehandle_handle(this.__wbg_ptr);return BigInt.asUintN(64,e)}set handle(e){R.__wbg_set_overscaledtilehandle_handle(this.__wbg_ptr,e)}};Symbol.dispose&&(ja.prototype[Symbol.dispose]=ja.prototype.free);var Ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_plane_free(e,0)}get distance(){return R.__wbg_get_plane_distance(this.__wbg_ptr)}get normal(){let e=R.__wbg_get_plane_normal(this.__wbg_ptr);return M.__wrap(e)}set distance(e){R.__wbg_set_plane_distance(this.__wbg_ptr,e)}set normal(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_plane_normal(this.__wbg_ptr,t)}};Symbol.dispose&&(Ma.prototype[Symbol.dispose]=Ma.prototype.free);var Na=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Yo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_pointmaterial_free(e,0)}get center(){let e=R.__wbg_get_pointmaterial_center(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}get clampToGround(){let e=R.__wbg_get_pointmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_pointmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_pointmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_pointmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_pointmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_pointmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_pointmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_pointmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_pointmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_pointmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_pointmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_pointmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_pointmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_pointmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_pointmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set center(e){let t=0;F(e)||(N(e,j),t=e.__destroy_into_raw()),R.__wbg_set_pointmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_pointmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_pointmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_pointmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_pointmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_pointmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_pointmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_pointmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_pointmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_pointmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_pointmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_pointmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_pointmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_pointmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_pointmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_pointmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Na.prototype[Symbol.dispose]=Na.prototype.free);var Pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometry_free(e,0)}batch_id(){return R.polygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polygongeometry_indices(this.__wbg_ptr)}normal(){return R.polygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.polygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.polygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.polygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.polygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.polygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.polygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.polygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.polygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.polygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Pa.prototype[Symbol.dispose]=Pa.prototype.free);var Fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometryattributes_free(e,0)}transfer_batch_id(){return R.polygongeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polygongeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polygongeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polygongeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_normal(){return R.polygongeometryattributes_transfer_normal(this.__wbg_ptr)}transfer_normal_size(){let e=R.polygongeometryattributes_transfer_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polygongeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_3d_high(){return R.polygongeometryattributes_transfer_position_3d_high(this.__wbg_ptr)}transfer_position_3d_high_size(){let e=R.polygongeometryattributes_transfer_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_3d_low(){return R.polygongeometryattributes_transfer_position_3d_low(this.__wbg_ptr)}transfer_position_3d_low_size(){let e=R.polygongeometryattributes_transfer_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){let e=R.polygongeometryattributes_transfer_position_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_scale_normal_and_cap(){return R.polygongeometryattributes_transfer_scale_normal_and_cap(this.__wbg_ptr)}transfer_scale_normal_and_cap_size(){let e=R.polygongeometryattributes_transfer_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Fa.prototype[Symbol.dispose]=Fa.prototype.free);var Ia=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Qo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygoninternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Ia.prototype[Symbol.dispose]=Ia.prototype.free);var La=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,$o.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygonmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_polygonmaterial___internal__(this.__wbg_ptr);return e===0?void 0:Ia.__wrap(e)}get applyWaterNormal(){let e=R.__wbg_get_polygonmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_polygonmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polygonmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polygonmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get effectIds(){let e=R.__wbg_get_polygonmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polygonmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polygonmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get extrudedHeight(){let e=R.__wbg_get_polygonmaterial_extrudedHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polygonmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get lit(){let e=R.__wbg_get_polygonmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_polygonmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_polygonmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineShow(){let e=R.__wbg_get_polygonmaterial_outlineShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get outlineWidth(){let e=R.__wbg_get_polygonmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get outline(){let e=R.__wbg_get_polygonmaterial_outline(this.__wbg_ptr);return e===16777215?void 0:e!==0}get perPositionHeight(){let e=R.__wbg_get_polygonmaterial_perPositionHeight(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_polygonmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_polygonmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_polygonmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_polygonmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_polygonmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get specularStrength(){let e=R.__wbg_get_polygonmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_polygonmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get surfaceShow(){let e=R.__wbg_get_polygonmaterial_surfaceShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polygonmaterial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polygonmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get waterScaleNormal(){let e=R.__wbg_get_polygonmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_polygonmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_polygonmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}get wireframe(){let e=R.__wbg_get_polygonmaterial_wireframe(this.__wbg_ptr);return e===16777215?void 0:e!==0}constructor(e,t,n,r,i,a,o,s,c,l,u,d){let f=0;F(d)||(N(d,Ia),f=d.__destroy_into_raw());let p=R.polygonmaterial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?16777215:+!!c,F(l)?16777215:+!!l,F(u)?16777215:+!!u,f);return this.__wbg_ptr=p,$o.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(N(e,Ia),t=e.__destroy_into_raw()),R.__wbg_set_polygonmaterial___internal__(this.__wbg_ptr,t)}set applyWaterNormal(e){R.__wbg_set_polygonmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_polygonmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polygonmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polygonmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygonmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polygonmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polygonmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set extrudedHeight(e){R.__wbg_set_polygonmaterial_extrudedHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polygonmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_polygonmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set lit(e){R.__wbg_set_polygonmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_polygonmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_polygonmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineShow(e){R.__wbg_set_polygonmaterial_outlineShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set outlineWidth(e){R.__wbg_set_polygonmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outline(e){R.__wbg_set_polygonmaterial_outline(this.__wbg_ptr,F(e)?16777215:+!!e)}set perPositionHeight(e){R.__wbg_set_polygonmaterial_perPositionHeight(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_polygonmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_polygonmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_polygonmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_polygonmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_polygonmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set specularStrength(e){R.__wbg_set_polygonmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_polygonmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set surfaceShow(e){R.__wbg_set_polygonmaterial_surfaceShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polygonmaterial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polygonmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set waterScaleNormal(e){R.__wbg_set_polygonmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_polygonmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_polygonmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}set wireframe(e){R.__wbg_set_polygonmaterial_wireframe(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(La.prototype[Symbol.dispose]=La.prototype.free);var Ra=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometry_free(e,0)}batch_id(){return R.polylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.polylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.polylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.polylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.polylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}forward_offset(){return R.polylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.polylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polylinegeometry_indices(this.__wbg_ptr)}position(){return R.polylinegeometry_position(this.__wbg_ptr)}position_high(){return R.polylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.polylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.polylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.polylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.polylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.polylinegeometry_start(this.__wbg_ptr)}start_high(){return R.polylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.polylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.polylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.polylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.polylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.polylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.polylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Ra.prototype[Symbol.dispose]=Ra.prototype.free);var za=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometryattributes_free(e,0)}transfer_batch_id(){return R.polylinegeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polylinegeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polylinegeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polylinegeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_high(){return R.polylinegeometryattributes_transfer_end_high(this.__wbg_ptr)}transfer_end_high_size(){let e=R.polylinegeometryattributes_transfer_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_low(){return R.polylinegeometryattributes_transfer_end_low(this.__wbg_ptr)}transfer_end_low_size(){let e=R.polylinegeometryattributes_transfer_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}transfer_end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_forward_offset(){return R.polylinegeometryattributes_transfer_forward_offset(this.__wbg_ptr)}transfer_forward_offset_size(){let e=R.polylinegeometryattributes_transfer_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polylinegeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_high(){return R.polylinegeometryattributes_transfer_position_high(this.__wbg_ptr)}transfer_position_high_size(){let e=R.polylinegeometryattributes_transfer_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_low(){return R.polylinegeometryattributes_transfer_position_low(this.__wbg_ptr)}transfer_position_low_size(){let e=R.polylinegeometryattributes_transfer_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){return R.polylinegeometryattributes_transfer_position_size(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}transfer_start(){return R.polylinegeometryattributes_transfer_start(this.__wbg_ptr)}transfer_start_high(){return R.polylinegeometryattributes_transfer_start_high(this.__wbg_ptr)}transfer_start_high_size(){let e=R.polylinegeometryattributes_transfer_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_low(){return R.polylinegeometryattributes_transfer_start_low(this.__wbg_ptr)}transfer_start_low_size(){let e=R.polylinegeometryattributes_transfer_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_normals(){return R.polylinegeometryattributes_transfer_start_normals(this.__wbg_ptr)}transfer_start_normals_size(){let e=R.polylinegeometryattributes_transfer_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_size(){let e=R.polylinegeometryattributes_transfer_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(za.prototype[Symbol.dispose]=za.prototype.free);var Ba=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ns.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ns.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylineinternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Ba.prototype[Symbol.dispose]=Ba.prototype.free);var Va=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,rs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinematerial_free(e,0)}get __internal__(){let e=R.__wbg_get_polylinematerial___internal__(this.__wbg_ptr);return e===0?void 0:Ba.__wrap(e)}get castShadow(){let e=R.__wbg_get_polylinematerial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polylinematerial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polylinematerial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_polylinematerial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_polylinematerial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polylinematerial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polylinematerial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polylinematerial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get lit(){let e=R.__wbg_get_polylinematerial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxWidth(){let e=R.__wbg_get_polylinematerial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_polylinematerial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_polylinematerial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_polylinematerial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polylinematerial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polylinematerial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get width(){let e=R.__wbg_get_polylinematerial_width(this.__wbg_ptr);return e===2**53-1?void 0:e}constructor(e,t,n,r,i,a,o,s,c,l){let u=0;F(l)||(N(l,Ba),u=l.__destroy_into_raw());let d=R.polylinematerial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?2**53-1:Math.fround(c),u);return this.__wbg_ptr=d,rs.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(N(e,Ba),t=e.__destroy_into_raw()),R.__wbg_set_polylinematerial___internal__(this.__wbg_ptr,t)}set castShadow(e){R.__wbg_set_polylinematerial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polylinematerial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polylinematerial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set depthWrite(e){R.__wbg_set_polylinematerial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylinematerial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polylinematerial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polylinematerial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polylinematerial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set lit(e){R.__wbg_set_polylinematerial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxWidth(e){R.__wbg_set_polylinematerial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set opacity(e){R.__wbg_set_polylinematerial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_polylinematerial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_polylinematerial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polylinematerial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polylinematerial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set width(e){R.__wbg_set_polylinematerial_width(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Va.prototype[Symbol.dispose]=Va.prototype.free);var Ha=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,is.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastermaterial_free(e,0)}get color(){let e=R.__wbg_get_rastermaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_rastermaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get showBoundingBox(){let e=R.__wbg_get_rastermaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_rastermaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}set color(e){R.__wbg_set_rastermaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set opacity(e){R.__wbg_set_rastermaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set showBoundingBox(e){R.__wbg_set_rastermaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_rastermaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ha.prototype[Symbol.dispose]=Ha.prototype.free);var Ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,as.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastertileinternalmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_rastertileinternalmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get colors(){let e=R.__wbg_get_rastertileinternalmaterial_colors(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get elevationBScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr)}get elevationBoundary(){return R.__wbg_get_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr)}get elevationEpsilon(){return R.__wbg_get_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr)}get elevationGScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr)}get elevationMaxHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr)}get elevationMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr)}get elevationMinHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr)}get elevationMinOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr)}get elevationOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr)}get elevationRScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr)}get hillshadeBScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr)}get hillshadeBoundary(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr)}get hillshadeEpsilon(){return R.__wbg_get_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr)}get hillshadeExaggeration(){return R.__wbg_get_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr)}get hillshadeGScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr)}get hillshadeMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr)}get hillshadeMinOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr)}get hillshadeOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr)}get hillshadeRScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr)}get isElevationHeatmaps(){let e=R.__wbg_get_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get isHillshades(){let e=R.__wbg_get_rastertileinternalmaterial_isHillshades(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get layerReproject(){let e=R.__wbg_get_rastertileinternalmaterial_layerReproject(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get lit(){let e=R.__wbg_get_rastertileinternalmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get logBoundary(){return R.__wbg_get_rastertileinternalmaterial_logBoundary(this.__wbg_ptr)}get logarithmic(){return R.__wbg_get_rastertileinternalmaterial_logarithmic(this.__wbg_ptr)!==0}get opacities(){let e=R.__wbg_get_rastertileinternalmaterial_opacities(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get receiveShadow(){let e=R.__wbg_get_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get shows(){let e=R.__wbg_get_rastertileinternalmaterial_shows(this.__wbg_ptr);var t=Ps(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get terrainLatRange(){let e=R.__wbg_get_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}layerUvTransforms(){let e=R.rastertileinternalmaterial_layerUvTransforms(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}texture_fragments(){let e=R.rastertileinternalmaterial_texture_fragments(this.__wbg_ptr),t;return e[0]!==0&&(t=Ms(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}set castShadow(e){R.__wbg_set_rastertileinternalmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set colors(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_colors(this.__wbg_ptr,t,n)}set elevationBScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr,e)}set elevationBoundary(e){R.__wbg_set_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr,e)}set elevationEpsilon(e){R.__wbg_set_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr,e)}set elevationGScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr,e)}set elevationMaxHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr,e)}set elevationMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr,e)}set elevationMinHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr,e)}set elevationMinOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr,e)}set elevationOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr,e)}set elevationRScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr,e)}set hillshadeBScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr,e)}set hillshadeBoundary(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr,e)}set hillshadeEpsilon(e){R.__wbg_set_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr,e)}set hillshadeExaggeration(e){R.__wbg_set_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr,e)}set hillshadeGScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr,e)}set hillshadeMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr,e)}set hillshadeMinOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr,e)}set hillshadeOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr,e)}set hillshadeRScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr,e)}set isElevationHeatmaps(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr,t,n)}set isHillshades(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isHillshades(this.__wbg_ptr,t,n)}set layerReproject(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr,t,n)}set lit(e){R.__wbg_set_rastertileinternalmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set logBoundary(e){R.__wbg_set_rastertileinternalmaterial_logBoundary(this.__wbg_ptr,e)}set logarithmic(e){R.__wbg_set_rastertileinternalmaterial_logarithmic(this.__wbg_ptr,e)}set opacities(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_opacities(this.__wbg_ptr,t,n)}set receiveShadow(e){R.__wbg_set_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set shows(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_shows(this.__wbg_ptr,t,n)}set terrainLatRange(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Ua.prototype[Symbol.dispose]=Ua.prototype.free);var Wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,os.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ray_free(e,0)}get direction(){let e=R.__wbg_get_ray_direction(this.__wbg_ptr);return M.__wrap(e)}get origin(){let e=R.__wbg_get_ray_origin(this.__wbg_ptr);return M.__wrap(e)}getPoint(e){let t=R.ray_getPoint(this.__wbg_ptr,e);return M.__wrap(t)}constructor(e,t){N(e,M);var n=e.__destroy_into_raw();N(t,M);var r=t.__destroy_into_raw();let i=R.ray_new(n,r);return this.__wbg_ptr=i,os.register(this,this.__wbg_ptr,this),this}set direction(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_ray_direction(this.__wbg_ptr,t)}set origin(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_ray_origin(this.__wbg_ptr,t)}};Symbol.dispose&&(Wa.prototype[Symbol.dispose]=Wa.prototype.free);var Ga=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ss.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_returnedconstructedterrainmesh_free(e,0)}get max_height(){return R.__wbg_get_returnedconstructedterrainmesh_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_returnedconstructedterrainmesh_min_height(this.__wbg_ptr)}get rtc_translation(){let e=R.__wbg_get_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr);return e===0?void 0:M.__wrap(e)}hasNormals(){return R.returnedconstructedterrainmesh_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.returnedconstructedterrainmesh_hasSkirt(this.__wbg_ptr)!==0}hasWatermask(){return R.returnedconstructedterrainmesh_hasWatermask(this.__wbg_ptr)!==0}constructor(e,t,n,r,i){N(e,wa);var a=e.__destroy_into_raw();let o=Js(r,R.__wbindgen_malloc),s=L,c=0;F(i)||(N(i,M),c=i.__destroy_into_raw());let l=R.returnedconstructedterrainmesh_new(a,t,n,o,s,c);return this.__wbg_ptr=l,ss.register(this,this.__wbg_ptr,this),this}transferHeights(){return R.returnedconstructedterrainmesh_transferHeights(this.__wbg_ptr)}transferIndices(){return R.returnedconstructedterrainmesh_transferIndices(this.__wbg_ptr)}transferNormals(){return R.returnedconstructedterrainmesh_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.returnedconstructedterrainmesh_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.returnedconstructedterrainmesh_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.returnedconstructedterrainmesh_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.returnedconstructedterrainmesh_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.returnedconstructedterrainmesh_transferUvs(this.__wbg_ptr)}transferVertices(){return R.returnedconstructedterrainmesh_transferVertices(this.__wbg_ptr)}transferWatermask(){return R.returnedconstructedterrainmesh_transferWatermask(this.__wbg_ptr)}set max_height(e){R.__wbg_set_returnedconstructedterrainmesh_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_returnedconstructedterrainmesh_min_height(this.__wbg_ptr,e)}set rtc_translation(e){let t=0;F(e)||(N(e,M),t=e.__destroy_into_raw()),R.__wbg_set_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(Ga.prototype[Symbol.dispose]=Ga.prototype.free);var Ka=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_terrainmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get lit(){let e=R.__wbg_get_terrainmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_terrainmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_terrainmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_terrainmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get skirtExaggeration(){let e=R.__wbg_get_terrainmaterial_skirtExaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}get skirt(){let e=R.__wbg_get_terrainmaterial_skirt(this.__wbg_ptr);return e===16777215?void 0:e!==0}set castShadow(e){R.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set lit(e){R.__wbg_set_terrainmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_terrainmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_terrainmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_terrainmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set skirtExaggeration(e){R.__wbg_set_terrainmaterial_skirtExaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set skirt(e){R.__wbg_set_terrainmaterial_skirt(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ka.prototype[Symbol.dispose]=Ka.prototype.free);var qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ls.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_textmaterial_free(e,0)}get backgroundColor(){let e=R.__wbg_get_textmaterial_backgroundColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderColor(){let e=R.__wbg_get_textmaterial_borderColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderWidth(){let e=R.__wbg_get_textmaterial_borderWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_textmaterial_center(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}get clampToGround(){let e=R.__wbg_get_textmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_textmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_textmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_textmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_textmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get font(){let e=R.__wbg_get_textmaterial_font(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get height(){let e=R.__wbg_get_textmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get highQuality(){let e=R.__wbg_get_textmaterial_highQuality(this.__wbg_ptr);return e===16777215?void 0:e!==0}get lang(){let e=R.__wbg_get_textmaterial_lang(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get lineHeight(){let e=R.__wbg_get_textmaterial_lineHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxWidth(){let e=R.__wbg_get_textmaterial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_textmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_textmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_textmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineOpacity(){let e=R.__wbg_get_textmaterial_outlineOpacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineWidth(){let e=R.__wbg_get_textmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_textmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_textmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_textmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get textAlign(){let e=R.__wbg_get_textmaterial_textAlign(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get text(){let e=R.__wbg_get_textmaterial_text(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get transparent(){let e=R.__wbg_get_textmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set backgroundColor(e){R.__wbg_set_textmaterial_backgroundColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderColor(e){R.__wbg_set_textmaterial_borderColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderWidth(e){R.__wbg_set_textmaterial_borderWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(N(e,j),t=e.__destroy_into_raw()),R.__wbg_set_textmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_textmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_textmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_textmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_textmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_textmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set font(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_font(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_textmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set highQuality(e){R.__wbg_set_textmaterial_highQuality(this.__wbg_ptr,F(e)?16777215:+!!e)}set lang(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_lang(this.__wbg_ptr,t,n)}set lineHeight(e){R.__wbg_set_textmaterial_lineHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxWidth(e){R.__wbg_set_textmaterial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_textmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_textmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_textmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineOpacity(e){R.__wbg_set_textmaterial_outlineOpacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineWidth(e){R.__wbg_set_textmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_textmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_textmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_textmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set textAlign(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_textAlign(this.__wbg_ptr,t,n)}set text(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_text(this.__wbg_ptr,t,n)}set transparent(e){R.__wbg_set_textmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(qa.prototype[Symbol.dispose]=qa.prototype.free);var Ja=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,us.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,us.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_texturefragment_free(e,0)}get gen(){return R.__wbg_get_texturefragment_gen(this.__wbg_ptr)>>>0}get ind(){return R.__wbg_get_texturefragment_ind(this.__wbg_ptr)>>>0}set gen(e){R.__wbg_set_texturefragment_gen(this.__wbg_ptr,e)}set ind(e){R.__wbg_set_texturefragment_ind(this.__wbg_ptr,e)}};Symbol.dispose&&(Ja.prototype[Symbol.dispose]=Ja.prototype.free);var Ya=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ds.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tileuvtransform_free(e,0)}get offset(){let e=R.__wbg_get_tileuvtransform_offset(this.__wbg_ptr);return j.__wrap(e)}get scale(){let e=R.__wbg_get_tileuvtransform_scale(this.__wbg_ptr);return j.__wrap(e)}set offset(e){N(e,j);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_offset(this.__wbg_ptr,t)}set scale(e){N(e,j);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_scale(this.__wbg_ptr,t)}};Symbol.dispose&&(Ya.prototype[Symbol.dispose]=Ya.prototype.free);var Xa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,fs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,fs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tilexyz_free(e,0)}get x(){return R.__wbg_get_tilexyz_x(this.__wbg_ptr)>>>0}get y(){return R.__wbg_get_tilexyz_y(this.__wbg_ptr)>>>0}get z(){return R.__wbg_get_tilexyz_z(this.__wbg_ptr)>>>0}set x(e){R.__wbg_set_tilexyz_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_tilexyz_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_tilexyz_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.tilexyz_new(e,t,n);return this.__wbg_ptr=r,fs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(Xa.prototype[Symbol.dispose]=Xa.prototype.free);var Za=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ps.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablehierarchy_free(e,0)}get expected_winding_order(){return R.__wbg_get_transferablehierarchy_expected_winding_order(this.__wbg_ptr)}set expected_winding_order(e){R.__wbg_set_transferablehierarchy_expected_winding_order(this.__wbg_ptr,e)}};Symbol.dispose&&(Za.prototype[Symbol.dispose]=Za.prototype.free);var Qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ms.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableholes_free(e,0)}};Symbol.dispose&&(Qa.prototype[Symbol.dispose]=Qa.prototype.free);var $a=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,hs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,hs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablemartini_free(e,0)}get size(){return R.__wbg_get_transferablemartini_size(this.__wbg_ptr)>>>0}set size(e){R.__wbg_set_transferablemartini_size(this.__wbg_ptr,e)}static fromSize(t){let n=R.transferablemartini_fromSize(t);return e.__wrap(n)}constructor(e,t){let n=Ks(t,R.__wbindgen_malloc),r=L,i=R.transferablemartini_new(e,n,r);return this.__wbg_ptr=i,hs.register(this,this.__wbg_ptr,this),this}transfer_coords(){return R.transferablemartini_transfer_coords(this.__wbg_ptr)}};Symbol.dispose&&($a.prototype[Symbol.dispose]=$a.prototype.free);var eo=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,gs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,gs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableparsedmvtresult_free(e,0)}f32_stream(){return R.transferableparsedmvtresult_f32_stream(this.__wbg_ptr)}f64_stream(){return R.transferableparsedmvtresult_f64_stream(this.__wbg_ptr)}meta(){return R.transferableparsedmvtresult_meta(this.__wbg_ptr)}u32_stream(){return R.transferableparsedmvtresult_u32_stream(this.__wbg_ptr)}u8_stream(){return R.transferableparsedmvtresult_u8_stream(this.__wbg_ptr)}};Symbol.dispose&&(eo.prototype[Symbol.dispose]=eo.prototype.free);var to=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_s.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolygonbatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolygonbatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolygonbatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolygonbatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolygonbatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolygonbatchedfeature_constructor(e,t);return this.__wbg_ptr=n,_s.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolygonbatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolygonbatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setExpectedWindingOrders(e,t){R.transferablepolygonbatchedfeature_setExpectedWindingOrders(this.__wbg_ptr,e,t)}setHoles(e,t){R.transferablepolygonbatchedfeature_setHoles(this.__wbg_ptr,e,t)}setHolesBoundaries(e,t){R.transferablepolygonbatchedfeature_setHolesBoundaries(this.__wbg_ptr,e,t)}setHolesSizes(e,t){R.transferablepolygonbatchedfeature_setHolesSizes(this.__wbg_ptr,e,t)}setHolesTotalSizes(e,t){R.transferablepolygonbatchedfeature_setHolesTotalSizes(this.__wbg_ptr,e,t)}setOuterRing(e,t){R.transferablepolygonbatchedfeature_setOuterRing(this.__wbg_ptr,e,t)}setOuterRingSizes(e,t){R.transferablepolygonbatchedfeature_setOuterRingSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolygonbatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolygonbatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferExpectedWindingOrders(){return R.transferablepolygonbatchedfeature_transferExpectedWindingOrders(this.__wbg_ptr)}transferHoles(){return R.transferablepolygonbatchedfeature_transferHoles(this.__wbg_ptr)}transferHolesBoundaries(){return R.transferablepolygonbatchedfeature_transferHolesBoundaries(this.__wbg_ptr)}transferHolesSizes(){return R.transferablepolygonbatchedfeature_transferHolesSizes(this.__wbg_ptr)}transferHolesTotalSizes(){return R.transferablepolygonbatchedfeature_transferHolesTotalSizes(this.__wbg_ptr)}transferOuterRing(){return R.transferablepolygonbatchedfeature_transferOuterRing(this.__wbg_ptr)}transferOuterRingSizes(){return R.transferablepolygonbatchedfeature_transferOuterRingSizes(this.__wbg_ptr)}};Symbol.dispose&&(to.prototype[Symbol.dispose]=to.prototype.free);var no=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,vs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolylinebatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolylinebatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolylinebatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolylinebatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolylinebatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolylinebatchedfeature_constructor(e,t);return this.__wbg_ptr=n,vs.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolylinebatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolylinebatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setPoints(e,t){R.transferablepolylinebatchedfeature_setPoints(this.__wbg_ptr,e,t)}setPointsSizes(e,t){R.transferablepolylinebatchedfeature_setPointsSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolylinebatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolylinebatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferPoints(){return R.transferablepolylinebatchedfeature_transferPoints(this.__wbg_ptr)}transferPointsSizes(){return R.transferablepolylinebatchedfeature_transferPointsSizes(this.__wbg_ptr)}};Symbol.dispose&&(no.prototype[Symbol.dispose]=no.prototype.free);var ro=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ys.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablerasterdemdata_free(e,0)}get decoder(){let e=R.__wbg_get_transferablerasterdemdata_decoder(this.__wbg_ptr);return va.__wrap(e)}set decoder(e){N(e,va);var t=e.__destroy_into_raw();R.__wbg_set_transferablerasterdemdata_decoder(this.__wbg_ptr,t)}constructor(e){N(e,va);var t=e.__destroy_into_raw();let n=R.transferablerasterdemdata_new(t);return this.__wbg_ptr=n,ys.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ro.prototype[Symbol.dispose]=ro.prototype.free);var io=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferabletile_free(e,0)}get cached_mesh_handle(){let e=R.__wbg_get_transferabletile_cached_mesh_handle(this.__wbg_ptr);return e===0?void 0:sa.__wrap(e)}get coords(){let e=R.__wbg_get_transferabletile_coords(this.__wbg_ptr);return Xa.__wrap(e)}get max_height(){return R.__wbg_get_transferabletile_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_transferabletile_min_height(this.__wbg_ptr)}set cached_mesh_handle(e){let t=0;F(e)||(N(e,sa),t=e.__destroy_into_raw()),R.__wbg_set_transferabletile_cached_mesh_handle(this.__wbg_ptr,t)}set coords(e){N(e,Xa);var t=e.__destroy_into_raw();R.__wbg_set_transferabletile_coords(this.__wbg_ptr,t)}set max_height(e){R.__wbg_set_transferabletile_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_transferabletile_min_height(this.__wbg_ptr,e)}constructor(e,t,n,r){N(e,Xa);var i=e.__destroy_into_raw();let a=0;F(r)||(N(r,sa),a=r.__destroy_into_raw());let o=R.transferabletile_new(i,t,n,a);return this.__wbg_ptr=o,bs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(io.prototype[Symbol.dispose]=io.prototype.free);var ao=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transform_free(e,0)}get qw(){return R.__wbg_get_transform_qw(this.__wbg_ptr)}get qx(){return R.__wbg_get_transform_qx(this.__wbg_ptr)}get qy(){return R.__wbg_get_transform_qy(this.__wbg_ptr)}get qz(){return R.__wbg_get_transform_qz(this.__wbg_ptr)}get sx(){return R.__wbg_get_transform_sx(this.__wbg_ptr)}get sy(){return R.__wbg_get_transform_sy(this.__wbg_ptr)}get sz(){return R.__wbg_get_transform_sz(this.__wbg_ptr)}get tx(){return R.__wbg_get_transform_tx(this.__wbg_ptr)}get ty(){return R.__wbg_get_transform_ty(this.__wbg_ptr)}get tz(){return R.__wbg_get_transform_tz(this.__wbg_ptr)}set qw(e){R.__wbg_set_transform_qw(this.__wbg_ptr,e)}set qx(e){R.__wbg_set_transform_qx(this.__wbg_ptr,e)}set qy(e){R.__wbg_set_transform_qy(this.__wbg_ptr,e)}set qz(e){R.__wbg_set_transform_qz(this.__wbg_ptr,e)}set sx(e){R.__wbg_set_transform_sx(this.__wbg_ptr,e)}set sy(e){R.__wbg_set_transform_sy(this.__wbg_ptr,e)}set sz(e){R.__wbg_set_transform_sz(this.__wbg_ptr,e)}set tx(e){R.__wbg_set_transform_tx(this.__wbg_ptr,e)}set ty(e){R.__wbg_set_transform_ty(this.__wbg_ptr,e)}set tz(e){R.__wbg_set_transform_tz(this.__wbg_ptr,e)}constructor(e,t,n,r,i,a,o,s,c,l){let u=R.transform_new(e,t,n,r,i,a,o,s,c,l);return this.__wbg_ptr=u,xs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ao.prototype[Symbol.dispose]=ao.prototype.free);var oo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_uintattribute_free(e,0)}get size(){return R.__wbg_get_uintattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_uintattribute_size(this.__wbg_ptr,e)}constructor(e,t){let n=Ks(e,R.__wbindgen_malloc),r=L,i=R.uintattribute_new(n,r,t);return this.__wbg_ptr=i,Ss.register(this,this.__wbg_ptr,this),this}transferData(){return R.uintattribute_transferData(this.__wbg_ptr)}};Symbol.dispose&&(oo.prototype[Symbol.dispose]=oo.prototype.free);var so=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_upsamplableterraingeometry_free(e,0)}constructor(e,t,n,r,i){let a=Js(e,R.__wbindgen_malloc),o=L,s=Ks(t,R.__wbindgen_malloc),c=L,l=Js(n,R.__wbindgen_malloc),u=L;var d=F(r)?0:Js(r,R.__wbindgen_malloc),f=L,p=F(i)?0:qs(i,R.__wbindgen_malloc),m=L;let h=R.upsamplableterraingeometry_new(a,o,s,c,l,u,d,f,p,m);return this.__wbg_ptr=h,Cs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(so.prototype[Symbol.dispose]=so.prototype.free);var j=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ws.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ws.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec2_free(e,0)}get x(){return R.__wbg_get_vec2_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec2_y(this.__wbg_ptr)}set x(e){R.__wbg_set_vec2_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec2_y(this.__wbg_ptr,e)}constructor(e,t){let n=R.vec2_new(e,t);return this.__wbg_ptr=n,ws.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var M=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ts.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec3_free(e,0)}get x(){return R.__wbg_get_vec3_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec3_y(this.__wbg_ptr)}get z(){return R.__wbg_get_vec3_z(this.__wbg_ptr)}set x(e){R.__wbg_set_vec3_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec3_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_vec3_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.vec3_new(e,t,n);return this.__wbg_ptr=r,Ts.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);var co=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_windingorder_free(e,0)}get 0(){return R.__wbg_get_windingorder_0(this.__wbg_ptr)}set 0(e){R.__wbg_set_windingorder_0(this.__wbg_ptr,e)}};Symbol.dispose&&(co.prototype[Symbol.dispose]=co.prototype.free);var lo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_window_free(e,0)}get height(){return R.__wbg_get_window_height(this.__wbg_ptr)}get pixelRatio(){return R.__wbg_get_window_pixelRatio(this.__wbg_ptr)}get width(){return R.__wbg_get_window_width(this.__wbg_ptr)}set height(e){R.__wbg_set_window_height(this.__wbg_ptr,e)}set pixelRatio(e){R.__wbg_set_window_pixelRatio(this.__wbg_ptr,e)}set width(e){R.__wbg_set_window_width(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.window_new(e,t,n);return this.__wbg_ptr=r,Ds.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(lo.prototype[Symbol.dispose]=lo.prototype.free);function uo(e,t,n,r){N(e,to);var i=e.__destroy_into_raw();N(t,La);var a=t.__destroy_into_raw();let o=0;F(r)||(N(r,Sa),o=r.__destroy_into_raw());let s=R.constructPolygonBatchedFeature(i,a,n,o);return s===0?void 0:ha.__wrap(s)}function fo(e,t,n){N(e,no);var r=e.__destroy_into_raw();N(t,Va);var i=t.__destroy_into_raw();let a=R.constructPolylineBatchedFeature(r,i,n);return a===0?void 0:_a.__wrap(a)}function po(e,t,n,r,i,a){let o=qs(e,R.__wbindgen_malloc),s=L;N(t,io);var c=t.__destroy_into_raw();let l=R.constructQuantizedMeshTerrainMesh(o,s,c,n,r,i,a);return Ga.__wrap(l)}function mo(e,t,n,r,i,a){let o=qs(e,R.__wbindgen_malloc),s=L;N(t,io);var c=t.__destroy_into_raw();N(n,ro);var l=n.__destroy_into_raw();N(r,$a);var u=r.__destroy_into_raw();let d=R.constructTerrainMesh(o,s,c,l,u,i,a);return Ga.__wrap(d)}function ho(e,t,n,r,i,a,o){let s=qs(e,R.__wbindgen_malloc),c=L,l=0;F(i)||(N(i,Sa),l=i.__destroy_into_raw());let u=I(o,R.__wbindgen_malloc,R.__wbindgen_realloc),d=L,f=R.parseMvtTile(s,c,t,n,r,l,a,u,d);if(f[2])throw Zs(f[1]);return eo.__wrap(f[0])}function go(e,t,n,r,i,a,o){N(e,io);var s=e.__destroy_into_raw();N(t,io);var c=t.__destroy_into_raw();N(n,so);var l=n.__destroy_into_raw();let u=R.upsampleQuantizedMeshTerrainMesh(s,c,l,r,i,a,o);return Ga.__wrap(u)}function _o(e,t,n,r,i,a,o){N(e,io);var s=e.__destroy_into_raw();N(t,io);var c=t.__destroy_into_raw();N(n,ro);var l=n.__destroy_into_raw();N(r,so);var u=r.__destroy_into_raw();let d=R.upsampleTerrainMesh(s,c,l,u,i,a,o);return Ga.__wrap(d)}function vo(){return{__proto__:null,"./navara_wasm_worker_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,t){return Error(Bs(e,t))},__wbg_Number_9a4e0ecb0fa16705:function(e){return Number(e)},__wbg_String_8564e559799eccda:function(e,t){let n=I(String(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;P().setInt32(e+4,r,!0),P().setInt32(e+0,n,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(e,t){let n=t,r=typeof n==`bigint`?n:void 0;P().setBigInt64(e+8,F(r)?BigInt(0):r,!0),P().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(e){let t=e,n=typeof t==`boolean`?t:void 0;return F(n)?16777215:+!!n},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(e,t){let n=I(ks(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;P().setInt32(e+4,r,!0),P().setInt32(e+0,n,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(e,t){return e in t},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(e){return typeof e==`bigint`},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(e){return typeof e==`function`},__wbg___wbindgen_is_object_a27215656b807791:function(e){let t=e;return typeof t==`object`&&!!t},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(e,t){return e===t},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(e,t){return e==t},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R.memory},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(e,t){let n=t,r=typeof n==`number`?n:void 0;P().setFloat64(e+8,F(r)?0:r,!0),P().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=F(r)?0:I(r,R.__wbindgen_malloc,R.__wbindgen_realloc),a=L;P().setInt32(e+4,a,!0),P().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(Bs(e,t))},__wbg_buffer_0f212447ac64c53b:function(e){return e.buffer},__wbg_call_8a2dd23819f8a60a:function(){return Gs(function(e,t){return e.call(t)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return Gs(function(e,t,n){return e.call(t,n)},arguments)},__wbg_done_89b2b13e91a60321:function(e){return e.done},__wbg_entries_015dc610cd81ede0:function(e){return Object.entries(e)},__wbg_get_507a50627bffa49b:function(e,t){return e[t>>>0]},__wbg_get_c7eb1f358a7654df:function(){return Gs(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(e,t){return e[t>>>0]},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t},__wbg_instanceof_Map_e5b5e3db98422fcc:function(e){let t;try{t=e instanceof Map}catch{t=!1}return t},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t},__wbg_isArray_0677c962b281d01a:function(e){return Array.isArray(e)},__wbg_isSafeInteger_04f36e4056f1b851:function(e){return Number.isSafeInteger(e)},__wbg_iterator_6f722e4a93058b71:function(){return Symbol.iterator},__wbg_length_0133fa10e3234c57:function(e){return e.length},__wbg_length_1f0964f4a5e2c6d8:function(e){return e.length},__wbg_length_370319915dc99107:function(e){return e.length},__wbg_length_381d540857ec99e8:function(e){return e.length},__wbg_length_98f10d1e2f4ea968:function(e){return e.length},__wbg_lle_new:function(e){return Da.__wrap(e)},__wbg_log_631549b8bf4c7159:function(e,t){console.log(Bs(e,t))},__wbg_new_32b398fb48b6d94a:function(){return[]},__wbg_new_80efd62ef570c5de:function(e){return new Float64Array(e)},__wbg_new_92a08b12c30e98e8:function(e){return new Float32Array(e)},__wbg_new_cd45aabdf6073e84:function(e){return new Uint8Array(e)},__wbg_new_da52cf8fe3429cb2:function(){return{}},__wbg_new_dfd44b7151fab657:function(e){return new Uint32Array(e)},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_5784416b97d45088:function(e,t,n){return new Float64Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_c6e1a1aae380b2ff:function(e,t,n){return new Uint32Array(e,t>>>0,n>>>0)},__wbg_next_6dbf2c0ac8cde20f:function(e){return e.next},__wbg_next_71f2aa1cb3d1e37e:function(){return Gs(function(e){return e.next()},arguments)},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,n){Uint8Array.prototype.set.call(Ps(e,t),n)},__wbg_push_d2ae3af0c1217ae6:function(e,t){return e.push(t)},__wbg_set_1e016b6a1b5f7cb3:function(e,t,n){e.set(As(t,n))},__wbg_set_29967298e530d279:function(e,t,n){e.set(js(t,n))},__wbg_set_4d7dd76f3dae2926:function(e,t,n){e.set(Ps(t,n))},__wbg_set_6be42768c690e380:function(e,t,n){e[t]=n},__wbg_set_8535240470bf2500:function(){return Gs(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_8a16b38e4805b298:function(e,t,n){e[t>>>0]=n},__wbg_set_b5e6b338281ca6ff:function(e,t,n){e.set(Ns(t,n))},__wbg_texturefragment_new:function(e){return Ja.__wrap(e)},__wbg_tileuvtransform_new:function(e){return Ya.__wrap(e)},__wbg_value_a5d5488a9589444a:function(e){return e.value},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e,t){return Bs(e,t)},__wbindgen_cast_0000000000000004:function(e){return BigInt.asUintN(64,e)},__wbindgen_init_externref_table:function(){let e=R.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}let yo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_aabb_free(e,1)),bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_batchpropresult_free(e,1)),xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_billboardmaterial_free(e,1)),So=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_boundingsphere_free(e,1)),Co=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cachedmeshhandle_free(e,1)),wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameracontrolupdateevent_free(e,1)),To=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameraflightendedevent_free(e,1)),Eo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerafrustum_free(e,1)),Do=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameraorientation_free(e,1)),Oo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerastatus_free(e,1)),ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledexpression_free(e,1)),Ao=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledfilter_free(e,1)),jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygongeometry_free(e,1)),Mo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygonoutlinegeometry_free(e,1)),No=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolylinegeometry_free(e,1)),Po=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationdecoder_free(e,1)),Fo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationheatmapmaterial_free(e,1)),Io=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ellipsoidgeodesic_free(e,1)),Lo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_encodedvec3_free(e,1)),Ro=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_extentradianf32_free(e,1)),zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_floatattribute_free(e,1)),Bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_geometry_free(e,1)),Vo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_globe_free(e,1)),Ho=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_hillshadematerial_free(e,1)),Uo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_lle_free(e,1)),Wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelinternalmaterial_free(e,1)),Go=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelmaterial_free(e,1)),Ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_nearfar_free(e,1)),qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_overscaledtilehandle_free(e,1)),Jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_plane_free(e,1)),Yo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_pointmaterial_free(e,1)),Xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometry_free(e,1)),Zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometryattributes_free(e,1)),Qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygoninternalmaterial_free(e,1)),$o=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygonmaterial_free(e,1)),es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometry_free(e,1)),ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometryattributes_free(e,1)),ns=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylineinternalmaterial_free(e,1)),rs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinematerial_free(e,1)),is=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastermaterial_free(e,1)),as=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastertileinternalmaterial_free(e,1)),os=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ray_free(e,1)),ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_returnedconstructedterrainmesh_free(e,1)),cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_terrainmaterial_free(e,1)),ls=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_textmaterial_free(e,1)),us=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_texturefragment_free(e,1)),ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tileuvtransform_free(e,1)),fs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tilexyz_free(e,1)),ps=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablehierarchy_free(e,1)),ms=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableholes_free(e,1)),hs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablemartini_free(e,1)),gs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableparsedmvtresult_free(e,1)),_s=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolygonbatchedfeature_free(e,1)),vs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolylinebatchedfeature_free(e,1)),ys=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablerasterdemdata_free(e,1)),bs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferabletile_free(e,1)),xs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transform_free(e,1)),Ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_uintattribute_free(e,1)),Cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_upsamplableterraingeometry_free(e,1)),ws=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec2_free(e,1)),Ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec3_free(e,1)),Es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_windingorder_free(e,1)),Ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_window_free(e,1));function Os(e){let t=R.__externref_table_alloc();return R.__wbindgen_externrefs.set(t,e),t}function N(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function ks(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=ks(e[0]));for(let r=1;r<t;r++)n+=`, `+ks(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function As(e,t){return e>>>=0,Ls().subarray(e/4,e/4+t)}function js(e,t){return e>>>=0,zs().subarray(e/8,e/8+t)}function Ms(e,t){e>>>=0;let n=P(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(R.__wbindgen_externrefs.get(n.getUint32(i,!0)));return R.__externref_drop_slice(e,t),r}function Ns(e,t){return e>>>=0,Hs().subarray(e/4,e/4+t)}function Ps(e,t){return e>>>=0,Ws().subarray(e/1,e/1+t)}let Fs=null;function P(){return(Fs===null||Fs.buffer.detached===!0||Fs.buffer.detached===void 0&&Fs.buffer!==R.memory.buffer)&&(Fs=new DataView(R.memory.buffer)),Fs}let Is=null;function Ls(){return(Is===null||Is.byteLength===0)&&(Is=new Float32Array(R.memory.buffer)),Is}let Rs=null;function zs(){return(Rs===null||Rs.byteLength===0)&&(Rs=new Float64Array(R.memory.buffer)),Rs}function Bs(e,t){return ec(e>>>0,t)}let Vs=null;function Hs(){return(Vs===null||Vs.byteLength===0)&&(Vs=new Uint32Array(R.memory.buffer)),Vs}let Us=null;function Ws(){return(Us===null||Us.byteLength===0)&&(Us=new Uint8Array(R.memory.buffer)),Us}function Gs(e,t){try{return e.apply(this,t)}catch(e){let t=Os(e);R.__wbindgen_exn_store(t)}}function F(e){return e==null}function Ks(e,t){let n=t(e.length*4,4)>>>0;return Hs().set(e,n/4),L=e.length,n}function qs(e,t){let n=t(e.length*1,1)>>>0;return Ws().set(e,n/1),L=e.length,n}function Js(e,t){let n=t(e.length*4,4)>>>0;return Ls().set(e,n/4),L=e.length,n}function Ys(e,t){let n=t(e.length*8,8)>>>0;return zs().set(e,n/8),L=e.length,n}function Xs(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=Os(e[t]);P().setUint32(n+4*t,r,!0)}return L=e.length,n}function I(e,t,n){if(n===void 0){let n=tc.encode(e),r=t(n.length,1)>>>0;return Ws().subarray(r,r+n.length).set(n),L=n.length,r}let r=e.length,i=t(r,1)>>>0,a=Ws(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=Ws().subarray(i+o,i+r),a=tc.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return L=o,i}function Zs(e){let t=R.__wbindgen_externrefs.get(e);return R.__externref_table_dealloc(e),t}let Qs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});Qs.decode();let $s=0;function ec(e,t){return $s+=t,$s>=2146435072&&(Qs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),Qs.decode(),$s=t),Qs.decode(Ws().subarray(e,e+t))}let tc=new TextEncoder;`encodeInto`in tc||(tc.encodeInto=function(e,t){let n=tc.encode(e);return t.set(n),{read:e.length,written:n.length}});let L=0,R;function nc(e,t){return R=e.exports,Fs=null,Is=null,Rs=null,Vs=null,Us=null,R.__wbindgen_start(),R}async function rc(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(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",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function ic(e){if(R!==void 0)return R;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(``+new URL(`navara_wasm_worker_bg-C1dUd_Nk.wasm`,self.location.href).href,``+self.location.href));let t=vo();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await rc(await e,t);return nc(n,r)}function ac(e){let t=new ee(e);return{result:t,transfers:[t.batch_id?.buffer,t.batch_index?.buffer,t.normal?.buffer,t.position_3d_high?.buffer,t.position_3d_low?.buffer,t.position?.buffer,t.scale_normal_and_cap?.buffer,t.indices.buffer,t.outline_position?.buffer,t.outline_position_3d_high?.buffer,t.outline_position_3d_low?.buffer,t.outline_scale_normal_and_cap?.buffer,t.outline_skip_indices?.buffer,t.outline_batch_index?.buffer].filter(T)}}function oc(e){return new io(sc(e.coords),e.max_height,e.min_height,e.cached_mesh_handle?cc(e.cached_mesh_handle):void 0)}function sc(e){return new Xa(e.x,e.y,e.z)}function cc(e){return new sa(e.vertices,e.indices,e.uvs,e.heights)}function lc(e){return new so(e.uvs,e.indices,e.heights,e.normals,e.watermask)}function uc(e){return new Sa(e.west,e.south,e.east,e.north)}function dc(e){return new La(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.extrudedHeight,e.wireframe,e.outline,e.perPositionHeight,e.__internal__)}function fc(e){let t=new to(e.crs,e.length);return t.setOuterRing(e.outer_ring.length,t=>{t.set(e.outer_ring)}),t.setOuterRingSizes(e.outer_ring_sizes.length,t=>{t.set(e.outer_ring_sizes)}),t.setHoles(e.holes.length,t=>{t.set(e.holes)}),t.setHolesSizes(e.holes_sizes.length,t=>{t.set(e.holes_sizes)}),t.setHolesTotalSizes(e.holes_total_sizes.length,t=>{t.set(e.holes_total_sizes)}),t.setHolesBoundaries(e.holes_boundaries.length,t=>{t.set(e.holes_boundaries)}),t.setExpectedWindingOrders(e.expected_winding_orders.length,t=>{t.set(e.expected_winding_orders)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}let pc;async function mc(){return pc??=ic(),pc}async function hc(){if(!pc)return 0;let{memory:e}=await pc;return e.buffer.byteLength}async function gc(e,t,n,r){await mc();let i=uo(fc(e),dc(t),n,r?uc(r):void 0);if(!i)return;let{result:a,transfers:o}=ac(i);return i.free(),Mc(a,o)}function _c(e){let t=new k(e);return{result:t,transfers:[t.position.buffer,t.position_high?.buffer,t.position_low?.buffer,t.start?.buffer,t.start_high?.buffer,t.start_low?.buffer,t.end_high?.buffer,t.end_low?.buffer,t.start_normals?.buffer,t.forward_offset?.buffer,t.end_normal_and_texture_coordinate_normalization_x?.buffer,t.right_normal_and_texture_coordinate_normalization_y.buffer,t.batch_id?.buffer,t.batch_index?.buffer,t.indices.buffer].filter(T)}}function vc(e){return new Va(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.width,e.maxWidth,e.__internal__)}function yc(e){let t=new no(e.crs,e.length);return t.setPoints(e.points.length,t=>{t.set(e.points)}),t.setPointsSizes(e.points_sizes.length,t=>{t.set(e.points_sizes)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}async function bc(e,t,n){await mc();let r=fo(yc(e),vc(t),n);if(!r)return;let{result:i,transfers:a}=_c(r);return r.free(),Mc(i,a)}function xc(e){let t=new D(e),n=[t.vertices.buffer,t.uvs.buffer,t.indices.buffer,t.heights.buffer];return t.normals&&n.push(t.normals.buffer),t.skirt_vertices&&n.push(t.skirt_vertices.buffer),t.skirt_uvs&&n.push(t.skirt_uvs.buffer),t.skirt_indices&&n.push(t.skirt_indices.buffer),t.skirt_normals&&n.push(t.skirt_normals.buffer),t.watermask&&n.push(t.watermask.buffer),{result:t,transfers:n}}async function Sc(e,t,n,r,i,a){await mc();let o=po(e,oc(t),n,r,i,a),{result:s,transfers:c}=xc(o);return o.free(),Mc({result:s},[...c])}function Cc(e){return new ro(new va(e.decoder.r_scaler,e.decoder.g_scaler,e.decoder.b_scaler,e.decoder.offset,e.decoder.max_offset,e.decoder.min_offset,e.decoder.boundary,e.decoder.epsilon))}async function wc(e,t,n,r,i,a){await mc();let o=r+1,s=$a.fromSize(o),c=mo(e,oc(t),Cc(n),s,i,a),{result:l,transfers:u}=xc(c);return c.free(),Mc({result:l},[...u])}async function Tc(e){let t=await createImageBitmap(e);try{let e=new OffscreenCanvas(t.width,t.height).getContext(`2d`);if(e===null)throw Error(`failed to get context of canvas`);e.drawImage(t,0,0);let n=e.getImageData(0,0,t.width,t.height).data;return Mc(n,[n.buffer])}finally{t.close()}}async function Ec(e,t){try{let n=t.getContext(`2d`);if(n===null)throw Error(`failed to get context of canvas`);return n.drawImage(e,0,0),n.getImageData(0,0,e.width,e.height).data}finally{e.close()}}async function Dc(e,t,n,r,i,a,o){await mc();let s=ho(e,t,n,r,i?uc(i):void 0,a,o),c,l,u,d,f;try{c=s.f64_stream(),l=s.f32_stream(),u=s.u32_stream(),d=s.u8_stream(),f=s.meta()}finally{s.free()}return Mc({f64_stream:c,f32_stream:l,u32_stream:u,u8_stream:d,meta:f},[c.buffer,l.buffer,u.buffer,d.buffer])}async function Oc(e,t,n,r,i,a,o){await mc();let s=go(oc(e),oc(t),lc(n),r,i,a,o),{result:c,transfers:l}=xc(s);return s.free(),Mc(c,l)}async function kc(e,t,n,r,i,a,o){await mc();let s=_o(oc(e),oc(t),Cc(n),lc(r),i,a,o),{result:c,transfers:l}=xc(s);return s.free(),Mc(c,l)}async function Ac(){await mc()}let jc={constructTerrainMesh:wc,constructQuantizedMeshTerrainMesh:Sc,upsampleTerrainMesh:kc,upsampleQuantizedMeshTerrainMesh:Oc,getImageDataFromImageBitmap:Ec,getImageDataFromBlob:Tc,constructPolygonBatchedFeature:gc,constructPolylineBatchedFeature:bc,parseMvtTile:Dc,warmUp:Ac,getWasmMemoryUsage:hc},Mc=(e,t)=>new S.Transfer(e,t),Nc=!1,Pc=(...e)=>(Nc||=(S.worker(jc),Fc(),!0),S.worker(...e));function Fc(){jc.warmUp.worker?.addAbortListener(async()=>{})}let{initializeWorkerPool:Ic,terminateWorkerPool:Lc,warmUpWorkerPool:Rc,worker:zc,workerPoolStats:Bc,workerPoolHeapStats:Vc,probeWorkerPoolHeap:Hc}=(()=>{let e;return{initializeWorkerPool:(t,n,r)=>{if(e)throw Error(`Worker pool has already been initialized.`);e={pool:new w(t,n.total,r),manager:n}},terminateWorkerPool:()=>{e&&=(e.pool.terminate(),void 0)},warmUpWorkerPool:()=>(u(e,`initializeWorkerPool() must be invoked first.`),e.pool.warmUp()),worker:()=>(u(e,`initializeWorkerPool() must be invoked first.`),{pool:e.pool,manager:e.manager}),workerPoolStats:()=>e?.pool.stats(),workerPoolHeapStats:()=>e?.pool.heapStats(),probeWorkerPoolHeap:()=>e?.pool.probeHeap()}})();var Uc=typeof global==`object`&&global&&global.Object===Object&&global,Wc=typeof self==`object`&&self&&self.Object===Object&&self,Gc=Uc||Wc||Function(`return this`)(),Kc=Gc.Symbol,qc=Object.prototype,Jc=qc.hasOwnProperty,Yc=qc.toString,Xc=Kc?Kc.toStringTag:void 0;function Zc(e){var t=Jc.call(e,Xc),n=e[Xc];try{e[Xc]=void 0;var r=!0}catch{}var i=Yc.call(e);return r&&(t?e[Xc]=n:delete e[Xc]),i}var Qc=Object.prototype.toString;function $c(e){return Qc.call(e)}var el=`[object Null]`,tl=`[object Undefined]`,nl=Kc?Kc.toStringTag:void 0;function rl(e){return e==null?e===void 0?tl:el:nl&&nl in Object(e)?Zc(e):$c(e)}function il(e){return typeof e==`object`&&!!e}var al=`[object Symbol]`;function ol(e){return typeof e==`symbol`||il(e)&&rl(e)==al}function sl(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var cl=Array.isArray,ll=1/0,ul=Kc?Kc.prototype:void 0,dl=ul?ul.toString:void 0;function fl(e){if(typeof e==`string`)return e;if(cl(e))return sl(e,fl)+``;if(ol(e))return dl?dl.call(e):``;var t=e+``;return t==`0`&&1/e==-ll?`-0`:t}function pl(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ml(e){return e}var hl=`[object AsyncFunction]`,gl=`[object Function]`,_l=`[object GeneratorFunction]`,vl=`[object Proxy]`;function yl(e){if(!pl(e))return!1;var t=rl(e);return t==gl||t==_l||t==hl||t==vl}var bl=Gc[`__core-js_shared__`],xl=function(){var e=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Sl(e){return!!xl&&xl in e}var Cl=Function.prototype.toString;function wl(e){if(e!=null){try{return Cl.call(e)}catch{}try{return e+``}catch{}}return``}var Tl=/[\\^$.*+?()[\]{}|]/g,El=/^\[object .+?Constructor\]$/,Dl=Function.prototype,Ol=Object.prototype,kl=Dl.toString,Al=Ol.hasOwnProperty,jl=RegExp(`^`+kl.call(Al).replace(Tl,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Ml(e){return!pl(e)||Sl(e)?!1:(yl(e)?jl:El).test(wl(e))}function Nl(e,t){return e?.[t]}function Pl(e,t){var n=Nl(e,t);return Ml(n)?n:void 0}function Fl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Il=800,Ll=16,Rl=Date.now;function zl(e){var t=0,n=0;return function(){var r=Rl(),i=Ll-(r-n);if(n=r,i>0){if(++t>=Il)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Bl(e){return function(){return e}}var Vl=function(){try{var e=Pl(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Hl=zl(Vl?function(e,t){return Vl(e,`toString`,{configurable:!0,enumerable:!1,value:Bl(t),writable:!0})}:ml),Ul=9007199254740991,Wl=/^(?:0|[1-9]\d*)$/;function Gl(e,t){var n=typeof e;return t??=Ul,!!t&&(n==`number`||n!=`symbol`&&Wl.test(e))&&e>-1&&e%1==0&&e<t}function Kl(e,t,n){t==`__proto__`&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=Object.prototype.hasOwnProperty;function Yl(e,t,n){var r=e[t];(!(Jl.call(e,t)&&ql(r,n))||n===void 0&&!(t in e))&&Kl(e,t,n)}var Xl=Math.max;function Zl(e,t,n){return t=Xl(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Xl(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Fl(e,this,s)}}var Ql=9007199254740991;function $l(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ql}var eu=`[object Arguments]`;function tu(e){return il(e)&&rl(e)==eu}var nu=Object.prototype,ru=nu.hasOwnProperty,iu=nu.propertyIsEnumerable,au=tu(function(){return arguments}())?tu:function(e){return il(e)&&ru.call(e,`callee`)&&!iu.call(e,`callee`)},ou=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,su=/^\w*$/;function cu(e,t){if(cl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||ol(e)?!0:su.test(e)||!ou.test(e)||t!=null&&e in Object(t)}var lu=Pl(Object,`create`);function uu(){this.__data__=lu?lu(null):{},this.size=0}function du(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var fu=`__lodash_hash_undefined__`,pu=Object.prototype.hasOwnProperty;function mu(e){var t=this.__data__;if(lu){var n=t[e];return n===fu?void 0:n}return pu.call(t,e)?t[e]:void 0}var hu=Object.prototype.hasOwnProperty;function gu(e){var t=this.__data__;return lu?t[e]!==void 0:hu.call(t,e)}var _u=`__lodash_hash_undefined__`;function vu(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=lu&&t===void 0?_u:t,this}function yu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yu.prototype.clear=uu,yu.prototype.delete=du,yu.prototype.get=mu,yu.prototype.has=gu,yu.prototype.set=vu;function bu(){this.__data__=[],this.size=0}function xu(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}var Su=Array.prototype.splice;function Cu(e){var t=this.__data__,n=xu(t,e);return n<0?!1:(n==t.length-1?t.pop():Su.call(t,n,1),--this.size,!0)}function wu(e){var t=this.__data__,n=xu(t,e);return n<0?void 0:t[n][1]}function Tu(e){return xu(this.__data__,e)>-1}function Eu(e,t){var n=this.__data__,r=xu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Du(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Du.prototype.clear=bu,Du.prototype.delete=Cu,Du.prototype.get=wu,Du.prototype.has=Tu,Du.prototype.set=Eu;var Ou=Pl(Gc,`Map`);function ku(){this.size=0,this.__data__={hash:new yu,map:new(Ou||Du),string:new yu}}function Au(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ju(e,t){var n=e.__data__;return Au(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Mu(e){var t=ju(this,e).delete(e);return this.size-=+!!t,t}function Nu(e){return ju(this,e).get(e)}function Pu(e){return ju(this,e).has(e)}function Fu(e,t){var n=ju(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Iu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Iu.prototype.clear=ku,Iu.prototype.delete=Mu,Iu.prototype.get=Nu,Iu.prototype.has=Pu,Iu.prototype.set=Fu;var Lu=`Expected a function`;function Ru(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Lu);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ru.Cache||Iu),n}Ru.Cache=Iu;var zu=500;function Bu(e){var t=Ru(e,function(e){return n.size===zu&&n.clear(),e}),n=t.cache;return t}var Vu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hu=/\\(\\)?/g,Uu=Bu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Vu,function(e,n,r,i){t.push(r?i.replace(Hu,`$1`):n||e)}),t});function Wu(e){return e==null?``:fl(e)}function Gu(e,t){return cl(e)?e:cu(e,t)?[e]:Uu(Wu(e))}var Ku=1/0;function qu(e){if(typeof e==`string`||ol(e))return e;var t=e+``;return t==`0`&&1/e==-Ku?`-0`:t}function Ju(e,t){t=Gu(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qu(t[n++])];return n&&n==r?e:void 0}function Yu(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Xu=Kc?Kc.isConcatSpreadable:void 0;function Zu(e){return cl(e)||au(e)||!!(Xu&&e&&e[Xu])}function Qu(e,t,n,r,i){var a=-1,o=e.length;for(n||=Zu,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Qu(s,t-1,n,r,i):Yu(i,s):r||(i[i.length]=s)}return i}function $u(e){return e!=null&&e.length?Qu(e,1):[]}function ed(e){return Hl(Zl(e,void 0,$u),e+``)}function td(e,t){return e!=null&&t in Object(e)}function nd(e,t,n){t=Gu(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=qu(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&$l(i)&&Gl(o,i)&&(cl(e)||au(e)))}function rd(e,t){return e!=null&&nd(e,t,td)}function id(e,t,n,r){if(!pl(e))return e;t=Gu(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=qu(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=pl(u)?u:Gl(t[i+1])?[]:{})}Yl(s,c,l),s=s[c]}return e}function ad(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ju(e,o);n(s,o)&&id(a,Gu(o,e),s)}return a}function od(e,t){return ad(e,t,function(t,n){return rd(e,n)})}var sd=ed(function(e,t){return e==null?{}:od(e,t)})
|
|
11
|
+
`,i(new O(r))}),this.processing=Object.create(null),this.tracking=Object.create(null),this.terminating=!1,this.terminated=!1,this.cleaning=!1,this.terminationHandler=null,this.lastId=0}E.prototype.methods=function(){return this.exec(`methods`)},E.prototype.exec=function(e,t,r,i){r||=n.defer();var a=++this.lastId;this.processing[a]={id:a,resolver:r,options:i};var o={message:{id:a,method:e,params:t},transfer:i&&i.transfer};this.terminated?r.reject(new O(`Worker is terminated`)):this.worker.ready?this.worker.send(o.message,o.transfer):this.requestQueue.push(o);var s=this;return r.promise.catch(function(e){if(e instanceof n.CancellationError||e instanceof n.TimeoutError)return s.tracking[a]={id:a,resolver:n.defer(),options:i,error:e},delete s.processing[a],s.tracking[a].resolver.promise=s.tracking[a].resolver.promise.catch(function(e){if(delete s.tracking[a],e instanceof D)throw e.error;return s.terminateAndNotify(!0).then(function(){throw e},function(e){throw e})}),s.worker.send({id:a,method:l}),s.tracking[a].timeoutId=setTimeout(function(){s.tracking[a].resolver.reject(e)},s.workerTerminateTimeout),s.tracking[a].resolver.promise;throw e})},E.prototype.busy=function(){return this.cleaning||Object.keys(this.processing).length>0||Object.keys(this.tracking).length>0},E.prototype.terminate=function(e,t){var n=this;if(e){for(var r in this.processing)this.processing[r]!==void 0&&this.processing[r].resolver.reject(Error(`Worker terminated`));this.processing=Object.create(null)}for(var i of Object.values(n.tracking))clearTimeout(i.timeoutId),i.resolver.reject(Error(`Worker Terminating`));if(n.tracking=Object.create(null),typeof t==`function`&&(this.terminationHandler=t),this.busy())this.terminating=!0;else{var a=function(e){if(n.terminated=!0,n.cleaning=!1,n.worker!=null&&n.worker.removeAllListeners&&n.worker.removeAllListeners(`message`),n.worker=null,n.terminating=!1,n.terminationHandler)n.terminationHandler(e,n);else if(e)throw e};if(this.worker){if(typeof this.worker.kill==`function`){if(this.worker.killed){a(Error(`worker already killed!`));return}var o=setTimeout(function(){n.worker&&n.worker.kill()},this.workerTerminateTimeout);this.worker.once(`exit`,function(){clearTimeout(o),n.worker&&(n.worker.killed=!0),a()}),this.worker.ready?this.worker.send(c):this.requestQueue.push({message:c}),this.cleaning=!0;return}if(typeof this.worker.terminate==`function`)this.worker.terminate(),this.worker.killed=!0;else throw Error(`Failed to terminate worker`)}a()}},E.prototype.terminateAndNotify=function(e,t){var r=n.defer();return t&&r.promise.timeout(t),this.terminate(e,function(e,t){e?r.reject(e):r.resolve(t)}),r.promise};function D(e){this.error=e,this.stack=Error().stack}var O=class extends Error{constructor(e,t){super(e||`worker terminated`),this.cause=t}};t.exports=E,t.exports._tryRequireWorkerThreads=_,t.exports._setupProcessWorker=S,t.exports._setupBrowserWorker=b,t.exports._setupWorkerThreadWorker=x,t.exports.ensureWorkerThreads=u,t.exports.TerminateError=O})),_=o(((e,t)=>{function n(){this.tasks=[]}n.prototype.push=function(e){this.tasks.push(e)},n.prototype.pop=function(){return this.tasks.shift()},n.prototype.size=function(){return this.tasks.length},n.prototype.contains=function(e){return this.tasks.includes(e)},n.prototype.clear=function(){this.tasks.length=0};function r(){this.tasks=[]}r.prototype.push=function(e){this.tasks.push(e)},r.prototype.pop=function(){return this.tasks.pop()},r.prototype.size=function(){return this.tasks.length},r.prototype.contains=function(e){return this.tasks.includes(e)},r.prototype.clear=function(){this.tasks.length=0},t.exports={FIFOQueue:n,LIFOQueue:r}})),v=o(((e,t)=>{t.exports=n;function n(){this.ports=Object.create(null),this.length=0}n.prototype.nextAvailableStartingAt=function(e){for(;this.ports[e]===!0;)e++;if(e>=65535)throw Error(`WorkerPool debug port limit reached: `+e+`>= 65535`);return this.ports[e]=!0,this.length++,e},n.prototype.releasePort=function(e){delete this.ports[e],this.length--}})),y=o(((e,t)=>{var{Promise:n}=p(),r=g(),i=f(),{FIFOQueue:a,LIFOQueue:o}=_(),s=new(v());function c(e,t){typeof e==`string`?this.script=e||null:(this.script=null,t=e),this.workers=[],this.taskQueue=this._createQueue(t&&t.queueStrategy||`fifo`),t||={},this.forkArgs=Object.freeze(t.forkArgs||[]),this.forkOpts=Object.freeze(t.forkOpts||{}),this.workerOpts=Object.freeze(t.workerOpts||{}),this.workerThreadOpts=Object.freeze(t.workerThreadOpts||{}),this.debugPortStart=t.debugPortStart||43210,this.nodeWorker=t.nodeWorker,this.workerType=t.workerType||t.nodeWorker||`auto`,this.maxQueueSize=t.maxQueueSize||1/0,this.workerTerminateTimeout=t.workerTerminateTimeout||1e3,this.onCreateWorker=t.onCreateWorker||(()=>null),this.onTerminateWorker=t.onTerminateWorker||(()=>null),this.emitStdStreams=t.emitStdStreams||!1,t&&`maxWorkers`in t?(l(t.maxWorkers),this.maxWorkers=t.maxWorkers):this.maxWorkers=Math.max((i.cpus||4)-1,1),t&&`minWorkers`in t&&(t.minWorkers===`max`?this.minWorkers=this.maxWorkers:(u(t.minWorkers),this.minWorkers=t.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),this.workerType===`thread`&&r.ensureWorkerThreads()}c.prototype.exec=function(e,t,r){if(t&&!Array.isArray(t))throw TypeError(`Array expected as argument "params"`);if(typeof e==`string`){var i=n.defer();if(this.taskQueue.size()>=this.maxQueueSize)throw Error(`Max queue size of `+this.maxQueueSize+` reached`);var a={method:e,params:t,resolver:i,timeout:null,options:r};this.taskQueue.push(a);var o=i.promise.timeout,s=this.taskQueue;return i.promise.timeout=function(e){return s.contains(a)?(a.timeout=e,i.promise):o.call(i.promise,e)},this._next(),i.promise}if(typeof e==`function`)return this.exec(`run`,[String(e),t],r);throw TypeError(`Function or string expected as argument "method"`)},c.prototype.proxy=function(){if(arguments.length>0)throw Error(`No arguments expected`);var e=this;return this.exec(`methods`).then(function(t){var n={};return t.forEach(function(t){n[t]=function(){return e.exec(t,Array.prototype.slice.call(arguments))}}),n})},c.prototype._next=function(){if(this.taskQueue.size()>0){var e=this._getWorker();if(e){var t=this,n=this.taskQueue.pop();if(n.resolver.promise.pending){var r=e.exec(n.method,n.params,n.resolver,n.options).then(t._boundNext).catch(function(){if(e.terminated)return t._removeWorker(e)}).then(function(){t._next()});typeof n.timeout==`number`&&r.timeout(n.timeout)}else t._next()}}},c.prototype._getWorker=function(){for(var e=this.workers,t=0;t<e.length;t++){var n=e[t];if(n.busy()===!1)return n}return e.length<this.maxWorkers?(n=this._createWorkerHandler(),e.push(n),n):null},c.prototype._removeWorker=function(e){var t=this;return s.releasePort(e.debugPort),this._removeWorkerFromList(e),this._ensureMinWorkers(),new n(function(n,r){e.terminate(!1,function(i){t.onTerminateWorker({forkArgs:e.forkArgs,forkOpts:e.forkOpts,workerThreadOpts:e.workerThreadOpts,script:e.script}),i?r(i):n(e)})})},c.prototype._removeWorkerFromList=function(e){var t=this.workers.indexOf(e);t!==-1&&this.workers.splice(t,1)},c.prototype.terminate=function(e,t){for(var r=this,i=this.taskQueue;i.size()>0;){var a=i.pop();if(a)a.resolver.reject(Error(`Pool terminated`));else break}i.clear();var o=function(e){s.releasePort(e.debugPort),this._removeWorkerFromList(e)}.bind(this),c=[];return this.workers.slice().forEach(function(n){var i=n.terminateAndNotify(e,t).then(o).always(function(){r.onTerminateWorker({forkArgs:n.forkArgs,forkOpts:n.forkOpts,workerThreadOpts:n.workerThreadOpts,script:n.script})});c.push(i)}),n.all(c)},c.prototype.stats=function(){var e=this.workers.length,t=this.workers.filter(function(e){return e.busy()}).length;return{totalWorkers:e,busyWorkers:t,idleWorkers:e-t,pendingTasks:this.taskQueue.size(),activeTasks:t}},c.prototype._ensureMinWorkers=function(){if(this.minWorkers)for(var e=this.workers.length;e<this.minWorkers;e++)this.workers.push(this._createWorkerHandler())},c.prototype._createWorkerHandler=function(){let e=this.onCreateWorker({forkArgs:this.forkArgs,forkOpts:this.forkOpts,workerOpts:this.workerOpts,workerThreadOpts:this.workerThreadOpts,script:this.script})||{};return new r(e.script||this.script,{forkArgs:e.forkArgs||this.forkArgs,forkOpts:e.forkOpts||this.forkOpts,workerOpts:e.workerOpts||this.workerOpts,workerThreadOpts:e.workerThreadOpts||this.workerThreadOpts,debugPort:s.nextAvailableStartingAt(this.debugPortStart),workerType:this.workerType,workerTerminateTimeout:this.workerTerminateTimeout,emitStdStreams:this.emitStdStreams})},c.prototype._createQueue=function(e){if(typeof e==`string`)switch(e){case`fifo`:return new a;case`lifo`:return new o;default:throw Error(`Unknown queue strategy: `+e)}if(!e)throw Error(`Queue strategy cannot be null or undefined`);for(var t=[`push`,`pop`,`size`,`contains`,`clear`],n=0;n<t.length;n++){var r=t[n];if(typeof e[r]!=`function`)throw Error(`Queue strategy must implement method: `+r)}return e};function l(e){if(!d(e)||!m(e)||e<1)throw TypeError(`Option maxWorkers must be an integer number >= 1`)}function u(e){if(!d(e)||!m(e)||e<0)throw TypeError(`Option minWorkers must be an integer number >= 0`)}function d(e){return typeof e==`number`}function m(e){return Math.round(e)==e}t.exports=c})),b=o(((e,t)=>{function n(e,t){this.message=e,this.transfer=t}t.exports=n})),x=o((e=>{var t=b(),n=p().Promise,r=`__workerpool-terminate__`,i=`__workerpool-cleanup__`,a=1e3,o={exit:function(){}},s={addAbortListener:function(e){o.abortListeners.push(e)},emit:o.emit};if(typeof self<`u`&&typeof postMessage==`function`&&typeof addEventListener==`function`)o.on=function(e,t){addEventListener(e,function(e){t(e.data)})},o.send=function(e,t){t?postMessage(e,t):postMessage(e)};else if(typeof process<`u`){var c;try{c=d()}catch(e){if(!(typeof e==`object`&&e&&e.code===`MODULE_NOT_FOUND`))throw e}if(c&&c.parentPort!==null){var l=c.parentPort;o.send=l.postMessage.bind(l),o.on=l.on.bind(l),o.exit=process.exit.bind(process)}else o.on=process.on.bind(process),o.send=function(e){process.send(e)},o.on(`disconnect`,function(){process.exit(1)}),o.exit=process.exit.bind(process)}else throw Error(`Script must be executed as a worker`);function u(e){return e&&e.toJSON?JSON.parse(JSON.stringify(e)):JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}function f(e){return e&&typeof e.then==`function`&&typeof e.catch==`function`}o.methods={},o.methods.run=function(e,t){var n=Function(`return (`+e+`).apply(this, arguments);`);return n.worker=s,n.apply(n,t)},o.methods.methods=function(){return Object.keys(o.methods)},o.terminationHandler=void 0,o.abortListenerTimeout=a,o.abortListeners=[],o.terminateAndExit=function(e){var t=function(){o.exit(e)};if(!o.terminationHandler)return t();var r=o.terminationHandler(e);return f(r)?(r.then(t,t),r):(t(),new n(function(e,t){t(Error(`Worker terminating`))}))},o.cleanup=function(e){if(!o.abortListeners.length)return o.send({id:e,method:i,error:u(Error(`Worker terminating`))}),new n(function(e){e()});var t=function(){o.exit()},r=function(){o.abortListeners.length&&(o.abortListeners=[])};let a=o.abortListeners.map(e=>e()),s,c=new n((e,t)=>{s=setTimeout(function(){t(Error(`Timeout occurred waiting for abort handler, killing worker`))},o.abortListenerTimeout)}),l=n.all(a).then(function(){clearTimeout(s),r()},function(){clearTimeout(s),t()});return new n(function(e,t){l.then(e,t),c.then(e,t)}).then(function(){o.send({id:e,method:i,error:null})},function(t){o.send({id:e,method:i,error:t?u(t):null})})};var m=null;o.on(`message`,function(e){if(e===r)return o.terminateAndExit(0);if(e.method===i)return o.cleanup(e.id);try{var n=o.methods[e.method];if(n){m=e.id;var a=n.apply(n,e.params);f(a)?a.then(function(n){n instanceof t?o.send({id:e.id,result:n.message,error:null},n.transfer):o.send({id:e.id,result:n,error:null}),m=null}).catch(function(t){o.send({id:e.id,result:null,error:u(t)}),m=null}):(a instanceof t?o.send({id:e.id,result:a.message,error:null},a.transfer):o.send({id:e.id,result:a,error:null}),m=null)}else throw Error(`Unknown method "`+e.method+`"`)}catch(t){o.send({id:e.id,result:null,error:u(t)})}}),o.register=function(e,t){if(e)for(var n in e)e.hasOwnProperty(n)&&(o.methods[n]=e[n],o.methods[n].worker=s);t&&(o.terminationHandler=t.onTerminate,o.abortListenerTimeout=t.abortListenerTimeout||a),o.send(`ready`)},o.emit=function(e){if(m){if(e instanceof t){o.send({id:m,isEvent:!0,payload:e.message},e.transfer);return}o.send({id:m,isEvent:!0,payload:e})}},e!==void 0&&(e.add=o.register,e.emit=o.emit)})),S=c(o((e=>{let{platform:t,isMainThread:n,cpus:r}=f(),{TerminateError:i}=g();function a(e,t){return new(y())(e,t)}e.pool=a;function o(e,t){x().add(e,t)}e.worker=o;let{Promise:s}=p();e.Transfer=b()}))(),1);let C=e=>S.pool(e,{maxWorkers:1,minWorkers:0,workerTerminateTimeout:3e4,workerOpts:{type:void 0}});var w=class{url;maxWorkerHeapBytes;slots;idleSweepTimer;terminated=!1;constructor(e,t,n){u(t>0,`maxWorkers must be a positive number.`),this.url=e,this.maxWorkerHeapBytes=n?.maxWorkerHeapBytes??268435456,this.slots=Array.from({length:t},()=>({pool:C(e),tasksSinceSpawn:0,inflight:0,draining:!1,probing:!1,lastHeapBytes:void 0}))}exec(e,t,n){let r=this.pickSlot();r.inflight++;try{return r.pool.exec(e,t,n).then(e=>(this.onSettled(r),e)).catch(e=>{throw this.onSettled(r),e})}catch(e){throw this.onSettled(r),e}}warmUp(){let[e,...t]=this.slots;return this.warmSlot(e).then(()=>{for(let e of t)this.warmSlot(e).catch(()=>void 0)},e=>{if(t.length===0)throw e;return Promise.any(t.map(e=>this.warmSlot(e))).then(()=>void 0)})}canAcceptTasks(){return this.slots.some(e=>!e.draining)}stats(){let e={totalWorkers:0,busyWorkers:0,idleWorkers:0,pendingTasks:0,activeTasks:0,tasksSinceSpawn:0};for(let t of this.slots){let n=t.pool.stats();e.totalWorkers+=n.totalWorkers,e.busyWorkers+=n.busyWorkers,e.idleWorkers+=n.idleWorkers,e.pendingTasks+=n.pendingTasks,e.activeTasks+=n.activeTasks,e.tasksSinceSpawn+=t.tasksSinceSpawn}return e}heapStats(){let e=this.slots.map(e=>e.lastHeapBytes);return{perSlot:e,totalBytes:e.reduce((e,t)=>e+(t??0),0),maxWorkerHeapBytes:this.maxWorkerHeapBytes}}probeHeap(){if(!this.terminated)for(let e of this.slots)e.draining||this.probeSlot(e)}terminate(){this.idleSweepTimer!==void 0&&(clearTimeout(this.idleSweepTimer),this.idleSweepTimer=void 0),this.terminated=!0;for(let e of this.slots)e.pool.terminate()}pickSlot(){let e=this.slots.filter(e=>!e.draining);return(e.length>0?e:this.slots).reduce((e,t)=>t.inflight<e.inflight?t:e)}onSettled(e){e.inflight--,!this.terminated&&(e.tasksSinceSpawn++,e.tasksSinceSpawn>=128&&(e.draining=!0),e.draining&&e.inflight===0?this.recycleSlot(e):e.draining||this.probeSlot(e),this.armIdleSweep())}recycleSlot(e){e.pool.terminate(),e.pool=C(this.url),e.tasksSinceSpawn=0,e.draining=!1,e.lastHeapBytes=void 0,this.warmSlot(e).catch(()=>void 0)}warmSlot(e){e.inflight++;let t=()=>{e.inflight--,!this.terminated&&e.draining&&e.inflight===0&&this.recycleSlot(e)};return new Promise((n,r)=>{try{e.pool.exec(`warmUp`).then(()=>{t(),n()}).catch(e=>{t(),r(e)})}catch(e){t(),r(e)}})}probeSlot(e){if(e.probing)return;e.probing=!0,e.inflight++;let t=t=>{e.probing=!1,e.inflight--,!this.terminated&&(t&&(e.draining=!0),e.draining&&e.inflight===0&&this.recycleSlot(e))};try{e.pool.exec(`getWasmMemoryUsage`).then(n=>{typeof n==`number`&&(e.lastHeapBytes=n),t(typeof n==`number`&&n>=this.maxWorkerHeapBytes)}).catch(()=>{t(!0)})}catch{t(!0)}}armIdleSweep(){this.idleSweepTimer!==void 0&&clearTimeout(this.idleSweepTimer),this.idleSweepTimer=setTimeout(()=>{this.idleSweepTimer=void 0;for(let e of this.slots)e.tasksSinceSpawn>0&&e.inflight===0&&this.recycleSlot(e)},5e3)}};function T(e){return e!=null}var E=class{x;y;z;constructor(e){this.x=e.x,this.y=e.y,this.z=e.z}},D=class{vertices;uvs;indices;heights;max_height;min_height;rtc_translation;normals;skirt_vertices;skirt_uvs;skirt_indices;skirt_normals;watermask;constructor(e){this.vertices=e.transferVertices(),this.uvs=e.transferUvs(),this.indices=e.transferIndices(),this.heights=e.transferHeights(),this.max_height=e.max_height,this.min_height=e.min_height,this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0,e.hasNormals()&&(this.normals=e.transferNormals()),e.hasSkirt()&&(this.skirt_vertices=e.transferSkirtVertices(),this.skirt_uvs=e.transferSkirtUvs(),this.skirt_indices=e.transferSkirtIndices(),this.skirt_normals=e.transferSkirtNormals()),e.hasWatermask()&&(this.watermask=e.transferWatermask())}transferVertices(){throw Error()}transferUvs(){throw Error()}transferIndices(){throw Error()}transferHeights(){throw Error()}transferNormals(){throw Error()}transferSkirtVertices(){throw Error()}transferSkirtUvs(){throw Error()}transferSkirtIndices(){throw Error()}transferSkirtNormals(){throw Error()}transferWatermask(){throw Error()}hasSkirt(){return this.skirt_vertices!==void 0&&this.skirt_uvs!==void 0&&this.skirt_indices!==void 0}hasNormals(){return this.normals!==void 0}hasWatermask(){return this.watermask!==void 0}},O=class{east;north;south;west;constructor(e){this.east=e.east,this.north=e.north,this.south=e.south,this.west=e.west}},ee=class{extent;position_3d_high;position_3d_high_size;position_3d_low;position_3d_low_size;position;position_size;normal;normal_size;scale_normal_and_cap;scale_normal_and_cap_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;rtc_translation;outline_position;outline_position_size;outline_position_3d_high;outline_position_3d_high_size;outline_position_3d_low;outline_position_3d_low_size;outline_scale_normal_and_cap;outline_scale_normal_and_cap_size;outline_skip_indices;outline_batch_index;outline_batch_index_size;constructor(e){let t=e.extent;this.extent=t?new O(t):void 0,this.position_3d_high=e.position_3d_high()?.slice(),this.position_3d_high_size=e.position_3d_high_size(),this.position_3d_low=e.position_3d_low()?.slice(),this.position_3d_low_size=e.position_3d_low_size(),this.position=e.position()?.slice(),this.position_size=e.position_size(),this.normal=e.normal()?.slice(),this.normal_size=e.normal_size(),this.scale_normal_and_cap=e.scale_normal_and_cap()?.slice(),this.scale_normal_and_cap_size=e.scale_normal_and_cap_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice(),this.rtc_translation=e.rtc_translation?new E(e.rtc_translation):void 0;let n=e.outline();n&&(this.outline_position=n.position()?.slice(),this.outline_position_size=n.position_size(),this.outline_position_3d_high=n.position_3d_high()?.slice(),this.outline_position_3d_high_size=n.position_3d_high_size(),this.outline_position_3d_low=n.position_3d_low()?.slice(),this.outline_position_3d_low_size=n.position_3d_low_size(),this.outline_scale_normal_and_cap=n.scale_normal_and_cap()?.slice(),this.outline_scale_normal_and_cap_size=n.scale_normal_and_cap_size(),this.outline_skip_indices=n.skip_indices()?.slice(),this.outline_batch_index=n.batch_index()?.slice(),this.outline_batch_index_size=n.batch_index_size(),n.free())}},k=class{extent;position;position_size;position_high;position_high_size;position_low;position_low_size;start;start_size;start_high;start_high_size;start_low;start_low_size;forward_offset;forward_offset_size;end_high;end_high_size;end_low;end_low_size;start_normals;start_normals_size;end_normal_and_texture_coordinate_normalization_x;end_normal_and_texture_coordinate_normalization_x_size;right_normal_and_texture_coordinate_normalization_y;right_normal_and_texture_coordinate_normalization_y_size;batch_id;batch_id_size;batch_index;batch_index_size;indices;constructor(e){let t=e.extent;this.extent=t?new O(t):void 0,this.position=e.position().slice(),this.position_size=e.position_size(),this.position_high=e.position_high()?.slice(),this.position_high_size=e.position_high_size(),this.position_low=e.position_low()?.slice(),this.position_low_size=e.position_low_size(),this.start=e.start()?.slice(),this.start_size=e.start_size(),this.start_high=e.start_high()?.slice(),this.start_high_size=e.start_high_size(),this.start_low=e.start_low()?.slice(),this.start_low_size=e.start_low_size(),this.forward_offset=e.forward_offset()?.slice(),this.forward_offset_size=e.forward_offset_size(),this.end_high=e.end_high()?.slice(),this.end_high_size=e.end_high_size(),this.end_low=e.end_low()?.slice(),this.end_low_size=e.end_low_size(),this.start_normals=e.start_normals()?.slice(),this.start_normals_size=e.start_normals_size(),this.end_normal_and_texture_coordinate_normalization_x=e.end_normal_and_texture_coordinate_normalization_x()?.slice(),this.end_normal_and_texture_coordinate_normalization_x_size=e.end_normal_and_texture_coordinate_normalization_x_size(),this.right_normal_and_texture_coordinate_normalization_y=e.right_normal_and_texture_coordinate_normalization_y().slice(),this.right_normal_and_texture_coordinate_normalization_y_size=e.right_normal_and_texture_coordinate_normalization_y_size(),this.batch_id=e.batch_id()?.slice(),this.batch_id_size=e.batch_id_size(),this.batch_index=e.batch_index()?.slice(),this.batch_index_size=e.batch_index_size(),this.indices=e.indices().slice()}},te={value:()=>{}};function ne(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new re(n)}function re(e){this._=e}function ie(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}re.prototype=ne.prototype={constructor:re,on:function(e,t){var n=this._,r=ie(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=ae(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=oe(n[i],e.name,t);else if(t==null)for(i in n)n[i]=oe(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function ae(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function oe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=te,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var se={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ce(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),se.hasOwnProperty(t)?{space:se[t],local:e}:e}function le(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function ue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function de(e){var t=ce(e);return(t.local?ue:le)(t)}function fe(){}function pe(e){return e==null?fe:function(){return this.querySelector(e)}}function me(e){typeof e!=`function`&&(e=pe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new nn(r,this._parents)}function he(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ge(){return[]}function _e(e){return e==null?ge:function(){return this.querySelectorAll(e)}}function ve(e){return function(){return he(e.apply(this,arguments))}}function ye(e){e=typeof e==`function`?ve(e):_e(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new nn(r,i)}function be(e){return function(){return this.matches(e)}}function xe(e){return function(t){return t.matches(e)}}var Se=Array.prototype.find;function Ce(e){return function(){return Se.call(this.children,e)}}function we(){return this.firstElementChild}function Te(e){return this.select(e==null?we:Ce(typeof e==`function`?e:xe(e)))}var Ee=Array.prototype.filter;function De(){return Array.from(this.children)}function Oe(e){return function(){return Ee.call(this.children,e)}}function ke(e){return this.selectAll(e==null?De:Oe(typeof e==`function`?e:xe(e)))}function Ae(e){typeof e!=`function`&&(e=be(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new nn(r,this._parents)}function je(e){return Array(e.length)}function Me(){return new nn(this._enter||this._groups.map(je),this._parents)}function Ne(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ne.prototype={constructor:Ne,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pe(e){return function(){return e}}function Fe(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Ne(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Ie(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Ne(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Le(e){return e.__data__}function Re(e,t){if(!arguments.length)return Array.from(this,Le);var n=t?Ie:Fe,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Pe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ze(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new nn(o,r),o._enter=s,o._exit=c,o}function ze(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Be(){return new nn(this._exit||this._groups.map(je),this._parents)}function Ve(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function He(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new nn(s,this._parents)}function Ue(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function We(e){e||=Ge;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new nn(i,this._parents).order()}function Ge(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ke(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function qe(){return Array.from(this)}function Je(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Ye(){let e=0;for(let t of this)++e;return e}function Xe(){return!this.node()}function Ze(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Qe(e){return function(){this.removeAttribute(e)}}function $e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function et(e,t){return function(){this.setAttribute(e,t)}}function tt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function it(e,t){var n=ce(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?$e:Qe:typeof t==`function`?n.local?rt:nt:n.local?tt:et)(n,t))}function at(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ot(e){return function(){this.style.removeProperty(e)}}function st(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ct(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lt(e,t,n){return arguments.length>1?this.each((t==null?ot:typeof t==`function`?ct:st)(e,t,n??``)):ut(this.node(),e)}function ut(e,t){return e.style.getPropertyValue(t)||at(e).getComputedStyle(e,null).getPropertyValue(t)}function dt(e){return function(){delete this[e]}}function ft(e,t){return function(){this[e]=t}}function pt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mt(e,t){return arguments.length>1?this.each((t==null?dt:typeof t==`function`?pt:ft)(e,t)):this.node()[e]}function ht(e){return e.trim().split(/^|\s+/)}function gt(e){return e.classList||new _t(e)}function _t(e){this._node=e,this._names=ht(e.getAttribute(`class`)||``)}_t.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function vt(e,t){for(var n=gt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function yt(e,t){for(var n=gt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function bt(e){return function(){vt(this,e)}}function xt(e){return function(){yt(this,e)}}function St(e,t){return function(){(t.apply(this,arguments)?vt:yt)(this,e)}}function Ct(e,t){var n=ht(e+``);if(arguments.length<2){for(var r=gt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?St:t?bt:xt)(n,t))}function wt(){this.textContent=``}function Tt(e){return function(){this.textContent=e}}function Et(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Dt(e){return arguments.length?this.each(e==null?wt:(typeof e==`function`?Et:Tt)(e)):this.node().textContent}function Ot(){this.innerHTML=``}function kt(e){return function(){this.innerHTML=e}}function At(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function jt(e){return arguments.length?this.each(e==null?Ot:(typeof e==`function`?At:kt)(e)):this.node().innerHTML}function Mt(){this.nextSibling&&this.parentNode.appendChild(this)}function Nt(){return this.each(Mt)}function Pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ft(){return this.each(Pt)}function It(e){var t=typeof e==`function`?e:de(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Lt(){return null}function Rt(e,t){var n=typeof e==`function`?e:de(e),r=t==null?Lt:typeof t==`function`?t:pe(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zt(){var e=this.parentNode;e&&e.removeChild(this)}function Bt(){return this.each(zt)}function Vt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ht(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ut(e){return this.select(e?Ht:Vt)}function Wt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Gt(e){return function(t){e.call(this,t,this.__data__)}}function Kt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function qt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Jt(e,t,n){return function(){var r=this.__on,i,a=Gt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Yt(e,t,n){var r=Kt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Jt:qt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Xt(e,t,n){var r=at(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Zt(e,t){return function(){return Xt(this,e,t)}}function Qt(e,t){return function(){return Xt(this,e,t.apply(this,arguments))}}function $t(e,t){return this.each((typeof t==`function`?Qt:Zt)(e,t))}function*en(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var tn=[null];function nn(e,t){this._groups=e,this._parents=t}function rn(){return new nn([[document.documentElement]],tn)}function an(){return this}nn.prototype=rn.prototype={constructor:nn,select:me,selectAll:ye,selectChild:Te,selectChildren:ke,filter:Ae,data:Re,enter:Me,exit:Be,join:Ve,merge:He,selection:an,order:Ue,sort:We,call:Ke,nodes:qe,node:Je,size:Ye,empty:Xe,each:Ze,attr:it,style:lt,property:mt,classed:Ct,text:Dt,html:jt,raise:Nt,lower:Ft,append:It,insert:Rt,remove:Bt,clone:Ut,datum:Wt,on:Yt,dispatch:$t,[Symbol.iterator]:en};function on(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cn(){}var ln=.7,un=1/ln,dn=`\\s*([+-]?\\d+)\\s*`,fn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,pn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,mn=/^#([0-9a-f]{3,8})$/,hn=RegExp(`^rgb\\(${dn},${dn},${dn}\\)$`),gn=RegExp(`^rgb\\(${pn},${pn},${pn}\\)$`),_n=RegExp(`^rgba\\(${dn},${dn},${dn},${fn}\\)$`),vn=RegExp(`^rgba\\(${pn},${pn},${pn},${fn}\\)$`),yn=RegExp(`^hsl\\(${fn},${pn},${pn}\\)$`),bn=RegExp(`^hsla\\(${fn},${pn},${pn},${fn}\\)$`),xn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};on(cn,En,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sn,formatHex:Sn,formatHex8:Cn,formatHsl:wn,formatRgb:Tn,toString:Tn});function Sn(){return this.rgb().formatHex()}function Cn(){return this.rgb().formatHex8()}function wn(){return Rn(this).formatHsl()}function Tn(){return this.rgb().formatRgb()}function En(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=mn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Dn(t):n===3?new A(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?On(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?On(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=hn.exec(e))?new A(t[1],t[2],t[3],1):(t=gn.exec(e))?new A(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_n.exec(e))?On(t[1],t[2],t[3],t[4]):(t=vn.exec(e))?On(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yn.exec(e))?Ln(t[1],t[2]/100,t[3]/100,1):(t=bn.exec(e))?Ln(t[1],t[2]/100,t[3]/100,t[4]):xn.hasOwnProperty(e)?Dn(xn[e]):e===`transparent`?new A(NaN,NaN,NaN,0):null}function Dn(e){return new A(e>>16&255,e>>8&255,e&255,1)}function On(e,t,n,r){return r<=0&&(e=t=n=NaN),new A(e,t,n,r)}function kn(e){return e instanceof cn||(e=En(e)),e?(e=e.rgb(),new A(e.r,e.g,e.b,e.opacity)):new A}function An(e,t,n,r){return arguments.length===1?kn(e):new A(e,t,n,r??1)}function A(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}on(A,An,sn(cn,{brighter(e){return e=e==null?un:un**+e,new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ln:ln**+e,new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new A(Fn(this.r),Fn(this.g),Fn(this.b),Pn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jn,formatHex:jn,formatHex8:Mn,formatRgb:Nn,toString:Nn}));function jn(){return`#${In(this.r)}${In(this.g)}${In(this.b)}`}function Mn(){return`#${In(this.r)}${In(this.g)}${In(this.b)}${In((isNaN(this.opacity)?1:this.opacity)*255)}`}function Nn(){let e=Pn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Fn(this.r)}, ${Fn(this.g)}, ${Fn(this.b)}${e===1?`)`:`, ${e})`}`}function Pn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function In(e){return e=Fn(e),(e<16?`0`:``)+e.toString(16)}function Ln(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bn(e,t,n,r)}function Rn(e){if(e instanceof Bn)return new Bn(e.h,e.s,e.l,e.opacity);if(e instanceof cn||(e=En(e)),!e)return new Bn;if(e instanceof Bn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Bn(o,s,c,e.opacity)}function zn(e,t,n,r){return arguments.length===1?Rn(e):new Bn(e,t,n,r??1)}function Bn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}on(Bn,zn,sn(cn,{brighter(e){return e=e==null?un:un**+e,new Bn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ln:ln**+e,new Bn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new A(Un(e>=240?e-240:e+120,i,r),Un(e,i,r),Un(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Bn(Vn(this.h),Hn(this.s),Hn(this.l),Pn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Pn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Vn(this.h)}, ${Hn(this.s)*100}%, ${Hn(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Vn(e){return e=(e||0)%360,e<0?e+360:e}function Hn(e){return Math.max(0,Math.min(1,e||0))}function Un(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Wn=e=>()=>e;function Gn(e,t){return function(n){return e+n*t}}function Kn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function qn(e){return(e=+e)==1?Jn:function(t,n){return n-t?Kn(t,n,e):Wn(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?Gn(e,n):Wn(isNaN(e)?t:e)}var Yn=(function e(t){var n=qn(t);function r(e,t){var r=n((e=An(e)).r,(t=An(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Jn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Xn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qn=new RegExp(Zn.source,`g`);function $n(e){return function(){return e}}function er(e){return function(t){return e(t)+``}}function tr(e,t){var n=Zn.lastIndex=Qn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Zn.exec(e))&&(i=Qn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Xn(r,i)})),n=Qn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?er(c[0].x):$n(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var nr=180/Math.PI,rr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ir(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*nr,skewX:Math.atan(c)*nr,scaleX:o,scaleY:s}}var ar;function or(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?rr:ir(t.a,t.b,t.c,t.d,t.e,t.f)}function sr(e){return e==null||(ar||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),ar.setAttribute(`transform`,e),!(e=ar.transform.baseVal.consolidate()))?rr:(e=e.matrix,ir(e.a,e.b,e.c,e.d,e.e,e.f))}function cr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Xn(e,i)},{i:c-2,x:Xn(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Xn(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Xn(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Xn(e,n)},{i:s-2,x:Xn(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var lr=cr(or,`px, `,`px)`,`deg)`),ur=cr(sr,`, `,`)`,`)`),dr=0,fr=0,pr=0,mr=1e3,hr,gr,_r=0,vr=0,yr=0,br=typeof performance==`object`&&performance.now?performance:Date,xr=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Sr(){return vr||=(xr(Cr),br.now()+yr)}function Cr(){vr=0}function wr(){this._call=this._time=this._next=null}wr.prototype=Tr.prototype={constructor:wr,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Sr():+n)+(t==null?0:+t),!this._next&&gr!==this&&(gr?gr._next=this:hr=this,gr=this),this._call=e,this._time=n,Ar()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ar())}};function Tr(e,t,n){var r=new wr;return r.restart(e,t,n),r}function Er(){Sr(),++dr;for(var e=hr,t;e;)(t=vr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--dr}function Dr(){vr=(_r=br.now())+yr,dr=fr=0;try{Er()}finally{dr=0,kr(),vr=0}}function Or(){var e=br.now(),t=e-_r;t>mr&&(yr-=t,_r=e)}function kr(){for(var e,t=hr,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:hr=n);gr=e,Ar(r)}function Ar(e){dr||(fr&&=clearTimeout(fr),e-vr>24?(e<1/0&&(fr=setTimeout(Dr,e-br.now()-yr)),pr&&=clearInterval(pr)):(pr||=(_r=br.now(),setInterval(Or,mr)),dr=1,xr(Dr)))}function jr(e,t,n){var r=new wr;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Mr=ne(`start`,`end`,`cancel`,`interrupt`),Nr=[];function Pr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Rr(e,n,{name:t,index:r,group:i,on:Mr,tween:Nr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Fr(e,t){var n=Lr(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Ir(e,t){var n=Lr(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Lr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Rr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Tr(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return jr(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(jr(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function zr(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Br(e){return this.each(function(){zr(this,e)})}function Vr(e,t){var n,r;return function(){var i=Ir(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Hr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Ir(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ur(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Lr(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Vr:Hr)(n,e,t))}function Wr(e,t,n){var r=e._id;return e.each(function(){var e=Ir(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Lr(e,r).value[t]}}function Gr(e,t){var n;return(typeof t==`number`?Xn:t instanceof En?Yn:(n=En(t))?(t=n,Yn):tr)(e,t)}function Kr(e){return function(){this.removeAttribute(e)}}function qr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Yr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Xr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Zr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Qr(e,t){var n=ce(e),r=n===`transform`?ur:Gr;return this.attrTween(e,typeof t==`function`?(n.local?Zr:Xr)(n,r,Wr(this,`attr.`+e,t)):t==null?(n.local?qr:Kr)(n):(n.local?Yr:Jr)(n,r,t))}function $r(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ei(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ti(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ei(e,i)),n}return i._value=t,i}function ni(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&$r(e,i)),n}return i._value=t,i}function ri(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ce(e);return this.tween(n,(r.local?ti:ni)(r,t))}function ii(e,t){return function(){Fr(this,e).delay=+t.apply(this,arguments)}}function ai(e,t){return t=+t,function(){Fr(this,e).delay=t}}function oi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ii:ai)(t,e)):Lr(this.node(),t).delay}function si(e,t){return function(){Ir(this,e).duration=+t.apply(this,arguments)}}function ci(e,t){return t=+t,function(){Ir(this,e).duration=t}}function li(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?si:ci)(t,e)):Lr(this.node(),t).duration}function ui(e,t){if(typeof t!=`function`)throw Error();return function(){Ir(this,e).ease=t}}function di(e){var t=this._id;return arguments.length?this.each(ui(t,e)):Lr(this.node(),t).ease}function fi(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Ir(this,e).ease=n}}function pi(e){if(typeof e!=`function`)throw Error();return this.each(fi(this._id,e))}function mi(e){typeof e!=`function`&&(e=be(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Ui(r,this._parents,this._name,this._id)}function hi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Ui(o,this._parents,this._name,this._id)}function gi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function _i(e,t,n){var r,i,a=gi(t)?Fr:Ir;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function vi(e,t){var n=this._id;return arguments.length<2?Lr(this.node(),n).on.on(e):this.each(_i(n,e,t))}function yi(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function bi(){return this.on(`end.remove`,yi(this._id))}function xi(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=pe(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Pr(l[f],t,n,f,l,Lr(u,n)));return new Ui(a,this._parents,t,n)}function Si(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=_e(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Lr(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Pr(p,t,n,h,f,m);a.push(f),o.push(u)}return new Ui(a,o,t,n)}var Ci=rn.prototype.constructor;function wi(){return new Ci(this._groups,this._parents)}function Ti(e,t){var n,r,i;return function(){var a=ut(this,e),o=(this.style.removeProperty(e),ut(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Ei(e){return function(){this.style.removeProperty(e)}}function Di(e,t,n){var r,i=n+``,a;return function(){var o=ut(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Oi(e,t,n){var r,i,a;return function(){var o=ut(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),ut(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function ki(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Ir(this,e),l=c.on,u=c.value[a]==null?s||=Ei(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Ai(e,t,n){var r=(e+=``)==`transform`?lr:Gr;return t==null?this.styleTween(e,Ti(e,r)).on(`end.style.`+e,Ei(e)):typeof t==`function`?this.styleTween(e,Oi(e,r,Wr(this,`style.`+e,t))).each(ki(this._id,e)):this.styleTween(e,Di(e,r,t),n).on(`end.style.`+e,null)}function ji(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Mi(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ji(e,a,n)),r}return a._value=t,a}function Ni(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Mi(e,t,n??``))}function Pi(e){return function(){this.textContent=e}}function Fi(e){return function(){var t=e(this);this.textContent=t??``}}function Ii(e){return this.tween(`text`,typeof e==`function`?Fi(Wr(this,`text`,e)):Pi(e==null?``:e+``))}function Li(e){return function(t){this.textContent=e.call(this,t)}}function Ri(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Li(r)),t}return r._value=e,r}function zi(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Ri(e))}function Bi(){for(var e=this._name,t=this._id,n=Wi(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Lr(c,t);Pr(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ui(r,this._parents,e,n)}function Vi(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Ir(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Hi=0;function Ui(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Wi(){return++Hi}var Gi=rn.prototype;Ui.prototype={constructor:Ui,select:xi,selectAll:Si,selectChild:Gi.selectChild,selectChildren:Gi.selectChildren,filter:mi,merge:hi,selection:wi,transition:Bi,call:Gi.call,nodes:Gi.nodes,node:Gi.node,size:Gi.size,empty:Gi.empty,each:Gi.each,on:vi,attr:Qr,attrTween:ri,style:Ai,styleTween:Ni,text:Ii,textTween:zi,remove:bi,tween:Ur,delay:oi,duration:li,ease:di,easeVarying:pi,end:Vi,[Symbol.iterator]:Gi[Symbol.iterator]};function Ki(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qi={time:null,delay:0,duration:250,ease:Ki};function Ji(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Yi(e){var t,n;e instanceof Ui?(t=e._id,e=e._name):(t=Wi(),(n=qi).time=Sr(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Pr(c,e,t,l,o,n||Ji(c,t));return new Ui(r,this._parents,e,t)}rn.prototype.interrupt=Br,rn.prototype.transition=Yi;let{abs:Xi,max:Zi,min:Qi}=Math;[`w`,`e`].map($i),[`n`,`s`].map($i),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map($i);function $i(e){return{type:e}}function ea(e,t,n){this.k=e,this.x=t,this.y=n}ea.prototype={constructor:ea,scale:function(e){return e===1?this:new ea(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ea(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var ta=new ea(1,0,0);na.prototype=ea.prototype;function na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ta;return e.__zoom}var ra=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,yo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_aabb_free(e,0)}constructor(e,t){N(e,M);var n=e.__destroy_into_raw();N(t,M);var r=t.__destroy_into_raw();let i=R.aabb_new(n,r);return this.__wbg_ptr=i,yo.register(this,this.__wbg_ptr,this),this}get center(){let e=R.__wbg_get_aabb_center(this.__wbg_ptr);return M.__wrap(e)}get extent(){let e=R.__wbg_get_aabb_extent(this.__wbg_ptr);return M.__wrap(e)}set center(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_aabb_center(this.__wbg_ptr,t)}set extent(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_aabb_extent(this.__wbg_ptr,t)}};Symbol.dispose&&(ra.prototype[Symbol.dispose]=ra.prototype.free);var ia=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_batchpropresult_free(e,0)}get batchId(){let e=R.__wbg_get_batchpropresult_batchId(this.__wbg_ptr);return e===2**53-1?void 0:e}get layerId(){let e=R.__wbg_get_batchpropresult_layerId(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get properties(){return R.__wbg_get_batchpropresult_properties(this.__wbg_ptr)}set batchId(e){R.__wbg_set_batchpropresult_batchId(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set layerId(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_batchpropresult_layerId(this.__wbg_ptr,t,n)}set properties(e){R.__wbg_set_batchpropresult_properties(this.__wbg_ptr,e)}};Symbol.dispose&&(ia.prototype[Symbol.dispose]=ia.prototype.free);var aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_billboardmaterial_free(e,0)}get alphaTest(){let e=R.__wbg_get_billboardmaterial_alphaTest(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_billboardmaterial_center(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}get clampToGround(){let e=R.__wbg_get_billboardmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_billboardmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_billboardmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_billboardmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_billboardmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_billboardmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_billboardmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_billboardmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get geometryTypes(){let e=R.__wbg_get_billboardmaterial_geometryTypes(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get height(){let e=R.__wbg_get_billboardmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_billboardmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_billboardmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_billboardmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_billboardmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_billboardmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_billboardmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_billboardmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}set alphaTest(e){R.__wbg_set_billboardmaterial_alphaTest(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(N(e,j),t=e.__destroy_into_raw()),R.__wbg_set_billboardmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_billboardmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_billboardmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_billboardmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_billboardmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_billboardmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_billboardmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_billboardmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_billboardmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set geometryTypes(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_billboardmaterial_geometryTypes(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_billboardmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_billboardmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_billboardmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_billboardmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_billboardmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_billboardmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_billboardmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_billboardmaterial_url(this.__wbg_ptr,t,n)}};Symbol.dispose&&(aa.prototype[Symbol.dispose]=aa.prototype.free);var oa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,So.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_boundingsphere_free(e,0)}constructor(e,t,n,r){let i=R.boundingsphere_new(e,t,n,r);return this.__wbg_ptr=i,So.register(this,this.__wbg_ptr,this),this}get center_x(){return R.__wbg_get_boundingsphere_center_x(this.__wbg_ptr)}get center_y(){return R.__wbg_get_boundingsphere_center_y(this.__wbg_ptr)}get center_z(){return R.__wbg_get_boundingsphere_center_z(this.__wbg_ptr)}get radius(){return R.__wbg_get_boundingsphere_radius(this.__wbg_ptr)}set center_x(e){R.__wbg_set_boundingsphere_center_x(this.__wbg_ptr,e)}set center_y(e){R.__wbg_set_boundingsphere_center_y(this.__wbg_ptr,e)}set center_z(e){R.__wbg_set_boundingsphere_center_z(this.__wbg_ptr,e)}set radius(e){R.__wbg_set_boundingsphere_radius(this.__wbg_ptr,e)}};Symbol.dispose&&(oa.prototype[Symbol.dispose]=oa.prototype.free),Object.freeze({Geographic:0,0:`Geographic`,Geocentric:1,1:`Geocentric`});var sa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Co.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Co.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cachedmeshhandle_free(e,0)}constructor(e,t,n,r){let i=R.cachedmeshhandle_new(e,t,n,F(r)?2**53-1:r>>0);return this.__wbg_ptr=i,Co.register(this,this.__wbg_ptr,this),this}get heights(){let e=R.__wbg_get_cachedmeshhandle_heights(this.__wbg_ptr);return e===2**53-1?void 0:e}get indices(){return R.__wbg_get_cachedmeshhandle_indices(this.__wbg_ptr)}get normals(){let e=R.__wbg_get_cachedmeshhandle_normals(this.__wbg_ptr);return e===2**53-1?void 0:e}get uvs(){return R.__wbg_get_cachedmeshhandle_uvs(this.__wbg_ptr)}get vertices(){return R.__wbg_get_cachedmeshhandle_vertices(this.__wbg_ptr)}get watermask(){let e=R.__wbg_get_cachedmeshhandle_watermask(this.__wbg_ptr);return e===2**53-1?void 0:e}set heights(e){R.__wbg_set_cachedmeshhandle_heights(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set indices(e){R.__wbg_set_cachedmeshhandle_indices(this.__wbg_ptr,e)}set normals(e){R.__wbg_set_cachedmeshhandle_normals(this.__wbg_ptr,F(e)?2**53-1:e>>0)}set uvs(e){R.__wbg_set_cachedmeshhandle_uvs(this.__wbg_ptr,e)}set vertices(e){R.__wbg_set_cachedmeshhandle_vertices(this.__wbg_ptr,e)}set watermask(e){R.__wbg_set_cachedmeshhandle_watermask(this.__wbg_ptr,F(e)?2**53-1:e>>0)}};Symbol.dispose&&(sa.prototype[Symbol.dispose]=sa.prototype.free);var ca=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameracontrolupdateevent_free(e,0)}constructor(){let e=R.cameracontrolupdateevent_new();return this.__wbg_ptr=e,wo.register(this,this.__wbg_ptr,this),this}get autoAdjustNearFar(){let e=R.__wbg_get_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableSpin(){let e=R.__wbg_get_cameracontrolupdateevent_enableSpin(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableTilt(){let e=R.__wbg_get_cameracontrolupdateevent_enableTilt(this.__wbg_ptr);return e===16777215?void 0:e!==0}get enableZoom(){let e=R.__wbg_get_cameracontrolupdateevent_enableZoom(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maximumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minimumZoomDistance(){let e=R.__wbg_get_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get spinDuration(){let e=R.__wbg_get_cameracontrolupdateevent_spinDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get spinSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get translateDuration(){let e=R.__wbg_get_cameracontrolupdateevent_translateDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomDuration(){let e=R.__wbg_get_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr);return e===2**53-1?void 0:e}get zoomSpeed(){let e=R.__wbg_get_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set autoAdjustNearFar(e){R.__wbg_set_cameracontrolupdateevent_autoAdjustNearFar(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableSpin(e){R.__wbg_set_cameracontrolupdateevent_enableSpin(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableTilt(e){R.__wbg_set_cameracontrolupdateevent_enableTilt(this.__wbg_ptr,F(e)?16777215:+!!e)}set enableZoom(e){R.__wbg_set_cameracontrolupdateevent_enableZoom(this.__wbg_ptr,F(e)?16777215:+!!e)}set maximumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_maximumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set minimumZoomDistance(e){R.__wbg_set_cameracontrolupdateevent_minimumZoomDistance(this.__wbg_ptr,!F(e),F(e)?0:e)}set spinDuration(e){R.__wbg_set_cameracontrolupdateevent_spinDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set spinSpeed(e){R.__wbg_set_cameracontrolupdateevent_spinSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}set translateDuration(e){R.__wbg_set_cameracontrolupdateevent_translateDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomDuration(e){R.__wbg_set_cameracontrolupdateevent_zoomDuration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set zoomSpeed(e){R.__wbg_set_cameracontrolupdateevent_zoomSpeed(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ca.prototype[Symbol.dispose]=ca.prototype.free),Object.freeze({Forward:0,0:`Forward`,Backward:1,1:`Backward`,Left:2,2:`Left`,Right:3,3:`Right`,Up:4,4:`Up`,Down:5,5:`Down`});var la=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,To.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameraflightendedevent_free(e,0)}get completed(){return R.__wbg_get_cameraflightendedevent_completed(this.__wbg_ptr)!==0}get id(){return R.__wbg_get_cameraflightendedevent_id(this.__wbg_ptr)>>>0}set completed(e){R.__wbg_set_cameraflightendedevent_completed(this.__wbg_ptr,e)}set id(e){R.__wbg_set_cameraflightendedevent_id(this.__wbg_ptr,e)}};Symbol.dispose&&(la.prototype[Symbol.dispose]=la.prototype.free);var ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Eo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerafrustum_free(e,0)}constructor(e,t,n,r){let i=R.camerafrustum_new(e,t,n,r);return this.__wbg_ptr=i,Eo.register(this,this.__wbg_ptr,this),this}get aspect_ratio(){return R.__wbg_get_camerafrustum_aspect_ratio(this.__wbg_ptr)}get far(){return R.__wbg_get_camerafrustum_far(this.__wbg_ptr)}get fov(){return R.__wbg_get_camerafrustum_fov(this.__wbg_ptr)}get near(){return R.__wbg_get_camerafrustum_near(this.__wbg_ptr)}set aspect_ratio(e){R.__wbg_set_camerafrustum_aspect_ratio(this.__wbg_ptr,e)}set far(e){R.__wbg_set_camerafrustum_far(this.__wbg_ptr,e)}set fov(e){R.__wbg_set_camerafrustum_fov(this.__wbg_ptr,e)}set near(e){R.__wbg_set_camerafrustum_near(this.__wbg_ptr,e)}};Symbol.dispose&&(ua.prototype[Symbol.dispose]=ua.prototype.free);var da=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Do.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_cameraorientation_free(e,0)}get heading(){return R.__wbg_get_cameraorientation_heading(this.__wbg_ptr)}get pitch(){return R.__wbg_get_cameraorientation_pitch(this.__wbg_ptr)}get roll(){return R.__wbg_get_cameraorientation_roll(this.__wbg_ptr)}set heading(e){R.__wbg_set_cameraorientation_heading(this.__wbg_ptr,e)}set pitch(e){R.__wbg_set_cameraorientation_pitch(this.__wbg_ptr,e)}set roll(e){R.__wbg_set_cameraorientation_roll(this.__wbg_ptr,e)}};Symbol.dispose&&(da.prototype[Symbol.dispose]=da.prototype.free);var fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Oo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_camerastatus_free(e,0)}get status(){let e=R.__wbg_get_camerastatus_status(this.__wbg_ptr);var t=P(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}set status(e){let t=Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_camerastatus_status(this.__wbg_ptr,t,n)}};Symbol.dispose&&(fa.prototype[Symbol.dispose]=fa.prototype.free),Object.freeze({Change:0,0:`Change`,LookAt:1,1:`LookAt`,Rotate:2,2:`Rotate`,MoveStart:3,3:`MoveStart`,Moving:4,4:`Moving`,MoveEnd:5,5:`MoveEnd`});var pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledexpression_free(e,0)}evaluate(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledexpression_evaluate(this.__wbg_ptr,e,t,r,i);if(a[2])throw Zs(a[1]);return Zs(a[0])}getRequiredProperties(){return R.compiledexpression_getRequiredProperties(this.__wbg_ptr)}constructor(e,t){var n=F(t)?0:I(t,R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;let i=R.compiledexpression_new(e,n,r);if(i[2])throw Zs(i[1]);return this.__wbg_ptr=i[0],ko.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(pa.prototype[Symbol.dispose]=pa.prototype.free);var ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ao.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_compiledfilter_free(e,0)}constructor(e){let t=R.compiledfilter_new(e);if(t[2])throw Zs(t[1]);return this.__wbg_ptr=t[0],Ao.register(this,this.__wbg_ptr,this),this}test(e,t,n){var r=F(n)?0:I(n,R.__wbindgen_malloc,R.__wbindgen_realloc),i=L;let a=R.compiledfilter_test(this.__wbg_ptr,e,t,r,i);if(a[2])throw Zs(a[1]);return a[0]!==0}};Symbol.dispose&&(ma.prototype[Symbol.dispose]=ma.prototype.free);var ha=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,jo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygongeometry_free(e,0)}batch_id(){return R.constructedpolygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolygongeometry_indices(this.__wbg_ptr)}normal(){return R.constructedpolygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.constructedpolygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}outline(){let e=R.constructedpolygongeometry_outline(this.__wbg_ptr);return e===0?void 0:ga.__wrap(e)}position(){return R.constructedpolygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.constructedpolygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.constructedpolygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.constructedpolygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.constructedpolygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.constructedpolygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.constructedpolygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.constructedpolygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.__wbg_get_constructedpolygongeometry_extent(this.__wbg_ptr);return e===0?void 0:Sa.__wrap(e)}get rtc_translation(){let e=R.__wbg_get_constructedpolygongeometry_rtc_translation(this.__wbg_ptr);return e===0?void 0:M.__wrap(e)}set extent(e){let t=0;F(e)||(N(e,Sa),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_extent(this.__wbg_ptr,t)}set rtc_translation(e){let t=0;F(e)||(N(e,M),t=e.__destroy_into_raw()),R.__wbg_set_constructedpolygongeometry_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(ha.prototype[Symbol.dispose]=ha.prototype.free);var ga=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Mo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Mo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolygonoutlinegeometry_free(e,0)}batch_index(){return R.constructedpolygonoutlinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolygonoutlinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.constructedpolygonoutlinegeometry_position(this.__wbg_ptr)}position_3d_high(){return R.constructedpolygonoutlinegeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.constructedpolygonoutlinegeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.constructedpolygonoutlinegeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.constructedpolygonoutlinegeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.constructedpolygonoutlinegeometry_position_size(this.__wbg_ptr)}scale_normal_and_cap(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){return R.constructedpolygonoutlinegeometry_scale_normal_and_cap_size(this.__wbg_ptr)}skip_indices(){return R.constructedpolygonoutlinegeometry_skip_indices(this.__wbg_ptr)}};Symbol.dispose&&(ga.prototype[Symbol.dispose]=ga.prototype.free);var _a=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,No.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,No.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_constructedpolylinegeometry_free(e,0)}batch_id(){return R.constructedpolylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.constructedpolylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.constructedpolylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.constructedpolylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.constructedpolylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.constructedpolylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.constructedpolylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.constructedpolylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.constructedpolylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}get extent(){let e=R.constructedpolylinegeometry_extent(this.__wbg_ptr);return e===0?void 0:Sa.__wrap(e)}forward_offset(){return R.constructedpolylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.constructedpolylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.constructedpolylinegeometry_indices(this.__wbg_ptr)}position(){return R.constructedpolylinegeometry_position(this.__wbg_ptr)}position_high(){return R.constructedpolylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.constructedpolylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.constructedpolylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.constructedpolylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.constructedpolylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.constructedpolylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.constructedpolylinegeometry_start(this.__wbg_ptr)}start_high(){return R.constructedpolylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.constructedpolylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.constructedpolylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.constructedpolylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.constructedpolylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.constructedpolylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.constructedpolylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(_a.prototype[Symbol.dispose]=_a.prototype.free);var va=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Po.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Po.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationdecoder_free(e,0)}static japanGSI(){let t=R.elevationdecoder_japanGSI();return e.__wrap(t)}static mapbox(){let t=R.elevationdecoder_mapbox();return e.__wrap(t)}constructor(e,t,n,r,i,a,o,s){let c=R.elevationdecoder_new(e,t,n,r,i,a,o,s);return this.__wbg_ptr=c,Po.register(this,this.__wbg_ptr,this),this}static terrarium(){let t=R.elevationdecoder_terrarium();return e.__wrap(t)}get b_scaler(){return R.__wbg_get_elevationdecoder_b_scaler(this.__wbg_ptr)}get boundary(){return R.__wbg_get_elevationdecoder_boundary(this.__wbg_ptr)}get epsilon(){return R.__wbg_get_elevationdecoder_epsilon(this.__wbg_ptr)}get g_scaler(){return R.__wbg_get_elevationdecoder_g_scaler(this.__wbg_ptr)}get max_offset(){return R.__wbg_get_elevationdecoder_max_offset(this.__wbg_ptr)}get min_offset(){return R.__wbg_get_elevationdecoder_min_offset(this.__wbg_ptr)}get offset(){return R.__wbg_get_elevationdecoder_offset(this.__wbg_ptr)}get r_scaler(){return R.__wbg_get_elevationdecoder_r_scaler(this.__wbg_ptr)}set b_scaler(e){R.__wbg_set_elevationdecoder_b_scaler(this.__wbg_ptr,e)}set boundary(e){R.__wbg_set_elevationdecoder_boundary(this.__wbg_ptr,e)}set epsilon(e){R.__wbg_set_elevationdecoder_epsilon(this.__wbg_ptr,e)}set g_scaler(e){R.__wbg_set_elevationdecoder_g_scaler(this.__wbg_ptr,e)}set max_offset(e){R.__wbg_set_elevationdecoder_max_offset(this.__wbg_ptr,e)}set min_offset(e){R.__wbg_set_elevationdecoder_min_offset(this.__wbg_ptr,e)}set offset(e){R.__wbg_set_elevationdecoder_offset(this.__wbg_ptr,e)}set r_scaler(e){R.__wbg_set_elevationdecoder_r_scaler(this.__wbg_ptr,e)}};Symbol.dispose&&(va.prototype[Symbol.dispose]=va.prototype.free);var ya=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Fo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_elevationheatmapmaterial_free(e,0)}get logBoundary(){let e=R.__wbg_get_elevationheatmapmaterial_logBoundary(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get logarithmic(){let e=R.__wbg_get_elevationheatmapmaterial_logarithmic(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxHeight(){let e=R.__wbg_get_elevationheatmapmaterial_maxHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}get minHeight(){let e=R.__wbg_get_elevationheatmapmaterial_minHeight(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set logBoundary(e){R.__wbg_set_elevationheatmapmaterial_logBoundary(this.__wbg_ptr,!F(e),F(e)?0:e)}set logarithmic(e){R.__wbg_set_elevationheatmapmaterial_logarithmic(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxHeight(e){R.__wbg_set_elevationheatmapmaterial_maxHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}set minHeight(e){R.__wbg_set_elevationheatmapmaterial_minHeight(this.__wbg_ptr,!F(e),F(e)?0:e)}};Symbol.dispose&&(ya.prototype[Symbol.dispose]=ya.prototype.free);var ba=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Io.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ellipsoidgeodesic_free(e,0)}interpolateDistance(e){let t=R.ellipsoidgeodesic_interpolateDistance(this.__wbg_ptr,e);return Da.__wrap(t)}interpolateGeodeticPoints(e){let t=R.ellipsoidgeodesic_interpolateGeodeticPoints(this.__wbg_ptr,!F(e),F(e)?0:e);var n=P(t[0],t[1]).slice();return R.__wbindgen_free(t[0],t[1]*4,4),n}constructor(e,t){N(e,Da);var n=e.__destroy_into_raw();N(t,Da);var r=t.__destroy_into_raw();let i=R.ellipsoidgeodesic_new(n,r);return this.__wbg_ptr=i,Io.register(this,this.__wbg_ptr,this),this}get converged(){return R.__wbg_get_ellipsoidgeodesic_converged(this.__wbg_ptr)!==0}get distance(){return R.__wbg_get_ellipsoidgeodesic_distance(this.__wbg_ptr)}get end_heading(){return R.__wbg_get_ellipsoidgeodesic_end_heading(this.__wbg_ptr)}get end(){let e=R.__wbg_get_ellipsoidgeodesic_end(this.__wbg_ptr);return Da.__wrap(e)}get start_heading(){return R.__wbg_get_ellipsoidgeodesic_start_heading(this.__wbg_ptr)}get start(){let e=R.__wbg_get_ellipsoidgeodesic_start(this.__wbg_ptr);return Da.__wrap(e)}set converged(e){R.__wbg_set_ellipsoidgeodesic_converged(this.__wbg_ptr,e)}set distance(e){R.__wbg_set_ellipsoidgeodesic_distance(this.__wbg_ptr,e)}set end_heading(e){R.__wbg_set_ellipsoidgeodesic_end_heading(this.__wbg_ptr,e)}set end(e){N(e,Da);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_end(this.__wbg_ptr,t)}set start_heading(e){R.__wbg_set_ellipsoidgeodesic_start_heading(this.__wbg_ptr,e)}set start(e){N(e,Da);var t=e.__destroy_into_raw();R.__wbg_set_ellipsoidgeodesic_start(this.__wbg_ptr,t)}};Symbol.dispose&&(ba.prototype[Symbol.dispose]=ba.prototype.free);var xa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Lo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_encodedvec3_free(e,0)}constructor(e,t){N(e,M);var n=e.__destroy_into_raw();N(t,M);var r=t.__destroy_into_raw();let i=R.encodedvec3_new(n,r);return this.__wbg_ptr=i,Lo.register(this,this.__wbg_ptr,this),this}get high(){let e=R.__wbg_get_encodedvec3_high(this.__wbg_ptr);return M.__wrap(e)}get low(){let e=R.__wbg_get_encodedvec3_low(this.__wbg_ptr);return M.__wrap(e)}set high(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_high(this.__wbg_ptr,t)}set low(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_encodedvec3_low(this.__wbg_ptr,t)}};Symbol.dispose&&(xa.prototype[Symbol.dispose]=xa.prototype.free);var Sa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ro.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ro.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_extentradianf32_free(e,0)}constructor(e,t,n,r){let i=R.extentradianf32_new(e,t,n,r);return this.__wbg_ptr=i,Ro.register(this,this.__wbg_ptr,this),this}get east(){return R.__wbg_get_extentradianf32_east(this.__wbg_ptr)}get north(){return R.__wbg_get_extentradianf32_north(this.__wbg_ptr)}get south(){return R.__wbg_get_extentradianf32_south(this.__wbg_ptr)}get west(){return R.__wbg_get_extentradianf32_west(this.__wbg_ptr)}set east(e){R.__wbg_set_extentradianf32_east(this.__wbg_ptr,e)}set north(e){R.__wbg_set_extentradianf32_north(this.__wbg_ptr,e)}set south(e){R.__wbg_set_extentradianf32_south(this.__wbg_ptr,e)}set west(e){R.__wbg_set_extentradianf32_west(this.__wbg_ptr,e)}};Symbol.dispose&&(Sa.prototype[Symbol.dispose]=Sa.prototype.free);var Ca=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_floatattribute_free(e,0)}constructor(e,t){let n=Js(e,R.__wbindgen_malloc),r=L,i=R.floatattribute_new(n,r,t);return this.__wbg_ptr=i,zo.register(this,this.__wbg_ptr,this),this}transferData(){return R.floatattribute_transferData(this.__wbg_ptr)}get size(){return R.__wbg_get_floatattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_floatattribute_size(this.__wbg_ptr,e)}};Symbol.dispose&&(Ca.prototype[Symbol.dispose]=Ca.prototype.free);var wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Bo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_geometry_free(e,0)}hasNormals(){return R.geometry_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.geometry_hasSkirt(this.__wbg_ptr)!==0}constructor(e,t,n){let r=Js(e,R.__wbindgen_malloc),i=L,a=Ks(t,R.__wbindgen_malloc),o=L,s=Js(n,R.__wbindgen_malloc),c=L,l=R.geometry_new(r,i,a,o,s,c);return this.__wbg_ptr=l,Bo.register(this,this.__wbg_ptr,this),this}transferIndices(){return R.geometry_transferIndices(this.__wbg_ptr)}transferNormals(){return R.geometry_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.geometry_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.geometry_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.geometry_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.geometry_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.geometry_transferUvs(this.__wbg_ptr)}transferVertices(){return R.geometry_transferVertices(this.__wbg_ptr)}};Symbol.dispose&&(wa.prototype[Symbol.dispose]=wa.prototype.free);var Ta=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Vo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_globe_free(e,0)}get color(){return R.__wbg_get_globe_color(this.__wbg_ptr)>>>0}get elevationColormap(){let e=R.__wbg_get_globe_elevationColormap(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get hideUnderground(){return R.__wbg_get_globe_hideUnderground(this.__wbg_ptr)!==0}get isGeographicTiling(){return R.__wbg_get_globe_isGeographicTiling(this.__wbg_ptr)!==0}get maxSse(){return R.__wbg_get_globe_maxSse(this.__wbg_ptr)}get opacity(){return R.__wbg_get_globe_opacity(this.__wbg_ptr)}get segments(){return R.__wbg_get_globe_segments(this.__wbg_ptr)}get transparent(){return R.__wbg_get_globe_transparent(this.__wbg_ptr)!==0}get useNormal(){return R.__wbg_get_globe_useNormal(this.__wbg_ptr)!==0}get wireframe(){return R.__wbg_get_globe_wireframe(this.__wbg_ptr)!==0}constructor(e,t,n,r,i,a,o,s,c){let l=Js(c,R.__wbindgen_malloc),u=L,d=R.globe_new(e,t,n,r,i,a,o,s,l,u);return this.__wbg_ptr=d,Vo.register(this,this.__wbg_ptr,this),this}set color(e){R.__wbg_set_globe_color(this.__wbg_ptr,e)}set elevationColormap(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_globe_elevationColormap(this.__wbg_ptr,t,n)}set hideUnderground(e){R.__wbg_set_globe_hideUnderground(this.__wbg_ptr,e)}set isGeographicTiling(e){R.__wbg_set_globe_isGeographicTiling(this.__wbg_ptr,e)}set maxSse(e){R.__wbg_set_globe_maxSse(this.__wbg_ptr,e)}set opacity(e){R.__wbg_set_globe_opacity(this.__wbg_ptr,e)}set segments(e){R.__wbg_set_globe_segments(this.__wbg_ptr,e)}set transparent(e){R.__wbg_set_globe_transparent(this.__wbg_ptr,e)}set useNormal(e){R.__wbg_set_globe_useNormal(this.__wbg_ptr,e)}set wireframe(e){R.__wbg_set_globe_wireframe(this.__wbg_ptr,e)}};Symbol.dispose&&(Ta.prototype[Symbol.dispose]=Ta.prototype.free);var Ea=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ho.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_hillshadematerial_free(e,0)}get exaggeration(){let e=R.__wbg_get_hillshadematerial_exaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}set exaggeration(e){R.__wbg_set_hillshadematerial_exaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Ea.prototype[Symbol.dispose]=Ea.prototype.free);var Da=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Uo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Uo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_lle_free(e,0)}get height(){return R.__wbg_get_lle_height(this.__wbg_ptr)}get lat(){return R.__wbg_get_lle_lat(this.__wbg_ptr)}get lng(){return R.__wbg_get_lle_lng(this.__wbg_ptr)}constructor(e,t,n){let r=R.lle_new(e,t,n);return this.__wbg_ptr=r,Uo.register(this,this.__wbg_ptr,this),this}set height(e){R.__wbg_set_lle_height(this.__wbg_ptr,e)}set lat(e){R.__wbg_set_lle_lat(this.__wbg_ptr,e)}set lng(e){R.__wbg_set_lle_lng(this.__wbg_ptr,e)}};Symbol.dispose&&(Da.prototype[Symbol.dispose]=Da.prototype.free);var Oa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Wo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Wo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelinternalmaterial_free(e,0)}get dracoCompressed(){return R.__wbg_get_modelinternalmaterial_dracoCompressed(this.__wbg_ptr)!==0}get pointCloudGeodeticNormal(){let e=R.__wbg_get_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr);return M.__wrap(e)}get pointCloud(){return R.__wbg_get_modelinternalmaterial_pointCloud(this.__wbg_ptr)!==0}set dracoCompressed(e){R.__wbg_set_modelinternalmaterial_dracoCompressed(this.__wbg_ptr,e)}set pointCloudGeodeticNormal(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_modelinternalmaterial_pointCloudGeodeticNormal(this.__wbg_ptr,t)}set pointCloud(e){R.__wbg_set_modelinternalmaterial_pointCloud(this.__wbg_ptr,e)}};Symbol.dispose&&(Oa.prototype[Symbol.dispose]=Oa.prototype.free);var ka=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Go.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_modelmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_modelmaterial___internal__(this.__wbg_ptr);return e===0?void 0:Oa.__wrap(e)}get animationActiveClip(){let e=R.__wbg_get_modelmaterial_animationActiveClip(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get animationSpeed(){let e=R.__wbg_get_modelmaterial_animationSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get applyWaterNormal(){let e=R.__wbg_get_modelmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_modelmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_modelmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get creaseNormalAngle(){let e=R.__wbg_get_modelmaterial_creaseNormalAngle(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_modelmaterial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_modelmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_modelmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_modelmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_modelmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_modelmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get lit(){let e=R.__wbg_get_modelmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxSse(){let e=R.__wbg_get_modelmaterial_maxSse(this.__wbg_ptr);return e===2**53-1?void 0:e}get metalness(){let e=R.__wbg_get_modelmaterial_metalness(this.__wbg_ptr);return e===2**53-1?void 0:e}get normals(){let e=R.__wbg_get_modelmaterial_normals(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_modelmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get pointSize(){let e=R.__wbg_get_modelmaterial_pointSize(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_modelmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_modelmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_modelmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_modelmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get shouldRotateInDefault(){let e=R.__wbg_get_modelmaterial_shouldRotateInDefault(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_modelmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_modelmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_modelmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get specularStrength(){let e=R.__wbg_get_modelmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_modelmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_modelmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get url(){let e=R.__wbg_get_modelmaterial_url(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get waterScaleNormal(){let e=R.__wbg_get_modelmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_modelmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_modelmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}set __internal__(e){let t=0;F(e)||(N(e,Oa),t=e.__destroy_into_raw()),R.__wbg_set_modelmaterial___internal__(this.__wbg_ptr,t)}set animationActiveClip(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_animationActiveClip(this.__wbg_ptr,t,n)}set animationSpeed(e){R.__wbg_set_modelmaterial_animationSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set applyWaterNormal(e){R.__wbg_set_modelmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_modelmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set creaseNormalAngle(e){R.__wbg_set_modelmaterial_creaseNormalAngle(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set depthWrite(e){R.__wbg_set_modelmaterial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_modelmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_modelmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_modelmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_modelmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_modelmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set lit(e){R.__wbg_set_modelmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxSse(e){R.__wbg_set_modelmaterial_maxSse(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set metalness(e){R.__wbg_set_modelmaterial_metalness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set normals(e){R.__wbg_set_modelmaterial_normals(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_modelmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set pointSize(e){R.__wbg_set_modelmaterial_pointSize(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_modelmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_modelmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_modelmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_modelmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shouldRotateInDefault(e){R.__wbg_set_modelmaterial_shouldRotateInDefault(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_modelmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_modelmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_modelmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specularStrength(e){R.__wbg_set_modelmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_modelmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_modelmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set url(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_modelmaterial_url(this.__wbg_ptr,t,n)}set waterScaleNormal(e){R.__wbg_set_modelmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_modelmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_modelmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(ka.prototype[Symbol.dispose]=ka.prototype.free);var Aa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ko.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_nearfar_free(e,0)}get far(){return R.__wbg_get_nearfar_far(this.__wbg_ptr)}get near(){return R.__wbg_get_nearfar_near(this.__wbg_ptr)}set far(e){R.__wbg_set_nearfar_far(this.__wbg_ptr,e)}set near(e){R.__wbg_set_nearfar_near(this.__wbg_ptr,e)}};Symbol.dispose&&(Aa.prototype[Symbol.dispose]=Aa.prototype.free);var ja=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_overscaledtilehandle_free(e,0)}get handle(){let e=R.__wbg_get_overscaledtilehandle_handle(this.__wbg_ptr);return BigInt.asUintN(64,e)}set handle(e){R.__wbg_set_overscaledtilehandle_handle(this.__wbg_ptr,e)}};Symbol.dispose&&(ja.prototype[Symbol.dispose]=ja.prototype.free);var Ma=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Jo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_plane_free(e,0)}get distance(){return R.__wbg_get_plane_distance(this.__wbg_ptr)}get normal(){let e=R.__wbg_get_plane_normal(this.__wbg_ptr);return M.__wrap(e)}set distance(e){R.__wbg_set_plane_distance(this.__wbg_ptr,e)}set normal(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_plane_normal(this.__wbg_ptr,t)}};Symbol.dispose&&(Ma.prototype[Symbol.dispose]=Ma.prototype.free);var Na=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Yo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_pointmaterial_free(e,0)}get center(){let e=R.__wbg_get_pointmaterial_center(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}get clampToGround(){let e=R.__wbg_get_pointmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_pointmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_pointmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_pointmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_pointmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_pointmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_pointmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_pointmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get geometryTypes(){let e=R.__wbg_get_pointmaterial_geometryTypes(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get height(){let e=R.__wbg_get_pointmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_pointmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_pointmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_pointmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_pointmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_pointmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get transparent(){let e=R.__wbg_get_pointmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set center(e){let t=0;F(e)||(N(e,j),t=e.__destroy_into_raw()),R.__wbg_set_pointmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_pointmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_pointmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_pointmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_pointmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_pointmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_pointmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_pointmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_pointmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set geometryTypes(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_pointmaterial_geometryTypes(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_pointmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_pointmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_pointmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_pointmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_pointmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_pointmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set transparent(e){R.__wbg_set_pointmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Na.prototype[Symbol.dispose]=Na.prototype.free);var Pa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Xo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometry_free(e,0)}batch_id(){return R.polygongeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polygongeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polygongeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polygongeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polygongeometry_indices(this.__wbg_ptr)}normal(){return R.polygongeometry_normal(this.__wbg_ptr)}normal_size(){let e=R.polygongeometry_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}position(){return R.polygongeometry_position(this.__wbg_ptr)}position_3d_high(){return R.polygongeometry_position_3d_high(this.__wbg_ptr)}position_3d_high_size(){let e=R.polygongeometry_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_3d_low(){return R.polygongeometry_position_3d_low(this.__wbg_ptr)}position_3d_low_size(){let e=R.polygongeometry_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){let e=R.polygongeometry_position_size(this.__wbg_ptr);return e===16777215?void 0:e}scale_normal_and_cap(){return R.polygongeometry_scale_normal_and_cap(this.__wbg_ptr)}scale_normal_and_cap_size(){let e=R.polygongeometry_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Pa.prototype[Symbol.dispose]=Pa.prototype.free);var Fa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Zo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygongeometryattributes_free(e,0)}transfer_batch_id(){return R.polygongeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polygongeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polygongeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polygongeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_normal(){return R.polygongeometryattributes_transfer_normal(this.__wbg_ptr)}transfer_normal_size(){let e=R.polygongeometryattributes_transfer_normal_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polygongeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_3d_high(){return R.polygongeometryattributes_transfer_position_3d_high(this.__wbg_ptr)}transfer_position_3d_high_size(){let e=R.polygongeometryattributes_transfer_position_3d_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_3d_low(){return R.polygongeometryattributes_transfer_position_3d_low(this.__wbg_ptr)}transfer_position_3d_low_size(){let e=R.polygongeometryattributes_transfer_position_3d_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){let e=R.polygongeometryattributes_transfer_position_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_scale_normal_and_cap(){return R.polygongeometryattributes_transfer_scale_normal_and_cap(this.__wbg_ptr)}transfer_scale_normal_and_cap_size(){let e=R.polygongeometryattributes_transfer_scale_normal_and_cap_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Fa.prototype[Symbol.dispose]=Fa.prototype.free);var Ia=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Qo.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Qo.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygoninternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygoninternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Ia.prototype[Symbol.dispose]=Ia.prototype.free);var La=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,$o.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polygonmaterial_free(e,0)}get __internal__(){let e=R.__wbg_get_polygonmaterial___internal__(this.__wbg_ptr);return e===0?void 0:Ia.__wrap(e)}get applyWaterNormal(){let e=R.__wbg_get_polygonmaterial_applyWaterNormal(this.__wbg_ptr);return e===16777215?void 0:e!==0}get castShadow(){let e=R.__wbg_get_polygonmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polygonmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polygonmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get effectIds(){let e=R.__wbg_get_polygonmaterial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polygonmaterial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polygonmaterial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get extrudedHeight(){let e=R.__wbg_get_polygonmaterial_extrudedHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get height(){let e=R.__wbg_get_polygonmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get ior(){let e=R.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);return e===2**53-1?void 0:e}get lit(){let e=R.__wbg_get_polygonmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_polygonmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_polygonmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineShow(){let e=R.__wbg_get_polygonmaterial_outlineShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get outlineWidth(){let e=R.__wbg_get_polygonmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get outline(){let e=R.__wbg_get_polygonmaterial_outline(this.__wbg_ptr);return e===16777215?void 0:e!==0}get perPositionHeight(){let e=R.__wbg_get_polygonmaterial_perPositionHeight(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_polygonmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get reflectivity(){let e=R.__wbg_get_polygonmaterial_reflectivity(this.__wbg_ptr);return e===2**53-1?void 0:e}get roughness(){let e=R.__wbg_get_polygonmaterial_roughness(this.__wbg_ptr);return e===2**53-1?void 0:e}get shininess(){let e=R.__wbg_get_polygonmaterial_shininess(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_polygonmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get specularStrength(){let e=R.__wbg_get_polygonmaterial_specularStrength(this.__wbg_ptr);return e===2**53-1?void 0:e}get specular(){let e=R.__wbg_get_polygonmaterial_specular(this.__wbg_ptr);return e===16777215?void 0:e!==0}get surfaceShow(){let e=R.__wbg_get_polygonmaterial_surfaceShow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polygonmaterial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polygonmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get waterScaleNormal(){let e=R.__wbg_get_polygonmaterial_waterScaleNormal(this.__wbg_ptr);return e===2**53-1?void 0:e}get waterSpeed(){let e=R.__wbg_get_polygonmaterial_waterSpeed(this.__wbg_ptr);return e===2**53-1?void 0:e}get water(){let e=R.__wbg_get_polygonmaterial_water(this.__wbg_ptr);return e===16777215?void 0:e!==0}get wireframe(){let e=R.__wbg_get_polygonmaterial_wireframe(this.__wbg_ptr);return e===16777215?void 0:e!==0}constructor(e,t,n,r,i,a,o,s,c,l,u,d){let f=0;F(d)||(N(d,Ia),f=d.__destroy_into_raw());let p=R.polygonmaterial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?16777215:+!!c,F(l)?16777215:+!!l,F(u)?16777215:+!!u,f);return this.__wbg_ptr=p,$o.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(N(e,Ia),t=e.__destroy_into_raw()),R.__wbg_set_polygonmaterial___internal__(this.__wbg_ptr,t)}set applyWaterNormal(e){R.__wbg_set_polygonmaterial_applyWaterNormal(this.__wbg_ptr,F(e)?16777215:+!!e)}set castShadow(e){R.__wbg_set_polygonmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polygonmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polygonmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polygonmaterial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polygonmaterial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polygonmaterial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set extrudedHeight(e){R.__wbg_set_polygonmaterial_extrudedHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set height(e){R.__wbg_set_polygonmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set ior(e){R.__wbg_set_polygonmaterial_ior(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set lit(e){R.__wbg_set_polygonmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_polygonmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_polygonmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineShow(e){R.__wbg_set_polygonmaterial_outlineShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set outlineWidth(e){R.__wbg_set_polygonmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outline(e){R.__wbg_set_polygonmaterial_outline(this.__wbg_ptr,F(e)?16777215:+!!e)}set perPositionHeight(e){R.__wbg_set_polygonmaterial_perPositionHeight(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_polygonmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set reflectivity(e){R.__wbg_set_polygonmaterial_reflectivity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set roughness(e){R.__wbg_set_polygonmaterial_roughness(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set shininess(e){R.__wbg_set_polygonmaterial_shininess(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_polygonmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set specularStrength(e){R.__wbg_set_polygonmaterial_specularStrength(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set specular(e){R.__wbg_set_polygonmaterial_specular(this.__wbg_ptr,F(e)?16777215:+!!e)}set surfaceShow(e){R.__wbg_set_polygonmaterial_surfaceShow(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polygonmaterial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polygonmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set waterScaleNormal(e){R.__wbg_set_polygonmaterial_waterScaleNormal(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set waterSpeed(e){R.__wbg_set_polygonmaterial_waterSpeed(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set water(e){R.__wbg_set_polygonmaterial_water(this.__wbg_ptr,F(e)?16777215:+!!e)}set wireframe(e){R.__wbg_set_polygonmaterial_wireframe(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(La.prototype[Symbol.dispose]=La.prototype.free);var Ra=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometry_free(e,0)}batch_id(){return R.polylinegeometry_batch_id(this.__wbg_ptr)}batch_id_size(){let e=R.polylinegeometry_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}batch_index(){return R.polylinegeometry_batch_index(this.__wbg_ptr)}batch_index_size(){let e=R.polylinegeometry_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}end_high(){return R.polylinegeometry_end_high(this.__wbg_ptr)}end_high_size(){let e=R.polylinegeometry_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}end_low(){return R.polylinegeometry_end_low(this.__wbg_ptr)}end_low_size(){let e=R.polylinegeometry_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometry_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}forward_offset(){return R.polylinegeometry_forward_offset(this.__wbg_ptr)}forward_offset_size(){let e=R.polylinegeometry_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}indices(){return R.polylinegeometry_indices(this.__wbg_ptr)}position(){return R.polylinegeometry_position(this.__wbg_ptr)}position_high(){return R.polylinegeometry_position_high(this.__wbg_ptr)}position_high_size(){let e=R.polylinegeometry_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}position_low(){return R.polylinegeometry_position_low(this.__wbg_ptr)}position_low_size(){let e=R.polylinegeometry_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}position_size(){return R.polylinegeometry_position_size(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometry_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}start(){return R.polylinegeometry_start(this.__wbg_ptr)}start_high(){return R.polylinegeometry_start_high(this.__wbg_ptr)}start_high_size(){let e=R.polylinegeometry_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}start_low(){return R.polylinegeometry_start_low(this.__wbg_ptr)}start_low_size(){let e=R.polylinegeometry_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}start_normals(){return R.polylinegeometry_start_normals(this.__wbg_ptr)}start_normals_size(){let e=R.polylinegeometry_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}start_size(){let e=R.polylinegeometry_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(Ra.prototype[Symbol.dispose]=Ra.prototype.free);var za=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinegeometryattributes_free(e,0)}transfer_batch_id(){return R.polylinegeometryattributes_transfer_batch_id(this.__wbg_ptr)}transfer_batch_id_size(){let e=R.polylinegeometryattributes_transfer_batch_id_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_batch_index(){return R.polylinegeometryattributes_transfer_batch_index(this.__wbg_ptr)}transfer_batch_index_size(){let e=R.polylinegeometryattributes_transfer_batch_index_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_high(){return R.polylinegeometryattributes_transfer_end_high(this.__wbg_ptr)}transfer_end_high_size(){let e=R.polylinegeometryattributes_transfer_end_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_low(){return R.polylinegeometryattributes_transfer_end_low(this.__wbg_ptr)}transfer_end_low_size(){let e=R.polylinegeometryattributes_transfer_end_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_end_normal_and_texture_coordinate_normalization_x(){return R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x(this.__wbg_ptr)}transfer_end_normal_and_texture_coordinate_normalization_x_size(){let e=R.polylinegeometryattributes_transfer_end_normal_and_texture_coordinate_normalization_x_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_forward_offset(){return R.polylinegeometryattributes_transfer_forward_offset(this.__wbg_ptr)}transfer_forward_offset_size(){let e=R.polylinegeometryattributes_transfer_forward_offset_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position(){return R.polylinegeometryattributes_transfer_position(this.__wbg_ptr)}transfer_position_high(){return R.polylinegeometryattributes_transfer_position_high(this.__wbg_ptr)}transfer_position_high_size(){let e=R.polylinegeometryattributes_transfer_position_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_low(){return R.polylinegeometryattributes_transfer_position_low(this.__wbg_ptr)}transfer_position_low_size(){let e=R.polylinegeometryattributes_transfer_position_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_position_size(){return R.polylinegeometryattributes_transfer_position_size(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y(this.__wbg_ptr)}transfer_right_normal_and_texture_coordinate_normalization_y_size(){return R.polylinegeometryattributes_transfer_right_normal_and_texture_coordinate_normalization_y_size(this.__wbg_ptr)}transfer_start(){return R.polylinegeometryattributes_transfer_start(this.__wbg_ptr)}transfer_start_high(){return R.polylinegeometryattributes_transfer_start_high(this.__wbg_ptr)}transfer_start_high_size(){let e=R.polylinegeometryattributes_transfer_start_high_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_low(){return R.polylinegeometryattributes_transfer_start_low(this.__wbg_ptr)}transfer_start_low_size(){let e=R.polylinegeometryattributes_transfer_start_low_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_normals(){return R.polylinegeometryattributes_transfer_start_normals(this.__wbg_ptr)}transfer_start_normals_size(){let e=R.polylinegeometryattributes_transfer_start_normals_size(this.__wbg_ptr);return e===16777215?void 0:e}transfer_start_size(){let e=R.polylinegeometryattributes_transfer_start_size(this.__wbg_ptr);return e===16777215?void 0:e}};Symbol.dispose&&(za.prototype[Symbol.dispose]=za.prototype.free);var Ba=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ns.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ns.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylineinternalmaterial_free(e,0)}get minMaxHeights(){let e=R.__wbg_get_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr);var t=js(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*8,8),t}set minMaxHeights(e){let t=Ys(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylineinternalmaterial_minMaxHeights(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Ba.prototype[Symbol.dispose]=Ba.prototype.free);var Va=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,rs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_polylinematerial_free(e,0)}get __internal__(){let e=R.__wbg_get_polylinematerial___internal__(this.__wbg_ptr);return e===0?void 0:Ba.__wrap(e)}get castShadow(){let e=R.__wbg_get_polylinematerial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get clampToGround(){let e=R.__wbg_get_polylinematerial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_polylinematerial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get depthWrite(){let e=R.__wbg_get_polylinematerial_depthWrite(this.__wbg_ptr);return e===16777215?void 0:e!==0}get effectIds(){let e=R.__wbg_get_polylinematerial_effectIds(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get emissiveColor(){let e=R.__wbg_get_polylinematerial_emissiveColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get emissiveIntensity(){let e=R.__wbg_get_polylinematerial_emissiveIntensity(this.__wbg_ptr);return e===2**53-1?void 0:e}get geometryTypes(){let e=R.__wbg_get_polylinematerial_geometryTypes(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get height(){let e=R.__wbg_get_polylinematerial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get lit(){let e=R.__wbg_get_polylinematerial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get maxWidth(){let e=R.__wbg_get_polylinematerial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_polylinematerial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get receiveShadow(){let e=R.__wbg_get_polylinematerial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_polylinematerial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get tiled(){let e=R.__wbg_get_polylinematerial_tiled(this.__wbg_ptr);return e===16777215?void 0:e!==0}get transparent(){let e=R.__wbg_get_polylinematerial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}get width(){let e=R.__wbg_get_polylinematerial_width(this.__wbg_ptr);return e===2**53-1?void 0:e}constructor(e,t,n,r,i,a,o,s,c,l){let u=0;F(l)||(N(l,Ba),u=l.__destroy_into_raw());let d=R.polylinematerial_new(F(e)?16777215:+!!e,F(t)?16777215:+!!t,F(n)?16777215:+!!n,F(r)?2**53-1:r>>>0,F(i)?16777215:+!!i,F(a)?16777215:+!!a,F(o)?2**53-1:Math.fround(o),F(s)?2**53-1:Math.fround(s),F(c)?2**53-1:Math.fround(c),u);return this.__wbg_ptr=d,rs.register(this,this.__wbg_ptr,this),this}set __internal__(e){let t=0;F(e)||(N(e,Ba),t=e.__destroy_into_raw()),R.__wbg_set_polylinematerial___internal__(this.__wbg_ptr,t)}set castShadow(e){R.__wbg_set_polylinematerial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set clampToGround(e){R.__wbg_set_polylinematerial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_polylinematerial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set depthWrite(e){R.__wbg_set_polylinematerial_depthWrite(this.__wbg_ptr,F(e)?16777215:+!!e)}set effectIds(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylinematerial_effectIds(this.__wbg_ptr,t,n)}set emissiveColor(e){R.__wbg_set_polylinematerial_emissiveColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set emissiveIntensity(e){R.__wbg_set_polylinematerial_emissiveIntensity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set geometryTypes(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_polylinematerial_geometryTypes(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_polylinematerial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set lit(e){R.__wbg_set_polylinematerial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set maxWidth(e){R.__wbg_set_polylinematerial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set opacity(e){R.__wbg_set_polylinematerial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set receiveShadow(e){R.__wbg_set_polylinematerial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_polylinematerial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set tiled(e){R.__wbg_set_polylinematerial_tiled(this.__wbg_ptr,F(e)?16777215:+!!e)}set transparent(e){R.__wbg_set_polylinematerial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}set width(e){R.__wbg_set_polylinematerial_width(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}};Symbol.dispose&&(Va.prototype[Symbol.dispose]=Va.prototype.free);var Ha=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,is.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastermaterial_free(e,0)}get color(){let e=R.__wbg_get_rastermaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get opacity(){let e=R.__wbg_get_rastermaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get showBoundingBox(){let e=R.__wbg_get_rastermaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_rastermaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}set color(e){R.__wbg_set_rastermaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set opacity(e){R.__wbg_set_rastermaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set showBoundingBox(e){R.__wbg_set_rastermaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_rastermaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ha.prototype[Symbol.dispose]=Ha.prototype.free);var Ua=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,as.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_rastertileinternalmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_rastertileinternalmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get colors(){let e=R.__wbg_get_rastertileinternalmaterial_colors(this.__wbg_ptr);var t=Ms(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get elevationBScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr)}get elevationBoundary(){return R.__wbg_get_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr)}get elevationEpsilon(){return R.__wbg_get_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr)}get elevationGScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr)}get elevationMaxHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr)}get elevationMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr)}get elevationMinHeight(){return R.__wbg_get_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr)}get elevationMinOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr)}get elevationOffset(){return R.__wbg_get_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr)}get elevationRScaler(){return R.__wbg_get_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr)}get hillshadeBScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr)}get hillshadeBoundary(){return R.__wbg_get_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr)}get hillshadeEpsilon(){return R.__wbg_get_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr)}get hillshadeExaggeration(){return R.__wbg_get_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr)}get hillshadeGScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr)}get hillshadeMaxOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr)}get hillshadeMinOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr)}get hillshadeOffset(){return R.__wbg_get_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr)}get hillshadeRScaler(){return R.__wbg_get_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr)}get isElevationHeatmaps(){let e=R.__wbg_get_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get isHillshades(){let e=R.__wbg_get_rastertileinternalmaterial_isHillshades(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get layerReproject(){let e=R.__wbg_get_rastertileinternalmaterial_layerReproject(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get lit(){let e=R.__wbg_get_rastertileinternalmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get logBoundary(){return R.__wbg_get_rastertileinternalmaterial_logBoundary(this.__wbg_ptr)}get logarithmic(){return R.__wbg_get_rastertileinternalmaterial_logarithmic(this.__wbg_ptr)!==0}get opacities(){let e=R.__wbg_get_rastertileinternalmaterial_opacities(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}get receiveShadow(){let e=R.__wbg_get_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get shows(){let e=R.__wbg_get_rastertileinternalmaterial_shows(this.__wbg_ptr);var t=Ns(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*1,1),t}get terrainLatRange(){let e=R.__wbg_get_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr);var t=As(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}layerUvTransforms(){let e=R.rastertileinternalmaterial_layerUvTransforms(this.__wbg_ptr);var t=P(e[0],e[1]).slice();return R.__wbindgen_free(e[0],e[1]*4,4),t}texture_fragments(){let e=R.rastertileinternalmaterial_texture_fragments(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}set castShadow(e){R.__wbg_set_rastertileinternalmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set colors(e){let t=Ks(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_colors(this.__wbg_ptr,t,n)}set elevationBScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationBScaler(this.__wbg_ptr,e)}set elevationBoundary(e){R.__wbg_set_rastertileinternalmaterial_elevationBoundary(this.__wbg_ptr,e)}set elevationEpsilon(e){R.__wbg_set_rastertileinternalmaterial_elevationEpsilon(this.__wbg_ptr,e)}set elevationGScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationGScaler(this.__wbg_ptr,e)}set elevationMaxHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxHeight(this.__wbg_ptr,e)}set elevationMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMaxOffset(this.__wbg_ptr,e)}set elevationMinHeight(e){R.__wbg_set_rastertileinternalmaterial_elevationMinHeight(this.__wbg_ptr,e)}set elevationMinOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationMinOffset(this.__wbg_ptr,e)}set elevationOffset(e){R.__wbg_set_rastertileinternalmaterial_elevationOffset(this.__wbg_ptr,e)}set elevationRScaler(e){R.__wbg_set_rastertileinternalmaterial_elevationRScaler(this.__wbg_ptr,e)}set hillshadeBScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBScaler(this.__wbg_ptr,e)}set hillshadeBoundary(e){R.__wbg_set_rastertileinternalmaterial_hillshadeBoundary(this.__wbg_ptr,e)}set hillshadeEpsilon(e){R.__wbg_set_rastertileinternalmaterial_hillshadeEpsilon(this.__wbg_ptr,e)}set hillshadeExaggeration(e){R.__wbg_set_rastertileinternalmaterial_hillshadeExaggeration(this.__wbg_ptr,e)}set hillshadeGScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeGScaler(this.__wbg_ptr,e)}set hillshadeMaxOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMaxOffset(this.__wbg_ptr,e)}set hillshadeMinOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeMinOffset(this.__wbg_ptr,e)}set hillshadeOffset(e){R.__wbg_set_rastertileinternalmaterial_hillshadeOffset(this.__wbg_ptr,e)}set hillshadeRScaler(e){R.__wbg_set_rastertileinternalmaterial_hillshadeRScaler(this.__wbg_ptr,e)}set isElevationHeatmaps(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isElevationHeatmaps(this.__wbg_ptr,t,n)}set isHillshades(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_isHillshades(this.__wbg_ptr,t,n)}set layerReproject(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr,t,n)}set lit(e){R.__wbg_set_rastertileinternalmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set logBoundary(e){R.__wbg_set_rastertileinternalmaterial_logBoundary(this.__wbg_ptr,e)}set logarithmic(e){R.__wbg_set_rastertileinternalmaterial_logarithmic(this.__wbg_ptr,e)}set opacities(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_opacities(this.__wbg_ptr,t,n)}set receiveShadow(e){R.__wbg_set_rastertileinternalmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_rastertileinternalmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set shows(e){let t=qs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_shows(this.__wbg_ptr,t,n)}set terrainLatRange(e){let t=Js(e,R.__wbindgen_malloc),n=L;R.__wbg_set_rastertileinternalmaterial_terrainLatRange(this.__wbg_ptr,t,n)}};Symbol.dispose&&(Ua.prototype[Symbol.dispose]=Ua.prototype.free);var Wa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,os.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_ray_free(e,0)}get direction(){let e=R.__wbg_get_ray_direction(this.__wbg_ptr);return M.__wrap(e)}get origin(){let e=R.__wbg_get_ray_origin(this.__wbg_ptr);return M.__wrap(e)}getPoint(e){let t=R.ray_getPoint(this.__wbg_ptr,e);return M.__wrap(t)}constructor(e,t){N(e,M);var n=e.__destroy_into_raw();N(t,M);var r=t.__destroy_into_raw();let i=R.ray_new(n,r);return this.__wbg_ptr=i,os.register(this,this.__wbg_ptr,this),this}set direction(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_ray_direction(this.__wbg_ptr,t)}set origin(e){N(e,M);var t=e.__destroy_into_raw();R.__wbg_set_ray_origin(this.__wbg_ptr,t)}};Symbol.dispose&&(Wa.prototype[Symbol.dispose]=Wa.prototype.free);var Ga=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ss.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_returnedconstructedterrainmesh_free(e,0)}get max_height(){return R.__wbg_get_returnedconstructedterrainmesh_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_returnedconstructedterrainmesh_min_height(this.__wbg_ptr)}get rtc_translation(){let e=R.__wbg_get_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr);return e===0?void 0:M.__wrap(e)}hasNormals(){return R.returnedconstructedterrainmesh_hasNormals(this.__wbg_ptr)!==0}hasSkirt(){return R.returnedconstructedterrainmesh_hasSkirt(this.__wbg_ptr)!==0}hasWatermask(){return R.returnedconstructedterrainmesh_hasWatermask(this.__wbg_ptr)!==0}constructor(e,t,n,r,i){N(e,wa);var a=e.__destroy_into_raw();let o=Js(r,R.__wbindgen_malloc),s=L,c=0;F(i)||(N(i,M),c=i.__destroy_into_raw());let l=R.returnedconstructedterrainmesh_new(a,t,n,o,s,c);return this.__wbg_ptr=l,ss.register(this,this.__wbg_ptr,this),this}transferHeights(){return R.returnedconstructedterrainmesh_transferHeights(this.__wbg_ptr)}transferIndices(){return R.returnedconstructedterrainmesh_transferIndices(this.__wbg_ptr)}transferNormals(){return R.returnedconstructedterrainmesh_transferNormals(this.__wbg_ptr)}transferSkirtIndices(){return R.returnedconstructedterrainmesh_transferSkirtIndices(this.__wbg_ptr)}transferSkirtNormals(){return R.returnedconstructedterrainmesh_transferSkirtNormals(this.__wbg_ptr)}transferSkirtUvs(){return R.returnedconstructedterrainmesh_transferSkirtUvs(this.__wbg_ptr)}transferSkirtVertices(){return R.returnedconstructedterrainmesh_transferSkirtVertices(this.__wbg_ptr)}transferUvs(){return R.returnedconstructedterrainmesh_transferUvs(this.__wbg_ptr)}transferVertices(){return R.returnedconstructedterrainmesh_transferVertices(this.__wbg_ptr)}transferWatermask(){return R.returnedconstructedterrainmesh_transferWatermask(this.__wbg_ptr)}set max_height(e){R.__wbg_set_returnedconstructedterrainmesh_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_returnedconstructedterrainmesh_min_height(this.__wbg_ptr,e)}set rtc_translation(e){let t=0;F(e)||(N(e,M),t=e.__destroy_into_raw()),R.__wbg_set_returnedconstructedterrainmesh_rtc_translation(this.__wbg_ptr,t)}};Symbol.dispose&&(Ga.prototype[Symbol.dispose]=Ga.prototype.free);var Ka=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_terrainmaterial_free(e,0)}get castShadow(){let e=R.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get lit(){let e=R.__wbg_get_terrainmaterial_lit(this.__wbg_ptr);return e===16777215?void 0:e!==0}get receiveShadow(){let e=R.__wbg_get_terrainmaterial_receiveShadow(this.__wbg_ptr);return e===16777215?void 0:e!==0}get showBoundingBox(){let e=R.__wbg_get_terrainmaterial_showBoundingBox(this.__wbg_ptr);return e===16777215?void 0:e!==0}get show(){let e=R.__wbg_get_terrainmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get skirtExaggeration(){let e=R.__wbg_get_terrainmaterial_skirtExaggeration(this.__wbg_ptr);return e===2**53-1?void 0:e}get skirt(){let e=R.__wbg_get_terrainmaterial_skirt(this.__wbg_ptr);return e===16777215?void 0:e!==0}set castShadow(e){R.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set lit(e){R.__wbg_set_terrainmaterial_lit(this.__wbg_ptr,F(e)?16777215:+!!e)}set receiveShadow(e){R.__wbg_set_terrainmaterial_receiveShadow(this.__wbg_ptr,F(e)?16777215:+!!e)}set showBoundingBox(e){R.__wbg_set_terrainmaterial_showBoundingBox(this.__wbg_ptr,F(e)?16777215:+!!e)}set show(e){R.__wbg_set_terrainmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set skirtExaggeration(e){R.__wbg_set_terrainmaterial_skirtExaggeration(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set skirt(e){R.__wbg_set_terrainmaterial_skirt(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(Ka.prototype[Symbol.dispose]=Ka.prototype.free);var qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ls.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_textmaterial_free(e,0)}get backgroundColor(){let e=R.__wbg_get_textmaterial_backgroundColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderColor(){let e=R.__wbg_get_textmaterial_borderColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get borderWidth(){let e=R.__wbg_get_textmaterial_borderWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get center(){let e=R.__wbg_get_textmaterial_center(this.__wbg_ptr);return e===0?void 0:j.__wrap(e)}get clampToGround(){let e=R.__wbg_get_textmaterial_clampToGround(this.__wbg_ptr);return e===16777215?void 0:e!==0}get color(){let e=R.__wbg_get_textmaterial_color(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutterPriority(){let e=R.__wbg_get_textmaterial_declutterPriority(this.__wbg_ptr);return e===2**53-1?void 0:e}get declutter(){let e=R.__wbg_get_textmaterial_declutter(this.__wbg_ptr);return e===16777215?void 0:e!==0}get depthTest(){let e=R.__wbg_get_textmaterial_depthTest(this.__wbg_ptr);return e===16777215?void 0:e!==0}get font(){let e=R.__wbg_get_textmaterial_font(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get geometryTypes(){let e=R.__wbg_get_textmaterial_geometryTypes(this.__wbg_ptr),t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*4,4)),t}get height(){let e=R.__wbg_get_textmaterial_height(this.__wbg_ptr);return e===2**53-1?void 0:e}get highQuality(){let e=R.__wbg_get_textmaterial_highQuality(this.__wbg_ptr);return e===16777215?void 0:e!==0}get lang(){let e=R.__wbg_get_textmaterial_lang(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get lineHeight(){let e=R.__wbg_get_textmaterial_lineHeight(this.__wbg_ptr);return e===2**53-1?void 0:e}get maxWidth(){let e=R.__wbg_get_textmaterial_maxWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get offsetDepth(){let e=R.__wbg_get_textmaterial_offsetDepth(this.__wbg_ptr);return e===16777215?void 0:e!==0}get opacity(){let e=R.__wbg_get_textmaterial_opacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineColor(){let e=R.__wbg_get_textmaterial_outlineColor(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineOpacity(){let e=R.__wbg_get_textmaterial_outlineOpacity(this.__wbg_ptr);return e===2**53-1?void 0:e}get outlineWidth(){let e=R.__wbg_get_textmaterial_outlineWidth(this.__wbg_ptr);return e===2**53-1?void 0:e}get show(){let e=R.__wbg_get_textmaterial_show(this.__wbg_ptr);return e===16777215?void 0:e!==0}get sizeInMeters(){let e=R.__wbg_get_textmaterial_sizeInMeters(this.__wbg_ptr);return e===16777215?void 0:e!==0}get size(){let e=R.__wbg_get_textmaterial_size(this.__wbg_ptr);return e===2**53-1?void 0:e}get textAlign(){let e=R.__wbg_get_textmaterial_textAlign(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get text(){let e=R.__wbg_get_textmaterial_text(this.__wbg_ptr),t;return e[0]!==0&&(t=Bs(e[0],e[1]).slice(),R.__wbindgen_free(e[0],e[1]*1,1)),t}get transparent(){let e=R.__wbg_get_textmaterial_transparent(this.__wbg_ptr);return e===16777215?void 0:e!==0}set backgroundColor(e){R.__wbg_set_textmaterial_backgroundColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderColor(e){R.__wbg_set_textmaterial_borderColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set borderWidth(e){R.__wbg_set_textmaterial_borderWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set center(e){let t=0;F(e)||(N(e,j),t=e.__destroy_into_raw()),R.__wbg_set_textmaterial_center(this.__wbg_ptr,t)}set clampToGround(e){R.__wbg_set_textmaterial_clampToGround(this.__wbg_ptr,F(e)?16777215:+!!e)}set color(e){R.__wbg_set_textmaterial_color(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set declutterPriority(e){R.__wbg_set_textmaterial_declutterPriority(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set declutter(e){R.__wbg_set_textmaterial_declutter(this.__wbg_ptr,F(e)?16777215:+!!e)}set depthTest(e){R.__wbg_set_textmaterial_depthTest(this.__wbg_ptr,F(e)?16777215:+!!e)}set font(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_font(this.__wbg_ptr,t,n)}set geometryTypes(e){var t=F(e)?0:Xs(e,R.__wbindgen_malloc),n=L;R.__wbg_set_textmaterial_geometryTypes(this.__wbg_ptr,t,n)}set height(e){R.__wbg_set_textmaterial_height(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set highQuality(e){R.__wbg_set_textmaterial_highQuality(this.__wbg_ptr,F(e)?16777215:+!!e)}set lang(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_lang(this.__wbg_ptr,t,n)}set lineHeight(e){R.__wbg_set_textmaterial_lineHeight(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set maxWidth(e){R.__wbg_set_textmaterial_maxWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set offsetDepth(e){R.__wbg_set_textmaterial_offsetDepth(this.__wbg_ptr,F(e)?16777215:+!!e)}set opacity(e){R.__wbg_set_textmaterial_opacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineColor(e){R.__wbg_set_textmaterial_outlineColor(this.__wbg_ptr,F(e)?2**53-1:e>>>0)}set outlineOpacity(e){R.__wbg_set_textmaterial_outlineOpacity(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set outlineWidth(e){R.__wbg_set_textmaterial_outlineWidth(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set show(e){R.__wbg_set_textmaterial_show(this.__wbg_ptr,F(e)?16777215:+!!e)}set sizeInMeters(e){R.__wbg_set_textmaterial_sizeInMeters(this.__wbg_ptr,F(e)?16777215:+!!e)}set size(e){R.__wbg_set_textmaterial_size(this.__wbg_ptr,F(e)?2**53-1:Math.fround(e))}set textAlign(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_textAlign(this.__wbg_ptr,t,n)}set text(e){var t=F(e)?0:I(e,R.__wbindgen_malloc,R.__wbindgen_realloc),n=L;R.__wbg_set_textmaterial_text(this.__wbg_ptr,t,n)}set transparent(e){R.__wbg_set_textmaterial_transparent(this.__wbg_ptr,F(e)?16777215:+!!e)}};Symbol.dispose&&(qa.prototype[Symbol.dispose]=qa.prototype.free);var Ja=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,us.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,us.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_texturefragment_free(e,0)}get gen(){return R.__wbg_get_texturefragment_gen(this.__wbg_ptr)>>>0}get ind(){return R.__wbg_get_texturefragment_ind(this.__wbg_ptr)>>>0}set gen(e){R.__wbg_set_texturefragment_gen(this.__wbg_ptr,e)}set ind(e){R.__wbg_set_texturefragment_ind(this.__wbg_ptr,e)}};Symbol.dispose&&(Ja.prototype[Symbol.dispose]=Ja.prototype.free);var Ya=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ds.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tileuvtransform_free(e,0)}get offset(){let e=R.__wbg_get_tileuvtransform_offset(this.__wbg_ptr);return j.__wrap(e)}get scale(){let e=R.__wbg_get_tileuvtransform_scale(this.__wbg_ptr);return j.__wrap(e)}set offset(e){N(e,j);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_offset(this.__wbg_ptr,t)}set scale(e){N(e,j);var t=e.__destroy_into_raw();R.__wbg_set_tileuvtransform_scale(this.__wbg_ptr,t)}};Symbol.dispose&&(Ya.prototype[Symbol.dispose]=Ya.prototype.free);var Xa=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,fs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,fs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_tilexyz_free(e,0)}get x(){return R.__wbg_get_tilexyz_x(this.__wbg_ptr)>>>0}get y(){return R.__wbg_get_tilexyz_y(this.__wbg_ptr)>>>0}get z(){return R.__wbg_get_tilexyz_z(this.__wbg_ptr)>>>0}set x(e){R.__wbg_set_tilexyz_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_tilexyz_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_tilexyz_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.tilexyz_new(e,t,n);return this.__wbg_ptr=r,fs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(Xa.prototype[Symbol.dispose]=Xa.prototype.free);var Za=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ps.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablehierarchy_free(e,0)}get expected_winding_order(){return R.__wbg_get_transferablehierarchy_expected_winding_order(this.__wbg_ptr)}set expected_winding_order(e){R.__wbg_set_transferablehierarchy_expected_winding_order(this.__wbg_ptr,e)}};Symbol.dispose&&(Za.prototype[Symbol.dispose]=Za.prototype.free);var Qa=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ms.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableholes_free(e,0)}};Symbol.dispose&&(Qa.prototype[Symbol.dispose]=Qa.prototype.free);var $a=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,hs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,hs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablemartini_free(e,0)}get size(){return R.__wbg_get_transferablemartini_size(this.__wbg_ptr)>>>0}set size(e){R.__wbg_set_transferablemartini_size(this.__wbg_ptr,e)}static fromSize(t){let n=R.transferablemartini_fromSize(t);return e.__wrap(n)}constructor(e,t){let n=Ks(t,R.__wbindgen_malloc),r=L,i=R.transferablemartini_new(e,n,r);return this.__wbg_ptr=i,hs.register(this,this.__wbg_ptr,this),this}transfer_coords(){return R.transferablemartini_transfer_coords(this.__wbg_ptr)}};Symbol.dispose&&($a.prototype[Symbol.dispose]=$a.prototype.free);var eo=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,gs.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,gs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferableparsedmvtresult_free(e,0)}f32_stream(){return R.transferableparsedmvtresult_f32_stream(this.__wbg_ptr)}f64_stream(){return R.transferableparsedmvtresult_f64_stream(this.__wbg_ptr)}meta(){return R.transferableparsedmvtresult_meta(this.__wbg_ptr)}u32_stream(){return R.transferableparsedmvtresult_u32_stream(this.__wbg_ptr)}u8_stream(){return R.transferableparsedmvtresult_u8_stream(this.__wbg_ptr)}};Symbol.dispose&&(eo.prototype[Symbol.dispose]=eo.prototype.free);var to=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_s.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolygonbatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolygonbatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolygonbatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolygonbatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolygonbatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolygonbatchedfeature_constructor(e,t);return this.__wbg_ptr=n,_s.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolygonbatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolygonbatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setExpectedWindingOrders(e,t){R.transferablepolygonbatchedfeature_setExpectedWindingOrders(this.__wbg_ptr,e,t)}setHoles(e,t){R.transferablepolygonbatchedfeature_setHoles(this.__wbg_ptr,e,t)}setHolesBoundaries(e,t){R.transferablepolygonbatchedfeature_setHolesBoundaries(this.__wbg_ptr,e,t)}setHolesSizes(e,t){R.transferablepolygonbatchedfeature_setHolesSizes(this.__wbg_ptr,e,t)}setHolesTotalSizes(e,t){R.transferablepolygonbatchedfeature_setHolesTotalSizes(this.__wbg_ptr,e,t)}setOuterRing(e,t){R.transferablepolygonbatchedfeature_setOuterRing(this.__wbg_ptr,e,t)}setOuterRingSizes(e,t){R.transferablepolygonbatchedfeature_setOuterRingSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolygonbatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolygonbatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferExpectedWindingOrders(){return R.transferablepolygonbatchedfeature_transferExpectedWindingOrders(this.__wbg_ptr)}transferHoles(){return R.transferablepolygonbatchedfeature_transferHoles(this.__wbg_ptr)}transferHolesBoundaries(){return R.transferablepolygonbatchedfeature_transferHolesBoundaries(this.__wbg_ptr)}transferHolesSizes(){return R.transferablepolygonbatchedfeature_transferHolesSizes(this.__wbg_ptr)}transferHolesTotalSizes(){return R.transferablepolygonbatchedfeature_transferHolesTotalSizes(this.__wbg_ptr)}transferOuterRing(){return R.transferablepolygonbatchedfeature_transferOuterRing(this.__wbg_ptr)}transferOuterRingSizes(){return R.transferablepolygonbatchedfeature_transferOuterRingSizes(this.__wbg_ptr)}};Symbol.dispose&&(to.prototype[Symbol.dispose]=to.prototype.free);var no=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,vs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablepolylinebatchedfeature_free(e,0)}get crs(){return R.__wbg_get_transferablepolylinebatchedfeature_crs(this.__wbg_ptr)}get length(){return R.__wbg_get_transferablepolylinebatchedfeature_length(this.__wbg_ptr)>>>0}set crs(e){R.__wbg_set_transferablepolylinebatchedfeature_crs(this.__wbg_ptr,e)}set length(e){R.__wbg_set_transferablepolylinebatchedfeature_length(this.__wbg_ptr,e)}constructor(e,t){let n=R.transferablepolylinebatchedfeature_constructor(e,t);return this.__wbg_ptr=n,vs.register(this,this.__wbg_ptr,this),this}setBatchIds(e,t){R.transferablepolylinebatchedfeature_setBatchIds(this.__wbg_ptr,e,t)}setBatchIndices(e,t){R.transferablepolylinebatchedfeature_setBatchIndices(this.__wbg_ptr,e,t)}setPoints(e,t){R.transferablepolylinebatchedfeature_setPoints(this.__wbg_ptr,e,t)}setPointsSizes(e,t){R.transferablepolylinebatchedfeature_setPointsSizes(this.__wbg_ptr,e,t)}transferBatchIds(){return R.transferablepolylinebatchedfeature_transferBatchIds(this.__wbg_ptr)}transferBatchIndices(){return R.transferablepolylinebatchedfeature_transferBatchIndices(this.__wbg_ptr)}transferPoints(){return R.transferablepolylinebatchedfeature_transferPoints(this.__wbg_ptr)}transferPointsSizes(){return R.transferablepolylinebatchedfeature_transferPointsSizes(this.__wbg_ptr)}};Symbol.dispose&&(no.prototype[Symbol.dispose]=no.prototype.free);var ro=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ys.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferablerasterdemdata_free(e,0)}get decoder(){let e=R.__wbg_get_transferablerasterdemdata_decoder(this.__wbg_ptr);return va.__wrap(e)}set decoder(e){N(e,va);var t=e.__destroy_into_raw();R.__wbg_set_transferablerasterdemdata_decoder(this.__wbg_ptr,t)}constructor(e){N(e,va);var t=e.__destroy_into_raw();let n=R.transferablerasterdemdata_new(t);return this.__wbg_ptr=n,ys.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ro.prototype[Symbol.dispose]=ro.prototype.free);var io=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transferabletile_free(e,0)}get cached_mesh_handle(){let e=R.__wbg_get_transferabletile_cached_mesh_handle(this.__wbg_ptr);return e===0?void 0:sa.__wrap(e)}get coords(){let e=R.__wbg_get_transferabletile_coords(this.__wbg_ptr);return Xa.__wrap(e)}get max_height(){return R.__wbg_get_transferabletile_max_height(this.__wbg_ptr)}get min_height(){return R.__wbg_get_transferabletile_min_height(this.__wbg_ptr)}set cached_mesh_handle(e){let t=0;F(e)||(N(e,sa),t=e.__destroy_into_raw()),R.__wbg_set_transferabletile_cached_mesh_handle(this.__wbg_ptr,t)}set coords(e){N(e,Xa);var t=e.__destroy_into_raw();R.__wbg_set_transferabletile_coords(this.__wbg_ptr,t)}set max_height(e){R.__wbg_set_transferabletile_max_height(this.__wbg_ptr,e)}set min_height(e){R.__wbg_set_transferabletile_min_height(this.__wbg_ptr,e)}constructor(e,t,n,r){N(e,Xa);var i=e.__destroy_into_raw();let a=0;F(r)||(N(r,sa),a=r.__destroy_into_raw());let o=R.transferabletile_new(i,t,n,a);return this.__wbg_ptr=o,bs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(io.prototype[Symbol.dispose]=io.prototype.free);var ao=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_transform_free(e,0)}get qw(){return R.__wbg_get_transform_qw(this.__wbg_ptr)}get qx(){return R.__wbg_get_transform_qx(this.__wbg_ptr)}get qy(){return R.__wbg_get_transform_qy(this.__wbg_ptr)}get qz(){return R.__wbg_get_transform_qz(this.__wbg_ptr)}get sx(){return R.__wbg_get_transform_sx(this.__wbg_ptr)}get sy(){return R.__wbg_get_transform_sy(this.__wbg_ptr)}get sz(){return R.__wbg_get_transform_sz(this.__wbg_ptr)}get tx(){return R.__wbg_get_transform_tx(this.__wbg_ptr)}get ty(){return R.__wbg_get_transform_ty(this.__wbg_ptr)}get tz(){return R.__wbg_get_transform_tz(this.__wbg_ptr)}set qw(e){R.__wbg_set_transform_qw(this.__wbg_ptr,e)}set qx(e){R.__wbg_set_transform_qx(this.__wbg_ptr,e)}set qy(e){R.__wbg_set_transform_qy(this.__wbg_ptr,e)}set qz(e){R.__wbg_set_transform_qz(this.__wbg_ptr,e)}set sx(e){R.__wbg_set_transform_sx(this.__wbg_ptr,e)}set sy(e){R.__wbg_set_transform_sy(this.__wbg_ptr,e)}set sz(e){R.__wbg_set_transform_sz(this.__wbg_ptr,e)}set tx(e){R.__wbg_set_transform_tx(this.__wbg_ptr,e)}set ty(e){R.__wbg_set_transform_ty(this.__wbg_ptr,e)}set tz(e){R.__wbg_set_transform_tz(this.__wbg_ptr,e)}constructor(e,t,n,r,i,a,o,s,c,l){let u=R.transform_new(e,t,n,r,i,a,o,s,c,l);return this.__wbg_ptr=u,xs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(ao.prototype[Symbol.dispose]=ao.prototype.free);var oo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ss.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_uintattribute_free(e,0)}get size(){return R.__wbg_get_uintattribute_size(this.__wbg_ptr)}set size(e){R.__wbg_set_uintattribute_size(this.__wbg_ptr,e)}constructor(e,t){let n=Ks(e,R.__wbindgen_malloc),r=L,i=R.uintattribute_new(n,r,t);return this.__wbg_ptr=i,Ss.register(this,this.__wbg_ptr,this),this}transferData(){return R.uintattribute_transferData(this.__wbg_ptr)}};Symbol.dispose&&(oo.prototype[Symbol.dispose]=oo.prototype.free);var so=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Cs.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_upsamplableterraingeometry_free(e,0)}constructor(e,t,n,r,i){let a=Js(e,R.__wbindgen_malloc),o=L,s=Ks(t,R.__wbindgen_malloc),c=L,l=Js(n,R.__wbindgen_malloc),u=L;var d=F(r)?0:Js(r,R.__wbindgen_malloc),f=L,p=F(i)?0:qs(i,R.__wbindgen_malloc),m=L;let h=R.upsamplableterraingeometry_new(a,o,s,c,l,u,d,f,p,m);return this.__wbg_ptr=h,Cs.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(so.prototype[Symbol.dispose]=so.prototype.free);var j=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,ws.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ws.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec2_free(e,0)}get x(){return R.__wbg_get_vec2_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec2_y(this.__wbg_ptr)}set x(e){R.__wbg_set_vec2_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec2_y(this.__wbg_ptr,e)}constructor(e,t){let n=R.vec2_new(e,t);return this.__wbg_ptr=n,ws.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var M=class e{static __wrap(t){let n=Object.create(e.prototype);return n.__wbg_ptr=t,Ts.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ts.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_vec3_free(e,0)}get x(){return R.__wbg_get_vec3_x(this.__wbg_ptr)}get y(){return R.__wbg_get_vec3_y(this.__wbg_ptr)}get z(){return R.__wbg_get_vec3_z(this.__wbg_ptr)}set x(e){R.__wbg_set_vec3_x(this.__wbg_ptr,e)}set y(e){R.__wbg_set_vec3_y(this.__wbg_ptr,e)}set z(e){R.__wbg_set_vec3_z(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.vec3_new(e,t,n);return this.__wbg_ptr=r,Ts.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);var co=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Es.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_windingorder_free(e,0)}get 0(){return R.__wbg_get_windingorder_0(this.__wbg_ptr)}set 0(e){R.__wbg_set_windingorder_0(this.__wbg_ptr,e)}};Symbol.dispose&&(co.prototype[Symbol.dispose]=co.prototype.free);var lo=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ds.unregister(this),e}free(){let e=this.__destroy_into_raw();R.__wbg_window_free(e,0)}get height(){return R.__wbg_get_window_height(this.__wbg_ptr)}get pixelRatio(){return R.__wbg_get_window_pixelRatio(this.__wbg_ptr)}get width(){return R.__wbg_get_window_width(this.__wbg_ptr)}set height(e){R.__wbg_set_window_height(this.__wbg_ptr,e)}set pixelRatio(e){R.__wbg_set_window_pixelRatio(this.__wbg_ptr,e)}set width(e){R.__wbg_set_window_width(this.__wbg_ptr,e)}constructor(e,t,n){let r=R.window_new(e,t,n);return this.__wbg_ptr=r,Ds.register(this,this.__wbg_ptr,this),this}};Symbol.dispose&&(lo.prototype[Symbol.dispose]=lo.prototype.free);function uo(e,t,n,r){N(e,to);var i=e.__destroy_into_raw();N(t,La);var a=t.__destroy_into_raw();let o=0;F(r)||(N(r,Sa),o=r.__destroy_into_raw());let s=R.constructPolygonBatchedFeature(i,a,n,o);return s===0?void 0:ha.__wrap(s)}function fo(e,t,n){N(e,no);var r=e.__destroy_into_raw();N(t,Va);var i=t.__destroy_into_raw();let a=R.constructPolylineBatchedFeature(r,i,n);return a===0?void 0:_a.__wrap(a)}function po(e,t,n,r,i,a){let o=qs(e,R.__wbindgen_malloc),s=L;N(t,io);var c=t.__destroy_into_raw();let l=R.constructQuantizedMeshTerrainMesh(o,s,c,n,r,i,a);return Ga.__wrap(l)}function mo(e,t,n,r,i,a){let o=qs(e,R.__wbindgen_malloc),s=L;N(t,io);var c=t.__destroy_into_raw();N(n,ro);var l=n.__destroy_into_raw();N(r,$a);var u=r.__destroy_into_raw();let d=R.constructTerrainMesh(o,s,c,l,u,i,a);return Ga.__wrap(d)}function ho(e,t,n,r,i,a,o){let s=qs(e,R.__wbindgen_malloc),c=L,l=0;F(i)||(N(i,Sa),l=i.__destroy_into_raw());let u=I(o,R.__wbindgen_malloc,R.__wbindgen_realloc),d=L,f=R.parseMvtTile(s,c,t,n,r,l,a,u,d);if(f[2])throw Zs(f[1]);return eo.__wrap(f[0])}function go(e,t,n,r,i,a,o){N(e,io);var s=e.__destroy_into_raw();N(t,io);var c=t.__destroy_into_raw();N(n,so);var l=n.__destroy_into_raw();let u=R.upsampleQuantizedMeshTerrainMesh(s,c,l,r,i,a,o);return Ga.__wrap(u)}function _o(e,t,n,r,i,a,o){N(e,io);var s=e.__destroy_into_raw();N(t,io);var c=t.__destroy_into_raw();N(n,ro);var l=n.__destroy_into_raw();N(r,so);var u=r.__destroy_into_raw();let d=R.upsampleTerrainMesh(s,c,l,u,i,a,o);return Ga.__wrap(d)}function vo(){return{__proto__:null,"./navara_wasm_worker_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,t){return Error(Bs(e,t))},__wbg_Number_9a4e0ecb0fa16705:function(e){return Number(e)},__wbg_String_8564e559799eccda:function(e,t){let n=I(String(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;Fs().setInt32(e+4,r,!0),Fs().setInt32(e+0,n,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(e,t){let n=t,r=typeof n==`bigint`?n:void 0;Fs().setBigInt64(e+8,F(r)?BigInt(0):r,!0),Fs().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(e){let t=e,n=typeof t==`boolean`?t:void 0;return F(n)?16777215:+!!n},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(e,t){let n=I(ks(t),R.__wbindgen_malloc,R.__wbindgen_realloc),r=L;Fs().setInt32(e+4,r,!0),Fs().setInt32(e+0,n,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(e,t){return e in t},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(e){return typeof e==`bigint`},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(e){return typeof e==`function`},__wbg___wbindgen_is_object_a27215656b807791:function(e){let t=e;return typeof t==`object`&&!!t},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(e,t){return e===t},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(e,t){return e==t},__wbg___wbindgen_memory_de265df8aadd6273:function(){return R.memory},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(e,t){let n=t,r=typeof n==`number`?n:void 0;Fs().setFloat64(e+8,F(r)?0:r,!0),Fs().setInt32(e+0,!F(r),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=F(r)?0:I(r,R.__wbindgen_malloc,R.__wbindgen_realloc),a=L;Fs().setInt32(e+4,a,!0),Fs().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(Bs(e,t))},__wbg_buffer_0f212447ac64c53b:function(e){return e.buffer},__wbg_call_8a2dd23819f8a60a:function(){return Gs(function(e,t){return e.call(t)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return Gs(function(e,t,n){return e.call(t,n)},arguments)},__wbg_done_89b2b13e91a60321:function(e){return e.done},__wbg_entries_015dc610cd81ede0:function(e){return Object.entries(e)},__wbg_get_507a50627bffa49b:function(e,t){return e[t>>>0]},__wbg_get_c7eb1f358a7654df:function(){return Gs(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(e,t){return e[t>>>0]},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t},__wbg_instanceof_Map_e5b5e3db98422fcc:function(e){let t;try{t=e instanceof Map}catch{t=!1}return t},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t},__wbg_isArray_0677c962b281d01a:function(e){return Array.isArray(e)},__wbg_isSafeInteger_04f36e4056f1b851:function(e){return Number.isSafeInteger(e)},__wbg_iterator_6f722e4a93058b71:function(){return Symbol.iterator},__wbg_length_0133fa10e3234c57:function(e){return e.length},__wbg_length_1f0964f4a5e2c6d8:function(e){return e.length},__wbg_length_370319915dc99107:function(e){return e.length},__wbg_length_381d540857ec99e8:function(e){return e.length},__wbg_length_98f10d1e2f4ea968:function(e){return e.length},__wbg_lle_new:function(e){return Da.__wrap(e)},__wbg_log_631549b8bf4c7159:function(e,t){console.log(Bs(e,t))},__wbg_new_32b398fb48b6d94a:function(){return[]},__wbg_new_80efd62ef570c5de:function(e){return new Float64Array(e)},__wbg_new_92a08b12c30e98e8:function(e){return new Float32Array(e)},__wbg_new_cd45aabdf6073e84:function(e){return new Uint8Array(e)},__wbg_new_da52cf8fe3429cb2:function(){return{}},__wbg_new_dfd44b7151fab657:function(e){return new Uint32Array(e)},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_5784416b97d45088:function(e,t,n){return new Float64Array(e,t>>>0,n>>>0)},__wbg_new_with_byte_offset_and_length_c6e1a1aae380b2ff:function(e,t,n){return new Uint32Array(e,t>>>0,n>>>0)},__wbg_next_6dbf2c0ac8cde20f:function(e){return e.next},__wbg_next_71f2aa1cb3d1e37e:function(){return Gs(function(e){return e.next()},arguments)},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,n){Uint8Array.prototype.set.call(Ns(e,t),n)},__wbg_push_d2ae3af0c1217ae6:function(e,t){return e.push(t)},__wbg_set_1e016b6a1b5f7cb3:function(e,t,n){e.set(As(t,n))},__wbg_set_29967298e530d279:function(e,t,n){e.set(js(t,n))},__wbg_set_4d7dd76f3dae2926:function(e,t,n){e.set(Ns(t,n))},__wbg_set_6be42768c690e380:function(e,t,n){e[t]=n},__wbg_set_8535240470bf2500:function(){return Gs(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_8a16b38e4805b298:function(e,t,n){e[t>>>0]=n},__wbg_set_b5e6b338281ca6ff:function(e,t,n){e.set(Ms(t,n))},__wbg_texturefragment_new:function(e){return Ja.__wrap(e)},__wbg_tileuvtransform_new:function(e){return Ya.__wrap(e)},__wbg_value_a5d5488a9589444a:function(e){return e.value},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e,t){return Bs(e,t)},__wbindgen_cast_0000000000000004:function(e){return BigInt.asUintN(64,e)},__wbindgen_init_externref_table:function(){let e=R.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}let yo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_aabb_free(e,1)),bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_batchpropresult_free(e,1)),xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_billboardmaterial_free(e,1)),So=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_boundingsphere_free(e,1)),Co=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cachedmeshhandle_free(e,1)),wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameracontrolupdateevent_free(e,1)),To=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameraflightendedevent_free(e,1)),Eo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerafrustum_free(e,1)),Do=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_cameraorientation_free(e,1)),Oo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_camerastatus_free(e,1)),ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledexpression_free(e,1)),Ao=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_compiledfilter_free(e,1)),jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygongeometry_free(e,1)),Mo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolygonoutlinegeometry_free(e,1)),No=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_constructedpolylinegeometry_free(e,1)),Po=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationdecoder_free(e,1)),Fo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_elevationheatmapmaterial_free(e,1)),Io=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ellipsoidgeodesic_free(e,1)),Lo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_encodedvec3_free(e,1)),Ro=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_extentradianf32_free(e,1)),zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_floatattribute_free(e,1)),Bo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_geometry_free(e,1)),Vo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_globe_free(e,1)),Ho=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_hillshadematerial_free(e,1)),Uo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_lle_free(e,1)),Wo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelinternalmaterial_free(e,1)),Go=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_modelmaterial_free(e,1)),Ko=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_nearfar_free(e,1)),qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_overscaledtilehandle_free(e,1)),Jo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_plane_free(e,1)),Yo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_pointmaterial_free(e,1)),Xo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometry_free(e,1)),Zo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygongeometryattributes_free(e,1)),Qo=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygoninternalmaterial_free(e,1)),$o=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polygonmaterial_free(e,1)),es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometry_free(e,1)),ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinegeometryattributes_free(e,1)),ns=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylineinternalmaterial_free(e,1)),rs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_polylinematerial_free(e,1)),is=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastermaterial_free(e,1)),as=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_rastertileinternalmaterial_free(e,1)),os=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_ray_free(e,1)),ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_returnedconstructedterrainmesh_free(e,1)),cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_terrainmaterial_free(e,1)),ls=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_textmaterial_free(e,1)),us=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_texturefragment_free(e,1)),ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tileuvtransform_free(e,1)),fs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_tilexyz_free(e,1)),ps=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablehierarchy_free(e,1)),ms=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableholes_free(e,1)),hs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablemartini_free(e,1)),gs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferableparsedmvtresult_free(e,1)),_s=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolygonbatchedfeature_free(e,1)),vs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablepolylinebatchedfeature_free(e,1)),ys=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferablerasterdemdata_free(e,1)),bs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transferabletile_free(e,1)),xs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_transform_free(e,1)),Ss=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_uintattribute_free(e,1)),Cs=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_upsamplableterraingeometry_free(e,1)),ws=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec2_free(e,1)),Ts=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_vec3_free(e,1)),Es=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_windingorder_free(e,1)),Ds=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>R.__wbg_window_free(e,1));function Os(e){let t=R.__externref_table_alloc();return R.__wbindgen_externrefs.set(t,e),t}function N(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function ks(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=ks(e[0]));for(let r=1;r<t;r++)n+=`, `+ks(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function As(e,t){return e>>>=0,Ls().subarray(e/4,e/4+t)}function js(e,t){return e>>>=0,zs().subarray(e/8,e/8+t)}function P(e,t){e>>>=0;let n=Fs(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(R.__wbindgen_externrefs.get(n.getUint32(i,!0)));return R.__externref_drop_slice(e,t),r}function Ms(e,t){return e>>>=0,Hs().subarray(e/4,e/4+t)}function Ns(e,t){return e>>>=0,Ws().subarray(e/1,e/1+t)}let Ps=null;function Fs(){return(Ps===null||Ps.buffer.detached===!0||Ps.buffer.detached===void 0&&Ps.buffer!==R.memory.buffer)&&(Ps=new DataView(R.memory.buffer)),Ps}let Is=null;function Ls(){return(Is===null||Is.byteLength===0)&&(Is=new Float32Array(R.memory.buffer)),Is}let Rs=null;function zs(){return(Rs===null||Rs.byteLength===0)&&(Rs=new Float64Array(R.memory.buffer)),Rs}function Bs(e,t){return ec(e>>>0,t)}let Vs=null;function Hs(){return(Vs===null||Vs.byteLength===0)&&(Vs=new Uint32Array(R.memory.buffer)),Vs}let Us=null;function Ws(){return(Us===null||Us.byteLength===0)&&(Us=new Uint8Array(R.memory.buffer)),Us}function Gs(e,t){try{return e.apply(this,t)}catch(e){let t=Os(e);R.__wbindgen_exn_store(t)}}function F(e){return e==null}function Ks(e,t){let n=t(e.length*4,4)>>>0;return Hs().set(e,n/4),L=e.length,n}function qs(e,t){let n=t(e.length*1,1)>>>0;return Ws().set(e,n/1),L=e.length,n}function Js(e,t){let n=t(e.length*4,4)>>>0;return Ls().set(e,n/4),L=e.length,n}function Ys(e,t){let n=t(e.length*8,8)>>>0;return zs().set(e,n/8),L=e.length,n}function Xs(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=Os(e[t]);Fs().setUint32(n+4*t,r,!0)}return L=e.length,n}function I(e,t,n){if(n===void 0){let n=tc.encode(e),r=t(n.length,1)>>>0;return Ws().subarray(r,r+n.length).set(n),L=n.length,r}let r=e.length,i=t(r,1)>>>0,a=Ws(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=Ws().subarray(i+o,i+r),a=tc.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return L=o,i}function Zs(e){let t=R.__wbindgen_externrefs.get(e);return R.__externref_table_dealloc(e),t}let Qs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});Qs.decode();let $s=0;function ec(e,t){return $s+=t,$s>=2146435072&&(Qs=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),Qs.decode(),$s=t),Qs.decode(Ws().subarray(e,e+t))}let tc=new TextEncoder;`encodeInto`in tc||(tc.encodeInto=function(e,t){let n=tc.encode(e);return t.set(n),{read:e.length,written:n.length}});let L=0,R;function nc(e,t){return R=e.exports,Ps=null,Is=null,Rs=null,Vs=null,Us=null,R.__wbindgen_start(),R}async function rc(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(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",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function ic(e){if(R!==void 0)return R;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(``+new URL(`navara_wasm_worker_bg-CT26EH41.wasm`,self.location.href).href,``+self.location.href));let t=vo();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await rc(await e,t);return nc(n,r)}function ac(e){let t=new ee(e);return{result:t,transfers:[t.batch_id?.buffer,t.batch_index?.buffer,t.normal?.buffer,t.position_3d_high?.buffer,t.position_3d_low?.buffer,t.position?.buffer,t.scale_normal_and_cap?.buffer,t.indices.buffer,t.outline_position?.buffer,t.outline_position_3d_high?.buffer,t.outline_position_3d_low?.buffer,t.outline_scale_normal_and_cap?.buffer,t.outline_skip_indices?.buffer,t.outline_batch_index?.buffer].filter(T)}}function oc(e){return new io(sc(e.coords),e.max_height,e.min_height,e.cached_mesh_handle?cc(e.cached_mesh_handle):void 0)}function sc(e){return new Xa(e.x,e.y,e.z)}function cc(e){return new sa(e.vertices,e.indices,e.uvs,e.heights)}function lc(e){return new so(e.uvs,e.indices,e.heights,e.normals,e.watermask)}function uc(e){return new Sa(e.west,e.south,e.east,e.north)}function dc(e){return new La(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.extrudedHeight,e.wireframe,e.outline,e.perPositionHeight,e.__internal__)}function fc(e){let t=new to(e.crs,e.length);return t.setOuterRing(e.outer_ring.length,t=>{t.set(e.outer_ring)}),t.setOuterRingSizes(e.outer_ring_sizes.length,t=>{t.set(e.outer_ring_sizes)}),t.setHoles(e.holes.length,t=>{t.set(e.holes)}),t.setHolesSizes(e.holes_sizes.length,t=>{t.set(e.holes_sizes)}),t.setHolesTotalSizes(e.holes_total_sizes.length,t=>{t.set(e.holes_total_sizes)}),t.setHolesBoundaries(e.holes_boundaries.length,t=>{t.set(e.holes_boundaries)}),t.setExpectedWindingOrders(e.expected_winding_orders.length,t=>{t.set(e.expected_winding_orders)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}let pc;async function mc(){return pc??=ic(),pc}async function hc(){if(!pc)return 0;let{memory:e}=await pc;return e.buffer.byteLength}async function gc(e,t,n,r){await mc();let i=uo(fc(e),dc(t),n,r?uc(r):void 0);if(!i)return;let{result:a,transfers:o}=ac(i);return i.free(),Mc(a,o)}function _c(e){let t=new k(e);return{result:t,transfers:[t.position.buffer,t.position_high?.buffer,t.position_low?.buffer,t.start?.buffer,t.start_high?.buffer,t.start_low?.buffer,t.end_high?.buffer,t.end_low?.buffer,t.start_normals?.buffer,t.forward_offset?.buffer,t.end_normal_and_texture_coordinate_normalization_x?.buffer,t.right_normal_and_texture_coordinate_normalization_y.buffer,t.batch_id?.buffer,t.batch_index?.buffer,t.indices.buffer].filter(T)}}function vc(e){return new Va(e.show,e.castShadow,e.receiveShadow,e.color,e.clampToGround,e.tiled,e.height,e.width,e.maxWidth,e.__internal__)}function yc(e){let t=new no(e.crs,e.length);return t.setPoints(e.points.length,t=>{t.set(e.points)}),t.setPointsSizes(e.points_sizes.length,t=>{t.set(e.points_sizes)}),t.setBatchIds(e.batch_ids.length,t=>{t.set(e.batch_ids)}),t.setBatchIndices(e.batch_indices.length,t=>{t.set(e.batch_indices)}),t}async function bc(e,t,n){await mc();let r=fo(yc(e),vc(t),n);if(!r)return;let{result:i,transfers:a}=_c(r);return r.free(),Mc(i,a)}function xc(e){let t=new D(e),n=[t.vertices.buffer,t.uvs.buffer,t.indices.buffer,t.heights.buffer];return t.normals&&n.push(t.normals.buffer),t.skirt_vertices&&n.push(t.skirt_vertices.buffer),t.skirt_uvs&&n.push(t.skirt_uvs.buffer),t.skirt_indices&&n.push(t.skirt_indices.buffer),t.skirt_normals&&n.push(t.skirt_normals.buffer),t.watermask&&n.push(t.watermask.buffer),{result:t,transfers:n}}async function Sc(e,t,n,r,i,a){await mc();let o=po(e,oc(t),n,r,i,a),{result:s,transfers:c}=xc(o);return o.free(),Mc({result:s},[...c])}function Cc(e){return new ro(new va(e.decoder.r_scaler,e.decoder.g_scaler,e.decoder.b_scaler,e.decoder.offset,e.decoder.max_offset,e.decoder.min_offset,e.decoder.boundary,e.decoder.epsilon))}async function wc(e,t,n,r,i,a){await mc();let o=r+1,s=$a.fromSize(o),c=mo(e,oc(t),Cc(n),s,i,a),{result:l,transfers:u}=xc(c);return c.free(),Mc({result:l},[...u])}async function Tc(e){let t=await createImageBitmap(e);try{let e=new OffscreenCanvas(t.width,t.height).getContext(`2d`);if(e===null)throw Error(`failed to get context of canvas`);e.drawImage(t,0,0);let n=e.getImageData(0,0,t.width,t.height).data;return Mc(n,[n.buffer])}finally{t.close()}}async function Ec(e,t){try{let n=t.getContext(`2d`);if(n===null)throw Error(`failed to get context of canvas`);return n.drawImage(e,0,0),n.getImageData(0,0,e.width,e.height).data}finally{e.close()}}async function Dc(e,t,n,r,i,a,o){await mc();let s=ho(e,t,n,r,i?uc(i):void 0,a,o),c,l,u,d,f;try{c=s.f64_stream(),l=s.f32_stream(),u=s.u32_stream(),d=s.u8_stream(),f=s.meta()}finally{s.free()}return Mc({f64_stream:c,f32_stream:l,u32_stream:u,u8_stream:d,meta:f},[c.buffer,l.buffer,u.buffer,d.buffer])}async function Oc(e,t,n,r,i,a,o){await mc();let s=go(oc(e),oc(t),lc(n),r,i,a,o),{result:c,transfers:l}=xc(s);return s.free(),Mc(c,l)}async function kc(e,t,n,r,i,a,o){await mc();let s=_o(oc(e),oc(t),Cc(n),lc(r),i,a,o),{result:c,transfers:l}=xc(s);return s.free(),Mc(c,l)}async function Ac(){await mc()}let jc={constructTerrainMesh:wc,constructQuantizedMeshTerrainMesh:Sc,upsampleTerrainMesh:kc,upsampleQuantizedMeshTerrainMesh:Oc,getImageDataFromImageBitmap:Ec,getImageDataFromBlob:Tc,constructPolygonBatchedFeature:gc,constructPolylineBatchedFeature:bc,parseMvtTile:Dc,warmUp:Ac,getWasmMemoryUsage:hc},Mc=(e,t)=>new S.Transfer(e,t),Nc=!1,Pc=(...e)=>(Nc||=(S.worker(jc),Fc(),!0),S.worker(...e));function Fc(){jc.warmUp.worker?.addAbortListener(async()=>{})}let{initializeWorkerPool:Ic,terminateWorkerPool:Lc,warmUpWorkerPool:Rc,worker:zc,workerPoolStats:Bc,workerPoolHeapStats:Vc,probeWorkerPoolHeap:Hc}=(()=>{let e;return{initializeWorkerPool:(t,n,r)=>{if(e)throw Error(`Worker pool has already been initialized.`);e={pool:new w(t,n.total,r),manager:n}},terminateWorkerPool:()=>{e&&=(e.pool.terminate(),void 0)},warmUpWorkerPool:()=>(u(e,`initializeWorkerPool() must be invoked first.`),e.pool.warmUp()),worker:()=>(u(e,`initializeWorkerPool() must be invoked first.`),{pool:e.pool,manager:e.manager}),workerPoolStats:()=>e?.pool.stats(),workerPoolHeapStats:()=>e?.pool.heapStats(),probeWorkerPoolHeap:()=>e?.pool.probeHeap()}})();var Uc=typeof global==`object`&&global&&global.Object===Object&&global,Wc=typeof self==`object`&&self&&self.Object===Object&&self,Gc=Uc||Wc||Function(`return this`)(),Kc=Gc.Symbol,qc=Object.prototype,Jc=qc.hasOwnProperty,Yc=qc.toString,Xc=Kc?Kc.toStringTag:void 0;function Zc(e){var t=Jc.call(e,Xc),n=e[Xc];try{e[Xc]=void 0;var r=!0}catch{}var i=Yc.call(e);return r&&(t?e[Xc]=n:delete e[Xc]),i}var Qc=Object.prototype.toString;function $c(e){return Qc.call(e)}var el=`[object Null]`,tl=`[object Undefined]`,nl=Kc?Kc.toStringTag:void 0;function rl(e){return e==null?e===void 0?tl:el:nl&&nl in Object(e)?Zc(e):$c(e)}function il(e){return typeof e==`object`&&!!e}var al=`[object Symbol]`;function ol(e){return typeof e==`symbol`||il(e)&&rl(e)==al}function sl(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var cl=Array.isArray,ll=1/0,ul=Kc?Kc.prototype:void 0,dl=ul?ul.toString:void 0;function fl(e){if(typeof e==`string`)return e;if(cl(e))return sl(e,fl)+``;if(ol(e))return dl?dl.call(e):``;var t=e+``;return t==`0`&&1/e==-ll?`-0`:t}function pl(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ml(e){return e}var hl=`[object AsyncFunction]`,gl=`[object Function]`,_l=`[object GeneratorFunction]`,vl=`[object Proxy]`;function yl(e){if(!pl(e))return!1;var t=rl(e);return t==gl||t==_l||t==hl||t==vl}var bl=Gc[`__core-js_shared__`],xl=function(){var e=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Sl(e){return!!xl&&xl in e}var Cl=Function.prototype.toString;function wl(e){if(e!=null){try{return Cl.call(e)}catch{}try{return e+``}catch{}}return``}var Tl=/[\\^$.*+?()[\]{}|]/g,El=/^\[object .+?Constructor\]$/,Dl=Function.prototype,Ol=Object.prototype,kl=Dl.toString,Al=Ol.hasOwnProperty,jl=RegExp(`^`+kl.call(Al).replace(Tl,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Ml(e){return!pl(e)||Sl(e)?!1:(yl(e)?jl:El).test(wl(e))}function Nl(e,t){return e?.[t]}function Pl(e,t){var n=Nl(e,t);return Ml(n)?n:void 0}function Fl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Il=800,Ll=16,Rl=Date.now;function zl(e){var t=0,n=0;return function(){var r=Rl(),i=Ll-(r-n);if(n=r,i>0){if(++t>=Il)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Bl(e){return function(){return e}}var Vl=function(){try{var e=Pl(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Hl=zl(Vl?function(e,t){return Vl(e,`toString`,{configurable:!0,enumerable:!1,value:Bl(t),writable:!0})}:ml),Ul=9007199254740991,Wl=/^(?:0|[1-9]\d*)$/;function Gl(e,t){var n=typeof e;return t??=Ul,!!t&&(n==`number`||n!=`symbol`&&Wl.test(e))&&e>-1&&e%1==0&&e<t}function Kl(e,t,n){t==`__proto__`&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=Object.prototype.hasOwnProperty;function Yl(e,t,n){var r=e[t];(!(Jl.call(e,t)&&ql(r,n))||n===void 0&&!(t in e))&&Kl(e,t,n)}var Xl=Math.max;function Zl(e,t,n){return t=Xl(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Xl(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Fl(e,this,s)}}var Ql=9007199254740991;function $l(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ql}var eu=`[object Arguments]`;function tu(e){return il(e)&&rl(e)==eu}var nu=Object.prototype,ru=nu.hasOwnProperty,iu=nu.propertyIsEnumerable,au=tu(function(){return arguments}())?tu:function(e){return il(e)&&ru.call(e,`callee`)&&!iu.call(e,`callee`)},ou=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,su=/^\w*$/;function cu(e,t){if(cl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||ol(e)?!0:su.test(e)||!ou.test(e)||t!=null&&e in Object(t)}var lu=Pl(Object,`create`);function uu(){this.__data__=lu?lu(null):{},this.size=0}function du(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var fu=`__lodash_hash_undefined__`,pu=Object.prototype.hasOwnProperty;function mu(e){var t=this.__data__;if(lu){var n=t[e];return n===fu?void 0:n}return pu.call(t,e)?t[e]:void 0}var hu=Object.prototype.hasOwnProperty;function gu(e){var t=this.__data__;return lu?t[e]!==void 0:hu.call(t,e)}var _u=`__lodash_hash_undefined__`;function vu(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=lu&&t===void 0?_u:t,this}function yu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yu.prototype.clear=uu,yu.prototype.delete=du,yu.prototype.get=mu,yu.prototype.has=gu,yu.prototype.set=vu;function bu(){this.__data__=[],this.size=0}function xu(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}var Su=Array.prototype.splice;function Cu(e){var t=this.__data__,n=xu(t,e);return n<0?!1:(n==t.length-1?t.pop():Su.call(t,n,1),--this.size,!0)}function wu(e){var t=this.__data__,n=xu(t,e);return n<0?void 0:t[n][1]}function Tu(e){return xu(this.__data__,e)>-1}function Eu(e,t){var n=this.__data__,r=xu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Du(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Du.prototype.clear=bu,Du.prototype.delete=Cu,Du.prototype.get=wu,Du.prototype.has=Tu,Du.prototype.set=Eu;var Ou=Pl(Gc,`Map`);function ku(){this.size=0,this.__data__={hash:new yu,map:new(Ou||Du),string:new yu}}function Au(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ju(e,t){var n=e.__data__;return Au(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Mu(e){var t=ju(this,e).delete(e);return this.size-=+!!t,t}function Nu(e){return ju(this,e).get(e)}function Pu(e){return ju(this,e).has(e)}function Fu(e,t){var n=ju(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Iu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Iu.prototype.clear=ku,Iu.prototype.delete=Mu,Iu.prototype.get=Nu,Iu.prototype.has=Pu,Iu.prototype.set=Fu;var Lu=`Expected a function`;function Ru(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Lu);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ru.Cache||Iu),n}Ru.Cache=Iu;var zu=500;function Bu(e){var t=Ru(e,function(e){return n.size===zu&&n.clear(),e}),n=t.cache;return t}var Vu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hu=/\\(\\)?/g,Uu=Bu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Vu,function(e,n,r,i){t.push(r?i.replace(Hu,`$1`):n||e)}),t});function Wu(e){return e==null?``:fl(e)}function Gu(e,t){return cl(e)?e:cu(e,t)?[e]:Uu(Wu(e))}var Ku=1/0;function qu(e){if(typeof e==`string`||ol(e))return e;var t=e+``;return t==`0`&&1/e==-Ku?`-0`:t}function Ju(e,t){t=Gu(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qu(t[n++])];return n&&n==r?e:void 0}function Yu(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Xu=Kc?Kc.isConcatSpreadable:void 0;function Zu(e){return cl(e)||au(e)||!!(Xu&&e&&e[Xu])}function Qu(e,t,n,r,i){var a=-1,o=e.length;for(n||=Zu,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Qu(s,t-1,n,r,i):Yu(i,s):r||(i[i.length]=s)}return i}function $u(e){return e!=null&&e.length?Qu(e,1):[]}function ed(e){return Hl(Zl(e,void 0,$u),e+``)}function td(e,t){return e!=null&&t in Object(e)}function nd(e,t,n){t=Gu(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=qu(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&$l(i)&&Gl(o,i)&&(cl(e)||au(e)))}function rd(e,t){return e!=null&&nd(e,t,td)}function id(e,t,n,r){if(!pl(e))return e;t=Gu(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=qu(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=pl(u)?u:Gl(t[i+1])?[]:{})}Yl(s,c,l),s=s[c]}return e}function ad(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ju(e,o);n(s,o)&&id(a,Gu(o,e),s)}return a}function od(e,t){return ad(e,t,function(t,n){return rd(e,n)})}var sd=ed(function(e,t){return e==null?{}:od(e,t)})
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2010-2026 Three.js Authors
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* @license Zlib
|
|
23
23
|
*/
|
|
24
24
|
var Q={SKIP:9,SET:30,ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32};Q.ADD,Q.ALPHA,Q.AVERAGE,Q.COLOR,Q.COLOR_BURN,Q.COLOR_DODGE,Q.DARKEN,Q.DIFFERENCE,Q.DIVIDE,Q.DST,Q.EXCLUSION,Q.HARD_LIGHT,Q.HARD_MIX,Q.HUE,Q.INVERT,Q.INVERT_RGB,Q.LIGHTEN,Q.LINEAR_BURN,Q.LINEAR_DODGE,Q.LINEAR_LIGHT,Q.LUMINOSITY,Q.MULTIPLY,Q.NEGATION,Q.NORMAL,Q.OVERLAY,Q.PIN_LIGHT,Q.REFLECT,Q.SATURATION,Q.SCREEN,Q.SOFT_LIGHT,Q.SRC,Q.SUBTRACT,Q.VIVID_LIGHT,new Float32Array([0,0]),new Float32Array([0,1,1]),new Float32Array([0,1,1,2]),new Float32Array([0,1,2,2,3]),new Float32Array([0,1,2,3,4,4,5]),new Float32Array([0,1,2,3,4,5,7,8,9,10]),Math.PI*.5,Number(`185`.replace(/\D+/g,``));var Op=255/256;new Float32Array([Op/256**3,Op/256**2,Op/256,Op]),new Float32Array([Op,Op/256,Op/256**2,1/256**3]),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array([0,-.25,.25,-.125,.125,-.375,.375]),new Float32Array([0,0]),new Float32Array([.25,-.25]),new Float32Array([-.25,.25]),new Float32Array([.125,-.125]),new Float32Array([-.125,.125]),new Uint8Array([0,0]),new Uint8Array([3,0]),new Uint8Array([0,3]),new Uint8Array([3,3]),new Uint8Array([1,0]),new Uint8Array([4,0]),new Uint8Array([1,3]),new Uint8Array([4,3]),new Uint8Array([0,1]),new Uint8Array([3,1]),new Uint8Array([0,4]),new Uint8Array([3,4]),new Uint8Array([1,1]),new Uint8Array([4,1]),new Uint8Array([1,4]),new Uint8Array([4,4]),new Uint8Array([0,0]),new Uint8Array([1,0]),new Uint8Array([0,2]),new Uint8Array([1,2]),new Uint8Array([2,0]),new Uint8Array([3,0]),new Uint8Array([2,2]),new Uint8Array([3,2]),new Uint8Array([0,1]),new Uint8Array([1,1]),new Uint8Array([0,3]),new Uint8Array([1,3]),new Uint8Array([2,1]),new Uint8Array([3,1]),new Uint8Array([2,3]),new Uint8Array([3,3]),$(0,0,0,0),new Float32Array([0,0,0,0]),$(0,0,0,1),new Float32Array([0,0,0,1]),$(0,0,1,0),new Float32Array([0,0,1,0]),$(0,0,1,1),new Float32Array([0,0,1,1]),$(0,1,0,0),new Float32Array([0,1,0,0]),$(0,1,0,1),new Float32Array([0,1,0,1]),$(0,1,1,0),new Float32Array([0,1,1,0]),$(0,1,1,1),new Float32Array([0,1,1,1]),$(1,0,0,0),new Float32Array([1,0,0,0]),$(1,0,0,1),new Float32Array([1,0,0,1]),$(1,0,1,0),new Float32Array([1,0,1,0]),$(1,0,1,1),new Float32Array([1,0,1,1]),$(1,1,0,0),new Float32Array([1,1,0,0]),$(1,1,0,1),new Float32Array([1,1,0,1]),$(1,1,1,0),new Float32Array([1,1,1,0]),$(1,1,1,1),new Float32Array([1,1,1,1]);function kp(e,t,n){return e+(t-e)*n}function $(e,t,n,r){return kp(kp(e,t,.75),kp(n,r,.75),.875)}Q.SKIP,Q.SET,Q.ADD,Q.ALPHA,Q.AVERAGE,Q.COLOR,Q.COLOR_BURN,Q.COLOR_DODGE,Q.DARKEN,Q.DIFFERENCE,Q.DIVIDE,Q.DST,Q.EXCLUSION,Q.HARD_LIGHT,Q.HARD_MIX,Q.HUE,Q.INVERT,Q.INVERT_RGB,Q.LIGHTEN,Q.LINEAR_BURN,Q.LINEAR_DODGE,Q.LINEAR_LIGHT,Q.LUMINOSITY,Q.MULTIPLY,Q.NEGATION,Q.NORMAL,Q.OVERLAY,Q.PIN_LIGHT,Q.REFLECT,Q.SATURATION,Q.SCREEN,Q.SOFT_LIGHT,Q.SRC,Q.SUBTRACT,Q.VIVID_LIGHT;function Ap(e){let t=Dp(e);t.computeVertexNormals();let[n,r]=Ep(t);return Mc(n,r)}function jp(e,t=Math.PI/3){let n=Math.cos(t),r=(1+1e-10)*100,i=[new W,new W,new W],a=new W,o=new W,s=new W,c=new W;function l(e){return`${~~(e.x*r)},${~~(e.y*r)},${~~(e.z*r)}`}let u=e.index?e.toNonIndexed():e,d=u.attributes.position,f={};for(let e=0,t=d.count/3;e<t;e++){let t=3*e,n=i[0].fromBufferAttribute(d,t+0),r=i[1].fromBufferAttribute(d,t+1),s=i[2].fromBufferAttribute(d,t+2);a.subVectors(s,r),o.subVectors(n,r);let c=new W().crossVectors(a,o).normalize();for(let e=0;e<3;e++){let t=i[e],n=l(t);n in f||(f[n]=[]),f[n].push(c)}}let p=new Yf(new Float32Array(d.count*3),3,!1);for(let e=0,t=d.count/3;e<t;e++){let t=3*e,r=i[0].fromBufferAttribute(d,t+0),u=i[1].fromBufferAttribute(d,t+1),m=i[2].fromBufferAttribute(d,t+2);a.subVectors(m,u),o.subVectors(r,u),s.crossVectors(a,o).normalize();for(let e=0;e<3;e++){let r=i[e],a=f[l(r)];c.set(0,0,0);for(let e=0,t=a.length;e<t;e++){let t=a[e];s.dot(t)>n&&c.add(t)}c.normalize(),p.setXYZ(t+e,c.x,c.y,c.z)}}return u.setAttribute(`normal`,p),u}function Mp(e,t){let[n,r]=Ep(jp(Dp(e),t));return Mc(n,r)}Pc({toCreasedNormals:Mp,computeVertexNormals:Ap})})();
|
|
25
|
-
//# sourceMappingURL=index-
|
|
25
|
+
//# sourceMappingURL=index-VfUncKuS.js.map
|