@arcgis/core 5.1.0-next.87 → 5.1.0-next.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Graphic.js +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +2 -2
- package/analysis/LineOfSightAnalysisTarget.d.ts +2 -2
- package/applications/Components/arcadeUtils.d.ts +23 -0
- package/applications/Components/arcadeUtils.js +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +1 -0
- package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +1 -0
- package/assets/esri/core/workers/chunks/0a6df243b18acae471be.js +1 -0
- package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +1 -0
- package/assets/esri/core/workers/chunks/10cf6a70bf79f04a7208.js +1 -0
- package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +1 -0
- package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +1 -0
- package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +1 -0
- package/assets/esri/core/workers/chunks/{f89b7b0ccfbd1e5f9a0f.js → 3092184350d66c79f610.js} +1 -1
- package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +1 -0
- package/assets/esri/core/workers/chunks/{26f804c92077c11c626d.js → 394812e19b6915d560b0.js} +1 -1
- package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +1 -0
- package/assets/esri/core/workers/chunks/{ce4dfc3a470230ddc9e4.js → 43f58604ba4a94a9167c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff57a071156d8a7e47be.js → 456d269e3982c437010a.js} +1 -1
- package/assets/esri/core/workers/chunks/46b16501db6681dc467b.js +1 -0
- package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +1 -0
- package/assets/esri/core/workers/chunks/{713ab619060bd5087479.js → 4baf66314f82cfa76beb.js} +182 -157
- package/assets/esri/core/workers/chunks/{1ab66600579fa4232d7b.js → 4dc91c2208201ba34c90.js} +1 -1
- package/assets/esri/core/workers/chunks/{b14c4c3f295970f731ab.js → 500be1fb7cc9efec875c.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc6ca7ffb9f1b875059c.js → 51716e411fad624ac21c.js} +1 -1
- package/assets/esri/core/workers/chunks/54c035cdc171998d0776.js +1 -0
- package/assets/esri/core/workers/chunks/{b23e677c33db6f9bac8a.js → 566f6319ded0634769e0.js} +1 -1
- package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +1 -0
- package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +1 -0
- package/assets/esri/core/workers/chunks/{186bfde8c552e3b42302.js → 7ef51b0ebd560113ae7e.js} +1 -1
- package/assets/esri/core/workers/chunks/7f0f10946f05a09b5654.js +1 -0
- package/assets/esri/core/workers/chunks/{fce2306a1b31c6680f90.js → 7f34fa9f154f5101cb13.js} +1 -1
- package/assets/esri/core/workers/chunks/8178e9ba3c568d406a87.js +1 -0
- package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +1 -0
- package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +1 -0
- package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +1 -0
- package/assets/esri/core/workers/chunks/9c09097e390985bbac58.js +1 -0
- package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +1 -0
- package/assets/esri/core/workers/chunks/{455d08294e0f5c5509ff.js → a6b75576d598ec161cc4.js} +1 -1
- package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +1 -0
- package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +1 -0
- package/assets/esri/core/workers/chunks/{5166f204fd078dced5db.js → baea6f86b2dbe067940e.js} +1 -1
- package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +1 -0
- package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +1 -0
- package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +1 -0
- package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +1 -0
- package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → d8ccc713c5ad93e7a0c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e66b9d00d02fc08cbb2d.js → da008d6a3afb30d18392.js} +1 -1
- package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +1 -0
- package/assets/esri/core/workers/chunks/de3e5d82502ee15b7eae.js +1 -0
- package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +1 -0
- package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +1 -0
- package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +1 -0
- package/assets/esri/core/workers/chunks/{c503c79ba5761f7abbeb.js → fa869bfe4366f7f49cca.js} +1 -1
- package/assets/esri/core/workers/chunks/{d8de7fe49dba9ed589df.js → fade7b878a9498382bb2.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +25 -17
- package/chunks/GlowBlur.glsl.js +11 -8
- package/chunks/OITBlend.glsl.js +1 -1
- package/chunks/bundle2.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/interfaces.d.ts +0 -3
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/networks/CircuitManager.d.ts +33 -25
- package/networks/CircuitManager.js +1 -1
- package/networks/support/typeUtils.d.ts +4 -1
- package/networks/support/typeUtils.js +1 -1
- package/package.json +1 -1
- package/renderers/ClassBreaksRenderer.js +1 -1
- package/renderers/UniqueValueRenderer.js +1 -1
- package/renderers/support/scaleDependentSymbolUtils.js +2 -0
- package/rest/networks/circuits/queryCircuits.js +1 -1
- package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +21 -15
- package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/support/Query.js +1 -1
- package/support/revision.js +1 -1
- package/third-party-notices.txt +19 -12
- package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +149 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/webmap/utils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/assets/esri/core/workers/chunks/0c074c46d106ca4d3bad.js +0 -1
- package/assets/esri/core/workers/chunks/1f16bc8c02d8c4b2f693.js +0 -1
- package/assets/esri/core/workers/chunks/29878b52aa12b3815230.js +0 -1
- package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +0 -1
- package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +0 -1
- package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +0 -1
- package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +0 -1
- package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +0 -1
- package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +0 -1
- package/assets/esri/core/workers/chunks/65ac73de5bb133c6bf89.js +0 -1
- package/assets/esri/core/workers/chunks/67ec1694d6e18b7c234c.js +0 -1
- package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +0 -1
- package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +0 -1
- package/assets/esri/core/workers/chunks/7acf82763aeba44049d0.js +0 -1
- package/assets/esri/core/workers/chunks/88eb1e4320c4ada01711.js +0 -1
- package/assets/esri/core/workers/chunks/8af9a78cf316581ea482.js +0 -1
- package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +0 -1
- package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +0 -1
- package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +0 -1
- package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +0 -1
- package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +0 -1
- package/assets/esri/core/workers/chunks/b575292013bceef9b015.js +0 -1
- package/assets/esri/core/workers/chunks/bbc27d9285162696d089.js +0 -1
- package/assets/esri/core/workers/chunks/bc8a74da48b08309875f.js +0 -1
- package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +0 -1
- package/assets/esri/core/workers/chunks/ce66c551b7083913eee5.js +0 -1
- package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
- package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +0 -1
- package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +0 -1
- package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +0 -1
- package/assets/esri/core/workers/chunks/f43d628d47eec7d530c7.js +0 -1
- package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +0 -1
- package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +0 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +0 -132
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[758],{52106(t,e,n){n.d(e,{A:()=>A});var r,i,s=n(5482),o=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(4718),h=n(53966),p=n(36708),f=n(24326),g=n(91429),d=n(12195),y=n(65864),m=n(50498),M=n(55156),v=n(60950),b=n(54339),S=n(94128),w=n(33910);function x(t){if(null==t)return null;const e={};for(const n in t){const r=t[n];r&&(e[n]=r.toJSON())}return 0!==Object.keys(e).length?e:null}let A=class extends((0,a.OU)(u.o)){static{r=S.Z}static{i=this}constructor(t){super(t),this[r]=!0,this.aggregateIds=void 0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(h.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(t){const e=this._get("aggregateGeometries");JSON.stringify(e)!==JSON.stringify(t)&&this._set("aggregateGeometries",t)}set attributes(t){const e=this._get("attributes");e!==t&&(this._set("attributes",t),this._notifyLayer("attributes",e,t))}set geometry(t){const e=this._get("geometry");e!==t&&(this._set("geometry",t),"mesh"!==t?.type&&this._notifyLayer("geometry",e,t))}set popupTemplate(t){const e=this._get("popupTemplate");e!==t&&(this._set("popupTemplate",t),this._notifyLayer("popupTemplate",e,t))}set symbol(t){const e=this._get("symbol");e!==t&&(this._set("symbol",t),this._notifyLayer("symbol",e,t))}get version(){return this._version}set visible(t){const e=this._get("visible");e!==t&&(this._set("visible",t),this._notifyLayer("visible",e,t))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,aggregateIds:this.aggregateIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(t=!1){if(this.popupTemplate)return this.popupTemplate;const e=(0,v.E_)(this.origin);if(e)return e.popupTemplate??(t?e.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const e of[n,this.sourceLayer,this.layer])if(e&&"object"==typeof e){if("popupTemplate"in e&&e.popupTemplate)return e.popupTemplate;if(t&&"defaultPopupTemplate"in e&&null!=e.defaultPopupTemplate)return e.defaultPopupTemplate}return null}getAttribute(t){return this.attributes?.[t]}setAttribute(t,e){if(this.attributes){const n=this.getAttribute(t);this.attributes[t]=e,this._notifyLayer("attributes",n,e,t)}else this.attributes={[t]:e}}getObjectId(){const t=(0,M.I)(this.origin);if(t)return(0,b.r)(this,t);const e=this.sourceLayer??this.layer;return e?(0,b.r)(this,e):null}getGlobalId(){const t=(0,M.I)(this.origin);if(t?.globalIdField)return this.getAttribute(t.globalIdField);const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){const t={aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,d.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.aggregateIds?.length&&(t.aggregateIds=(0,c.o8)(this.aggregateIds)),t}notifyMeshTransformChanged(t={}){const{geometry:e}=this;if("mesh"===e?.type){const n={origin:e.origin,transform:e.transform};this._notifyLayer("origin-transform",n,n,t.action)}}_notifyLayer(t,e,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:t,oldValue:e,newValue:n};"origin-transform"===t&&(i.action=r),"attributes"===t&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:t,origin:e})=>{this._lastMeshTransform.localMatrix===t&&this._lastMeshTransform.origin===e||(this._lastMeshTransform.localMatrix=t,this._lastMeshTransform.origin=e,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const t=this.geometry;"mesh"===t?.type&&t.vertexSpace.origin?(this._lastMeshTransform.localMatrix=t.transform?.localMatrix,this._lastMeshTransform.origin=t.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(t,e)=>t===e,sync:!0})])}};(0,s.Cg)([(0,g.MZ)({value:null,json:{read:function(t){if(!t)return null;const e={};for(const n in t){const r=(0,y.rS)(t[n]);r&&(e[n]=r)}return 0!==Object.keys(e).length?e:null}}})],A.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,g.MZ)()],A.prototype,"aggregateIds",void 0),(0,s.Cg)([(0,g.MZ)({value:null})],A.prototype,"attributes",null),(0,s.Cg)([(0,g.MZ)({value:null,types:m.yR,json:{read:y.rS}})],A.prototype,"geometry",null),(0,s.Cg)([(0,g.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,s.Cg)([(0,g.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,s.Cg)([(0,g.MZ)({type:o.A,value:null})],A.prototype,"popupTemplate",null),(0,s.Cg)([(0,g.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,g.MZ)({value:null,types:w.Es})],A.prototype,"symbol",null),(0,s.Cg)([(0,g.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,s.Cg)([(0,g.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=i=(0,s.Cg)([(0,g.$K)("esri.Graphic")],A)},69052(t,e,n){n.d(e,{hr:()=>i,ie:()=>l,uC:()=>a});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return s(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return s(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t,e,n,r,i=0,s=!1){return(r-=i)<e?r+=o(t,e-r):r>n&&(r-=o(t,r-n)),s&&r===n&&(r=e),r+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,a,l,u,c,h,p,f,g,d){return[t,e,n,r,i,s,o,a,l,u,c,h,p,f,g,d]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>s,C:()=>o,Cc:()=>R,DI:()=>w,Il:()=>F,Io:()=>M,Ln:()=>m,Om:()=>A,Qr:()=>h,Re:()=>u,S8:()=>x,T9:()=>d,WQ:()=>l,Z0:()=>_,_S:()=>f,aI:()=>O,ei:()=>T,fw:()=>j,g7:()=>P,gL:()=>I,hG:()=>v,hZ:()=>a,hs:()=>y,jb:()=>L,jk:()=>g,lo:()=>q,lw:()=>c,m3:()=>b,oW:()=>z,t2:()=>Z,tn:()=>p,uE:()=>W,xg:()=>$,ze:()=>S});var r=n(51850),i=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function d(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function m(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function x(t,e){const n=e[0],r=e[1],i=e[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],l=n[2];return t[0]=i*l-s*a,t[1]=s*o-r*l,t[2]=r*a-i*o,t}function R(t,e,n,r){const i=e[0],s=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=o+r*(n[2]-o),t}function _(t,e,n){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12],t[1]=n[1]*r+n[5]*i+n[9]*s+n[13],t[2]=n[2]*r+n[6]*i+n[10]*s+n[14],t}function T(t,e,n){const r=e[0],i=e[1],s=e[2];return t[0]=r*n[0]+i*n[3]+s*n[6],t[1]=r*n[1]+i*n[4]+s*n[7],t[2]=r*n[2]+i*n[5]+s*n[8],t}function I(t,e,n){return j(t,e,n[0],n[1],n[2],n[3])}function j(t,e,n,r,i,s){const o=e[0],a=e[1],l=e[2],u=r*l-i*a,c=i*o-n*l,h=n*a-r*o,p=r*h-i*c,f=i*u-n*h,g=n*c-r*u,d=2*s;return t[0]=o+u*d+2*p,t[1]=a+c*d+2*f,t[2]=l+h*d+2*g,t}function P(t,e){x(k,t),x(E,e);const n=A(k,E);return n>1?0:n<-1?Math.PI:Math.acos(n)}const k=(0,r.vt)(),E=(0,r.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],o=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function z(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=u,N=c,G=h,$=M,q=v,F=s,W=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:P,bezier:function(t,e,n,r,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,h=3*l*o,p=l*s;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*p,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*p,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],l=n[2],u=i*l-s*a,c=s*o-r*l,h=r*a-i*o,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:z,dist:$,distance:M,div:G,divide:h,dot:A,equals:O,exactEquals:Z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:w,len:F,length:s,lerp:R,max:d,min:g,mul:N,multiply:c,negate:S,normalize:x,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*e,t},rotateX:function(t,e,n,r){const i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:m,set:a,sign:f,sqrDist:q,sqrLen:W,squaredDistance:v,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:u,transformMat3:T,transformMat4:_,transformQuat:I,transformQuatValues:j},Symbol.toStringTag,{value:"Module"}))},56512(t,e,n){function r(t){let e,n,r=[],i=!1;return function(...s){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(s,r)||(n=t.apply(this,s),e=this,r=s,i=!0),n}}n.d(e,{B:()=>r})},13069(t,e,n){n.d(e,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},159(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),s=n(69540),o=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(t,e,n){n.d(e,{A:()=>l});var r,i=n(5482),s=n(69540),o=n(25482),a=n(91429);let l=r=class extends((0,s.OU)(o.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(49208);function i(t,e,n,i,s,o,a=Math.floor(t.length/3)){const l=(0,r.jd)(e,s);if(null==l)return!1;if(l===r.pO){if(t===i&&n===o)return!0;const e=n+3*a;for(let r=n,s=o;r<e;r++,s++)i[s]=t[r]??0;return!0}const u=n+3*a;for(let e=n,r=o;e<u;e+=3,r+=3)l(t,e,i,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>h,jd:()=>c,pO:()=>f,w5:()=>u});var r=n(34727),i=n(86211),s=n(73941),o=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:S,6:null,8:null,0:null,3:d,11:y,2:f,4:R},5:{5:f,7:null,9:null,10:f,1:S,6:null,8:null,0:null,3:d,11:y,2:f,4:R},7:{5:null,7:f,9:null,10:f,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){const i=t[e]/k,s=P-2*Math.atan(Math.exp(-t[e+1]/k)),o=k+(t[e+2]??0),a=Math.cos(s)*o;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(s)*o},6:null,8:null,0:null,3:f,11:function(t,e,n,r){g(t,e,n,r),y(n,r,n,r)},2:g,4:function(t,e,n,r){g(t,e,n,r),R(n,r,n,r)}},4:{5:_,7:null,9:null,10:_,1:function(t,e,n,r){_(t,e,n,r),S(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){_(t,e,n,r),d(n,r,n,r)},11:function(t,e,n,r){_(t,e,n,r),y(n,r,n,r)},2:_,4:f},1:{5:C,7:null,9:null,10:C,1:f,6:null,8:null,0:null,3:function(t,e,n,r){C(t,e,n,r),d(n,r,n,r)},11:function(t,e,n,r){C(t,e,n,r),y(n,r,n,r)},2:C,4:function(t,e,n,r){C(t,e,n,r),R(n,r,n,r)}},6:{5:null,7:A,9:null,10:A,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:S,6:b,8:v,0:null,3:d,11:y,2:f,4:R},11:{5:m,7:null,9:null,10:m,1:function(t,e,n,r){m(t,e,n,r),S(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){m(t,e,n,r),d(n,r,n,r)},11:f,2:m,4:function(t,e,n,r){m(t,e,n,r),R(n,r,n,r)}}};function c(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(T.source.spatialReference===t&&T.dest.spatialReference===e)return T;const n=p(t,T.source),r=p(e,T.dest);return 0===n&&0===r?(0,l.aI)(t,e)?T.projector=f:T.projector=null:T.projector=u[n][r],T}function p(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,s.q8)(t)?e.spatialReferenceId=7:(0,s.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function f(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function g(t,e,n,r){n[r]=j*(t[e]/k),n[r+1]=j*(P-2*Math.atan(Math.exp(-t[e+1]/k))),n[r+2]=t[e+2]??0}function d(t,e,n,i){!function(t,e,n,i,s){const o=.4999999*Math.PI,a=(0,r.qE)(I*t[e+1],-o,o),l=Math.sin(a);n[i++]=I*t[e]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=t[e+2]??0}(t,e,n,i,o.$O)}function y(t,e,n,r){n[r]=t[e]*E,n[r+1]=t[e+1]*E,n[r+2]=t[e+2]??0}function m(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function M(t,e,n,r,i){const s=i+(t[e+2]??0),o=I*t[e],a=I*t[e+1],l=Math.cos(a)*s;n[r]=Math.cos(o)*l,n[r+1]=Math.sin(o)*l,n[r+2]=Math.sin(a)*s}function v(t,e,n,r){M(t,e,n,r,o.Sw.radius)}function b(t,e,n,r){M(t,e,n,r,o.sH.radius)}function S(t,e,n,r){M(t,e,n,r,o.$O.radius)}function w(t,e,n,i,s){const o=t[e],a=t[e+1],l=t[e+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(a,o);n[i++]=j*h,n[i++]=j*c,n[i]=u-s}function x(t,e,n,r){w(t,e,n,r,o.Sw.radius)}function A(t,e,n,r){w(t,e,n,r,o.sH.radius)}function C(t,e,n,r){w(t,e,n,r,o.$O.radius)}function R(t,e,n,r){!function(t,e,n,r,i){const s=I*t[e],o=I*t[e+1],a=t[e+2]??0,l=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(s),n[r++]=(c+a)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(t,e,n,r,o.$O)}function _(t,e,n,r){const i=a.TP,s=t[e],l=t[e+1],u=t[e+2]??0;let c,h,p,f,g,d,y,m,M,v,b,S,w,x,A,C,R,_,T,I,P;c=Math.abs(u),h=s*s+l*l,p=Math.sqrt(h),f=h+u*u,g=Math.sqrt(f),I=Math.atan2(l,s),d=u*u/f,y=h/f,x=i.a2/g,A=i.a3-i.a4/g,y>.3?(m=c/g*(1+y*(i.a1+x+d*A)/g),T=Math.asin(m),v=m*m,M=Math.sqrt(1-v)):(M=p/g*(1-d*(i.a5-x-y*A)/g),T=Math.acos(M),v=1-M*M,m=Math.sqrt(v)),b=1-o.$O.eccentricitySquared*v,S=o.$O.radius/Math.sqrt(b),w=i.a6*S,x=p-S*M,A=c-w*m,R=M*x+m*A,C=M*A-m*x,_=C/(w/b+R),T+=_,P=R+C*_/2,u<0&&(T=-T),n[r++]=j*I,n[r++]=j*T,n[r]=P}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},I=(0,r.kU)(1),j=(0,r.KJ)(1),P=.5*Math.PI,k=o.$O.radius,E=k*Math.PI/180,Z=180/(k*Math.PI)},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>B,initializeProjection:()=>V,isEqualBaseGCS:()=>U,isLoaded:()=>k,isLoadedOrLoad:()=>E,isLoadedOrLoadFor:()=>Z,load:()=>z,project:()=>L,projectAsync:()=>J,projectExtent:()=>it,projectMany:()=>N,projectMultipoint:()=>X,projectOrLoad:()=>$,projectOrLoadMany:()=>q,projectPoint:()=>K,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>H,requiresLoad:()=>O,test:()=>D,tryProject:()=>G,unload:()=>W});var r=n(49186),i=n(17676),s=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),h=n(91075),p=n(48526),f=n(86738),g=n(39829),d=n(82799),y=n(16930),m=n(98764),M=n(159),v=n(9762),b=n(49208);function S(t,e,n,r,i,s){return w[0]=t,w[1]=e,w[2]=n,(0,v.projectBuffer)(w,r,0,i,s,0)}const w=(0,a.vt)();var x=n(60408),A=n(21325),C=n(52006);let R=null,_=null,T=null,I=null,j={};const P=new o.I;function k(){return!!(_?.isLoaded()&&T?.isLoaded()&&I?.isLoaded())}function E(){return!!k()||((0,s.gc)(P),z(),!1)}function Z(t,e){return!t||!e||B(t,e)||E()}function O(t,e){return!B(t,e)&&!k()}async function z(t){null==R&&(R=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(_=t,_.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(T=t,T.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(I=t,I.load()))])),await R,(0,i.Te)(t),P.notify()}function L(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),N(t,t[0].spatialReference,e,n)):((0,l.f)(t),N([t],t.spatialReference,e,n)[0])}function N(t,e,n,r){if(null==e||null==n)return t;if(B(e,n,r))return t.map(t=>H(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return N(t.map(t=>H(t,e,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return N(t,e,y.A.WGS84).map(t=>H(t,y.A.WGS84,n));if(!k())throw new F;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:I.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let i=j[t];i||(i=I.getTransformation(e,n)||new M.A,j[t]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof h.A?_.executeMany(t,n,r):T.executeMany(t,n,r)}function G(t,e,n){try{return L(t,e,n)}catch(t){return null}}function $(t,e){const n=q([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function q(t,e,n){if(!k())for(const n of t)if(null!=n&&!(0,A.aI)(n.spatialReference,e)&&(0,A.fn)(n.spatialReference)&&(0,A.fn)(e)&&!B(n.spatialReference,e))return(0,s.gc)(P),{pending:z(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,A.aI)(t.spatialReference,e)?t:(0,A.fn)(t.spatialReference)&&(0,A.fn)(e)?L(t,e,n):null)}}class F extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function W(){R=null,_=null,T=null,I=null,j={}}const D={get loadPromise(){return R}};async function J(t,e,n){if((0,i.Te)(n),!t)return t;const r=q(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,i.Te)(n),J(t,e,n);const s=r.geometries??[];return Array.isArray(t)?s:s[0]}function B(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,A.aI)(t,e)||(0,A.fn)(t)&&(0,A.fn)(e)&&!!(0,b.jd)(t,e))}function U(t,e){if((0,A.aI)(t,e))return!0;if(!(0,A.fn)(t)||!(0,A.fn)(e))return!1;const n=(0,A.oT)(t)||(0,A.K8)(t)||(0,A.x1)(t),r=(0,A.oT)(e)||(0,A.K8)(e)||(0,A.x1)(e);return n&&r}async function V(t,e,n,r){if(k())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:i}of t)if(e&&n&&!B(e,n,i))return z(r)}else if(t&&e&&!B(t,e,n))return z(r);return(0,i.NO)(r)}function H(t,e,n){return t?(0,x.fT)(t)?Y(t,e,new f.A,n,0):(0,x.ZC)(t)?st(t,e,new c.A,n,0):(0,x.Bi)(t)?rt(t,e,new g.A,n,0):(0,x.Rg)(t)?et(t,e,new d.A,n,0):(0,x.U9)(t)?Q(t,e,new p.A,n,0):null:null}function K(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,i){ut[0]=t.x,ut[1]=t.y;const s=t.z;return ut[2]=void 0!==s?s:i,(0,v.projectBuffer)(ut,e,0,ut,r,0)?(n.x=ut[0],n.y=ut[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=ut[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function X(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,i){const{points:s,hasZ:o,hasM:a}=t,l=[],u=s.length,c=[];for(const t of s)c.push(t[0],t[1],o?t[2]:i);if(!(0,v.projectBuffer)(c,e,0,c,r,0,u))return null;const h=lt(o,r);for(let t=0;t<u;++t){const e=3*t,n=c[e],r=c[e+1];h&&a?l.push([n,r,c[e+2],s[t][3]]):h?l.push([n,r,c[e+2]]):a?l.push([n,r,s[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=o,n.hasM=a,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,i){const{curvePaths:s,paths:o,hasZ:a,hasM:l}=t;if(!(s?at(s,a??!1,l??!1,e,n.curvePaths=[],r,i):ot(o,a??!1,l??!1,e,n.paths,r,i)))return null;const u=lt(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,i){const{curveRings:s,rings:o,hasZ:a,hasM:l}=t;return(s?at(s,a??!1,l??!1,e,n.curveRings=[],r,i):ot(o,a??!1,l??!1,e,n.rings,r,i))?(n.spatialReference=r,n.hasZ=lt(a,r),n.hasM=l,n):null}function it(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=st(t,t.spatialReference,e,n,r)}function st(t,e,n,r,i){const{xmin:s,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=t;if(!S(s,o,u?t.zmin:i,e,ut,r))return null;const h=lt(u,r);return n.xmin=ut[0],n.ymin=ut[1],h&&(n.zmin=ut[2]),S(a,l,u?t.zmax:i,e,ut,r)?(n.xmax=ut[0],n.ymax=ut[1],h&&(n.zmax=ut[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ot(t,e,n,r,i,s,o=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:o);if(!(0,v.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;i.length=0;const u=e?3:2,c=lt(e,s);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);c||e.pop(),n&&e.push(r[u]),t.push(e)}i.push(t)}return!0}function at(t,e,n,r,i,s,o=0){const a=new Array;for(const n of t)for(const t of n){if((0,C.FG)(t))return!1;if((0,C.aO)(t)){const[n,r]=t.c;a.push(n[0],n[1],e?n[2]:o,r[0],r[1],o);continue}if((0,C.n1)(t)){const[n,r,i]=t.b;a.push(n[0],n[1],e?n[2]:o,r[0],r[1],o,i[0],i[1],o);continue}const n=t;a.push(n[0],n[1],e?n[2]:o)}if(!(0,v.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;i.length=0;const u=e?3:2,c=lt(e,s);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,C.yP)(r)[u]),(0,C.FG)(r))return!1;if((0,C.aO)(r)){const n=a[l++],r=a[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,C.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],s=a[l++];++l,t.push({b:[e,[n,r],[i,s]]});continue}t.push(e)}i.push(t)}return!0}function lt(t,e){return t||(0,u.xP)(e)||(0,A.aI)(e,m.Y0)}const ut=(0,a.vt)()},98764(t,e,n){n.d(e,{GD:()=>o,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),s=n(21325);const o=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(t){const e=h.get(t);if(e)return e;let n=o;if(t)if(t===a)n=a;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,s.tl)(e)||(0,s.tl)(r)?n=a:((0,s.ZL)(e)||(0,s.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===p?n=a:t===f&&(n=l)}}}return h.set(t,n),n}const h=new Map,p=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},4197(t,e,n){n.d(e,{Vj:()=>l,cj:()=>a,jh:()=>s,l5:()=>o});var r=n(34275),i=n(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function l(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>v,DC:()=>h,Ej:()=>f,Ie:()=>m,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>S,fA:()=>o,gE:()=>l,hZ:()=>y,iT:()=>p,is:()=>b,qv:()=>w,vI:()=>d,vY:()=>a,v_:()=>x,vt:()=>s,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(t=x){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,i,o,a=s()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function a(t,e=s()){return function(t,e,n,r=s()){return y(r,w),function(t,e,n=0,r=e.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],l=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),l=Math.max(l,e[n+3*t+1]),u=Math.max(u,e[n+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=l,t[5]=u}(r,t,e,n),r}(t,0,t.length/3,e)}function l(t,e=(0,i.jh)(24)){const[n,r,s,o,a,l]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=l,e[6]=n,e[7]=a,e[8]=s,e[9]=n,e[10]=a,e[11]=l,e[12]=o,e[13]=r,e[14]=s,e[15]=o,e[16]=r,e[17]=l,e[18]=o,e[19]=a,e[20]=s,e[21]=o,e[22]=a,e[23]=l,e}function u(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function p(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function d(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function m(t){return t?y(t,w):s(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function b(t){return 6===t.length}function S(t,e,n){if(null==t||null==e)return t===e;if(!b(t)||!b(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},31411(t,e,n){n.d(e,{GS:()=>A,gh:()=>R});var r=n(49186),i=n(56512),s=n(65864),o=n(4305),a=n(50954),l=n(52006),u=n(49663),c=n(46068),h=n(15507);const p=1e-6,f=[0,0];function g(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:r,minSegmentsPerCurve:i}){const s=n*n,o=e*e,a=1/r,l=this.interpolate(0),u=this.interpolate(1);(0,h.kb)(this.curveStart,l)>p&&t.push(l),this.initialize(l,u);const c=1/i;for(let t=i-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===s||!isFinite(s)||(0,h.kb)(this.arcStart,this.arcEnd)<s)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,h.kb)(this.curveEnd,u)>p&&t.push([...this.curveEnd]),t}}class y extends d{constructor(t,e){const[n,r,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[r,i],this._arcControlPoints=[r,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:r,tEnd:i}=this,[s,o]=this._arcControlPoints,a=(t-r)/(i-r),l=(0,h.RS)([],e,s,a),u=(0,h.RS)(f,s,o,a),c=(0,h.RS)([],o,n,a),p=(0,h.RS)([],l,u,a),g=(0,h.RS)([],u,c,a),d=(0,h.RS)([],p,g,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([g,c]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=l,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[r,i]=this._curveControlPoints;return(0,o.B4)(e,r,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,r]=this._arcControlPoints;return Math.max((0,h.yE)(n,t,e),(0,h.yE)(r,t,e))}}class m extends d{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,h.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function M(t,e,n,{cx:r,cy:i,radius:s,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:f,minSegmentsPerCurve:g}){if(l)return t.push([...n]),t;const d=2*s,y=[r+s*Math.cos(o),i+s*Math.sin(o)],m=[r+s*Math.cos(a),i+s*Math.sin(a)];(0,h.kb)(e,y)>p&&t.push(y);const M=Math.abs(a-o),v=c>0&&c<d?2*Math.asin(c/d):M,b=u>0&&u<=s?2*Math.acos(1-u/s):M,S=Math.min(v,b),w=Math.min(f,Math.max(g,Math.ceil(Math.abs(M/S)))),x=1/w;for(let e=1;e<w;e++){const n=e*x,l=o*(1-n)+a*n;t.push([r+s*Math.cos(l),i+s*Math.sin(l)])}return t.push(m),(0,h.kb)(n,m)>p&&t.push([...n]),t}function v(t,e,n,r){return new y(e,n).densify(t,r)}function b(t,e,n,r){const i=(0,a.pM)(e,n),[s]=n.c;return M(t,e,s,i,r)}function S(t,e,n,r){const i=(0,u.io)(e,n),[s]=n.a;return M(t,e,s,i,r)}function w(t,e,n,r){const[i,s,o,a,l,u,c]=n.a;return 0===u||0===c?(t.push([...i]),t):new m(e,n).densify(t,r)}function x(t,e,n,r){return(0,l.Xq)(n)?(t.push([...n]),t):(0,l.n1)(n)?v(t,e,n,r):(0,l.aO)(n)?b(t,e,n,r):(0,l.DA)(n)?S(t,e,n,r):w(t,e,n,r)}function A(t,e={}){if(!(0,l.Ed)(t))return t;const n=g(e),r=(0,l.FD)(t),i=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const i=r+1,s=[...(0,l.yP)(t[r])];0===r&&e.push(s),x(e,s,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const C=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,i){const o=new Set(e);return await async function(t,e,i){let s=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=_(t);if(i.has(e))o.spatialReference=i.get(e);else{s||(s=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=s.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=o.spatialReference.clone();u.read({xyTolerance:l}),o.spatialReference=u,i.set(e,u)}}}(t,o,i),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const r=C(n);return(0,s.rS)(function(t,e,n){if(!(0,l.Ed)(t))return t;const r=new Set(e),i=g(n),s=(0,l.FD)(t),o=[];let a=!1;for(const t of s){const e=[];for(let n=0;n<t.length-1;n++){const s=n+1,o=[...(0,l.yP)(t[n])];0===n&&e.push(o);const u=t[s];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!r.has("cubic-bezier")?v(e,o,u,i):(0,l.aO)(u)&&!r.has("circular-arc")?b(e,o,u,i):(0,l.DA)(u)&&!r.has("elliptic-arc")?S(e,o,u,i):(0,l.wY)(u)&&!r.has("elliptic-arc")?w(e,o,u,i):(e.push((0,l.tk)(u)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,r))})}function _(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},34403(t,e,n){n.d(e,{TP:()=>o});var r=n(79258);Math.PI;const i=r.$O.radius,s=r.$O.eccentricitySquared,o={a1:i*s,a2:i*s*i*s,a3:i*s*s/2,a4:i*s*i*s*2.5,a5:i*s+i*s*s/2,a6:1-s};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},17136(t,e,n){n.d(e,{Y_:()=>j,O7:()=>T,el:()=>_});var r=n(92602),i=n(69052),s=n(49186),o=n(53966),a=n(39829),l=n(82799),u=n(16930),c=n(80754),h=n(21325),p=n(28735),f=n(52006),g=n(31411),d=n(11254),y=n(60408),m=n(65864),M=n(2272),v=n(84952),b=n(92300);const S=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function w(t){return"polygon"===t[0].type}function x(t){return"polyline"===t[0].type}function A(t,e,n){const r=1e6;if(e){const e=(0,f.Ed)(t)?(0,g.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof l.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw S().error(t),new s.A("internal:geometry",t)}const n=(0,c.r8)(t),r=[];for(const t of n){const n=[];r.push(n),n.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const i=t[r][0],s=t[r][1],o=t[r+1][0],a=t[r+1][1],l=Math.sqrt((o-i)*(o-i)+(a-s)*(a-s)),u=(a-s)/l,c=(o-i)/l,h=l/e;if(h>1){for(let t=1;t<=h-1;t++){const r=t*e,o=c*r+i,a=u*r+s;n.push([o,a])}const t=(l+Math.floor(h-1)*e)/2,r=c*t+i,o=u*t+s;n.push([r,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:r,spatialReference:t.spatialReference}):new l.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,p.ci)(e,!0)}return n&&(t=(0,c.kS)(t,n)),t}function C(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,c.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,c.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,c.kd)(r,e);t=t.clone().offset(n*(-2*e),0)}else if(r<n){const e=(0,c.kd)(r,n);t=t.clone().offset(e*(-2*n),0)}}return t}function R(t,e){let n=-1;for(let r=0;r<e.cutIndexes.length;r++){const i=e.cutIndexes[r],s=e.geometries[r],o=(0,c.r8)(s);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const r=e[t][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,c.kd)(n,180);for(let n=0;n<e.length;n++){const e=s.getPoint(t,n);s.setPoint(t,n,e.clone().offset(r,0))}return!0}})}if(i===n){if(w(t))for(const e of(0,c.r8)(s))t[i]=t[i].addRing(e);else if(x(t))for(const e of(0,c.r8)(s))t[i]=t[i].addPath(e)}else n=i,t[i]=s}return t}async function _(t,e,n){if(!Array.isArray(t))return _([t],e);e&&"string"!=typeof e&&S().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let s,o,u,f,g,w,x,T,I=0;const j=[],P=[];for(const e of t)if(null!=e)if(s||(s=e.spatialReference,o=(0,h.Vp)(s),u=s.isWebMercator,w=u?102100:4326,f=c.j7[w].maxX,g=c.j7[w].minX,x=c.j7[w].plus180Line,T=c.j7[w].minus180Line),o)if("mesh"===e.type)P.push(e);else if("point"===e.type)P.push(C(e.clone(),f,g));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>C(t,f,g)),P.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);P.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,c.kd)(t.xmin,g)*(2*f);let r=0===n?e.clone():(0,c.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:s}=t;i=Number(i.toFixed(9)),s=Number(s.toFixed(9)),t.intersects(x)&&s!==f?(I=s>I?s:I,r=A(r,u),j.push(r),P.push("cut")):t.intersects(T)&&i!==g?(I=s*(2*f)>I?s*(2*f):I,r=A(r,u,360),j.push(r),P.push("cut")):P.push(r)}else P.push(e.clone());else P.push(e);else P.push(e);let k=(0,c.kd)(I,f),E=-90;const Z=k,O=new l.A;for(;k>0;){const t=360*k-180;O.addPath([[t,E],[t,-1*E]]),E*=-1,k--}if(j.length>0&&Z>0){const e=R(j,await async function(t,e,n,r){const i=(0,M.Dl)(t),s=e[0].spatialReference,o={...r,responseType:"json",query:{...i.query,f:"json",sr:(0,h.YX)(s),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,d.A)(i.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(t=>{const e=(0,m.rS)(t);return e.spatialReference=s,e})}}(i,j,O,n)),r=[],s=[];for(let n=0;n<P.length;n++){const i=P[n];if("cut"!==i)s.push(i);else{const i=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(r.push(i),s.push("simplify")):s.push(u?(0,p.Gh)(i):i)}}if(!r.length)return s;const o=await async function(t,e,n){const r="string"==typeof t?(0,v.An)(t):t,i=e[0].spatialReference,s=(0,y.$B)(e[0]),o={...n,query:{...r.query,f:"json",sr:(0,h.YX)(i),geometries:JSON.stringify((0,b.X)(e))}},{data:a}=await(0,d.A)(r.path+"/simplify",o);return(0,b.V)(a.geometries,s,i)}(i,r,n),a=[];for(let t=0;t<s.length;t++){const e=s[t];"simplify"!==e?a.push(e):a.push(u?(0,p.Gh)(o.shift()):o.shift())}return a}const z=[];for(let t=0;t<P.length;t++){const e=P[t];if("cut"!==e)z.push(e);else{const t=j.shift();z.push(!0===u?(0,p.Gh)(t):t)}}return z}function T(t,e,n){const r=(0,h.Vp)(n);if(null==r)return t;const[i,s]=r.valid,o=2*s;let a=0,l=0;e>s?a=Math.ceil(Math.abs(e-s)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>s?l=Math.ceil(Math.abs(t-s)/o):t<i&&(l=-Math.ceil(Math.abs(t-i)/o));let u=t+(a-l)*o;const c=u-e;return c>s?u-=o:c<i&&(u+=o),u}function I(t){const e=(0,h.Vp)(t);if(null==e)return null;const[n,r]=e.valid;return new i.hr(n,r)}const j=I(u.A.WGS84);I(u.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>u,kd:()=>l,r8:()=>c});var r=n(82799),i=n(16930),s=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,o.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,o.n1)(t)){const[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of c(t))for(const t of n)t[0]+=e;return t}function c(t){return(0,s.Bi)(t)?t.rings:t.paths}},50498(t,e,n){n.d(e,{Ye:()=>h,gy:()=>c,iI:()=>f,yR:()=>p});var r=n(66552),i=n(5443),s=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},f=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(t,e,n){n.d(e,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(t){return(e=t)&&r in e?t[r]:void 0;var e}},71756(t,e,n){n.r(e),n.d(e,{default:()=>O});var r,i=n(5482),s=n(11254),o=n(49186),a=n(81583),l=n(25728),u=n(17676),c=n(84952),h=n(91429),p=n(16930),f=n(4146),g=n(52136),d=n(89186),y=n(98534),m=n(18768),M=n(63074),v=n(69208),b=n(34287),S=n(8303),w=n(54310),x=n(25036),A=n(91921),C=n(60694),R=n(10873),_=n(33446),T=n(15775),I=n(88625),j=n(36005),P=n(43937);const k=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let E=r=class extends((0,M.dM)((0,x.j)((0,A.I)((0,d.f)((0,y.V)((0,b.q)((0,S.A)((0,m.b)((0,l.M)((0,w.J)((0,g.p)((0,v.d)(f.A))))))))))))){constructor(...t){super(...t),this.listMode="show",this.elevationInfo=new I.A({mode:"on-the-ground"}),this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},t).catch(u.QP).then(()=>this._fetchService(e))),Promise.resolve(this)}get attributionDataUrl(){const t=this.parsedUrl?.path.toLowerCase();return t?this._getDefaultAttribution(this._getMapName(t)):null}get hasAttributionData(){return super.hasAttributionData}readSpatialReference(t,e){return(t=t||e.tileInfo?.spatialReference)&&p.A.fromJSON(t)}writeSublayers(t,e,n,r){if(!this.loaded||!t)return;const i=t.slice().reverse().flatten(({sublayers:t})=>t&&t.toArray().reverse()).toArray(),s=[],o={writeSublayerStructure:!1,...r};i.forEach(t=>{const e=t.write({},o);s.push(e)}),s.some(t=>Object.keys(t).length>1)&&(e.layers=s)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(t){return Array.isArray(t)?t.map(t=>(0,c.An)(t).path):null}fetchTile(t,e,n,r={}){const{signal:i}=r,o=this.getTileUrl(t,e,n),a={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,s.A)(o,a).then(t=>t.data)}async fetchImageBitmapTile(t,e,n,i={}){const{signal:o}=i;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(t,e,n,i);return(0,_.Cp)(r,t,e,n,i)}const a=this.getTileUrl(t,e,n),l={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,s.A)(a,l);return(0,_.Cp)(u,t,e,n,i)}getTileUrl(t,e,n){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,i=(0,c.x0)({...this.parsedUrl?.query,blankTile:!r&&null,...this.customParameters,token:this.apiKey}),s=this.tileServers;return`${s&&s.length?s[e%s.length]:this.parsedUrl?.path}/tile/${t}/${e}/${n}${i?"?"+i:""}`}loadAll(){return(0,a.g)(this,t=>{t(this.allSublayers)})}_fetchService(t){return new Promise((e,n)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void e({data:this.sourceJSON})}if(!this.parsedUrl)throw new o.A("tile-layer:undefined-url","layer's url is not defined");const r=(0,C.qg)(this.parsedUrl.path);if(null!=r&&"ImageServer"===r.serverType)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e,n)}).then(e=>{let n=this.url;if(e.ssl&&(n=this.url=n.replace(/^http:/i,"https:")),this.sourceJSON=e.data,this.read(e.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,C.Wo)(n))return this._fetchServerVersion(n,t).then(t=>{this.read({currentVersion:t})}).catch(()=>{})})}_fetchServerVersion(t,e){if(!(0,C.Fi)(t))return Promise.reject();const n=t.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,s.A)(n,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t=>{if(t.data?.currentVersion)return t.data.currentVersion;throw new o.A("tile-layer:version-not-available","Server did not provide a version")})}_getMapName(t){const e=t.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/mapserver/i);return e?e[2]:void 0}_getDefaultAttribution(t){if(null==t)return null;let e;t=t.toLowerCase();for(let n=0,r=k.length;n<r;n++)if(e=k[n],e.toLowerCase().includes(t))return(0,c.s2)("//static.arcgis.com/attribution/"+e);return null}_getDefaultTileServers(t){if(null==t)return[];const e=-1!==t.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),n=-1!==t.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return e||n?[t,t.replace(e?/server\.arcgisonline/i:/services\.arcgisonline/i,e?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[Z]}};(0,i.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"attributionDataUrl",null),(0,i.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],E.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],E.prototype,"blendMode",void 0),(0,i.Cg)([(0,h.MZ)()],E.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],E.prototype,"isReference",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],E.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean})],E.prototype,"resampling",void 0),(0,i.Cg)([(0,h.MZ)()],E.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,h.MZ)({type:p.A})],E.prototype,"spatialReference",void 0),(0,i.Cg)([(0,j.w)("spatialReference",["spatialReference","tileInfo"])],E.prototype,"readSpatialReference",null),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],E.prototype,"path",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"sublayers",void 0),(0,i.Cg)([(0,P.K)("sublayers",{layers:{type:[T.A]}})],E.prototype,"writeSublayers",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],E.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)()],E.prototype,"tileServers",null),(0,i.Cg)([(0,h.wg)("tileServers")],E.prototype,"castTileServers",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],E.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)(R.OZ)],E.prototype,"url",void 0),E=r=(0,i.Cg)([(0,h.$K)("esri.layers.TileLayer")],E);const Z=Symbol("default-fetch-tile");E.prototype.fetchTile[Z]=!0;const O=E},54339(t,e,n){function r(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const n=[];for(const r of e.fieldNames)n.push(t.attributes[r]??null);return JSON.stringify(n)}}}function i(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const n=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(n)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}n.d(e,{W:()=>r,r:()=>i})},32730(t,e,n){n.d(e,{BI:()=>f,D3:()=>h,XJ:()=>p,lc:()=>c,mX:()=>d,rU:()=>g,tH:()=>b,vK:()=>S,zA:()=>w});var r=n(799);const i="__begin__",s="__end__",o=new RegExp(i,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(s+"$","i");function c(t){return t.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(t){return t.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(t){const e={expression:"",type:"none"};return t.labelExpressionInfo?t.labelExpressionInfo.value?(e.expression=t.labelExpressionInfo.value,e.type="conventional"):t.labelExpressionInfo.expression&&(e.expression=t.labelExpressionInfo.expression,e.type="arcade"):null!=t.labelExpression&&(e.expression=c(t.labelExpression),e.type="conventional"),e}function f(t){const e=p(t);if(!e)return null;switch(e.type){case"conventional":return d(e.expression);case"arcade":return e.expression}return null}function g(t){const e=p(t);if(!e)return null;switch(e.type){case"conventional":return function(t){const e=t?.match(y);return e?.[1].trim()||null}(e.expression);case"arcade":return b(e.expression)}return null}function d(t){let e;return t?(e=(0,r.HC)(t,t=>i+'$feature["'+t+'"]'+s),e=l.test(e)?e.replace(l,""):'"'+e,e=u.test(e)?e.replace(u,""):e+'"',e=e.replaceAll(o,'" + ').replaceAll(a,' + "')):e='""',e}const y=/^\s*\{([^}]+)\}\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(t){if(!t)return null;let e=m.exec(t)||M.exec(t);return e?e[1]||e[3]:(e=v.exec(t),e?e[2]:null)}const S=Symbol("LabelClassInstance");function w(t){return null!=t&&"object"==typeof t&&S in t}},5757(t,e,n){n.d(e,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}},98205(t,e,n){n.d(e,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}function s(t){return null!=t&&!isNaN(t)&&isFinite(t)}function o(t){return t.valueExpression?"expression":t.field&&"string"==typeof t.field?"field":"unknown"}function a(t,e){const n=e||o(t),r=t.valueUnit||"unknown";return"unknown"===n?"constant":t.stops?"stops":null!=t.minSize&&null!=t.maxSize&&null!=t.minDataValue&&null!=t.maxDataValue?"clamped-linear":"unknown"===r?null!=t.minSize&&null!=t.minDataValue?t.minSize&&t.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>s});var r=n(60408),i=n(65864);function s(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const r=(0,i.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=n,e})}},22671(t,e,n){n.d(e,{A:()=>M});var r,i=n(5482),s=n(52106),o=n(66552),a=n(25482),l=n(4718),u=n(91429),c=n(16930),h=n(60408),p=n(65864),f=n(50498),g=n(20437),d=n(36005),y=n(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=r=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,s.A)}writeGeometryType(t,e,n,r){if(t)return void m.write(t,e,n,r);const{features:i}=this;if(i)for(const t of i)if(null!=t?.geometry)return void m.write(t.geometry.type,e,n,r)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,r=(0,p.rS)(t);return r&&!n&&e.spatialReference&&(r.spatialReference=c.A.fromJSON(e.spatialReference)),r}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const r=e.features[n];if(r.geometry){const e=t?.[n];r.geometry=e?.toJSON()||r.geometry}}return e}quantize(t){const{scale:[e,n],translate:[r,i]}=t,s=this.features,o=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-r)/e),t=>Math.round((i-t)/n));for(let t=0,e=s.length;t<e;t++)o?.(s[t].geometry)||(s.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[r,i],scale:[s,o]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;l=n=>null==n?n:n*e+t}const u=this._getHydrationFunction(t,t=>t*s+r,t=>i-t*o,a,l);for(const{geometry:t}of e)null!=t&&u&&u(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const r=c.A.fromJSON(e.spatialReference),i=[];for(let e=0;e<t.length;e++){const s=t[e],o=n.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=r);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const t in u){const e=u[t],n=l[t],i=n?.spatialReference;null==e||i||(e.spatialReference=r)}i.push(o)}return i}_quantizePoints(t,e,n){let r,i;const s=[];for(let o=0,a=t.length;o<a;o++){const a=t[o];if(o>0){const t=e(a[0]),o=n(a[1]);t===r&&o===i||(s.push([t-r,o-i]),r=t,i=o)}else r=e(a[0]),i=n(a[1]),s.push([r,i])}return s.length>0?s:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const r=(0,h.Bi)(t)?t.rings:t.paths,i=[];for(let t=0,s=r.length;t<s;t++){const s=r[t],o=this._quantizePoints(s,e,n);o&&i.push(o)}return i.length>0?((0,h.Bi)(t)?t.rings=i:t.paths=i,t):null}:"multipoint"===t?t=>{const r=this._quantizePoints(t.points,e,n);return r&&r.length>0?(t.points=r,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,r,i){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),r&&(t.z=r(t.z))}:"polyline"===t||"polygon"===t?t=>{const s=(0,h.Bi)(t)?t.rings:t.paths;let o,a;for(let t=0,r=s.length;t<r;t++){const r=s[t];for(let t=0,i=r.length;t<i;t++){const i=r[t];t>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=e(o),i[1]=n(a)}}if(r&&i)for(let t=0,e=s.length;t<e;t++){const e=s[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2]),n[3]=i(n[3])}}else if(r)for(let t=0,e=s.length;t<e;t++){const e=s[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}else if(i)for(let t=0,e=s.length;t<e;t++){const e=s[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=i(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),r&&null!=t.zmax&&null!=t.zmin&&(t.zmax=r(t.zmax),t.zmin=r(t.zmin)),i&&null!=t.mmax&&null!=t.mmin&&(t.mmax=i(t.mmax),t.mmin=i(t.mmin))}:"multipoint"===t?t=>{const s=t.points;let o,a;for(let t=0,r=s.length;t<r;t++){const r=s[t];t>0?(o+=r[0],a+=r[1]):(o=r[0],a=r[1]),r[0]=e(o),r[1]=n(a)}if(r&&i)for(let t=0,e=s.length;t<e;t++){const e=s[t];e[2]=r(e[2]),e[3]=i(e[3])}else if(r)for(let t=0,e=s.length;t<e;t++){const e=s[t];e[2]=r(e[2])}else if(i)for(let t=0,e=s.length;t<e;t++){const e=s[t];e[2]=i(e[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,d.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,y.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,d.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=r=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},11831(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),s=n(25482),o=n(90629),a=n(91429),l=n(5760);let u=r=class extends s.o{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return(0,o.cr)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(t,e,n)=>({enabled:!n||!n.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(t,e,n){n.d(e,{A:()=>g});var r,i=n(5482),s=n(68197),o=n(4718),a=n(90629),l=n(91429),u=n(11831),c=n(20378),h=n(5760),p=n(93223),f=n(43937);let g=r=class extends c.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,n){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),n&&(r.color=n),r}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}castLineWidth(t){return(0,a.cr)(t)}writeLineHeight(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,o.o8)(this.backgroundColor),borderLineColor:(0,o.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,o.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,o.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,l.MZ)({type:s.A,json:{write:!0}})],g.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A,json:{write:!0}})],g.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],g.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],g.prototype,"font",void 0),(0,i.Cg)([(0,l.MZ)({...h.rM,json:{write:!0}})],g.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"kerning",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A,json:{write:!0}})],g.prototype,"haloColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],g.prototype,"haloSize",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rotated",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],g.prototype,"text",void 0),(0,i.Cg)([(0,p.e)({esriTS:"text"},{readOnly:!0})],g.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({...h.x0,json:{write:!0}})],g.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],g.prototype,"xoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],g.prototype,"yoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],g.prototype,"angle",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],g.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],g.prototype,"lineWidth",null),(0,i.Cg)([(0,f.K)("lineWidth")],g.prototype,"writeLineWidth",null),(0,i.Cg)([(0,l.wg)("lineWidth")],g.prototype,"castLineWidth",null),(0,i.Cg)([(0,l.MZ)(h.Tb)],g.prototype,"lineHeight",void 0),(0,i.Cg)([(0,f.K)("lineHeight")],g.prototype,"writeLineHeight",null),g=r=(0,i.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],g)},5760(t,e,n){n.d(e,{NM:()=>a,Tb:()=>l,_R:()=>o,h9:()=>s,rM:()=>u,x0:()=>c,y7:()=>h});var r=n(34727),i=n(56507);const s=["none","underline","line-through"],o=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:t=>{const e=(0,i.GB)(t);return 0===e?1:(0,r.qE)(e,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},h=8}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3300],{52106(t,e,n){n.d(e,{A:()=>I});var r,i,o=n(5482),s=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(4718),h=n(53966),p=n(36708),f=n(24326),d=n(91429),m=n(12195),y=n(65864),g=n(50498),M=n(55156),v=n(60950),b=n(54339),x=n(94128),w=n(33910);function S(t){if(null==t)return null;const e={};for(const n in t){const r=t[n];r&&(e[n]=r.toJSON())}return 0!==Object.keys(e).length?e:null}let I=class extends((0,a.OU)(u.o)){static{r=x.Z}static{i=this}constructor(t){super(t),this[r]=!0,this.aggregateIds=void 0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(h.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(t){const e=this._get("aggregateGeometries");JSON.stringify(e)!==JSON.stringify(t)&&this._set("aggregateGeometries",t)}set attributes(t){const e=this._get("attributes");e!==t&&(this._set("attributes",t),this._notifyLayer("attributes",e,t))}set geometry(t){const e=this._get("geometry");e!==t&&(this._set("geometry",t),"mesh"!==t?.type&&this._notifyLayer("geometry",e,t))}set popupTemplate(t){const e=this._get("popupTemplate");e!==t&&(this._set("popupTemplate",t),this._notifyLayer("popupTemplate",e,t))}set symbol(t){const e=this._get("symbol");e!==t&&(this._set("symbol",t),this._notifyLayer("symbol",e,t))}get version(){return this._version}set visible(t){const e=this._get("visible");e!==t&&(this._set("visible",t),this._notifyLayer("visible",e,t))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,aggregateIds:this.aggregateIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(t=!1){if(this.popupTemplate)return this.popupTemplate;const e=(0,v.E_)(this.origin);if(e)return e.popupTemplate??(t?e.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const e of[n,this.sourceLayer,this.layer])if(e&&"object"==typeof e){if("popupTemplate"in e&&e.popupTemplate)return e.popupTemplate;if(t&&"defaultPopupTemplate"in e&&null!=e.defaultPopupTemplate)return e.defaultPopupTemplate}return null}getAttribute(t){return this.attributes?.[t]}setAttribute(t,e){if(this.attributes){const n=this.getAttribute(t);this.attributes[t]=e,this._notifyLayer("attributes",n,e,t)}else this.attributes={[t]:e}}getObjectId(){const t=(0,M.I)(this.origin);if(t)return(0,b.r)(this,t);const e=this.sourceLayer??this.layer;return e?(0,b.r)(this,e):null}getGlobalId(){const t=(0,M.I)(this.origin);if(t?.globalIdField)return this.getAttribute(t.globalIdField);const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){const t={aggregateGeometries:S(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.aggregateIds?.length&&(t.aggregateIds=(0,c.o8)(this.aggregateIds)),t}notifyMeshTransformChanged(t={}){const{geometry:e}=this;if("mesh"===e?.type){const n={origin:e.origin,transform:e.transform};this._notifyLayer("origin-transform",n,n,t.action)}}_notifyLayer(t,e,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:t,oldValue:e,newValue:n};"origin-transform"===t&&(i.action=r),"attributes"===t&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:t,origin:e})=>{this._lastMeshTransform.localMatrix===t&&this._lastMeshTransform.origin===e||(this._lastMeshTransform.localMatrix=t,this._lastMeshTransform.origin=e,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const t=this.geometry;"mesh"===t?.type&&t.vertexSpace.origin?(this._lastMeshTransform.localMatrix=t.transform?.localMatrix,this._lastMeshTransform.origin=t.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(t,e)=>t===e,sync:!0})])}};(0,o.Cg)([(0,d.MZ)({value:null,json:{read:function(t){if(!t)return null;const e={};for(const n in t){const r=(0,y.rS)(t[n]);r&&(e[n]=r)}return 0!==Object.keys(e).length?e:null}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,d.MZ)()],I.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,d.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:y.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,d.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,d.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,d.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,d.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,d.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,d.MZ)({value:null,types:w.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,d.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,o.Cg)([(0,d.$K)("esri.Graphic")],I)},69052(t,e,n){n.d(e,{hr:()=>i,ie:()=>l,uC:()=>a});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+s(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,r,i=0,o=!1){return(r-=i)<e?r+=s(t,e-r):r>n&&(r-=s(t,r-n)),o&&r===n&&(r=e),r+i}function s(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,s,a,l,u,c,h,p,f,d,m){return[t,e,n,r,i,o,s,a,l,u,c,h,p,f,d,m]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>o,C:()=>s,Cc:()=>A,DI:()=>w,Il:()=>q,Io:()=>M,Ln:()=>g,Om:()=>I,Qr:()=>h,Re:()=>u,S8:()=>S,T9:()=>m,WQ:()=>l,Z0:()=>R,_S:()=>f,aI:()=>k,ei:()=>T,fw:()=>j,g7:()=>Z,gL:()=>E,hG:()=>v,hZ:()=>a,hs:()=>y,jb:()=>N,jk:()=>d,lo:()=>$,lw:()=>c,m3:()=>b,oW:()=>L,t2:()=>_,tn:()=>p,uE:()=>D,xg:()=>G,ze:()=>x});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function A(t,e,n,r){const i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function R(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function T(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){return j(t,e,n[0],n[1],n[2],n[3])}function j(t,e,n,r,i,o){const s=e[0],a=e[1],l=e[2],u=r*l-i*a,c=i*s-n*l,h=n*a-r*s,p=r*h-i*c,f=i*u-n*h,d=n*c-r*u,m=2*o;return t[0]=s+u*m+2*p,t[1]=a+c*m+2*f,t[2]=l+h*m+2*d,t}function Z(t,e){S(P,t),S(O,e);const n=I(P,O);return n>1?0:n<-1?Math.PI:Math.acos(n)}const P=(0,r.vt)(),O=(0,r.vt)();function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function k(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function L(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=u,z=c,F=h,G=M,$=v,q=o,D=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:Z,bezier:function(t,e,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,p=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*p,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*p,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,h=r*a-i*s,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:L,dist:G,distance:M,div:F,divide:h,dot:I,equals:k,exactEquals:_,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:w,len:q,length:o,lerp:A,max:m,min:d,mul:z,multiply:c,negate:x,normalize:S,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,set:a,sign:f,sqrDist:$,sqrLen:D,squaredDistance:v,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:u,transformMat3:T,transformMat4:R,transformQuat:E,transformQuatValues:j},Symbol.toStringTag,{value:"Module"}))},56512(t,e,n){function r(t){let e,n,r=[],i=!1;return function(...o){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(o,r)||(n=t.apply(this,o),e=this,r=o,i=!0),n}}n.d(e,{B:()=>r})},69397(t,e,n){n.d(e,{Qf:()=>l,Qh:()=>s,RS:()=>i,Ul:()=>f,i5:()=>p,lM:()=>o,qK:()=>c});var r=n(34275);const i=16;function o(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let n=h;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?s(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return i;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?u(e,i):0:0),0)}function u(t,e){return h+t.length*e}const c=32,h=16,p=145,f=64},13069(t,e,n){n.d(e,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},159(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(t,e,n){n.d(e,{A:()=>l});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429);let l=r=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(49208);function i(t,e,n,i,o,s,a=Math.floor(t.length/3)){const l=(0,r.jd)(e,o);if(null==l)return!1;if(l===r.pO){if(t===i&&n===s)return!0;const e=n+3*a;for(let r=n,o=s;r<e;r++,o++)i[o]=t[r]??0;return!0}const u=n+3*a;for(let e=n,r=s;e<u;e+=3,r+=3)l(t,e,i,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>h,jd:()=>c,pO:()=>f,w5:()=>u});var r=n(34727),i=n(86211),o=n(73941),s=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:x,6:null,8:null,0:null,3:m,11:y,2:f,4:A},5:{5:f,7:null,9:null,10:f,1:x,6:null,8:null,0:null,3:m,11:y,2:f,4:A},7:{5:null,7:f,9:null,10:f,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const i=t[e]/P,o=Z-2*Math.atan(Math.exp(-t[e+1]/P)),s=P+(t[e+2]??0),a=Math.cos(o)*s;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:f,11:function(t,e,n,r){d(t,e,n,r),y(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),A(n,r,n,r)}},4:{5:R,7:null,9:null,10:R,1:function(t,e,n,r){R(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){R(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){R(t,e,n,r),y(n,r,n,r)},2:R,4:f},1:{5:C,7:null,9:null,10:C,1:f,6:null,8:null,0:null,3:function(t,e,n,r){C(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){C(t,e,n,r),y(n,r,n,r)},2:C,4:function(t,e,n,r){C(t,e,n,r),A(n,r,n,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:x,6:b,8:v,0:null,3:m,11:y,2:f,4:A},11:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){g(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){g(t,e,n,r),m(n,r,n,r)},11:f,2:g,4:function(t,e,n,r){g(t,e,n,r),A(n,r,n,r)}}};function c(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(T.source.spatialReference===t&&T.dest.spatialReference===e)return T;const n=p(t,T.source),r=p(e,T.dest);return 0===n&&0===r?(0,l.aI)(t,e)?T.projector=f:T.projector=null:T.projector=u[n][r],T}function p(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,o.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===o.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===o.FY.wkt?e.spatialReferenceId=6:t.wkt===o.LJ.wkt?e.spatialReferenceId=8:(0,o.q8)(t)?e.spatialReferenceId=7:(0,o.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function f(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=j*(t[e]/P),n[r+1]=j*(Z-2*Math.atan(Math.exp(-t[e+1]/P))),n[r+2]=t[e+2]??0}function m(t,e,n,i){!function(t,e,n,i,o){const s=.4999999*Math.PI,a=(0,r.qE)(E*t[e+1],-s,s),l=Math.sin(a);n[i++]=E*t[e]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=t[e+2]??0}(t,e,n,i,s.$O)}function y(t,e,n,r){n[r]=t[e]*O,n[r+1]=t[e+1]*O,n[r+2]=t[e+2]??0}function g(t,e,n,r){n[r]=t[e]*_,n[r+1]=t[e+1]*_,n[r+2]=t[e+2]??0}function M(t,e,n,r,i){const o=i+(t[e+2]??0),s=E*t[e],a=E*t[e+1],l=Math.cos(a)*o;n[r]=Math.cos(s)*l,n[r+1]=Math.sin(s)*l,n[r+2]=Math.sin(a)*o}function v(t,e,n,r){M(t,e,n,r,s.Sw.radius)}function b(t,e,n,r){M(t,e,n,r,s.sH.radius)}function x(t,e,n,r){M(t,e,n,r,s.$O.radius)}function w(t,e,n,i,o){const s=t[e],a=t[e+1],l=t[e+2]??0,u=Math.sqrt(s*s+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(a,s);n[i++]=j*h,n[i++]=j*c,n[i]=u-o}function S(t,e,n,r){w(t,e,n,r,s.Sw.radius)}function I(t,e,n,r){w(t,e,n,r,s.sH.radius)}function C(t,e,n,r){w(t,e,n,r,s.$O.radius)}function A(t,e,n,r){!function(t,e,n,r,i){const o=E*t[e],s=E*t[e+1],a=t[e+2]??0,l=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(o),n[r++]=(c+a)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(t,e,n,r,s.$O)}function R(t,e,n,r){const i=a.TP,o=t[e],l=t[e+1],u=t[e+2]??0;let c,h,p,f,d,m,y,g,M,v,b,x,w,S,I,C,A,R,T,E,Z;c=Math.abs(u),h=o*o+l*l,p=Math.sqrt(h),f=h+u*u,d=Math.sqrt(f),E=Math.atan2(l,o),m=u*u/f,y=h/f,S=i.a2/d,I=i.a3-i.a4/d,y>.3?(g=c/d*(1+y*(i.a1+S+m*I)/d),T=Math.asin(g),v=g*g,M=Math.sqrt(1-v)):(M=p/d*(1-m*(i.a5-S-y*I)/d),T=Math.acos(M),v=1-M*M,g=Math.sqrt(v)),b=1-s.$O.eccentricitySquared*v,x=s.$O.radius/Math.sqrt(b),w=i.a6*x,S=p-x*M,I=c-w*g,A=M*S+g*I,C=M*I-g*S,R=C/(w/b+A),T+=R,Z=A+C*R/2,u<0&&(T=-T),n[r++]=j*E,n[r++]=j*T,n[r]=Z}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},E=(0,r.kU)(1),j=(0,r.KJ)(1),Z=.5*Math.PI,P=s.$O.radius,O=P*Math.PI/180,_=180/(P*Math.PI)},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>B,initializeProjection:()=>V,isEqualBaseGCS:()=>W,isLoaded:()=>P,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>_,load:()=>L,project:()=>N,projectAsync:()=>U,projectExtent:()=>it,projectMany:()=>z,projectMultipoint:()=>X,projectOrLoad:()=>G,projectOrLoadMany:()=>$,projectPoint:()=>H,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>K,requiresLoad:()=>k,test:()=>J,tryProject:()=>F,unload:()=>D});var r=n(49186),i=n(17676),o=n(62788),s=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),h=n(91075),p=n(48526),f=n(86738),d=n(39829),m=n(82799),y=n(16930),g=n(98764),M=n(159),v=n(9762),b=n(49208);function x(t,e,n,r,i,o){return w[0]=t,w[1]=e,w[2]=n,(0,v.projectBuffer)(w,r,0,i,o,0)}const w=(0,a.vt)();var S=n(60408),I=n(21325),C=n(52006);let A=null,R=null,T=null,E=null,j={};const Z=new s.I;function P(){return!!(R?.isLoaded()&&T?.isLoaded()&&E?.isLoaded())}function O(){return!!P()||((0,o.gc)(Z),L(),!1)}function _(t,e){return!t||!e||B(t,e)||O()}function k(t,e){return!B(t,e)&&!P()}async function L(t){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(R=t,R.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(T=t,T.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(E=t,E.load()))])),await A,(0,i.Te)(t),Z.notify()}function N(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),z(t,t[0].spatialReference,e,n)):((0,l.f)(t),z([t],t.spatialReference,e,n)[0])}function z(t,e,n,r){if(null==e||null==n)return t;if(B(e,n,r))return t.map(t=>K(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return z(t.map(t=>K(t,e,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return z(t,e,y.A.WGS84).map(t=>K(t,y.A.WGS84,n));if(!P())throw new q;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:E.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let i=j[t];i||(i=E.getTransformation(e,n)||new M.A,j[t]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof h.A?R.executeMany(t,n,r):T.executeMany(t,n,r)}function F(t,e,n){try{return N(t,e,n)}catch(t){return null}}function G(t,e){const n=$([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(t,e,n){if(!P())for(const n of t)if(null!=n&&!(0,I.aI)(n.spatialReference,e)&&(0,I.fn)(n.spatialReference)&&(0,I.fn)(e)&&!B(n.spatialReference,e))return(0,o.gc)(Z),{pending:L(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,I.aI)(t.spatialReference,e)?t:(0,I.fn)(t.spatialReference)&&(0,I.fn)(e)?N(t,e,n):null)}}class q extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){A=null,R=null,T=null,E=null,j={}}const J={get loadPromise(){return A}};async function U(t,e,n){if((0,i.Te)(n),!t)return t;const r=$(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,i.Te)(n),U(t,e,n);const o=r.geometries??[];return Array.isArray(t)?o:o[0]}function B(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,I.aI)(t,e)||(0,I.fn)(t)&&(0,I.fn)(e)&&!!(0,b.jd)(t,e))}function W(t,e){if((0,I.aI)(t,e))return!0;if(!(0,I.fn)(t)||!(0,I.fn)(e))return!1;const n=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t),r=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e);return n&&r}async function V(t,e,n,r){if(P())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:i}of t)if(e&&n&&!B(e,n,i))return L(r)}else if(t&&e&&!B(t,e,n))return L(r);return(0,i.NO)(r)}function K(t,e,n){return t?(0,S.fT)(t)?Y(t,e,new f.A,n,0):(0,S.ZC)(t)?ot(t,e,new c.A,n,0):(0,S.Bi)(t)?rt(t,e,new d.A,n,0):(0,S.Rg)(t)?et(t,e,new m.A,n,0):(0,S.U9)(t)?Q(t,e,new p.A,n,0):null:null}function H(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,i){ut[0]=t.x,ut[1]=t.y;const o=t.z;return ut[2]=void 0!==o?o:i,(0,v.projectBuffer)(ut,e,0,ut,r,0)?(n.x=ut[0],n.y=ut[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ut[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function X(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,i){const{points:o,hasZ:s,hasM:a}=t,l=[],u=o.length,c=[];for(const t of o)c.push(t[0],t[1],s?t[2]:i);if(!(0,v.projectBuffer)(c,e,0,c,r,0,u))return null;const h=lt(s,r);for(let t=0;t<u;++t){const e=3*t,n=c[e],r=c[e+1];h&&a?l.push([n,r,c[e+2],o[t][3]]):h?l.push([n,r,c[e+2]]):a?l.push([n,r,o[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=s,n.hasM=a,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=t;if(!(o?at(o,a??!1,l??!1,e,n.curvePaths=[],r,i):st(s,a??!1,l??!1,e,n.paths,r,i)))return null;const u=lt(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=t;return(o?at(o,a??!1,l??!1,e,n.curveRings=[],r,i):st(s,a??!1,l??!1,e,n.rings,r,i))?(n.spatialReference=r,n.hasZ=lt(a,r),n.hasM=l,n):null}function it(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=ot(t,t.spatialReference,e,n,r)}function ot(t,e,n,r,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:c}=t;if(!x(o,s,u?t.zmin:i,e,ut,r))return null;const h=lt(u,r);return n.xmin=ut[0],n.ymin=ut[1],h&&(n.zmin=ut[2]),x(a,l,u?t.zmax:i,e,ut,r)?(n.xmax=ut[0],n.ymax=ut[1],h&&(n.zmax=ut[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function st(t,e,n,r,i,o,s=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:s);if(!(0,v.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=e?3:2,c=lt(e,o);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);c||e.pop(),n&&e.push(r[u]),t.push(e)}i.push(t)}return!0}function at(t,e,n,r,i,o,s=0){const a=new Array;for(const n of t)for(const t of n){if((0,C.FG)(t))return!1;if((0,C.aO)(t)){const[n,r]=t.c;a.push(n[0],n[1],e?n[2]:s,r[0],r[1],s);continue}if((0,C.n1)(t)){const[n,r,i]=t.b;a.push(n[0],n[1],e?n[2]:s,r[0],r[1],s,i[0],i[1],s);continue}const n=t;a.push(n[0],n[1],e?n[2]:s)}if(!(0,v.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=e?3:2,c=lt(e,o);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,C.yP)(r)[u]),(0,C.FG)(r))return!1;if((0,C.aO)(r)){const n=a[l++],r=a[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,C.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],o=a[l++];++l,t.push({b:[e,[n,r],[i,o]]});continue}t.push(e)}i.push(t)}return!0}function lt(t,e){return t||(0,u.xP)(e)||(0,I.aI)(e,g.Y0)}const ut=(0,a.vt)()},98764(t,e,n){n.d(e,{GD:()=>s,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),o=n(21325);const s=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(t){const e=h.get(t);if(e)return e;let n=s;if(t)if(t===a)n=a;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,o.tl)(e)||(0,o.tl)(r)?n=a:((0,o.ZL)(e)||(0,o.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===p?n=a:t===f&&(n=l)}}}return h.set(t,n),n}const h=new Map,p=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},4197(t,e,n){n.d(e,{Vj:()=>l,cj:()=>a,jh:()=>o,l5:()=>s});var r=n(34275),i=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function l(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>v,DC:()=>h,Ej:()=>f,Ie:()=>g,Jt:()=>M,Ne:()=>d,RF:()=>c,aI:()=>x,fA:()=>s,gE:()=>l,hZ:()=>y,iT:()=>p,is:()=>b,qv:()=>w,vI:()=>m,vY:()=>a,v_:()=>S,vt:()=>o,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(t=S){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,e,n,r,i,s,a=o()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=i,a[5]=s,a}function a(t,e=o()){return function(t,e,n,r=o()){return y(r,w),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],s=t[2],a=t[3],l=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),s=Math.min(s,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),l=Math.max(l,e[n+3*t+1]),u=Math.max(u,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=s,t[3]=a,t[4]=l,t[5]=u}(r,t,e,n),r}(t,0,t.length/3,e)}function l(t,e=(0,i.jh)(24)){const[n,r,o,s,a,l]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=l,e[6]=n,e[7]=a,e[8]=o,e[9]=n,e[10]=a,e[11]=l,e[12]=s,e[13]=r,e[14]=o,e[15]=s,e[16]=r,e[17]=l,e[18]=s,e[19]=a,e[20]=o,e[21]=s,e[22]=a,e[23]=l,e}function u(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function p(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function m(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function g(t){return t?y(t,w):o(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function b(t){return 6===t.length}function x(t,e,n){if(null==t||null==e)return t===e;if(!b(t)||!b(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];o()},31411(t,e,n){n.d(e,{GS:()=>I,gh:()=>A});var r=n(49186),i=n(56512),o=n(65864),s=n(4305),a=n(50954),l=n(52006),u=n(49663),c=n(46068),h=n(15507);const p=1e-6,f=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:r,minSegmentsPerCurve:i}){const o=n*n,s=e*e,a=1/r,l=this.interpolate(0),u=this.interpolate(1);(0,h.kb)(this.curveStart,l)>p&&t.push(l),this.initialize(l,u);const c=1/i;for(let t=i-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,h.kb)(this.arcStart,this.arcEnd)<o)&&(0===s||!isFinite(s)||this.getDeviation2()<s)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,h.kb)(this.curveEnd,u)>p&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[n,r,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[r,i],this._arcControlPoints=[r,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:r,tEnd:i}=this,[o,s]=this._arcControlPoints,a=(t-r)/(i-r),l=(0,h.RS)([],e,o,a),u=(0,h.RS)(f,o,s,a),c=(0,h.RS)([],s,n,a),p=(0,h.RS)([],l,u,a),d=(0,h.RS)([],u,c,a),m=(0,h.RS)([],p,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,c]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[r,i]=this._curveControlPoints;return(0,s.B4)(e,r,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,r]=this._arcControlPoints;return Math.max((0,h.yE)(n,t,e),(0,h.yE)(r,t,e))}}class g extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,h.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function M(t,e,n,{cx:r,cy:i,radius:o,thetaStart:s,thetaEnd:a,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:f,minSegmentsPerCurve:d}){if(l)return t.push([...n]),t;const m=2*o,y=[r+o*Math.cos(s),i+o*Math.sin(s)],g=[r+o*Math.cos(a),i+o*Math.sin(a)];(0,h.kb)(e,y)>p&&t.push(y);const M=Math.abs(a-s),v=c>0&&c<m?2*Math.asin(c/m):M,b=u>0&&u<=o?2*Math.acos(1-u/o):M,x=Math.min(v,b),w=Math.min(f,Math.max(d,Math.ceil(Math.abs(M/x)))),S=1/w;for(let e=1;e<w;e++){const n=e*S,l=s*(1-n)+a*n;t.push([r+o*Math.cos(l),i+o*Math.sin(l)])}return t.push(g),(0,h.kb)(n,g)>p&&t.push([...n]),t}function v(t,e,n,r){return new y(e,n).densify(t,r)}function b(t,e,n,r){const i=(0,a.pM)(e,n),[o]=n.c;return M(t,e,o,i,r)}function x(t,e,n,r){const i=(0,u.io)(e,n),[o]=n.a;return M(t,e,o,i,r)}function w(t,e,n,r){const[i,o,s,a,l,u,c]=n.a;return 0===u||0===c?(t.push([...i]),t):new g(e,n).densify(t,r)}function S(t,e,n,r){return(0,l.Xq)(n)?(t.push([...n]),t):(0,l.n1)(n)?v(t,e,n,r):(0,l.aO)(n)?b(t,e,n,r):(0,l.DA)(n)?x(t,e,n,r):w(t,e,n,r)}function I(t,e={}){if(!(0,l.Ed)(t))return t;const n=d(e),r=(0,l.FD)(t),i=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const i=r+1,o=[...(0,l.yP)(t[r])];0===r&&e.push(o),S(e,o,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const C=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,i){const s=new Set(e);return await async function(t,e,i){let o=null;for(const s of t)if(s&&(0,l.Ed)(s)&&null==s.spatialReference.xyTolerance&&(0,l.V8)(s,e)){const t=s.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=R(t);if(i.has(e))s.spatialReference=i.get(e);else{o||(o=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=s.spatialReference.clone();u.read({xyTolerance:l}),s.spatialReference=u,i.set(e,u)}}}(t,s,i),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const r=C(n);return(0,o.rS)(function(t,e,n){if(!(0,l.Ed)(t))return t;const r=new Set(e),i=d(n),o=(0,l.FD)(t),s=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,s=[...(0,l.yP)(t[n])];0===n&&e.push(s);const u=t[o];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!r.has("cubic-bezier")?v(e,s,u,i):(0,l.aO)(u)&&!r.has("circular-arc")?b(e,s,u,i):(0,l.DA)(u)&&!r.has("elliptic-arc")?x(e,s,u,i):(0,l.wY)(u)&&!r.has("elliptic-arc")?w(e,s,u,i):(e.push((0,l.tk)(u)),a=!0)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:s}:{paths:s}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:s}:{rings:s}}}(t,e,r))})}function R(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},34403(t,e,n){n.d(e,{TP:()=>s});var r=n(79258);Math.PI;const i=r.$O.radius,o=r.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},17136(t,e,n){n.d(e,{Y_:()=>j,O7:()=>T,el:()=>R});var r=n(92602),i=n(69052),o=n(49186),s=n(53966),a=n(39829),l=n(82799),u=n(16930),c=n(80754),h=n(21325),p=n(28735),f=n(52006),d=n(31411),m=n(11254),y=n(60408),g=n(65864),M=n(2272),v=n(84952),b=n(92300);const x=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(t){return"polygon"===t[0].type}function S(t){return"polyline"===t[0].type}function I(t,e,n){const r=1e6;if(e){const e=(0,f.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof l.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(t),new o.A("internal:geometry",t)}const n=(0,c.r8)(t),r=[];for(const t of n){const n=[];r.push(n),n.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const i=t[r][0],o=t[r][1],s=t[r+1][0],a=t[r+1][1],l=Math.sqrt((s-i)*(s-i)+(a-o)*(a-o)),u=(a-o)/l,c=(s-i)/l,h=l/e;if(h>1){for(let t=1;t<=h-1;t++){const r=t*e,s=c*r+i,a=u*r+o;n.push([s,a])}const t=(l+Math.floor(h-1)*e)/2,r=c*t+i,s=u*t+o;n.push([r,s])}n.push([s,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:r,spatialReference:t.spatialReference}):new l.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,p.ci)(e,!0)}return n&&(t=(0,c.kS)(t,n)),t}function C(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,c.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,c.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,c.kd)(r,e);t=t.clone().offset(n*(-2*e),0)}else if(r<n){const e=(0,c.kd)(r,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let r=0;r<e.cutIndexes.length;r++){const i=e.cutIndexes[r],o=e.geometries[r],s=(0,c.r8)(o);for(let t=0;t<s.length;t++){const e=s[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const r=e[t][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,c.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(r,0))}return!0}})}if(i===n){if(w(t))for(const e of(0,c.r8)(o))t[i]=t[i].addRing(e);else if(S(t))for(const e of(0,c.r8)(o))t[i]=t[i].addPath(e)}else n=i,t[i]=o}return t}async function R(t,e,n){if(!Array.isArray(t))return R([t],e);e&&"string"!=typeof e&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let o,s,u,f,d,w,S,T,E=0;const j=[],Z=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,s=(0,h.Vp)(o),u=o.isWebMercator,w=u?102100:4326,f=c.j7[w].maxX,d=c.j7[w].minX,S=c.j7[w].plus180Line,T=c.j7[w].minus180Line),s)if("mesh"===e.type)Z.push(e);else if("point"===e.type)Z.push(C(e.clone(),f,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>C(t,f,d)),Z.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,s);Z.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,c.kd)(t.xmin,d)*(2*f);let r=0===n?e.clone():(0,c.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:o}=t;i=Number(i.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(S)&&o!==f?(E=o>E?o:E,r=I(r,u),j.push(r),Z.push("cut")):t.intersects(T)&&i!==d?(E=o*(2*f)>E?o*(2*f):E,r=I(r,u,360),j.push(r),Z.push("cut")):Z.push(r)}else Z.push(e.clone());else Z.push(e);else Z.push(e);let P=(0,c.kd)(E,f),O=-90;const _=P,k=new l.A;for(;P>0;){const t=360*P-180;k.addPath([[t,O],[t,-1*O]]),O*=-1,P--}if(j.length>0&&_>0){const e=A(j,await async function(t,e,n,r){const i=(0,M.Dl)(t),o=e[0].spatialReference,s={...r,responseType:"json",query:{...i.query,f:"json",sr:(0,h.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(i.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(i,j,k,n)),r=[],o=[];for(let n=0;n<Z.length;n++){const i=Z[n];if("cut"!==i)o.push(i);else{const i=e.shift(),s=t[n];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&i.rings.length>=s.rings.length?(r.push(i),o.push("simplify")):o.push(u?(0,p.Gh)(i):i)}}if(!r.length)return o;const s=await async function(t,e,n){const r="string"==typeof t?(0,v.An)(t):t,i=e[0].spatialReference,o=(0,y.$B)(e[0]),s={...n,query:{...r.query,f:"json",sr:(0,h.YX)(i),geometries:JSON.stringify((0,b.X)(e))}},{data:a}=await(0,m.A)(r.path+"/simplify",s);return(0,b.V)(a.geometries,o,i)}(i,r,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(u?(0,p.Gh)(s.shift()):s.shift())}return a}const L=[];for(let t=0;t<Z.length;t++){const e=Z[t];if("cut"!==e)L.push(e);else{const t=j.shift();L.push(!0===u?(0,p.Gh)(t):t)}}return L}function T(t,e,n){const r=(0,h.Vp)(n);if(null==r)return t;const[i,o]=r.valid,s=2*o;let a=0,l=0;e>o?a=Math.ceil(Math.abs(e-o)/s):e<i&&(a=-Math.ceil(Math.abs(e-i)/s)),t>o?l=Math.ceil(Math.abs(t-o)/s):t<i&&(l=-Math.ceil(Math.abs(t-i)/s));let u=t+(a-l)*s;const c=u-e;return c>o?u-=s:c<i&&(u+=s),u}function E(t){const e=(0,h.Vp)(t);if(null==e)return null;const[n,r]=e.valid;return new i.hr(n,r)}const j=E(u.A.WGS84);E(u.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>u,kd:()=>l,r8:()=>c});var r=n(82799),i=n(16930),o=n(60408),s=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,s.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,s.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,s.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,s.n1)(t)){const[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of c(t))for(const t of n)t[0]+=e;return t}function c(t){return(0,o.Bi)(t)?t.rings:t.paths}},83960(t,e,n){n.d(e,{X_:()=>o,oW:()=>a,zx:()=>s});var r=n(34727),i=n(86211);function o(t,e){const n=e||t.extent,r=t.width,o=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*o*i.dy*96:0}function s(t,e,n){return function(t,e){return 0===e||(0,r.Sp)(t,e)||t<e}(t,e)&&function(t,e){return 0===e||(0,r.Sp)(t,e)||t>e}(t,n)}function a(t,e){return(0,r.Sp)(t,e)?0:(t||Number.POSITIVE_INFINITY)>(e||Number.POSITIVE_INFINITY)?1:-1}},50498(t,e,n){n.d(e,{Ye:()=>h,gy:()=>c,iI:()=>f,yR:()=>p});var r=n(66552),i=n(5443),o=n(91075),s=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},f=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(t,e,n){n.d(e,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(t){return(e=t)&&r in e?t[r]:void 0;var e}},7656(t,e,n){n.r(e),n.d(e,{default:()=>U});var r=n(5482),i=n(11254),o=n(7762),s=n(49186),a=n(81583),l=n(25728),u=n(17676),c=n(86211),h=n(91429),p=n(56507),f=n(35666),d=n(5443),m=n(83960),y=n(21325),g=n(4146),M=n(52136),v=n(98534),b=n(18768),x=n(63074),w=n(69208),S=n(34287),I=n(8303),C=n(54310),A=n(25036),R=n(91921),T=n(82935),E=n(10873),j=n(69622),Z=n(39516);function P(t,e){return"floorInfo"in e&&e.floorInfo?.floorField?function(t,e){if(!t?.length)return null;const n=t.filter(t=>""!==t).map(t=>`'${t}'`);return n.push("''"),`${e} IN (${n.join(",")}) OR ${e} IS NULL`}(t,e.floorInfo.floorField):null}var O=n(63389);const _={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let k=class extends j.A{constructor(t){super(t),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const t=this.visibleSublayers.map(t=>{const e=P(this.floors,t);return t.toExportImageJSON(e)});return t.length?JSON.stringify(t):null}get hasDynamicLayers(){return this.layer&&(0,O.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(t){this._get("layer")!==t&&(this._set("layer",t),this.removeHandles("layer"),t&&this.addHandles([t.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),t.on("sublayer-update",t=>this.notifyChange(_[t.propertyName]))],"layer"))}get layers(){const t=this.visibleSublayers;return t?t.length?"show:"+t.map(t=>t.id).join(","):"show:-1":null}get layerDefs(){const t=!!this.floors?.length,e=this.visibleSublayers.filter(e=>null!=e.definitionExpression||t&&null!=e.floorInfo);return e.length?JSON.stringify(e.reduce((t,e)=>{const n=P(this.floors,e),r=(0,Z.mA)(n,e.definitionExpression);return null!=r&&(t[e.id]=r),t},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const t=this.layer;return t&&(t.commitProperty("dpi"),t.commitProperty("imageFormat"),t.commitProperty("imageTransparency"),t.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const t=[];if(!this.layer)return t;const e=this.layer.sublayers,n=this.scale,r=e=>{e.visible&&(0===n||(0,m.zx)(n,e.minScale,e.maxScale))&&(e.sublayers?e.sublayers.forEach(r):t.unshift(e))};e?.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==t.length||i.some((e,n)=>t[n]!==e)?t:i}toJSON(){const t=this.layer;let e={dpi:t.dpi,format:t.imageFormat,transparent:t.imageTransparency,gdbVersion:t.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?e.dynamicLayers=this.dynamicLayers:e={...e,layers:this.layers,layerDefs:this.layerDefs},e}};(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"dynamicLayers",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"floors",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"hasDynamicLayers",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"layer",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"layers",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"layerDefs",null),(0,r.Cg)([(0,h.MZ)({type:Number})],k.prototype,"scale",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"version",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"visibleSublayers",null),k=(0,r.Cg)([(0,h.$K)("esri.layers.support.ExportImageParameters")],k);var L=n(33446),N=n(15775),z=n(91908),F=n(88625),G=n(79677),$=n(56400),q=n(36005),D=n(43937);let J=class extends((0,x.dM)((0,T.e)((0,A.j)((0,R.I)((0,v.V)((0,b.b)((0,S.q)((0,I.A)((0,l.M)((0,C.J)((0,M.p)((0,w.d)(g.A))))))))))))){constructor(...t){super(...t),this._exportImageParameters=new k({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new F.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,u.sg)(async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(390).then(n.bind(n,10390));switch(t){case 0:return i(this,e);case 1:return o(this,r,e)}})}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},t).catch(u.QP).then(()=>this._fetchService(e))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(t,e){const n=e.supportedImageFormatTypes;return n&&n.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(t){super.portalItem=t}writeSublayers(t,e,n,r){if(!this.loaded||!t)return;const i=t.slice().reverse().flatten(({sublayers:t})=>t&&t.toArray().reverse()).toArray();let o=!1;const s=(0,f.aB)(r.origin);let a;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===s){const t=this.createSublayersForOrigin("service").sublayers;o=(0,O.Zx)(i,t,2)}else if(s>3){const t=this.createSublayersForOrigin("portal-item");o=(0,O.Zx)(i,t.sublayers,(0,f.aB)(t.origin)),a=t.originWithPartialOverrides}const l=[],u={writeSublayerStructure:o,...r,minimumWritableOrigin:a};let c=o||this.hasVisibleLayersForOrigin(s);i.forEach(t=>{const e=t.write({},u);l.push(e),c=c||"user"===t.originOf("visible")}),l.some(t=>Object.keys(t).length>1)&&(e.layers=l),c&&(e.visibleLayers=i.filter(t=>t.visible).map(t=>t.id))}createExportImageParameters(t,e,n,r){const i=r?.pixelRatio||1;t&&this.version>=10&&(t=t.clone().shiftCentralMeridian()),this._exportImageParameters.floors=r?.floors??null,this._exportImageParameters.scale=r?.scale||(0,m.X_)({extent:t,width:e})*i;const o=this._exportImageParameters.toJSON(),s=!r?.rotation||this.version<10.3?{}:{rotation:-r.rotation},a=t?.spatialReference,l=(0,y.YX)(a);if(r?.scale&&t){const n=t.width/e*((0,c.GA)(t?.spatialReference)*c.dy);o.dpi=r.scale/n}o.dpi*=i;const u={};if(r?.timeExtent){const{start:t,end:e}=r.timeExtent.toJSON();u.time=t&&e&&t===e?""+t:`${t??"null"},${e??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:t?t.xmin+","+t.ymin+","+t.xmax+","+t.ymax:void 0,bboxSR:l,imageSR:l,size:e+","+n,...o,...s,...u}}async fetchImage(t,e,n,r){const{data:i}=await this._fetchImage("image",t,e,n,r);return i}async fetchImageBitmap(t,e,n,r){const{data:i,url:o}=await this._fetchImage("blob",t,e,n,r);return(0,L.mn)(i,o,r)}async fetchRecomputedExtents(t={}){const e={...t,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:n}=await(0,i.A)(this.url,e),{extent:r,fullExtent:o,timeExtent:s}=n,a=r||o;return{fullExtent:a&&d.A.fromJSON(a),timeExtent:s&&G.A.fromJSON({start:s[0],end:s[1]})}}loadAll(){return(0,a.g)(this,t=>{t(this.allSublayers),t(this.subtables)})}async save(t){return this._debouncedSaveOperations(0,t)}async saveAs(t,e){return this._debouncedSaveOperations(1,e,t)}serviceSupportsSpatialReference(t){return(0,z.D)(this,t)}async _fetchImage(t,e,n,r,o){const a={responseType:t,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(e,n,r,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new s.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:t}=await(0,i.A)(l,a);return{data:t,url:l}}catch(t){if((0,u.zf)(t))throw t;throw new s.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:t})}}async _fetchService(t){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:e,ssl:n}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:t});n&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=e,this.read(e,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(t){return!(null==t||!this.sublayersSourceJSON[t]?.visibleLayers)}};(0,r.Cg)([(0,h.MZ)((0,$.P6)("dateFieldsTimeReference"))],J.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean})],J.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"dpi",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"imageFormat",void 0),(0,r.Cg)([(0,q.w)("imageFormat",["supportedImageFormatTypes"])],J.prototype,"readImageFormat",null),(0,r.Cg)([(0,h.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],J.prototype,"imageMaxHeight",void 0),(0,r.Cg)([(0,h.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],J.prototype,"imageMaxWidth",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"imageTransparency",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],J.prototype,"isReference",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],J.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,h.MZ)({type:["ArcGISMapServiceLayer"]})],J.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],J.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,h.MZ)((0,$.P6)("preferredTimeReference"))],J.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,h.MZ)({type:o.A.ofType(N.A),json:{write:{ignoreOrigin:!0}}})],J.prototype,"sublayers",void 0),(0,r.Cg)([(0,D.K)("sublayers",{layers:{type:[N.A]},visibleLayers:{type:[p.jz]}})],J.prototype,"writeSublayers",null),(0,r.Cg)([(0,h.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],J.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],J.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)(E.OZ)],J.prototype,"url",void 0),J=(0,r.Cg)([(0,h.$K)("esri.layers.MapImageLayer")],J);const U=J},54339(t,e,n){function r(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const n=[];for(const r of e.fieldNames)n.push(t.attributes[r]??null);return JSON.stringify(n)}}}function i(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const n=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(n)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}n.d(e,{W:()=>r,r:()=>i})},82935(t,e,n){n.d(e,{B:()=>p,e:()=>f});var r=n(5482),i=n(91429),o=n(89317),s=n(30524),a=n(96184),l=n(73133),u=n(79677),c=n(10184),h=n(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},f=t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(t,e){const n=e.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=l.j.fromJSON(n.timeOffsetUnits);return r&&i?new c.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(t){(0,s.sv)(t,this.fieldsIndex),this._set("timeInfo",t)}};return(0,r.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,h.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(p)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}},96184(t,e,n){n.d(e,{A:()=>f});var r=n(5482),i=n(69540),o=n(25482),s=n(91429),a=n(79677),l=n(10184),u=n(56400),c=n(36005),h=n(43937);function p(t,e){return l.A.fromJSON({value:t,unit:e})}let f=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(t,e){return e.timeExtent&&Array.isArray(e.timeExtent)&&2===e.timeExtent.length?a.A.fromArray(e.timeExtent):null}writeFullTimeExtent(t,e){null!=t?.start&&null!=t.end?e.timeExtent=t.toArray():e.timeExtent=null}readInterval(t,e){return e.timeInterval&&e.timeIntervalUnits?p(e.timeInterval,e.timeIntervalUnits):e.defaultTimeInterval&&e.defaultTimeIntervalUnits?p(e.defaultTimeInterval,e.defaultTimeIntervalUnits):null}writeInterval(t,e){e.timeInterval=t?.toJSON().value??null,e.timeIntervalUnits=t?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,h.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,r.Cg)([(0,h.K)("interval")],f.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],f)},32730(t,e,n){n.d(e,{BI:()=>f,D3:()=>h,XJ:()=>p,lc:()=>c,mX:()=>m,rU:()=>d,tH:()=>b,vK:()=>x,zA:()=>w});var r=n(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function c(t){return t.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(t){return t.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(t){const e={expression:"",type:"none"};return t.labelExpressionInfo?t.labelExpressionInfo.value?(e.expression=t.labelExpressionInfo.value,e.type="conventional"):t.labelExpressionInfo.expression&&(e.expression=t.labelExpressionInfo.expression,e.type="arcade"):null!=t.labelExpression&&(e.expression=c(t.labelExpression),e.type="conventional"),e}function f(t){const e=p(t);if(!e)return null;switch(e.type){case"conventional":return m(e.expression);case"arcade":return e.expression}return null}function d(t){const e=p(t);if(!e)return null;switch(e.type){case"conventional":return function(t){const e=t?.match(y);return e?.[1].trim()||null}(e.expression);case"arcade":return b(e.expression)}return null}function m(t){let e;return t?(e=(0,r.HC)(t,t=>i+'$feature["'+t+'"]'+o),e=l.test(e)?e.replace(l,""):'"'+e,e=u.test(e)?e.replace(u,""):e+'"',e=e.replaceAll(s,'" + ').replaceAll(a,' + "')):e='""',e}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(t){if(!t)return null;let e=g.exec(t)||M.exec(t);return e?e[1]||e[3]:(e=v.exec(t),e?e[2]:null)}const x=Symbol("LabelClassInstance");function w(t){return null!=t&&"object"==typeof t&&x in t}},91908(t,e,n){n.d(e,{D:()=>o});var r=n(60694);const i=[];function o(t,e){if((0,r.Wo)(t.url??""))return!0;const{wkid:n}=e;for(const e of i){if((t.version??0)>=e[0])return!0;if("function"==typeof e[1]&&(e[1]=e[1]()),e[1].has(n))return!1}return!0}i.push([10.91,()=>{const t=new Set([9709,9716,9741,9761,9766]);for(let e=9712;e<=9713;e++)t.add(e);for(let e=9748;e<=9749;e++)t.add(e);for(let e=20904;e<=20932;e++)t.add(e);for(let e=21004;e<=21032;e++)t.add(e);for(let e=21207;e<=21264;e++)t.add(e);for(let e=21307;e<=21364;e++)t.add(e);for(let e=23301;e<=23333;e++)t.add(e);for(let e=102759;e<=102760;e++)t.add(e);for(let e=102934;e<=102955;e++)t.add(e);return t}]),i.push([10.9,()=>{const t=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let e=9356;e<=9360;e++)t.add(e);for(let e=9404;e<=9407;e++)t.add(e);for(let e=9476;e<=9482;e++)t.add(e);for(let e=9487;e<=9494;e++)t.add(e);for(let e=9697;e<=9699;e++)t.add(e);return t}]),i.push([10.81,()=>{const t=new Set([9265,9333,103598,103699]);for(let e=9248;e<=9254;e++)t.add(e);for(let e=9271;e<=9273;e++)t.add(e);for(let e=9284;e<=9285;e++)t.add(e);for(let e=21453;e<=21463;e++)t.add(e);return t}]),i.push([10.8,()=>{const t=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let e=8035;e<=8036;e++)t.add(e);for(let e=8455;e<=8456;e++)t.add(e);for(let e=8518;e<=8529;e++)t.add(e);for(let e=8533;e<=8536;e++)t.add(e);for(let e=8538;e<=8540;e++)t.add(e);for(let e=8677;e<=8679;e++)t.add(e);for(let e=8902;e<=8903;e++)t.add(e);for(let e=8907;e<=8910;e++)t.add(e);for(let e=8949;e<=8951;e++)t.add(e);for(let e=8972;e<=8987;e++)t.add(e);for(let e=9039;e<=9040;e++)t.add(e);for(let e=9068;e<=9069;e++)t.add(e);for(let e=9140;e<=9141;e++)t.add(e);for(let e=9148;e<=9150;e++)t.add(e);for(let e=9153;e<=9159;e++)t.add(e);for(let e=9205;e<=9218;e++)t.add(e);for(let e=9221;e<=9222;e++)t.add(e);for(let e=54098;e<=54101;e++)t.add(e);return t}]),i.push([10.71,()=>{const t=new Set([6316]);for(let e=8351;e<=8353;e++)t.add(e);for(let e=9294;e<=9297;e++)t.add(e);for(let e=22619;e<=22621;e++)t.add(e);for(let e=103586;e<=103594;e++)t.add(e);return t}])},5757(t,e,n){n.d(e,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}},98205(t,e,n){n.d(e,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}function s(t){return t.valueExpression?"expression":t.field&&"string"==typeof t.field?"field":"unknown"}function a(t,e){const n=e||s(t),r=t.valueUnit||"unknown";return"unknown"===n?"constant":t.stops?"stops":null!=t.minSize&&null!=t.maxSize&&null!=t.minDataValue&&null!=t.maxDataValue?"clamped-linear":"unknown"===r?null!=t.minSize&&null!=t.minDataValue?t.minSize&&t.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(t,e,n){n.d(e,{V:()=>s,X:()=>o});var r=n(60408),i=n(65864);function o(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function s(t,e,n){const r=(0,i.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=n,e})}},22671(t,e,n){n.d(e,{A:()=>M});var r,i=n(5482),o=n(52106),s=n(66552),a=n(25482),l=n(4718),u=n(91429),c=n(16930),h=n(60408),p=n(65864),f=n(50498),d=n(20437),m=n(36005),y=n(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=r=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,r){if(t)return void g.write(t,e,n,r);const{features:i}=this;if(i)for(const t of i)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,r)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,r=(0,p.rS)(t);return r&&!n&&e.spatialReference&&(r.spatialReference=c.A.fromJSON(e.spatialReference)),r}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const r=e.features[n];if(r.geometry){const e=t?.[n];r.geometry=e?.toJSON()||r.geometry}}return e}quantize(t){const{scale:[e,n],translate:[r,i]}=t,o=this.features,s=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-r)/e),t=>Math.round((i-t)/n));for(let t=0,e=o.length;t<e;t++)s?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[r,i],scale:[o,s]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;l=n=>null==n?n:n*e+t}const u=this._getHydrationFunction(t,t=>t*o+r,t=>i-t*s,a,l);for(const{geometry:t}of e)null!=t&&u&&u(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const r=c.A.fromJSON(e.spatialReference),i=[];for(let e=0;e<t.length;e++){const o=t[e],s=n.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const t in u){const e=u[t],n=l[t],i=n?.spatialReference;null==e||i||(e.spatialReference=r)}i.push(s)}return i}_quantizePoints(t,e,n){let r,i;const o=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];if(s>0){const t=e(a[0]),s=n(a[1]);t===r&&s===i||(o.push([t-r,s-i]),r=t,i=s)}else r=e(a[0]),i=n(a[1]),o.push([r,i])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const r=(0,h.Bi)(t)?t.rings:t.paths,i=[];for(let t=0,o=r.length;t<o;t++){const o=r[t],s=this._quantizePoints(o,e,n);s&&i.push(s)}return i.length>0?((0,h.Bi)(t)?t.rings=i:t.paths=i,t):null}:"multipoint"===t?t=>{const r=this._quantizePoints(t.points,e,n);return r&&r.length>0?(t.points=r,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,r,i){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),r&&(t.z=r(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,h.Bi)(t)?t.rings:t.paths;let s,a;for(let t=0,r=o.length;t<r;t++){const r=o[t];for(let t=0,i=r.length;t<i;t++){const i=r[t];t>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=e(s),i[1]=n(a)}}if(r&&i)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2]),n[3]=i(n[3])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}else if(i)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=i(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),r&&null!=t.zmax&&null!=t.zmin&&(t.zmax=r(t.zmax),t.zmin=r(t.zmin)),i&&null!=t.mmax&&null!=t.mmin&&(t.mmax=i(t.mmax),t.mmin=i(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let s,a;for(let t=0,r=o.length;t<r;t++){const r=o[t];t>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=e(s),r[1]=n(a)}if(r&&i)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2]),e[3]=i(e[3])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}else if(i)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=i(e[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,m.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[d.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,y.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,m.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=r=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},11831(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(25482),s=n(90629),a=n(91429),l=n(5760);let u=r=class extends o.o{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return(0,s.cr)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(t,e,n)=>({enabled:!n||!n.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(t,e,n){n.d(e,{A:()=>d});var r,i=n(5482),o=n(68197),s=n(4718),a=n(90629),l=n(91429),u=n(11831),c=n(20378),h=n(5760),p=n(93223),f=n(43937);let d=r=class extends c.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,n){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),n&&(r.color=n),r}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}castLineWidth(t){return(0,a.cr)(t)}writeLineHeight(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],d.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],d.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],d.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],d.prototype,"font",void 0),(0,i.Cg)([(0,l.MZ)({...h.rM,json:{write:!0}})],d.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"kerning",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],d.prototype,"haloColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"haloSize",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rotated",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"text",void 0),(0,i.Cg)([(0,p.e)({esriTS:"text"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({...h.x0,json:{write:!0}})],d.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"xoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"yoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],d.prototype,"angle",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],d.prototype,"lineWidth",null),(0,i.Cg)([(0,f.K)("lineWidth")],d.prototype,"writeLineWidth",null),(0,i.Cg)([(0,l.wg)("lineWidth")],d.prototype,"castLineWidth",null),(0,i.Cg)([(0,l.MZ)(h.Tb)],d.prototype,"lineHeight",void 0),(0,i.Cg)([(0,f.K)("lineHeight")],d.prototype,"writeLineHeight",null),d=r=(0,i.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],d)},5760(t,e,n){n.d(e,{NM:()=>a,Tb:()=>l,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>c,y7:()=>h});var r=n(34727),i=n(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:t=>{const e=(0,i.GB)(t);return 0===e?1:(0,r.qE)(e,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},h=8}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{80200(e,t,i){i.d(t,{T:()=>r,d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function s(e,t,i,r,s,o){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,o)),s),i)}function o(e,t,i,r,n,o,l){return s(t&i|~t&r,e,t,n,o,l)}function l(e,t,i,r,n,o,l){return s(t&r|i&~r,e,t,n,o,l)}function a(e,t,i,r,n,o,l){return s(t^i^r,e,t,n,o,l)}function u(e,t,i,r,n,o,l){return s(i^(t|~r),e,t,n,o,l)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,s=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const p=i,c=r,f=s,g=d;i=o(i,r,s,d,e[t],7,-680876936),d=o(d,i,r,s,e[t+1],12,-389564586),s=o(s,d,i,r,e[t+2],17,606105819),r=o(r,s,d,i,e[t+3],22,-1044525330),i=o(i,r,s,d,e[t+4],7,-176418897),d=o(d,i,r,s,e[t+5],12,1200080426),s=o(s,d,i,r,e[t+6],17,-1473231341),r=o(r,s,d,i,e[t+7],22,-45705983),i=o(i,r,s,d,e[t+8],7,1770035416),d=o(d,i,r,s,e[t+9],12,-1958414417),s=o(s,d,i,r,e[t+10],17,-42063),r=o(r,s,d,i,e[t+11],22,-1990404162),i=o(i,r,s,d,e[t+12],7,1804603682),d=o(d,i,r,s,e[t+13],12,-40341101),s=o(s,d,i,r,e[t+14],17,-1502002290),r=o(r,s,d,i,e[t+15],22,1236535329),i=l(i,r,s,d,e[t+1],5,-165796510),d=l(d,i,r,s,e[t+6],9,-1069501632),s=l(s,d,i,r,e[t+11],14,643717713),r=l(r,s,d,i,e[t],20,-373897302),i=l(i,r,s,d,e[t+5],5,-701558691),d=l(d,i,r,s,e[t+10],9,38016083),s=l(s,d,i,r,e[t+15],14,-660478335),r=l(r,s,d,i,e[t+4],20,-405537848),i=l(i,r,s,d,e[t+9],5,568446438),d=l(d,i,r,s,e[t+14],9,-1019803690),s=l(s,d,i,r,e[t+3],14,-187363961),r=l(r,s,d,i,e[t+8],20,1163531501),i=l(i,r,s,d,e[t+13],5,-1444681467),d=l(d,i,r,s,e[t+2],9,-51403784),s=l(s,d,i,r,e[t+7],14,1735328473),r=l(r,s,d,i,e[t+12],20,-1926607734),i=a(i,r,s,d,e[t+5],4,-378558),d=a(d,i,r,s,e[t+8],11,-2022574463),s=a(s,d,i,r,e[t+11],16,1839030562),r=a(r,s,d,i,e[t+14],23,-35309556),i=a(i,r,s,d,e[t+1],4,-1530992060),d=a(d,i,r,s,e[t+4],11,1272893353),s=a(s,d,i,r,e[t+7],16,-155497632),r=a(r,s,d,i,e[t+10],23,-1094730640),i=a(i,r,s,d,e[t+13],4,681279174),d=a(d,i,r,s,e[t],11,-358537222),s=a(s,d,i,r,e[t+3],16,-722521979),r=a(r,s,d,i,e[t+6],23,76029189),i=a(i,r,s,d,e[t+9],4,-640364487),d=a(d,i,r,s,e[t+12],11,-421815835),s=a(s,d,i,r,e[t+15],16,530742520),r=a(r,s,d,i,e[t+2],23,-995338651),i=u(i,r,s,d,e[t],6,-198630844),d=u(d,i,r,s,e[t+7],10,1126891415),s=u(s,d,i,r,e[t+14],15,-1416354905),r=u(r,s,d,i,e[t+5],21,-57434055),i=u(i,r,s,d,e[t+12],6,1700485571),d=u(d,i,r,s,e[t+3],10,-1894986606),s=u(s,d,i,r,e[t+10],15,-1051523),r=u(r,s,d,i,e[t+1],21,-2054922799),i=u(i,r,s,d,e[t+8],6,1873313359),d=u(d,i,r,s,e[t+15],10,-30611744),s=u(s,d,i,r,e[t+6],15,-1560198380),r=u(r,s,d,i,e[t+13],21,1309151649),i=u(i,r,s,d,e[t+4],6,-145523070),d=u(d,i,r,s,e[t+11],10,-1120210379),s=u(s,d,i,r,e[t+2],15,718787259),r=u(r,s,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),s=n(s,f),d=n(d,g)}return[i,r,s,d]}function p(e,t=r.Hex){const i=t||r.Base64,n=d(function(e){const t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(5482),s=i(91429),o=i(49186),l=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(61956),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=r=class extends l.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(s),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:o,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(s),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:o,distance:l})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,s.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,s.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,s.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,s.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},x={name:"showExcludedLabels",default:!0};let M=v=class extends l.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,s.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){const n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],M.prototype,"filter",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],M.prototype,"includedEffect",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],M.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":x,"portal-item":x}}})],M.prototype,"excludedLabelsVisible",void 0),M=v=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureEffect")],M);const R={write:{allowNull:!0}},S={type:M,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,s.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>A});var r=i(5482),n=i(36708),s=i(91429),o=i(60950),l=i(99959);class a extends l.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}}var u=i(50820),d=i(20569),p=i(77548),c=i(96576),f=i(48940),g=i(12330),y=i(49186),h=i(44208),m=i(53966),w=i(80200),v=i(39767),b=i(30943),C=i(53930);h.A.add("esri-cluster-arcade-enabled",!0);const x=(0,h.A)("esri-cluster-arcade-enabled"),M=new Set(["simple-line","simple-fill","picture-fill"]);function R(e,t){let i=t.clone();if(!S(i))return i;if(t.symbols.some(e=>M.has(e.type))&&(i=new c.A({symbol:new C.A})),i.authoringInfo||(i.authoringInfo=new b.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){const t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=_(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=F(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=_(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=_(e,t.field,"avg","number"):t.valueExpression&&(t.field=F(e,t.valueExpression,"avg","number"),t.valueExpression=null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(const t of i.attributes)t.field?t.field=_(e,t.field,"sum","number"):t.valueExpression&&(t.field=F(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":i.field?i.field=_(e,i.field,"mode","string"):i.valueExpression&&(i.field=F(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=_(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=_(e,i.field,"avg","number"):i.valueExpression&&(i.field=F(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const S=e=>{const t=t=>m.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new y.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function F(e,t,i,r){const n=(0,w.d)(t),s="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===s)||e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new v.A({expression:t,returnType:r}),statisticType:i})),s}function _(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;const s=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=i,r="field",n=t.toLowerCase()+",norm:"+r+","+e.toLowerCase();return"cluster_avg_"+(0,w.d)(n)}}}(i,t,n);return e.some(e=>e.name===s)||("avg_norm"===i?e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new v.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),s}const A=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new a(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){const r=e.clone();return"visualVariables"in r&&(r.visualVariables||(r.visualVariables=[]),r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new f.A({field:"cluster_count",stops:[new g.A({value:1}),new g.A({useMinValue:!0,size:t}),new g.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),i=[new u.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:s,clusterMaxSize:o}=t;if(n){t.fields=[...i,...r];const e=this._withClusterVariable(t.renderer,s,o);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const n=R(i,this.renderer),l=this._withClusterVariable(n,s,o),a="visualVariables"in l&&l.visualVariables?l.visualVariables:[],u=new c.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=l,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;const l=R(i,this.renderer);t.fields=[...i,...r],t.renderer=l;const a=this._withClusterVariable(l,s,o);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){const t=this._get("featureReduction");this._setLayerReference(t,null);const i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,p.jy)(t)?t:null)}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)(d.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(5482),s=i(25482),o=i(4718),l=i(91429),a=i(39767),u=i(30524);let d=class extends s.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,o.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,l.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,l.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>l});var r=i(5482),n=i(69540),s=i(25482),o=i(91429);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"returnType",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.ExpressionInfo")],l)},67202(e,t,i){i.d(t,{A:()=>l});var r,n=i(5482),s=i(25482),o=i(91429);let l=r=class extends s.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,o.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],l.prototype,"type",void 0),l=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureReductionSelection")],l)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(5482),n=i(69540),s=i(25482),o=i(10107),l=i(64108),a=i(62044);let u=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,l.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>B});var r=i(89317),n=i(5482),s=i(69540),o=i(25482),l=i(4718),a=i(90629),u=i(91429),d=i(56507),p=i(15426),c=i(37838),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;const t=[];for(const e of this.fields){const i=e?.name,r=(0,y.GZ)(i);if(i&&r){const n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var m=i(10873),w=i(30279),v=i(16194),b=i(46499),C=i(77548),x=i(41214);function M(){return{type:[w.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;const t=(0,v.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,v.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){V(this._get("fields"),null),V(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function F(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function _(){return O((0,l.o8)(m.kF))}function A(){return{clonable:!1,set:function(e){V(this.fields,e),this._set("layer",e)}}}function E(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function j(){return O((0,l.o8)(m.M6))}function Z(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:x.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function V(e,t){e?.forEach(e=>{e.layer=t})}function O(e){let t=e.json;t||(t=e.json={});let i=t.write;return null!=i&&"object"==typeof i||(i=t.write={}),i.ignoreOrigin=!0,e}var z=i(65494),L=i(93223),T=i(36005);let N=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"type",void 0),(0,n.Cg)([(0,L.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],N.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],N.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(F())],N.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],N.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],N.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(E())],N.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(j())],N.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],N.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],N.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(M())],N.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],N.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],N.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],N.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],N.prototype,"readRenderer",null),N=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],N);var $=i(96576),G=i(33910),k=i(43937);function q(e){return"simple"===e.type&&!e.visualVariables?.length}let P=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?q(r)?null:(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){const r=t.drawingInfo?.renderer;if(r?.authoringInfo?.isAutoGenerated)return null;if(r&&q(r)){const e=(0,z.L)(r,t,i);return e?.symbol}return null}writeSymbol(e,t,i,r){const n=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||n){const i=new $.A({symbol:e});t.drawingInfo={renderer:i.write({},r)}}}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],P.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e)),json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(E())],P.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(j())],P.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],P.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],P.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],P.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:G.q8,json:{write:{ignoreOrigin:!0}}})],P.prototype,"symbol",void 0),(0,n.Cg)([(0,T.w)("symbol",["drawingInfo.renderer"])],P.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],P.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],P.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],P.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],P.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(M())],P.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],P.prototype,"fields",void 0),(0,n.Cg)([(0,T.w)("fields")],P.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],P.prototype,"fieldsIndex",void 0),P=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],P);var K=i(67202);const U={key:"type",base:null,typeMap:{cluster:P,binning:N}},B={types:{key:"type",base:null,typeMap:{selection:K.A,cluster:P,binning:N}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:U},"portal-item":{types:U},"web-scene":{types:{key:"type",base:null,typeMap:{selection:K.A}},name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},16194(e,t,i){i.d(t,{QX:()=>a,sS:()=>d,xY:()=>u});var r=i(4718),n=i(30279),s=i(62044),o=i(30524),l=i(41227);function a(e){const{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;const o=[];for(const e of r){const{fieldName:t,label:r}=e,l=i.get(t);if(!l)continue;const a=r&&r!==l.alias?r:null,u=(0,s.iu)(e,l);(a||u)&&o.push(new n.A({name:l.name,alias:a,fieldFormat:u}))}return o.length?o:null}function u(e){const{fields:t}=e;if(!t?.length)return;const i=[];for(const e of t){const t=(0,s.qH)(e)?(0,s.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){const{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;const o=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1;const o=new Map;for(const i of t){const t=e.fieldsIndex.get(i.name);t&&o.set(t.name,i)}for(const t of i){const i=e.fieldsIndex.get(t.fieldName);if(!i)continue;const r=o.get(i.name);t.label=r?.alias||i.alias,t.format=(0,s.qH)(i)&&r?.fieldFormat?(0,s.PK)(r.fieldFormat,i):null,n=!0,o.delete(i.name)}for(const t of o.values()){const r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!o)return;const l=i.clone();return l.fieldInfos=o,l}function p(e,t){const{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;const u=r||a.alias,d=(0,s.qH)(a)&&n?(0,s.PK)(n,a):null;return new l.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,o.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var r=i(90360),n=i(41214),s=i(59923);function o(e,t){return a(e,null,t)}const l=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{80200(e,t,i){i.d(t,{T:()=>r,d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function s(e,t,i,r,s,o){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,o)),s),i)}function o(e,t,i,r,n,o,l){return s(t&i|~t&r,e,t,n,o,l)}function l(e,t,i,r,n,o,l){return s(t&r|i&~r,e,t,n,o,l)}function a(e,t,i,r,n,o,l){return s(t^i^r,e,t,n,o,l)}function u(e,t,i,r,n,o,l){return s(i^(t|~r),e,t,n,o,l)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,s=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const p=i,c=r,f=s,g=d;i=o(i,r,s,d,e[t],7,-680876936),d=o(d,i,r,s,e[t+1],12,-389564586),s=o(s,d,i,r,e[t+2],17,606105819),r=o(r,s,d,i,e[t+3],22,-1044525330),i=o(i,r,s,d,e[t+4],7,-176418897),d=o(d,i,r,s,e[t+5],12,1200080426),s=o(s,d,i,r,e[t+6],17,-1473231341),r=o(r,s,d,i,e[t+7],22,-45705983),i=o(i,r,s,d,e[t+8],7,1770035416),d=o(d,i,r,s,e[t+9],12,-1958414417),s=o(s,d,i,r,e[t+10],17,-42063),r=o(r,s,d,i,e[t+11],22,-1990404162),i=o(i,r,s,d,e[t+12],7,1804603682),d=o(d,i,r,s,e[t+13],12,-40341101),s=o(s,d,i,r,e[t+14],17,-1502002290),r=o(r,s,d,i,e[t+15],22,1236535329),i=l(i,r,s,d,e[t+1],5,-165796510),d=l(d,i,r,s,e[t+6],9,-1069501632),s=l(s,d,i,r,e[t+11],14,643717713),r=l(r,s,d,i,e[t],20,-373897302),i=l(i,r,s,d,e[t+5],5,-701558691),d=l(d,i,r,s,e[t+10],9,38016083),s=l(s,d,i,r,e[t+15],14,-660478335),r=l(r,s,d,i,e[t+4],20,-405537848),i=l(i,r,s,d,e[t+9],5,568446438),d=l(d,i,r,s,e[t+14],9,-1019803690),s=l(s,d,i,r,e[t+3],14,-187363961),r=l(r,s,d,i,e[t+8],20,1163531501),i=l(i,r,s,d,e[t+13],5,-1444681467),d=l(d,i,r,s,e[t+2],9,-51403784),s=l(s,d,i,r,e[t+7],14,1735328473),r=l(r,s,d,i,e[t+12],20,-1926607734),i=a(i,r,s,d,e[t+5],4,-378558),d=a(d,i,r,s,e[t+8],11,-2022574463),s=a(s,d,i,r,e[t+11],16,1839030562),r=a(r,s,d,i,e[t+14],23,-35309556),i=a(i,r,s,d,e[t+1],4,-1530992060),d=a(d,i,r,s,e[t+4],11,1272893353),s=a(s,d,i,r,e[t+7],16,-155497632),r=a(r,s,d,i,e[t+10],23,-1094730640),i=a(i,r,s,d,e[t+13],4,681279174),d=a(d,i,r,s,e[t],11,-358537222),s=a(s,d,i,r,e[t+3],16,-722521979),r=a(r,s,d,i,e[t+6],23,76029189),i=a(i,r,s,d,e[t+9],4,-640364487),d=a(d,i,r,s,e[t+12],11,-421815835),s=a(s,d,i,r,e[t+15],16,530742520),r=a(r,s,d,i,e[t+2],23,-995338651),i=u(i,r,s,d,e[t],6,-198630844),d=u(d,i,r,s,e[t+7],10,1126891415),s=u(s,d,i,r,e[t+14],15,-1416354905),r=u(r,s,d,i,e[t+5],21,-57434055),i=u(i,r,s,d,e[t+12],6,1700485571),d=u(d,i,r,s,e[t+3],10,-1894986606),s=u(s,d,i,r,e[t+10],15,-1051523),r=u(r,s,d,i,e[t+1],21,-2054922799),i=u(i,r,s,d,e[t+8],6,1873313359),d=u(d,i,r,s,e[t+15],10,-30611744),s=u(s,d,i,r,e[t+6],15,-1560198380),r=u(r,s,d,i,e[t+13],21,1309151649),i=u(i,r,s,d,e[t+4],6,-145523070),d=u(d,i,r,s,e[t+11],10,-1120210379),s=u(s,d,i,r,e[t+2],15,718787259),r=u(r,s,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),s=n(s,f),d=n(d,g)}return[i,r,s,d]}function p(e,t=r.Hex){const i=t||r.Base64,n=d(function(e){const t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}},87718(e,t,i){i.d(t,{F:()=>_,Y:()=>S});var r,n=i(5482),s=i(91429),o=i(49186),l=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(61956),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=r=class extends l.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(s),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:o,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(s),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:o,distance:l})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,n.Cg)([(0,s.MZ)({types:c.yR,json:{write:!0}})],w.prototype,"geometry",void 0),(0,n.Cg)([(0,s.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,n.Cg)([(0,s.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,n.Cg)([(0,s.MZ)({type:g.A,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureFilter")],w);const v=w;var m;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=m=class extends l.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new m({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,s.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,i,r){const n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=m=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},_=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,s.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>F});var r=i(5482),n=i(36708),s=i(91429),o=i(60950),l=i(99959);class a extends l.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}}var u=i(50820),d=i(20569),p=i(77548),c=i(96576),f=i(48940),g=i(12330),y=i(49186),h=i(44208),w=i(53966),v=i(80200),m=i(39767),b=i(30943),C=i(53930);h.A.add("esri-cluster-arcade-enabled",!0);const M=(0,h.A)("esri-cluster-arcade-enabled"),x=new Set(["simple-line","simple-fill","picture-fill"]);function R(e,t){let i=t.clone();if(!S(i))return i;if(t.symbols.some(e=>x.has(e.type))&&(i=new c.A({symbol:new C.A})),i.authoringInfo||(i.authoringInfo=new b.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){const t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=E(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=_(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=E(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=E(e,t.field,"avg","number"):t.valueExpression&&(t.field=_(e,t.valueExpression,"avg","number"),t.valueExpression=null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(const t of i.attributes)t.field?t.field=E(e,t.field,"sum","number"):t.valueExpression&&(t.field=_(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":i.field?i.field=E(e,i.field,"mode","string"):i.valueExpression&&(i.field=_(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=E(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=E(e,i.field,"avg","number"):i.valueExpression&&(i.field=_(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const S=e=>{const t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new y.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!M){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function _(e,t,i,r){const n=(0,v.d)(t),s="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===s)||e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new m.A({expression:t,returnType:r}),statisticType:i})),s}function E(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;const s=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=i,r="field",n=t.toLowerCase()+",norm:"+r+","+e.toLowerCase();return"cluster_avg_"+(0,v.d)(n)}}}(i,t,n);return e.some(e=>e.name===s)||("avg_norm"===i?e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new m.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),s}const F=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new a(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){const r=e.clone();return"visualVariables"in r&&(r.visualVariables||(r.visualVariables=[]),r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new f.A({field:"cluster_count",stops:[new g.A({value:1}),new g.A({useMinValue:!0,size:t}),new g.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),i=[new u.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:s,clusterMaxSize:o}=t;if(n){t.fields=[...i,...r];const e=this._withClusterVariable(t.renderer,s,o);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const n=R(i,this.renderer),l=this._withClusterVariable(n,s,o),a="visualVariables"in l&&l.visualVariables?l.visualVariables:[],u=new c.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=l,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;const l=R(i,this.renderer);t.fields=[...i,...r],t.renderer=l;const a=this._withClusterVariable(l,s,o);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){const t=this._get("featureReduction");this._setLayerReference(t,null);const i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,p.jy)(t)?t:null)}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)(d.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(5482),s=i(25482),o=i(4718),l=i(91429),a=i(39767),u=i(30524);let d=class extends s.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,o.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,l.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,l.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>l});var r=i(5482),n=i(69540),s=i(25482),o=i(91429);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"returnType",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.ExpressionInfo")],l)},67202(e,t,i){i.d(t,{A:()=>l});var r,n=i(5482),s=i(25482),o=i(91429);let l=r=class extends s.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,o.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],l.prototype,"type",void 0),l=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureReductionSelection")],l)},20569(e,t,i){i.d(t,{d:()=>K});var r=i(89317),n=i(5482),s=i(69540),o=i(25482),l=i(4718),a=i(90629),u=i(91429),d=i(56507),p=i(15426),c=i(37838),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;const t=[];for(const e of this.fields){const i=e?.name,r=(0,y.GZ)(i);if(i&&r){const n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var w=i(10873),v=i(30279),m=i(16194),b=i(46499),C=i(77548),M=i(41214);function x(){return{type:[v.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;const t=(0,m.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,m.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){V(this._get("fields"),null),V(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function _(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function E(){return O((0,l.o8)(w.kF))}function F(){return{clonable:!1,set:function(e){V(this.fields,e),this._set("layer",e)}}}function j(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function A(){return O((0,l.o8)(w.M6))}function Z(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function V(e,t){e?.forEach(e=>{e.layer=t})}function O(e){let t=e.json;t||(t=e.json={});let i=t.write;return null!=i&&"object"==typeof i||(i=t.write={}),i.ignoreOrigin=!0,e}var z=i(65494),L=i(93223),T=i(36005);let $=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],$.prototype,"type",void 0),(0,n.Cg)([(0,L.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],$.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],$.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(_())],$.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(E())],$.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(F())],$.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(j())],$.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],$.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],$.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],$.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(x())],$.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],$.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],$.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],$.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],$.prototype,"readRenderer",null),$=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],$);var N=i(96576),G=i(33910),k=i(43937);function P(e){return"simple"===e.type&&!e.visualVariables?.length}let U=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?P(r)?null:(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){const r=t.drawingInfo?.renderer;if(r?.authoringInfo?.isAutoGenerated)return null;if(r&&P(r)){const e=(0,z.L)(r,t,i);return e?.symbol}return null}writeSymbol(e,t,i,r){const n=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||n){const i=new N.A({symbol:e});t.drawingInfo={renderer:i.write({},r)}}}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],U.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e)),json:{write:{ignoreOrigin:!0}}})],U.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],U.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],U.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(j())],U.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],U.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],U.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],U.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],U.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:G.q8,json:{write:{ignoreOrigin:!0}}})],U.prototype,"symbol",void 0),(0,n.Cg)([(0,T.w)("symbol",["drawingInfo.renderer"])],U.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],U.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(_())],U.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(E())],U.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(F())],U.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],U.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],U.prototype,"fields",void 0),(0,n.Cg)([(0,T.w)("fields")],U.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],U.prototype,"fieldsIndex",void 0),U=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],U);var q=i(67202);const B={key:"type",base:null,typeMap:{cluster:U,binning:$}},K={types:{key:"type",base:null,typeMap:{selection:q.A,cluster:U,binning:$}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:{key:"type",base:null,typeMap:{selection:q.A}},name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var r=i(90360),n=i(41214),s=i(59923);function o(e,t){return a(e,null,t)}const l=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}}}]);
|