@arcgis/core 4.25.0-next.20220916 → 4.25.0-next.20220918

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.
Files changed (78) hide show
  1. package/Ground.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/0ef22f07d0f8beba6222.js +1 -0
  4. package/assets/esri/core/workers/chunks/{84c3482fe8f336d703f8.js → 1a8d1ca45e4b250083e2.js} +1 -1
  5. package/assets/esri/core/workers/chunks/31de71018575457155e5.js +1 -0
  6. package/assets/esri/core/workers/chunks/{ed763fc352d0b55e5867.js → 59970b147f3dfe00b649.js} +1 -1
  7. package/assets/esri/core/workers/chunks/61071017da542d554661.js +1 -0
  8. package/assets/esri/core/workers/chunks/{3c9da9b88777700879aa.js → 65a17578aa31f17958e6.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{4f42e191a2f153c74a3f.js → a6e5b65d83e3cf6282fd.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{1563d950d1aed53cecf0.js → cfaf230bddf0aae2fe97.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{89fd1c03eb9d25147ea3.js → e141d9ab062183ebe065.js} +182 -172
  12. package/assets/esri/core/workers/chunks/{42bad97e16b6b04f63db.js → e208d9c34f5db4481441.js} +1 -1
  13. package/assets/esri/core/workers/chunks/e4747c5e6f5d441b2104.js +1 -0
  14. package/chunks/ChapmanAtmosphere.glsl.js +15 -15
  15. package/chunks/CloudsComposition.glsl.js +3 -3
  16. package/chunks/ColorMaterial.glsl.js +13 -13
  17. package/chunks/ComponentShader.glsl.js +14 -14
  18. package/chunks/DefaultMaterial.glsl.js +46 -43
  19. package/chunks/LineMarker.glsl.js +25 -25
  20. package/chunks/Path.glsl.js +16 -16
  21. package/chunks/Pattern.glsl.js +31 -31
  22. package/chunks/PointRenderer.glsl.js +10 -10
  23. package/chunks/RealisticTree.glsl.js +30 -30
  24. package/chunks/RibbonLine.glsl.js +46 -46
  25. package/chunks/ShadedColorMaterial.glsl.js +10 -10
  26. package/chunks/SimpleAtmosphere.glsl.js +10 -10
  27. package/chunks/Terrain.glsl.js +70 -64
  28. package/chunks/WaterSurface.glsl.js +20 -20
  29. package/geometry/support/coordsUtils.js +1 -1
  30. package/layers/ImageryLayer.js +1 -1
  31. package/layers/VoxelLayer.js +1 -1
  32. package/layers/mixins/ArcGISImageService.js +1 -1
  33. package/layers/support/VoxelTransferFunctionStyle.js +1 -1
  34. package/layers/support/VoxelVariableStyle.js +1 -1
  35. package/layers/support/VoxelVolumeStyle.js +1 -1
  36. package/package.json +1 -1
  37. package/rest/networkService.js +1 -1
  38. package/rest/support/generateRendererUtils.js +1 -1
  39. package/support/revision.js +1 -1
  40. package/symbols/cim/CIMSymbolHelper.js +1 -1
  41. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  42. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  43. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  44. package/views/3d/support/debugFlags.js +1 -1
  45. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  46. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  47. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  48. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +5 -3
  49. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +6 -6
  50. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +3 -3
  51. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +8 -3
  52. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +3 -3
  53. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +9 -9
  54. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +7 -7
  55. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +13 -13
  56. package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +2 -2
  57. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +5 -5
  58. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  59. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +10 -10
  60. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +9 -9
  61. package/views/3d/webgl-engine/core/shaderLibrary/util/DecodeNormal.glsl.js +2 -2
  62. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  63. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  64. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  65. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  66. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  67. package/views/3d/webgl-engine/shaders/Path.glsl.js +1 -1
  68. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  69. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  70. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  71. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  72. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  73. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  74. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  75. package/assets/esri/core/workers/chunks/11ec22f9802dcf843190.js +0 -1
  76. package/assets/esri/core/workers/chunks/16248ba2dc44761fcd7c.js +0 -1
  77. package/assets/esri/core/workers/chunks/e7748cefefcc95a4bbe4.js +0 -1
  78. package/assets/esri/core/workers/chunks/f142e3ea26f5e060ff1e.js +0 -1
package/Ground.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.25/esri/copyright.txt for details.
4
4
  */
5
- import{_ as r}from"./chunks/tslib.es6.js";import e from"./Color.js";import o from"./core/Collection.js";import{referenceSetter as t}from"./core/collectionUtils.js";import{typeCast as s}from"./core/compilerUtils.js";import a from"./core/Error.js";import{JSONSupportMixin as i}from"./core/JSONSupport.js";import{clone as n}from"./core/lang.js";import l from"./core/Loadable.js";import{loadAll as p}from"./core/loadAll.js";import c from"./core/Logger.js";import{throwIfAborted as y,eachAlways as u}from"./core/promiseUtils.js";import{property as d}from"./core/accessorSupport/decorators/property.js";import{Integer as m}from"./core/accessorSupport/ensureType.js";import{subclass as f}from"./core/accessorSupport/decorators/subclass.js";import{writer as h}from"./core/accessorSupport/decorators/writer.js";import{NavigationConstraint as g}from"./ground/NavigationConstraint.js";import v from"./views/3d/support/debugFlags.js";import{transparencyToOpacity as j,opacityToTransparency as w}from"./webdoc/support/opacityUtils.js";var C;let S=C=class extends(i(l)){constructor(r){super(r),this.opacity=1,this.shading=!v.TERRAIN_SHADING_DISABLE,this.surfaceColor=null,this.navigationConstraint=null,this.layers=new o;const e=r=>{r.parent&&r.parent!==this&&"remove"in r.parent&&r.parent.remove(r),r.parent=this,"elevation"!==r.type&&"base-elevation"!==r.type&&c.getLogger(this.declaredClass).error(`Layer '${r.title}, id:${r.id}' of type '${r.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)},t=r=>{r.parent=null};this.layers.on("after-add",(r=>e(r.item))),this.layers.on("after-remove",(r=>t(r.item)))}initialize(){this.when().catch((r=>{c.getLogger(this.declaredClass).error("#load()","Failed to load ground",r)})),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const r=this.layers.removeAll();for(const e of r)e.destroy();this.layers.destroy()}normalizeCtorArgs(r){return r&&"resourceInfo"in r&&(this._set("resourceInfo",r.resourceInfo),delete(r={...r}).resourceInfo),r}set layers(r){this._set("layers",t(r,this._get("layers")))}writeLayers(r,e,o,t){const i=[];r?(t={...t,layerContainerType:"ground"},r.forEach((r=>{if("write"in r){const e={};s(r)().write(e,t)&&i.push(e)}else t&&t.messages&&t.messages.push(new a("layer:unsupported",`Layers (${r.title}, ${r.id}) of type '${r.declaredClass}' cannot be persisted in the ground`,{layer:r}))})),e.layers=i):e.layers=i}load(r){return this.addResolvingPromise(this._loadFromSource(r)),Promise.resolve(this)}loadAll(){return p(this,(r=>{r(this.layers)}))}async queryElevation(r,e){await this.load({signal:e?.signal});const{ElevationQuery:o}=await import("./layers/support/ElevationQuery.js");y(e);const t=new o,s=this.layers.filter(A).toArray();return t.queryAll(s,r,e)}async createElevationSampler(r,e){await this.load({signal:e?.signal});const{ElevationQuery:o}=await import("./layers/support/ElevationQuery.js");y(e);const t=new o,s=this.layers.filter(A).toArray();return t.createSamplerAll(s,r,e)}clone(){const r={opacity:this.opacity,surfaceColor:n(this.surfaceColor),navigationConstraint:n(this.navigationConstraint),layers:this.layers.slice()};return this.loaded&&(r.loadStatus="loaded"),new C({resourceInfo:this.resourceInfo}).set(r)}read(r,e){this.resourceInfo||this._set("resourceInfo",{data:r,context:e}),super.read(r,e)}_loadFromSource(r){const e=this.resourceInfo;return e?this._loadLayersFromJSON(e.data,e.context,r):Promise.resolve(null)}_loadLayersFromJSON(r,e,o){const t=e&&e.origin||"web-scene",s=e&&e.portal||null,a=e&&e.url||null;return import("./layers/support/layersCreator.js").then((({populateOperationalLayers:e})=>{y(o);const i=[];if(r.layers&&Array.isArray(r.layers)){const o={context:{origin:t,url:a,portal:s,layerContainerType:"ground"},defaultLayerType:"ArcGISTiledElevationServiceLayer"};i.push(e(this.layers,r.layers,o))}return u(i)})).then((()=>{}))}};function I(r){return r&&"createElevationSampler"in r}function A(r){return"elevation"===r.type||I(r)}r([d({json:{read:!1}})],S.prototype,"layers",null),r([h("layers")],S.prototype,"writeLayers",null),r([d({readOnly:!0})],S.prototype,"resourceInfo",void 0),r([d({type:Number,nonNullable:!0,range:{min:0,max:1},json:{type:m,read:{reader:j,source:"transparency"},write:{writer:(r,e)=>{e.transparency=w(r)},target:"transparency"}}})],S.prototype,"opacity",void 0),r([d({type:Boolean,nonNullable:!0,json:{read:!1}})],S.prototype,"shading",void 0),r([d({type:e,json:{type:[m],write:(r,e)=>{e.surfaceColor=r.toJSON().slice(0,3)}}})],S.prototype,"surfaceColor",void 0),r([d({type:g,json:{write:!0}})],S.prototype,"navigationConstraint",void 0),S=C=r([f("esri.Ground")],S);const L=S;export{L as default};
5
+ import{_ as r}from"./chunks/tslib.es6.js";import e from"./Color.js";import o from"./core/Collection.js";import{referenceSetter as t}from"./core/collectionUtils.js";import{typeCast as s}from"./core/compilerUtils.js";import a from"./core/Error.js";import{JSONSupportMixin as i}from"./core/JSONSupport.js";import{clone as n}from"./core/lang.js";import l from"./core/Loadable.js";import{loadAll as p}from"./core/loadAll.js";import c from"./core/Logger.js";import{throwIfAborted as y,eachAlways as u}from"./core/promiseUtils.js";import{property as d}from"./core/accessorSupport/decorators/property.js";import{Integer as m}from"./core/accessorSupport/ensureType.js";import{subclass as f}from"./core/accessorSupport/decorators/subclass.js";import{writer as h}from"./core/accessorSupport/decorators/writer.js";import{NavigationConstraint as g}from"./ground/NavigationConstraint.js";import v from"./views/3d/support/debugFlags.js";import{transparencyToOpacity as j,opacityToTransparency as w}from"./webdoc/support/opacityUtils.js";var C;let S=C=class extends(i(l)){constructor(r){super(r),this.opacity=1,this.shading=!v.TERRAIN_USE_LEGACY_SHADING,this.surfaceColor=null,this.navigationConstraint=null,this.layers=new o;const e=r=>{r.parent&&r.parent!==this&&"remove"in r.parent&&r.parent.remove(r),r.parent=this,"elevation"!==r.type&&"base-elevation"!==r.type&&c.getLogger(this.declaredClass).error(`Layer '${r.title}, id:${r.id}' of type '${r.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)},t=r=>{r.parent=null};this.layers.on("after-add",(r=>e(r.item))),this.layers.on("after-remove",(r=>t(r.item)))}initialize(){this.when().catch((r=>{c.getLogger(this.declaredClass).error("#load()","Failed to load ground",r)})),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const r=this.layers.removeAll();for(const e of r)e.destroy();this.layers.destroy()}normalizeCtorArgs(r){return r&&"resourceInfo"in r&&(this._set("resourceInfo",r.resourceInfo),delete(r={...r}).resourceInfo),r}set layers(r){this._set("layers",t(r,this._get("layers")))}writeLayers(r,e,o,t){const i=[];r?(t={...t,layerContainerType:"ground"},r.forEach((r=>{if("write"in r){const e={};s(r)().write(e,t)&&i.push(e)}else t&&t.messages&&t.messages.push(new a("layer:unsupported",`Layers (${r.title}, ${r.id}) of type '${r.declaredClass}' cannot be persisted in the ground`,{layer:r}))})),e.layers=i):e.layers=i}load(r){return this.addResolvingPromise(this._loadFromSource(r)),Promise.resolve(this)}loadAll(){return p(this,(r=>{r(this.layers)}))}async queryElevation(r,e){await this.load({signal:e?.signal});const{ElevationQuery:o}=await import("./layers/support/ElevationQuery.js");y(e);const t=new o,s=this.layers.filter(A).toArray();return t.queryAll(s,r,e)}async createElevationSampler(r,e){await this.load({signal:e?.signal});const{ElevationQuery:o}=await import("./layers/support/ElevationQuery.js");y(e);const t=new o,s=this.layers.filter(A).toArray();return t.createSamplerAll(s,r,e)}clone(){const r={opacity:this.opacity,surfaceColor:n(this.surfaceColor),navigationConstraint:n(this.navigationConstraint),layers:this.layers.slice()};return this.loaded&&(r.loadStatus="loaded"),new C({resourceInfo:this.resourceInfo}).set(r)}read(r,e){this.resourceInfo||this._set("resourceInfo",{data:r,context:e}),super.read(r,e)}_loadFromSource(r){const e=this.resourceInfo;return e?this._loadLayersFromJSON(e.data,e.context,r):Promise.resolve(null)}_loadLayersFromJSON(r,e,o){const t=e&&e.origin||"web-scene",s=e&&e.portal||null,a=e&&e.url||null;return import("./layers/support/layersCreator.js").then((({populateOperationalLayers:e})=>{y(o);const i=[];if(r.layers&&Array.isArray(r.layers)){const o={context:{origin:t,url:a,portal:s,layerContainerType:"ground"},defaultLayerType:"ArcGISTiledElevationServiceLayer"};i.push(e(this.layers,r.layers,o))}return u(i)})).then((()=>{}))}};function I(r){return r&&"createElevationSampler"in r}function A(r){return"elevation"===r.type||I(r)}r([d({json:{read:!1}})],S.prototype,"layers",null),r([h("layers")],S.prototype,"writeLayers",null),r([d({readOnly:!0})],S.prototype,"resourceInfo",void 0),r([d({type:Number,nonNullable:!0,range:{min:0,max:1},json:{type:m,read:{reader:j,source:"transparency"},write:{writer:(r,e)=>{e.transparency=w(r)},target:"transparency"}}})],S.prototype,"opacity",void 0),r([d({type:Boolean,nonNullable:!0,json:{read:!1}})],S.prototype,"shading",void 0),r([d({type:e,json:{type:[m],write:(r,e)=>{e.surfaceColor=r.toJSON().slice(0,3)}}})],S.prototype,"surfaceColor",void 0),r([d({type:g,json:{write:!0}})],S.prototype,"navigationConstraint",void 0),S=C=r([f("esri.Ground")],S);const L=S;export{L as default};
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={apiKey:void 0,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",portalUrl:"https://www.arcgis.com",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:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}})},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(e,t,n)}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,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.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)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(19153);const i={info:0,warn:1,error:2,none:3};class a{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,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.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(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){let n=e.length!==t.length;e.length=t.length;for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);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",n.includes("Konqueror")?r: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",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.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 globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=(n(80442),n(70586)),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(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 b(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,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>S,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>j,gx:()=>P,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function P(e){return k(e)?e:Promise.resolve(e)}function S(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=P(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=P(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}async function j(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>j,D6:()=>U,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>B,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>A,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>L,mN:()=>P,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>S,v_:()=>D,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{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=(0,i.j0)(this.uri.match(g));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=(0,i.j0)(this.authority.match(m)),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 w={};let v=new y(r.Z.applicationUrl);let _=function(){const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`}();const O=()=>v,k=()=>_;function P(e){const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=S(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function S(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),P(n)}function E(e){const t=N(e);let n,r;if(t){const e=M(t.proxyUrl);n=e.path,r=e.query?S(e.query):null}if(n){const t=P(e);e=n+"?"+t.path;const o=j({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function T(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:T(e.urlPrefix)},n=c.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function N(e){const t=c.proxyRules,n=T(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function U(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function L(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(U(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(U(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===B(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(D("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=r.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!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)){const t=M(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function D(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return null!=e&&h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function B(e,t=!1){if(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ce(e,t){if(!e)return"";const n=P(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=P(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function he(e,t,n){const r=P(e),o=r.query||{};return o[t]=String(n),`${r.path}?${j(o)}`}function pe(e,t){const n=P(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=j(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(9293),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(3419),n.e(8833),n.e(4807),n.e(8850)]).then(n.bind(n,14478)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(4599),n.e(3419),n.e(8833),n.e(4807),n.e(6891)]).then(n.bind(n,4955)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(802)]).then(n.bind(n,10802)),Pipeline:()=>Promise.all([n.e(4547),n.e(1878),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(4599),n.e(3419),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(3419),n.e(6481),n.e(212),n.e(5259)]).then(n.bind(n,65381)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(9293),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?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(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t,n){this._port=e,this._getNextJob=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(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 c(e,t,n,o){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(s=u(o),t.data=n):(s=u(n.transferList),t.data=n.result),s?e.postMessage(t,s):e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20220916",o="1a1afd096ff98b3885e0ccc458f39c90e652f635"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"505a79b67bbb515b5fd2",98:"6c076fb126d2363c903b",212:"f436c86f86236ea7ea04",223:"36dd5654df5c7f00406d",247:"9d9e3a38c54c41f7764c",402:"f3a71f9c6bc5849b6862",556:"b7560e2989d151b9dd47",565:"c0142d207900d8b40b46",576:"7fdd029a76a7ab1c3d83",577:"a618a52ccaf08e30b82d",586:"0059699bf824f851d51c",639:"f607bb297787cc5987f5",661:"bee19483591ff9994495",665:"fb1d0ac4b4f45830e5cf",739:"b3aa600c37450acd8640",802:"dae39baaab110eafce8b",812:"a6bca595116302fc142a",819:"d1ead6e8aa7e8e21fbc6",837:"323a32a96719a7783b63",903:"6654f9180c8a1bf6d34e",1070:"3035bd57a1f76fae26a4",1074:"1dcdde67304e8fe11fc0",1387:"fddd4ea487788e003fb1",1400:"4edde17d8a157f95763e",1408:"1b85698e8b9f6bf58a46",1412:"bd889006640e5c675a43",1421:"6196cfdeb91ceba52af3",1423:"d31bbb13af45ce8e45dc",1433:"4d5bdf18feeb9c8cb6ff",1437:"2af920691b2d710b52b8",1491:"5d0f6daccc381abf7933",1534:"929688a0d9d3364d7833",1562:"14ea96e398f4842abe4e",1761:"9d0362b82f06705b298f",1773:"cc7686c338b28ffde40a",1785:"3b5be512567d9c1c6fe6",1819:"5b16b30ac3166f33e81e",1878:"b532f9aef9a9f3ec1696",2062:"51289d2f5277af4023e9",2133:"1c0e1c0d8db1fa6a6565",2134:"cb2dc84d972469445da6",2533:"89fd1c03eb9d25147ea3",2664:"f4fd5851cb74de9e060b",2855:"c270e544f14617de4955",3027:"2e44aee22e70857b893c",3121:"2a22ce18486ee8160d8f",3172:"f2d65c54a65f3f2d30d9",3230:"d75fcf97569beebbdf0c",3281:"4a38075c222024cf746d",3359:"de128d8a643b4297940b",3388:"169f4354a375db5de121",3419:"f142e3ea26f5e060ff1e",3492:"1596b8a7b9c6533684d3",3529:"0d9abf3dda540ad5a174",3645:"f684794c7fd8267f5331",3668:"426af64371bc3d0e7261",3758:"4f42e191a2f153c74a3f",3810:"cb020d3d48ada0da4c6f",3852:"b71a0a8a2f446c671161",4028:"42bad97e16b6b04f63db",4133:"d23f2b797c3ad0d83352",4166:"87c78e7b6a107081bc7a",4210:"01a6005569d0820992a0",4242:"1563d950d1aed53cecf0",4268:"a17914dcee7d7d49bf71",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"3248c8e2a523d23b7277",4436:"2ed23dd5fbb4e02ae101",4475:"988a142646a0b05c9814",4499:"5035c5d268a786f65882",4547:"3900c702242358c5d00e",4588:"72cb60f688aa1f7348a0",4599:"e6c66a61b7b5ac4aef54",4685:"e51b2768527e1aee1379",4695:"cfd83bad25be40fe14e9",4807:"b8985db9bfb7a59638ef",4889:"16e9bd57f774944d0bf8",4960:"7d0929d327070e00fbc7",5207:"62377931ab90648e02da",5235:"4e4cfd13ad3401f14183",5259:"b19ee9436a2a9551987d",5329:"0e21e5b4d065567a6a91",5348:"dc947cebe9a634b3cab1",5587:"77d52ec851c330b516bb",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"36c468c5ccc4ea71ed78",5886:"9662da3e1e37f3445186",6233:"82b04846512f4001de3d",6237:"b686422160ea7e7ff5bb",6406:"f3be17d37b3d1aa90505",6448:"c243d6a8955dde91e75e",6459:"54e98e4d2ccf6c365e62",6481:"1570676351a313f1841b",6584:"05f761a78224990cea70",6710:"d828a0656e7351a74fc4",6748:"421241543afbc9a619ea",6774:"c8402e32307a7b7eaaeb",6810:"9bbcf17003f5650c4d96",6841:"16248ba2dc44761fcd7c",6891:"48aa432e1bf60c68de14",6925:"e7748cefefcc95a4bbe4",6968:"393cb7ab48468158269c",7035:"d0e6568f4a90a68235b4",7049:"0bdd6470856f859562f8",7126:"a8b66d0a3418896f6581",7202:"bf84189bd9bf3de81df9",7269:"8bab21bc6164a593278f",7272:"021ff024cdde143c66c7",7277:"8ba83fee56dd4f306d87",7374:"d65cc4a7c84af604ccf5",7459:"7d8bebbd36e7e1148a67",7483:"9f31ab2247c9defb882c",7541:"8ee976e761c4124a2a75",7572:"25827c46756a4069b221",7631:"0657ebbe3b1923d1eefb",7845:"8179031362a3b32545a1",7873:"4c989506b46bfec9c5ed",7948:"471238134f41747cd1af",8050:"5bb7da0cd9ef5e34287d",8062:"3be3de163581413e215d",8071:"31ad55833cb4c6d20c52",8096:"3c9da9b88777700879aa",8227:"ee04b1c0c42cb1b18b24",8244:"40ede4078b22791344a6",8326:"18ed245b56089d35c558",8363:"92409748c19c24038548",8636:"f5d10ea7b8888f822b0c",8694:"2d70499eacbd1d2a33a7",8758:"6693e43af546e6eb3f16",8828:"a234c056b1f872976a95",8833:"8b8a813f5e6d6551a816",8850:"2be65d7a2751acca3860",8889:"07b082211215c167c835",8899:"289407f6010ac0ac5ac2",9070:"f67357b3c6c591c9da5e",9138:"11ec22f9802dcf843190",9169:"76b75ac18c8239687321",9268:"2c4938512dd726a177dd",9291:"ed763fc352d0b55e5867",9293:"84c3482fe8f336d703f8",9296:"9a7c08c3464f7e0f72b9",9324:"db7c3145ec95fbae7c8e",9795:"4577d03ca2bb6fffcb49",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9904:"cf3e1ac63580bc495ea6",9965:"f44e4219dff47e6ec0b1"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={apiKey:void 0,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",portalUrl:"https://www.arcgis.com",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:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}})},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(e,t,n)}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,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.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)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(19153);const i={info:0,warn:1,error:2,none:3};class a{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,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.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(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){let n=e.length!==t.length;e.length=t.length;for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);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",n.includes("Konqueror")?r: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",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.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 globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=(n(80442),n(70586)),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(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 b(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,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>S,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>j,gx:()=>P,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function P(e){return k(e)?e:Promise.resolve(e)}function S(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=P(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=P(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}async function j(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>j,D6:()=>U,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>B,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>A,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>L,mN:()=>P,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>S,v_:()=>D,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{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=(0,i.j0)(this.uri.match(g));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=(0,i.j0)(this.authority.match(m)),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 w={};let v=new y(r.Z.applicationUrl);let _=function(){const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`}();const O=()=>v,k=()=>_;function P(e){const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=S(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function S(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),P(n)}function E(e){const t=N(e);let n,r;if(t){const e=M(t.proxyUrl);n=e.path,r=e.query?S(e.query):null}if(n){const t=P(e);e=n+"?"+t.path;const o=j({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function T(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:T(e.urlPrefix)},n=c.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function N(e){const t=c.proxyRules,n=T(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function U(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function L(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(U(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(U(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===B(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(D("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=r.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!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)){const t=M(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function D(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return null!=e&&h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function B(e,t=!1){if(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ce(e,t){if(!e)return"";const n=P(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=P(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function he(e,t,n){const r=P(e),o=r.query||{};return o[t]=String(n),`${r.path}?${j(o)}`}function pe(e,t){const n=P(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=j(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(8850)]).then(n.bind(n,14478)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(4599),n.e(3419),n.e(8833),n.e(4807),n.e(6891)]).then(n.bind(n,4955)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(802)]).then(n.bind(n,10802)),Pipeline:()=>Promise.all([n.e(4547),n.e(1878),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(4599),n.e(3419),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(6481),n.e(212),n.e(5259)]).then(n.bind(n,65381)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?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(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t,n){this._port=e,this._getNextJob=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(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 c(e,t,n,o){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(s=u(o),t.data=n):(s=u(n.transferList),t.data=n.result),s?e.postMessage(t,s):e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20220918",o="331b87097e803f4f628311c16139b53e95331f9d"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"505a79b67bbb515b5fd2",98:"6c076fb126d2363c903b",212:"f436c86f86236ea7ea04",223:"36dd5654df5c7f00406d",247:"9d9e3a38c54c41f7764c",402:"f3a71f9c6bc5849b6862",556:"b7560e2989d151b9dd47",565:"c0142d207900d8b40b46",576:"7fdd029a76a7ab1c3d83",577:"a618a52ccaf08e30b82d",586:"0059699bf824f851d51c",639:"f607bb297787cc5987f5",661:"bee19483591ff9994495",665:"fb1d0ac4b4f45830e5cf",739:"b3aa600c37450acd8640",802:"dae39baaab110eafce8b",812:"a6bca595116302fc142a",819:"d1ead6e8aa7e8e21fbc6",837:"323a32a96719a7783b63",903:"6654f9180c8a1bf6d34e",1070:"3035bd57a1f76fae26a4",1074:"1dcdde67304e8fe11fc0",1387:"fddd4ea487788e003fb1",1400:"4edde17d8a157f95763e",1408:"1b85698e8b9f6bf58a46",1412:"bd889006640e5c675a43",1421:"6196cfdeb91ceba52af3",1423:"d31bbb13af45ce8e45dc",1433:"4d5bdf18feeb9c8cb6ff",1437:"2af920691b2d710b52b8",1491:"5d0f6daccc381abf7933",1534:"929688a0d9d3364d7833",1562:"14ea96e398f4842abe4e",1761:"9d0362b82f06705b298f",1773:"cc7686c338b28ffde40a",1785:"3b5be512567d9c1c6fe6",1819:"5b16b30ac3166f33e81e",1878:"b532f9aef9a9f3ec1696",2062:"51289d2f5277af4023e9",2133:"1c0e1c0d8db1fa6a6565",2134:"cb2dc84d972469445da6",2533:"e141d9ab062183ebe065",2664:"f4fd5851cb74de9e060b",2855:"c270e544f14617de4955",3027:"2e44aee22e70857b893c",3121:"2a22ce18486ee8160d8f",3172:"f2d65c54a65f3f2d30d9",3230:"d75fcf97569beebbdf0c",3281:"4a38075c222024cf746d",3359:"de128d8a643b4297940b",3388:"169f4354a375db5de121",3419:"61071017da542d554661",3492:"1596b8a7b9c6533684d3",3529:"0d9abf3dda540ad5a174",3645:"f684794c7fd8267f5331",3668:"426af64371bc3d0e7261",3758:"a6e5b65d83e3cf6282fd",3810:"cb020d3d48ada0da4c6f",3847:"1a8d1ca45e4b250083e2",3852:"b71a0a8a2f446c671161",4028:"e208d9c34f5db4481441",4133:"d23f2b797c3ad0d83352",4166:"87c78e7b6a107081bc7a",4210:"01a6005569d0820992a0",4242:"cfaf230bddf0aae2fe97",4268:"a17914dcee7d7d49bf71",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"3248c8e2a523d23b7277",4436:"2ed23dd5fbb4e02ae101",4475:"988a142646a0b05c9814",4499:"5035c5d268a786f65882",4547:"3900c702242358c5d00e",4588:"72cb60f688aa1f7348a0",4599:"e6c66a61b7b5ac4aef54",4685:"e51b2768527e1aee1379",4695:"cfd83bad25be40fe14e9",4807:"b8985db9bfb7a59638ef",4889:"16e9bd57f774944d0bf8",4960:"7d0929d327070e00fbc7",5207:"62377931ab90648e02da",5235:"4e4cfd13ad3401f14183",5259:"b19ee9436a2a9551987d",5329:"0e21e5b4d065567a6a91",5348:"dc947cebe9a634b3cab1",5587:"77d52ec851c330b516bb",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"36c468c5ccc4ea71ed78",5886:"9662da3e1e37f3445186",6233:"82b04846512f4001de3d",6237:"b686422160ea7e7ff5bb",6406:"f3be17d37b3d1aa90505",6448:"c243d6a8955dde91e75e",6459:"54e98e4d2ccf6c365e62",6481:"1570676351a313f1841b",6584:"05f761a78224990cea70",6710:"d828a0656e7351a74fc4",6748:"421241543afbc9a619ea",6774:"c8402e32307a7b7eaaeb",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6891:"48aa432e1bf60c68de14",6925:"e4747c5e6f5d441b2104",6968:"393cb7ab48468158269c",7035:"d0e6568f4a90a68235b4",7049:"0bdd6470856f859562f8",7126:"a8b66d0a3418896f6581",7202:"bf84189bd9bf3de81df9",7269:"8bab21bc6164a593278f",7272:"021ff024cdde143c66c7",7277:"8ba83fee56dd4f306d87",7374:"d65cc4a7c84af604ccf5",7459:"7d8bebbd36e7e1148a67",7483:"9f31ab2247c9defb882c",7541:"8ee976e761c4124a2a75",7572:"25827c46756a4069b221",7631:"0657ebbe3b1923d1eefb",7845:"8179031362a3b32545a1",7873:"4c989506b46bfec9c5ed",7948:"471238134f41747cd1af",8050:"5bb7da0cd9ef5e34287d",8062:"3be3de163581413e215d",8071:"31ad55833cb4c6d20c52",8096:"65a17578aa31f17958e6",8227:"ee04b1c0c42cb1b18b24",8244:"40ede4078b22791344a6",8326:"18ed245b56089d35c558",8363:"92409748c19c24038548",8636:"f5d10ea7b8888f822b0c",8694:"2d70499eacbd1d2a33a7",8758:"6693e43af546e6eb3f16",8828:"a234c056b1f872976a95",8833:"8b8a813f5e6d6551a816",8850:"2be65d7a2751acca3860",8889:"07b082211215c167c835",8899:"289407f6010ac0ac5ac2",9070:"f67357b3c6c591c9da5e",9138:"0ef22f07d0f8beba6222",9169:"76b75ac18c8239687321",9268:"2c4938512dd726a177dd",9291:"59970b147f3dfe00b649",9296:"9a7c08c3464f7e0f72b9",9324:"db7c3145ec95fbae7c8e",9795:"4577d03ca2bb6fffcb49",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9904:"cf3e1ac63580bc495ea6",9965:"f44e4219dff47e6ec0b1"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9138,661,7459],{92835:(e,t,r)=>{r.d(t,{Z:()=>m});var i,s=r(43697),n=r(96674),o=r(70586),a=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),p=r(30556);let h=i=class extends n.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return d}static get empty(){return y}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,i=(0,o.pC)(e.start)?e.start.getTime():e.start,s=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===i&&r===s}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.yw)(this.start,(t=>(0,a.JE)(t,e))),r=(0,o.yw)(this.end,(t=>{const r=(0,a.JE)(t,e);return t.getTime()===r.getTime()?r:(0,a.Nm)(r,1,e)}));return new i({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),s=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),n=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let a,l;if(s>=t&&s<=r?a=s:t>=s&&t<=n&&(a=t),r>=s&&r<=n?l=r:n>=t&&n<=r&&(l=n),null!=a&&null!=l&&!isNaN(a)&&!isNaN(l)){const e=new i;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new i,{start:s,end:n}=this;return(0,o.pC)(s)&&(r.start=(0,a.Nm)(s,e,t)),(0,o.pC)(n)&&(r.end=(0,a.Nm)(n,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,s._)([(0,u.r)("end")],h.prototype,"readEnd",null),(0,s._)([(0,p.c)("end")],h.prototype,"writeEnd",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,s._)([(0,u.r)("start")],h.prototype,"readStart",null),(0,s._)([(0,p.c)("start")],h.prototype,"writeStart",null),h=i=(0,s._)([(0,c.j)("esri.TimeExtent")],h);const d=new h,y=new h({start:void 0,end:void 0}),m=h},46521:(e,t,r)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function s(e,t){return new Float64Array(e,t,9)}r.d(t,{a:()=>s,c:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,create:i,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},fromValues:function(e,t,r,i,s,n,o,a,l){return[e,t,r,i,s,n,o,a,l]},createView:s},Symbol.toStringTag,{value:"Module"}))},25929:(e,t,r)=>{r.d(t,{M:()=>m,a:()=>g,e:()=>d,f:()=>n,i:()=>p,p:()=>h,r:()=>a,t:()=>o,w:()=>l});var i=r(70586),s=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,s.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,s.PF)(e,t.portalItem.itemUrl);null!=r&&c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return y(e,t&&t.portal)}function o(e,t,r=m.YES){if(null==e)return e;!(0,s.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let i=(0,s.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const n=y(r,t.portal);i=(0,s.PF)(y(i,t.portal),n,n),null!=i&&i!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(i)}}return i=d(i,t?.portal),(0,s.YP)(i)&&(i=(0,s.Fv)(i)),t?.resources&&t?.portalItem&&!(0,s.YP)(i)&&!(0,s.HK)(i)&&r===m.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(i),compress:!1}),i}function a(e,t,r){return n(e,r)}function l(e,t,r,i){const s=o(e,i);void 0!==s&&(t[r]=s)}const u=/\/items\/([^\/]+)\/resources\/(.*)/,c=/^\.\/resources\//;function p(e){return(e?.match(u)??null)?.[1]??null}function h(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,s.fZ)(r);return{prefix:null,filename:e,extension:(0,i.Wg)(t)}}const{path:o,extension:a}=(0,s.fZ)(r.slice(n+1));return{prefix:r.slice(0,n),filename:o,extension:(0,i.Wg)(a)}}function d(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,s.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function y(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,i=(0,s.TI)();return(0,s.D6)(i,`${i.scheme}://${r}`)?(0,s.Ie)(e,t.portalHostname,r):(0,s.Ie)(e,r,t.portalHostname)}var m,f;(f=m||(m={}))[f.YES=0]="YES",f[f.NO=1]="NO";const g=Object.freeze(Object.defineProperty({__proto__:null,fromJSON:n,toJSON:o,read:a,write:l,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:h,ensureMainOnlineDomain:d,get MarkKeep(){return m}},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,r)=>{r.d(t,{c:()=>d,g:()=>c,j:()=>V,k:()=>m,m:()=>p,s:()=>u});var i=r(46521),s=r(94961),n=r(65617),o=r(46851),a=r(17896),l=r(98766);function u(e,t,r){r*=.5;const i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),i=Math.sin(r/2);return i>(0,o.g)()?(e[0]=t[0]/i,e[1]=t[1]/i,e[2]=t[2]/i):(e[0]=1,e[1]=0,e[2]=0),r}function p(e,t,r){const i=t[0],s=t[1],n=t[2],o=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=i*c+o*a+s*u-n*l,e[1]=s*c+o*l+n*a-i*u,e[2]=n*c+o*u+i*l-s*a,e[3]=o*c-i*a-s*l-n*u,e}function h(e,t,r,i){const s=t[0],n=t[1],a=t[2],l=t[3];let u,c,p,h,d,y=r[0],m=r[1],f=r[2],g=r[3];return c=s*y+n*m+a*f+l*g,c<0&&(c=-c,y=-y,m=-m,f=-f,g=-g),1-c>(0,o.g)()?(u=Math.acos(c),p=Math.sin(u),h=Math.sin((1-i)*u)/p,d=Math.sin(i*u)/p):(h=1-i,d=i),e[0]=h*s+d*y,e[1]=h*n+d*m,e[2]=h*a+d*f,e[3]=h*l+d*g,e}function d(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const r=t[0]+t[4]+t[8];let i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const s=(r+1)%3,n=(r+2)%3;i=Math.sqrt(t[3*r+r]-t[3*s+s]-t[3*n+n]+1),e[r]=.5*i,i=.5/i,e[3]=(t[3*s+n]-t[3*n+s])*i,e[s]=(t[3*s+r]+t[3*r+s])*i,e[n]=(t[3*n+r]+t[3*r+n])*i}return e}function m(e,t,r,i){const s=.5*Math.PI/180;t*=s,r*=s,i*=s;const n=Math.sin(t),o=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(i),c=Math.cos(i);return e[0]=n*l*c-o*a*u,e[1]=o*a*c+n*l*u,e[2]=o*l*u-n*a*c,e[3]=o*l*c+n*a*u,e}const f=l.c,g=l.s,b=l.a,v=p,_=l.b,S=l.d,w=l.l,x=l.e,C=x,j=l.f,I=j,M=l.n,V=l.g,E=l.h,A=(0,n.c)(),R=(0,n.f)(1,0,0),O=(0,n.f)(0,1,0),D=(0,s.a)(),L=(0,s.a)(),T=(0,i.c)();Object.freeze(Object.defineProperty({__proto__:null,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},setAxisAngle:u,getAxisAngle:c,multiply:p,rotateX:function(e,t,r){r*=.5;const i=t[0],s=t[1],n=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+o*a,e[1]=s*l+n*a,e[2]=n*l-s*a,e[3]=o*l-i*a,e},rotateY:function(e,t,r){r*=.5;const i=t[0],s=t[1],n=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l-n*a,e[1]=s*l+o*a,e[2]=n*l+i*a,e[3]=o*l-s*a,e},rotateZ:function(e,t,r){r*=.5;const i=t[0],s=t[1],n=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+s*a,e[1]=s*l-i*a,e[2]=n*l+o*a,e[3]=o*l-n*a,e},calculateW:function(e,t){const r=t[0],i=t[1],s=t[2];return e[0]=r,e[1]=i,e[2]=s,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-s*s)),e},slerp:h,random:function(e){const t=o.R,r=t(),i=t(),s=t(),n=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=n*Math.sin(2*Math.PI*i),e[1]=n*Math.cos(2*Math.PI*i),e[2]=a*Math.sin(2*Math.PI*s),e[3]=a*Math.cos(2*Math.PI*s),e},invert:function(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=r*r+i*i+s*s+n*n,a=o?1/o:0;return e[0]=-r*a,e[1]=-i*a,e[2]=-s*a,e[3]=n*a,e},conjugate:d,fromMat3:y,fromEuler:m,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},copy:f,set:g,add:b,mul:v,scale:_,dot:S,lerp:w,length:x,len:C,squaredLength:j,sqrLen:I,normalize:M,exactEquals:V,equals:E,rotationTo:function(e,t,r){const i=(0,a.e)(t,r);return i<-.999999?((0,a.f)(A,R,t),(0,a.u)(A)<1e-6&&(0,a.f)(A,O,t),(0,a.n)(A,A),u(e,A,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.f)(A,t,r),e[0]=A[0],e[1]=A[1],e[2]=A[2],e[3]=1+i,M(e,e))},sqlerp:function(e,t,r,i,s,n){return h(D,t,s,n),h(L,r,i,n),h(e,D,L,2*n*(1-n)),e},setAxes:function(e,t,r,i){const s=T;return s[0]=r[0],s[3]=r[1],s[6]=r[2],s[1]=i[0],s[4]=i[1],s[7]=i[2],s[2]=-t[0],s[5]=-t[1],s[8]=-t[2],M(e,y(e,s))}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,r)=>{function i(){return[0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3]]}function n(e,t){return new Float64Array(e,t,4)}r.d(t,{I:()=>o,a:()=>i,b:()=>s,c:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:i,clone:s,fromValues:function(e,t,r,i){return[e,t,r,i]},createView:n,IDENTITY:o},Symbol.toStringTag,{value:"Module"}))},2368:(e,t,r)=>{r.d(t,{J:()=>c,j:()=>p});var i=r(43697),s=r(15923),n=(r(80442),r(22974)),o=(r(92604),r(70586)),a=r(31263),l=r(1153),u=r(52011);const c=e=>{let t=class extends e{clone(){const e=(0,o.s3)((0,l.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,i={},s=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||l!==a.s3.USER&&l!==a.s3.DEFAULTS&&l!==a.s3.WEB_MAP&&l!==a.s3.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,n.Vo)(c),null!=c&&null==p||(l===a.s3.DEFAULTS?s.set(e,p):i[e]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(s.size){const e=(0,l.vw)(u)?.store;if(e)for(const[t,r]of s)e.set(t,r,a.s3.DEFAULTS)}return u}};return t=(0,i._)([(0,u.j)("esri.core.Clonable")],t),t};let p=class extends(c(s.Z)){};p=(0,i._)([(0,u.j)("esri.core.Clonable")],p)},46791:(e,t,r)=>{r.d(t,{Z:()=>A});var i,s=r(43697),n=r(3894),o=r(32448),a=r(22974),l=r(70586),u=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(i||(i={}));var c,p=r(1654),h=r(5600),d=r(75215),y=r(52421),m=r(52011),f=r(58971),g=r(10661);const b=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),v=()=>{};function _(e){return e?e instanceof E?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e&&e.length)return e[0]}function w(e,t,r,i){const s=Math.min(e.length-r,t.length-i);let n=0;for(;n<s&&e[r+n]===t[i+n];)n++;return n}function x(e,t,r,i){t&&t.forEach(((t,s,n)=>{e.push(t),x(e,r.call(i,t,s,n),r,i)}))}const C=new Set,j=new Set,I=new Set,M=new Map;let V=0,E=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:V++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,f.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,_(e)),this._emitAfterChanges(i.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=v,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,f.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(i.ADD),this}addMany(e,t=this._items.length){if((0,f.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,_(e)),this._emitAfterChanges(i.ADD),this}at(e){if((0,f.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(i.REMOVE),e}clone(){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,f.it)(this._observable);const t=e.map(_);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),s=r.length;for(let i=0;i<s;i++)e.call(t,r[i],i,r);this._emitAfterChanges(i.REMOVE)}every(e,t){return(0,f.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,f.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,f.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,f.it)(this._observable);const r=[];return x(r,this,e,t),new c(r)}forEach(e,t){return(0,f.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.it)(this._observable),this._items[e]}getNextIndex(e){(0,f.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,f.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(i.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(i.MOVE)}return e}}pop(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),e}push(...e){return(0,f.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(i.ADD)),this.length}reduce(e,t){(0,f.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,f.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,f.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(i.REMOVE))return;const t=S(this._splice(e,1));return this._emitAfterChanges(i.REMOVE),t}removeMany(e){if((0,f.it)(this._observable),!e||!e.length||this._emitBeforeChanges(i.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,s=[],n=t.length;for(let e=0;e<n;e++){const i=t[e],n=r.indexOf(i);if(n>-1){const i=1+w(t,r,e+1,n+1),o=this._splice(n,i);o&&o.length>0&&s.push.apply(s,o),e+=i-1}}return this._emitAfterChanges(i.REMOVE),s}reverse(){if((0,f.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const e=S(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),e}slice(e=0,t=this.length){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.it)(this._observable),this._items.some(e,t)}sort(e){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(i.MOVE),this}splice(e,t,...r){(0,f.it)(this._observable);const s=(t?i.REMOVE:0)|(r.length?i.ADD:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,f.it)(this._observable),this._items.slice()}toJSON(){return(0,f.it)(this._observable),this.toArray()}toLocaleString(){return(0,f.it)(this._observable),this._items.toLocaleString()}toString(){return(0,f.it)(this._observable),this._items.toString()}unshift(...e){return(0,f.it)(this._observable),!e.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,e),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const i=this._items,s=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,p.Os)((()=>this._dispatchChange()))),t){if(o=i.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let r=0,s=o.length;r<s;r++)n=o[r],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),i.splice(e,0,n),e+=1,r-=1,s-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);b.release(e)}}if(r&&r.length){if(s){const e=[];for(const t of r){const r=s.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),o=e===this.length;if(t||n){const s=b.acquire();s.target=this,s.cancellable=!0;const a=b.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(o?i.push(l):i.splice(e++,0,l),this._set("length",i.length),n&&(a.reset(l),this.emit("after-add",a)))):(o?i.push(l):i.splice(e++,0,l),this._set("length",i.length),a.reset(l),this.emit("after-add",a));b.release(a),b.release(s)}else{if(o)for(const e of r)i.push(e);else i.splice(e,0,...r);this._set("length",i.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=b.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,b.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;C.clear(),j.clear(),I.clear();for(const{added:t,removed:r}of e){if(t)if(0===I.size&&0===j.size)for(const e of t)C.add(e);else for(const e of t)j.has(e)?(I.add(e),j.delete(e)):I.has(e)||C.add(e);if(r)if(0===I.size&&0===C.size)for(const e of r)j.add(e);else for(const e of r)C.has(e)?C.delete(e):(I.delete(e),j.add(e))}const r=n.Z.acquire();C.forEach((e=>{r.push(e)}));const i=n.Z.acquire();j.forEach((e=>{i.push(e)}));const s=this._items,o=t.items,a=n.Z.acquire();if(I.forEach((e=>{o.indexOf(e)!==s.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||i.length||a.length)){const e={target:this,added:r,removed:i,moved:a},s=t.listeners.length;for(let r=0;r<s;r++){const i=t.listeners[r];i.removed||i.callback.call(this,e)}}n.Z.release(r),n.Z.release(i),n.Z.release(a)}C.clear(),j.clear(),I.clear()}};E.ofType=e=>{if(!e)return c;if(M.has(e))return M.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const i=e.typeMap[r].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends c{};return(0,s._)([(0,y.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],r.prototype,"itemType",void 0),r=(0,s._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),M.set(e,r),r},(0,s._)([(0,h.Cb)()],E.prototype,"length",void 0),(0,s._)([(0,h.Cb)()],E.prototype,"items",null),E=c=(0,s._)([(0,m.j)("esri.core.Collection")],E);const A=E},10699:(e,t,r)=>{r.d(t,{IG:()=>o});var i=r(43697),s=r(52011);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,s.j)("esri.core.Identifiable")],t),t};let a=class extends(o(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>_});var i=r(43697),s=r(15923),n=r(70586),o=r(41103),a=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,a.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,n.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),p=r(1153),h=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,n.j0)((0,p.vw)(this)),r=t.store,i=new u;t.store=i,(0,o.M)(t,r,i)}read(e,t){(0,c.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),i=(0,l.M9)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),i=(0,l.M9)(t),s=(0,p.vw)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,p.vw)(e).store}let m=class extends(d(s.Z)){};m=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var f=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,f.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,p.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=b(this),r=(0,l.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=b(this),i=(0,l.M9)(t),s=this.get(e);for(let t=i+1;t<l.kk;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,p.vw)(e).store}const v=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(v(s.Z)){};_=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},28659:(e,t,r)=>{r.d(t,{B:()=>m});var i=r(81153),s=r(17452),n=r(41123),o=r(7628),a=r(31263),l=r(5600);function u(e){return c[function(e){return e instanceof Blob?e.type:function(e){const t=(0,s.Ml)(e);return d[t]||p}(e.url)}(e)]||h}const c={},p="text/plain",h=c[p],d={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in d)c[d[e]]=e;var y=r(25929);function m(e){const t=e?.origins??[void 0];return(r,n)=>{const c=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const n=(0,o.VZ)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,y.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{writer(t,o,l,c){if(!c||!c.resources)return"string"==typeof t?void(o[l]=(0,y.t)(t,c)):void(o[l]=t.write({},c));const p=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,y.t)(p,{...c,verifyItemRelativeUrls:c&&c.verifyItemRelativeUrls?{writtenUrls:c.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},y.M.NO),d=n.type!==String&&(!(0,i.l)(this)||c&&c.origin&&this.originIdOf(r)>(0,a.M9)(c.origin)),m={object:this,propertyName:r,value:t,targetUrl:h,dest:o,targetPropertyName:l,context:c,params:e};c&&c.portalItem&&h&&!(0,s.YP)(h)?d?function(e){const{context:t,targetUrl:r,params:i,value:n,dest:o,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),c=b(n,r,t),p=u(c),h=(0,s.Ml)(l.path),d=i?.compress??!1;p===h?(t.resources&&g({...e,resource:l,content:c,compress:d,updates:t.resources.toUpdate}),o[a]=r):f(e)}(m):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(m):c&&c.portalItem&&(null==h||null!=(0,y.i)(h)||(0,s.jc)(h)||d)?f(m):o[l]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=y.a;return{read:e,write:t}}}}(e,r,n);for(const e of t){const t=(0,l.CJ)(r,e,n);for(const e in c)t[e]=c[e]}}}function f(e){const{targetUrl:t,params:i,value:o,context:a,dest:l,targetPropertyName:c}=e;if(!a.portalItem)return;const p=(0,y.p)(t),h=p?.filename??(0,n.D)(),d=i?.prefix??p?.prefix,m=b(o,t,a),f=(0,s.v_)(d,h),v=`${f}.${u(m)}`,_=a.portalItem.resourceFromPath(v);(0,s.jc)(t)&&a.resources&&a.resources.pendingOperations.push(async function(e){const t=(await Promise.resolve().then(r.bind(r,3172))).default,{data:i}=await t(e,{responseType:"blob"});return i}(t).then((e=>{_.path=`${f}.${u(e)}`,l[c]=_.itemRelativeUrl})).catch((()=>{})));const S=i?.compress??!1;a.resources&&g({...e,resource:_,content:m,compress:S,updates:a.resources.toAdd}),l[c]=_.itemRelativeUrl}function g({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function b(e,t,r){return"string"==typeof e?{url:t}:new Blob([JSON.stringify(e.toJSON(r))],{type:"application/json"})}},52421:(e,t,r)=>{function i(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>i})},10661:(e,t,r)=>{r.d(t,{s:()=>s});var i=r(39020);class s{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new i.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}},70921:(e,t,r)=>{r.d(t,{R:()=>n,Z:()=>s});var i=r(46791);function s(e,t,r=i.Z){return t||(t=new r),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function n(e){return e}},35463:(e,t,r)=>{r.d(t,{JE:()=>o,Nm:()=>n,rJ:()=>a}),r(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function n(e,t,r){const i=new Date(e.getTime());if(t&&r){const e=s[r],{getter:n,setter:o,multiplier:a}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(i.getFullYear(),i.getMonth()+t);i.getDate()>e&&i.setDate(e)}i[o](i[n]()+t*a)}return i}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,r){return 0===e?0:e*i[t]/i[r]}},79235:(e,t,r)=>{r.d(t,{Z:()=>v});var i,s=r(43697),n=r(67676),o=r(35454),a=r(96674),l=r(67900),u=r(20941),c=r(5600),p=(r(80442),r(75215),r(71715)),h=r(52011),d=r(30556);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,n.e$)(m,"orthometric");const f=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||f.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,c.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,s._)([(0,d.c)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,s._)([(0,p.r)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,s._)([(0,c.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,s._)([(0,p.r)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,s._)([(0,p.r)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,s._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,s._)([(0,p.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,s._)([(0,h.j)("esri.geometry.HeightModelInfo")],g);const v=g},87085:(e,t,r)=>{r.d(t,{Z:()=>v});var i=r(43697),s=(r(66577),r(3172)),n=r(20102),o=r(32448),a=r(10699),l=r(83379),u=r(92604),c=r(95330),p=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),y=r(68773),m=r(6570),f=r(82971);let g=0,b=class extends(o.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},i=await Promise.all([r.e(4547),r.e(8071),r.e(661)]).then(r.bind(r,28008));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||y.Z.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.D_)(e)||u.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:m.Z})],b.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],b.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],b.prototype,"title",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],b.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i._)([(0,d.j)("esri.layers.Layer")],b);const v=b},84539:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ge});var i=r(43697),s=r(46791),n=r(20102),o=r(92604),a=r(70586),l=r(16453),u=r(95330),c=r(5600),p=(r(67676),r(80442),r(75215)),h=r(71715),d=r(52011),y=r(17896),m=r(65617),f=r(6570),g=r(87085),b=r(54295),v=r(17287),_=r(38009),S=r(16859),w=r(72965),x=r(32271),C=r(66677),j=r(21506),I=r(2368),M=r(22021);class V{constructor(e,t){this.min=e,this.max=t,this.range=t-e}ndiff(e,t=0){return Math.ceil((e-t)/this.range)*this.range+t}_normalize(e,t,r,i=0,s=!1){return(r-=i)<e?r+=this.ndiff(e-r):r>t&&(r-=this.ndiff(r-t)),s&&r===t&&(r=e),r+i}normalize(e,t=0,r=!1){return this._normalize(this.min,this.max,e,t,r)}clamp(e,t=0){return(0,M.uZ)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+this.ndiff(e-t,r)}minimalMonotonic(e,t,r){return this._normalize(e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function E(e){for(const t in e){const r=e[t];r instanceof Function&&(e[t]=r.bind(e))}return e}E(new V(0,2*Math.PI)),E(new V(-Math.PI,Math.PI));const A=E(new V(0,360));var R=r(96674),O=r(28659),D=r(51305),L=r(94961),T=r(46851);const N=(0,m.c)(),q=(0,L.a)(),z=(0,L.a)(),Z=(0,L.a)(),F=new Float64Array([0,0,1]),P=new Float64Array([0,1,0]),U=new Float64Array([1,0,0]);function B(e){(0,y.c)(N,e),(0,y.n)(N,N);const t=Math.atan2(N[1],N[0]),r=(0,D.s)((0,L.a)(),F,-t);(0,y.q)(N,N,r);const i=-1*Math.atan2(N[2],N[0]);return[(0,T.a)(t)+270,(0,T.a)(i)+90]}function k(e,t){return(0,D.s)(z,F,(0,T.t)(e-270)),(0,D.s)(Z,P,(0,T.t)(t-90)),(0,D.m)(q,z,Z),(0,y.c)(N,U),(0,y.q)(N,N,q),(0,y.n)(N,N),[N[0],N[1],N[2]]}var G=r(90578);let J=class extends((0,I.J)(R.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return A.normalize((0,p.q9)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return A.normalize((0,p.q9)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],J.prototype,"enabled",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],J.prototype,"label",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,G.p)((e=>A.normalize((0,p.q9)(e),0,!0)))],J.prototype,"orientation",null),(0,i._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,G.p)((e=>A.normalize((0,p.q9)(e),0,!0)))],J.prototype,"tilt",null),(0,i._)([(0,c.Cb)({type:[Number],json:{write:!0}})],J.prototype,"normal",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:!0}})],J.prototype,"point",void 0),J=(0,i._)([(0,d.j)("esri.layers.support.VoxelSlice")],J);const $=J;var Y=r(25929);let W=class extends((0,I.J)(R.wq)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return A.normalize((0,p.q9)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return A.normalize((0,p.q9)(t),0,!0)}};(0,i._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],W.prototype,"enabled",void 0),(0,i._)([(0,c.Cb)({type:String,json:{origins:{service:{read:Y.r}},write:{enabled:!0,isRequired:!0}}}),(0,O.B)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],W.prototype,"href",void 0),(0,i._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],W.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],W.prototype,"label",void 0),(0,i._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],W.prototype,"orientation",null),(0,i._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],W.prototype,"tilt",null),(0,i._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],W.prototype,"normal",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],W.prototype,"point",void 0),(0,i._)([(0,c.Cb)({type:[p.z8],json:{write:{enabled:!0,isRequired:!0}}})],W.prototype,"sizeInPixel",void 0),(0,i._)([(0,c.Cb)({type:[$],json:{write:!0}})],W.prototype,"slices",void 0),(0,i._)([(0,c.Cb)({type:p.z8,json:{default:0,write:!0}})],W.prototype,"timeId",void 0),(0,i._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],W.prototype,"variableId",void 0),W=(0,i._)([(0,d.j)("esri.layers.support.VoxelSection")],W);const H=W;let K=class extends R.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],K.prototype,"diffuseFactor",void 0),(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],K.prototype,"specularFactor",void 0),K=(0,i._)([(0,d.j)("esri.layers.support.VoxelSimpleShading")],K);const X=K;let Q=class extends R.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,i._)([(0,c.Cb)({type:["discrete","continuous"],json:{write:!0}})],Q.prototype,"continuity",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Q.prototype,"hasNoData",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],Q.prototype,"noData",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],Q.prototype,"offset",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],Q.prototype,"scale",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"type",void 0),Q=(0,i._)([(0,d.j)("esri.layers.support.VoxelFormat")],Q);const ee=Q;let te=class extends R.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],te.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],te.prototype,"description",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],te.prototype,"name",void 0),(0,i._)([(0,c.Cb)({type:ee,json:{write:!0}})],te.prototype,"originalFormat",void 0),(0,i._)([(0,c.Cb)({type:ee,json:{write:{enabled:!0,isRequired:!0}}})],te.prototype,"renderingFormat",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],te.prototype,"unit",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],te.prototype,"volumeId",void 0),(0,i._)([(0,c.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],te.prototype,"type",void 0),te=(0,i._)([(0,d.j)("esri.layers.support.VoxelVariable")],te);const re=te;var ie=r(22974),se=r(22303);let ne=class extends((0,I.J)(R.wq)){constructor(){super(...arguments),this.color=se.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,i._)([(0,c.Cb)({type:se.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],ne.prototype,"color",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ne.prototype,"value",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],ne.prototype,"enabled",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],ne.prototype,"label",void 0),ne=(0,i._)([(0,d.j)("esri.layers.support.VoxelIsosurface")],ne);const oe=ne;var ae=r(70921);let le=class extends((0,I.J)(R.wq)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,i._)([(0,c.Cb)({type:se.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],le.prototype,"color",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],le.prototype,"position",void 0),le=(0,i._)([(0,d.j)("esri.layers.support.VoxelColorStop")],le);const ue=le;let ce=class extends((0,I.J)(R.wq)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,i._)([(0,c.Cb)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ce.prototype,"opacity",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ce.prototype,"position",void 0),ce=(0,i._)([(0,d.j)("esri.layers.support.VoxelOpacityStop")],ce);const pe=ce;let he=class extends((0,I.J)(R.wq)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,i._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:!0}})],he.prototype,"range",void 0),he=(0,i._)([(0,d.j)("esri.layers.support.VoxelRangeFilter")],he);const de=he;let ye=class extends((0,I.J)(R.wq)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this.colorStops=new(s.Z.ofType(ue)),this.opacityStops=new(s.Z.ofType(pe))}set colorStops(e){this._set("colorStops",(0,ae.Z)(e,this._get("colorStops"),s.Z.ofType(ue)))}set opacityStops(e){this._set("opacityStops",(0,ae.Z)(e,this._get("opacityStops"),s.Z.ofType(pe)))}};(0,i._)([(0,c.Cb)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(ue),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,i._)([(0,c.Cb)({type:s.Z.ofType(pe),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,i._)([(0,c.Cb)({type:de,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),ye=(0,i._)([(0,d.j)("esri.layers.support.VoxelTransferFunctionStyle")],ye);const me=ye;let fe=class extends((0,I.J)(R.wq)){constructor(){super(...arguments),this.color=se.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,i._)([(0,c.Cb)({type:se.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],fe.prototype,"color",void 0),(0,i._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"value",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],fe.prototype,"enabled",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],fe.prototype,"label",void 0),fe=(0,i._)([(0,d.j)("esri.layers.support.VoxelUniqueValue")],fe);const ge=fe;var be;let ve=be=class extends R.wq{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.Z.ofType(ge)),this.isosurfaces=new(s.Z.ofType(oe))}clone(){return new be({variableId:this.variableId,label:this.label,transferFunction:(0,ie.d9)(this.transferFunction),uniqueValues:(0,ie.d9)(this.uniqueValues),isosurfaces:(0,ie.d9)(this.isosurfaces)})}};(0,i._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],ve.prototype,"variableId",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],ve.prototype,"label",void 0),(0,i._)([(0,c.Cb)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],ve.prototype,"transferFunction",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(ge),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],ve.prototype,"uniqueValues",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(oe),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],ve.prototype,"isosurfaces",void 0),ve=be=(0,i._)([(0,d.j)("esri.layers.support.VoxelVariableStyle")],ve);const _e=ve;var Se=r(94139),we=r(82971),xe=r(8744);let Ce=class extends R.wq{constructor(){super(...arguments),this.values=null}};(0,i._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Ce.prototype,"values",void 0),Ce=(0,i._)([(0,d.j)("esri.layers.support.VoxelIrregularSpacing")],Ce);const je=Ce;let Ie=class extends R.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],Ie.prototype,"scale",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],Ie.prototype,"offset",void 0),Ie=(0,i._)([(0,d.j)("esri.layers.support.VoxelRegularSpacing")],Ie);const Me=Ie;let Ve=class extends R.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,i._)([(0,c.Cb)({type:je,json:{write:!0}})],Ve.prototype,"irregularSpacing",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Ve.prototype,"isPositiveUp",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Ve.prototype,"isWrappedDateLine",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],Ve.prototype,"label",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],Ve.prototype,"name",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],Ve.prototype,"quantity",void 0),(0,i._)([(0,c.Cb)({type:Me,json:{write:!0}})],Ve.prototype,"regularSpacing",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],Ve.prototype,"size",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],Ve.prototype,"unit",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{read:!1}})],Ve.prototype,"isRegular",null),Ve=(0,i._)([(0,d.j)("esri.layers.support.VoxelDimension")],Ve);const Ee=Ve,Ae="esri.layers.support.VoxelVolume",Re=o.Z.getLogger(Ae);let Oe=class extends R.wq{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=we.Z.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],i[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size],s=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)s[e]<2?s[e]=1:s[e]-=1;return r.isRegular&&!r.isPositiveUp&&(s[2]*=-1),[(e[1]-e[0])/s[0],(t[1]-t[0])/s[1],(i[1]-i[0])/s[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return Re.error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,xe.fS)(this.spatialReference,e.spatialReference))return Re.error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.f)(e.x,e.y,e.z??0);(0,y.b)(t,t,this.originInLayerSpace3D),(0,y.C)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const i=e.z??0,s=r.irregularSpacing.values,n=r.isPositiveUp?1:-1,o=s.reduce(((e,t)=>Math.abs(n*t-i)<Math.abs(n*e-i)?t:e));for(let e=0;e<s.length;++e)if(s[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.Z({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.d)(e);if((0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.a)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.Z({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new Se.Z({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:[Ee],json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"dimensions",void 0),(0,i._)([(0,c.Cb)({type:we.Z,json:{read:{enabled:!1}}})],Oe.prototype,"spatialReference",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Oe.prototype,"zDimension",null),(0,i._)([(0,c.Cb)({type:[Boolean],json:{read:!1}})],Oe.prototype,"isValid",null),(0,i._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Oe.prototype,"originInLayerSpace3D",null),(0,i._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Oe.prototype,"voxelSizeInLayerSpaceSigned",null),(0,i._)([(0,c.Cb)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Oe.prototype,"volumeType",null),(0,i._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Oe.prototype,"sizeInVoxels",null),Oe=(0,i._)([(0,d.j)(Ae)],Oe);const De=Oe;var Le;let Te=Le=class extends R.wq{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Le;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Te.prototype,"apronWidth",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Te.prototype,"brickSize",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Te.prototype,"maxLodLevel",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Te.prototype,"nodeSize",void 0),Te=Le=(0,i._)([(0,d.j)("esri.layers.support.VoxelVolumeIndex")],Te);const Ne=Te;let qe=class extends((0,I.J)(R.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return A.normalize((0,p.q9)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return A.normalize((0,p.q9)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],qe.prototype,"enabled",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],qe.prototype,"label",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,G.p)((e=>A.normalize((0,p.q9)(e),0,!0)))],qe.prototype,"orientation",null),(0,i._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,G.p)((e=>A.normalize((0,p.q9)(e),0,!0)))],qe.prototype,"tilt",null),(0,i._)([(0,c.Cb)({type:[Number],json:{write:!0}})],qe.prototype,"normal",void 0),(0,i._)([(0,c.Cb)({type:[Number],json:{write:!0}})],qe.prototype,"point",void 0),qe=(0,i._)([(0,d.j)("esri.layers.support.VoxelDynamicSection")],qe);const ze=qe;var Ze;let Fe=Ze=class extends R.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.Z.ofType($)),this.dynamicSections=new(s.Z.ofType(ze))}set slices(e){this._set("slices",(0,ae.Z)(e,this._get("slices"),s.Z.ofType($)))}set dynamicSections(e){this._set("dynamicSections",(0,ae.Z)(e,this._get("dynamicSections"),s.Z.ofType(ze)))}clone(){return new Ze({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ie.d9)(this.slices),dynamicSections:(0,ie.d9)(this.dynamicSections)})}};(0,i._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],Fe.prototype,"volumeId",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{default:1,write:!0}})],Fe.prototype,"verticalExaggeration",void 0),(0,i._)([(0,c.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Fe.prototype,"exaggerationMode",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{default:0,write:!0}})],Fe.prototype,"verticalOffset",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType($),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Fe.prototype,"slices",null),(0,i._)([(0,c.Cb)({type:s.Z.ofType(ze),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Fe.prototype,"dynamicSections",null),Fe=Ze=(0,i._)([(0,d.j)("esri.layers.support.VoxelVolumeStyle")],Fe);const Pe=Fe,Ue="esri.layers.VoxelLayer",Be=o.Z.getLogger(Ue);let ke=class extends((0,x.Vt)((0,v.Y)((0,_.q)((0,S.I)((0,w.M)((0,l.R)((0,b.V)(g.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.popupEnabled=!0,this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new X,this.opacity=1,this.variables=new s.Z,this.volumes=new s.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.volumeStyles=new(s.Z.ofType(Pe)),this.variableStyles=new(s.Z.ofType(_e)),this.sections=new(s.Z.ofType(H))}set url(e){this._set("url",(0,C.Nm)(e,Be))}load(e){const t=(0,a.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.r9).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new n.Z("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new n.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new n.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=f.Z.fromJSON(e,r);if(0===i.zmin&&0===i.zmax&&Array.isArray(t.volumes)){const e=De.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}i.zmin=e,i.zmax=r}}}return i}return null}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=(0,a.pC)(e)?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex((e=>e.variableId===t));return r<0?null:this.variableStyles.getItemAt(r)}getVariable(e){let t=-1;if(t=(0,a.pC)(e)?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex((e=>e.id===t));return r<0?null:this.variables.getItemAt(r)}getVolume(e){const t=this.getVariable(e);return(0,a.pC)(t)?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return(0,a.pC)(t)?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getSections(){const e=[];for(const t of this.sections)e.push(new H({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if((0,a.pC)(r)){const i=t.clone();if(i.isosurfaces.length>4&&(i.isosurfaces=i.isosurfaces.slice(0,3),Be.error("A maximum of 4 isosurfaces are supported for Voxel Layers.")),"continuous"===r.renderingFormat.continuity)(null===i.transferFunction||i.transferFunction.colorStops.length<2)&&Be.error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==i.transferFunction&&(Array.isArray(i.transferFunction.stretchRange)&&2===i.transferFunction.stretchRange.length||(Be.error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),i.transferFunction.stretchRange=[0,1],i.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)Be.error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(i)}else Be.error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if((0,a.pC)(r)){const i=t.clone();for(const e of i.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of i.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(i)}else Be.error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}getSlices(){const e=[],t=this.getVolume(null);if((0,a.Wi)(t)||!t.isValid)return e;const r=this.getVolumeStyle(null);if((0,a.Wi)(r))return e;for(const i of r.slices)this._isPlaneValid(i,[0,1,t.zDimension],t.dimensions)?e.push(new $({enabled:i.enabled,label:i.label,point:i.point,normal:i.normal})):e.push(new $({enabled:!1,label:"invalid",point:i.point,normal:i.normal}));return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;for(let i=0;i<3;++i){const s=e.point[i];if(s<0||s>=r[t[i]].size)return!1}const i=(0,m.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(i,i),!(Math.abs(i[0])+Math.abs(i[1])+Math.abs(i[2])<1e-6||(e.normal[0]=i[0],e.normal[1]=i[1],e.normal[2]=i[2],0))}};(0,i._)([(0,c.Cb)(j.C_)],ke.prototype,"popupEnabled",void 0),(0,i._)([(0,c.Cb)({type:["Voxel"]})],ke.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.Cb)(j.rn)],ke.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({json:{write:!0}})],ke.prototype,"title",void 0),(0,i._)([(0,c.Cb)(j.HQ)],ke.prototype,"url",null),(0,i._)([(0,c.Cb)({type:s.Z.ofType(H),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],ke.prototype,"sections",void 0),(0,i._)([(0,c.Cb)({type:p.z8,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],ke.prototype,"currentVariableId",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(Pe),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],ke.prototype,"volumeStyles",void 0),(0,i._)([(0,c.Cb)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],ke.prototype,"renderMode",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(_e),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],ke.prototype,"variableStyles",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],ke.prototype,"enableSlices",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],ke.prototype,"enableSections",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],ke.prototype,"enableDynamicSections",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],ke.prototype,"enableIsosurfaces",void 0),(0,i._)([(0,c.Cb)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],ke.prototype,"shading",void 0),(0,i._)([(0,c.Cb)({type:["show","hide"]})],ke.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],ke.prototype,"opacity",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(re)})],ke.prototype,"variables",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(De)})],ke.prototype,"volumes",void 0),(0,i._)([(0,c.Cb)({type:Ne})],ke.prototype,"index",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],ke.prototype,"minScale",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],ke.prototype,"maxScale",void 0),(0,i._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],ke.prototype,"type",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],ke.prototype,"version",void 0),(0,i._)([(0,h.r)("service","version")],ke.prototype,"readVersion",null),(0,i._)([(0,c.Cb)({type:f.Z})],ke.prototype,"fullExtent",void 0),(0,i._)([(0,h.r)("service","fullExtent",["fullExtent"])],ke.prototype,"readFullExtent",null),ke=(0,i._)([(0,d.j)(Ue)],ke);const Ge=ke},38009:(e,t,r)=>{r.d(t,{q:()=>d});var i=r(43697),s=r(20102),n=r(17452),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),u=r(50549),c=r(76169);const p={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var h=r(21506);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,c.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,u.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=p[e];let i=r&&r[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new s.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof s.Z&&"web-document-write:property-required"===e.name)).length;return(0,n.jc)(r?.url)?(t?.messages?.push(new s.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,o.Cb)(h.rT)],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,o.Cb)(h.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)([void 0,"web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(43697),s=r(5600),n=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>_,PV:()=>f,id:()=>w,iR:()=>d,rn:()=>m,rT:()=>j,u1:()=>C,rO:()=>x,Oh:()=>b,bT:()=>v,C_:()=>h,Lx:()=>g,vg:()=>S,YI:()=>p,HQ:()=>y});var i=r(92835),s=r(6570),n=r(82971),o=r(25929),a=r(70586),l=(r(95330),r(35463)),u=r(86787),c=r(65242);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},h={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},d={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},y={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},m={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},f={value:null,type:u.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const b={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},v={...b,json:{...b.json,origins:{"web-document":{...b.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,c.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,c.b)(t.drawingInfo.transparency)}}},_={type:i.Z,readOnly:!0,get(){if(!this.layer?.timeInfo)return null;const{datesInUnknownTimezone:e,timeOffset:t,useViewTime:r}=this.layer,s=this.view?.timeExtent;let n=this.layer.timeExtent;e&&(n=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(n));let o=r?s&&n?s.intersection(n):s||n:n;if(!o||o.isEmpty||o.isAllTime)return o;t&&(o=o.offset(-t.value,t.unit)),e&&(o=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(o));const u=this._get("timeExtent");return o.equals(u)?u:o}},S={type:s.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=s.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=n.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},w={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},C={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}},j={json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}}},99282:(e,t,r)=>{r.d(t,{a:()=>n});var i=r(67900),s=r(68441);const n={inches:(0,i.En)(1,"meters","inches"),feet:(0,i.En)(1,"meters","feet"),"us-feet":(0,i.En)(1,"meters","us-feet"),yards:(0,i.En)(1,"meters","yards"),miles:(0,i.En)(1,"meters","miles"),"nautical-miles":(0,i.En)(1,"meters","nautical-miles"),millimeters:(0,i.En)(1,"meters","millimeters"),centimeters:(0,i.En)(1,"meters","centimeters"),decimeters:(0,i.En)(1,"meters","decimeters"),meters:(0,i.En)(1,"meters","meters"),kilometers:(0,i.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.ty)(1,"meters",s.sv.radius)}},86787:(e,t,r)=>{r.d(t,{Z:()=>_});var i,s=r(43697),n=r(35454),o=r(96674),a=r(70586),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),p=r(30556),h=r(35671);let d=i=class extends o.wq{constructor(e){super(e)}async collectRequiredFields(e,t){return(0,h.io)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"expression",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),d=i=(0,s._)([(0,c.j)("esri.layers.support.FeatureExpressionInfo")],d);const y=d;var m,f=r(12541);const g=(0,n.w)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),b=new n.X({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let v=m=class extends o.wq{constructor(e){super(e),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new m({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,a._W)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,s._)([(0,l.Cb)({type:y,json:{write:!0}})],v.prototype,"featureExpressionInfo",void 0),(0,s._)([(0,u.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],v.prototype,"readFeatureExpressionInfo",null),(0,s._)([(0,p.c)("featureExpressionInfo",{featureExpressionInfo:{type:y},"featureExpression.value":{type:[0]}})],v.prototype,"writeFeatureExpressionInfo",null),(0,s._)([(0,l.Cb)({type:g.apiValues,nonNullable:!0,json:{type:g.jsonValues,read:g.read,write:{writer:g.write,isRequired:!0}}})],v.prototype,"mode",null),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],v.prototype,"offset",void 0),(0,s._)([(0,l.Cb)({type:f.f9,json:{type:String,read:b.read,write:b.write}})],v.prototype,"unit",null),v=m=(0,s._)([(0,c.j)("esri.layers.support.ElevationInfo")],v);const _=v},12541:(e,t,r)=>{r.d(t,{Z7:()=>s,f9:()=>n});var i=r(99282);function s(e){return 1/(i.a[e]||1)}const n=function(){const e=Object.keys(i.a);return e.sort(),e}()},65242:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>n});var i=r(75215);function s(e){const t=(0,i.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);