@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 7.49 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{g as t}from"./_commonjsHelpers.js";var n,e={exports:{}};function r(){return n||(n=1,t=e,r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,i=function(t){var n,e;(t=void 0!==(t=t||{})?t:{}).ready=new Promise((function(t,r){n=t,e=r}));var i=Object.assign({},t),o="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var s,a="";function c(n){return t.locateFile?t.locateFile(n,a):a+n}(o||u)&&(u?a=self.location.href:"undefined"!=typeof document&&document.currentScript&&(a=document.currentScript.src),r&&(a=r),a=0!==a.indexOf("blob:")?a.substr(0,a.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(s=t=>{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)})),t.print||console.log.bind(console);var f,l,p=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram,t.quit&&t.quit,t.wasmBinary&&(f=t.wasmBinary),t.noExitRuntime,"object"!=typeof WebAssembly&&U("no native wasm support detected");var h,d,m,_,y,g,v=!1,b="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function w(t,n,e){for(var r=n+e,i=n;t[i]&&!(i>=r);)++i;if(i-n>16&&t.buffer&&b)return b.decode(t.subarray(n,i));for(var o="";n<i;){var u=t[n++];if(128&u){var s=63&t[n++];if(192!=(224&u)){var a=63&t[n++];if((u=224==(240&u)?(15&u)<<12|s<<6|a:(7&u)<<18|s<<12|a<<6|63&t[n++])<65536)o+=String.fromCharCode(u);else{var c=u-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&u)<<6|s)}else o+=String.fromCharCode(u)}return o}function A(t,n){return t?w(m,t,n):""}function R(n){h=n,t.HEAP8=d=new Int8Array(n),t.HEAP16=new Int16Array(n),t.HEAP32=_=new Int32Array(n),t.HEAPU8=m=new Uint8Array(n),t.HEAPU16=new Uint16Array(n),t.HEAPU32=y=new Uint32Array(n),t.HEAPF32=new Float32Array(n),t.HEAPF64=new Float64Array(n)}t.INITIAL_MEMORY;var S=[],I=[],x=[];function P(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)D(t.preRun.shift());N(S)}function j(){N(I)}function E(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)W(t.postRun.shift());N(x)}function D(t){S.unshift(t)}function H(t){I.unshift(t)}function W(t){x.unshift(t)}var T=0,C=null;function M(n){T++,t.monitorRunDependencies&&t.monitorRunDependencies(T)}function O(n){if(T--,t.monitorRunDependencies&&t.monitorRunDependencies(T),0==T&&C){var e=C;C=null,e()}}function U(n){t.onAbort&&t.onAbort(n),p(n="Aborted("+n+")"),v=!0,n+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(n);throw e(r),r}var B,k="data:application/octet-stream;base64,";function F(t){return t.startsWith(k)}function q(t){try{if(t==B&&f)return new Uint8Array(f);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(p){U(p)}}function z(){return f||!o&&!u||"function"!=typeof fetch?Promise.resolve().then((function(){return q(B)})):fetch(B,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+B+"'";return t.arrayBuffer()})).catch((function(){return q(B)}))}function L(){var n={a:et};function r(n,e){var r=n.exports;t.asm=r,R((l=t.asm.g).buffer),g=t.asm.m,H(t.asm.h),O()}function i(t){r(t.instance)}function o(t){return z().then((function(t){return WebAssembly.instantiate(t,n)})).then((function(t){return t})).then(t,(function(t){p("failed to asynchronously prepare wasm: "+t),U(t)}))}function u(){return f||"function"!=typeof WebAssembly.instantiateStreaming||F(B)||"function"!=typeof fetch?o(i):fetch(B,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,n).then(i,(function(t){return p("wasm streaming compile failed: "+t),p("falling back to ArrayBuffer instantiation"),o(i)}))}))}if(M(),t.instantiateWasm)try{return t.instantiateWasm(n,r)}catch(s){return p("Module.instantiateWasm callback failed with error: "+s),!1}return u().catch(e),{}}function N(n){for(;n.length>0;){var e=n.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?X(r)():X(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(t)}}F(B="lerc-wasm.wasm")||(B=c(B));var G=[];function X(t){var n=G[t];return n||(t>=G.length&&(G.length=t+1),G[t]=n=g.get(t)),n}function Y(t,n,e,r){U("Assertion failed: "+A(t)+", at: "+[n?A(n):"unknown filename",e,r?A(r):"unknown function"])}function J(t){return rt(t+24)+24}function K(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){y[this.ptr+4>>2]=t},this.get_type=function(){return y[this.ptr+4>>2]},this.set_destructor=function(t){y[this.ptr+8>>2]=t},this.get_destructor=function(){return y[this.ptr+8>>2]},this.set_refcount=function(t){_[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,d[this.ptr+12|0]=t},this.get_caught=function(){return 0!=d[this.ptr+12|0]},this.set_rethrown=function(t){t=t?1:0,d[this.ptr+13|0]=t},this.get_rethrown=function(){return 0!=d[this.ptr+13|0]},this.init=function(t,n){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(n),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=_[this.ptr>>2];_[this.ptr>>2]=t+1},this.release_ref=function(){var t=_[this.ptr>>2];return _[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){y[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return y[this.ptr+16>>2]},this.get_exception_ptr=function(){if(ot(this.get_type()))return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}function Q(t,n,e){throw new K(t).init(n,e),t}function V(){U("")}function Z(t,n,e){m.copyWithin(t,n,n+e)}function $(){return 2147483648}function tt(t){try{return l.grow(t-h.byteLength+65535>>>16),R(l.buffer),1}catch(n){}}function nt(t){var n=m.length;t>>>=0;var e=$();if(t>e)return!1;let r=(t,n)=>t+(n-t%n)%n;for(var i=1;i<=4;i*=2){var o=n*(1+.2/i);if(o=Math.min(o,t+100663296),tt(Math.min(e,r(Math.max(t,o),65536))))return!0}return!1}var et={a:Y,c:J,b:Q,d:V,f:Z,e:nt};L(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.h).apply(null,arguments)},t._lerc_getBlobInfo=function(){return(t._lerc_getBlobInfo=t.asm.i).apply(null,arguments)},t._lerc_getDataRanges=function(){return(t._lerc_getDataRanges=t.asm.j).apply(null,arguments)},t._lerc_decode=function(){return(t._lerc_decode=t.asm.k).apply(null,arguments)},t._lerc_decode_4D=function(){return(t._lerc_decode_4D=t.asm.l).apply(null,arguments)};var rt=t._malloc=function(){return(rt=t._malloc=t.asm.n).apply(null,arguments)};t._free=function(){return(t._free=t.asm.o).apply(null,arguments)};var it,ot=t.___cxa_is_pointer_type=function(){return(ot=t.___cxa_is_pointer_type=t.asm.p).apply(null,arguments)};function ut(e){function r(){it||(it=!0,t.calledRun=!0,v||(j(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),E()))}T>0||(P(),T>0||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),r()}),1)):r()))}if(C=function t(){it||ut(),it||(C=t)},t.run=ut,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return ut(),t.ready},t.exports=i),e.exports;var t,r,i}const i=t(r()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as l};