@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 26.6 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{c as e,g as r}from"./_commonjsHelpers.js";var t,a={exports:{}};function n(){return t||(t=1,r=a,n="undefined"!=typeof document?document.currentScript?.src:void 0,i=function(r={}){var t,a,i,o=r,s=new Promise(((e,r)=>{t=e,a=r})),u=Object.assign({},o),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),i=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=o.print||console.log.bind(console),h=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.thisProgram&&(f=o.thisProgram);var p,m,d,v,y,g,w,$,b,T,A,C,W=o.wasmBinary,j=!1;function P(){var e=p.buffer;o.HEAP8=d=new Int8Array(e),o.HEAP16=y=new Int16Array(e),o.HEAPU8=v=new Uint8Array(e),o.HEAPU16=g=new Uint16Array(e),o.HEAP32=w=new Int32Array(e),o.HEAPU32=$=new Uint32Array(e),o.HEAPF32=b=new Float32Array(e),o.HEAPF64=C=new Float64Array(e),o.HEAP64=T=new BigInt64Array(e),o.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=o.preRun.shift();E.unshift(e)}var x=0,F=null;function _(e){throw o.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var R,U=e=>e.startsWith("data:application/octet-stream;base64,");async function I(e){if(!W)try{var r=await i(e);return new Uint8Array(r)}catch{}if(e!=R||!W)throw"both async and sync fetching of the wasm failed";return e=new Uint8Array(W)}async function B(e,r){try{var t=await I(e);return await WebAssembly.instantiate(t,r)}catch(a){h(`failed to asynchronously prepare wasm: ${a}`),_(a)}}async function H(e){var r=R;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(r)&&"function"==typeof fetch)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(a){h(`wasm streaming compile failed: ${a}`),h("falling back to ArrayBuffer instantiation")}return B(r,e)}class M{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var D=e=>{for(;0<e.length;)e.shift()(o)},V=o.noExitRuntime||!0;class z{constructor(e){this.ga=e-24}}var N={},q=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function L(e){return this.fromWireType($[e>>2])}var G,J,K,Q={},Y={},Z={},X=(e,r,t)=>{function a(r){if((r=t(r)).length!==e.length)throw new G("Mismatched type converter count");for(var a=0;a<e.length;++a)ae(e[a],r[a])}e.forEach((e=>Z[e]=r));var n=Array(r.length),i=[],o=0;r.forEach(((e,r)=>{Y.hasOwnProperty(e)?n[r]=Y[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((()=>{n[r]=Y[e],++o===i.length&&a(n)})))})),0===i.length&&a(n)},ee=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},re=e=>{for(var r="";v[e];)r+=J[v[e++]];return r};function te(e,r,t={}){var a=r.name;if(!e)throw new K(`type "${a}" must have a positive integer typeid pointer`);if(Y.hasOwnProperty(e)){if(t.La)return;throw new K(`Cannot register type '${a}' twice`)}Y[e]=r,delete Z[e],Q.hasOwnProperty(e)&&(r=Q[e],delete Q[e],r.forEach((e=>e())))}function ae(e,r,t={}){return te(e,r,t)}var ne=(e,r,t)=>{switch(r){case 1:return t?e=>d[e]:e=>v[e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>$[e>>2];case 8:return t?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ie=e=>{throw new K(e.ea.ha.fa.name+" instance already deleted")},oe=!1,se=()=>{},ue=(e,r,t)=>r===t?e:void 0===t.ka||null===(e=ue(e,r,t.ka))?null:t.Ea(e),fe={},le={},ce=(e,r)=>{if(void 0===r)throw new K("ptr should not be undefined");for(;e.ka;)r=e.ua(r),e=e.ka;return le[r]},he=(e,r)=>{if(!r.ha||!r.ga)throw new G("makeClassHandle requires ptr and ptrType");if(!!r.na!=!!r.ja)throw new G("Both smartPtrType and smartPtr must be specified");return r.count={value:1},pe(Object.create(e,{ea:{value:r,writable:!0}}))},pe=e=>"undefined"==typeof FinalizationRegistry?(pe=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),se=e=>{oe.unregister(e)},(pe=e=>{var r=e.ea;return r.ja&&oe.register(e,{ea:r},e),e})(e));function me(){}var de=(e,r)=>Object.defineProperty(r,"name",{value:e}),ve=(e,r,t)=>{if(void 0===e[r].ia){var a=e[r];e[r]=function(...a){if(!e[r].ia.hasOwnProperty(a.length))throw new K(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${e[r].ia})!`);return e[r].ia[a.length].apply(this,a)},e[r].ia=[],e[r].ia[a.qa]=a}},ye=(e,r,t)=>{if(o.hasOwnProperty(e)){if(void 0===t||void 0!==o[e].ia&&void 0!==o[e].ia[t])throw new K(`Cannot register public name '${e}' twice`);if(ve(o,e,e),o[e].ia.hasOwnProperty(t))throw new K(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);o[e].ia[t]=r}else o[e]=r,o[e].qa=t},ge=e=>{var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${e}`:e};function we(e,r,t,a,n,i,o,s){this.name=e,this.constructor=r,this.pa=t,this.oa=a,this.ka=n,this.Ga=i,this.ua=o,this.Ea=s,this.Na=[]}var $e=(e,r,t)=>{for(;r!==t;){if(!r.ua)throw new K(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);e=r.ua(e),r=r.ka}return e};function be(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Te(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);if(this.xa){var t=this.za();return null!==e&&e.push(this.oa,t),t}return 0}if(!r||!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);if(t=$e(r.ea.ga,r.ea.ha.fa,this.fa),this.xa){if(void 0===r.ea.ja)throw new K("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(r.ea.na!==this)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);t=r.ea.ja;break;case 1:t=r.ea.ja;break;case 2:if(r.ea.na===this)t=r.ea.ja;else{var a=r.clone();t=this.Oa(t,qe((()=>a.delete()))),null!==e&&e.push(this.oa,t)}break;default:throw new K("Unsupporting sharing policy")}}return t}function Ae(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.ha.name} to parameter type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Ce(e,r,t,a,n,i,o,s,u,f,l){this.name=e,this.fa=r,this.ya=t,this.wa=a,this.xa=n,this.Ma=i,this.Sa=o,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==r.ka?this.toWireType=Te:(this.toWireType=a?be:Ae,this.ma=null)}var We,je,Pe=(e,r,t)=>{if(!o.hasOwnProperty(e))throw new G("Replacing nonexistent public symbol");void 0!==o[e].ia&&void 0!==t?o[e].ia[t]=r:(o[e]=r,o[e].qa=t)},Ee=[],Oe=(e,r)=>{e=re(e);var t=Ee[r];if(t||(r>=Ee.length&&(Ee.length=r+1),Ee[r]=t=We.get(r)),"function"!=typeof t)throw new K(`unknown function pointer with signature ${e}: ${r}`);return t},ke=e=>{e=Er(e);var r=re(e);return kr(e),r},Se=(e,r)=>{function t(e){n[e]||Y[e]||(Z[e]?Z[e].forEach(t):(a.push(e),n[e]=!0))}var a=[],n={};throw r.forEach(t),new je(`${e}: `+a.map(ke).join([", "]))};function xe(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].ma)return!0;return!1}function Fe(e,r,t,a,n){var i=r.length;if(2>i)throw new K("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==r[1]&&null!==t,s=xe(r),u="void"!==r[0].name,f=i-2,l=Array(f),c=[],h=[];return de(e,(function(...e){if(h.length=0,c.length=o?2:1,c[0]=n,o){var t=r[1].toWireType(h,this);c[1]=t}for(var i=0;i<f;++i)l[i]=r[i+2].toWireType(h,e[i]),c.push(l[i]);if(e=a(...c),s)q(h);else for(i=o?1:2;i<r.length;i++){var p=1===i?t:l[i-2];null!==r[i].ma&&r[i].ma(p)}return t=u?r[0].fromWireType(e):void 0}))}var _e,Re,Ue,Ie,Be=(e,r)=>{for(var t=[],a=0;a<e;a++)t.push($[r+4*a>>2]);return t},He=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Me=(e,r,t)=>{if(!(e instanceof Object))throw new K(`${t} with invalid "this": ${e}`);if(!(e instanceof r.fa.constructor))throw new K(`${t} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new K(`cannot call emscripten binding method ${t} on deleted object`);return $e(e.ea.ga,e.ea.ha.fa,r.fa)},De=[],Ve=[],ze=e=>{9<e&&0===--Ve[e+1]&&(Ve[e]=void 0,De.push(e))},Ne=e=>{if(!e)throw new K("Cannot use deleted val. handle = "+e);return Ve[e]},qe=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=De.pop()||Ve.length;return Ve[r]=e,Ve[r+1]=1,r}},Le={name:"emscripten::val",fromWireType:e=>{var r=Ne(e);return ze(e),r},toWireType:(e,r)=>qe(r),la:8,readValueFromPointer:L,ma:null},Ge=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(d[e])}:function(e){return this.fromWireType(v[e])};case 2:return t?function(e){return this.fromWireType(y[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return t?function(e){return this.fromWireType(w[e>>2])}:function(e){return this.fromWireType($[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Je=(e,r)=>{var t=Y[e];if(void 0===t)throw e=`${r} has unknown type ${ke(e)}`,new K(e);return t},Ke=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(b[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Qe=Object.assign({optional:!0},Le),Ye=(e,r,t)=>{var a=v;if(0<t){t=r+t-1;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),127>=i){if(r>=t)break;a[r++]=i}else{if(2047>=i){if(r+1>=t)break;a[r++]=192|i>>6}else{if(65535>=i){if(r+2>=t)break;a[r++]=224|i>>12}else{if(r+3>=t)break;a[r++]=240|i>>18,a[r++]=128|i>>12&63}a[r++]=128|i>>6&63}a[r++]=128|63&i}}a[r]=0}},Ze="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Xe=(e,r=0,t=NaN)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&Ze)return Ze.decode(e.subarray(r,t));for(a="";r<t;){var n=e[r++];if(128&n){var i=63&e[r++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|i);else{var o=63&e[r++];65536>(n=224==(240&n)?(15&n)<<12|i<<6|o:(7&n)<<18|i<<12|o<<6|63&e[r++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},er="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,rr=(e,r)=>{for(var t=e>>1,a=t+r/2;!(t>=a)&&g[t];)++t;if(32<(t<<=1)-e&&er)return er.decode(v.subarray(e,t));for(t="",a=0;!(a>=r/2);++a){var n=y[e+2*a>>1];if(0==n)break;t+=String.fromCharCode(n)}return t},tr=(e,r,t)=>{if(t??=2147483647,2>t)return 0;var a=r;t=(t-=2)<2*e.length?t/2:e.length;for(var n=0;n<t;++n)y[r>>1]=e.charCodeAt(n),r+=2;return y[r>>1]=0,r-a},ar=e=>2*e.length,nr=(e,r)=>{for(var t=0,a="";!(t>=r/4);){var n=w[e+4*t>>2];if(0==n)break;++t,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},ir=(e,r,t)=>{if(t??=2147483647,4>t)return 0;var a=r;t=a+t-4;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),w[r>>2]=i,(r+=4)+4>t)break}return w[r>>2]=0,r-a},or=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);55296<=a&&57343>=a&&++t,r+=4}return r},sr=0,ur=(e,r,t)=>{var a=[];return e=e.toWireType(a,t),a.length&&($[r>>2]=qe(a)),e},fr=[],lr={},cr=e=>{var r=lr[e];return void 0===r?re(e):r},hr=()=>{function r(e){e.$$$embind_global$$$=e;var r="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof e&&r(e)?$$$embind_global$$$=e:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},pr=e=>{var r=fr.length;return fr.push(e),r},mr=(e,r)=>{for(var t=Array(e),a=0;a<e;++a)t[a]=Je($[r+4*a>>2],"parameter "+a);return t},dr=Reflect.construct,vr={},yr=e=>{if(!(e instanceof M||"unwind"==e))throw e},gr=e=>{throw m=e,V||0<sr||(o.onExit?.(e),j=!0),new M(e)},wr=e=>{if(!j)try{if(e(),!(V||0<sr))try{m=e=m,gr(e)}catch(Ue){yr(Ue)}}catch(Ue){yr(Ue)}},$r={},br=()=>{if(!_e){var e,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:f||"./this.program"};for(e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);_e=t}return _e},Tr=[null,[],[]];G=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var Ar=Array(256),Cr=0;256>Cr;++Cr)Ar[Cr]=String.fromCharCode(Cr);J=Ar,K=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(me.prototype,{isAliasOf:function(e){if(!(this instanceof me&&e instanceof me))return!1;var r=this.ea.ha.fa,t=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;r.ka;)t=r.ua(t),r=r.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return r===a&&t===e},clone:function(){if(this.ea.ga||ie(this),this.ea.ta)return this.ea.count.value+=1,this;var e=pe,r=Object,t=r.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(t.call(r,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");se(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(Ce.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:L,fromWireType:function(e){function r(){return this.xa?he(this.fa.pa,{ha:this.Ma,ga:t,na:this,ja:e}):he(this.fa.pa,{ha:this,ga:e})}var t=this.Ha(e);if(!t)return this.Aa(e),null;var a=ce(this.fa,t);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=t,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(t),!(a=fe[a]))return r.call(this);a=this.wa?a.Da:a.pointerType;var n=ue(t,this.fa,a.fa);return null===n?r.call(this):this.xa?he(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):he(a.fa.pa,{ha:a,ga:n})}}),je=o.UnboundTypeError=(Re=Error,(Ie=de(Ue="UnboundTypeError",(function(e){this.name=Ue,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Re.prototype),Ie.prototype.constructor=Ie,Ie.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Ie),Ve.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>Ve.length/2-5-De.length;var Wr,jr={m:(e,r,t)=>{var a=new z(e);throw $[a.ga+16>>2]=0,$[a.ga+4>>2]=r,$[a.ga+8>>2]=t,e},O:()=>_(""),r:e=>{var r=N[e];delete N[e];var t=r.za,a=r.oa,n=r.Ba,i=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));X([e],i,(e=>{var i={};return n.forEach(((r,t)=>{var a=e[t],o=r.Ia,s=r.Ja,u=e[t+n.length],f=r.Pa,l=r.Ra;i[r.Fa]={read:e=>a.fromWireType(o(s,e)),write:(e,r)=>{var t=[];f(l,e,u.toWireType(t,r)),q(t)}}})),[{name:r.name,fromWireType:e=>{var r,t={};for(r in i)t[r]=i[r].read(e);return a(e),t},toWireType:(e,r)=>{for(var n in i)if(!(n in r))throw new TypeError(`Missing field: "${n}"`);var o=t();for(n in i)i[n].write(o,r[n]);return null!==e&&e.push(a,o),o},la:8,readValueFromPointer:L,ma:a}]}))},E:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${ee(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},la:8,readValueFromPointer:ne(r,t,-1==r.indexOf("u")),ma:null})},V:(e,r,t,a)=>{ae(e,{name:r=re(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,r,t,a,n,i,o,s,u,f,l,c,h)=>{l=re(l),i=Oe(n,i),s&&=Oe(o,s),f&&=Oe(u,f),h=Oe(c,h);var p=ge(l);ye(p,(function(){Se(`Cannot construct ${l} due to unbound types`,[a])})),X([e,r,t],a?[a]:[],(r=>{if(r=r[0],a)var t=r.fa,n=t.pa;else n=me.prototype;r=de(l,(function(...e){if(Object.getPrototypeOf(this)!==o)throw new K("Use 'new' to construct "+l);if(void 0===c.ra)throw new K(l+" has no accessible constructor");var r=c.ra[e.length];if(void 0===r)throw new K(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return r.apply(this,e)}));var o=Object.create(n,{constructor:{value:r}});r.prototype=o;var u,c=new we(l,r,o,h,t,i,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),t=new Ce(l,c,!0,!1,!1),u=new Ce(l+"*",c,!1,!1,!1),n=new Ce(l+" const*",c,!1,!0,!1),fe[e]={pointerType:u,Da:n},Pe(p,r),[t,u,n]}))},v:(e,r,t,a,n,i,o)=>{var s=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=e.fa.constructor;return void 0===u[r]?(a.qa=t-1,u[r]=a):(ve(u,r,n),u[r].ia[t-1]=a),X([],s,(a=>{if(a=Fe(n,[a[0],null].concat(a.slice(1)),null,i,o),void 0===u[r].ia?(a.qa=t-1,u[r]=a):u[r].ia[t-1]=a,e.fa.va)for(const t of e.fa.va)t.constructor.hasOwnProperty(r)||(t.constructor[r]=a);return[]})),[]}))},g:(e,r,t,a,n,i)=>{var o=Be(r,t);n=Oe(a,n),X([],[e],(e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[r-1])throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.fa.ra[r-1]=()=>{Se(`Cannot construct ${e.name} due to unbound types`,o)},X([],o,(a=>(a.splice(1,0,null),e.fa.ra[r-1]=Fe(t,a,null,n,i),[]))),[]}))},a:(e,r,t,a,n,i,o,s)=>{var u=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.fa.Na.push(r);var f=e.fa.pa,l=f[r];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===t-2?(a.qa=t-2,a.className=e.name,f[r]=a):(ve(f,r,n),f[r].ia[t-2]=a),X([],u,(a=>(a=Fe(n,a,e,i,o),void 0===f[r].ia?(a.qa=t-2,f[r]=a):f[r].ia[t-2]=a,[]))),[]}))},c:(e,r,t,a,n,i,o,s,u,f)=>{r=re(r),n=Oe(a,n),X([],[e],(e=>{var a=`${(e=e[0]).name}.${r}`,l={get(){Se(`Cannot access ${a} due to unbound types`,[t,o])},enumerable:!0,configurable:!0};return l.set=u?()=>Se(`Cannot access ${a} due to unbound types`,[t,o]):()=>{throw new K(a+" is a read-only property")},Object.defineProperty(e.fa.pa,r,l),X([],u?[t,o]:[t],(t=>{var o=t[0],l={get(){var r=Me(this,e,a+" getter");return o.fromWireType(n(i,r))},enumerable:!0};if(u){u=Oe(s,u);var c=t[1];l.set=function(r){var t=Me(this,e,a+" setter"),n=[];u(f,t,c.toWireType(n,r)),q(n)}}return Object.defineProperty(e.fa.pa,r,l),[]})),[]}))},T:e=>ae(e,Le),n:(e,r,t,a)=>{function n(){}r=re(r),n.values={},ae(e,{name:r,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,la:8,readValueFromPointer:Ge(r,t,a),ma:null}),ye(r,n)},e:(e,r,t)=>{var a=Je(e,"enum");r=re(r),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:t},constructor:{value:de(`${a.name}_${r}`,(function(){}))}}),e.values[t]=a,e[r]=a},D:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:(e,r)=>r,la:8,readValueFromPointer:Ke(r,t),ma:null})},X:(e,r,t,a,n,i)=>{var o=Be(r,t);e=re(e),e=He(e),n=Oe(a,n),ye(e,(function(){Se(`Cannot call ${e} due to unbound types`,o)}),r-1),X([],o,(t=>(Pe(e,Fe(e,[t[0],null].concat(t.slice(1)),null,n,i),r-1),[])))},w:(e,r,t,a,n)=>{if(r=re(r),-1===n&&(n=4294967295),n=e=>e,0===a){var i=32-8*t;n=e=>e<<i>>>i}var o=r.includes("unsigned")?function(e,r){return r>>>0}:function(e,r){return r};ae(e,{name:r,fromWireType:n,toWireType:o,la:8,readValueFromPointer:ne(r,t,0!==a),ma:null})},o:(e,r,t)=>{function a(e){return new n(d.buffer,$[e+4>>2],$[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];ae(e,{name:t=re(t),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{ae(e,Qe)},i:(e,r,t,a,n,i,o,s,u,f,l,c)=>{t=re(t),i=Oe(n,i),s=Oe(o,s),f=Oe(u,f),c=Oe(l,c),X([e],[r],(e=>(e=e[0],[new Ce(t,e.fa,!1,!1,!0,e,a,i,s,f,c)])))},U:(e,r)=>{ae(e,{name:r=re(r),fromWireType:function(e){for(var r,t=$[e>>2],a=e+4,n=a,i=0;i<=t;++i){var o=a+i;i!=t&&0!=v[o]||(n=n?Xe(v,n,o-n):"",void 0===r?r=n:(r+=String.fromCharCode(0),r+=n),n=o+1)}return kr(e),r},toWireType:function(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t,a="string"==typeof r;if(!(a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array))throw new K("Cannot pass non-string to std::string");if(a)for(var n=t=0;n<r.length;++n){var i=r.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}else t=r.length;if(i=(n=Or(4+t+1))+4,$[n>>2]=t,a)Ye(r,i,t+1);else if(a)for(a=0;a<t;++a){var o=r.charCodeAt(a);if(255<o)throw kr(i),new K("String has UTF-16 code units that do not fit in 8 bits");v[i+a]=o}else for(a=0;a<t;++a)v[i+a]=r[a];return null!==e&&e.push(kr,n),n},la:8,readValueFromPointer:L,ma(e){kr(e)}})},C:(e,r,t)=>{if(t=re(t),2===r)var a=rr,n=tr,i=ar,o=e=>g[e>>1];else 4===r&&(a=nr,n=ir,i=or,o=e=>$[e>>2]);ae(e,{name:t,fromWireType:e=>{for(var t,n=$[e>>2],i=e+4,s=0;s<=n;++s){var u=e+4+s*r;s!=n&&0!=o(u)||(i=a(i,u-i),void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=u+r)}return kr(e),t},toWireType:(e,a)=>{if("string"!=typeof a)throw new K(`Cannot pass non-string to C++ string type ${t}`);var o=i(a),s=Or(4+o+r);return $[s>>2]=o/r,n(a,s+4,o+r),null!==e&&e.push(kr,s),s},la:8,readValueFromPointer:L,ma(e){kr(e)}})},s:(e,r,t,a,n,i)=>{N[e]={name:re(r),za:Oe(t,a),oa:Oe(n,i),Ba:[]}},j:(e,r,t,a,n,i,o,s,u,f)=>{N[e].Ba.push({Fa:re(r),Ka:t,Ia:Oe(a,n),Ja:i,Qa:o,Pa:Oe(s,u),Ra:f})},W:(e,r)=>{ae(e,{Ta:!0,name:r=re(r),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{V=!1,sr=0},l:(e,r,t)=>(e=Ne(e),r=Je(r,"emval::as"),ur(r,t,e)),y:(e,r)=>(e=Ne(e),(r=Je(r,"emval::as")).toWireType(null,e)),Y:(e,r,t,a)=>(e=fr[e])(null,r=Ne(r),t,a),B:(e,r,t,a,n)=>(e=fr[e])(r=Ne(r),r[t=cr(t)],a,n),b:ze,G:e=>0===e?qe(hr()):(e=cr(e),qe(hr()[e])),A:(e,r,t)=>{var a=mr(e,r),n=a.shift();e--;var i=Array(e);return r=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,pr(de(r,((r,o,s,u)=>{for(var f=0,l=0;l<e;++l)i[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return r=1===t?dr(o,i):o.apply(r,i),ur(n,s,r)})))},q:(e,r)=>(e=Ne(e),r=Ne(r),qe(e[r])),h:e=>{9<e&&(Ve[e+1]+=1)},I:(e,r)=>(e=Ne(e))instanceof(r=Ne(r)),u:e=>"number"==typeof(e=Ne(e)),x:e=>"string"==typeof(e=Ne(e)),F:()=>qe([]),p:e=>qe(cr(e)),k:e=>{var r=Ne(e);q(r),ze(e)},d:(e,r)=>(e=(e=Je(e,"_emval_take_value")).readValueFromPointer(r),qe(e)),z:e=>(e=Ne(e),qe(typeof e)),K:(e,r)=>{if(vr[e]&&(clearTimeout(vr[e].id),delete vr[e]),!r)return 0;var t=setTimeout((()=>{delete vr[e],wr((()=>Sr(e,performance.now())))}),r);return vr[e]={id:t,Ua:r},0},L:(e,r,t,a)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),$[e>>2]=60*Math.max(i,n),w[r>>2]=Number(i!=n),e=(r=e=>{var r=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(i),r=r(n),n<i?(Ye(e,t,17),Ye(r,a,17)):(Ye(e,a,17),Ye(r,t,17))},P:e=>{var r=v.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(i){}n=void 0}if(n)return!0}return!1},M:(e,r)=>{var t=0;return br().forEach(((a,n)=>{var i=r+t;for(n=$[e+4*n>>2]=i,i=0;i<a.length;++i)d[n++]=a.charCodeAt(i);d[n]=0,t+=a.length+1})),0},N:(e,r)=>{var t=br();$[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),$[r>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,r,t,a)=>{for(var n=0,i=0;i<t;i++){var o=$[r>>2],s=$[r+4>>2];r+=8;for(var u=0;u<s;u++){var f=v[o+u],l=Tr[e];0===f||10===f?((1===e?c:h)(Xe(l)),l.length=0):l.push(f)}n+=s}return $[a>>2]=n,0},H:gr};!async function(){function e(e){return Wr=e.exports,p=Wr.Z,P(),We=Wr.ca,O.unshift(Wr._),x--,o.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),Wr}x++,o.monitorRunDependencies?.(x);var r={a:jr};if(o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(n){h(`Module.instantiateWasm callback failed with error: ${n}`),a(n)}R??=U("arcgis-knowledge-client-core.wasm")?"arcgis-knowledge-client-core.wasm":o.locateFile?o.locateFile("arcgis-knowledge-client-core.wasm",l):l+"arcgis-knowledge-client-core.wasm";try{var t=await H(r);return e(t.instance),t}catch(n){a(n)}}();var Pr,Er=e=>(Er=Wr.$)(e),Or=e=>(Or=Wr.aa)(e),kr=e=>(kr=Wr.ba)(e),Sr=(e,r)=>(Sr=Wr.da)(e,r);function xr(){function e(){if(!Pr&&(Pr=!0,o.calledRun=!0,!j)){if(D(O),t(o),o.onRuntimeInitialized?.(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var e=o.postRun.shift();k.unshift(e)}D(k)}}if(!(0<x)){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)S();D(E),0<x||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e())}}if(F=function e(){Pr||xr(),Pr||(F=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return xr(),s},r.exports=i,r.exports.default=i),a.exports;var r,n,i}const i=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as a};