Agriculture-front-end/dist/Cesium/Workers/UnZipTerrainData.js

2 lines
1.0 KiB
JavaScript
Raw Normal View History

2023-09-11 21:56:39 +08:00
define(["./createTaskProcessorWorker","./pako_inflate-f73548c4","./unzip-7fd7fbf8","./when-b60132fc"],(function(n,r,e,i){"use strict";var a=!1;if("undefined"!=typeof WebAssembly){e.unzip.onRuntimeInitialized=function(){a=!0};var t=e.unzip.cwrap("unzip","number",["number","number","number","number"]),u=e.unzip.cwrap("freePointer",null,["number"])}return n((function(n,i){var E,f=n.data,l=new Uint8Array(f);return!0===a?(E=function(n){var r=4*n.length,i=e.unzip._malloc(Uint8Array.BYTES_PER_ELEMENT*r),a=new Uint8Array(r);e.unzip.HEAPU8.set(a,i/Uint8Array.BYTES_PER_ELEMENT);var E,f=e.unzip._malloc(Uint8Array.BYTES_PER_ELEMENT*n.length);for(e.unzip.HEAPU8.set(n,f/Uint8Array.BYTES_PER_ELEMENT);0==(E=t(i,r,f,n.length));)u(i),r*=4,i=e.unzip._malloc(Uint8Array.BYTES_PER_ELEMENT*r),a=new Uint8Array(r),e.unzip.HEAPU8.set(a,i/Uint8Array.BYTES_PER_ELEMENT);var l=new Uint8Array(e.unzip.HEAPU8.buffer,i,E);n=null,a=null;var p=new Uint8Array(l);return u(i),u(f),p}(l),{data:E}):(E=r.pako.inflate(l).buffer,i.push(E),{data:new Uint8Array(E)})}))}));