@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 5.67 kB
JavaScript
;(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6154],{56154(t,e,r){r.d(e,{default:()=>i});var n,i=(n="undefined"!=typeof document?document.currentScript?.src:void 0,async function(t={}){var e,r,i=t,a=new Promise((t,n)=>{e=t,r=n}),o="object"==typeof window,s="undefined"!=typeof WorkerGlobalScope;"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&process.type;var u,c,f=Object.assign({},i),p=(t,e)=>{throw e},l="";(o||s)&&(s?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.slice(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),u=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)}),i.print||console.log.bind(console);var h=i.printErr||console.error.bind(console);Object.assign(i,f),f=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram;var d,m,y,w,g,v=i.wasmBinary,b=!1;function A(){var t=d.buffer;i.HEAP8=y=new Int8Array(t),i.HEAP16=new Int16Array(t),i.HEAPU8=w=new Uint8Array(t),i.HEAPU16=new Uint16Array(t),i.HEAP32=new Int32Array(t),i.HEAPU32=g=new Uint32Array(t),i.HEAPF32=new Float32Array(t),i.HEAPF64=new Float64Array(t),i.HEAP64=new BigInt64Array(t),i.HEAPU64=new BigUint64Array(t)}var R,_=0,E=null;function S(t){i.onAbort?.(t),h(t="Aborted("+t+")"),b=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw r(e),e}async function P(t,e,r){if(!t&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(t){h(`wasm streaming compile failed: ${t}`),h("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var r=await async function(t){if(!v)try{var e=await u(t);return new Uint8Array(e)}catch{}return function(t){if(t==R&&v)return new Uint8Array(v);if(c)return c(t);throw"both async and sync fetching of the wasm failed"}(t)}(t);return await WebAssembly.instantiate(r,e)}catch(t){h(`failed to asynchronously prepare wasm: ${t}`),S(t)}}(e,r)}class I{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var U=t=>{for(;t.length>0;)t.shift()(i)},C=[],T=t=>C.unshift(t),x=[],H=t=>x.unshift(t),j=i.noExitRuntime||!0,k="undefined"!=typeof TextDecoder?new TextDecoder:void 0,F=(t,e)=>t?((t,e=0,r=NaN)=>{for(var n=e+r,i=e;t[i]&&!(i>=n);)++i;if(i-e>16&&t.buffer&&k)return k.decode(t.subarray(e,i));for(var a="";e<i;){var o=t[e++];if(128&o){var s=63&t[e++];if(192!=(224&o)){var u=63&t[e++];if((o=224==(240&o)?(15&o)<<12|s<<6|u:(7&o)<<18|s<<12|u<<6|63&t[e++])<65536)a+=String.fromCharCode(o);else{var c=o-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&o)<<6|s)}else a+=String.fromCharCode(o)}return a})(w,t,e):"";class W{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){g[this.ptr+4>>2]=t}get_type(){return g[this.ptr+4>>2]}set_destructor(t){g[this.ptr+8>>2]=t}get_destructor(){return g[this.ptr+8>>2]}set_caught(t){t=t?1:0,y[this.ptr+12]=t}get_caught(){return 0!=y[this.ptr+12]}set_rethrown(t){t=t?1:0,y[this.ptr+13]=t}get_rethrown(){return 0!=y[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){g[this.ptr+16>>2]=t}get_adjusted_ptr(){return g[this.ptr+16>>2]}}var B=0,M={},D=t=>{if(t instanceof I||"unwind"==t)return m;p(0,t)},O=()=>j||B>0,$=t=>{m=t,O()||(i.onExit?.(t),b=!0),p(0,new I(t))},q=(t,e)=>Math.ceil(t/e)*e,G=t=>{var e=(t-d.buffer.byteLength+65535)/65536|0;try{return d.grow(e),A(),1}catch(t){}},L={a:(t,e,r,n)=>S(`Assertion failed: ${F(t)}, at: `+[e?F(e):"unknown filename",r,n?F(n):"unknown function"]),g:(t,e,r)=>{throw new W(t).init(e,r),t},f:()=>S(""),c:()=>{j=!1,B=0},d:(t,e)=>{if(M[t]&&(clearTimeout(M[t].id),delete M[t]),!e)return 0;var r=setTimeout(()=>{delete M[t],(t=>{if(!b)try{t(),(()=>{if(!O())try{(t=>{m=t,$(t)})(m)}catch(t){D(t)}})()}catch(t){D(t)}})(()=>z(t,performance.now()))},e);return M[t]={id:r,timeout_ms:e},0},e:t=>{var e=w.length,r=2147483648;if((t>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,t+100663296);var a=Math.min(r,q(Math.max(t,i),65536));if(G(a))return!0}return!1},b:$},N=await async function(){function t(t,e){return N=t.exports,d=N.h,A(),function(){if(_--,i.monitorRunDependencies?.(_),0==_&&E){var t=E;E=null,t()}}(),N}_++,i.monitorRunDependencies?.(_);var e={a:L};if(i.instantiateWasm)return new Promise((r,n)=>{i.instantiateWasm(e,(e,n)=>{t(e),r(e.exports)})});R??=i.locateFile?function(t){return i.locateFile?i.locateFile(t,l):l+t}("qb3-wasm.wasm"):new URL("qb3-wasm.wasm","").href;try{return function(e){return t(e.instance)}(await P(v,R,e))}catch(t){return r(t),Promise.reject(t)}}();N.i,i._GetInfo=N.j,i._decode=N.k;var z=N.m;if(i._malloc=N.n,i._free=N.o,i.UTF8ToString=F,i.writeArrayToMemory=(t,e)=>{y.set(t,e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return function t(){function r(){i.calledRun=!0,b||(N.i(),e(i),i.onRuntimeInitialized?.(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)T(i.postRun.shift());U(C)}())}_>0?E=t:(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)H(i.preRun.shift());U(x)}(),_>0?E=t:i.setStatus?(i.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>i.setStatus(""),1),r()},1)):r())}(),a})}}]);