@arcgis/core 6.0.0-next.11 → 6.0.0-next.13
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/arcgisGlobal.d.ts +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/09bd5df07eab80ae7b15.js +1 -0
- package/assets/esri/core/workers/chunks/{aaba33611753c6aada68.js → 566e129f3d3805d7370a.js} +1 -1
- package/assets/esri/core/workers/chunks/{b5fdcc80d5973b6e26d1.js → 5eae5c29149f2429fe96.js} +1 -1
- package/assets/esri/core/workers/chunks/62d6e101e9bd9557a410.js +1 -0
- package/assets/esri/core/workers/chunks/67ebc5a3d46b254b725c.js +1 -0
- package/assets/esri/core/workers/chunks/{4debf2d9c3465250ef7a.js → 6dc86e7496157c5e4d2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e62581d933e7298d1f6.js → 6f4e6022a52de0c54aab.js} +1 -1
- package/assets/esri/core/workers/chunks/{45800373650fbc8262e6.js → 7d11710e1586a3d75887.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d0c2de92770a1567536.js → a4cab24af69260438ff4.js} +1 -1
- package/assets/esri/core/workers/chunks/b8337492e2b753aefac4.js +1 -0
- package/assets/esri/core/workers/chunks/{58032aab28a20a327f6c.js → d03b82e962c70a3fd377.js} +1 -1
- package/assets/esri/core/workers/chunks/e3c1c9e6c62ba5cbcdb8.js +1 -0
- package/assets/esri/core/workers/chunks/ead49b513e070951a964.js +1 -0
- package/config.js +1 -1
- package/geometry/operators/simplifyOGCOperator.d.ts +10 -4
- package/geometry/support/TileClipper.js +1 -1
- package/interfaces.d.ts +1 -1
- package/kernel.js +1 -1
- package/layers/CSVLayer.d.ts +1 -1
- package/layers/CatalogLayer.d.ts +1 -1
- package/layers/FeatureLayer.d.ts +1 -1
- package/layers/GeoJSONLayer.d.ts +1 -1
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/SceneLayer.d.ts +4 -5
- package/layers/SceneLayer.js +1 -1
- package/layers/SketchLayer.d.ts +4 -2
- package/layers/SubtypeGroupLayer.d.ts +1 -1
- package/layers/WFSLayer.d.ts +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
- package/layers/mixins/ArcGISImageService.d.ts +1 -1
- package/layers/support/FeatureFilter.d.ts +1 -1
- package/layers/support/SubtypeSublayer.d.ts +1 -1
- package/layers/support/{TimeSeriesCalculation.d.ts → TimeSeriesCalculationMethod.d.ts} +6 -6
- package/layers/support/{TimeSeriesCalculation.js → TimeSeriesCalculationMethod.js} +1 -1
- package/layers/support/TimeSeriesInfo.d.ts +5 -5
- package/layers/support/TimeSeriesInfo.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +6 -2
- package/layers/support/timeSeriesUtils.js +1 -1
- package/package.json +4 -4
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/statistics/support/timeSeriesUtils.js +1 -1
- package/symbols/cim/types.d.ts +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/projection.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/raster/Projection.glsl.js +2 -2
- package/views/layers/FeatureLikeLayerView.d.ts +1 -1
- package/views/layers/PointCloudLayerView.d.ts +1 -1
- package/views/layers/SceneLayerView.d.ts +1 -1
- package/widgets/BatchAttributeForm/attachmentUtils.d.ts +10 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +2 -0
- package/widgets/BatchAttributeForm/inputs/types.d.ts +10 -1
- package/assets/esri/core/workers/chunks/216e6065b224309e1051.js +0 -1
- package/assets/esri/core/workers/chunks/37d6a264a3f1d8072aa0.js +0 -1
- package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +0 -1
- package/assets/esri/core/workers/chunks/78472a57c2ba146fec65.js +0 -1
- package/assets/esri/core/workers/chunks/917f53833b853898facc.js +0 -1
- package/assets/esri/core/workers/chunks/d6ad4390df576198e45b.js +0 -1
package/arcgisGlobal.d.ts
CHANGED
|
@@ -518,7 +518,7 @@ export interface ArcgisImportModules {
|
|
|
518
518
|
"@arcgis/core/layers/support/TileInfo.js": typeof import("./layers/support/TileInfo.js").default;
|
|
519
519
|
"@arcgis/core/layers/support/TileMatrixSet.js": typeof import("./layers/support/TileMatrixSet.js").default;
|
|
520
520
|
"@arcgis/core/layers/support/TimeInfo.js": typeof import("./layers/support/TimeInfo.js").default;
|
|
521
|
-
"@arcgis/core/layers/support/
|
|
521
|
+
"@arcgis/core/layers/support/TimeSeriesCalculationMethod.js": typeof import("./layers/support/TimeSeriesCalculationMethod.js").default;
|
|
522
522
|
"@arcgis/core/layers/support/TimeSeriesFieldTimeMapping.js": typeof import("./layers/support/TimeSeriesFieldTimeMapping.js").default;
|
|
523
523
|
"@arcgis/core/layers/support/TimeSeriesInfo.js": typeof import("./layers/support/TimeSeriesInfo.js").default;
|
|
524
524
|
"@arcgis/core/layers/support/TrackInfo.js": typeof import("./layers/support/TrackInfo.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.11/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,eF:()=>l,eO:()=>s,io:()=>f,u3:()=>d,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Module: ${d(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;f(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;f(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function l(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function f(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-snapping-density-sample-interval",10),o.add("featurelayer-snapping-density-max-vertices-per-feature",16),o.add("featurelayer-snapping-density-max-distance",8),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>x,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",()=>t());t()}}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function x(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>S,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>x,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function S(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=S(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=x({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${x(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=x(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268);const f={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(6310)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(2258),r.e(6486)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(7552),r.e(1722),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2554),r.e(8245),r.e(5228),r.e(4690),r.e(4805),r.e(1969),r.e(6304)]).then(()=>r(59357)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2554),r.e(8245),r.e(8902)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9616)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(8747)]).then(()=>r(80188)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(2063)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(2554),r.e(7237)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(3275)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(3819),r.e(4805),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(7074),r.e(2754),r.e(9235),r.e(7031)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(7201)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(574)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(5158)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4809)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(2554),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(3299),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(893),r.e(2554),r.e(812),r.e(7074),r.e(9800),r.e(5879),r.e(8732),r.e(7772),r.e(9096)]).then(()=>r(44012))};var d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>s,Y3:()=>c,id:()=>o,ol:()=>i});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let o,i="5.2";function s(e){o=e}function c(e){let t=o?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}i="6.0.0-next.11",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"02f8654852d389583891",100:"ebbf425af348e6ede814",118:"bc0f54a2c15502b630ec",124:"fafb92ca2c5e4b0b2c23",146:"54b18559280a7d2a8d93",152:"acfa03c65ba3ca6c5685",161:"eebbde81e56d69dc602f",167:"a40b6d8b5c73e06e14d4",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"d0f5bee9db1ad51ae687",411:"1b946714ca4a1a7359d4",433:"408e81c8f1eff8a7b379",468:"bfb8fc6b940bd5510e29",491:"e4af2a1ea01df7226ace",506:"ac69c0fd5867b493f1d2",563:"1c65ab9ed611c322ce27",566:"bd812dd75d2a3d7d0441",574:"53be85d04cd2da4f391d",599:"b5fdcc80d5973b6e26d1",692:"2671035cc08027185737",737:"f3da30d7300b92bd8bb0",756:"7a8ca15271e42b6131ac",787:"bc38def1983089514e4b",788:"42eec0421e3663019549",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"9fab290090ef2ccae810",895:"481589c3eddad6e026ad",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",931:"6c9266120d46e8c69dbf",980:"cf1ec61eb2ad147bb931",994:"8cb716f110d164030309",1003:"f46d9a19f79d4a4bd354",1088:"864194927d05ebc4cc31",1132:"6558488ea96620439f34",1150:"90153b5230b3a4985c14",1204:"608be1172a908e92b9f1",1214:"4b2d392ad8e381bfd6b3",1273:"6ddc29a144640acb1192",1277:"38d852676677e5697864",1279:"916b363c342b61ba5461",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1359:"0487e1d7a7cecf7c1c25",1384:"28ed020d9995b6577be5",1484:"44d5508042cacdfcac47",1491:"06101f3da5e2fc708402",1550:"03261b9451e293a0fac8",1559:"4503b20ca6a80fb63d72",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"f1df76f098a3cc924832",1666:"8431ca60ad33d594e323",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"0ccab50877b24f862d6e",1763:"e8bf653376a607f00897",1773:"72e6d594b7262430ae55",1780:"3df5500a85345577480a",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1894:"12a08d0ad0f5fea32642",1904:"1bca39e0e651426bdbb5",1948:"a51576d84edca88e41dd",1969:"bab1d010970d98c25470",2024:"62ac588f7dd1d24d0c9d",2061:"46a7da93a63663878583",2063:"2aeb5cc32284dd3e4d22",2158:"4ba856605f711b615e4c",2174:"59b216b60464611742d4",2186:"10445313d0d57b34511b",2241:"992f102992c2bed7b34e",2258:"0b4481b57a611b15f65c",2309:"f528ac5c648ca6a98582",2343:"74b5c00f93cfc0d59029",2346:"d90a3bfd45b5ed4092e0",2372:"19676b2c5f8b0a5ee680",2387:"140f2eeb11e39ab15734",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"d247dd53788d512b9c9f",2491:"6431480ba0fa8c8d487f",2522:"3c0ed15b544df6fb0903",2554:"0c8c01097847617261b9",2558:"2b06e8507d71c4d9b5b5",2733:"5ec5a6cef9ee9a8cc400",2741:"f6e62d2d279a328cbed7",2754:"175c268e64ccd01f8c25",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2806:"e4a57a0a9629faafd6c6",2867:"611e3cdf67283c11576f",2869:"6059853ef3b6cddbe869",2889:"9401cc22373566e1171e",2938:"4a6b92ecbb1f1c55cc43",2958:"2d13a22f7b2427927fdc",2980:"62fec1816907f070f079",2990:"99a0a434ea2162166754",2994:"12c154342fff876f2f1e",2997:"ca0d4ce453d8eb35467d",3030:"f95a1f878c9c1146180e",3103:"6ebe73f69ae822053b70",3116:"2a97268000c6d03ef720",3193:"070684943698fa43c2b4",3275:"42323093827adffe56d3",3276:"1f339247b68b061ab0a4",3281:"72f716a841463e0ba23f",3299:"a655ebdb4bf0660615a2",3309:"6edc13a426e00bb93a9b",3312:"6c9266120d46e8c69dbf",3318:"1a411ddae7a47015370c",3346:"5566f14afb63065e438f",3354:"e11159e3dc3353b27c57",3359:"fc44d45598a7476bc606",3375:"5fbd7d8d8896a224fff3",3390:"9e142551163acf752618",3391:"d6ad4390df576198e45b",3394:"898359be6996fd9763b8",3456:"e2775b4b753306dc8477",3467:"4fe34da1c5d63e66ce98",3483:"7f0f9dddc44b1f1600f0",3494:"9dd1fc56eb1ea6eb705e",3500:"9e3e442a9874ed23a043",3527:"7ef182e24cad50815b4e",3543:"5788c5ab258b36c8a897",3561:"c2c1f51a4668055c2838",3571:"78472a57c2ba146fec65",3650:"fccfe3aa45a2fb286012",3666:"ac5a6603f7fa78d3e4c8",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3813:"8b0d5551978ab0aac0d1",3819:"fd9663952d5a94f3a83f",3864:"dba280c370df13196711",3902:"6400446b7615b97c3521",3910:"01803f76bc0d9f2cd566",4019:"4a640548032355e57acd",4038:"2bdd5f0e0364b9e5f52b",4051:"a8286febe371dc186aaa",4059:"5982c6a8459c1237b298",4064:"6ccf9535013fe672c93b",4144:"365825c51fad1bb7f51f",4152:"19a4fa965b70fc6f78f6",4209:"590e6c70206122e4cc3c",4297:"426b4eb500fdfe9df325",4314:"f0d0ed155275c2e6d3da",4403:"122e75b21699a4e83b15",4426:"46b4fb6a7fe4877b0efc",4548:"943a0f140813ee4ab04a",4575:"6588725275c75fae0d9c",4642:"d938987344bce83cc660",4674:"45367aa8e5c5d574de94",4690:"f92364afaefbac7e8f77",4708:"40a584cb952e94326e9e",4718:"f1f90adae13b04898008",4729:"b83cef2d3f528726d492",4780:"1e0d2715d603f48a7e0b",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4805:"0dc66b03ff55d0ea5a09",4809:"bbf993dba74850bbf9d7",4844:"37d6a264a3f1d8072aa0",4934:"af75747b06d79446a855",4945:"d51bb11baadc741c46bc",4985:"2a1ec30f9ad305763f81",4988:"6268aadb24e0b7c8d207",5077:"688f2dbf784e66082308",5128:"12b84262dedc6b393136",5141:"814751e705c05099f864",5158:"7267b17de212207142c9",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"216e6065b224309e1051",5248:"652faf4359ac072c5dde",5356:"4debf2d9c3465250ef7a",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5566:"4e8e322b469657ac22e2",5606:"88e54449261ef94e390d",5613:"aaba33611753c6aada68",5688:"567a65f4203f6e81f4b4",5740:"de5ecb567bd69c613e9d",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"7e0f04a5038e2a4f6e4b",5853:"939942b00ba380e2957e",5856:"bca6b469940b7b954123",5864:"c337fc0e6dc69c233e6d",5879:"444e5f214abce3d607cd",5902:"18d47ab571b613fbe719",5952:"45800373650fbc8262e6",5992:"76196c414e48834f7b92",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"7c2c8f786a30267a5f05",6070:"89e76de5ae3328d821a4",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"6e107ce73633de8ac257",6187:"01a24ae6e3d730e193e2",6247:"5b1cebae74c7214ccda9",6263:"4e544de61f07ca660236",6304:"3f7d583b676b23b3fadb",6310:"02253bdffbd580af22d8",6361:"2226c20c38e20713bcb5",6377:"709e019885822b1f6f3e",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"ec8b7476eac4718eb0ac",6486:"9ce91a909eccc4dfe388",6491:"067de1910190da228291",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"745a153d0cd34faa124e",6650:"3415531224f8494d79ca",6671:"aff32980d91dab07dfb7",6684:"261fea092ee7d27608a0",6742:"1eaaa896eea3f2ffe6a6",6810:"1f9d6180a96d557838e9",6811:"a518ae5683367eeda74c",6854:"daf9b691817e83a11f3c",6870:"efff269424d76f1dbb15",6875:"4a1e23e021bac37a88ab",6884:"3b3e519f15ed52c83f0c",6892:"dc486a3595b6d57018bb",6930:"557671c897ca5563be6c",6936:"05cd33d41d91f8d09633",6956:"fecaf0bc28aeea4d15db",7005:"42045cf46497828cd3c0",7013:"3d9d7d3a40b51eb7ee3d",7029:"aa8ab28e0c1ae3b55ac0",7031:"1e11d2e97d17685b878a",7074:"665e31c494d2af505acc",7085:"0979a48905742486f222",7087:"604f0f4150fb79ee54c8",7173:"af349c7bc8ef41a0e1bd",7201:"62c8c9ad09e0166207fd",7217:"d994bcf0a65d1c07160f",7237:"54778dec1598818d93cb",7269:"b564ec4e03478f5659db",7283:"aeaaff7a4b1a99540f52",7290:"8f74d92ac69714b9fd4e",7301:"42fd2a7b22b03dacc6a7",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7537:"900181f68449d8f82eeb",7546:"17f99b130384c1ff2e01",7552:"510502a4c9a2ba8d3f7b",7561:"2a8168e109caa87d596f",7568:"2d9a1f23ec6ce90723ac",7644:"68d8ae42ab71d01a70a5",7715:"f47c7065da3b5001245f",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"2ef5237e4c876d6a4ee0",7835:"7f16ae01ccd9b6114d1c",7865:"2fcd7db1e192858a650e",7870:"f4f9d08b2df856e3b694",7883:"a0356702f2d3f787aeac",7885:"6c9acd9e4e201dc380e9",7982:"8d0c2de92770a1567536",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"20a698709c3c11ff2c16",8020:"ae40eac1eadd1a537bf4",8094:"7393f63043a1da3d05a6",8125:"ac69c0fd5867b493f1d2",8197:"024b44c0c8876627f904",8245:"3ffda5bf0b91700dc308",8247:"1c0c5cb13c2590aae906",8278:"e65dfa19f030ec298437",8298:"7aa9b61ca9b66f30449f",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8361:"68be3fb88ca61f82fb90",8366:"2e096537a3a5555a4a93",8377:"92b03de8a7686b164f60",8441:"12a7997a40c77f5c9160",8457:"010f57ec7fdbedf78d02",8548:"4e350d6c76957f5beb70",8589:"6e62581d933e7298d1f6",8613:"8dc1c3042267618fd710",8628:"359ab29c4509dce0ffbd",8679:"8e310e9cb9d84ac3ca2f",8686:"8487727f1197cf7dbf50",8692:"5c7780f804d789cb37f5",8714:"1e514e1c9aabefa04201",8732:"6299be5e7e26bf3c6859",8740:"efc53007cd2e4991d7d4",8747:"ddf0671976648f621269",8768:"7449568eb2305bf2d650",8846:"23fd4de56de352f63e2d",8879:"1819c45655c836b9a8d7",8885:"de02f60258e6985ef676",8902:"eb04e1717a1002cda3ab",9013:"3dd49f910834a2fb2142",9074:"cb6fb04fe5c8d90d4196",9078:"0d931c7579b6409a696d",9096:"e10b57aefcc89671116e",9117:"8ca9648eacb894283513",9126:"40748b846cf6923478c9",9134:"f426da2210888cc264b4",9159:"4d7063c4152953afb859",9177:"47d074136a7f8e551a9a",9187:"0c948ad4572000218afc",9192:"cc817c9d3f8e8f8c56e4",9229:"501c6e14ab119785252b",9235:"cea0db3ee326f60610eb",9239:"f67b37253d6d05d1e339",9260:"1b077c92345ffb5916c2",9275:"917f53833b853898facc",9279:"fc5a36e54929e03efa86",9301:"c8eae00b0ec87d8b2ff3",9321:"fe9879ecd69ac4329291",9358:"037a8cc19debbaaa4e10",9385:"2686fe5b62dd0be699c0",9389:"7be6d621a0d1e33dfff4",9447:"474015def9652ddf0640",9480:"612104dff305ff062dfa",9512:"fb444954be74c1962ced",9554:"8ca2bb3c0551bb1898b6",9567:"d8f1cefcad02d7353d4b",9588:"58032aab28a20a327f6c",9616:"792c90a67e63b98394c8",9657:"e932951598499befabf5",9672:"3b552afffaa78bf4fe18",9692:"67e4b5651fd7ff7d8cf0",9695:"5aeb5e18514644fe2cf9",9696:"3f946c13ad97fbed867b",9714:"0bd5012da287469b17d5",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9775:"96c50a0dda0f1503ef92",9800:"0f725cf79ce00e790a7d",9820:"4c4117e28ea358a32088",9821:"1c378d489c5402888f76",9829:"f122c18af10e56f9ec2b",9838:"e1f5d00878f27e1d413e",9894:"7572c2bc5062e66f6330",9917:"70cc2d79653d66e85b58",9933:"4911ce62421a6c3320b0",9953:"ad76f7ab2f3e6d5a5b3c",9958:"deb408bee61ca192b2ce"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(61322);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.13/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,eF:()=>l,eO:()=>s,io:()=>f,u3:()=>d,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Module: ${d(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;f(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;f(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function l(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function f(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-snapping-density-sample-interval",10),o.add("featurelayer-snapping-density-max-vertices-per-feature",16),o.add("featurelayer-snapping-density-max-distance",8),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>x,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",()=>t());t()}}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function x(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>S,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>x,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function S(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=S(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=x({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${x(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=x(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268);const f={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(6310)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(2258),r.e(6486)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(7552),r.e(1722),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2554),r.e(8245),r.e(5228),r.e(4690),r.e(4805),r.e(1969),r.e(6304)]).then(()=>r(59357)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2554),r.e(8245),r.e(8902)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9616)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(8747)]).then(()=>r(80188)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(2063)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(2554),r.e(7237)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(3275)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(3819),r.e(4805),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(7074),r.e(2754),r.e(9235),r.e(7031)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(7201)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(9696),r.e(2554),r.e(8245),r.e(574)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(5158)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4809)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(2554),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(3299),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(9829),r.e(893),r.e(2554),r.e(812),r.e(7074),r.e(9800),r.e(5879),r.e(8732),r.e(7772),r.e(9096)]).then(()=>r(44012))};var d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>s,Y3:()=>c,id:()=>o,ol:()=>i});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let o,i="5.2";function s(e){o=e}function c(e){let t=o?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}i="6.0.0-next.13",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"02f8654852d389583891",100:"ebbf425af348e6ede814",118:"bc0f54a2c15502b630ec",124:"fafb92ca2c5e4b0b2c23",146:"54b18559280a7d2a8d93",152:"acfa03c65ba3ca6c5685",161:"eebbde81e56d69dc602f",167:"a40b6d8b5c73e06e14d4",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"d0f5bee9db1ad51ae687",411:"1b946714ca4a1a7359d4",433:"408e81c8f1eff8a7b379",468:"bfb8fc6b940bd5510e29",491:"e4af2a1ea01df7226ace",506:"ac69c0fd5867b493f1d2",563:"1c65ab9ed611c322ce27",566:"bd812dd75d2a3d7d0441",574:"53be85d04cd2da4f391d",599:"5eae5c29149f2429fe96",692:"2671035cc08027185737",737:"f3da30d7300b92bd8bb0",756:"7a8ca15271e42b6131ac",787:"bc38def1983089514e4b",788:"42eec0421e3663019549",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"9fab290090ef2ccae810",895:"481589c3eddad6e026ad",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",931:"6c9266120d46e8c69dbf",980:"cf1ec61eb2ad147bb931",994:"8cb716f110d164030309",1003:"f46d9a19f79d4a4bd354",1088:"864194927d05ebc4cc31",1132:"6558488ea96620439f34",1150:"90153b5230b3a4985c14",1204:"608be1172a908e92b9f1",1214:"4b2d392ad8e381bfd6b3",1273:"6ddc29a144640acb1192",1277:"38d852676677e5697864",1279:"916b363c342b61ba5461",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1359:"0487e1d7a7cecf7c1c25",1384:"28ed020d9995b6577be5",1484:"44d5508042cacdfcac47",1491:"06101f3da5e2fc708402",1550:"03261b9451e293a0fac8",1559:"4503b20ca6a80fb63d72",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"f1df76f098a3cc924832",1666:"8431ca60ad33d594e323",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"0ccab50877b24f862d6e",1763:"e8bf653376a607f00897",1773:"72e6d594b7262430ae55",1780:"3df5500a85345577480a",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1894:"12a08d0ad0f5fea32642",1904:"1bca39e0e651426bdbb5",1948:"a51576d84edca88e41dd",1969:"bab1d010970d98c25470",2024:"62ac588f7dd1d24d0c9d",2061:"46a7da93a63663878583",2063:"2aeb5cc32284dd3e4d22",2156:"67ebc5a3d46b254b725c",2158:"4ba856605f711b615e4c",2174:"59b216b60464611742d4",2186:"10445313d0d57b34511b",2241:"992f102992c2bed7b34e",2258:"0b4481b57a611b15f65c",2309:"f528ac5c648ca6a98582",2343:"74b5c00f93cfc0d59029",2346:"d90a3bfd45b5ed4092e0",2372:"19676b2c5f8b0a5ee680",2387:"140f2eeb11e39ab15734",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"d247dd53788d512b9c9f",2491:"6431480ba0fa8c8d487f",2522:"3c0ed15b544df6fb0903",2554:"0c8c01097847617261b9",2558:"2b06e8507d71c4d9b5b5",2733:"5ec5a6cef9ee9a8cc400",2741:"f6e62d2d279a328cbed7",2754:"175c268e64ccd01f8c25",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2806:"e4a57a0a9629faafd6c6",2867:"611e3cdf67283c11576f",2869:"6059853ef3b6cddbe869",2889:"9401cc22373566e1171e",2938:"4a6b92ecbb1f1c55cc43",2958:"2d13a22f7b2427927fdc",2980:"62fec1816907f070f079",2990:"99a0a434ea2162166754",2994:"12c154342fff876f2f1e",2997:"ca0d4ce453d8eb35467d",3030:"f95a1f878c9c1146180e",3103:"6ebe73f69ae822053b70",3116:"2a97268000c6d03ef720",3120:"e3c1c9e6c62ba5cbcdb8",3193:"070684943698fa43c2b4",3275:"42323093827adffe56d3",3276:"1f339247b68b061ab0a4",3281:"72f716a841463e0ba23f",3299:"a655ebdb4bf0660615a2",3309:"6edc13a426e00bb93a9b",3312:"6c9266120d46e8c69dbf",3318:"1a411ddae7a47015370c",3346:"5566f14afb63065e438f",3354:"e11159e3dc3353b27c57",3359:"fc44d45598a7476bc606",3375:"5fbd7d8d8896a224fff3",3390:"9e142551163acf752618",3391:"b8337492e2b753aefac4",3394:"898359be6996fd9763b8",3456:"e2775b4b753306dc8477",3467:"4fe34da1c5d63e66ce98",3483:"7f0f9dddc44b1f1600f0",3494:"9dd1fc56eb1ea6eb705e",3500:"9e3e442a9874ed23a043",3527:"7ef182e24cad50815b4e",3543:"5788c5ab258b36c8a897",3561:"c2c1f51a4668055c2838",3650:"fccfe3aa45a2fb286012",3666:"ac5a6603f7fa78d3e4c8",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3813:"8b0d5551978ab0aac0d1",3819:"fd9663952d5a94f3a83f",3864:"dba280c370df13196711",3902:"6400446b7615b97c3521",3910:"01803f76bc0d9f2cd566",4019:"4a640548032355e57acd",4038:"2bdd5f0e0364b9e5f52b",4051:"a8286febe371dc186aaa",4059:"5982c6a8459c1237b298",4064:"6ccf9535013fe672c93b",4144:"365825c51fad1bb7f51f",4152:"19a4fa965b70fc6f78f6",4209:"590e6c70206122e4cc3c",4297:"426b4eb500fdfe9df325",4314:"f0d0ed155275c2e6d3da",4403:"122e75b21699a4e83b15",4426:"46b4fb6a7fe4877b0efc",4548:"943a0f140813ee4ab04a",4575:"6588725275c75fae0d9c",4642:"d938987344bce83cc660",4674:"45367aa8e5c5d574de94",4690:"f92364afaefbac7e8f77",4708:"40a584cb952e94326e9e",4718:"f1f90adae13b04898008",4729:"b83cef2d3f528726d492",4780:"1e0d2715d603f48a7e0b",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4805:"0dc66b03ff55d0ea5a09",4809:"bbf993dba74850bbf9d7",4844:"62d6e101e9bd9557a410",4934:"af75747b06d79446a855",4945:"d51bb11baadc741c46bc",4985:"2a1ec30f9ad305763f81",4988:"6268aadb24e0b7c8d207",5077:"688f2dbf784e66082308",5128:"12b84262dedc6b393136",5141:"814751e705c05099f864",5158:"7267b17de212207142c9",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"ead49b513e070951a964",5248:"652faf4359ac072c5dde",5356:"6dc86e7496157c5e4d2c",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5566:"4e8e322b469657ac22e2",5606:"88e54449261ef94e390d",5613:"566e129f3d3805d7370a",5688:"567a65f4203f6e81f4b4",5740:"de5ecb567bd69c613e9d",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"7e0f04a5038e2a4f6e4b",5853:"939942b00ba380e2957e",5856:"bca6b469940b7b954123",5864:"c337fc0e6dc69c233e6d",5879:"444e5f214abce3d607cd",5902:"18d47ab571b613fbe719",5952:"7d11710e1586a3d75887",5992:"76196c414e48834f7b92",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"7c2c8f786a30267a5f05",6070:"89e76de5ae3328d821a4",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"6e107ce73633de8ac257",6187:"01a24ae6e3d730e193e2",6247:"5b1cebae74c7214ccda9",6263:"4e544de61f07ca660236",6304:"3f7d583b676b23b3fadb",6310:"02253bdffbd580af22d8",6361:"2226c20c38e20713bcb5",6377:"709e019885822b1f6f3e",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"ec8b7476eac4718eb0ac",6486:"9ce91a909eccc4dfe388",6491:"067de1910190da228291",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"745a153d0cd34faa124e",6650:"3415531224f8494d79ca",6671:"aff32980d91dab07dfb7",6684:"261fea092ee7d27608a0",6742:"1eaaa896eea3f2ffe6a6",6810:"1f9d6180a96d557838e9",6811:"a518ae5683367eeda74c",6854:"daf9b691817e83a11f3c",6870:"efff269424d76f1dbb15",6875:"4a1e23e021bac37a88ab",6884:"3b3e519f15ed52c83f0c",6892:"dc486a3595b6d57018bb",6930:"557671c897ca5563be6c",6936:"05cd33d41d91f8d09633",6956:"fecaf0bc28aeea4d15db",7005:"42045cf46497828cd3c0",7013:"3d9d7d3a40b51eb7ee3d",7029:"aa8ab28e0c1ae3b55ac0",7031:"1e11d2e97d17685b878a",7074:"665e31c494d2af505acc",7085:"0979a48905742486f222",7087:"604f0f4150fb79ee54c8",7173:"af349c7bc8ef41a0e1bd",7201:"62c8c9ad09e0166207fd",7217:"d994bcf0a65d1c07160f",7237:"09bd5df07eab80ae7b15",7269:"b564ec4e03478f5659db",7283:"aeaaff7a4b1a99540f52",7290:"8f74d92ac69714b9fd4e",7301:"42fd2a7b22b03dacc6a7",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7537:"900181f68449d8f82eeb",7546:"17f99b130384c1ff2e01",7552:"510502a4c9a2ba8d3f7b",7561:"2a8168e109caa87d596f",7568:"2d9a1f23ec6ce90723ac",7644:"68d8ae42ab71d01a70a5",7715:"f47c7065da3b5001245f",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"2ef5237e4c876d6a4ee0",7835:"7f16ae01ccd9b6114d1c",7865:"2fcd7db1e192858a650e",7870:"f4f9d08b2df856e3b694",7883:"a0356702f2d3f787aeac",7885:"6c9acd9e4e201dc380e9",7982:"a4cab24af69260438ff4",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"20a698709c3c11ff2c16",8020:"ae40eac1eadd1a537bf4",8094:"7393f63043a1da3d05a6",8125:"ac69c0fd5867b493f1d2",8197:"024b44c0c8876627f904",8245:"3ffda5bf0b91700dc308",8247:"1c0c5cb13c2590aae906",8278:"e65dfa19f030ec298437",8298:"7aa9b61ca9b66f30449f",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8361:"68be3fb88ca61f82fb90",8366:"2e096537a3a5555a4a93",8377:"92b03de8a7686b164f60",8441:"12a7997a40c77f5c9160",8457:"010f57ec7fdbedf78d02",8548:"4e350d6c76957f5beb70",8589:"6f4e6022a52de0c54aab",8613:"8dc1c3042267618fd710",8628:"359ab29c4509dce0ffbd",8679:"8e310e9cb9d84ac3ca2f",8686:"8487727f1197cf7dbf50",8692:"5c7780f804d789cb37f5",8714:"1e514e1c9aabefa04201",8732:"6299be5e7e26bf3c6859",8740:"efc53007cd2e4991d7d4",8747:"ddf0671976648f621269",8768:"7449568eb2305bf2d650",8846:"23fd4de56de352f63e2d",8879:"1819c45655c836b9a8d7",8885:"de02f60258e6985ef676",8902:"eb04e1717a1002cda3ab",9013:"3dd49f910834a2fb2142",9074:"cb6fb04fe5c8d90d4196",9078:"0d931c7579b6409a696d",9096:"e10b57aefcc89671116e",9117:"8ca9648eacb894283513",9126:"40748b846cf6923478c9",9134:"f426da2210888cc264b4",9159:"4d7063c4152953afb859",9177:"47d074136a7f8e551a9a",9187:"0c948ad4572000218afc",9192:"cc817c9d3f8e8f8c56e4",9229:"501c6e14ab119785252b",9235:"cea0db3ee326f60610eb",9239:"f67b37253d6d05d1e339",9260:"1b077c92345ffb5916c2",9279:"fc5a36e54929e03efa86",9301:"c8eae00b0ec87d8b2ff3",9321:"fe9879ecd69ac4329291",9358:"037a8cc19debbaaa4e10",9385:"2686fe5b62dd0be699c0",9389:"7be6d621a0d1e33dfff4",9447:"474015def9652ddf0640",9480:"612104dff305ff062dfa",9512:"fb444954be74c1962ced",9554:"8ca2bb3c0551bb1898b6",9567:"d8f1cefcad02d7353d4b",9588:"d03b82e962c70a3fd377",9616:"792c90a67e63b98394c8",9657:"e932951598499befabf5",9672:"3b552afffaa78bf4fe18",9692:"67e4b5651fd7ff7d8cf0",9695:"5aeb5e18514644fe2cf9",9696:"3f946c13ad97fbed867b",9714:"0bd5012da287469b17d5",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9775:"96c50a0dda0f1503ef92",9800:"0f725cf79ce00e790a7d",9820:"4c4117e28ea358a32088",9821:"1c378d489c5402888f76",9829:"f122c18af10e56f9ec2b",9838:"e1f5d00878f27e1d413e",9894:"7572c2bc5062e66f6330",9917:"70cc2d79653d66e85b58",9933:"4911ce62421a6c3320b0",9953:"ad76f7ab2f3e6d5a5b3c",9958:"deb408bee61ca192b2ce"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(61322);RemoteClient=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7237],{11006(t,e,i){function n(t,e,i,n,s){r(t,e,i||0,n||t.length-1,s||o)}function r(t,e,i,n,o){for(;n>i;){if(n-i>600){var l=n-i+1,h=e-i+1,a=Math.log(l),u=.5*Math.exp(2*a/3),f=.5*Math.sqrt(a*u*(l-u)/l)*(h-l/2<0?-1:1);r(t,e,Math.max(i,Math.floor(e-h*u/l+f)),Math.min(n,Math.floor(e+(l-h)*u/l+f)),o)}var c=t[e],d=i,y=n;for(s(t,i,e),o(t[n],c)>0&&s(t,i,n);d<y;){for(s(t,d,y),d++,y--;o(t[d],c)<0;)d++;for(;o(t[y],c)>0;)y--}0===o(t[i],c)?s(t,i,y):s(t,++y,n),y<=e&&(i=y+1),e<=y&&(n=y-1)}}function s(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function o(t,e){return t<e?-1:+(t>e)}i.d(e,{q:()=>n})},69540(t,e,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(88620),h=i(64108);const a=Symbol("ClonableMixin"),u=t=>{var e;let i=t,r=class extends i{constructor(){super(...arguments),this[e]=!0}static{e=a}clone(t){let e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let i=e.metadata,n=e.store,r={},h=new Map;for(let e in i){let o=i[e],l=n?.originOf(e),a=o.clonable;if(o.readOnly||!1===a||7!==l&&0!==l&&5!==l&&4!==l)continue;let u=this[e],f=null;if("function"==typeof a)f=a(u,t);else if("reference"===a)f=u;else if(f=(0,s.TU)(u,t),null!=u&&null==f)continue;0===l?h.set(e,f):r[e]=f}let a=new(0,Object.getPrototypeOf(this).constructor)(r);if(h.size){let t=(0,l.oY)(a)?.store;if(t)for(let[e,i]of h)t.set(e,i,0)}return a}};return r=(0,n.Cg)([(0,h.$)("esri.core.Clonable")],r),r},f=u(r.A);i.d(e,["OU",0,u,"Pw",0,f])},67482(t,e,i){function n(t){return null!==r(t)}function r(t){return function(t){let e=s.exec(t);if(!e?.groups)return null;let i=e.groups,n=+i.year,r=i.month-1,o=+i.day,l=+(i.hours??"0"),h=+(i.minutes??"0"),a=+(i.seconds??"0");if(l>23||h>59||a>59)return null;let u,f=i.ms??"0",c=f?+f.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)u=Date.UTC(n,r,o,l,h,a,c);else{let t=+i.offsetHours,e=+i.offsetMinutes;u=6e4*("+"===i.offsetSign?-1:1)*(60*t+e)+Date.UTC(n,r,o,l,h,a,c)}return Number.isNaN(u)?null:u}(t)??function(t){let e=new Date(t),i=e.getTime();return Number.isNaN(i)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?i:null}(t)??function(t){if(!o.test(t))return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}i.d(e,{C:()=>n,_:()=>r});const s=/^(?:(?<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})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(t,e,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(t,e,i,n,r,s,o,l,h,a,u,f,c,d,y,m){return[t,e,i,n,r,s,o,l,h,a,u,f,c,d,y,m]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>T,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>b,Io:()=>_,Ln:()=>g,Om:()=>I,Qr:()=>f,Re:()=>a,S8:()=>v,T9:()=>m,WQ:()=>h,Z0:()=>A,_S:()=>d,aI:()=>G,ei:()=>B,fw:()=>F,gL:()=>S,hG:()=>x,hZ:()=>l,hs:()=>p,jk:()=>y,lw:()=>u,m3:()=>M,oW:()=>O,t2:()=>Z,tn:()=>c,ze:()=>w});var n=i(51850),r=i(34304);function s(t){let e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t}function h(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function a(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function f(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function y(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function m(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function p(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function g(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function _(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(i*i+n*n+r*r)}function x(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return i*i+n*n+r*r}function M(t){let e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e=t){let i=e[0],n=e[1],r=e[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function T(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2];return t[0]=r*h-s*l,t[1]=s*o-n*h,t[2]=n*l-r*o,t}function P(t,e,i,n){let r=e[0],s=e[1],o=e[2];return t[0]=r+n*(i[0]-r),t[1]=s+n*(i[1]-s),t[2]=o+n*(i[2]-o),t}function A(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=i[0]*n+i[4]*r+i[8]*s+i[12],t[1]=i[1]*n+i[5]*r+i[9]*s+i[13],t[2]=i[2]*n+i[6]*r+i[10]*s+i[14],t}function B(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=n*i[0]+r*i[3]+s*i[6],t[1]=n*i[1]+r*i[4]+s*i[7],t[2]=n*i[2]+r*i[5]+s*i[8],t}function S(t,e,i){return F(t,e,i[0],i[1],i[2],i[3])}function F(t,e,i,n,r,s){let o=e[0],l=e[1],h=e[2],a=n*h-r*l,u=r*o-i*h,f=i*l-n*o,c=n*f-r*u,d=r*a-i*f,y=i*u-n*a,m=2*s;return t[0]=o+a*m+2*c,t[1]=l+u*m+2*d,t[2]=h+f*m+2*y,t}const C=(0,n.vt)(),R=(0,n.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){if(t===e)return!0;let i=t[0],n=t[1],s=t[2],o=e[0],l=e[1],h=e[2],a=(0,r.FD)();return Math.abs(i-o)<=a*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-l)<=a*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-h)<=a*Math.max(1,Math.abs(s),Math.abs(h))}function O(t,e,i){let n=i[0]-e[0],r=i[1]-e[1],s=i[2]-e[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=a,N=u,q=f,Y=_,L=x,X=s,k=M;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:h,angle:function(t,e){v(C,t),v(R,e);let i=I(C,R);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(t,e,i,n,r,s){let o=1-s,l=o*o,h=s*s,a=l*o,u=3*s*l,f=3*h*o,c=h*s;return t[0]=e[0]*a+i[0]*u+n[0]*f+r[0]*c,t[1]=e[1]*a+i[1]*u+n[1]*f+r[1]*c,t[2]=e[2]*a+i[2]*u+n[2]*f+r[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:o,cross:T,crossAndNormalize:function(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2],a=r*h-s*l,u=s*o-n*h,f=n*l-r*o,c=Math.sqrt(a*a+u*u+f*f);return t[0]=a/c,t[1]=u/c,t[2]=f/c,t},direction:O,dist:Y,distance:_,div:q,divide:f,dot:I,equals:G,exactEquals:Z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,i,n,r,s){let o=s*s,l=o*(2*s-3)+1,h=o*(s-2)+s,a=o*(s-1),u=o*(3-2*s);return t[0]=e[0]*l+i[0]*h+n[0]*a+r[0]*u,t[1]=e[1]*l+i[1]*h+n[1]*a+r[1]*u,t[2]=e[2]*l+i[2]*h+n[2]*a+r[2]*u,t},inverse:b,len:X,length:s,lerp:P,max:m,min:y,mul:N,multiply:u,negate:w,normalize:v,random:function(t,e=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=s*e,t},rotateX:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:g,scaleTo:function(t,e){return p(t,t,e/X(t))},set:l,sign:d,sqrDist:L,sqrLen:k,squaredDistance:x,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:a,transformMat3:B,transformMat4:A,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:S,transformQuatValues:F},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,X,"jb",0,j,"lo",0,L,"uE",0,k])},75503(t,e,i){i.d(e,{wq:()=>l});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class l{constructor(t=9,e){this._compareMinX=c,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),b.prune(),v.prune(),I.prune()}all(t){h(this._data,t)}search(t,e){let i=this._data,n=this._toBBox;if(x(t,i))for(w.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;x(t,o)&&(i.leaf?e(s):_(t,o)?h(s,e):w.push(s))}i=w.pop()}}collides(t){let e=this._data,i=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],s=e.leaf?i(r):r;if(x(t,s)){if(e.leaf||_(t,s))return!0;w.push(r)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let e,i=this._data,s=null,o=0,l=!1,h=this._toBBox(t);for(v.clear(),I.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=I.pop()??0,l=!0),i.leaf&&(e=(0,n.qh)(i.children,(0,r.z)(t),i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;l||i.leaf||!_(i,h)?s?(o++,i=s.children[o],l=!1):i=null:(v.push(i),I.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,i,n){let r=i-e+1,s=this._maxEntries;if(r<=s){let n=new A(t.slice(e,i+1));return a(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new B([]);o.height=n;let l=Math.ceil(r/s),h=l*Math.ceil(Math.sqrt(s));M(t,e,i,h,this._compareMinX);for(let r=e;r<=i;r+=h){let e=Math.min(r+h-1,i);M(t,r,e,l,this._compareMinY);for(let i=r;i<=e;i+=l){let r=Math.min(i+l-1,e);o.children.push(this._build(t,i,r,n-1))}}return a(o,this._toBBox),o}_insert(t,e,i){let n=this._toBBox,r=i?t:n(t);v.clear();let s=function(t,e,i,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=e.children.length;s<o;s++){let o=e.children[s],l=y(o),h=p(t,o)-l;h<r?(r=h,n=l<n?l:n,i=o):h===r&&l<n&&(n=l,i=o)}e=i||e.children[0]}return e}(r,this._data,e,v);for(s.children.push(t),f(s,r);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,i){for(let n=i;n>=0;n--)f(e.data[n],t)}(r,v,e)}_split(t,e){let i=t.data[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),l=i.leaf?new A(o):new B(o);l.height=i.height,a(i,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(i,l)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let n,r,s;n=r=1/0;for(let o=e;o<=i-e;o++){let e=u(t,0,o,this._toBBox),l=u(t,o,i,this._toBBox),h=g(e,l),a=y(e)+y(l);h<n?(n=h,s=o,r=a<r?a:r):h===n&&a<r&&(r=a,s=o)}return s}_chooseSplitAxis(t,e,i){let n=t.leaf?this._compareMinX:c,r=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);let r=this._toBBox,s=u(t,0,e,r),o=u(t,i-e,i,r),l=m(s)+m(o);for(let n=e;n<i-e;n++){let e=t.children[n];f(s,t.leaf?r(e):e),l+=m(s)}for(let n=i-e-1;n>=e;n--){let e=t.children[n];f(o,t.leaf?r(e):e),l+=m(o)}return l}_condense(t){for(let e=t.length-1;e>=0;e--){let i=t.data[e];if(0===i.children.length)if(e>0){let r=t.data[e-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else a(i,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){let i=t;for(b.clear();i;){if(!0===i.leaf)for(let t of i.children)e((0,r.z)(t));else b.pushArray(i.children);i=b.pop()??null}}function a(t,e){u(t,0,t.children.length,e,t)}function u(t,e,i,n,r){r||=new A([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=e;o<i;o++)s=t.children[o],f(r,t.leaf?n(s):s);return r}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function y(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){let i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,i,n,r){let s=[e,i];for(;s.length;){let e=s.pop(),i=s.pop();if(e-i<=n)continue;let l=i+Math.ceil((e-i)/n/2)*n;(0,o.q)(t,l,i,e,r),s.push(i,l,l,e)}}const w=new s.A,b=new s.A,v=new s.A,I=new s.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,i){i.d(e,{Qf:()=>l,Qh:()=>s,lM:()=>r});var n=i(34275);function r(t){if(!t)return 0;let e=a;for(let i in t)t.hasOwnProperty(i)&&(e+=o(t[i],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=u;for(let n=0;n<e;n++)i+=o(t[n]);return i}(t);let e=a;for(let i in t)t.hasOwnProperty(i)&&(e+=o(t[i]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?s(t):a;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return u+t.length*e}const a=32,u=16,f=145},48526(t,e,i){i.d(e,{A:()=>p});var n,r=i(32198),s=i(4576),o=i(4718),l=i(91429),h=i(5443),a=i(91075),u=i(86738),f=i(16930),c=i(90634),d=i(47610),y=i(56993),m=i(43937);let p=n=class extends a.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=f.A.WGS84,{...t,hasM:i,hasZ:n,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,i=t.spatialReference;return!(null!=e!=(null!=i)||null!=e&&null!=i&&!e.equals(i))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,y.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=e[2],n=3),this.hasM&&(i.m=e[n]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,y.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],p.prototype,"points",void 0),(0,r.Cg)([(0,m.K)("points")],p.prototype,"writePoints",null),p=n=(0,r.Cg)([(0,l.$K)("esri.geometry.Multipoint")],p),p.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>y});var n,r=i(32198),s=i(4718),o=i(91429),l=i(5443),h=i(91075),a=i(86738),u=i(16930),f=i(90634),c=i(56993),d=i(43937);let y=n=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:n,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new l.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let n=[];for(let e=0,i=t.length;e<i;e++)n[e]=t[e].toArray();e[i]=n}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let i=this.paths[t][e],n=this.hasZ,r=this.hasM;return n&&!r?new a.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new a.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new a.A(i[0],i[1],i[2],i[3],this.spatialReference):new a.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],i=this.spatialReference,n=e.map(t=>new a.A(t,i));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;let i=new a.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths")),this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let n=this.paths[t];if(i&&(e<0||e>n.length)||!i&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],y.prototype,"curvePaths",void 0),(0,r.Cg)([(0,d.K)("curvePaths")],y.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],y.prototype,"paths",void 0),(0,r.Cg)([(0,d.K)("paths")],y.prototype,"writePaths",null),y=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],y),y.prototype.toJSON.isDefaultToJSON=!0},4197(t,e,i){i.d(e,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,yH:()=>h});var n=i(34275),r=i(9093);function s(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function l(t,e,i){return Array.isArray(t)?t.slice(e,e+i):t.subarray(e,e+i)}function h(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);let i=s(t.length+e.length);for(let e=0;e<t.length;++e)i[e]=t[e];for(let n=0;n<e.length;++n)i[t.length+n]=e[n];return i}function a(t){return[...t]}function u(t){let e=(0,r.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},6774(t,e,i){i.d(e,{O3:()=>s,Ox:()=>o,bR:()=>n});class n{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new n(t[0],t[1])}clone(){return new n(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){let t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){let i=this.x,n=this.y;return this.x=i*t-n*e,this.y=i*e+n*t,this}rotateReverse(t,e){let i=this.x,n=this.y;return this.x=i*t+n*e,this.y=-i*e+n*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){let i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}static add(t,e){return new n(t.x+e.x,t.y+e.y)}static sub(t,e){return new n(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,n=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=r,this._tileSize=512*n,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;let i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new n(t,e),this._firstPt=new n(t,e),this._dist=0}lineTo(t,e){let i,s,o,l,h,a,u,f,c=this._isIn(t,e),d=new n(t,e),y=n.distance(this._prevPt,d);if(c)this._prevIsIn?this._lineTo(t,e,!0):(i=this._prevPt,s=d,o=this._intersect(s,i),this._start=this._dist+y*(1-this._r),this._lineTo(o.x,o.y,!0),this._lineTo(s.x,s.y,!0));else if(this._prevIsIn)s=this._prevPt,i=d,o=this._intersect(s,i),this._lineTo(o.x,o.y,!0),this._lineTo(i.x,i.y,!1);else{let t=this._prevPt,e=d;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{let i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(l=(this._xmin-t.x)/(e.x-t.x),f=t.y+l*(e.y-t.y),f<this._ymin?a=!1:f>this._ymax?a=!0:i.push(new r(l,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(l=(this._xmax-t.x)/(e.x-t.x),f=t.y+l*(e.y-t.y),f<this._ymin?a=!1:f>this._ymax?a=!0:i.push(new r(l,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(l=(this._ymin-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(l=(this._ymax-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymax))),0===i.length)h?a?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):a?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+y*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+y*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=y,this._prevIsIn=c,this._prevPt=d}close(){if(this._line.length>2){let t=this._firstPt,e=this._prevPt;(t.x!==e.x||t.y!==e.y)&&this.lineTo(t.x,t.y);let i=this._line,n=i.length;for(;n>=4&&(i[0].x===i[1].x&&i[0].x===i[n-2].x||i[0].y===i[1].y&&i[0].y===i[n-2].y);)i.pop(),i[0].x=i[n-2].x,i[0].y=i[n-2].y,--n}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&l.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,e=t.length;if(0===e)return null;let i=[];for(let n=0;n<e;n++)i.push({line:t[n],start:this._starts[n]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,s;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,s=(r-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),r=t.y+s*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;let n=(i-t.x)/(e.x-t.x),o=(r-t.y)/(e.y-t.y);n<o?(s=n,r=t.y+n*(e.y-t.y)):(s=o,i=t.x+o*(e.x-t.x))}return this._r=s,new n(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3===this._type?(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)),this._isH=!1,this._isV=!1):i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)))}_lineTo(t,e,i){let r,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new n(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];let i=r.x===t,o=r.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(r.x=t,r.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new n(t,e)),this._isH=i,this._isV=o)}else this._line.push(new n(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];let i=this._ratio;this._line.push(new n(t*i,e*i))}lineTo(t,e){let i=this._ratio;this._line.push(new n(t*i,e*i))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class l{static simplify(t,e,i){if(!i)return;let n=-e,r=t+e,s=-e,o=t+e,h=[],a=[],u=i.length;for(let t=0;t<u;++t){let e=i[t];if(!e||e.length<2)continue;let l,u=e[0],f=e.length;for(let i=1;i<f;++i)l=e[i],u.x===l.x&&(u.x<=n&&(u.y>l.y?(h.push(t),h.push(i),h.push(0),h.push(-1)):(a.push(t),a.push(i),a.push(0),a.push(-1))),u.x>=r&&(u.y<l.y?(h.push(t),h.push(i),h.push(1),h.push(-1)):(a.push(t),a.push(i),a.push(1),a.push(-1)))),u.y===l.y&&(u.y<=s&&(u.x<l.x?(h.push(t),h.push(i),h.push(2),h.push(-1)):(a.push(t),a.push(i),a.push(2),a.push(-1))),u.y>=o&&(u.x>l.x?(h.push(t),h.push(i),h.push(3),h.push(-1)):(a.push(t),a.push(i),a.push(3),a.push(-1)))),u=l}if(0===h.length||0===a.length)return;l.fillParent(i,a,h),l.fillParent(i,h,a);let f=[];l.calcDeltas(f,a,h),l.calcDeltas(f,h,a),l.addDeltas(f,i)}static fillParent(t,e,i){let n=i.length,r=e.length;for(let s=0;s<r;s+=4){let r=e[s],o=e[s+1],l=e[s+2],a=t[r][o-1],u=t[r][o],f=8092,c=-1;for(let e=0;e<n;e+=4){if(i[e+2]!==l)continue;let n=i[e],r=i[e+1],s=t[n][r-1],o=t[n][r];switch(l){case 0:case 1:if(h(a.y,s.y,o.y)&&h(u.y,s.y,o.y)){let t=Math.abs(o.y-s.y);t<f&&(f=t,c=e)}break;case 2:case 3:if(h(a.x,s.x,o.x)&&h(u.x,s.x,o.x)){let t=Math.abs(o.x-s.x);t<f&&(f=t,c=e)}}}e[s+3]=c}}static calcDeltas(t,e,i){let n=e.length;for(let r=0;r<n;r+=4){let n=l.calcDelta(r,e,i,[]);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,n){let r=e[t+3];if(-1===r)return 0;let s=n.length;return s>1&&n[s-2]===r?0:(n.push(r),l.calcDelta(r,i,e,n)+1)}static addDeltas(t,e){let i=t.length,n=0;for(let e=0;e<i;e+=4){let i=t[e+3];i>n&&(n=i)}for(let r=0;r<i;r+=4){let i=e[t[r]],s=t[r+1],o=n-t[r+3];switch(t[r+2]){case 0:i[s-1].x-=o,i[s].x-=o,1===s&&(i[i.length-1].x-=o),s===i.length-1&&(i[0].x-=o);break;case 1:i[s-1].x+=o,i[s].x+=o,1===s&&(i[i.length-1].x+=o),s===i.length-1&&(i[0].x+=o);break;case 2:i[s-1].y-=o,i[s].y-=o,1===s&&(i[i.length-1].y-=o),s===i.length-1&&(i[0].y-=o);break;case 3:i[s-1].y+=o,i[s].y+=o,1===s&&(i[i.length-1].y+=o),s===i.length-1&&(i[0].y+=o)}}}}const h=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},70328(t,e,i){i.d(e,{BI:()=>A,C:()=>o,DC:()=>c,Ej:()=>x,Ie:()=>T,Jt:()=>P,Lu:()=>w,Ne:()=>b,RF:()=>f,TF:()=>g,VL:()=>y,aI:()=>S,fA:()=>l,gE:()=>a,gX:()=>_,hZ:()=>I,iT:()=>d,is:()=>B,pg:()=>M,uJ:()=>p,vI:()=>v,vY:()=>h,vt:()=>s,w1:()=>u,yr:()=>m}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function l(t,e,i,n,r,o,l=s()){return l[0]=t,l[1]=e,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function h(t,e=s()){return function(t,e,i,n=s()){return I(n,F),function(t,e,i=0,n=e.length/3){let r=t[0],s=t[1],o=t[2],l=t[3],h=t[4],a=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),o=Math.min(o,e[i+3*t+2]),l=Math.max(l,e[i+3*t]),h=Math.max(h,e[i+3*t+1]),a=Math.max(a,e[i+3*t+2]);t[0]=r,t[1]=s,t[2]=o,t[3]=l,t[4]=h,t[5]=a}(n,t,e,i),n}(t,0,t.length/3,e)}function a(t,e=(0,r.jh)(24)){let[i,n,s,o,l,h]=t;return e[0]=i,e[1]=n,e[2]=s,e[3]=i,e[4]=n,e[5]=h,e[6]=i,e[7]=l,e[8]=s,e[9]=i,e[10]=l,e[11]=h,e[12]=o,e[13]=n,e[14]=s,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=l,e[20]=s,e[21]=o,e[22]=l,e[23]=h,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function f(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,i,n]){!function(t,e,i,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],n)}(t,e,i,n)}function y(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=y(t),i=p(t),n=m(t);return e*e+i*i+n*n}function _(t,e=[0,0,0]){return e[0]=t[0]+y(t)/2,e[1]=t[1]+m(t)/2,e[2]=t[2]+p(t)/2,e}function x(t,e=[0,0,0]){return e[0]=y(t),e[1]=m(t),e[2]=p(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function w(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function b(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function v(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function I(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function T(t){return t?I(t,F):s(F)}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function A(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=n,t[4]=r,t[5]=1/0,t}function B(t){return 6===t.length}function S(t,e,i){if(null==t||null==e)return t===e;if(!B(t)||!B(e))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const F=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),i.d(e,["qv",0,F,"v_",0,C])},60408(t,e,i){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function l(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function a(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":l(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":r(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}i.d(e,{$B:()=>a,Bi:()=>l,Pv:()=>u,Rg:()=>o,U9:()=>r,W0:()=>f,ZC:()=>n,fT:()=>s,uW:()=>h})},65864(t,e,i){i.d(e,{rS:()=>u,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),l=i(39829),h=i(82799),a=i(60408);function u(t){return null==t?null:t instanceof r.A?t:(0,a.fT)(t)?o.A.fromJSON(t):(0,a.Rg)(t)?h.A.fromJSON(t):(0,a.Bi)(t)?l.A.fromJSON(t):(0,a.U9)(t)?s.A.fromJSON(t):(0,a.ZC)(t)?n.A.fromJSON(t):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function c(t){return t&&f[t]||null}},43334(t,e,i){i.d(e,{N3:()=>l,Om:()=>o});var n=i(69397),r=i(27647),s=i(92722);class o{constructor(t,e,i,n,r=0,s=null,o=null){this.geometry=t,this.attributes=e,this.centroid=i,this.objectId=n,this.displayId=r,this.distance=s,this.vertexCount=o}static fromJSON(t){let e=t.geometry?s.A.fromJSON(t.geometry):null,i=t.centroid?s.A.fromJSON(t.centroid):null,n=t.objectId;return new o(e,t.attributes,i,n,void 0,t.distance,t.vertexCount)}weakClone(){return new o(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new o(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(t){return this.centroid??=(0,r.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,n.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function l(t){return!!t.geometry?.coords?.length}},58512(t,e,i){i.d(e,{A:()=>n});class n{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){let t=new n;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},92722(t,e,i){i.d(e,{A:()=>r});var n=i(69397);class r{constructor(t=[],e=[],i=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:n}){return new r(t,e,i||!1,n||!1)}static fromRect([t,e,i,n]){let s=i-t,o=n-e;return new r([5],[t,e,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let i of this.lengths){if(i<3)continue;let{stride:n}=this,r=this.coords[n*e],s=this.coords[n*e+1];for(let o=1;o<i;o+=1){let i=n*(e+o),l=this.coords[i],h=this.coords[i+1];t+=-.5*(l-r)*(h+s),r=l,s=h}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:i}=this;for(let n of this.lengths){for(let r=0;r<n;r++){let n=i*(e+r);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){let t=this.clone(),{coords:e,lengths:i}=t,n=0,{stride:r}=this;for(let t of i){for(let i=1;i<t;i++){let t=r*(n+i);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}n+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:i,size:n}=this,s=this.coords.slice(0,n*i);return t?(t.set(s),new r(e,t,this.hasZ,this.hasM)):new r(e,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let i=Array(e*t);for(let e=0,n=0;e<i.length;e+=t)i[n++]=this.coords[e],i[n++]=this.coords[e+1];return new r(this.lengths,i,!1,!1)}}},27647(t,e,i){i.d(e,{Q:()=>s});var n=i(92722);function r(t,e){return t?e?4:3:e?3:2}function s(t){if(null==t||!t?.lengths.length)return null;let{lengths:e,coords:i,stride:r,hasZ:s,hasM:h}=t,a=new n.A([],[],s,!1),u=a.coords,f=[],c=s?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0],d=0;for(let t of e){let e=o(c,i,d,t,s,h);e&&f.push(e),d+=t*r}if(f.sort((t,e)=>{let i=t[2]-e[2];return 0===i&&s&&(i=t[4]-e[4]),i}),f.length){let t=6*f[0][2];u[0]=f[0][0]/t,u[1]=f[0][1]/t,s&&(t=6*f[0][4],u[2]=0===t?0:f[0][3]/t),(u[0]<c[0]||u[0]>c[1]||u[1]<c[2]||u[1]>c[3]||s&&(u[2]<c[4]||u[2]>c[5]))&&(u.length=0)}if(!u.length){let n=t.lengths[0]?l(i,0,e[0],s,h):null;if(!n)return null;u[0]=n[0],u[1]=n[1],s&&(u[2]=n[2]??0)}return a}function o(t,e,i,n,s,o){let l=r(s,o),h=i,a=i+l,u=0,f=0,c=0,d=0,y=0;for(let i=0,r=n-1;i<r;i++,h+=l,a+=l){let i=e[h],n=e[h+1],r=e[h+2],o=e[a],l=e[a+1],m=e[a+2],p=i*l-o*n;d+=p,u+=(i+o)*p,f+=(n+l)*p,s&&(p=i*m-o*r,c+=(r+m)*p,y+=p),i<t[0]&&(t[0]=i),i>t[1]&&(t[1]=i),n<t[2]&&(t[2]=n),n>t[3]&&(t[3]=n),s&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(d>0&&(d*=-1),y>0&&(y*=-1),!d)return null;let m=[u,f,.5*d];return s&&(m[3]=c,m[4]=.5*y),m}function l(t,e,i,n,s){let o=r(n,s),l=e,c=e+o,d=0,y=0,m=0,p=0;for(let e=0,r=i-1;e<r;e++,l+=o,c+=o){let e=t[l],i=t[l+1],r=t[l+2],s=t[c],o=t[c+1],g=t[c+2],_=n?a(e,i,r,s,o,g):h(e,i,s,o);if(_)if(d+=_,n){let t=f(e,i,r,s,o,g);y+=_*t[0],m+=_*t[1],p+=_*t[2]}else{let t=u(e,i,s,o);y+=_*t[0],m+=_*t[1]}}return d>0?n?[y/d,m/d,p/d]:[y/d,m/d]:i>0?n?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function h(t,e,i,n){let r=i-t,s=n-e;return Math.sqrt(r*r+s*s)}function a(t,e,i,n,r,s){let o=n-t,l=r-e,h=s-i;return Math.sqrt(o*o+l*l+h*h)}function u(t,e,i,n){return[t+.5*(i-t),e+.5*(n-e)]}function f(t,e,i,n,r,s){return[t+.5*(n-t),e+.5*(r-e),i+.5*(s-i)]}},6518(t,e,i){i.d(e,{F:()=>l});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class l{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let t=Array(this._idByBounds.size),e=0;this._idByBounds.forEach((i,n)=>{t[e++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let t=(0,s.Ie)();for(let e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){let e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){let e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,i){i.d(e,{A:()=>d});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),l=i(70328),h=i(19419),a=i(90708),u=i(6518),f=i(37730);const c=(0,l.vt)();class d{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=f.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 t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;let[e,i,n,r]=this.fullBounds;return{xmin:e,ymin:i,xmax:n,ymax:r,spatialReference:t}}add(t){this._add(t),this._emitChanged()}addMany(t){for(let e of t)this._add(e);this._emitChanged()}upsertMany(t){let e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){let e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(let e of t){let t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(let i of t){let t=this._boundsStore.get(i.objectId);t&&e((0,l.Jt)(c,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;let e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t}));let i,n=this._featuresById.get(e);n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),t.geometry?.coords?.length?(i=(0,a.jQ)(i??(0,h.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0):(this._boundsStore.set(e,null),this._featuresById.set(e,t))}_upsert(t){let e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;let i=this._featuresById.get(e);if(!i)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=t;for(let t in s)i.attributes[t]=s[t];return n&&(i.geometry=n,this._boundsStore.set(e,(0,a.jQ)((0,h.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);let e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},54339(t,e,i){function n(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{let i=[];for(let n of e.fieldNames)i.push(t.attributes[n]??null);return JSON.stringify(i)}}}function r(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];let i=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(i)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}i.d(e,{W:()=>n,r:()=>r})},37730(t,e,i){var n=i(43334);const r={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,i)=>new n.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};i.d(e,["T",0,r])},31464(t,e,i){i.d(e,{Cv:()=>d,Nk:()=>c,lK:()=>m});var n=i(4576),r=i(99917),s=i(60408),o=i(21325),l=i(28735);const h=[0,0];function a(t,e){let i=(0,o.K8)(t)?l.je:l.tD;if((0,s.fT)(e)){let t={x:0,y:0};return[t.x,t.y]=i(e.x,e.y,h),null!=e.z&&(t.z=e.z),null!=e.m&&(t.m=e.m),t}if((0,s.ZC)(e)){let t={xmin:0,ymin:0,xmax:0,ymax:0};return[t.xmin,t.ymin]=i(e.xmin,e.ymin,h),[t.xmax,t.ymax]=i(e.xmax,e.ymax,h),e.hasZ&&(t.zmin=e.zmin,t.zmax=e.zmax,t.hasZ=!0),e.hasM&&(t.mmin=e.mmin,t.mmax=e.mmax,t.hasM=!0),t}if((0,s.Bi)(e))return{rings:u(e.rings,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.Rg)(e))return{paths:u(e.paths,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.U9)(e))return{points:f(e.points,i),hasM:e.hasM,hasZ:e.hasZ};throw Error()}function u(t,e){let i=[];for(let n of t)i.push(f(n,e));return i}function f(t,e){let i=[];for(let n of t){let t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function c(t,e){if(!t||!e)return;let i=Array.isArray(t)?t.map(t=>null==t.geometry?null:t.geometry.spatialReference).filter(n.Ru):[t];await(0,r.initializeProjection)(i.map(t=>({source:t,dest:e})))}function d(t,e,i,n){if(!t)return null;if(i||(i=e,e=t.spatialReference),!(0,o.fn)(e)||!(0,o.fn)(i)||(0,o.aI)(e,i))return t;if((0,l.y7)(e,i)){let e=a(i,t);return e.spatialReference=i,e}let[s]=(0,r.projectMany)([t],e,i,n);return s}const y=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,o.aI)(e,i))return t;let r={geometries:t,inSpatialReference:e,outSpatialReference:i,options:n,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;let t=this._jobs.shift();if(!t)return;let e,{geometries:i,inSpatialReference:n,outSpatialReference:s,resolve:o,options:h}=t,u=i.filter(t=>null!=t);e=(0,l.y7)(n,s)&&null==h?.extendedParams?u.map(t=>a(s,t)):(0,r.projectMany)(u,n,s,h);let f=0,c=i.map(t=>null==t?null:e[f++]);o.resolve(c),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(t,e,i,n){return y.push(t,e,i,n)}},90708(t,e,i){i.d(e,{Ap:()=>A,B2:()=>p,DF:()=>b,Di:()=>Z,E2:()=>R,IE:()=>m,Nl:()=>X,PR:()=>T,Rk:()=>U,Ux:()=>O,Ye:()=>S,ZF:()=>q,aQ:()=>V,jH:()=>L,jQ:()=>D,kz:()=>k,oN:()=>G,q3:()=>Y,qN:()=>v,zv:()=>j});var n=i(49186),r=i(53966),s=i(97768),o=i(70328),l=i(19419),h=i(60408),a=i(43334),u=i(58512),f=i(92722),c=i(54339);const d=()=>r.A.getLogger("esri.layers.graphics.featureConversionUtils"),y={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function m({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function p({scale:t,translate:e},i){return Math.round((e[1]-i)/t[1])}function g({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function _({scale:t,translate:e},i){return Math.round((i-e[1])/t[1])}function x({scale:t,translate:e},i,n){return i*t[n]+e[n]}function M(t,e,i){return e&&(t.hasZ=!0),i&&(t.hasM=!0),t}function w(t,e,i,n){if(e&&n&&t!==i)return(e,i,n,r)=>{n[r++]=e[i++],n[r++]=e[i++],t?i++:n[r++]=0,n[r++]=e[i++]??0};let r=+!!i+2+ +!!n,s=r-((!t&&i?1:0)+(!e&&n?1:0));return(t,e,i,n)=>{for(let o=0;o<r;++o)i[n++]=o<s?t[e++]??0:0}}function b(t,e,i){if(!t)return null;let{coords:n,hasZ:r,hasM:s}=t,[o,l]=n,h=r?n[2]:0,a=s?n[+!!r+2]:0;return{x:o,y:l,z:e?h:void 0,m:i?a:void 0}}function v(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{x:n,y:r,z:s,m:o}=t,l=[n,r];return e&&l.push(s??0),i&&l.push(o??0),new f.A([],l,e,i)}function I(t,e,i){if(null==t)return null;let{coords:n,stride:r,hasZ:s,hasM:o}=t,l=w(s,o,e,i),h=[];for(let t=0;t<n.length;t+=r){let e=[];l(n,t,e,0),h.push(e)}return M({points:h},e,i)}function T(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{points:n,hasZ:r,hasM:s}=t,o=new f.A([n.length],[],e,i),{coords:l,stride:a}=o,u=0,c=w(r??!1,s??!1,e,i);for(let t of n)c(t,0,l,u),u+=a;return o}function P(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=w(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({paths:u},e,i)}function A(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{paths:n,hasZ:r,hasM:s}=t,o=w(r??!1,s??!1,e,i),l=new f.A([],[],e,i),{lengths:a,coords:u,stride:c}=l,d=0;for(let t of n){for(let e of t)o(e,0,u,d),d+=c;a.push(t.length)}return l}function B(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=w(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({rings:u},e,i)}function S(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{rings:n,hasZ:r,hasM:s}=t,o=new f.A([],[],e,i),{lengths:l,coords:a,stride:u}=o,c=0,d=w(r??!1,s??!1,e,i);for(let t of n){for(let e of t)d(e,0,a,c),c+=u;l.push(t.length)}return o}const F=[],C=[];function R(t,e,i,n,r){F[0]=t;let[s]=Z(C,F,e,i,n,r);return W(F),W(C),s}function Z(t,e,i,r,s,o){if(W(t),!i){for(let i of e){let e=(0,c.W)(i,o);t.push(new a.Om(null,i.attributes,null,e,void 0,i.distance,i.vertexCount))}return t}switch(i){case"esriGeometryPoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?v(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryMultipoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o}=s,l=(0,h.Pv)(e),u=(0,h.W0)(e);t.push(new a.Om(e?T(e,i&&l,n&&u):null,o,null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolyline":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?A(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?S(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`)),W(t)}return t}function G(t,e,i,n){C[0]=t,N(F,C,e,i,n);let r=F[0];return W(F),W(C),r}function O(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){return null==t?null:(0,h.fT)(t)?v(t,e,i):(0,h.Bi)(t)?S(t,e,i):(0,h.Rg)(t)?A(t,e,i):(0,h.U9)(t)?T(t,e,i):void d().error("convertFromGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function j(t,e,i,r){if(null==t)return null;let s="coords"in t?t:t.geometry;if(null==s)return null;switch(e){case"esriGeometryPoint":return b(s,i,r);case"esriGeometryMultipoint":return I(s,i,r);case"esriGeometryPolyline":return P(s,i,r);case"esriGeometryPolygon":return B(s,i,r);default:return d().error("convertToGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function N(t,e,i,r,s){if(W(t),null==i)return function(t,e){for(let i of e)t.push({attributes:i.attributes});return t}(t,e);switch(i){case"esriGeometryPoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({attributes:s,geometry:b(r,i,n)});return t}(t,e,r,s);case"esriGeometryMultipoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&I(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolyline":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&P(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolygon":return function(t,e,i,n){for(let{geometry:r,attributes:s,centroid:o}of e){let e=B(r,i,n),l=b(o,!1,!1);t.push(o?{geometry:e,attributes:s,centroid:l}:{geometry:e,attributes:s})}return t}(t,e,r,s);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`))}return t}function q(t){let{spatialReference:e,transform:i,fields:n,hasM:r,hasZ:s,features:o,geometryType:l,exceededTransferLimit:h,queryGeometry:a,queryGeometryType:u}=t,f={features:N([],o,l,s,r),fields:n,geometryType:l,spatialReference:e,queryGeometry:j(a,u,s,r)};return i&&(f.transform=i),h&&(f.exceededTransferLimit=h),r&&(f.hasM=r),s&&(f.hasZ=s),f}function Y(t,e){let i=new u.A,{hasM:n,hasZ:r,features:s,spatialReference:o,geometryType:l,exceededTransferLimit:h,transform:a,fields:f,globalIdFieldName:c}=t;return f&&(i.fields=f),i.geometryType=l??null,i.spatialReference=o??null,s&&Z(i.features,s,l,r,n,e),h&&(i.exceededTransferLimit=h),n&&(i.hasM=n),r&&(i.hasZ=r),a&&(i.transform=a),c&&(i.globalIdFieldName=c),i}function L(t,e){let{geometryType:i,features:n}=e;if(!t)return e;for(let e=0;e<n.length;e++){let r=n[e],s=r.weakClone();s.geometry=X(r.geometry,i,t),s.centroid=X(r.centroid,"esriGeometryPoint",t),n[e]=s}return e.transform=t,e}function X(t,e,i,n,r,s=!1){if(null==t||!t?.coords.length)return null;let o=y[e],{coords:l,lengths:h,stride:a,hasZ:u,hasM:c}=t;n??=u,r??=c;let d=new f.A([],[],n,r),x=d.stride,M=w(u,c,n,r),b=0,v=[0,0,0,0].slice(x),I=s?g:m,T=s?_:p;function P(){M(l,b,v,0),b+=a,v[0]=I(i,v[0]),v[1]=T(i,v[1])}if(t.isPoint)return P(),d.coords.push(...v),d;let A=0;for(let t of h){if(t<o)continue;let e=1;P(),d.coords.push(...v);let[i,n]=v;for(let r=1;r<t;r++){P();let[t,r]=v;(i!==t||n!==r)&&(s||(v[0]-=i,v[1]-=n),d.coords.push(...v),i=t,n=r,e++)}e>=o?(d.lengths.push(e),A=d.coords.length):W(d.coords,A)}return W(d.coords,A),d.coords.length?d:null}function k(t,e,i,n=t.hasZ,r=t.hasM){if(!t.coords.length)return null;let s=y[e],{coords:o,lengths:l,stride:h,hasZ:a,hasM:u}=t,c=new f.A([],[],n,r),d=c.stride,m=w(a,u,n,r);if(t.isPoint)return m(o,0,c.coords,0),c;let p=0,g=i*i;for(let t of l){if(t<s){p+=t*h;continue}let e=c.coords.length/d,i=p,n=p+(t-1)*h;m(o,i,c.coords,c.coords.length),E(c.coords,o,h,g,m,i,n),m(o,n,c.coords,c.coords.length);let r=c.coords.length/d-e;r>=s?c.lengths.push(r):W(c.coords,e*d),p+=t*h}return c.coords.length?c:null}function z(t,e,i,n){let r=t[e],s=t[e+1],o=t[i],l=t[i+1],h=t[n],a=t[n+1],u=o,f=l,c=h-u,d=a-f;if(0!==c||0!==d){let t=((r-u)*c+(s-f)*d)/(c*c+d*d);t>1?(u=h,f=a):t>0&&(u+=c*t,f+=d*t)}return c=r-u,d=s-f,c*c+d*d}function E(t,e,i,n,r,s,o){let l,h=n,a=0;for(let t=s+i;t<o;t+=i)l=z(e,t,s,o),l>h&&(a=t,h=l);h>n&&(a-s>i&&E(t,e,i,n,r,s,a),r(e,a,t,t.length),o-a>i&&E(t,e,i,n,r,a,o))}function D(t,e){if(!e?.coords?.length)return null;let i=1/0,n=1/0,r=-1/0,s=-1/0,{coords:h,stride:a}=e;for(let t=0;t<h.length;t+=a){let e=h[t],o=h[t+1];i=Math.min(i,e),r=Math.max(r,e),n=Math.min(n,o),s=Math.max(s,o)}return(0,o.is)(t)?(0,o.BI)(t,i,n,r,s):(0,l.fA)(i,n,r,s,t),t}function V(t,e){let{coords:i,lengths:n,stride:r,hasZ:o,hasM:l}=t;if(!i.length)return void(n.length=0);(0,s.Lw)(e);let{originPosition:h,scale:a,translate:u}=e,f=$;f.originPosition=h;let c=f.scale;c[0]=a[0]??1,c[1]=-(a[1]??1),c[2]=a[2]??1,c[3]=a[3]??1;let d=f.translate;if(d[0]=u[0]??0,d[1]=u[1]??0,d[2]=u[2]??0,d[3]=u[3]??0,l&&!o&&(c[2]=c[3],d[2]=d[3]),!n.length){for(let t=0;t<r;++t)i[t]=x(f,i[t],t);return void(n.length=0)}let y=0;for(let t=0;t<n.length;t++){let e=n[t];n[t]=e;for(let t=0;t<r;++t)i[y+t]=x(f,i[y+t],t);let s=i[y],o=i[y+1];y+=r;for(let t=1;t<e;t++,y+=r){s+=i[y]*c[0],o+=i[y+1]*c[1],i[y]=s,i[y+1]=o;for(let t=2;t<r;++t)i[y+t]=x(f,i[y+t],t)}}}function J(t,e,i,n){let r=0,s=t[n*e],o=t[n*(e+1)];for(let l=1;l<i;l++){let i=s+t[n*(e+l)],h=o+t[n*(e+l)+1],a=(i-s)*(h+o);s=i,o=h,r+=a}return.5*r}function U(t,e){let{coords:i,lengths:n}=t,r=0,s=0;for(let t=0;t<n.length;t++){let o=n[t];s+=J(i,r,o,e),r+=o}return Math.abs(s)}function W(t,e=0){t.length!==e&&(t.length=e)}const $={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},85113(t,e,i){i.d(e,{BM:()=>T,bd:()=>P,sO:()=>I,xD:()=>f});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),l=i(43334),h=i(92722),a=i(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function f(t){return u[t]}function*c(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(let e of t.features)e&&(yield e)}}function*d(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(let e of t.coordinates)yield*e;break;case"MultiPolygon":for(let e of t.coordinates)for(let t of e)yield*t}}function y(t){for(let e of t)if(e.length>2)return!0;return!1}function m(t){let e=0;for(let i=0;i<t.length;i++){let n=t[i],r=t[(i+1)%t.length];e+=n[0]*r[1]-r[0]*n[1]}return e<=0}function p(t){let e=t[0],i=t[t.length-1];(e[0]!==i[0]||e[1]!==i[1]||e[2]!==i[2])&&t.push(e)}function g(t,e){let{coordinates:i,type:n}=t,r=e.hasZ??!1;switch(n){case"Point":return new h.A([],[...i],r,!1);case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let t=new h.A([],[],r,!1);for(let e of"Polygon"===n?[i]:i){_(t,e[0],r);for(let i=1;i<e.length;i++)x(t,e[i],r)}return t}}}function _(t,e,i){p(e),function(t){return!m(t)}(e)?w(t,e,i):M(t,e,i)}function x(t,e,i){p(e),function(t){return m(t)}(e)?w(t,e,i):M(t,e,i)}function M(t,e,i){for(let n of e)b(t,n,i);t.lengths.push(e.length)}function w(t,e,i){for(let n=e.length-1;n>=0;n--)b(t,e[n],i);t.lengths.push(e.length)}function b(t,[e,i,n],r){t.coords.push(e,i),r&&t.coords.push(n||0)}function v(t){switch(typeof t){case"string":return(0,n.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(t,e=4326){if(!t)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});let{crs:i}=t;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:e})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${e})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function T(t,e={}){let i,n=[],r=new Set,s=new Set,o=!1,l=null,h=!1,{geometryType:u=null}=e;for(let e of c(t)){let{geometry:t,properties:c,id:m}=e;if((!t||(u||=f(t.type),f(t.type)===u))&&(o||=y(d(t)),h||(h=null!=m,h&&(i=typeof m,c&&(l=Object.keys(c).filter(t=>c[t]===m)))),c&&l&&h&&null!=m&&(l.length>1?l=l.filter(t=>c[t]===m):1===l.length&&(l=c[l[0]]===m?l:[])),c))for(let t in c){if(r.has(t))continue;let e=v(c[t]);if("unknown"===e){s.add(t);continue}s.delete(t),r.add(t);let i=(0,a.rS)(t);i&&n.push({name:i,alias:t,type:e})}}let m=(0,a.rS)(1===l?.length&&l[0]||null)??void 0;if(m)for(let t of n)if(t.name===m&&(0,a.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:n,geometryType:u,hasZ:o,objectIdFieldName:m,objectIdFieldType:i,unknownFields:Array.from(s)}}function P(t,e){return Array.from(function*(t,e={}){let{geometryType:i,objectIdField:n}=e;for(let r of t){let{geometry:t,properties:s,id:o}=r;if(t&&f(t.type)!==i)continue;let h,a=s||{};n&&(h=a[n],null!=o&&!h&&(a[n]=h=o)),yield new l.Om(t&&g(t,e),a,null,h)}}(c(t),e))}},14289(t,e,i){i.r(e),i.d(e,{default:()=>B});var n=i(56507),r=i(17676),s=i(19419),o=i(21325),l=i(6774),h=i(90708),a=i(92722),u=i(83221),f=i(31464),c=i(85113);const d=new TextEncoder;class y{constructor(){this._bytes=[]}finish(){return new Uint8Array(this._bytes)}writeBooleanField(t,e){this._writeTag(t,0),this.writeVarint(+!!e)}writeDoubleField(t,e){this._writeTag(t,1);let i=new ArrayBuffer(8);new DataView(i).setFloat64(0,e,!0),this._writeBytes(new Uint8Array(i))}writeMessage(t,e,i){this._writeTag(t,2);let n=this._bytes.length;for(let t=0;t<5;t++)this._bytes.push(0);let r=this._bytes.length;e(i,this),this._writeMessageLength(n,this._bytes.length-r)}writeStringField(t,e){let i=d.encode(e);this._writeTag(t,2),this.writeVarint(i.byteLength),this._writeBytes(i)}writeSVarintField(t,e){this._writeTag(t,0),this.writeVarint(e<0?2*-e-1:2*e)}writeVarint(t){for(;t>127;)this._bytes.push(127&t|128),t=Math.floor(t/128);this._bytes.push(t)}writeVarintField(t,e){this._writeTag(t,0),this.writeVarint(e)}_writeBytes(t){for(let e of t)this._bytes.push(e)}_writeMessageLength(t,e){let i=0;for(;e>127;)this._bytes[t+i++]=127&e|128,e=Math.floor(e/128);this._bytes[t+i++]=e,this._bytes.splice(t+i,5-i)}_writeTag(t,e){this.writeVarint(t<<3|e)}}function m(t,e,i){let n=new y;return n.writeMessage(3,p,{cursor:e,extent:i,keyIndices:new Map,keys:[],name:t,valueIndices:new Map,values:[]}),Uint8Array.from(n.finish()).buffer}function p(t,e){for(e.writeVarintField(15,1),e.writeStringField(1,t.name),e.writeVarintField(5,t.extent);t.cursor.next();)e.writeMessage(2,g,t);for(let i of t.keys)e.writeStringField(3,i);for(let i of t.values)e.writeMessage(4,M,i)}function g(t,e){let i=t.cursor.getId();"number"==typeof i&&e.writeVarintField(1,i),e.writeMessage(2,_,t),e.writeVarintField(3,t.cursor.getType()),e.writeMessage(4,x,t.cursor)}function _(t,e){let i=t.cursor.getAttributes();if(i)for(let n of Object.keys(i)){let r=w(i[n]);if(null==r)continue;let s=t.keyIndices.get(n);s??(s=t.keys.length,t.keyIndices.set(n,s),t.keys.push(n));let o=`${typeof r}:${r}`,l=t.valueIndices.get(o);l??(l=t.values.length,t.valueIndices.set(o,l),t.values.push(r)),e.writeVarint(s),e.writeVarint(l)}}function x(t,e){let i=t.getType(),n=0,r=0;for(let s=0;s<t.getPathCount();s++){let o=t.getPathLength(s),l=1===i?o:1;e.writeVarint(b(1,l));let h=3===i?o-1:o;for(let o=0;o<h;o++){1===o&&1!==i&&e.writeVarint(b(2,h-1));let l=t.getX(s,o),a=t.getY(s,o);e.writeVarint(v(l-n)),e.writeVarint(v(a-r)),n=l,r=a}3===i&&e.writeVarint(b(7,1))}}function M(t,e){"string"==typeof t?e.writeStringField(1,t):"boolean"==typeof t?e.writeBooleanField(7,t):Number.isInteger(t)?t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t):e.writeDoubleField(3,t)}function w(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t?t:null==t?null:JSON.stringify(t)??null}function b(t,e){return(e<<3)+(7&t)}function v(t){return t<<1^t>>31}const I=4096,T=20037508.342787,P=2*T,A=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class B{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._tolerance=.375}destroy(){for(let{store:t}of this._stores)t.clear();this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:i},s={}){if(null==t.data)throw Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw Error("GeoJSON promoteId and generateId cannot be used together.");let o="string"==typeof t.data?(await(0,n.A)(t.data,{...i,responseType:"json",signal:s.signal})).data:t.data;(0,r.Te)(s),(0,c.sO)(o),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let l=0;for(let{geometryType:e,vectorTileGeometryType:i}of A){let n=(0,c.bd)(o,{geometryType:e,hasZ:!1}),r=S(o,e,t);if(0===n.length)continue;let s=new u.A({geometryType:e,hasM:!1,hasZ:!1}),h=[],a=0;for(let t of n){let i=F(t.geometry,e);i&&(t.objectId=l++,t.geometry=i,this._featureIds.set(t.objectId,r[a++]??null),h.push(t))}h.length>0&&(s.addMany(h),this._stores.push({geometryType:e,store:s,vectorTileGeometryType:i}))}return(0,r.Te)(s),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile({col:t,level:e,row:i},n={}){(0,r.Te)(n);let s=this._getTileFeatures(e,i,t),o=s.length>0?m(this._name,new R(s),I):new ArrayBuffer(0);return(0,r.Te)(n),{result:o,transferList:[o]}}_getTileFeatures(t,e,i){let n=P/2**t,r=i*n-20037508.342787,o=T-e*n,l=n/I,h=this._buffer*l,a=this._tolerance*l,u=[];for(let t of[-40075016.685574,0,P]){let e=(0,s.fA)(r-h-t,o-n-h,r+n+h-t,o+h),i={scale:[l,-l,1,1],translate:[r-t,o,0,0]};for(let{geometryType:t,store:n,vectorTileGeometryType:r}of this._stores)n.forEachInBounds(e,e=>{let n=C(e,t,r,i,a,this._buffer);n&&u.push({attributes:e.attributes,geometry:n,id:this._featureIds.get(e.objectId),type:r})})}return u}}function S(t,e,i){let n=[],r="FeatureCollection"===t.type?t.features:[t];for(let t=0;t<r.length;t++){let s=r[t];if(!s.geometry||(0,c.xD)(s.geometry.type)!==e)continue;let o=i.promoteId?s.properties?.[i.promoteId]:!0===i.generateId?t:s.id;n.push("number"==typeof o||"string"==typeof o?o:null)}return n}function F(t,e){return t?(0,h.Ux)((0,f.Cv)((0,h.zv)(t,e,!1,!1),o.KK,o.ch))??null:null}function C(t,e,i,n,r,s){if(!t.geometry)return null;let o=r>0?(0,h.kz)(t.geometry,e,r,!1,!1):t.geometry;return function(t,e,i){if(!t)return null;let n=new l.O3(0,0,0,8,i/8);if(n.setExtent(I),n.reset(e),1===e)for(let e=0;e<t.size;e++){let i=e*t.stride;n.moveTo(t.coords[i],t.coords[i+1])}else{let i=0;for(let r of t.lengths){n.moveTo(t.coords[i],t.coords[i+1]);for(let e=1;e<r;e++){let r=i+e*t.stride;n.lineTo(t.coords[r],t.coords[r+1])}3===e&&n.close(),i+=r*t.stride}}let r=n.result();if(!r)return null;let s=1===e?[r.length]:r.map(t=>t.length),o=[];for(let t of r)for(let e of t)o.push(e.x,e.y);return new a.A(s,o)}((0,h.Nl)(o,e,n,!1,!1,!0),i,s)}class R{constructor(t){this._features=t,this._index=-1,this._pathOffsets=[]}get _feature(){return this._features[this._index]}destroy(){}getAttributes(){return this._feature.attributes}getId(){return this._feature.id}getPathCount(){return 1===this._feature.type?1:this._feature.geometry.lengths.length}getPathLength(t){return 1===this._feature.type?this._feature.geometry.size:this._feature.geometry.lengths[t]}getType(){return this._feature.type}getX(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)]}getY(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)+1]}next(){return!(++this._index>=this._features.length||(this._pathOffsets=function(t){let e=Array(t.lengths.length),i=0;for(let n=0;n<t.lengths.length;n++)e[n]=i,i+=t.lengths[n];return e}(this._feature.geometry),0))}_getCoordinateIndex(t,e){return(1===this._feature.type?e:this._pathOffsets[t]+e)*this._feature.geometry.stride}}}}]);
|