@arcgis/core 5.0.0-next.35 → 5.0.0-next.36
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/06462b267ff8d5984882.js +1 -0
- package/assets/esri/core/workers/chunks/{b48bb38e5d60fc7a9097.js → 08ef90e3fcfd4eda4301.js} +1 -1
- package/assets/esri/core/workers/chunks/0a58b57e1777a8b0ea23.js +1 -0
- package/assets/esri/core/workers/chunks/{7115c52e22b7becff8de.js → 103153951ba312dc5e9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f55328aabf84770c8e6a.js → 1817cf11e85afca947d3.js} +1 -1
- package/assets/esri/core/workers/chunks/20e4243ea563d05a5256.js +1 -0
- package/assets/esri/core/workers/chunks/24a3c6f0154787968724.js +1 -0
- package/assets/esri/core/workers/chunks/{fafbacf2467e6883b6c9.js → 28db329528def851efd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{2367bd1cb34799a3f08a.js → 30184e39129d9c66ea54.js} +1 -1
- package/assets/esri/core/workers/chunks/3f03165487c1c2340fff.js +1 -0
- package/assets/esri/core/workers/chunks/48e2737182c75005fb8f.js +1 -0
- package/assets/esri/core/workers/chunks/{05e55118dc0023d500fc.js → 5000a37fba27464d10ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa01d1813fa78034526e.js → 51355866a0dcf41cfded.js} +1 -1
- package/assets/esri/core/workers/chunks/{a372d9af43ade7c6314c.js → 52c8687b473c9953c2f2.js} +1 -1
- package/assets/esri/core/workers/chunks/640085b5ade5c7f16228.js +1 -0
- package/assets/esri/core/workers/chunks/727804cf901094b1d620.js +1 -0
- package/assets/esri/core/workers/chunks/{0446562aee0639c61485.js → 7420fa18ba12014b22ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{c9c2e00fed979c21e2f0.js → 8a946cbc816f373c136b.js} +1 -1
- package/assets/esri/core/workers/chunks/8c271e9272e4eaf1325a.js +1 -0
- package/assets/esri/core/workers/chunks/{2a0fe1aede5c68374ccf.js → 8ec238b5b59ef18a1713.js} +1 -1
- package/assets/esri/core/workers/chunks/{f1dfb1323d50247e80f9.js → 9110287f272141f60c35.js} +1 -1
- package/assets/esri/core/workers/chunks/951a3442d4342539f2ea.js +1 -0
- package/assets/esri/core/workers/chunks/9664d9e679abc41f6c42.js +1 -0
- package/assets/esri/core/workers/chunks/{2921f05a40fda12f9f81.js → a00bba1c7cbf8cd7892c.js} +1 -1
- package/assets/esri/core/workers/chunks/a716b8fdeda4e16f03ab.js +1 -0
- package/assets/esri/core/workers/chunks/aead7c9830fa310e5b53.js +1 -0
- package/assets/esri/core/workers/chunks/{483dc4ee5d73cdfe6229.js → b075d3714fab0591d67c.js} +1 -1
- package/assets/esri/core/workers/chunks/{82cc758bddd9f8397b9f.js → b451dc416eebd0931ef8.js} +4 -4
- package/assets/esri/core/workers/chunks/b59be95949445ff5afab.js +1 -0
- package/assets/esri/core/workers/chunks/b6dec5dfdeca54bae88d.js +1 -0
- package/assets/esri/core/workers/chunks/{4356274cfa477eb6d749.js → bfb9cbe59d36d18f9157.js} +1 -1
- package/assets/esri/core/workers/chunks/{6afd59412bfc134bdf75.js → c052fb8c952cda0b5d13.js} +1 -1
- package/assets/esri/core/workers/chunks/{f2ebd6471e1259a6eac0.js → c9e7cc5d853908ab5b2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{97650ee3d0eecb69ccbb.js → d8623f5f13a084e439c2.js} +5 -5
- package/assets/esri/core/workers/chunks/dd105d6e0fcedee32644.js +1 -0
- package/assets/esri/core/workers/chunks/e1148067ceae7d9eaaf8.js +1 -0
- package/assets/esri/core/workers/chunks/{b536fdb655ad293d9024.js → eb6218634a492667506a.js} +1 -1
- package/assets/esri/core/workers/chunks/{7804be2f5b3d86188a24.js → edc3d98f33d7bf959154.js} +1 -1
- package/assets/esri/core/workers/chunks/eefad79be500667af96e.js +1 -0
- package/assets/esri/core/workers/chunks/{63933cbcb5c12df09715.js → f1ac1c8b1331ec79e898.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b7f9a57a2cfbc108673.js → f1b99529e2055873b65a.js} +1 -1
- package/assets/esri/core/workers/chunks/f693a4d97b2762d0e6ff.js +1 -0
- package/assets/esri/core/workers/chunks/f8caceeaa14d99c35526.js +1 -0
- package/assets/esri/core/workers/chunks/febce0d80f019dc2a427.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Attribution.scss +1 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/Magnifier.glsl.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/vec42.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec4.js +1 -1
- package/geometry/support/aaBoundingRect.js +1 -1
- package/geometry/support/buffer/BufferView.js +1 -1
- package/geometry/support/buffer/internals/Vec4.js +1 -1
- package/interfaces.d.ts +108 -0
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraph/DataModel.js +1 -1
- package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.d.ts +4 -0
- package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.js +5 -0
- package/rest/knowledgeGraph/GraphProperty.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
- package/rest/knowledgeGraphService.d.ts +3 -0
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/DrapedSubView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/ScaleRangeQueries.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TextureFader.js +1 -1
- package/views/3d/terrain/TextureReference.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ensureColor4.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +5 -5
- package/views/SceneView.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/support/GroundElevationSampler.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/032444974011118127d7.js +0 -1
- package/assets/esri/core/workers/chunks/089221bac1f019692f48.js +0 -1
- package/assets/esri/core/workers/chunks/1bfe0b2bf38d4dee7fd6.js +0 -1
- package/assets/esri/core/workers/chunks/27bd88e1101873d4ce12.js +0 -1
- package/assets/esri/core/workers/chunks/53d95ba86d010231fc4e.js +0 -1
- package/assets/esri/core/workers/chunks/7d3e665613927904ba4f.js +0 -1
- package/assets/esri/core/workers/chunks/a5f2da24497349239648.js +0 -1
- package/assets/esri/core/workers/chunks/a7b1b42bdb9cb9ecac45.js +0 -1
- package/assets/esri/core/workers/chunks/acaaefd4997316d319b8.js +0 -1
- package/assets/esri/core/workers/chunks/ad138b989c2c7a1168ac.js +0 -1
- package/assets/esri/core/workers/chunks/cc7c37f9ed3f831fd25c.js +0 -1
- package/assets/esri/core/workers/chunks/d14bd320f72d8e8a0ad8.js +0 -1
- package/assets/esri/core/workers/chunks/d86e59da76eea888ba86.js +0 -1
- package/assets/esri/core/workers/chunks/de99c4fd1582a8e610cf.js +0 -1
- package/assets/esri/core/workers/chunks/ded3ef385d5a3a2ec8ca.js +0 -1
- package/assets/esri/core/workers/chunks/e3a994587f9b2e88db85.js +0 -1
- package/assets/esri/core/workers/chunks/eab0938d4ad7d7cc7309.js +0 -1
- package/assets/esri/core/workers/chunks/ed1dabed10ff9f4e0369.js +0 -1
- package/assets/esri/core/workers/chunks/ef5b13ee3362763c1096.js +0 -1
- package/assets/esri/core/workers/chunks/effbc4d240752e8ba0ab.js +0 -1
- package/assets/esri/core/workers/chunks/f403d8e414766fab2936.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9013],{11053:(a,r,t)=>{t.d(r,{c:()=>e,g:()=>n});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}},29013:(a,r,t)=>{t.d(r,{a:()=>s});var e,n=t(11053),o={exports:{}};const i=(0,n.g)(function(){return e||(e=1,a=o,r=globalThis.document?.currentScript?.src,t=async function(a={}){var t,e=a,n="./this.program",o="";try{o=new URL(".",r).href}catch{}t=async a=>{if((a=await fetch(a,{credentials:"same-origin"})).ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url)};var i,s,u,f,l,h,c,w,d,p,v,m,b,y,g,$=console.log.bind(console),A=console.error.bind(console),C=!1,k=!1;function E(){var a=Zr.buffer;l=new Int8Array(a),c=new Int16Array(a),h=new Uint8Array(a),w=new Uint16Array(a),d=new Int32Array(a),p=new Uint32Array(a),v=new Float32Array(a),m=new Float64Array(a),b=new BigInt64Array(a),y=new BigUint64Array(a)}function x(a){throw e.onAbort?.(a),A(a="Aborted("+a+")"),C=!0,a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info."),f?.(a),a}async function O(a){if(!i)try{var r=await t(a);return new Uint8Array(r)}catch{}if(a!=g||!i)throw"both async and sync fetching of the wasm failed";return new Uint8Array(i)}class T{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`,this.status=a}}var S=a=>{for(;0<a.length;)a.shift()(e)},P=[],j=[],D=()=>{var a=e.preRun.shift();j.push(a)},R=!0;class q{constructor(a){this.ra=a-24}}var I={},B=a=>{for(;a.length;){var r=a.pop();a.pop()(r)}};function M(a){return this.sa(p[a>>2])}var z={},U={},N={},F=class extends Error{constructor(a){super(a),this.name="InternalError"}},L=(a,r,t)=>{function e(r){if((r=t(r)).length!==a.length)throw new F("Mismatched type converter count");for(var e=0;e<a.length;++e)H(a[e],r[e])}a.forEach(a=>N[a]=r);var n=Array(r.length),o=[],i=0;r.forEach((a,r)=>{U.hasOwnProperty(a)?n[r]=U[a]:(o.push(a),z.hasOwnProperty(a)||(z[a]=[]),z[a].push(()=>{n[r]=U[a],++i===o.length&&e(n)}))}),0===o.length&&e(n)},W=a=>{for(var r="";;){var t=h[a++];if(!t)return r;r+=String.fromCharCode(t)}},_=class extends Error{constructor(a){super(a),this.name="BindingError"}};function H(a,r,t={}){return function(a,r,t={}){var e=r.name;if(!a)throw new _(`type "${e}" must have a positive integer typeid pointer`);if(U.hasOwnProperty(a)){if(t.Mb)return;throw new _(`Cannot register type '${e}' twice`)}U[a]=r,delete N[a],z.hasOwnProperty(a)&&(r=z[a],delete z[a],r.forEach(a=>a()))}(a,r,t)}var G=(a,r,t)=>{switch(r){case 1:return t?a=>l[a]:a=>h[a];case 2:return t?a=>c[a>>1]:a=>w[a>>1];case 4:return t?a=>d[a>>2]:a=>p[a>>2];case 8:return t?a=>b[a>>3]:a=>y[a>>3];default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},J=a=>{throw new _(a.ma.ta.na.name+" instance already deleted")},K=!1,V=()=>{},Q=a=>globalThis.FinalizationRegistry?(K=new FinalizationRegistry(a=>{--(a=a.ma).count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra))}),V=a=>{K.unregister(a)},(Q=a=>{var r=a.ma;return r.xa&&K.register(a,{ma:r},a),a})(a)):(Q=a=>a,a);function Y(){}var X=(a,r)=>Object.defineProperty(r,"name",{value:a}),Z={},aa=(a,r,t)=>{if(void 0===a[r].ua){var e=a[r];a[r]=function(...e){if(!a[r].ua.hasOwnProperty(e.length))throw new _(`Function '${t}' called with an invalid number of arguments (${e.length}) - expects one of (${a[r].ua})!`);return a[r].ua[e.length].apply(this,e)},a[r].ua=[],a[r].ua[e.Ma]=e}},ra=(a,r,t)=>{if(e.hasOwnProperty(a)){if(void 0===t||void 0!==e[a].ua&&void 0!==e[a].ua[t])throw new _(`Cannot register public name '${a}' twice`);if(aa(e,a,a),e[a].ua.hasOwnProperty(t))throw new _(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);e[a].ua[t]=r}else e[a]=r,e[a].Ma=t};function ta(a,r,t,e,n,o,i,s){this.name=a,this.constructor=r,this.La=t,this.Ha=e,this.ya=n,this.Hb=o,this.Xa=i,this.Fb=s,this.Sb=[]}var ea=(a,r,t)=>{for(;r!==t;){if(!r.Xa)throw new _(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);a=r.Xa(a),r=r.ya}return a},na=a=>{if(null===a)return"null";var r=typeof a;return"object"===r||"array"===r||"function"===r?a.toString():""+a};function oa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}function ia(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);if(this.ab){var t=this.nb();return null!==a&&a.push(this.Ha,t),t}return 0}if(!r||!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.$a&&r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);if(t=ea(r.ma.ra,r.ma.ta.na,this.na),this.ab){if(void 0===r.ma.xa)throw new _("Passing raw pointer to smart pointer is illegal");switch(this.Xb){case 0:if(r.ma.Ba!==this)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);t=r.ma.xa;break;case 1:t=r.ma.xa;break;case 2:if(r.ma.Ba===this)t=r.ma.xa;else{var e=r.clone();t=this.Tb(t,xa(()=>e.delete())),null!==a&&a.push(this.Ha,t)}break;default:throw new _("Unsupporting sharing policy")}}return t}function sa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.ta.name} to parameter type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}var ua=(a,r,t)=>r===t?a:void 0===t.ya||null===(a=ua(a,r,t.ya))?null:t.Fb(a),fa={},la=(a,r)=>{if(!r.ta||!r.ra)throw new F("makeClassHandle requires ptr and ptrType");if(!!r.Ba!=!!r.xa)throw new F("Both smartPtrType and smartPtr must be specified");return r.count={value:1},Q(Object.create(a,{ma:{value:r,writable:!0}}))};function ha(a,r,t,e,n,o,i,s,u,f,l){this.name=a,this.na=r,this.lb=t,this.$a=e,this.ab=n,this.Rb=o,this.Xb=i,this.yb=s,this.nb=u,this.Tb=f,this.Ha=l,n||void 0!==r.ya?this.wa=ia:(this.wa=e?oa:sa,this.Aa=null)}var ca=(a,r,t)=>{if(!e.hasOwnProperty(a))throw new F("Replacing nonexistent public symbol");void 0!==e[a].ua&&void 0!==t?e[a].ua[t]=r:(e[a]=r,e[a].Ma=t)},wa=[],da=(a,r)=>{var t;if(a=W(a),(t=wa[r])||(wa[r]=t=at.get(r)),"function"!=typeof t)throw new _(`unknown function pointer with signature ${a}: ${r}`);return t};class pa extends Error{}var va=a=>{a=Kr(a);var r=W(a);return Qr(a),r},ma=(a,r)=>{var t=[],e={};throw r.forEach(function a(r){e[r]||U[r]||(N[r]?N[r].forEach(a):(t.push(r),e[r]=!0))}),new pa(`${a}: `+t.map(va).join([", "]))};function ba(a,r,t,e,n){var o=r.length;if(2>o)throw new _("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==r[1]&&null!==t,s=function(a){for(var r=1;r<a.length;++r)if(null!==a[r]&&void 0===a[r].Aa)return!0;return!1}(r),u=!r[0].Nb,f=o-2,l=Array(f),h=[],c=[];return X(a,function(...a){if(c.length=0,h.length=i?2:1,h[0]=n,i){var t=r[1].wa(c,this);h[1]=t}for(var o=0;o<f;++o)l[o]=r[o+2].wa(c,a[o]),h.push(l[o]);if(a=e(...h),s)B(c);else for(o=i?1:2;o<r.length;o++){var w=1===o?t:l[o-2];null!==r[o].Aa&&r[o].Aa(w)}return u?r[0].sa(a):void 0})}var ya=(a,r)=>{for(var t=[],e=0;e<a;e++)t.push(p[r+4*e>>2]);return t},ga=a=>{const r=(a=a.trim()).indexOf("(");return-1===r?a:a.slice(0,r)},$a=(a,r,t)=>{if(!(a instanceof Object))throw new _(`${t} with invalid "this": ${a}`);if(!(a instanceof r.na.constructor))throw new _(`${t} incompatible with "this" of type ${a.constructor.name}`);if(!a.ma.ra)throw new _(`cannot call emscripten binding method ${t} on deleted object`);return ea(a.ma.ra,a.ma.ta.na,r.na)},Aa=[],Ca=[0,1,,1,null,1,!0,1,!1,1],ka=a=>{9<a&&0===--Ca[a+1]&&(Ca[a]=void 0,Aa.push(a))},Ea=a=>{if(!a)throw new _(`Cannot use deleted val. handle = ${a}`);return Ca[a]},xa=a=>{switch(a){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=Aa.pop()||Ca.length;return Ca[r]=a,Ca[r+1]=1,r}},Oa={name:"emscripten::val",sa:a=>{var r=Ea(a);return ka(a),r},wa:(a,r)=>xa(r),Ea:M,Aa:null},Ta=(a,r,t)=>{switch(r){case 1:return t?function(a){return this.sa(l[a])}:function(a){return this.sa(h[a])};case 2:return t?function(a){return this.sa(c[a>>1])}:function(a){return this.sa(w[a>>1])};case 4:return t?function(a){return this.sa(d[a>>2])}:function(a){return this.sa(p[a>>2])};default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},Sa=(a,r)=>{var t=U[a];if(void 0===t)throw a=`${r} has unknown type ${va(a)}`,new _(a);return t},Pa=(a,r)=>{switch(r){case 4:return function(a){return this.sa(v[a>>2])};case 8:return function(a){return this.sa(m[a>>3])};default:throw new TypeError(`invalid float width (${r}): ${a}`)}},ja=Object.assign({optional:!0},Oa),Da=(a,r,t,e)=>{if(!(0<e))return 0;var n=t;e=t+e-1;for(var o=0;o<a.length;++o){var i=a.codePointAt(o);if(127>=i){if(t>=e)break;r[t++]=i}else if(2047>=i){if(t+1>=e)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(65535>=i){if(t+2>=e)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=e)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i,o++}}return r[t]=0,t-n},Ra=a=>{for(var r=0,t=0;t<a.length;++t){var e=a.charCodeAt(t);127>=e?r++:2047>=e?r+=2:55296<=e&&57343>=e?(r+=4,++t):r+=3}return r},qa=globalThis.TextDecoder&&new TextDecoder,Ia=(a,r,t,e)=>{if(t=r+t,e)return t;for(;a[r]&&!(r>=t);)++r;return r},Ba=(a,r=0,t,e)=>{if(16<(t=Ia(a,r,t,e))-r&&a.buffer&&qa)return qa.decode(a.subarray(r,t));for(e="";r<t;){var n=a[r++];if(128&n){var o=63&a[r++];if(192==(224&n))e+=String.fromCharCode((31&n)<<6|o);else{var i=63&a[r++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&a[r++])?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else e+=String.fromCharCode(n)}return e},Ma=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,za=(a,r,t)=>{if(16<(r=Ia(w,a>>=1,r/2,t))-a&&Ma)return Ma.decode(w.subarray(a,r));for(t="";a<r;++a)t+=String.fromCharCode(w[a]);return t},Ua=(a,r,t)=>{if(t??=2147483647,2>t)return 0;var e=r;t=(t-=2)<2*a.length?t/2:a.length;for(var n=0;n<t;++n)c[r>>1]=a.charCodeAt(n),r+=2;return c[r>>1]=0,r-e},Na=a=>2*a.length,Fa=(a,r,t)=>{var e="";a>>=2;for(var n=0;!(n>=r/4);n++){var o=p[a+n];if(!o&&!t)break;e+=String.fromCodePoint(o)}return e},La=(a,r,t)=>{if(t??=2147483647,4>t)return 0;var e=r;t=e+t-4;for(var n=0;n<a.length;++n){var o=a.codePointAt(n);if(65535<o&&n++,d[r>>2]=o,(r+=4)+4>t)break}return d[r>>2]=0,r-e},Wa=a=>{for(var r=0,t=0;t<a.length;++t)65535<a.codePointAt(t)&&t++,r+=4;return r},_a=0,Ha=[],Ga={},Ja=a=>{var r=Ga[a];return void 0===r?W(a):r},Ka=(a,r,t,e,n)=>Ha[a](r,t,e,n),Va=(a,r)=>{for(var t=0,e=a.length-1;0<=e;e--){var n=a[e];"."===n?a.splice(e,1):".."===n?(a.splice(e,1),t++):t&&(a.splice(e,1),t--)}if(r)for(;t;t--)a.unshift("..");return a},Qa=a=>{var r="/"===a.charAt(0),t="/"===a.slice(-1);return(a=Va(a.split("/").filter(a=>!!a),!r).join("/"))||r||(a="."),a&&t&&(a+="/"),(r?"/":"")+a},Ya=a=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=r[0],r=r[1],a||r?(r&&=r.slice(0,-1),a+r):"."},Xa=a=>{(Xa=a=>crypto.getRandomValues(a))(a)},Za=[],ar=[];function rr(a,r){ar[a]={input:[],output:[],Ra:r},Or(a,tr)}var tr={open(a){var r=ar[a.node.fb];if(!r)throw new dr(43);a.Ca=r,a.seekable=!1},close(a){a.Ca.Ra.Za(a.Ca)},Za(a){a.Ca.Ra.Za(a.Ca)},read(a,r,t,e){if(!a.Ca||!a.Ca.Ra.sb)throw new dr(60);for(var n=0,o=0;o<e;o++){try{var i=a.Ca.Ra.sb(a.Ca)}catch(a){throw new dr(29)}if(void 0===i&&0===n)throw new dr(6);if(null==i)break;n++,r[t+o]=i}return n&&(a.node.Na=Date.now()),n},write(a,r,t,e){if(!a.Ca||!a.Ca.Ra.mb)throw new dr(60);try{for(var n=0;n<e;n++)a.Ca.Ra.mb(a.Ca,r[t+n])}catch(a){throw new dr(29)}return e&&(a.node.Da=a.node.za=Date.now()),n}},er={sb(){a:{if(!Za.length){var a=null;if(globalThis.window?.prompt&&null!==(a=window.prompt("Input: "))&&(a+="\n"),!a){var r=null;break a}r=Array(Ra(a)+1),a=Da(a,r,0,r.length),r.length=a,Za=r}r=Za.shift()}return r},mb(a,r){null===r||10===r?($(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&($(Ba(a.output)),a.output=[])},lc:()=>({cc:25856,ec:5,bc:191,dc:35387,ac:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),mc:()=>0,nc:()=>[24,80]},nr={mb(a,r){null===r||10===r?(A(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(A(Ba(a.output)),a.output=[])}},or={Ga:null,Ja:()=>or.createNode(null,"/",16895,0),createNode(a,r,t,e){if(24576==(61440&t)||4096==(61440&t))throw new dr(63);return or.Ga||(or.Ga={dir:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Ua:or.pa.Ua,cb:or.pa.cb,zb:or.pa.zb,Cb:or.pa.Cb,Bb:or.pa.Bb,ob:or.pa.ob,gb:or.pa.gb},stream:{Fa:or.qa.Fa}},file:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:{Fa:or.qa.Fa,read:or.qa.read,write:or.qa.write,vb:or.qa.vb,xb:or.qa.xb}},link:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Wa:or.pa.Wa},stream:{}},pb:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:xr}}),16384==(61440&(t=gr(a,r,t,e)).mode)?(t.pa=or.Ga.dir.node,t.qa=or.Ga.dir.stream,t.oa={}):32768==(61440&t.mode)?(t.pa=or.Ga.file.node,t.qa=or.Ga.file.stream,t.va=0,t.oa=null):40960==(61440&t.mode)?(t.pa=or.Ga.link.node,t.qa=or.Ga.link.stream):8192==(61440&t.mode)&&(t.pa=or.Ga.pb.node,t.qa=or.Ga.pb.stream),t.Na=t.Da=t.za=Date.now(),a&&(a.oa[r]=t,a.Na=a.Da=a.za=t.Na),t},ic:a=>a.oa?a.oa.subarray?a.oa.subarray(0,a.va):new Uint8Array(a.oa):new Uint8Array(0),pa:{Ka(a){var r={};return r.fc=8192==(61440&a.mode)?a.id:1,r.kc=a.id,r.mode=a.mode,r.oc=1,r.uid=0,r.jc=0,r.fb=a.fb,16384==(61440&a.mode)?r.size=4096:32768==(61440&a.mode)?r.size=a.va:40960==(61440&a.mode)?r.size=a.link.length:r.size=0,r.Na=new Date(a.Na),r.Da=new Date(a.Da),r.za=new Date(a.za),r.Db=4096,r.$b=Math.ceil(r.size/r.Db),r},Ia(a,r){for(var t of["mode","atime","mtime","ctime"])null!=r[t]&&(a[t]=r[t]);void 0!==r.size&&(r=r.size,a.va!=r&&(0==r?(a.oa=null,a.va=0):(t=a.oa,a.oa=new Uint8Array(r),t&&a.oa.set(t.subarray(0,Math.min(r,a.va))),a.va=r)))},Ua(){throw or.hb||(or.hb=new dr(44),or.hb.stack="<generic error, no stack>"),or.hb},cb:(a,r,t,e)=>or.createNode(a,r,t,e),zb(a,r,t){try{var e=yr(r,t)}catch(a){}if(e){if(16384==(61440&a.mode))for(var n in e.oa)throw new dr(55);if(n=br(e.parent.id,e.name),lr[n]===e)lr[n]=e.Qa;else for(n=lr[n];n;){if(n.Qa===e){n.Qa=e.Qa;break}n=n.Qa}}delete a.parent.oa[a.name],r.oa[t]=a,a.name=t,r.za=r.Da=a.parent.za=a.parent.Da=Date.now()},Cb(a,r){delete a.oa[r],a.za=a.Da=Date.now()},Bb(a,r){var t,e=yr(a,r);for(t in e.oa)throw new dr(55);delete a.oa[r],a.za=a.Da=Date.now()},ob:a=>[".","..",...Object.keys(a.oa)],gb:(a,r,t)=>((a=or.createNode(a,r,41471,0)).link=t,a),Wa(a){if(40960!=(61440&a.mode))throw new dr(28);return a.link}},qa:{read(a,r,t,e,n){var o=a.node.oa;if(n>=a.node.va)return 0;if(8<(a=Math.min(a.node.va-n,e))&&o.subarray)r.set(o.subarray(n,n+a),t);else for(e=0;e<a;e++)r[t+e]=o[n+e];return a},write(a,r,t,e,n,o){if(r.buffer===l.buffer&&(o=!1),!e)return 0;if((a=a.node).Da=a.za=Date.now(),r.subarray&&(!a.oa||a.oa.subarray)){if(o)return a.oa=r.subarray(t,t+e),a.va=e;if(0===a.va&&0===n)return a.oa=r.slice(t,t+e),a.va=e;if(n+e<=a.va)return a.oa.set(r.subarray(t,t+e),n),e}o=n+e;var i=a.oa?a.oa.length:0;if(i>=o||(o=Math.max(o,i*(1048576>i?2:1.125)>>>0),0!=i&&(o=Math.max(o,256)),i=a.oa,a.oa=new Uint8Array(o),0<a.va&&a.oa.set(i.subarray(0,a.va),0)),a.oa.subarray&&r.subarray)a.oa.set(r.subarray(t,t+e),n);else for(o=0;o<e;o++)a.oa[n+o]=r[t+o];return a.va=Math.max(a.va,n+e),e},Fa(a,r,t){if(1===t?r+=a.position:2===t&&32768==(61440&a.node.mode)&&(r+=a.node.va),0>r)throw new dr(28);return r},vb(a,r,t,e,n){if(32768!=(61440&a.node.mode))throw new dr(43);if(a=a.node.oa,2&n||!a||a.buffer!==l.buffer){n=!0,e=65536*Math.ceil(r/65536);var o=Yr(65536,e);if(o&&h.fill(0,o,o+e),!(e=o))throw new dr(48);a&&((0<t||t+r<a.length)&&(a=a.subarray?a.subarray(t,t+r):Array.prototype.slice.call(a,t,t+r)),l.set(a,e))}else n=!1,e=a.byteOffset;return{ra:e,Zb:n}},xb:(a,r,t,e)=>(or.qa.write(a,r,0,e,t,!1),0)}},ir=null,sr={},ur=[],fr=1,lr=null,hr=!1,cr=!0,wr={},dr=class{name="ErrnoError";constructor(a){this.Ta=a}},pr=class{bb={};node=null;get flags(){return this.bb.flags}set flags(a){this.bb.flags=a}get position(){return this.bb.position}set position(a){this.bb.position=a}},vr=class{pa={};qa={};eb=null;constructor(a,r,t,e){a||=this,this.parent=a,this.Ja=a.Ja,this.id=fr++,this.name=r,this.mode=t,this.fb=e,this.Na=this.Da=this.za=Date.now()}get read(){return!(365&~this.mode)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(a){a?this.mode|=146:this.mode&=-147}};function mr(a,r={}){if(!a)throw new dr(44);r.jb??(r.jb=!0),"/"===a.charAt(0)||(a="//"+a);var t=0;a:for(;40>t;t++){a=a.split("/").filter(a=>!!a);for(var e=ir,n="/",o=0;o<a.length;o++){var i=o===a.length-1;if(i&&r.parent)break;if("."!==a[o])if(".."===a[o]){if(n=Ya(n),e===e.parent){a=n+"/"+a.slice(o+1).join("/"),t--;continue a}e=e.parent}else{n=Qa(n+"/"+a[o]);try{e=yr(e,a[o])}catch(a){if(44===a?.Ta&&i&&r.Qb)return{path:n};throw a}if(!e.eb||i&&!r.jb||(e=e.eb.root),40960==(61440&e.mode)&&(!i||r.ib)){if(!e.pa.Wa)throw new dr(52);"/"===(e=e.pa.Wa(e)).charAt(0)||(e=Ya(n)+"/"+e),a=e+"/"+a.slice(o+1).join("/");continue a}}}return{path:n,node:e}}throw new dr(32)}function br(a,r){for(var t=0,e=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return(a+t>>>0)%lr.length}function yr(a,r){var t=16384==(61440&a.mode)?(t=Ar(a,"x"))?t:a.pa.Ua?0:2:54;if(t)throw new dr(t);for(t=lr[br(a.id,r)];t;t=t.Qa){var e=t.name;if(t.parent.id===a.id&&e===r)return t}return a.pa.Ua(a,r)}function gr(a,r,t,e){return r=br((a=new vr(a,r,t,e)).parent.id,a.name),a.Qa=lr[r],lr[r]=a}function $r(a){var r=["r","w","rw"][3&a];return 512&a&&(r+="w"),r}function Ar(a,r){return cr?0:!r.includes("r")||292&a.mode?r.includes("w")&&!(146&a.mode)||r.includes("x")&&!(73&a.mode)?2:0:2}function Cr(a,r){if(16384!=(61440&a.mode))return 54;try{return yr(a,r),20}catch(a){}return Ar(a,"wx")}function kr(a){if(!(a=ur[a]))throw new dr(8);return a}function Er(a,r){var t=void 0,e=t?null:a;if(t??=a.pa.Ia,!t)throw new dr(63);t(e,r)}var xr={open(a){a.qa=sr[a.node.fb].qa,a.qa.open?.(a)},Fa(){throw new dr(70)}};function Or(a,r){sr[a]={qa:r}}function Tr(a,r){var t="/"===r;if(t&&ir)throw new dr(10);if(!t&&r){var e=mr(r,{jb:!1});if(r=e.path,(e=e.node).eb)throw new dr(10);if(16384!=(61440&e.mode))throw new dr(54)}r={type:a,pc:{},wb:r,Pb:[]},(a=a.Ja(r)).Ja=r,r.root=a,t?ir=a:e&&(e.eb=r,e.Ja&&e.Ja.Pb.push(r))}function Sr(a,r,t){var e=mr(a,{parent:!0}).node;if(!(a=a&&a.match(/([^\/]+|\/)\/*$/)[1]))throw new dr(28);if("."===a||".."===a)throw new dr(20);var n=Cr(e,a);if(n)throw new dr(n);if(!e.pa.cb)throw new dr(63);return e.pa.cb(e,a,r,t)}function Pr(a){return Sr(a,16895,0)}function jr(a,r,t){void 0===t&&(t=r,r=438),Sr(a,8192|r,t)}function Dr(a,r){if(!((...a)=>{for(var r="",t=!1,e=a.length-1;-1<=e&&!t;e--){if("string"!=typeof(t=0<=e?a[e]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=Va(r.split("/").filter(a=>!!a),!t).join("/"))||"."})(a))throw new dr(44);var t=mr(r,{parent:!0}).node;if(!t)throw new dr(44);var e=Cr(t,r=r&&r.match(/([^\/]+|\/)\/*$/)[1]);if(e)throw new dr(e);if(!t.pa.gb)throw new dr(63);t.pa.gb(t,r,a)}function Rr(a,r){if(""===a)throw new dr(44);if("string"==typeof r){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===t)throw Error(`Unknown file open mode: ${r}`);r=t}if(t=64&r?33206:0,"object"==typeof a)var n=a;else{var o=a.endsWith("/");n=(a=mr(a,{ib:!(131072&r),Qb:!0})).node,a=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new dr(20)}else{if(o)throw new dr(31);n=Sr(a,511|t,0),i=!0}if(!n)throw new dr(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new dr(54);if(!i&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==$r(r)||576&r)?31:Ar(n,$r(r)):44))throw new dr(o);if(512&r&&!i){if(16384==(61440&(o="string"==typeof(o=n)?mr(o,{ib:!0}).node:o).mode))throw new dr(31);if(32768!=(61440&o.mode))throw new dr(28);var s=Ar(o,"w");if(s)throw new dr(s);Er(o,{size:0,timestamp:Date.now()})}r&=-131713;a:for(o=n;;){if(o===o.parent){o=o.Ja.wb;var u=u?"/"!==o[o.length-1]?`${o}/${u}`:o+u:o;break a}u=u?`${o.name}/${u}`:o.name,o=o.parent}if(u={node:n,path:u,flags:r,seekable:!0,position:0,qa:n.qa,Yb:[],error:!1},o=-1,u=Object.assign(new pr,u),-1==o)a:{for(o=0;4096>=o;o++)if(!ur[o])break a;throw new dr(33)}u.Pa=o,ur[o]=u,u.qa.open&&u.qa.open(u),i&&(t&=511,Er(n="string"==typeof n?mr(n,{ib:!0}).node:n,{mode:4095&t|-4096&n.mode,za:Date.now(),hc:void 0})),!e.logReadFiles||1&r||a in wr||(wr[a]=1)}function qr(a,r,t){if(null===a.Pa)throw new dr(8);if(!a.seekable||!a.qa.Fa)throw new dr(70);if(0!=t&&1!=t&&2!=t)throw new dr(28);a.position=a.qa.Fa(a,r,t),a.Yb=[]}function Ir(a,r,t){a=Qa("/dev/"+a);var e=((a,r)=>{var t=0;return a&&(t|=365),r&&(t|=146),t})(!!r,!!t);Ir.ub??(Ir.ub=64);var n=Ir.ub++<<8;Or(n,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,t,e,n){for(var o=0,i=0;i<n;i++){try{var s=r()}catch(a){throw new dr(29)}if(void 0===s&&0===o)throw new dr(6);if(null==s)break;o++,t[e+i]=s}return o&&(a.node.Na=Date.now()),o},write(a,r,e,n){for(var o=0;o<n;o++)try{t(r[e+o])}catch(a){throw new dr(29)}return n&&(a.node.Da=a.node.za=Date.now()),o}}),jr(a,e,n)}var Br,Mr={},zr={},Ur=a=>{if(!(a instanceof T||"unwind"==a))throw a},Nr=a=>{throw s=a,R||0<_a||(e.onExit?.(a),C=!0),new T(a)},Fr=[],Lr={},Wr=a=>{var r;return(r=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(a))?+r[1]:(r=/:(\d+):\d+(?:\)|$)/.exec(a))?2147483648|+r[1]:0},_r=a=>{for(var r of a)(a=Wr(r))&&(Lr[a]=r)},Hr=a=>{if(!(a=Lr[a]))return 0;var r;if(r=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(a))r=r[1];else if(r=/^\s+at (.*) \(.*\)$/.exec(a))r=r[1];else{if(!(r=/^(.+?)@/.exec(a)))return 0;r=r[1]}Qr(Hr.Ab??0),a=Hr;var t=Ra(r)+1,e=Vr(t);return e&&Da(r,h,e,t),a.Ab=e,Hr.Ab},Gr={},Jr=()=>{if(!Br){var a,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(a in Gr)void 0===Gr[a]?delete r[a]:r[a]=Gr[a];var t=[];for(a in r)t.push(`${a}=${r[a]}`);Br=t}return Br};if((()=>{let a=Y.prototype;Object.assign(a,{isAliasOf:function(a){if(!(this instanceof Y&&a instanceof Y))return!1;var r=this.ma.ta.na,t=this.ma.ra;a.ma=a.ma;var e=a.ma.ta.na;for(a=a.ma.ra;r.ya;)t=r.Xa(t),r=r.ya;for(;e.ya;)a=e.Xa(a),e=e.ya;return r===e&&t===a},clone:function(){if(this.ma.ra||J(this),this.ma.Va)return this.ma.count.value+=1,this;var a=Q,r=Object,t=r.create,e=Object.getPrototypeOf(this),n=this.ma;return(a=a(t.call(r,e,{ma:{value:{count:n.count,Sa:n.Sa,Va:n.Va,ra:n.ra,ta:n.ta,xa:n.xa,Ba:n.Ba}}}))).ma.count.value+=1,a.ma.Sa=!1,a},delete(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");V(this);var a=this.ma;--a.count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra)),this.ma.Va||(this.ma.xa=void 0,this.ma.ra=void 0)},isDeleted:function(){return!this.ma.ra},deleteLater:function(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");return this.ma.Sa=!0,this}});const r=Symbol.dispose;r&&(a[r]=a.delete)})(),Object.assign(ha.prototype,{Ib(a){return this.yb&&(a=this.yb(a)),a},qb(a){this.Ha?.(a)},Ea:M,sa:function(a){function r(){return this.ab?la(this.na.La,{ta:this.Rb,ra:t,Ba:this,xa:a}):la(this.na.La,{ta:this,ra:a})}var t=this.Ib(a);if(!t)return this.qb(a),null;var e=((a,r)=>{if(void 0===r)throw new _("ptr should not be undefined");for(;a.ya;)r=a.Xa(r),a=a.ya;return fa[r]})(this.na,t);if(void 0!==e)return 0===e.ma.count.value?(e.ma.ra=t,e.ma.xa=a,e.clone()):(e=e.clone(),this.qb(a),e);if(e=this.na.Hb(t),!(e=Z[e]))return r.call(this);e=this.$a?e.Eb:e.pointerType;var n=ua(t,this.na,e.na);return null===n?r.call(this):this.ab?la(e.na.La,{ta:e,ra:n,Ba:this,xa:a}):la(e.na.La,{ta:e,ra:n})}}),lr=Array(4096),Tr(or,"/"),Pr("/tmp"),Pr("/home"),Pr("/home/web_user"),function(){Pr("/dev"),Or(259,{read:()=>0,write:(a,r,t,e)=>e,Fa:()=>0}),jr("/dev/null",259),rr(1280,er),rr(1536,nr),jr("/dev/tty",1280),jr("/dev/tty1",1536);var a=new Uint8Array(1024),r=0,t=()=>(0===r&&(Xa(a),r=a.byteLength),a[--r]);Ir("random",t),Ir("urandom",t),Pr("/dev/shm"),Pr("/dev/shm/tmp")}(),function(){Pr("/proc");var a=Pr("/proc/self");Pr("/proc/self/fd"),Tr({Ja(){var r=gr(a,"fd",16895,73);return r.qa={Fa:or.qa.Fa},r.pa={Ua(a,r){var t=kr(a=+r);return(a={parent:null,Ja:{wb:"fake"},pa:{Wa:()=>t.path},id:a+1}).parent=a},ob:()=>Array.from(ur.entries()).filter(([,a])=>a).map(([a])=>a.toString())},r}},"/proc/self/fd")}(),e.noExitRuntime&&(R=e.noExitRuntime),e.print&&($=e.print),e.printErr&&(A=e.printErr),e.wasmBinary&&(i=e.wasmBinary),e.thisProgram&&(n=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.shift()();var Kr,Vr,Qr,Yr,Xr,Zr,at,rt,tt={208764:()=>"undefined"!=typeof wasmOffsetConverter},et={U:function(){return"undefined"!=typeof wasmOffsetConverter},n:(a,r,t)=>{var e=new q(a);throw p[e.ra+16>>2]=0,p[e.ra+4>>2]=r,p[e.ra+8>>2]=t,a},Q:()=>x(""),r:a=>{var r=I[a];delete I[a];var t=r.nb,e=r.Ha,n=r.rb,o=n.map(a=>a.Lb).concat(n.map(a=>a.Vb));L([a],o,a=>{var o={};return n.forEach((r,t)=>{var e=a[t],i=r.Jb,s=r.Kb,u=a[t+n.length],f=r.Ub,l=r.Wb;o[r.Gb]={read:a=>e.sa(i(s,a)),write:(a,r)=>{var t=[];f(l,a,u.wa(t,r)),B(t)},optional:a[t].optional}}),[{name:r.name,sa:a=>{var r,t={};for(r in o)t[r]=o[r].read(a);return e(a),t},wa:(a,r)=>{for(var n in o)if(!(n in r)&&!o[n].optional)throw new TypeError(`Missing field: "${n}"`);var i=t();for(n in o)o[n].write(i,r[n]);return null!==a&&a.push(e,i),i},Ea:M,Aa:e}]})},E:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(e=0n===e){const a=8*t;o=r=>BigInt.asUintN(a,r),n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>("number"==typeof r&&(r=BigInt(r)),r),Ea:G(r,t,!e),Aa:null})},ba:(a,r,t,e)=>{H(a,{name:r=W(r),sa:function(a){return!!a},wa:function(a,r){return r?t:e},Ea:function(a){return this.sa(h[a])},Aa:null})},e:(a,r,t,e,n,o,i,s,u,f,l,h,c)=>{l=W(l),o=da(n,o),s&&=da(i,s),f&&=da(u,f),c=da(h,c);var w=(a=>{var r=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${a}`:a})(l);ra(w,function(){ma(`Cannot construct ${l} due to unbound types`,[e])}),L([a,r,t],e?[e]:[],r=>{if(r=r[0],e)var t=r.na,n=t.La;else n=Y.prototype;r=X(l,function(...a){if(Object.getPrototypeOf(this)!==i)throw new _(`Use 'new' to construct ${l}`);if(void 0===h.Oa)throw new _(`${l} has no accessible constructor`);var r=h.Oa[a.length];if(void 0===r)throw new _(`Tried to invoke ctor of ${l} with invalid number of parameters (${a.length}) - expected (${Object.keys(h.Oa).toString()}) parameters instead!`);return r.apply(this,a)});var i=Object.create(n,{constructor:{value:r}});r.prototype=i;var u,h=new ta(l,r,i,c,t,o,s,f);return h.ya&&((u=h.ya).Ya??(u.Ya=[]),h.ya.Ya.push(h)),t=new ha(l,h,!0,!1,!1),u=new ha(l+"*",h,!1,!1,!1),n=new ha(l+" const*",h,!1,!0,!1),Z[a]={pointerType:u,Eb:n},ca(w,r),[t,u,n]})},v:(a,r,t,e,n,o,i)=>{var s=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,s)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=a.na.constructor;return void 0===u[r]?(e.Ma=t-1,u[r]=e):(aa(u,r,n),u[r].ua[t-1]=e),L([],s,e=>{if(e=ba(n,[e[0],null].concat(e.slice(1)),null,o,i),void 0===u[r].ua?(e.Ma=t-1,u[r]=e):u[r].ua[t-1]=e,a.na.Ya)for(const t of a.na.Ya)t.constructor.hasOwnProperty(r)||(t.constructor[r]=e);return[]}),[]})},j:(a,r,t,e,n,o)=>{var i=ya(r,t);n=da(e,n),L([],[a],a=>{var t=`constructor ${(a=a[0]).name}`;if(void 0===a.na.Oa&&(a.na.Oa=[]),void 0!==a.na.Oa[r-1])throw new _(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.na.Oa[r-1]=()=>{ma(`Cannot construct ${a.name} due to unbound types`,i)},L([],i,e=>(e.splice(1,0,null),a.na.Oa[r-1]=ba(t,e,null,n,o),[])),[]})},a:(a,r,t,e,n,o,i,s)=>{var u=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,u)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&a.na.Sb.push(r);var f=a.na.La,l=f[r];return void 0===l||void 0===l.ua&&l.className!==a.name&&l.Ma===t-2?(e.Ma=t-2,e.className=a.name,f[r]=e):(aa(f,r,n),f[r].ua[t-2]=e),L([],u,e=>(e=ba(n,e,a,o,i),void 0===f[r].ua?(e.Ma=t-2,f[r]=e):f[r].ua[t-2]=e,[])),[]})},c:(a,r,t,e,n,o,i,s,u,f)=>{r=W(r),n=da(e,n),L([],[a],a=>{var e=`${(a=a[0]).name}.${r}`,l={get(){ma(`Cannot access ${e} due to unbound types`,[t,i])},enumerable:!0,configurable:!0};return l.set=u?()=>ma(`Cannot access ${e} due to unbound types`,[t,i]):()=>{throw new _(e+" is a read-only property")},Object.defineProperty(a.na.La,r,l),L([],u?[t,i]:[t],t=>{var i=t[0],l={get(){var r=$a(this,a,e+" getter");return i.sa(n(o,r))},enumerable:!0};if(u){u=da(s,u);var h=t[1];l.set=function(r){var t=$a(this,a,e+" setter"),n=[];u(f,t,h.wa(n,r)),B(n)}}return Object.defineProperty(a.na.La,r,l),[]}),[]})},_:a=>H(a,Oa),m:(a,r,t,e)=>{function n(){}r=W(r),n.values={},H(a,{name:r,constructor:n,sa:function(a){return this.constructor.values[a]},wa:(a,r)=>r.value,Ea:Ta(r,t,e),Aa:null}),ra(r,n)},d:(a,r,t)=>{var e=Sa(a,"enum");r=W(r),a=e.constructor,e=Object.create(e.constructor.prototype,{value:{value:t},constructor:{value:X(`${e.name}_${r}`,function(){})}}),a.values[t]=e,a[r]=e},D:(a,r,t)=>{H(a,{name:r=W(r),sa:a=>a,wa:(a,r)=>r,Ea:Pa(r,t),Aa:null})},da:(a,r,t,e,n,o)=>{var i=ya(r,t);a=W(a),a=ga(a),n=da(e,n),ra(a,function(){ma(`Cannot call ${a} due to unbound types`,i)},r-1),L([],i,t=>(ca(a,ba(a,[t[0],null].concat(t.slice(1)),null,n,o),r-1),[]))},w:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(0===e){var i=32-8*t;o=a=>a<<i>>>i,n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>r,Ea:G(r,t,0!==e),Aa:null})},o:(a,r,t)=>{function e(a){return new n(l.buffer,p[a+4>>2],p[a>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];H(a,{name:t=W(t),sa:e,Ea:e},{Mb:!0})},t:a=>{H(a,ja)},k:(a,r,t,e,n,o,i,s,u,f,l,h)=>{t=W(t),o=da(n,o),s=da(i,s),f=da(u,f),h=da(l,h),L([a],[r],a=>(a=a[0],[new ha(t,a.na,!1,!1,!0,a,e,o,s,f,h)]))},aa:(a,r)=>{H(a,{name:r=W(r),sa(a){var r=(r=a+4)?Ba(h,r,p[a>>2],!0):"";return Qr(a),r},wa(a,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t="string"==typeof r;if(!(t||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT))throw new _("Cannot pass non-string to std::string");var e=t?Ra(r):r.length,n=Vr(4+e+1),o=n+4;return p[n>>2]=e,t?Da(r,h,o,e+1):h.set(r,o),null!==a&&a.push(Qr,n),n},Ea:M,Aa(a){Qr(a)}})},A:(a,r,t)=>{if(t=W(t),2===r)var e=za,n=Ua,o=Na;else e=Fa,n=La,o=Wa;H(a,{name:t,sa:a=>{var t=e(a+4,p[a>>2]*r,!0);return Qr(a),t},wa:(a,e)=>{if("string"!=typeof e)throw new _(`Cannot pass non-string to C++ string type ${t}`);var i=o(e),s=Vr(4+i+r);return p[s>>2]=i/r,n(e,s+4,i+r),null!==a&&a.push(Qr,s),s},Ea:M,Aa(a){Qr(a)}})},s:(a,r,t,e,n,o)=>{I[a]={name:W(r),nb:da(t,e),Ha:da(n,o),rb:[]}},l:(a,r,t,e,n,o,i,s,u,f)=>{I[a].rb.push({Gb:W(r),Lb:t,Jb:da(e,n),Kb:o,Vb:i,Ub:da(s,u),Wb:f})},ca:(a,r)=>{H(a,{Nb:!0,name:r=W(r),sa:()=>{},wa:()=>{}})},I:()=>{R=!1,_a=0},h:(a,r,t)=>{var[e,...n]=((a,r)=>{for(var t=Array(a),e=0;e<a;++e)t[e]=Sa(p[r+4*e>>2],`parameter ${e}`);return t})(a,r),o=e.wa.bind(e),i=n.map(a=>a.Ea.bind(a));a--;var s=Array(a);return r=`methodCaller<(${n.map(a=>a.name)}) => ${e.name}>`,(a=>{var r=Ha.length;return Ha.push(a),r})(X(r,(r,e,n,u)=>{for(var f=0,l=0;l<a;++l)s[l]=i[l](u+f),f+=8;switch(t){case 0:var h=Ea(r).apply(null,s);break;case 2:h=Reflect.construct(Ea(r),s);break;case 3:h=s[0];break;case 1:h=Ea(r)[Ja(e)](...s)}return h=o(r=[],h),r.length&&(p[n>>2]=xa(r)),h}))},b:ka,W:a=>a?(a=Ja(a),xa(globalThis[a])):xa(globalThis),q:(a,r)=>(a=Ea(a),r=Ea(r),xa(a[r])),f:a=>{9<a&&(Ca[a+1]+=1)},$:(a,r)=>(a=Ea(a))instanceof Ea(r),i:Ka,Z:Ka,u:a=>"number"==typeof(a=Ea(a)),x:a=>"string"==typeof(a=Ea(a)),F:()=>xa([]),p:a=>xa(Ja(a)),g:a=>{var r=Ea(a);B(r),ka(a)},z:a=>(a=Ea(a),xa(typeof a)),G:(a,r)=>{if(zr[a]&&(clearTimeout(zr[a].id),delete zr[a]),!r)return 0;var t=setTimeout(()=>{delete zr[a],(a=>{if(!C)try{if(a(),!(R||0<_a))try{s=a=s,Nr(a)}catch(a){Ur(a)}}catch(a){Ur(a)}})(()=>Xr(a,performance.now()))},r);return zr[a]={id:t,qc:r},0},S:(a,r,t,e)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),p[a>>2]=60*Math.max(o,n),d[r>>2]=Number(o!=n),a=(r=a=>{var r=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(o),r=r(n),n<o?(Da(a,h,t,17),Da(r,h,e,17)):(Da(a,h,e,17),Da(r,h,t,17))},P:function(a,r,t){return 0<=a&&3>=a?(b[t>>3]=BigInt(Math.round(1e6*(0===a?Date.now():performance.now()))),0):28},Y:(a,r,t)=>{Fr.length=0;for(var e;e=h[r++];){var n=105!=e;t+=(n&=112!=e)&&t%8?4:0,Fr.push(112==e?p[t>>2]:106==e?b[t>>3]:105==e?d[t>>2]:m[t>>3]),t+=n?8:4}return tt[a](...Fr)},C:(a,r)=>A(a?Ba(h,a,r):""),y:()=>performance.now(),T:Hr,H:a=>{var r=h.length;if(2147483648<(a>>>=0))return!1;for(var t=1;4>=t;t*=2){var e=r*(1+.2/t);e=Math.min(e,a+100663296);a:{e=(Math.min(2147483648,65536*Math.ceil(Math.max(a,e)/65536))-Zr.buffer.byteLength+65535)/65536|0;try{Zr.grow(e),E();var n=1;break a}catch(a){}n=void 0}if(n)return!0}return!1},X:()=>{var a=Error().stack.toString().split("\n");return"Error"==a[0]&&a.shift(),_r(a),Lr.tb=Wr(a[3]),Lr.Ob=a,Lr.tb},V:(a,r,t)=>{if(Lr.tb==a)var e=Lr.Ob;else"Error"==(e=Error().stack.toString().split("\n"))[0]&&e.shift(),_r(e);for(var n=3;e[n]&&Wr(e[n])!=a;)++n;for(a=0;a<t&&e[a+n];++a)d[r+4*a>>2]=Wr(e[a+n]);return a},K:(a,r)=>{var t,e=0,n=0;for(t of Jr()){var o=r+e;p[a+n>>2]=o,e+=Da(t,h,o,1/0)+1,n+=4}return 0},L:(a,r)=>{var t=Jr();for(var e of(p[a>>2]=t.length,a=0,t))a+=Ra(e)+1;return p[r>>2]=a,0},B:a=>{s=a,Nr(a)},O:function(a){try{var r=kr(a);if(null===r.Pa)throw new dr(8);r.kb&&(r.kb=null);try{r.qa.close&&r.qa.close(r)}catch(a){throw a}finally{ur[r.Pa]=null}return r.Pa=null,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},N:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(1==(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.read)throw new dr(28);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.read(f,d,h,c,w);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},J:function(a,r,t,e){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var n=kr(a);return qr(n,r,t),b[e>>3]=BigInt(n.position),n.kb&&0===r&&0===t&&(n.kb=null),0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},M:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(!(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.write)throw new dr(28);f.seekable&&1024&f.flags&&qr(f,0,2);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.write(f,d,h,c,w,void 0);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},R:Nr};return rt=await async function(){function a(a){return a=rt=a.exports,Kr=a.ga,Vr=a.ha,Qr=a.ia,Yr=a.ka,Xr=a.la,Zr=a.ea,at=a.ja,E(),rt}var r={a:et};return e.instantiateWasm?new Promise(t=>{e.instantiateWasm(r,(r,e)=>{t(a(r))})}):(g??=e.locateFile?e.locateFile("arcgis-knowledge-client-core.wasm",o):o+"arcgis-knowledge-client-core.wasm",a((await async function(a){var r=g;if(!i)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,a)}catch(a){A(`wasm streaming compile failed: ${a}`),A("falling back to ArrayBuffer instantiation")}return async function(a,r){try{var t=await O(a);return await WebAssembly.instantiate(t,r)}catch(a){A(`failed to asynchronously prepare wasm: ${a}`),x(a)}}(r,a)}(r)).instance))}(),function(){function a(){if(e.calledRun=!0,!C){var a,r;if(k=!0,e.noFSInit||hr||(hr=!0,a??=e.stdin,r??=e.stdout,t??=e.stderr,a?Ir("stdin",a):Dr("/dev/tty","/dev/stdin"),r?Ir("stdout",null,r):Dr("/dev/tty","/dev/stdout"),t?Ir("stderr",null,t):Dr("/dev/tty1","/dev/stderr"),Rr("/dev/stdin",0),Rr("/dev/stdout",1),Rr("/dev/stderr",1)),rt.fa(),cr=!1,u?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();P.push(t)}S(P)}}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)D();S(j),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),a()},1)):a()}(),k?e:new Promise((a,r)=>{u=a,f=r})},a.exports=t,a.exports.default=t),o.exports;var a,r,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9013],{11053:(a,r,t)=>{t.d(r,{c:()=>e,g:()=>n});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}},29013:(a,r,t)=>{t.d(r,{a:()=>s});var e,n=t(11053),o={exports:{}};const i=(0,n.g)(function(){return e||(e=1,a=o,r=globalThis.document?.currentScript?.src,t=async function(a={}){var t,e=a,n="./this.program",o="";try{o=new URL(".",r).href}catch{}t=async a=>{if((a=await fetch(a,{credentials:"same-origin"})).ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url)};var i,s,u,f,l,h,c,w,d,p,v,m,b,y,g,$=console.log.bind(console),A=console.error.bind(console),C=!1,k=!1;function E(){var a=Zr.buffer;l=new Int8Array(a),c=new Int16Array(a),h=new Uint8Array(a),w=new Uint16Array(a),d=new Int32Array(a),p=new Uint32Array(a),v=new Float32Array(a),m=new Float64Array(a),b=new BigInt64Array(a),y=new BigUint64Array(a)}function x(a){throw e.onAbort?.(a),A(a="Aborted("+a+")"),C=!0,a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info."),f?.(a),a}async function O(a){if(!i)try{var r=await t(a);return new Uint8Array(r)}catch{}if(a!=g||!i)throw"both async and sync fetching of the wasm failed";return new Uint8Array(i)}class T{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`,this.status=a}}var S=a=>{for(;0<a.length;)a.shift()(e)},P=[],j=[],D=()=>{var a=e.preRun.shift();j.push(a)},R=!0;class q{constructor(a){this.ra=a-24}}var I={},B=a=>{for(;a.length;){var r=a.pop();a.pop()(r)}};function M(a){return this.sa(p[a>>2])}var z={},U={},N={},F=class extends Error{constructor(a){super(a),this.name="InternalError"}},L=(a,r,t)=>{function e(r){if((r=t(r)).length!==a.length)throw new F("Mismatched type converter count");for(var e=0;e<a.length;++e)H(a[e],r[e])}a.forEach(a=>N[a]=r);var n=Array(r.length),o=[],i=0;r.forEach((a,r)=>{U.hasOwnProperty(a)?n[r]=U[a]:(o.push(a),z.hasOwnProperty(a)||(z[a]=[]),z[a].push(()=>{n[r]=U[a],++i===o.length&&e(n)}))}),0===o.length&&e(n)},W=a=>{for(var r="";;){var t=h[a++];if(!t)return r;r+=String.fromCharCode(t)}},_=class extends Error{constructor(a){super(a),this.name="BindingError"}};function H(a,r,t={}){return function(a,r,t={}){var e=r.name;if(!a)throw new _(`type "${e}" must have a positive integer typeid pointer`);if(U.hasOwnProperty(a)){if(t.Mb)return;throw new _(`Cannot register type '${e}' twice`)}U[a]=r,delete N[a],z.hasOwnProperty(a)&&(r=z[a],delete z[a],r.forEach(a=>a()))}(a,r,t)}var G=(a,r,t)=>{switch(r){case 1:return t?a=>l[a]:a=>h[a];case 2:return t?a=>c[a>>1]:a=>w[a>>1];case 4:return t?a=>d[a>>2]:a=>p[a>>2];case 8:return t?a=>b[a>>3]:a=>y[a>>3];default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},J=a=>{throw new _(a.ma.ta.na.name+" instance already deleted")},K=!1,V=()=>{},Q=a=>globalThis.FinalizationRegistry?(K=new FinalizationRegistry(a=>{--(a=a.ma).count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra))}),V=a=>{K.unregister(a)},(Q=a=>{var r=a.ma;return r.xa&&K.register(a,{ma:r},a),a})(a)):(Q=a=>a,a);function Y(){}var X=(a,r)=>Object.defineProperty(r,"name",{value:a}),Z={},aa=(a,r,t)=>{if(void 0===a[r].ua){var e=a[r];a[r]=function(...e){if(!a[r].ua.hasOwnProperty(e.length))throw new _(`Function '${t}' called with an invalid number of arguments (${e.length}) - expects one of (${a[r].ua})!`);return a[r].ua[e.length].apply(this,e)},a[r].ua=[],a[r].ua[e.Ma]=e}},ra=(a,r,t)=>{if(e.hasOwnProperty(a)){if(void 0===t||void 0!==e[a].ua&&void 0!==e[a].ua[t])throw new _(`Cannot register public name '${a}' twice`);if(aa(e,a,a),e[a].ua.hasOwnProperty(t))throw new _(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);e[a].ua[t]=r}else e[a]=r,e[a].Ma=t};function ta(a,r,t,e,n,o,i,s){this.name=a,this.constructor=r,this.La=t,this.Ha=e,this.ya=n,this.Hb=o,this.Xa=i,this.Fb=s,this.Sb=[]}var ea=(a,r,t)=>{for(;r!==t;){if(!r.Xa)throw new _(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);a=r.Xa(a),r=r.ya}return a},na=a=>{if(null===a)return"null";var r=typeof a;return"object"===r||"array"===r||"function"===r?a.toString():""+a};function oa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}function ia(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);if(this.ab){var t=this.nb();return null!==a&&a.push(this.Ha,t),t}return 0}if(!r||!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.$a&&r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);if(t=ea(r.ma.ra,r.ma.ta.na,this.na),this.ab){if(void 0===r.ma.xa)throw new _("Passing raw pointer to smart pointer is illegal");switch(this.Xb){case 0:if(r.ma.Ba!==this)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);t=r.ma.xa;break;case 1:t=r.ma.xa;break;case 2:if(r.ma.Ba===this)t=r.ma.xa;else{var e=r.clone();t=this.Tb(t,xa(()=>e.delete())),null!==a&&a.push(this.Ha,t)}break;default:throw new _("Unsupporting sharing policy")}}return t}function sa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.ta.name} to parameter type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}var ua=(a,r,t)=>r===t?a:void 0===t.ya||null===(a=ua(a,r,t.ya))?null:t.Fb(a),fa={},la=(a,r)=>{if(!r.ta||!r.ra)throw new F("makeClassHandle requires ptr and ptrType");if(!!r.Ba!=!!r.xa)throw new F("Both smartPtrType and smartPtr must be specified");return r.count={value:1},Q(Object.create(a,{ma:{value:r,writable:!0}}))};function ha(a,r,t,e,n,o,i,s,u,f,l){this.name=a,this.na=r,this.lb=t,this.$a=e,this.ab=n,this.Rb=o,this.Xb=i,this.yb=s,this.nb=u,this.Tb=f,this.Ha=l,n||void 0!==r.ya?this.wa=ia:(this.wa=e?oa:sa,this.Aa=null)}var ca=(a,r,t)=>{if(!e.hasOwnProperty(a))throw new F("Replacing nonexistent public symbol");void 0!==e[a].ua&&void 0!==t?e[a].ua[t]=r:(e[a]=r,e[a].Ma=t)},wa=[],da=(a,r)=>{var t;if(a=W(a),(t=wa[r])||(wa[r]=t=at.get(r)),"function"!=typeof t)throw new _(`unknown function pointer with signature ${a}: ${r}`);return t};class pa extends Error{}var va=a=>{a=Kr(a);var r=W(a);return Qr(a),r},ma=(a,r)=>{var t=[],e={};throw r.forEach(function a(r){e[r]||U[r]||(N[r]?N[r].forEach(a):(t.push(r),e[r]=!0))}),new pa(`${a}: `+t.map(va).join([", "]))};function ba(a,r,t,e,n){var o=r.length;if(2>o)throw new _("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==r[1]&&null!==t,s=function(a){for(var r=1;r<a.length;++r)if(null!==a[r]&&void 0===a[r].Aa)return!0;return!1}(r),u=!r[0].Nb,f=o-2,l=Array(f),h=[],c=[];return X(a,function(...a){if(c.length=0,h.length=i?2:1,h[0]=n,i){var t=r[1].wa(c,this);h[1]=t}for(var o=0;o<f;++o)l[o]=r[o+2].wa(c,a[o]),h.push(l[o]);if(a=e(...h),s)B(c);else for(o=i?1:2;o<r.length;o++){var w=1===o?t:l[o-2];null!==r[o].Aa&&r[o].Aa(w)}return u?r[0].sa(a):void 0})}var ya=(a,r)=>{for(var t=[],e=0;e<a;e++)t.push(p[r+4*e>>2]);return t},ga=a=>{const r=(a=a.trim()).indexOf("(");return-1===r?a:a.slice(0,r)},$a=(a,r,t)=>{if(!(a instanceof Object))throw new _(`${t} with invalid "this": ${a}`);if(!(a instanceof r.na.constructor))throw new _(`${t} incompatible with "this" of type ${a.constructor.name}`);if(!a.ma.ra)throw new _(`cannot call emscripten binding method ${t} on deleted object`);return ea(a.ma.ra,a.ma.ta.na,r.na)},Aa=[],Ca=[0,1,,1,null,1,!0,1,!1,1],ka=a=>{9<a&&0===--Ca[a+1]&&(Ca[a]=void 0,Aa.push(a))},Ea=a=>{if(!a)throw new _(`Cannot use deleted val. handle = ${a}`);return Ca[a]},xa=a=>{switch(a){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=Aa.pop()||Ca.length;return Ca[r]=a,Ca[r+1]=1,r}},Oa={name:"emscripten::val",sa:a=>{var r=Ea(a);return ka(a),r},wa:(a,r)=>xa(r),Ea:M,Aa:null},Ta=(a,r,t)=>{switch(r){case 1:return t?function(a){return this.sa(l[a])}:function(a){return this.sa(h[a])};case 2:return t?function(a){return this.sa(c[a>>1])}:function(a){return this.sa(w[a>>1])};case 4:return t?function(a){return this.sa(d[a>>2])}:function(a){return this.sa(p[a>>2])};default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},Sa=(a,r)=>{var t=U[a];if(void 0===t)throw a=`${r} has unknown type ${va(a)}`,new _(a);return t},Pa=(a,r)=>{switch(r){case 4:return function(a){return this.sa(v[a>>2])};case 8:return function(a){return this.sa(m[a>>3])};default:throw new TypeError(`invalid float width (${r}): ${a}`)}},ja=Object.assign({optional:!0},Oa),Da=(a,r,t,e)=>{if(!(0<e))return 0;var n=t;e=t+e-1;for(var o=0;o<a.length;++o){var i=a.codePointAt(o);if(127>=i){if(t>=e)break;r[t++]=i}else if(2047>=i){if(t+1>=e)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(65535>=i){if(t+2>=e)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=e)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i,o++}}return r[t]=0,t-n},Ra=a=>{for(var r=0,t=0;t<a.length;++t){var e=a.charCodeAt(t);127>=e?r++:2047>=e?r+=2:55296<=e&&57343>=e?(r+=4,++t):r+=3}return r},qa=globalThis.TextDecoder&&new TextDecoder,Ia=(a,r,t,e)=>{if(t=r+t,e)return t;for(;a[r]&&!(r>=t);)++r;return r},Ba=(a,r=0,t,e)=>{if(16<(t=Ia(a,r,t,e))-r&&a.buffer&&qa)return qa.decode(a.subarray(r,t));for(e="";r<t;){var n=a[r++];if(128&n){var o=63&a[r++];if(192==(224&n))e+=String.fromCharCode((31&n)<<6|o);else{var i=63&a[r++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&a[r++])?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else e+=String.fromCharCode(n)}return e},Ma=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,za=(a,r,t)=>{if(16<(r=Ia(w,a>>=1,r/2,t))-a&&Ma)return Ma.decode(w.subarray(a,r));for(t="";a<r;++a)t+=String.fromCharCode(w[a]);return t},Ua=(a,r,t)=>{if(t??=2147483647,2>t)return 0;var e=r;t=(t-=2)<2*a.length?t/2:a.length;for(var n=0;n<t;++n)c[r>>1]=a.charCodeAt(n),r+=2;return c[r>>1]=0,r-e},Na=a=>2*a.length,Fa=(a,r,t)=>{var e="";a>>=2;for(var n=0;!(n>=r/4);n++){var o=p[a+n];if(!o&&!t)break;e+=String.fromCodePoint(o)}return e},La=(a,r,t)=>{if(t??=2147483647,4>t)return 0;var e=r;t=e+t-4;for(var n=0;n<a.length;++n){var o=a.codePointAt(n);if(65535<o&&n++,d[r>>2]=o,(r+=4)+4>t)break}return d[r>>2]=0,r-e},Wa=a=>{for(var r=0,t=0;t<a.length;++t)65535<a.codePointAt(t)&&t++,r+=4;return r},_a=0,Ha=[],Ga={},Ja=a=>{var r=Ga[a];return void 0===r?W(a):r},Ka=(a,r,t,e,n)=>Ha[a](r,t,e,n),Va=(a,r)=>{for(var t=0,e=a.length-1;0<=e;e--){var n=a[e];"."===n?a.splice(e,1):".."===n?(a.splice(e,1),t++):t&&(a.splice(e,1),t--)}if(r)for(;t;t--)a.unshift("..");return a},Qa=a=>{var r="/"===a.charAt(0),t="/"===a.slice(-1);return(a=Va(a.split("/").filter(a=>!!a),!r).join("/"))||r||(a="."),a&&t&&(a+="/"),(r?"/":"")+a},Ya=a=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=r[0],r=r[1],a||r?(r&&=r.slice(0,-1),a+r):"."},Xa=a=>{(Xa=a=>crypto.getRandomValues(a))(a)},Za=[],ar=[];function rr(a,r){ar[a]={input:[],output:[],Ra:r},Or(a,tr)}var tr={open(a){var r=ar[a.node.fb];if(!r)throw new dr(43);a.Ca=r,a.seekable=!1},close(a){a.Ca.Ra.Za(a.Ca)},Za(a){a.Ca.Ra.Za(a.Ca)},read(a,r,t,e){if(!a.Ca||!a.Ca.Ra.sb)throw new dr(60);for(var n=0,o=0;o<e;o++){try{var i=a.Ca.Ra.sb(a.Ca)}catch(a){throw new dr(29)}if(void 0===i&&0===n)throw new dr(6);if(null==i)break;n++,r[t+o]=i}return n&&(a.node.Na=Date.now()),n},write(a,r,t,e){if(!a.Ca||!a.Ca.Ra.mb)throw new dr(60);try{for(var n=0;n<e;n++)a.Ca.Ra.mb(a.Ca,r[t+n])}catch(a){throw new dr(29)}return e&&(a.node.Da=a.node.za=Date.now()),n}},er={sb(){a:{if(!Za.length){var a=null;if(globalThis.window?.prompt&&null!==(a=window.prompt("Input: "))&&(a+="\n"),!a){var r=null;break a}r=Array(Ra(a)+1),a=Da(a,r,0,r.length),r.length=a,Za=r}r=Za.shift()}return r},mb(a,r){null===r||10===r?($(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&($(Ba(a.output)),a.output=[])},lc:()=>({cc:25856,ec:5,bc:191,dc:35387,ac:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),mc:()=>0,nc:()=>[24,80]},nr={mb(a,r){null===r||10===r?(A(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(A(Ba(a.output)),a.output=[])}},or={Ga:null,Ja:()=>or.createNode(null,"/",16895,0),createNode(a,r,t,e){if(24576==(61440&t)||4096==(61440&t))throw new dr(63);return or.Ga||(or.Ga={dir:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Ua:or.pa.Ua,cb:or.pa.cb,zb:or.pa.zb,Cb:or.pa.Cb,Bb:or.pa.Bb,ob:or.pa.ob,gb:or.pa.gb},stream:{Fa:or.qa.Fa}},file:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:{Fa:or.qa.Fa,read:or.qa.read,write:or.qa.write,vb:or.qa.vb,xb:or.qa.xb}},link:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Wa:or.pa.Wa},stream:{}},pb:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:xr}}),16384==(61440&(t=gr(a,r,t,e)).mode)?(t.pa=or.Ga.dir.node,t.qa=or.Ga.dir.stream,t.oa={}):32768==(61440&t.mode)?(t.pa=or.Ga.file.node,t.qa=or.Ga.file.stream,t.va=0,t.oa=null):40960==(61440&t.mode)?(t.pa=or.Ga.link.node,t.qa=or.Ga.link.stream):8192==(61440&t.mode)&&(t.pa=or.Ga.pb.node,t.qa=or.Ga.pb.stream),t.Na=t.Da=t.za=Date.now(),a&&(a.oa[r]=t,a.Na=a.Da=a.za=t.Na),t},ic:a=>a.oa?a.oa.subarray?a.oa.subarray(0,a.va):new Uint8Array(a.oa):new Uint8Array(0),pa:{Ka(a){var r={};return r.fc=8192==(61440&a.mode)?a.id:1,r.kc=a.id,r.mode=a.mode,r.oc=1,r.uid=0,r.jc=0,r.fb=a.fb,16384==(61440&a.mode)?r.size=4096:32768==(61440&a.mode)?r.size=a.va:40960==(61440&a.mode)?r.size=a.link.length:r.size=0,r.Na=new Date(a.Na),r.Da=new Date(a.Da),r.za=new Date(a.za),r.Db=4096,r.$b=Math.ceil(r.size/r.Db),r},Ia(a,r){for(var t of["mode","atime","mtime","ctime"])null!=r[t]&&(a[t]=r[t]);void 0!==r.size&&(r=r.size,a.va!=r&&(0==r?(a.oa=null,a.va=0):(t=a.oa,a.oa=new Uint8Array(r),t&&a.oa.set(t.subarray(0,Math.min(r,a.va))),a.va=r)))},Ua(){throw or.hb||(or.hb=new dr(44),or.hb.stack="<generic error, no stack>"),or.hb},cb:(a,r,t,e)=>or.createNode(a,r,t,e),zb(a,r,t){try{var e=yr(r,t)}catch(a){}if(e){if(16384==(61440&a.mode))for(var n in e.oa)throw new dr(55);if(n=br(e.parent.id,e.name),lr[n]===e)lr[n]=e.Qa;else for(n=lr[n];n;){if(n.Qa===e){n.Qa=e.Qa;break}n=n.Qa}}delete a.parent.oa[a.name],r.oa[t]=a,a.name=t,r.za=r.Da=a.parent.za=a.parent.Da=Date.now()},Cb(a,r){delete a.oa[r],a.za=a.Da=Date.now()},Bb(a,r){var t,e=yr(a,r);for(t in e.oa)throw new dr(55);delete a.oa[r],a.za=a.Da=Date.now()},ob:a=>[".","..",...Object.keys(a.oa)],gb:(a,r,t)=>((a=or.createNode(a,r,41471,0)).link=t,a),Wa(a){if(40960!=(61440&a.mode))throw new dr(28);return a.link}},qa:{read(a,r,t,e,n){var o=a.node.oa;if(n>=a.node.va)return 0;if(8<(a=Math.min(a.node.va-n,e))&&o.subarray)r.set(o.subarray(n,n+a),t);else for(e=0;e<a;e++)r[t+e]=o[n+e];return a},write(a,r,t,e,n,o){if(r.buffer===l.buffer&&(o=!1),!e)return 0;if((a=a.node).Da=a.za=Date.now(),r.subarray&&(!a.oa||a.oa.subarray)){if(o)return a.oa=r.subarray(t,t+e),a.va=e;if(0===a.va&&0===n)return a.oa=r.slice(t,t+e),a.va=e;if(n+e<=a.va)return a.oa.set(r.subarray(t,t+e),n),e}o=n+e;var i=a.oa?a.oa.length:0;if(i>=o||(o=Math.max(o,i*(1048576>i?2:1.125)>>>0),0!=i&&(o=Math.max(o,256)),i=a.oa,a.oa=new Uint8Array(o),0<a.va&&a.oa.set(i.subarray(0,a.va),0)),a.oa.subarray&&r.subarray)a.oa.set(r.subarray(t,t+e),n);else for(o=0;o<e;o++)a.oa[n+o]=r[t+o];return a.va=Math.max(a.va,n+e),e},Fa(a,r,t){if(1===t?r+=a.position:2===t&&32768==(61440&a.node.mode)&&(r+=a.node.va),0>r)throw new dr(28);return r},vb(a,r,t,e,n){if(32768!=(61440&a.node.mode))throw new dr(43);if(a=a.node.oa,2&n||!a||a.buffer!==l.buffer){n=!0,e=65536*Math.ceil(r/65536);var o=Yr(65536,e);if(o&&h.fill(0,o,o+e),!(e=o))throw new dr(48);a&&((0<t||t+r<a.length)&&(a=a.subarray?a.subarray(t,t+r):Array.prototype.slice.call(a,t,t+r)),l.set(a,e))}else n=!1,e=a.byteOffset;return{ra:e,Zb:n}},xb:(a,r,t,e)=>(or.qa.write(a,r,0,e,t,!1),0)}},ir=null,sr={},ur=[],fr=1,lr=null,hr=!1,cr=!0,wr={},dr=class{name="ErrnoError";constructor(a){this.Ta=a}},pr=class{bb={};node=null;get flags(){return this.bb.flags}set flags(a){this.bb.flags=a}get position(){return this.bb.position}set position(a){this.bb.position=a}},vr=class{pa={};qa={};eb=null;constructor(a,r,t,e){a||=this,this.parent=a,this.Ja=a.Ja,this.id=fr++,this.name=r,this.mode=t,this.fb=e,this.Na=this.Da=this.za=Date.now()}get read(){return!(365&~this.mode)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(a){a?this.mode|=146:this.mode&=-147}};function mr(a,r={}){if(!a)throw new dr(44);r.jb??(r.jb=!0),"/"===a.charAt(0)||(a="//"+a);var t=0;a:for(;40>t;t++){a=a.split("/").filter(a=>!!a);for(var e=ir,n="/",o=0;o<a.length;o++){var i=o===a.length-1;if(i&&r.parent)break;if("."!==a[o])if(".."===a[o]){if(n=Ya(n),e===e.parent){a=n+"/"+a.slice(o+1).join("/"),t--;continue a}e=e.parent}else{n=Qa(n+"/"+a[o]);try{e=yr(e,a[o])}catch(a){if(44===a?.Ta&&i&&r.Qb)return{path:n};throw a}if(!e.eb||i&&!r.jb||(e=e.eb.root),40960==(61440&e.mode)&&(!i||r.ib)){if(!e.pa.Wa)throw new dr(52);"/"===(e=e.pa.Wa(e)).charAt(0)||(e=Ya(n)+"/"+e),a=e+"/"+a.slice(o+1).join("/");continue a}}}return{path:n,node:e}}throw new dr(32)}function br(a,r){for(var t=0,e=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return(a+t>>>0)%lr.length}function yr(a,r){var t=16384==(61440&a.mode)?(t=Ar(a,"x"))?t:a.pa.Ua?0:2:54;if(t)throw new dr(t);for(t=lr[br(a.id,r)];t;t=t.Qa){var e=t.name;if(t.parent.id===a.id&&e===r)return t}return a.pa.Ua(a,r)}function gr(a,r,t,e){return r=br((a=new vr(a,r,t,e)).parent.id,a.name),a.Qa=lr[r],lr[r]=a}function $r(a){var r=["r","w","rw"][3&a];return 512&a&&(r+="w"),r}function Ar(a,r){return cr?0:!r.includes("r")||292&a.mode?r.includes("w")&&!(146&a.mode)||r.includes("x")&&!(73&a.mode)?2:0:2}function Cr(a,r){if(16384!=(61440&a.mode))return 54;try{return yr(a,r),20}catch(a){}return Ar(a,"wx")}function kr(a){if(!(a=ur[a]))throw new dr(8);return a}function Er(a,r){var t=void 0,e=t?null:a;if(t??=a.pa.Ia,!t)throw new dr(63);t(e,r)}var xr={open(a){a.qa=sr[a.node.fb].qa,a.qa.open?.(a)},Fa(){throw new dr(70)}};function Or(a,r){sr[a]={qa:r}}function Tr(a,r){var t="/"===r;if(t&&ir)throw new dr(10);if(!t&&r){var e=mr(r,{jb:!1});if(r=e.path,(e=e.node).eb)throw new dr(10);if(16384!=(61440&e.mode))throw new dr(54)}r={type:a,pc:{},wb:r,Pb:[]},(a=a.Ja(r)).Ja=r,r.root=a,t?ir=a:e&&(e.eb=r,e.Ja&&e.Ja.Pb.push(r))}function Sr(a,r,t){var e=mr(a,{parent:!0}).node;if(!(a=a&&a.match(/([^\/]+|\/)\/*$/)[1]))throw new dr(28);if("."===a||".."===a)throw new dr(20);var n=Cr(e,a);if(n)throw new dr(n);if(!e.pa.cb)throw new dr(63);return e.pa.cb(e,a,r,t)}function Pr(a){return Sr(a,16895,0)}function jr(a,r,t){void 0===t&&(t=r,r=438),Sr(a,8192|r,t)}function Dr(a,r){if(!((...a)=>{for(var r="",t=!1,e=a.length-1;-1<=e&&!t;e--){if("string"!=typeof(t=0<=e?a[e]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=Va(r.split("/").filter(a=>!!a),!t).join("/"))||"."})(a))throw new dr(44);var t=mr(r,{parent:!0}).node;if(!t)throw new dr(44);var e=Cr(t,r=r&&r.match(/([^\/]+|\/)\/*$/)[1]);if(e)throw new dr(e);if(!t.pa.gb)throw new dr(63);t.pa.gb(t,r,a)}function Rr(a,r){if(""===a)throw new dr(44);if("string"==typeof r){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===t)throw Error(`Unknown file open mode: ${r}`);r=t}if(t=64&r?33206:0,"object"==typeof a)var n=a;else{var o=a.endsWith("/");n=(a=mr(a,{ib:!(131072&r),Qb:!0})).node,a=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new dr(20)}else{if(o)throw new dr(31);n=Sr(a,511|t,0),i=!0}if(!n)throw new dr(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new dr(54);if(!i&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==$r(r)||576&r)?31:Ar(n,$r(r)):44))throw new dr(o);if(512&r&&!i){if(16384==(61440&(o="string"==typeof(o=n)?mr(o,{ib:!0}).node:o).mode))throw new dr(31);if(32768!=(61440&o.mode))throw new dr(28);var s=Ar(o,"w");if(s)throw new dr(s);Er(o,{size:0,timestamp:Date.now()})}r&=-131713;a:for(o=n;;){if(o===o.parent){o=o.Ja.wb;var u=u?"/"!==o[o.length-1]?`${o}/${u}`:o+u:o;break a}u=u?`${o.name}/${u}`:o.name,o=o.parent}if(u={node:n,path:u,flags:r,seekable:!0,position:0,qa:n.qa,Yb:[],error:!1},o=-1,u=Object.assign(new pr,u),-1==o)a:{for(o=0;4096>=o;o++)if(!ur[o])break a;throw new dr(33)}u.Pa=o,ur[o]=u,u.qa.open&&u.qa.open(u),i&&(t&=511,Er(n="string"==typeof n?mr(n,{ib:!0}).node:n,{mode:4095&t|-4096&n.mode,za:Date.now(),hc:void 0})),!e.logReadFiles||1&r||a in wr||(wr[a]=1)}function qr(a,r,t){if(null===a.Pa)throw new dr(8);if(!a.seekable||!a.qa.Fa)throw new dr(70);if(0!=t&&1!=t&&2!=t)throw new dr(28);a.position=a.qa.Fa(a,r,t),a.Yb=[]}function Ir(a,r,t){a=Qa("/dev/"+a);var e=((a,r)=>{var t=0;return a&&(t|=365),r&&(t|=146),t})(!!r,!!t);Ir.ub??(Ir.ub=64);var n=Ir.ub++<<8;Or(n,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,t,e,n){for(var o=0,i=0;i<n;i++){try{var s=r()}catch(a){throw new dr(29)}if(void 0===s&&0===o)throw new dr(6);if(null==s)break;o++,t[e+i]=s}return o&&(a.node.Na=Date.now()),o},write(a,r,e,n){for(var o=0;o<n;o++)try{t(r[e+o])}catch(a){throw new dr(29)}return n&&(a.node.Da=a.node.za=Date.now()),o}}),jr(a,e,n)}var Br,Mr={},zr={},Ur=a=>{if(!(a instanceof T||"unwind"==a))throw a},Nr=a=>{throw s=a,R||0<_a||(e.onExit?.(a),C=!0),new T(a)},Fr=[],Lr={},Wr=a=>{var r;return(r=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(a))?+r[1]:(r=/:(\d+):\d+(?:\)|$)/.exec(a))?2147483648|+r[1]:0},_r=a=>{for(var r of a)(a=Wr(r))&&(Lr[a]=r)},Hr=a=>{if(!(a=Lr[a]))return 0;var r;if(r=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(a))r=r[1];else if(r=/^\s+at (.*) \(.*\)$/.exec(a))r=r[1];else{if(!(r=/^(.+?)@/.exec(a)))return 0;r=r[1]}Qr(Hr.Ab??0),a=Hr;var t=Ra(r)+1,e=Vr(t);return e&&Da(r,h,e,t),a.Ab=e,Hr.Ab},Gr={},Jr=()=>{if(!Br){var a,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(a in Gr)void 0===Gr[a]?delete r[a]:r[a]=Gr[a];var t=[];for(a in r)t.push(`${a}=${r[a]}`);Br=t}return Br};if((()=>{let a=Y.prototype;Object.assign(a,{isAliasOf:function(a){if(!(this instanceof Y&&a instanceof Y))return!1;var r=this.ma.ta.na,t=this.ma.ra;a.ma=a.ma;var e=a.ma.ta.na;for(a=a.ma.ra;r.ya;)t=r.Xa(t),r=r.ya;for(;e.ya;)a=e.Xa(a),e=e.ya;return r===e&&t===a},clone:function(){if(this.ma.ra||J(this),this.ma.Va)return this.ma.count.value+=1,this;var a=Q,r=Object,t=r.create,e=Object.getPrototypeOf(this),n=this.ma;return(a=a(t.call(r,e,{ma:{value:{count:n.count,Sa:n.Sa,Va:n.Va,ra:n.ra,ta:n.ta,xa:n.xa,Ba:n.Ba}}}))).ma.count.value+=1,a.ma.Sa=!1,a},delete(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");V(this);var a=this.ma;--a.count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra)),this.ma.Va||(this.ma.xa=void 0,this.ma.ra=void 0)},isDeleted:function(){return!this.ma.ra},deleteLater:function(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");return this.ma.Sa=!0,this}});const r=Symbol.dispose;r&&(a[r]=a.delete)})(),Object.assign(ha.prototype,{Ib(a){return this.yb&&(a=this.yb(a)),a},qb(a){this.Ha?.(a)},Ea:M,sa:function(a){function r(){return this.ab?la(this.na.La,{ta:this.Rb,ra:t,Ba:this,xa:a}):la(this.na.La,{ta:this,ra:a})}var t=this.Ib(a);if(!t)return this.qb(a),null;var e=((a,r)=>{if(void 0===r)throw new _("ptr should not be undefined");for(;a.ya;)r=a.Xa(r),a=a.ya;return fa[r]})(this.na,t);if(void 0!==e)return 0===e.ma.count.value?(e.ma.ra=t,e.ma.xa=a,e.clone()):(e=e.clone(),this.qb(a),e);if(e=this.na.Hb(t),!(e=Z[e]))return r.call(this);e=this.$a?e.Eb:e.pointerType;var n=ua(t,this.na,e.na);return null===n?r.call(this):this.ab?la(e.na.La,{ta:e,ra:n,Ba:this,xa:a}):la(e.na.La,{ta:e,ra:n})}}),lr=Array(4096),Tr(or,"/"),Pr("/tmp"),Pr("/home"),Pr("/home/web_user"),function(){Pr("/dev"),Or(259,{read:()=>0,write:(a,r,t,e)=>e,Fa:()=>0}),jr("/dev/null",259),rr(1280,er),rr(1536,nr),jr("/dev/tty",1280),jr("/dev/tty1",1536);var a=new Uint8Array(1024),r=0,t=()=>(0===r&&(Xa(a),r=a.byteLength),a[--r]);Ir("random",t),Ir("urandom",t),Pr("/dev/shm"),Pr("/dev/shm/tmp")}(),function(){Pr("/proc");var a=Pr("/proc/self");Pr("/proc/self/fd"),Tr({Ja(){var r=gr(a,"fd",16895,73);return r.qa={Fa:or.qa.Fa},r.pa={Ua(a,r){var t=kr(a=+r);return(a={parent:null,Ja:{wb:"fake"},pa:{Wa:()=>t.path},id:a+1}).parent=a},ob:()=>Array.from(ur.entries()).filter(([,a])=>a).map(([a])=>a.toString())},r}},"/proc/self/fd")}(),e.noExitRuntime&&(R=e.noExitRuntime),e.print&&($=e.print),e.printErr&&(A=e.printErr),e.wasmBinary&&(i=e.wasmBinary),e.thisProgram&&(n=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.shift()();var Kr,Vr,Qr,Yr,Xr,Zr,at,rt,tt={212700:()=>"undefined"!=typeof wasmOffsetConverter},et={U:function(){return"undefined"!=typeof wasmOffsetConverter},n:(a,r,t)=>{var e=new q(a);throw p[e.ra+16>>2]=0,p[e.ra+4>>2]=r,p[e.ra+8>>2]=t,a},Q:()=>x(""),r:a=>{var r=I[a];delete I[a];var t=r.nb,e=r.Ha,n=r.rb,o=n.map(a=>a.Lb).concat(n.map(a=>a.Vb));L([a],o,a=>{var o={};return n.forEach((r,t)=>{var e=a[t],i=r.Jb,s=r.Kb,u=a[t+n.length],f=r.Ub,l=r.Wb;o[r.Gb]={read:a=>e.sa(i(s,a)),write:(a,r)=>{var t=[];f(l,a,u.wa(t,r)),B(t)},optional:a[t].optional}}),[{name:r.name,sa:a=>{var r,t={};for(r in o)t[r]=o[r].read(a);return e(a),t},wa:(a,r)=>{for(var n in o)if(!(n in r)&&!o[n].optional)throw new TypeError(`Missing field: "${n}"`);var i=t();for(n in o)o[n].write(i,r[n]);return null!==a&&a.push(e,i),i},Ea:M,Aa:e}]})},E:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(e=0n===e){const a=8*t;o=r=>BigInt.asUintN(a,r),n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>("number"==typeof r&&(r=BigInt(r)),r),Ea:G(r,t,!e),Aa:null})},ba:(a,r,t,e)=>{H(a,{name:r=W(r),sa:function(a){return!!a},wa:function(a,r){return r?t:e},Ea:function(a){return this.sa(h[a])},Aa:null})},e:(a,r,t,e,n,o,i,s,u,f,l,h,c)=>{l=W(l),o=da(n,o),s&&=da(i,s),f&&=da(u,f),c=da(h,c);var w=(a=>{var r=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${a}`:a})(l);ra(w,function(){ma(`Cannot construct ${l} due to unbound types`,[e])}),L([a,r,t],e?[e]:[],r=>{if(r=r[0],e)var t=r.na,n=t.La;else n=Y.prototype;r=X(l,function(...a){if(Object.getPrototypeOf(this)!==i)throw new _(`Use 'new' to construct ${l}`);if(void 0===h.Oa)throw new _(`${l} has no accessible constructor`);var r=h.Oa[a.length];if(void 0===r)throw new _(`Tried to invoke ctor of ${l} with invalid number of parameters (${a.length}) - expected (${Object.keys(h.Oa).toString()}) parameters instead!`);return r.apply(this,a)});var i=Object.create(n,{constructor:{value:r}});r.prototype=i;var u,h=new ta(l,r,i,c,t,o,s,f);return h.ya&&((u=h.ya).Ya??(u.Ya=[]),h.ya.Ya.push(h)),t=new ha(l,h,!0,!1,!1),u=new ha(l+"*",h,!1,!1,!1),n=new ha(l+" const*",h,!1,!0,!1),Z[a]={pointerType:u,Eb:n},ca(w,r),[t,u,n]})},v:(a,r,t,e,n,o,i)=>{var s=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,s)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=a.na.constructor;return void 0===u[r]?(e.Ma=t-1,u[r]=e):(aa(u,r,n),u[r].ua[t-1]=e),L([],s,e=>{if(e=ba(n,[e[0],null].concat(e.slice(1)),null,o,i),void 0===u[r].ua?(e.Ma=t-1,u[r]=e):u[r].ua[t-1]=e,a.na.Ya)for(const t of a.na.Ya)t.constructor.hasOwnProperty(r)||(t.constructor[r]=e);return[]}),[]})},g:(a,r,t,e,n,o)=>{var i=ya(r,t);n=da(e,n),L([],[a],a=>{var t=`constructor ${(a=a[0]).name}`;if(void 0===a.na.Oa&&(a.na.Oa=[]),void 0!==a.na.Oa[r-1])throw new _(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.na.Oa[r-1]=()=>{ma(`Cannot construct ${a.name} due to unbound types`,i)},L([],i,e=>(e.splice(1,0,null),a.na.Oa[r-1]=ba(t,e,null,n,o),[])),[]})},b:(a,r,t,e,n,o,i,s)=>{var u=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,u)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&a.na.Sb.push(r);var f=a.na.La,l=f[r];return void 0===l||void 0===l.ua&&l.className!==a.name&&l.Ma===t-2?(e.Ma=t-2,e.className=a.name,f[r]=e):(aa(f,r,n),f[r].ua[t-2]=e),L([],u,e=>(e=ba(n,e,a,o,i),void 0===f[r].ua?(e.Ma=t-2,f[r]=e):f[r].ua[t-2]=e,[])),[]})},c:(a,r,t,e,n,o,i,s,u,f)=>{r=W(r),n=da(e,n),L([],[a],a=>{var e=`${(a=a[0]).name}.${r}`,l={get(){ma(`Cannot access ${e} due to unbound types`,[t,i])},enumerable:!0,configurable:!0};return l.set=u?()=>ma(`Cannot access ${e} due to unbound types`,[t,i]):()=>{throw new _(e+" is a read-only property")},Object.defineProperty(a.na.La,r,l),L([],u?[t,i]:[t],t=>{var i=t[0],l={get(){var r=$a(this,a,e+" getter");return i.sa(n(o,r))},enumerable:!0};if(u){u=da(s,u);var h=t[1];l.set=function(r){var t=$a(this,a,e+" setter"),n=[];u(f,t,h.wa(n,r)),B(n)}}return Object.defineProperty(a.na.La,r,l),[]}),[]})},_:a=>H(a,Oa),m:(a,r,t,e)=>{function n(){}r=W(r),n.values={},H(a,{name:r,constructor:n,sa:function(a){return this.constructor.values[a]},wa:(a,r)=>r.value,Ea:Ta(r,t,e),Aa:null}),ra(r,n)},d:(a,r,t)=>{var e=Sa(a,"enum");r=W(r),a=e.constructor,e=Object.create(e.constructor.prototype,{value:{value:t},constructor:{value:X(`${e.name}_${r}`,function(){})}}),a.values[t]=e,a[r]=e},D:(a,r,t)=>{H(a,{name:r=W(r),sa:a=>a,wa:(a,r)=>r,Ea:Pa(r,t),Aa:null})},da:(a,r,t,e,n,o)=>{var i=ya(r,t);a=W(a),a=ga(a),n=da(e,n),ra(a,function(){ma(`Cannot call ${a} due to unbound types`,i)},r-1),L([],i,t=>(ca(a,ba(a,[t[0],null].concat(t.slice(1)),null,n,o),r-1),[]))},w:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(0===e){var i=32-8*t;o=a=>a<<i>>>i,n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>r,Ea:G(r,t,0!==e),Aa:null})},o:(a,r,t)=>{function e(a){return new n(l.buffer,p[a+4>>2],p[a>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];H(a,{name:t=W(t),sa:e,Ea:e},{Mb:!0})},t:a=>{H(a,ja)},k:(a,r,t,e,n,o,i,s,u,f,l,h)=>{t=W(t),o=da(n,o),s=da(i,s),f=da(u,f),h=da(l,h),L([a],[r],a=>(a=a[0],[new ha(t,a.na,!1,!1,!0,a,e,o,s,f,h)]))},aa:(a,r)=>{H(a,{name:r=W(r),sa(a){var r=(r=a+4)?Ba(h,r,p[a>>2],!0):"";return Qr(a),r},wa(a,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t="string"==typeof r;if(!(t||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT))throw new _("Cannot pass non-string to std::string");var e=t?Ra(r):r.length,n=Vr(4+e+1),o=n+4;return p[n>>2]=e,t?Da(r,h,o,e+1):h.set(r,o),null!==a&&a.push(Qr,n),n},Ea:M,Aa(a){Qr(a)}})},A:(a,r,t)=>{if(t=W(t),2===r)var e=za,n=Ua,o=Na;else e=Fa,n=La,o=Wa;H(a,{name:t,sa:a=>{var t=e(a+4,p[a>>2]*r,!0);return Qr(a),t},wa:(a,e)=>{if("string"!=typeof e)throw new _(`Cannot pass non-string to C++ string type ${t}`);var i=o(e),s=Vr(4+i+r);return p[s>>2]=i/r,n(e,s+4,i+r),null!==a&&a.push(Qr,s),s},Ea:M,Aa(a){Qr(a)}})},s:(a,r,t,e,n,o)=>{I[a]={name:W(r),nb:da(t,e),Ha:da(n,o),rb:[]}},l:(a,r,t,e,n,o,i,s,u,f)=>{I[a].rb.push({Gb:W(r),Lb:t,Jb:da(e,n),Kb:o,Vb:i,Ub:da(s,u),Wb:f})},ca:(a,r)=>{H(a,{Nb:!0,name:r=W(r),sa:()=>{},wa:()=>{}})},I:()=>{R=!1,_a=0},i:(a,r,t)=>{var[e,...n]=((a,r)=>{for(var t=Array(a),e=0;e<a;++e)t[e]=Sa(p[r+4*e>>2],`parameter ${e}`);return t})(a,r),o=e.wa.bind(e),i=n.map(a=>a.Ea.bind(a));a--;var s=Array(a);return r=`methodCaller<(${n.map(a=>a.name)}) => ${e.name}>`,(a=>{var r=Ha.length;return Ha.push(a),r})(X(r,(r,e,n,u)=>{for(var f=0,l=0;l<a;++l)s[l]=i[l](u+f),f+=8;switch(t){case 0:var h=Ea(r).apply(null,s);break;case 2:h=Reflect.construct(Ea(r),s);break;case 3:h=s[0];break;case 1:h=Ea(r)[Ja(e)](...s)}return h=o(r=[],h),r.length&&(p[n>>2]=xa(r)),h}))},a:ka,W:a=>a?(a=Ja(a),xa(globalThis[a])):xa(globalThis),q:(a,r)=>(a=Ea(a),r=Ea(r),xa(a[r])),f:a=>{9<a&&(Ca[a+1]+=1)},$:(a,r)=>(a=Ea(a))instanceof Ea(r),j:Ka,Z:Ka,u:a=>"number"==typeof(a=Ea(a)),x:a=>"string"==typeof(a=Ea(a)),F:()=>xa([]),p:a=>xa(Ja(a)),h:a=>{var r=Ea(a);B(r),ka(a)},z:a=>(a=Ea(a),xa(typeof a)),G:(a,r)=>{if(zr[a]&&(clearTimeout(zr[a].id),delete zr[a]),!r)return 0;var t=setTimeout(()=>{delete zr[a],(a=>{if(!C)try{if(a(),!(R||0<_a))try{s=a=s,Nr(a)}catch(a){Ur(a)}}catch(a){Ur(a)}})(()=>Xr(a,performance.now()))},r);return zr[a]={id:t,qc:r},0},S:(a,r,t,e)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),p[a>>2]=60*Math.max(o,n),d[r>>2]=Number(o!=n),a=(r=a=>{var r=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(o),r=r(n),n<o?(Da(a,h,t,17),Da(r,h,e,17)):(Da(a,h,e,17),Da(r,h,t,17))},P:function(a,r,t){return 0<=a&&3>=a?(b[t>>3]=BigInt(Math.round(1e6*(0===a?Date.now():performance.now()))),0):28},Y:(a,r,t)=>{Fr.length=0;for(var e;e=h[r++];){var n=105!=e;t+=(n&=112!=e)&&t%8?4:0,Fr.push(112==e?p[t>>2]:106==e?b[t>>3]:105==e?d[t>>2]:m[t>>3]),t+=n?8:4}return tt[a](...Fr)},C:(a,r)=>A(a?Ba(h,a,r):""),y:()=>performance.now(),T:Hr,H:a=>{var r=h.length;if(2147483648<(a>>>=0))return!1;for(var t=1;4>=t;t*=2){var e=r*(1+.2/t);e=Math.min(e,a+100663296);a:{e=(Math.min(2147483648,65536*Math.ceil(Math.max(a,e)/65536))-Zr.buffer.byteLength+65535)/65536|0;try{Zr.grow(e),E();var n=1;break a}catch(a){}n=void 0}if(n)return!0}return!1},X:()=>{var a=Error().stack.toString().split("\n");return"Error"==a[0]&&a.shift(),_r(a),Lr.tb=Wr(a[3]),Lr.Ob=a,Lr.tb},V:(a,r,t)=>{if(Lr.tb==a)var e=Lr.Ob;else"Error"==(e=Error().stack.toString().split("\n"))[0]&&e.shift(),_r(e);for(var n=3;e[n]&&Wr(e[n])!=a;)++n;for(a=0;a<t&&e[a+n];++a)d[r+4*a>>2]=Wr(e[a+n]);return a},K:(a,r)=>{var t,e=0,n=0;for(t of Jr()){var o=r+e;p[a+n>>2]=o,e+=Da(t,h,o,1/0)+1,n+=4}return 0},L:(a,r)=>{var t=Jr();for(var e of(p[a>>2]=t.length,a=0,t))a+=Ra(e)+1;return p[r>>2]=a,0},B:a=>{s=a,Nr(a)},O:function(a){try{var r=kr(a);if(null===r.Pa)throw new dr(8);r.kb&&(r.kb=null);try{r.qa.close&&r.qa.close(r)}catch(a){throw a}finally{ur[r.Pa]=null}return r.Pa=null,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},N:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(1==(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.read)throw new dr(28);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.read(f,d,h,c,w);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},J:function(a,r,t,e){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var n=kr(a);return qr(n,r,t),b[e>>3]=BigInt(n.position),n.kb&&0===r&&0===t&&(n.kb=null),0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},M:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(!(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.write)throw new dr(28);f.seekable&&1024&f.flags&&qr(f,0,2);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.write(f,d,h,c,w,void 0);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},R:Nr};return rt=await async function(){function a(a){return a=rt=a.exports,Kr=a.ga,Vr=a.ha,Qr=a.ia,Yr=a.ka,Xr=a.la,Zr=a.ea,at=a.ja,E(),rt}var r={a:et};return e.instantiateWasm?new Promise(t=>{e.instantiateWasm(r,(r,e)=>{t(a(r))})}):(g??=e.locateFile?e.locateFile("arcgis-knowledge-client-core.wasm",o):o+"arcgis-knowledge-client-core.wasm",a((await async function(a){var r=g;if(!i)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,a)}catch(a){A(`wasm streaming compile failed: ${a}`),A("falling back to ArrayBuffer instantiation")}return async function(a,r){try{var t=await O(a);return await WebAssembly.instantiate(t,r)}catch(a){A(`failed to asynchronously prepare wasm: ${a}`),x(a)}}(r,a)}(r)).instance))}(),function(){function a(){if(e.calledRun=!0,!C){var a,r;if(k=!0,e.noFSInit||hr||(hr=!0,a??=e.stdin,r??=e.stdout,t??=e.stderr,a?Ir("stdin",a):Dr("/dev/tty","/dev/stdin"),r?Ir("stdout",null,r):Dr("/dev/tty","/dev/stdout"),t?Ir("stderr",null,t):Dr("/dev/tty1","/dev/stderr"),Rr("/dev/stdin",0),Rr("/dev/stdout",1),Rr("/dev/stderr",1)),rt.fa(),cr=!1,u?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();P.push(t)}S(P)}}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)D();S(j),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),a()},1)):a()}(),k?e:new Promise((a,r)=>{u=a,f=r})},a.exports=t,a.exports.default=t),o.exports;var a,r,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8969],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>c});var i=n(92602),s=n(70333),r=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function c(e,t,n){const i={};for(const s in e){if("declaredClass"===s)continue;const r=e[s];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))i[s]=r.map(e=>c(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(n?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?r:JSON.stringify(r);else i[s]=r}return i}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!s.id&&i.A.request.useIdentity&&await Promise.all([n.e(7330),n.e(168),n.e(148)]).then(n.bind(n,50148));const l=await s.id.getCredential(e,r);return l?.token}},6518:(e,t,n)=>{n.d(t,{F:()=>a});var i=n(44208),s=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8631:(e,t,n)=>{n.d(t,{rS:()=>d,gK:()=>h}),n(44208);var i,s=n(53177),r=n(76357),o=n(31635),a=n(91429),l=n(93223);let u=class extends r.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const h={key:"type",base:r.A,typeMap:{range:c.A,"coded-value":s.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return s.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},13043:(e,t,n)=>{function i(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&i(n,t)}else i(n,e)}}function*s(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*s(n,e)}}n.d(t,{i:()=>s,p:()=>i})},20437:(e,t,n)=>{n.d(t,{A:()=>m});var i,s=n(31635),r=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(8631),c=n(98453),h=n(36005),d=n(93223);const p=new r.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,s.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,s.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,s.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,s.Cg)([(0,a.MZ)({types:u.gK,json:{read:{reader:u.rS},write:!0}})],m.prototype,"domain",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,s.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,s.Cg)([(0,d.e)(c.m)],m.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,s.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},33771:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var i=n(60999),s=n(49186),r=n(53966),o=n(34727),a=n(74887),l=n(67076),u=n(21325),c=n(90708),h=n(83221),d=n(31464),p=n(56390),m=n(85113),f=n(82832),y=n(34322),g=n(95466),_=n(54218),b=n(98623);const w="esri.layers.WFSLayer";class x{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){const{getFeatureUrl:n,getFeatureOutputFormat:i,fields:r,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:c,maxPageCount:m,objectIdField:f,customParameters:_}=e,{spatialReference:w,getFeatureSpatialReference:x}=(0,y.UH)(n,l,e.spatialReference);try{await(0,d.Nk)(x,w)}catch{throw new s.A("unsupported-projection","Projection not supported",{inSpatialReference:x,outSpatialReference:w})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:r,dateFieldsTimeReference:r.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:b.n$}:null}),this._geometryType=o,this._getFeatureUrl=n,this._getFeatureOutputFormat=i,this._getFeatureSpatialReference=x,this._maxRecordCount=u,this._maxTotalRecordCount=c,this._maxPageCount=m,this._objectIdField=f,this._spatialReference=w;let C=await this._snapshotFeatures(t);if(C.errors.length>0&&(this._supportsPagination=!1,C=await this._snapshotFeatures(t),C.errors.length>0))throw C.errors[0];const v={type:"object-id",fieldName:f};return this._queryEngine=new p.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:v,spatialReference:w,timeInfo:null,featureStore:new h.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(C.features),{warnings:S(C),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new s.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,i.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(const t of S(e))r.A.getLogger(w).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&r.A.getLogger(w).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){const t=e?.signal,n=this._maxTotalRecordCount,i=this._maxPageCount,s=this._supportsPagination&&i>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0;let r=[];const l=[];if(null==s)try{r=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{const e=Math.min(s,n),u=function*(e,t,n){for(let i=0;i<t;i++)yield e._pageQuery(i,n)}(this,(0,o.qE)(Math.ceil(e/this._maxRecordCount),1,i),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,n){let i=e.next();for(;!i.done;){try{const e=await i.value;t.push(...e)}catch(e){(0,a.zf)(e)||n.push(e)}i=e.next()}}(u,r,l)))}return(0,a.Te)(t),{features:r,totalRecordCount:s,maxTotalRecordCount:n,maxPageCount:i,errors:l}}async _singleQuery(e){const t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(n,{signal:e})}async _pageQuery(e,t){const n=e*this._maxRecordCount,i=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:n,count:this._maxRecordCount,signal:t});return this._processGeoJSON(i,{startIndex:n,signal:t})}_processGeoJSON(e,t){(0,m.sO)(e,this._getFeatureSpatialReference.wkid);const{startIndex:n,signal:i}=t;(0,a.Te)(i);const s=(0,m.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(const e of s)null!=e.geometry&&(e.geometry=(0,c.Ux)((0,d.Cv)((0,c.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let r=n??1;for(const e of s){const t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,null==t[this._objectIdField]&&(e.objectId=t[this._objectIdField]=r++)}return s}}function S(e){const t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},34322:(e,t,n)=>{n.d(t,{E:()=>X,Fu:()=>I,O8:()=>k,UH:()=>$,YW:()=>j,i5:()=>b,mG:()=>N,x$:()=>Y});var i=n(11254),s=n(49186),r=n(5479),o=n(84952),a=n(5443),l=n(91218),u=n(16930),c=n(21325),h=n(50498),d=n(85113),p=n(13043),m=n(60694),f=n(20437),y=n(30524);const g="xlink:href",_="2.0.0",b="__esri_wfs_id__",w="wfs-layer:getWFSLayerTypeInfo-error",x="wfs-layer:empty-service",S="wfs-layer:feature-type-not-found",C="wfs-layer:geojson-not-supported",v="wfs-layer:kvp-encoding-not-supported",T="wfs-layer:malformed-json",F="wfs-layer:unknown-geometry-type",M="wfs-layer:unknown-field-type",A="wfs-layer:unsupported-spatial-reference",R="wfs-layer:unsupported-wfs-version";async function I(e,t){const n=function(e){const t=V(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new s.A(R,`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),U(t);const n=t.firstElementChild,i=(0,r.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:i}=D(e.textContent);t.typeName=`${i}:${n}`,t.name=n,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,i,s;for(const r of e.children)switch(r.localName){case"LowerCorner":[t,n]=r.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[i,s]=r.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:c.KK}}(e))},DefaultCRS:e=>{const i=z(e);i&&(t.defaultSpatialReference=i,n.add(i))},OtherCRS:e=>{const t=z(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:P(n),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,n),n}const E=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function B(e){for(const t of E){const n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function P(e){let t=!0;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],r=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&r.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=B(r)??B(i),!t)throw new s.A(v,"WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new s.A(C,"WFS service doesn't support GeoJSON output format");return n}function z(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function N(e,t,n){return(0,r.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function k(e,t,n,i={}){const{featureType:r,extent:o}=await async function(e,t,n,i={}){const r=e.readFeatureTypes(),o=t?N(r,t,n):r.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new s.A(S,`The type '${t}' could not be found in the service`):new s.A(x,"The service is empty");let h=o.extent;if(h&&!(0,c.aI)(h.spatialReference,a))try{await(0,l.initializeProjection)(h.spatialReference,a,void 0,i),h=(0,l.project)(h,a)}catch{throw new s.A(A,"Projection not supported")}return{extent:h,spatialReference:a,featureType:o}}(e,t,n,i),{spatialReference:a}=$(e.operations.GetFeature.url,r,i.spatialReference),{fields:h,geometryType:d,swapXY:p,objectIdField:m,geometryField:f}=await async function(e,t,n,i={}){const{typeName:r}=t,[o,a]=await Promise.allSettled([q(e.operations.DescribeFeatureType.url,r,i),O(e,r,n,i)]),l=e=>new s.A(w,`An error occurred while getting info about the feature type '${r}'`,{error:e});if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=o.value??{},h=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==h)throw new s.A(F,`The geometry type could not be determined for type '${r}`,{typeName:r,geometryType:h,fields:u,errors:c});return{...j(u??[]),geometryType:h,swapXY:d}}(e,r,a,i);return{url:e.operations.GetCapabilities.url,name:r.name,namespaceUri:r.namespaceUri,fields:h,geometryField:f,geometryType:d,objectIdField:m,spatialReference:i.spatialReference??new u.A({wkid:r.defaultSpatialReference}),extent:o,swapXY:p,wfsCapabilities:e,customParameters:i.customParameters}}function j(e){const t=e.find(e=>"geometry"===e.type);let n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new f.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function O(e,t,n,s={}){let r,o=!1;const[a,l]=await Promise.all([Y(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...s,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:L(t,n,void 0,{...s,count:1}),signal:s?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(r=h.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),i=e[1].toFixed(3),s=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&i===s&&(o=!0)}}return{geometryType:r,swapXY:o}}async function q(e,t,n){return function(e,t){const{name:n}=D(e),i=V(t);U(i);const o=(0,r.I6)((0,p.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=o){const e=o.getAttribute("type"),t=e?(0,r.I6)((0,p.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===D(e).name):(0,r.I6)((0,p.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],n=[];let i;const r=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of r){const r=o.getAttribute("name");if(!r)continue;let a,l;if(o.hasAttribute("type")?a=D(o.getAttribute("type")).name:(0,p.p)(o,{simpleType:{restriction:e=>(a=D(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new f.A({name:r,alias:r,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new f.A({name:r,alias:r,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new f.A({name:r,alias:r,type:"string",nullable:u,length:l??(0,y._b)("string")}));break;case"datetime":case"date":n.push(new f.A({name:r,alias:r,type:"date",nullable:u,length:l??(0,y._b)("date")}));break;case"pointpropertytype":i="point",c=!0;break;case"multipointpropertytype":i="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new s.A(F,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new s.A(M,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new f.A({name:r,alias:r,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&G.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:n,errors:t}}(t)}throw new s.A(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const G=new Set(["objectid","fid"]);async function Y(e,t,n,r,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:L(t,n,r,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new s.A(T,"Error while parsing the response",{response:a,error:e})}}function L(e,t,n,i){const s="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+s,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function X(e,t,n){const s=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),r=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(s.data);if(r?.groups)return+r.groups.numberMatched}function V(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function D(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function U(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new s.A(`wfs-layer:${t}`,n)}function $(e,t,n){const i={wkid:t.defaultSpatialReference},s=null!=n?.wkid?{wkid:n.wkid}:i;return{spatialReference:s,getFeatureSpatialReference:(0,m.Fi)(e)||s.wkid&&t.supportedSpatialReferences.includes(s.wkid)?{wkid:s.wkid}:{wkid:t.defaultSpatialReference}}}},36708:(e,t,n)=>{n.d(t,{C_:()=>d,OH:()=>f,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),s=n(36563),r=n(97768),o=n(74887),a=n(14012);function l(e,t,n={}){return c(e,t,n,p)}function u(e,t,n={}){return c(e,t,n,m)}function c(e,t,n={},i){let s=null;const o=n.once?(e,n)=>{i(e)&&((0,r.xt)(s),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(s=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return s}function h(e,t,n,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(c),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,s.hA)(()=>{p.remove(),h()}),c}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((i,r)=>{a=(0,s.vE)([(0,o.u7)(n,()=>{l(),r((0,o.NK)())}),c(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37730:(e,t,n)=>{n.d(t,{T:()=>s});var i=n(43334);const s={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new i.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},39357:(e,t,n)=>{n.d(t,{H:()=>a});var i,s=n(31635),r=n(25482),o=n(91429);let a=i=class extends r.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628:(e,t,n)=>{n.d(t,{A:()=>l});var i,s=n(31635),r=n(91429),o=n(76357),a=n(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s.Cg)([(0,r.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,s.Cg)([(0,r.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,s.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,s.Cg)([(0,r.$K)("esri.layers.support.RangeDomain")],l)},50498:(e,t,n)=>{n.d(t,{Ye:()=>h,gy:()=>c,yR:()=>d});var i=n(66552),s=n(5443),r=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:r.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},53177:(e,t,n)=>{n.d(t,{A:()=>c});var i,s=n(31635),r=n(4718),o=n(91429),a=n(39357),l=n(76357),u=n(93223);let c=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,r.o8)(this.codedValues),name:this.name})}};(0,s.Cg)([(0,o.MZ)({type:[a.H],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,s.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},60999:(e,t,n)=>{n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>c,UT:()=>f,aD:()=>g,jJ:()=>u});var i=n(31635),s=n(69622),r=n(97768),o=n(74887),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function m(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},66344:(e,t,n)=>{n.d(t,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,n,s,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(n,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const s=e.lifetime;n[s]=(n[s]||0)+e.size,this._users.forEach(n=>{const{id:s,name:r}=n;if(i.startsWith(s)){const n=t[r]||0;t[r]=n+e.size}})});const i={};this._users.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[n]||0;t[n]=s,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const s=Object.keys(t);s.sort((e,n)=>t[n]-t[e]),s.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const s=this._users.get(e.split(o)[0])?.removeFunc,r=s?.(t,i,n);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let s=!0;for(;s;){s=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!i||r.startsWith(i))){const i=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,i),n.size<=.9*e)return;s||=this._db.has(r)}}for(const[s,r]of this._db)if(!i||s.startsWith(i)){const i=t??this._users.get(s.split(o)[0]);if(this._purgeItem(s,r,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class r{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new s,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482:(e,t,n)=>{function i(e){return null!=a(e)||null!=o(e)}function s(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!u.test(e[i]),i++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,i=+n.year,s=+n.month-1,r=+n.day,o=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(i,s,r,o,a,u,h);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,s,r,o,a,u,h)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>s,Cq:()=>i,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},69540:(e,t,n)=>{n.d(t,{OU:()=>c,Pw:()=>h});var i=n(31635),s=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let s=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,s={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,r.TU)(c,e),null!=c&&null==h)continue;0===a?l.set(t,h):s[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return s=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],s),s},h=c(s.A)},75503:(e,t,n)=>{n.d(t,{EC:()=>T,wq:()=>a});var i=n(4576),s=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),C.prune(),v.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(b(e,n))for(x.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;b(e,o)&&(n.leaf?t(r):_(e,o)?l(r,t):x.push(r))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(x.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(b(e,r)){if(t.leaf||_(e,r))return!0;x.push(s)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new M([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(C.clear(),v.clear();n||C.length>0;){if(n||(n=C.pop(),r=C.data[C.length-1],o=v.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,s.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),C.push(n),this._condense(C),this;a||n.leaf||!_(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(C.push(n),v.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new M(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new A([]);o.height=i;const a=Math.ceil(s/r),l=a*Math.ceil(Math.sqrt(r));w(e,t,n,l,this._compareMinX);for(let s=t;s<=n;s+=l){const t=Math.min(s+l-1,n);w(e,s,t,a,this._compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,i-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);C.clear();const r=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=m(o),l=y(e,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(s,this._data,t,C);for(r.children.push(e),h(r,s);t>=0&&C.data[t].children.length>this._maxEntries;)this._split(C,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(s,C,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new M(o):new A(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=m(t)+m(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,s=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=c(e,0,t,s),o=c(e,n-t,n,s);let a=f(r)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(r,e.leaf?s(t):t),a+=f(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?s(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.qh)(r,n,r.length,s.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,s.zI)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,s){s||(s=new M([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],h(s,e.leaf?i(r):r);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,i,s){const r=[t,n];for(;r.length;){const t=r.pop(),n=r.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,s),r.push(n,a,a,t)}}const x=new r.A,S=new r.A,C=new r.A,v=new r.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class M extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},76357:(e,t,n)=>{n.d(t,{A:()=>u});var i=n(31635),s=n(66552),r=n(25482),o=n(91429),a=n(93223);const l=new s.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends r.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},82832:(e,t,n)=>{n.d(t,{$1:()=>y,CR:()=>f,MB:()=>d,PC:()=>g,Yx:()=>l,bP:()=>c});var i=n(67482),s=n(21325),r=n(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const h=new Set;function d(e,t,n,i=!1){h.clear();for(const s in n){const o=e.get(s);if(!o)continue;const a=p(o,n[s]);if(h.add(o.name),o&&(i||o.editable)){const e=(0,r.CJ)(o,a);if(e)return l((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,r.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,r.vE)(e)&&"string"==typeof t&&(n=(0,i._U)(t)),(0,r.WX)(n)}let m;function f(e,t){if(!e||!(0,s.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,s.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await n.e(1023).then(n.bind(n,81023))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},83221:(e,t,n)=>{n.d(t,{A:()=>m});var i=n(4576),s=n(49186),r=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),c=n(6518),h=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,s]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:r}=e;for(const e in r)n.attributes[e]=r[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},85113:(e,t,n)=>{n.d(t,{BM:()=>T,bd:()=>F,sO:()=>v,xD:()=>h});var i=n(67482),s=n(49186),r=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const c={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return c[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],s=e[(n+1)%e.length];t+=i[0]*s[1]-s[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:i}=e,s=t.hasZ??!1,r=!0;switch(i){case"Point":return new l.A([],[...n],s,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:r},s,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:r},s,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:r},s,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],s,!1);for(const t of"Polygon"===i?[n]:n){_(e,t[0],s);for(let n=1;n<t.length;n++)b(e,t[n],s)}return e}}}function _(e,t,n){y(t),function(e){return!f(e)}(t)?x(e,t,n):w(e,t,n)}function b(e,t,n){y(t),function(e){return f(e)}(t)?x(e,t,n):w(e,t,n)}function w(e,t,n){for(const i of t)S(e,i,n);e.lengths.push(t.length)}function x(e,t,n){for(let i=t.length-1;i>=0;i--)S(e,t[i],n);e.lengths.push(t.length)}function S(e,[t,n,i],s){e.coords.push(t,n),s&&e.coords.push(i||0)}function C(e){switch(typeof e){case"string":return(0,i.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function v(e,t=4326){if(!e)throw new s.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new s.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const i="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,r.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new s.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],i=new Set,s=new Set;let r,o=!1,a=null,l=!1,{geometryType:c=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:f}=t;if((!e||(c||(c=h(e.type)),h(e.type)===c))&&(o||(o=m(p(e))),l||(l=null!=f,l&&(r=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(const e in d){if(i.has(e))continue;const t=C(d[e]);if("unknown"===t){s.add(e);continue}s.delete(e),i.add(e);const r=(0,u.rS)(e);r&&n.push({name:r,alias:e,type:t})}}const f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(const e of n)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:c,hasZ:o,objectIdFieldName:f,objectIdFieldType:r,unknownFields:Array.from(s)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const s of e){const{geometry:e,properties:r,id:o}=s;if(e&&h(e.type)!==n)continue;const l=r||{};let u;i&&(u=l[i],null==o||u||(l[i]=u=o)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},98453:(e,t,n)=>{n.d(t,{m:()=>i});const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
|