@arcgis/core 5.2.0-next.163 → 5.2.0-next.165
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.d.ts +47 -14
- package/PopupTemplate.js +1 -1
- package/WebScene.d.ts +3 -0
- package/analysis/LineOfSightAnalysis.d.ts +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
- package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
- package/analysis/Viewshed.d.ts +4 -4
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{97d6ef9e34a43ad2e556.js → 02e10f44edf911832c2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{97b5f4302fb867c829f4.js → 07f7177bfaf9de73bc25.js} +1 -1
- package/assets/esri/core/workers/chunks/{612345f17f5eeb99ea8f.js → 0d9c4c6c571ce26d356b.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
- package/assets/esri/core/workers/chunks/{12a7997a40c77f5c9160.js → 151e5799ede763a03ee2.js} +1 -1
- package/assets/esri/core/workers/chunks/196979cc6a765be3c5cd.js +1 -0
- package/assets/esri/core/workers/chunks/1ab59a97ffa49e9e1659.js +1 -0
- package/assets/esri/core/workers/chunks/{8715661a838361d4211a.js → 1b24a40c0fa197014873.js} +1 -1
- package/assets/esri/core/workers/chunks/{83f29a159b8b5197e76a.js → 266c90d8d56a2da42fcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1d989b72203113a06fe.js → 2a36fe3f3f257a779a1b.js} +1 -1
- package/assets/esri/core/workers/chunks/{fcaf9450642fcef83286.js → 3048e74e6246324ce6fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{95b82cbbe355266c65d7.js → 30af63b3b750142faadb.js} +1 -1
- package/assets/esri/core/workers/chunks/{74137ffec5265628c33b.js → 36c780a9527c75b36725.js} +1 -1
- package/assets/esri/core/workers/chunks/{6a0ec102962d2c7b4368.js → 40d803584eeade4df433.js} +1 -1
- package/assets/esri/core/workers/chunks/{a546ec82ba149e12f7bf.js → 41773d858e212468db88.js} +1 -1
- package/assets/esri/core/workers/chunks/{129e04d24ced77c9bb6d.js → 49b967d89d2841cea675.js} +1 -1
- package/assets/esri/core/workers/chunks/{b59aaf30c7fe2c8d1aaa.js → 4b99b4cf729881e616bc.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a09d2e1e2540921e4717.js → 4d3d7ec407ee5cd5f036.js} +1 -1
- package/assets/esri/core/workers/chunks/{85bba551057366cd00ae.js → 4db829a0238024736fe6.js} +1 -1
- package/assets/esri/core/workers/chunks/{2c626f525f3483c03477.js → 548b8f74a6883e364931.js} +1 -1
- package/assets/esri/core/workers/chunks/{25a3bd8bede2d07d3a54.js → 5af8fb4ec2c72697e35b.js} +1 -1
- package/assets/esri/core/workers/chunks/{340256866f524cb069f6.js → 5d2f043ebe1051326c56.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f46acfda693c70abbdd.js → 61552b4b8111a8624d84.js} +1 -1
- package/assets/esri/core/workers/chunks/{e653c81ffb3d818645dd.js → 632fdf1d95ad69109427.js} +1 -1
- package/assets/esri/core/workers/chunks/{434a8ba841a59e0deab9.js → 67e533748435253aaba6.js} +1 -1
- package/assets/esri/core/workers/chunks/69d5f8ef78b9b8b3d33d.js +1 -0
- package/assets/esri/core/workers/chunks/{feb41abc03d677df6f73.js → 6b9961261241fdce0e94.js} +1 -1
- package/assets/esri/core/workers/chunks/6f897b4e7ddd1dd1672b.js +1 -0
- package/assets/esri/core/workers/chunks/{8aa80b892fde552577e8.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e251921bc5367258c4d2.js → 710b8251a59884aee31e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f528ac5c648ca6a98582.js → 711cfb84659cb4437679.js} +1 -1
- package/assets/esri/core/workers/chunks/{af349c7bc8ef41a0e1bd.js → 7748c2886d0122b40eeb.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a7b02037151767542f1.js → 7dbf4c7480bf9c72820d.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bca39e0e651426bdbb5.js → 7dfbc31f3b56728485a4.js} +1 -1
- package/assets/esri/core/workers/chunks/{c19f238b55ff2893f7c2.js → 82a022cc21364c9a8539.js} +1 -1
- package/assets/esri/core/workers/chunks/{5cb26bbaa08114aec5ce.js → 89cc1a5539b82fb46216.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ab57cb1bfd3dc8d3c2a.js → 8b8118ab56cc808b5a71.js} +1 -1
- package/assets/esri/core/workers/chunks/{542e5640ea1b80ef801a.js → 9189dfe19a2a2ccd5173.js} +1 -1
- package/assets/esri/core/workers/chunks/{f74ae0eff3f08978e607.js → 9f358c7b052cdc0ac06f.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee08ae5b73439a1ff666.js → a163c6005aba3378edaa.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec9a2425b4a498054a19.js → a17673e691ced46a90d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{72bd866df89b8d92e247.js → a43b33955aa78a2a8deb.js} +1 -1
- package/assets/esri/core/workers/chunks/{46c5371c7a627537098c.js → a88f346786b04bd194dc.js} +6 -6
- package/assets/esri/core/workers/chunks/{092e311cb7aea92a6a26.js → acb265a22be5e12f38e5.js} +1 -1
- package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
- package/assets/esri/core/workers/chunks/{9e8f012a56237fc8285f.js → aea44253c80493ef5755.js} +1 -1
- package/assets/esri/core/workers/chunks/b5b9d42e1f84ee82429c.js +1 -0
- package/assets/esri/core/workers/chunks/c046c4fc934bc6f54c69.js +1 -0
- package/assets/esri/core/workers/chunks/{c72a904e01dc8c17d992.js → c47d095434d09b5f10c6.js} +1 -1
- package/assets/esri/core/workers/chunks/c4b7111dcedd9d6e1c2a.js +1 -0
- package/assets/esri/core/workers/chunks/{81cad8d2f62a5f671c55.js → cb4db5489388559d6bd9.js} +1 -1
- package/assets/esri/core/workers/chunks/{bbd44ac63d2a317d8ed9.js → cc794bb94ebc1cb66024.js} +1 -1
- package/assets/esri/core/workers/chunks/{be308db5b61a7246edfe.js → cc94bf05b235e65291fc.js} +1 -1
- package/assets/esri/core/workers/chunks/d4af9faa5d901274fad2.js +1 -0
- package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +1 -0
- package/assets/esri/core/workers/chunks/{fc5a36e54929e03efa86.js → dba5f44c4e4a3f075df2.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f43e06dcfe56229bb0f.js → debe45e792212682b304.js} +1 -1
- package/assets/esri/core/workers/chunks/{8414ffd937c1099e0bbc.js → e6d10136bc08aef255ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{45fd2b456a6997584ca1.js → f8379cd45f750f28a3d8.js} +1 -1
- package/assets/esri/core/workers/chunks/{709e019885822b1f6f3e.js → f905f1a1aa4c123cbe83.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2fcbc494333376192aa.js → f9c80e9fc349db4873e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0351753f6b4d1adf11e.js → fc0dbb588a4062615cb6.js} +1 -1
- package/assets/esri/core/workers/chunks/feb4f8c807bb0dca488f.js +1 -0
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/chunks/GlobalIllumination.glsl.js +17 -47
- package/config.js +1 -1
- package/core/workers/WorkerFallback.js +4 -2
- package/core/workers/workerFactory.js +1 -1
- package/core/workers/workers.js +4 -2
- package/form/elements/inputs.d.ts +126 -25
- package/form/elements/inputs.js +1 -1
- package/form/elements.d.ts +1 -0
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.d.ts +49 -9
- package/graphic/BuildingGraphicOrigin.d.ts +49 -0
- package/graphic/CSVGraphicOrigin.d.ts +42 -9
- package/graphic/CatalogGraphicOrigin.d.ts +42 -9
- package/graphic/DimensionFeatureGraphicOrigin.d.ts +42 -9
- package/graphic/FeatureGraphicOrigin.d.ts +42 -9
- package/graphic/GeoJSONGraphicOrigin.d.ts +42 -9
- package/graphic/GeoRSSGraphicOrigin.d.ts +42 -9
- package/graphic/GraphicOrigin.d.ts +52 -12
- package/graphic/ImageryGraphicOrigin.d.ts +42 -9
- package/graphic/ImageryTileGraphicOrigin.d.ts +42 -9
- package/graphic/KMLGraphicOrigin.d.ts +47 -10
- package/graphic/KnowledgeGraphGraphicOrigin.d.ts +49 -1
- package/graphic/LinkChartGraphicOrigin.d.ts +49 -1
- package/graphic/MapImageGraphicOrigin.d.ts +49 -1
- package/graphic/MapNotesGraphicOrigin.d.ts +48 -1
- package/graphic/OGCFeatureGraphicOrigin.d.ts +42 -9
- package/graphic/OrientedImageryGraphicOrigin.d.ts +42 -9
- package/graphic/ParquetGraphicOrigin.d.ts +42 -9
- package/graphic/PointCloudGraphicOrigin.d.ts +43 -0
- package/graphic/SceneGraphicOrigin.d.ts +43 -0
- package/graphic/SketchGraphicOrigin.d.ts +43 -0
- package/graphic/StreamGraphicOrigin.d.ts +43 -0
- package/graphic/SubtypeGroupGraphicOrigin.d.ts +49 -1
- package/graphic/TileGraphicOrigin.d.ts +49 -1
- package/graphic/VectorTileGraphicOrigin.d.ts +43 -14
- package/graphic/VoxelGraphicOrigin.d.ts +43 -0
- package/graphic/WCSGraphicOrigin.d.ts +43 -0
- package/graphic/WFSGraphicOrigin.d.ts +42 -9
- package/graphic/getGraphicOriginTitle.d.ts +21 -3
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.d.ts +2 -1
- package/layers/GeoJSONLayer.d.ts +2 -107
- package/layers/ParquetLayer.d.ts +24 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.d.ts +40 -16
- package/layers/ViewshedLayer.d.ts +10 -4
- package/layers/WMSLayer.d.ts +2 -69
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.d.ts +70 -48
- package/layers/mixins/TiledImagery.d.ts +0 -11
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/save/imageryUtils.js +1 -1
- package/layers/save/mapImageLayerUtils.js +1 -1
- package/layers/save/mediaLayerUtils.js +1 -1
- package/layers/save/parquetLayerUtils.js +2 -0
- package/layers/save/streamLayerUtils.js +1 -1
- package/layers/support/LabelClass.d.ts +8 -2
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/layersMapping.js +1 -1
- package/package.json +2 -2
- package/popup/content.d.ts +38 -1
- package/popup/content.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/smartMapping/popup/support/clusterUtils.js +1 -1
- package/smartMapping/popup/support/utils.js +2 -2
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/support/timeUtils.d.ts +11 -0
- package/symbols/cim/CIMCursor.js +1 -1
- package/tables/elements.d.ts +1 -0
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +0 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.d.ts +0 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +5 -5
- 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/applyEmissiveGlow.glsl.js +9 -4
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
- package/views/layers/LineOfSightLayerView.d.ts +2 -2
- package/views/layers/ViewshedLayerView.d.ts +2 -1
- package/views/selection/SelectionOperation.js +1 -1
- package/views/selection/types.d.ts +43 -3
- package/views/support/layerViewUtils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/webscene/Slide.d.ts +1 -2
- package/widgets/DirectionalPad/VisibleElements.d.ts +5 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +3 -3
- package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
- package/widgets/support/SelectionList/GroupLayerItem.d.ts +6 -0
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/SelectionList/ItemBase.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +6 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar.d.ts +8 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +0 -1
- package/assets/esri/core/workers/chunks/1fe24ffcd88280d84fbe.js +0 -1
- package/assets/esri/core/workers/chunks/2f04b8679c9f15390517.js +0 -1
- package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
- package/assets/esri/core/workers/chunks/72071ea5de89720fbe42.js +0 -1
- package/assets/esri/core/workers/chunks/9de5ad77bc37ec142218.js +0 -1
- package/assets/esri/core/workers/chunks/c19cd5a03b6d480fe53b.js +0 -1
- package/assets/esri/core/workers/chunks/d1f98c5249c487eb96f1.js +0 -1
- package/assets/esri/core/workers/chunks/e01fc1c31bc023dd0e33.js +0 -1
- package/assets/esri/core/workers/chunks/e077e321a3109c2fbbe2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737,3312,7537],{52106(e,t,i){i.d(t,{A:()=>I});var r,s,o=i(32198),l=i(37838),n=i(69540),a=i(51447),u=i(25482),d=i(53966),p=i(36708),h=i(24326),y=i(91429),c=i(12195),g=i(65864),m=i(50498),f=i(55156),b=i(60950),v=i(54339),M=i(94128),S=i(33910);const C=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(u.o)){static{r=M.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(d.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,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(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],I.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>h});var r=i(69622),s=i(7762),o=i(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):n(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function d(e){return e?e.declaredClass:null}function p(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!r.includes(e)),h=r.filter(e=>!s.includes(e)),y=r.filter(i=>s.includes(i)&&u(e,i)!==u(t,i)).concat(o,h).sort(),c=d(e);if(c&&l.has(c)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of y){let s,o=u(e,r),l=u(t,r);if((m||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;s={type:"complete",oldValue:o,newValue:l}}else s="object"==typeof o&&"object"==typeof l&&d(o)===d(l)?p(o,l):{type:"complete",oldValue:o,newValue:l};null!=s&&(null==g?g={type:"partial",diff:{[r]:s}}:g.diff[r]=s)}}return g}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&d(e)!==d(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},13069(e,t,i){i.d(t,{AG:()=>n,lk:()=>s,vD:()=>l,yS:()=>o});const r="randomUUID"in crypto;function s(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${s().toUpperCase()}}`}function l(){return`{${s()}}`}function n(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},20737(e,t,i){i.r(t),i.d(t,{default:()=>ie});var r=i(32198),s=i(37838),o=i(56507),l=i(69540),n=i(7762),a=i(49186),u=i(36563),d=i(25728),p=i(17676),h=i(36708),y=i(91429),c=i(16930),g=i(41910),m=i(55156),f=i(60950),b=i(89808),v=i(99959);const M=Symbol("isAnnotationFeatureGraphicOrigin");var S;class C extends v.A{get[(S=M,f.ym)](){return this.layer}get[m.e](){return this.layer}get[b.Q](){return this.layer}get[g.e7](){return this.layer}constructor(e,t){super(),this[S]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var w=i(4146),I=i(52136),F=i(18768),A=i(63074),_=i(69208),T=i(40775),x=i(47685),Z=i(10086),j=i(34287),L=i(8303),O=i(54310),E=i(23502),D=i(25036),R=i(82935),P=i(4902),k=i(25482),V=i(4718),$=i(92474),N=i(10873);let z=0,q=class extends((0,k.T)((0,l.OU)((0,P.s)($.x_)))){constructor(e){super(e),this.id=`${Date.now().toString(16)}-annotation-feature-sublayer-${z++}`,this.layerType="ArcGISAnnotationSubLayer",this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new C(this.parent,this)}get title(){return this._isOverridden("title")?this._get("title"):this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??this.subtypeCode?.toString()??null}set title(e){this._override("title",e)}clone(){let e=super.clone();return this._isOverridden("title")&&(e.title=this.title),e}};(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],q.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],q.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationSubLayer"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],q.prototype,"layerType",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hG);return e.json??={},e.json.default=0,e})())],q.prototype,"maxScale",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hn);return e.json??={},e.json.default=0,e})())],q.prototype,"minScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1})],q.prototype,"parent",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{name:"subLayerId",write:{isRequired:!0}}})],q.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],q.prototype,"title",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],q.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0,json:{default:!0,name:"visibility",write:!0}})],q.prototype,"visible",void 0),q=(0,r.Cg)([(0,y.$K)("esri.layers.support.AnnotationFeatureSublayer")],q);var G=i(60694),U=i(15426),J=i(17036),K=i(30524),H=i(91908),B=i(97552),W=i(30291),Q=i(36005);const X="annotation-feature-layer",Y=(0,J.p)(),ee=n.A.ofType(q);let te=class extends((0,E.Z)((0,T.I)((0,Z.j)((0,A.dM)((0,R.e)((0,x.w6)((0,D.j)((0,O.J)((0,F.b)((0,j.q)((0,L.A)((0,d.M)((0,_.d)((0,I.p)((0,l.OU)(w.A)))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new C(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new ee,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:s,saveAs:o}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return o(this,r,t)}}),this.addHandles((0,h.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),h.OH))}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${X}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new a.A(`${X}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,U.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){let i=new ee(t.subtypes.map(({code:e})=>new q({subtypeCode:e})).reverse());if(this.visibleLayers){let e=new Set(this.visibleLayers);i.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return i}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,G.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,G.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,G.cr)(e),r?`${e} - ${(0,G.cr)(r)}`:e;break}}return r?(0,G.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(function(e){return e.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null}(this)))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,W.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:s}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(514)]).then(()=>i(60845)),e),o=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,u.Bf)((0,p.u7)(e,()=>o.cancelLoad())??(0,u.hA)()),!1),await o.load({signal:e}),o}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,U.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.findSublayerForSubtypeCode(i)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,U.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(B.A.from(e)??i.createQuery(),t);if(r?.features)for(let e of r.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(B.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(B.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(B.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,H.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,K.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,U.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(X+":unsupported-version","The feature service must be version 10.8 or above.");let e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(!this.fieldsIndex.has("FeatureID")&&!this.fieldsIndex.has("FeatureGlobalID")&&t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new a.A(X+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,r.Cg)([(0,y.MZ)({type:c.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],te.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,y.MZ)(N.es)],te.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,y.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],te.prototype,"editingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"elementField",void 0),(0,r.Cg)([(0,y.MZ)({...Y.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,"fields",void 0),(0,r.Cg)([(0,y.MZ)(Y.fieldsIndex)],te.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],te.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,y.MZ)(N.id)],te.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],te.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],te.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)(Y.outFields)],te.prototype,"outFields",void 0),(0,r.Cg)([(0,y.MZ)(N.M6)],te.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],te.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"referenceScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1,readOnly:!0})],te.prototype,"source",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"statusField",void 0),(0,r.Cg)([(0,y.MZ)({type:ee,json:{name:"layers",write:{ignoreOrigin:!0}}})],te.prototype,"sublayers",void 0),(0,r.Cg)([(0,Q.w)("service","sublayers",["subtypes"])],te.prototype,"readSublayers",null),(0,r.Cg)([(0,y.MZ)({type:String})],te.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"symbolCollection",void 0),(0,r.Cg)([(0,Q.w)("service","title",["name"])],te.prototype,"readTitleFromService",null),(0,r.Cg)([(0,Q.w)("portal-item","title")],te.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,y.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],te.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)()],te.prototype,"unplacedAnnotationsVisible",void 0),(0,r.Cg)([(0,y.MZ)({type:[Number]})],te.prototype,"visibleLayers",null),te=(0,r.Cg)([(0,y.$K)("esri.layers.AnnotationFeatureLayer")],te);const ie=te},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},52136(e,t,i){var r=i(32198),s=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),s=i(56507),o=i(49186),l=i(84952),n=i(91429),a=i(95250);function u(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function d(e,t){let i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function p(e){let t=u(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function h(e){return d(e,"SymbolCollection")??void 0}function y(e){return d(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new o.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,l.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,s.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new o.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let u=n.extensionProperties?.propertySetItems??[],d=p(u),c=(0,a.S)(h(u)),g=(0,a.S)(y(u));this.read({referenceScale:d,symbolCollection:c,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>y,Zk:()=>p});var r=i(32198),s=i(65529),o=i(4718),l=i(91429),n=i(20816);const a=new s.bk;function u(e){return a.on("apply-edits",new WeakRef(e))}function d(e){return a.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const h=Symbol();function y(e){return"object"==typeof e&&!!e&&h in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function g(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),o=e=>!e||e===s;return o(t)&&o(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:l}=e,n=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,u=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),d=c(this),p=c(this)&&g(t,r,this.gdbVersion);if(!n||d&&!p||!a&&!u&&!s)return;let h=l.then(e=>{if(this.lastEditsEventDate=new Date,a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,l={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",l),l}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,o=c(this),l=c(this)&&g(t,i,this.gdbVersion),n=c(this)&&!g(t,this.gdbVersion,null);s&&o&&l&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),s=i(69540),o=i(25482),l=i(91429),n=i(56400);let a=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,s=i(32198),o=i(7762),l=i(25482),n=i(91429);let a=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,s.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>d});var r=i(32198),s=i(69540),o=i(66552),l=i(25482),n=i(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let d=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],d.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"role",void 0),d=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],d)},32730(e,t,i){i.d(t,{BI:()=>p,D3:()=>u,XJ:()=>d,lc:()=>a,mX:()=>y,rU:()=>h,tH:()=>b,zA:()=>M});var r=i(799);const s=RegExp("__begin__","ig"),o=RegExp("__end__","ig"),l=RegExp("^__begin__","i"),n=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function d(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function p(e){let t=d(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){let t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(c))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function y(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=l.test(t)?t.replace(l,""):'"'+t,t=n.test(t)?t.replace(n,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(o,' + "')):t='""',t}const c=/^\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,f=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=f.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function M(e){return"object"==typeof e&&!!e&&v in e}i.d(t,["vK",0,v])},41366(e,t,i){var r=i(32198),s=i(66552),o=i(53966),l=i(91429),n=i(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&u||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===d||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return s(e,{CIMRGBColor:o,CIMCharacterMarker:l})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,o]of Object.entries(e))i[r]=s(o,t);return i}return e}function o(e){let[t,i,r,s]=e.values;return[t,i,r,255*s/100]}function l(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>a,w5:()=>u});var r=i(56507);const s=(0,i(13069).vD)(),o=new Map,l=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,l=o.get(s);if(!l){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");l=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return l===t}async function a(e,t,r=!1){if(!e||!t)return!0;let o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=l.get(o)?.entries();if(n)for(let[e,l]of n)if(l.name===t){let t=!l.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(o,e,new r({sessionId:s,moment:l.moment}));return n.success&&l.stack?.clearForwardEdits(),n.success}return t}return!0}function u(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=l.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,o])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737,3312,7537],{52106(e,t,i){i.d(t,{A:()=>I});var r,s,o=i(32198),l=i(40124),n=i(69540),a=i(51447),u=i(25482),d=i(53966),p=i(36708),h=i(24326),y=i(91429),c=i(12195),g=i(65864),m=i(50498),f=i(55156),b=i(60950),v=i(54339),M=i(94128),S=i(33910);const C=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(u.o)){static{r=M.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(d.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,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(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],I.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>h});var r=i(69622),s=i(7762),o=i(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):n(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function d(e){return e?e.declaredClass:null}function p(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!r.includes(e)),h=r.filter(e=>!s.includes(e)),y=r.filter(i=>s.includes(i)&&u(e,i)!==u(t,i)).concat(o,h).sort(),c=d(e);if(c&&l.has(c)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of y){let s,o=u(e,r),l=u(t,r);if((m||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;s={type:"complete",oldValue:o,newValue:l}}else s="object"==typeof o&&"object"==typeof l&&d(o)===d(l)?p(o,l):{type:"complete",oldValue:o,newValue:l};null!=s&&(null==g?g={type:"partial",diff:{[r]:s}}:g.diff[r]=s)}}return g}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&d(e)!==d(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},13069(e,t,i){i.d(t,{AG:()=>n,lk:()=>s,vD:()=>l,yS:()=>o});const r="randomUUID"in crypto;function s(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${s().toUpperCase()}}`}function l(){return`{${s()}}`}function n(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},20737(e,t,i){i.r(t),i.d(t,{default:()=>ie});var r=i(32198),s=i(40124),o=i(56507),l=i(69540),n=i(7762),a=i(49186),u=i(36563),d=i(25728),p=i(17676),h=i(36708),y=i(91429),c=i(16930),g=i(41910),m=i(55156),f=i(60950),b=i(89808),v=i(99959);const M=Symbol("isAnnotationFeatureGraphicOrigin");var S;class C extends v.A{get[(S=M,f.ym)](){return this.layer}get[m.e](){return this.layer}get[b.Q](){return this.layer}get[g.e7](){return this.layer}constructor(e,t){super(),this[S]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var w=i(4146),I=i(52136),F=i(18768),A=i(63074),_=i(69208),T=i(40775),x=i(47685),Z=i(10086),j=i(34287),L=i(8303),O=i(54310),E=i(23502),D=i(25036),R=i(82935),P=i(4902),k=i(25482),V=i(4718),$=i(92474),N=i(10873);let z=0,q=class extends((0,k.T)((0,l.OU)((0,P.s)($.x_)))){constructor(e){super(e),this.id=`${Date.now().toString(16)}-annotation-feature-sublayer-${z++}`,this.layerType="ArcGISAnnotationSubLayer",this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new C(this.parent,this)}get title(){return this._isOverridden("title")?this._get("title"):this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??this.subtypeCode?.toString()??null}set title(e){this._override("title",e)}clone(){let e=super.clone();return this._isOverridden("title")&&(e.title=this.title),e}};(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],q.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],q.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationSubLayer"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],q.prototype,"layerType",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hG);return e.json??={},e.json.default=0,e})())],q.prototype,"maxScale",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hn);return e.json??={},e.json.default=0,e})())],q.prototype,"minScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1})],q.prototype,"parent",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{name:"subLayerId",write:{isRequired:!0}}})],q.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],q.prototype,"title",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],q.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0,json:{default:!0,name:"visibility",write:!0}})],q.prototype,"visible",void 0),q=(0,r.Cg)([(0,y.$K)("esri.layers.support.AnnotationFeatureSublayer")],q);var G=i(60694),U=i(15426),J=i(17036),K=i(30524),H=i(91908),B=i(97552),W=i(30291),Q=i(36005);const X="annotation-feature-layer",Y=(0,J.p)(),ee=n.A.ofType(q);let te=class extends((0,E.Z)((0,T.I)((0,Z.j)((0,A.dM)((0,R.e)((0,x.w6)((0,D.j)((0,O.J)((0,F.b)((0,j.q)((0,L.A)((0,d.M)((0,_.d)((0,I.p)((0,l.OU)(w.A)))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new C(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new ee,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:s,saveAs:o}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return o(this,r,t)}}),this.addHandles((0,h.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),h.OH))}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${X}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new a.A(`${X}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,U.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){let i=new ee(t.subtypes.map(({code:e})=>new q({subtypeCode:e})).reverse());if(this.visibleLayers){let e=new Set(this.visibleLayers);i.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return i}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,G.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,G.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,G.cr)(e),r?`${e} - ${(0,G.cr)(r)}`:e;break}}return r?(0,G.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(function(e){return e.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null}(this)))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,W.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:s}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(514)]).then(()=>i(60845)),e),o=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,u.Bf)((0,p.u7)(e,()=>o.cancelLoad())??(0,u.hA)()),!1),await o.load({signal:e}),o}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,U.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.findSublayerForSubtypeCode(i)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,U.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(B.A.from(e)??i.createQuery(),t);if(r?.features)for(let e of r.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(B.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(B.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(B.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,H.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,K.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,U.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(X+":unsupported-version","The feature service must be version 10.8 or above.");let e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(!this.fieldsIndex.has("FeatureID")&&!this.fieldsIndex.has("FeatureGlobalID")&&t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new a.A(X+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,r.Cg)([(0,y.MZ)({type:c.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],te.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,y.MZ)(N.es)],te.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,y.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],te.prototype,"editingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"elementField",void 0),(0,r.Cg)([(0,y.MZ)({...Y.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,"fields",void 0),(0,r.Cg)([(0,y.MZ)(Y.fieldsIndex)],te.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],te.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,y.MZ)(N.id)],te.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],te.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],te.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)(Y.outFields)],te.prototype,"outFields",void 0),(0,r.Cg)([(0,y.MZ)(N.M6)],te.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],te.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"referenceScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1,readOnly:!0})],te.prototype,"source",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"statusField",void 0),(0,r.Cg)([(0,y.MZ)({type:ee,json:{name:"layers",write:{ignoreOrigin:!0}}})],te.prototype,"sublayers",void 0),(0,r.Cg)([(0,Q.w)("service","sublayers",["subtypes"])],te.prototype,"readSublayers",null),(0,r.Cg)([(0,y.MZ)({type:String})],te.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"symbolCollection",void 0),(0,r.Cg)([(0,Q.w)("service","title",["name"])],te.prototype,"readTitleFromService",null),(0,r.Cg)([(0,Q.w)("portal-item","title")],te.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,y.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],te.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)()],te.prototype,"unplacedAnnotationsVisible",void 0),(0,r.Cg)([(0,y.MZ)({type:[Number]})],te.prototype,"visibleLayers",null),te=(0,r.Cg)([(0,y.$K)("esri.layers.AnnotationFeatureLayer")],te);const ie=te},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},52136(e,t,i){var r=i(32198),s=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),s=i(56507),o=i(49186),l=i(84952),n=i(91429),a=i(95250);function u(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function d(e,t){let i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function p(e){let t=u(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function h(e){return d(e,"SymbolCollection")??void 0}function y(e){return d(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new o.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,l.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,s.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new o.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let u=n.extensionProperties?.propertySetItems??[],d=p(u),c=(0,a.S)(h(u)),g=(0,a.S)(y(u));this.read({referenceScale:d,symbolCollection:c,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>y,Zk:()=>p});var r=i(32198),s=i(65529),o=i(4718),l=i(91429),n=i(20816);const a=new s.bk;function u(e){return a.on("apply-edits",new WeakRef(e))}function d(e){return a.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const h=Symbol();function y(e){return"object"==typeof e&&!!e&&h in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function g(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),o=e=>!e||e===s;return o(t)&&o(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:l}=e,n=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,u=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),d=c(this),p=c(this)&&g(t,r,this.gdbVersion);if(!n||d&&!p||!a&&!u&&!s)return;let h=l.then(e=>{if(this.lastEditsEventDate=new Date,a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,l={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",l),l}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,o=c(this),l=c(this)&&g(t,i,this.gdbVersion),n=c(this)&&!g(t,this.gdbVersion,null);s&&o&&l&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),s=i(69540),o=i(25482),l=i(91429),n=i(56400);let a=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,s=i(32198),o=i(7762),l=i(25482),n=i(91429);let a=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,s.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>d});var r=i(32198),s=i(69540),o=i(66552),l=i(25482),n=i(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let d=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],d.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"role",void 0),d=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],d)},32730(e,t,i){i.d(t,{BI:()=>p,D3:()=>u,XJ:()=>d,lc:()=>a,mX:()=>y,rU:()=>h,tH:()=>b,zA:()=>M});var r=i(799);const s=RegExp("__begin__","ig"),o=RegExp("__end__","ig"),l=RegExp("^__begin__","i"),n=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function d(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function p(e){let t=d(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){let t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(c))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function y(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=l.test(t)?t.replace(l,""):'"'+t,t=n.test(t)?t.replace(n,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(o,' + "')):t='""',t}const c=/^\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,f=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=f.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function M(e){return"object"==typeof e&&!!e&&v in e}i.d(t,["vK",0,v])},41366(e,t,i){var r=i(32198),s=i(66552),o=i(53966),l=i(91429),n=i(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&u||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===d||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return s(e,{CIMRGBColor:o,CIMCharacterMarker:l})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,o]of Object.entries(e))i[r]=s(o,t);return i}return e}function o(e){let[t,i,r,s]=e.values;return[t,i,r,255*s/100]}function l(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>a,w5:()=>u});var r=i(56507);const s=(0,i(13069).vD)(),o=new Map,l=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,l=o.get(s);if(!l){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");l=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return l===t}async function a(e,t,r=!1){if(!e||!t)return!0;let o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=l.get(o)?.entries();if(n)for(let[e,l]of n)if(l.name===t){let t=!l.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(o,e,new r({sessionId:s,moment:l.moment}));return n.success&&l.stack?.clearForwardEdits(),n.success}return t}return!0}function u(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=l.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,o])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{80200(e,t,i){i.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e,t,i,r,l,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,s)),l),i)}function s(e,t,i,r,n,s,o){return l(t&i|~t&r,e,t,n,s,o)}function o(e,t,i,r,n,s,o){return l(t&r|i&~r,e,t,n,s,o)}function a(e,t,i,r,n,s,o){return l(t^i^r,e,t,n,s,o)}function u(e,t,i,r,n,s,o){return l(i^(t|~r),e,t,n,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,l=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=i,c=r,f=l,g=d;i=s(i,r,l,d,e[t],7,-680876936),d=s(d,i,r,l,e[t+1],12,-389564586),l=s(l,d,i,r,e[t+2],17,606105819),r=s(r,l,d,i,e[t+3],22,-1044525330),i=s(i,r,l,d,e[t+4],7,-176418897),d=s(d,i,r,l,e[t+5],12,1200080426),l=s(l,d,i,r,e[t+6],17,-1473231341),r=s(r,l,d,i,e[t+7],22,-45705983),i=s(i,r,l,d,e[t+8],7,1770035416),d=s(d,i,r,l,e[t+9],12,-1958414417),l=s(l,d,i,r,e[t+10],17,-42063),r=s(r,l,d,i,e[t+11],22,-1990404162),i=s(i,r,l,d,e[t+12],7,1804603682),d=s(d,i,r,l,e[t+13],12,-40341101),l=s(l,d,i,r,e[t+14],17,-1502002290),r=s(r,l,d,i,e[t+15],22,1236535329),i=o(i,r,l,d,e[t+1],5,-165796510),d=o(d,i,r,l,e[t+6],9,-1069501632),l=o(l,d,i,r,e[t+11],14,643717713),r=o(r,l,d,i,e[t],20,-373897302),i=o(i,r,l,d,e[t+5],5,-701558691),d=o(d,i,r,l,e[t+10],9,38016083),l=o(l,d,i,r,e[t+15],14,-660478335),r=o(r,l,d,i,e[t+4],20,-405537848),i=o(i,r,l,d,e[t+9],5,568446438),d=o(d,i,r,l,e[t+14],9,-1019803690),l=o(l,d,i,r,e[t+3],14,-187363961),r=o(r,l,d,i,e[t+8],20,1163531501),i=o(i,r,l,d,e[t+13],5,-1444681467),d=o(d,i,r,l,e[t+2],9,-51403784),l=o(l,d,i,r,e[t+7],14,1735328473),r=o(r,l,d,i,e[t+12],20,-1926607734),i=a(i,r,l,d,e[t+5],4,-378558),d=a(d,i,r,l,e[t+8],11,-2022574463),l=a(l,d,i,r,e[t+11],16,1839030562),r=a(r,l,d,i,e[t+14],23,-35309556),i=a(i,r,l,d,e[t+1],4,-1530992060),d=a(d,i,r,l,e[t+4],11,1272893353),l=a(l,d,i,r,e[t+7],16,-155497632),r=a(r,l,d,i,e[t+10],23,-1094730640),i=a(i,r,l,d,e[t+13],4,681279174),d=a(d,i,r,l,e[t],11,-358537222),l=a(l,d,i,r,e[t+3],16,-722521979),r=a(r,l,d,i,e[t+6],23,76029189),i=a(i,r,l,d,e[t+9],4,-640364487),d=a(d,i,r,l,e[t+12],11,-421815835),l=a(l,d,i,r,e[t+15],16,530742520),r=a(r,l,d,i,e[t+2],23,-995338651),i=u(i,r,l,d,e[t],6,-198630844),d=u(d,i,r,l,e[t+7],10,1126891415),l=u(l,d,i,r,e[t+14],15,-1416354905),r=u(r,l,d,i,e[t+5],21,-57434055),i=u(i,r,l,d,e[t+12],6,1700485571),d=u(d,i,r,l,e[t+3],10,-1894986606),l=u(l,d,i,r,e[t+10],15,-1051523),r=u(r,l,d,i,e[t+1],21,-2054922799),i=u(i,r,l,d,e[t+8],6,1873313359),d=u(d,i,r,l,e[t+15],10,-30611744),l=u(l,d,i,r,e[t+6],15,-1560198380),r=u(r,l,d,i,e[t+13],21,1309151649),i=u(i,r,l,d,e[t+4],6,-145523070),d=u(d,i,r,l,e[t+11],10,-1120210379),l=u(l,d,i,r,e[t+2],15,718787259),r=u(r,l,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),l=n(l,f),d=n(d,g)}return[i,r,l,d]}function p(e,t=r.Hex){let i=t||r.Base64,n=d(function(e){let 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){let 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){let 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){let t=[];for(let i=0,r=4*e.length;i<r;i+=3){let 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)}}i.d(t,["T",0,r])},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(32198),l=i(91429),s=i(49186),o=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(97552),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 o.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={}){let{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:s,distance:o,...e})}clone(){let{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:s,distance:o})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,l.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,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.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,l.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,l.$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}}}},M={name:"showExcludedLabels",default:!0};let x=v=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let i=super.write(e,t);if(t?.origin){if(i.filter){let e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.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 s.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?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){let 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,l.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,l.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,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>j});var r=i(32198),n=i(36708),l=i(91429),s=i(41910),o=i(60950),a=i(99959);class u extends a.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){let e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[s.e7](){return this.featureReductionProvider}}var d=i(50820),p=i(20569),c=i(77548),f=i(96576),g=i(48940),y=i(12330),h=i(49186),m=i(44208),w=i(53966),v=i(80200),b=i(39767),C=i(30943),M=i(53930);m.A.add("esri-cluster-arcade-enabled",!0);const x=(0,m.A)("esri-cluster-arcade-enabled"),R=new Set(["simple-line","simple-fill","picture-fill"]);function S(e,t){let i=t.clone();if(!F(i))return i;if(t.symbols.some(e=>R.has(e.type))&&(i=new f.A({symbol:new M.A})),i.authoringInfo||(i.authoringInfo=new C.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){let t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=A(e,t.field,"avg_angle","number"):t.valueExpression&&=(t.field=_(e,t.valueExpression,"avg_angle","number"),null):t.normalizationField?(t.field=A(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=A(e,t.field,"avg","number"):t.valueExpression&&=(t.field=_(e,t.valueExpression,"avg","number"),null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(let t of i.attributes)t.field?t.field=A(e,t.field,"sum","number"):t.valueExpression&&=(t.field=_(e,t.valueExpression,"sum","number"),null);break;case"unique-value":i.field?i.field=A(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=A(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=A(e,i.field,"avg","number"):i.valueExpression&&(i.field=_(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const F=e=>{let t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new h.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){let 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 _(e,t,i,r){let n=(0,v.d)(t),l="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===l)||e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:t,returnType:r}),statisticType:i})),l}function A(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;let l=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":{let e=i,r=t.toLowerCase()+",norm:field,"+e.toLowerCase();return"cluster_avg_"+(0,v.d)(r)}}}(i,t,n);return e.some(e=>e.name===l)||("avg_norm"===i?e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),l}const j=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new u(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){let r=e.clone();return"visualVariables"in r&&(r.visualVariables||=[],r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new g.A({field:"cluster_count",stops:[new y.A({value:1}),new y.A({useMinValue:!0,size:t}),new y.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;let t=e.clone(),i=[new d.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:l,clusterMaxSize:s}=t;if(n){t.fields=[...i,...r];let e=this._withClusterVariable(t.renderer,l,s);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;let n=S(i,this.renderer),o=this._withClusterVariable(n,l,s),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new f.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;let o=S(i,this.renderer);t.fields=[...i,...r],t.renderer=o;let a=this._withClusterVariable(o,l,s);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){let t=this._get("featureReduction");this._setLayerReference(t,null);let i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,c.jy)(t)&&(0,c.Qi)(t)?t:null)}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,l.MZ)(p.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(32198),l=i(25482),s=i(4718),o=i(91429),a=i(39767),u=i(30524);let d=class extends l.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,s.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,o.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>o});var r=i(32198),n=i(69540),l=i(25482),s=i(91429);let o=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,r.Cg)([(0,s.$K)("esri.layers.support.ExpressionInfo")],o)},67202(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(25482),s=i(91429);let o=r=class extends l.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),l=i(25482),s=i(10107),o=i(64108),a=i(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,o.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>H});var r=i(89317),n=i(32198),l=i(69540),s=i(25482),o=i(4718),a=i(90629),u=i(91429),d=i(78888),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;let t=[];for(let e of this.fields){let i=e?.name,r=(0,y.GZ)(i);if(i&&r){let 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),M=i(41214);function x(){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;let 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){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){O(this._get("fields"),null),O(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 V((0,o.o8)(m.kF))}function A(){return{clonable:!1,set:function(e){O(this.fields,e),this._set("layer",e)}}}function j(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function E(){return V((0,o.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:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function O(e,t){e?.forEach(e=>{e.layer=t})}function V(e){let t=e.json;t||=e.json={};let i=t.write;return("object"!=typeof i||!i)&&(i=t.write={}),i.ignoreOrigin=!0,e}var z=i(65494),L=i(93223),T=i(36005);let $=class extends((0,s.T)(l.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){let r=t.drawingInfo?.renderer;return r?(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let 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)(F())],$.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],$.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],$.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(j())],$.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(E())],$.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),k=i(33910),G=i(43937);function P(e){return"simple"===e.type&&!e.visualVariables?.length}let q=class extends((0,s.T)(l.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){let 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){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r&&P(r)?(0,z.L)(r,t,i)?.symbol:null}writeSymbol(e,t,i,r){let n=this.renderer?.authoringInfo?.isAutoGenerated;(!this.renderer||n)&&(t.drawingInfo={renderer:new N.A({symbol:e}).write({},r)})}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let 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}}})],q.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:a.cr,json:{write:{ignoreOrigin:!0}}})],q.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],q.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],q.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(j())],q.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(E())],q.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],q.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],q.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],q.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:k.q8,json:{write:{ignoreOrigin:!0}}})],q.prototype,"symbol",void 0),(0,n.Cg)([(0,T.w)("symbol",["drawingInfo.renderer"])],q.prototype,"readSymbol",null),(0,n.Cg)([(0,G.K)("symbol")],q.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],q.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],q.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],q.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],q.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],q.prototype,"fields",void 0),(0,n.Cg)([(0,T.w)("fields")],q.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],q.prototype,"fieldsIndex",void 0),q=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],q);var K=i(67202);const U={key:"type",base:null,typeMap:{selection:K.A}},B={key:"type",base:null,typeMap:{cluster:q,binning:$}},H={types:{key:"type",base:null,typeMap:{selection:K.A,cluster:q,binning:$}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:U,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),l=i(39663),s=i(30524),o=i(41227);function a(e){let{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;let s=[];for(let e of r){let{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;let a=r&&r!==o.alias?r:null,u=(0,l.iu)(e,o);(a||u)&&s.push(new n.A({name:o.name,alias:a,fieldFormat:u}))}return s.length?s:null}function u(e){let{fields:t}=e;if(!t?.length)return;let i=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){let{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;let s=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1,s=new Map;for(let i of t){let t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(let t of i){let i=e.fieldsIndex.get(t.fieldName);if(!i)continue;let r=s.get(i.name);t.label=r?.alias||i.alias,t.format=(0,l.qH)(i)&&r?.fieldFormat?(0,l.PK)(r.fieldFormat,i):null,n=!0,s.delete(i.name)}for(let t of s.values()){let r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!s)return;let o=i.clone();return o.fieldInfos=s,o}function p(e,t){let{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;let u=r||a.alias,d=(0,l.qH)(a)&&n?(0,l.PK)(n,a):null;return new o.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,s.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>s});var r=i(90360),n=i(41214),l=i(59923);function s(e,t){return a(e,null,t)}const o=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,l.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,t,i):null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{80200(e,t,i){i.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e,t,i,r,l,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,s)),l),i)}function s(e,t,i,r,n,s,o){return l(t&i|~t&r,e,t,n,s,o)}function o(e,t,i,r,n,s,o){return l(t&r|i&~r,e,t,n,s,o)}function a(e,t,i,r,n,s,o){return l(t^i^r,e,t,n,s,o)}function u(e,t,i,r,n,s,o){return l(i^(t|~r),e,t,n,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,l=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=i,c=r,f=l,g=d;i=s(i,r,l,d,e[t],7,-680876936),d=s(d,i,r,l,e[t+1],12,-389564586),l=s(l,d,i,r,e[t+2],17,606105819),r=s(r,l,d,i,e[t+3],22,-1044525330),i=s(i,r,l,d,e[t+4],7,-176418897),d=s(d,i,r,l,e[t+5],12,1200080426),l=s(l,d,i,r,e[t+6],17,-1473231341),r=s(r,l,d,i,e[t+7],22,-45705983),i=s(i,r,l,d,e[t+8],7,1770035416),d=s(d,i,r,l,e[t+9],12,-1958414417),l=s(l,d,i,r,e[t+10],17,-42063),r=s(r,l,d,i,e[t+11],22,-1990404162),i=s(i,r,l,d,e[t+12],7,1804603682),d=s(d,i,r,l,e[t+13],12,-40341101),l=s(l,d,i,r,e[t+14],17,-1502002290),r=s(r,l,d,i,e[t+15],22,1236535329),i=o(i,r,l,d,e[t+1],5,-165796510),d=o(d,i,r,l,e[t+6],9,-1069501632),l=o(l,d,i,r,e[t+11],14,643717713),r=o(r,l,d,i,e[t],20,-373897302),i=o(i,r,l,d,e[t+5],5,-701558691),d=o(d,i,r,l,e[t+10],9,38016083),l=o(l,d,i,r,e[t+15],14,-660478335),r=o(r,l,d,i,e[t+4],20,-405537848),i=o(i,r,l,d,e[t+9],5,568446438),d=o(d,i,r,l,e[t+14],9,-1019803690),l=o(l,d,i,r,e[t+3],14,-187363961),r=o(r,l,d,i,e[t+8],20,1163531501),i=o(i,r,l,d,e[t+13],5,-1444681467),d=o(d,i,r,l,e[t+2],9,-51403784),l=o(l,d,i,r,e[t+7],14,1735328473),r=o(r,l,d,i,e[t+12],20,-1926607734),i=a(i,r,l,d,e[t+5],4,-378558),d=a(d,i,r,l,e[t+8],11,-2022574463),l=a(l,d,i,r,e[t+11],16,1839030562),r=a(r,l,d,i,e[t+14],23,-35309556),i=a(i,r,l,d,e[t+1],4,-1530992060),d=a(d,i,r,l,e[t+4],11,1272893353),l=a(l,d,i,r,e[t+7],16,-155497632),r=a(r,l,d,i,e[t+10],23,-1094730640),i=a(i,r,l,d,e[t+13],4,681279174),d=a(d,i,r,l,e[t],11,-358537222),l=a(l,d,i,r,e[t+3],16,-722521979),r=a(r,l,d,i,e[t+6],23,76029189),i=a(i,r,l,d,e[t+9],4,-640364487),d=a(d,i,r,l,e[t+12],11,-421815835),l=a(l,d,i,r,e[t+15],16,530742520),r=a(r,l,d,i,e[t+2],23,-995338651),i=u(i,r,l,d,e[t],6,-198630844),d=u(d,i,r,l,e[t+7],10,1126891415),l=u(l,d,i,r,e[t+14],15,-1416354905),r=u(r,l,d,i,e[t+5],21,-57434055),i=u(i,r,l,d,e[t+12],6,1700485571),d=u(d,i,r,l,e[t+3],10,-1894986606),l=u(l,d,i,r,e[t+10],15,-1051523),r=u(r,l,d,i,e[t+1],21,-2054922799),i=u(i,r,l,d,e[t+8],6,1873313359),d=u(d,i,r,l,e[t+15],10,-30611744),l=u(l,d,i,r,e[t+6],15,-1560198380),r=u(r,l,d,i,e[t+13],21,1309151649),i=u(i,r,l,d,e[t+4],6,-145523070),d=u(d,i,r,l,e[t+11],10,-1120210379),l=u(l,d,i,r,e[t+2],15,718787259),r=u(r,l,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),l=n(l,f),d=n(d,g)}return[i,r,l,d]}function p(e,t=r.Hex){let i=t||r.Base64,n=d(function(e){let 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){let 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){let 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){let t=[];for(let i=0,r=4*e.length;i<r;i+=3){let 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)}}i.d(t,["T",0,r])},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(32198),l=i(91429),s=i(49186),o=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(97552),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 o.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={}){let{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:s,distance:o,...e})}clone(){let{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:s,distance:o})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,l.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,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.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,l.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,l.$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}}}},M={name:"showExcludedLabels",default:!0};let x=v=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let i=super.write(e,t);if(t?.origin){if(i.filter){let e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.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 s.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?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){let 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,l.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,l.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,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>j});var r=i(32198),n=i(36708),l=i(91429),s=i(41910),o=i(60950),a=i(99959);class u extends a.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){let e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[s.e7](){return this.featureReductionProvider}}var d=i(50820),p=i(20569),c=i(77548),f=i(96576),g=i(48940),y=i(12330),h=i(49186),m=i(44208),w=i(53966),v=i(80200),b=i(39767),C=i(30943),M=i(53930);m.A.add("esri-cluster-arcade-enabled",!0);const x=(0,m.A)("esri-cluster-arcade-enabled"),R=new Set(["simple-line","simple-fill","picture-fill"]);function S(e,t){let i=t.clone();if(!F(i))return i;if(t.symbols.some(e=>R.has(e.type))&&(i=new f.A({symbol:new M.A})),i.authoringInfo||(i.authoringInfo=new C.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){let t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=A(e,t.field,"avg_angle","number"):t.valueExpression&&=(t.field=_(e,t.valueExpression,"avg_angle","number"),null):t.normalizationField?(t.field=A(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=A(e,t.field,"avg","number"):t.valueExpression&&=(t.field=_(e,t.valueExpression,"avg","number"),null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(let t of i.attributes)t.field?t.field=A(e,t.field,"sum","number"):t.valueExpression&&=(t.field=_(e,t.valueExpression,"sum","number"),null);break;case"unique-value":i.field?i.field=A(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=A(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=A(e,i.field,"avg","number"):i.valueExpression&&(i.field=_(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const F=e=>{let t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new h.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){let 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 _(e,t,i,r){let n=(0,v.d)(t),l="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===l)||e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:t,returnType:r}),statisticType:i})),l}function A(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;let l=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":{let e=i,r=t.toLowerCase()+",norm:field,"+e.toLowerCase();return"cluster_avg_"+(0,v.d)(r)}}}(i,t,n);return e.some(e=>e.name===l)||("avg_norm"===i?e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),l}const j=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new u(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){let r=e.clone();return"visualVariables"in r&&(r.visualVariables||=[],r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new g.A({field:"cluster_count",stops:[new y.A({value:1}),new y.A({useMinValue:!0,size:t}),new y.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;let t=e.clone(),i=[new d.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:l,clusterMaxSize:s}=t;if(n){t.fields=[...i,...r];let e=this._withClusterVariable(t.renderer,l,s);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;let n=S(i,this.renderer),o=this._withClusterVariable(n,l,s),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new f.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;let o=S(i,this.renderer);t.fields=[...i,...r],t.renderer=o;let a=this._withClusterVariable(o,l,s);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){let t=this._get("featureReduction");this._setLayerReference(t,null);let i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,c.jy)(t)&&(0,c.Qi)(t)?t:null)}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,l.MZ)(p.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(32198),l=i(25482),s=i(4718),o=i(91429),a=i(39767),u=i(30524);let d=class extends l.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,s.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,o.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>o});var r=i(32198),n=i(69540),l=i(25482),s=i(91429);let o=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,r.Cg)([(0,s.$K)("esri.layers.support.ExpressionInfo")],o)},67202(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(25482),s=i(91429);let o=r=class extends l.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),l=i(25482),s=i(10107),o=i(64108),a=i(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,o.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>H});var r=i(89317),n=i(32198),l=i(69540),s=i(25482),o=i(4718),a=i(90629),u=i(91429),d=i(78888),p=i(15426),c=i(40124),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;let t=[];for(let e of this.fields){let i=e?.name,r=(0,y.GZ)(i);if(i&&r){let 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),M=i(41214);function x(){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;let 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){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){O(this._get("fields"),null),O(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 V((0,o.o8)(m.kF))}function A(){return{clonable:!1,set:function(e){O(this.fields,e),this._set("layer",e)}}}function j(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function E(){return V((0,o.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:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function O(e,t){e?.forEach(e=>{e.layer=t})}function V(e){let t=e.json;t||=e.json={};let i=t.write;return("object"!=typeof i||!i)&&(i=t.write={}),i.ignoreOrigin=!0,e}var z=i(65494),L=i(93223),T=i(36005);let $=class extends((0,s.T)(l.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){let r=t.drawingInfo?.renderer;return r?(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let 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)(F())],$.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],$.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],$.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(j())],$.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(E())],$.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),k=i(33910),G=i(43937);function P(e){return"simple"===e.type&&!e.visualVariables?.length}let q=class extends((0,s.T)(l.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){let 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){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r&&P(r)?(0,z.L)(r,t,i)?.symbol:null}writeSymbol(e,t,i,r){let n=this.renderer?.authoringInfo?.isAutoGenerated;(!this.renderer||n)&&(t.drawingInfo={renderer:new N.A({symbol:e}).write({},r)})}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let 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}}})],q.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:a.cr,json:{write:{ignoreOrigin:!0}}})],q.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],q.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],q.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(j())],q.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(E())],q.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],q.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],q.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],q.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:k.q8,json:{write:{ignoreOrigin:!0}}})],q.prototype,"symbol",void 0),(0,n.Cg)([(0,T.w)("symbol",["drawingInfo.renderer"])],q.prototype,"readSymbol",null),(0,n.Cg)([(0,G.K)("symbol")],q.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],q.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],q.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],q.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],q.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],q.prototype,"fields",void 0),(0,n.Cg)([(0,T.w)("fields")],q.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],q.prototype,"fieldsIndex",void 0),q=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],q);var K=i(67202);const U={key:"type",base:null,typeMap:{selection:K.A}},B={key:"type",base:null,typeMap:{cluster:q,binning:$}},H={types:{key:"type",base:null,typeMap:{selection:K.A,cluster:q,binning:$}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:U,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),l=i(39663),s=i(30524),o=i(41227);function a(e){let{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;let s=[];for(let e of r){let{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;let a=r&&r!==o.alias?r:null,u=(0,l.iu)(e,o);(a||u)&&s.push(new n.A({name:o.name,alias:a,fieldFormat:u}))}return s.length?s:null}function u(e){let{fields:t}=e;if(!t?.length)return;let i=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){let{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;let s=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1,s=new Map;for(let i of t){let t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(let t of i){let i=e.fieldsIndex.get(t.fieldName);if(!i)continue;let r=s.get(i.name);t.label=r?.alias||i.alias,t.format=(0,l.qH)(i)&&r?.fieldFormat?(0,l.PK)(r.fieldFormat,i):null,n=!0,s.delete(i.name)}for(let t of s.values()){let r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!s)return;let o=i.clone();return o.fieldInfos=s,o}function p(e,t){let{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;let u=r||a.alias,d=(0,l.qH)(a)&&n?(0,l.PK)(n,a):null;return new o.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,s.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>s});var r=i(90360),n=i(41214),l=i(59923);function s(e,t){return a(e,null,t)}const o=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,l.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,t,i):null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3318],{52106(e,t,i){i.d(t,{A:()=>A});var r,s,n=i(32198),o=i(37838),l=i(69540),a=i(51447),h=i(25482),u=i(53966),g=i(36708),m=i(24326),c=i(91429),f=i(12195),d=i(65864),p=i(50498),y=i(55156),_=i(60950),b=i(54339),v=i(94128),M=i(33910);const C=Symbol("meshGeometryHandles");function T(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let A=class extends((0,l.OU)(h.o)){static{r=v.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,m.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,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(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,_.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,y.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:T(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,g.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,g.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,d.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],A.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],A.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:p.yR,json:{read:d.rS}})],A.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)()],A.prototype,"distance",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A,value:null})],A.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],A.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:M.Es})],A.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=s=(0,n.Cg)([(0,c.$K)("esri.Graphic")],A)},7762(e,t,i){var r,s=i(32198),n=i(98291),o=i(4576),l=i(65529),a=i(36563),h=i(4718),u=i(53966),g=i(93687),m=i(76030),c=i(78888),f=i(62788),d=i(10107),p=i(7695),y=i(64108),_=i(95488),b=i(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,i,r,s){this.target=e,this.added=t,this.removed=i,this.start=r,this.deleteCount=s}}const C=new g.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function A(e){return e?e instanceof P?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function S(e,t,i,r){let s=Math.min(e.length-i,t.length-r),n=0;for(;n<s&&e[i+n]===t[r+n];)n++;return n}function w(e,t,i,r){t&&t.forEach((t,s,n)=>{e.push(t),w(e,i.call(r,t,s,n),i,r)})}const L=new Set,I=new Set,O=new Set,N=new Map;let Z=0,P=r=class extends l.nJ{static ofType(e){if(!e)return r;if(N.has(e))return N.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let i in e.typeMap){let r=e.typeMap[i].prototype.declaredClass;t?t+=` | ${r}`:t=r}let i=class extends r{};return(0,s.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,c.dp)(e):(0,c.aq)(e)})],i.prototype,"itemType",void 0),i=(0,s.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),N.set(e,i),i}static isCollection(e){return null!=e&&e instanceof r}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:Z++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof r?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,A(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,a.hA)();if("change"===e){let e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,a.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){let i="deref"in t?()=>t.deref():()=>t,r=this.on(e,e=>{i()?.call(null,e),r.remove()});return r}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let i=this.getNextIndex(t);return this._splice(i,0,A(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,f.gc)(this._observable);let t=e.map(A);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let i=this._splice(0,this.length),r=i.length;for(let s=0;s<r;s++)e.call(t,i[s],s,i);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){let t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);let i=[];return w(i,this,e,t),new r(i)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);let i=this._items.map(e,t);return new r({items:i})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);let i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof r?e.toArray():e,i=this._items,s=[],n=t.length;for(let e=0;e<n;e++){let r=t[e],n=i.indexOf(r);if(n>-1){let r=1+S(t,i,e+1,n+1),o=this._splice(n,r);o&&o.length>0&&s.push.apply(s,o),e+=r-1}}return this._emitAfterChanges(2),s}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let r=(t?2:0)|!!i.length;if(this._emitBeforeChanges(r))return[];let s=this._splice(e,t,i)||[];return this._emitAfterChanges(r),s}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){let r,s,n=this._items,o=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,m._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let t=C.acquire();t.target=this,t.cancellable=!0;for(let i=0,o=s.length;i<o;i++)r=s[i],t.reset(r),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),n.splice(e,0,r),e+=1,--i,--o);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=C.acquire();e.target=this,e.cancellable=!1;let t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);C.release(e)}}if(i?.length){if(o){let e=[];for(let t of i){let i=o.ensureType(t);(null!=i||null==t)&&e.push(i)}i=e}let t=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),s=e===this.length;if(t||r){let o=C.acquire();o.target=this,o.cancellable=!0;let l=C.acquire();l.target=this,l.cancellable=!1;for(let a of i)t?(o.reset(a),this.emit("before-add",o),o.defaultPrevented||(s?n.push(a):n.splice(e++,0,a),this._length=n.length,r&&(l.reset(a),this.emit("after-add",l)))):(s?n.push(a):n.splice(e++,0,a),this._length=n.length,l.reset(a),this.emit("after-add",l));C.release(l),C.release(o)}else{if(s)for(let e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){let r=new M(this,i,s,e,t);this.emit("after-splice",r)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let i=C.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,C.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;L.clear(),I.clear(),O.clear();for(let{added:t,removed:i}of e){if(t)if(0===O.size&&0===I.size)for(let e of t)L.add(e);else for(let e of t)I.has(e)?(O.add(e),I.delete(e)):O.has(e)||L.add(e);if(i)if(0===O.size&&0===L.size)for(let e of i)I.add(e);else for(let e of i)L.has(e)?L.delete(e):(O.delete(e),I.add(e))}let i=n.A.acquire();L.forEach(e=>{i.push(e)});let r=n.A.acquire();I.forEach(e=>{r.push(e)});let s=this._items,o=t.items,l=n.A.acquire();if(O.forEach(e=>{o.indexOf(e)!==s.indexOf(e)&&l.push(e)}),t.listeners&&(i.length||r.length||l.length)){let e={target:this,added:i,removed:r,moved:l},s=t.listeners.length;for(let i=0;i<s;i++){let r=t.listeners[i];r.removed||r.callback.call(this,e)}}n.A.release(i),n.A.release(r),n.A.release(l)}L.clear(),I.clear(),O.clear()}};(0,s.Cg)([(0,d.MZ)()],P.prototype,"_updating",void 0),(0,s.Cg)([(0,d.MZ)()],P.prototype,"_length",void 0),(0,s.Cg)([(0,d.MZ)()],P.prototype,"length",null),(0,s.Cg)([(0,d.MZ)()],P.prototype,"items",null),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"updating",null),P=r=(0,s.Cg)([(0,y.$)("esri.core.Collection")],P);const R=P;i.d(t,["A",0,R])},69052(e,t,i){i.d(t,{hr:()=>s});var r=i(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,s=0,n=!1){return(r-=s)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),n&&r===i&&(r=t),r+s}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const l=new s(0,2*Math.PI),a=(new s(-Math.PI,Math.PI),new s(0,360));i.d(t,["ie",0,a,"uC",0,l])},4902(e,t,i){var r=i(32198),s=i(64108);let n=0;const o=e=>{let t=e,i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable")],i),i};o(class{}),i.d(t,["s",0,o])},7695(e,t,i){function r(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>r})},18370(e,t,i){i.d(t,{z:()=>s});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function s(e){return new r(e)}},36708(e,t,i){i.d(t,{C_:()=>m,on:()=>g,wB:()=>a,z7:()=>h});var r=i(37955),s=i(36563),n=i(97768),o=i(17676),l=i(14012);function a(e,t,i={}){return u(e,t,i,c)}function h(e,t,i={}){return u(e,t,i,f)}function u(e,t,i={},r){let s=null,o=i.once?(e,i)=>{r(e)&&((0,n.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,l.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return s}function g(e,t,i,o={}){let l=null,h=null,u=null;function g(){l&&h&&(h.remove(),o.onListenerRemove?.(l),l=null,h=null)}function m(e){o.once&&o.once&&(0,n.xt)(u),i(e)}let c=a(e,(e,i)=>{g(),(0,r.wb)(e)&&(l=e,h=(0,r.on)(e,t,m),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return u=(0,s.hA)(()=>{c.remove(),g()}),u}function m(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let r=e();if(t?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,n.xt)(l)}return new Promise((r,n)=>{l=(0,s.vE)([(0,o.u7)(i,()=>{a(),n((0,o.NK)())}),u(e,e=>{a(),r(e)},{sync:!1,once:!0},t??c)])})}(e,f,t)}function c(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},52039(e,t,i){i.d(t,{O7:()=>m,el:()=>h});var r=i(69052),s=(i(49186),i(18370)),n=i(17676),o=(i(5443),i(39829)),l=(i(82799),i(16930)),a=(i(80754),i(21325));async function h(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let s=(0,a.Vp)(r);if(!s)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(s);return["xmin"in t?t:new o.A(t)]}let[l,h]=s.valid,m=!1;for(let t of e){if(!t)continue;if("point"===t.type){m||=t.x>=h,m||=t.x<=l;continue}let{extent:e}=t;if(null==e){m=!0;break}m||=e.xmin>=h,m||=e.xmin<=l,m||=e.xmax>=h,m||=e.xmax<=l}if(!m)return e;let[{foldInto360Range:c},f]=await(0,n.qr)(Promise.all([u.getImportPromise(),g.getImportPromise()]),i),d=f.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=f.fromGeometry(e),i=f.toGeometry(c(t,d),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const u=(0,s.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),g=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function m(e,t,i){let r=(0,a.Vp)(i);if(null==r)return e;let[s,n]=r.valid,o=2*n,l=0,h=0;t>n?l=Math.ceil(Math.abs(t-n)/o):t<s&&(l=-Math.ceil(Math.abs(t-s)/o)),e>n?h=Math.ceil(Math.abs(e-n)/o):e<s&&(h=-Math.ceil(Math.abs(e-s)/o));let u=e+(l-h)*o,g=u-t;return g>n?u-=o:g<s&&(u+=o),u}function c(e){let t=(0,a.Vp)(e);if(null==t)return null;let[i,s]=t.valid;return new r.hr(i,s)}const f=c(l.A.WGS84);c(l.A.WebMercator),i.d(t,["Y_",0,f])},80754(e,t,i){i.d(t,{kS:()=>h,kd:()=>a});var r=i(82799),s=i(16930),n=i(60408),o=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function h(e,t){if((0,o.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i){if((0,o.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,o.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,o.n1)(e)){let[i,r,s]=e.b;i[0]+=t,r[0]+=t,s[0]+=t;continue}e[0]+=t}for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},97770(e,t,i){i.d(t,{Ey:()=>O,F8:()=>I,J2:()=>x,Yq:()=>w,_m:()=>S,iS:()=>L,wj:()=>N});var r=i(66552),s=i(73444),n=i(98623),o=i(34747);const l={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},a={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},g={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},d={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},_={...d,...p},b={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...d},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...d},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":g,"long-month-day-year-short-time":{...g,...f},"long-month-day-year-short-time-24":{...g,...y},"long-month-day-year-long-time":{...g,...d},"long-month-day-year-long-time-24":{...g,..._},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...f},"day-short-month-year-short-time-24":{...m,...y},"day-short-month-year-long-time":{...m,...d},"day-short-month-year-long-time-24":{...m,..._},"long-date":c,"long-date-short-time":{...c,...f},"long-date-short-time-24":{...c,...y},"long-date-long-time":{...c,...d},"long-date-long-time-24":{...c,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":d},v=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function C(){let e=(0,s.lR)();return(e&&M[e])??(0,s.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(M.bs="sr-Latn-CS");let T=new WeakMap;const A=b["short-date-short-time"];function x(e){return b[e]}function S(e){let{dateStyle:t,timeStyle:i,hour12:r,year:s,month:n}=e,o={};return t?o.dateStyle=t:s&&(o.year=s,o.month=n||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===r?void 0:"always"===r),o}function w(e,t=A){return function(e){let t=T.get(e);if(!t){let i=C(),r=N(e.timeZone??"system"),s={...e,timeZone:r};t=new Intl.DateTimeFormat(i,s),T.set(e,t)}return t}(t).format(e)}function L(e,t=A){return w(new Date(e),{...t,...h,...a})}function I(e,t=A){return w(new Date(`1970-01-01T${e}Z`),{...t,...h,...l})}function O(e,t=A){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return w(i.toJSDate(),t);let r=0===i.offset?"UTC":t.timeZone,s={...t,timeZone:r};return i.toLocaleString(s,{locale:C()})}function N(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,s.Ml)(()=>{T=new WeakMap}),i.d(t,["_v",0,v])},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},73133(e,t,i){const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(t,["j",0,r])},22671(e,t,i){i.d(t,{A:()=>_});var r,s=i(32198),n=i(52106),o=i(66552),l=i(25482),a=i(4718),h=i(91429),u=i(16930),g=i(60408),m=i(65864),c=i(50498),f=i(20437),d=i(36005),p=i(43937);const y=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=r=class extends l.o{constructor(e){super(e),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(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,i,r){if(e)return void y.write(e,t,i,r);let{features:s}=this;if(s)for(let e of s)if(null!=e?.geometry)return void y.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;let i=!!e.spatialReference,r=(0,m.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=u.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:i}=this;if(i)for(let e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.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(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){let r=t.features[i];r.geometry&&=(e?.[i])?.toJSON()||r.geometry}return t}quantize(e){let{scale:[t,i],translate:[r,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((s-e)/i));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:i}=this;if(!i)return this;let{translate:[r,s],scale:[n,o]}=i,l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}let h=this._getHydrationFunction(e,e=>e*n+r,e=>s-e*o,l,a);for(let{geometry:e}of t)null!=e&&h&&h(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){let r=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let n=e[t],o=i.fromJSON(n),l=n.geometry?.spatialReference;null!=o.geometry&&!l&&(o.geometry.spatialReference=r);let a=n.aggregateGeometries,h=o.aggregateGeometries;if(a&&null!=h)for(let e in h){let t=h[e],i=a[e]?.spatialReference;null!=t&&!i&&(t.spatialReference=r)}s.push(o)}return s}_quantizePoints(e,t,i){let r,s,n=[];for(let o=0,l=e.length;o<l;o++){let l=e[o];if(o>0){let e=t(l[0]),o=i(l[1]);(e!==r||o!==s)&&(n.push([e-r,o-s]),r=e,s=o)}else r=t(l[0]),s=i(l[1]),n.push([r,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{let r=(0,g.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,n=r.length;e<n;e++){let n=r[e],o=this._quantizePoints(n,t,i);o&&s.push(o)}return s.length>0?((0,g.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{let r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,s){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,o,l=(0,g.Bi)(e)?e.rings:e.paths;for(let e=0,r=l.length;e<r;e++){let r=l[e];for(let e=0,s=r.length;e<s;e++){let s=r[e];e>0?(n+=s[0],o+=s[1]):(n=s[0],o=s[1]),s[0]=t(n),s[1]=i(o)}}if(r&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2]),i[3]=s(i[3])}}else if(r)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2])}}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=s(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let n,o,l=e.points;for(let e=0,r=l.length;e<r;e++){let r=l[e];e>0?(n+=r[0],o+=r[1]):(n=r[0],o=r[1]),r[0]=t(n),r[1]=i(o)}if(r&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=r(t[2]),t[3]=s(t[3])}else if(r)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=r(t[2])}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,h.MZ)({type:[n.A],json:{write:!0}})],_.prototype,"features",void 0),(0,s.Cg)([(0,d.w)("features")],_.prototype,"readFeatures",null),(0,s.Cg)([(0,h.MZ)({type:[f.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,s.Cg)([(0,h.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:y.read}}})],_.prototype,"geometryType",void 0),(0,s.Cg)([(0,p.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,s.Cg)([(0,h.MZ)({types:c.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,d.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,h.MZ)({type:u.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,h.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=r=(0,s.Cg)([(0,h.$K)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3318],{52106(e,t,i){i.d(t,{A:()=>A});var r,s,n=i(32198),o=i(40124),l=i(69540),a=i(51447),h=i(25482),u=i(53966),g=i(36708),m=i(24326),c=i(91429),f=i(12195),d=i(65864),p=i(50498),y=i(55156),_=i(60950),b=i(54339),v=i(94128),M=i(33910);const C=Symbol("meshGeometryHandles");function T(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let A=class extends((0,l.OU)(h.o)){static{r=v.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,m.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,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(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,_.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,y.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:T(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,g.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,g.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,d.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],A.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],A.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:p.yR,json:{read:d.rS}})],A.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)()],A.prototype,"distance",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A,value:null})],A.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],A.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:M.Es})],A.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=s=(0,n.Cg)([(0,c.$K)("esri.Graphic")],A)},7762(e,t,i){var r,s=i(32198),n=i(98291),o=i(4576),l=i(65529),a=i(36563),h=i(4718),u=i(53966),g=i(93687),m=i(76030),c=i(78888),f=i(62788),d=i(10107),p=i(7695),y=i(64108),_=i(95488),b=i(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,i,r,s){this.target=e,this.added=t,this.removed=i,this.start=r,this.deleteCount=s}}const C=new g.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function A(e){return e?e instanceof P?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function S(e,t,i,r){let s=Math.min(e.length-i,t.length-r),n=0;for(;n<s&&e[i+n]===t[r+n];)n++;return n}function w(e,t,i,r){t&&t.forEach((t,s,n)=>{e.push(t),w(e,i.call(r,t,s,n),i,r)})}const L=new Set,I=new Set,O=new Set,N=new Map;let Z=0,P=r=class extends l.nJ{static ofType(e){if(!e)return r;if(N.has(e))return N.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let i in e.typeMap){let r=e.typeMap[i].prototype.declaredClass;t?t+=` | ${r}`:t=r}let i=class extends r{};return(0,s.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,c.dp)(e):(0,c.aq)(e)})],i.prototype,"itemType",void 0),i=(0,s.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),N.set(e,i),i}static isCollection(e){return null!=e&&e instanceof r}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:Z++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof r?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,A(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,a.hA)();if("change"===e){let e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,a.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){let i="deref"in t?()=>t.deref():()=>t,r=this.on(e,e=>{i()?.call(null,e),r.remove()});return r}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let i=this.getNextIndex(t);return this._splice(i,0,A(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,f.gc)(this._observable);let t=e.map(A);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let i=this._splice(0,this.length),r=i.length;for(let s=0;s<r;s++)e.call(t,i[s],s,i);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){let t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);let i=[];return w(i,this,e,t),new r(i)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);let i=this._items.map(e,t);return new r({items:i})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);let i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof r?e.toArray():e,i=this._items,s=[],n=t.length;for(let e=0;e<n;e++){let r=t[e],n=i.indexOf(r);if(n>-1){let r=1+S(t,i,e+1,n+1),o=this._splice(n,r);o&&o.length>0&&s.push.apply(s,o),e+=r-1}}return this._emitAfterChanges(2),s}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let r=(t?2:0)|!!i.length;if(this._emitBeforeChanges(r))return[];let s=this._splice(e,t,i)||[];return this._emitAfterChanges(r),s}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){let r,s,n=this._items,o=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,m._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let t=C.acquire();t.target=this,t.cancellable=!0;for(let i=0,o=s.length;i<o;i++)r=s[i],t.reset(r),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),n.splice(e,0,r),e+=1,--i,--o);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=C.acquire();e.target=this,e.cancellable=!1;let t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);C.release(e)}}if(i?.length){if(o){let e=[];for(let t of i){let i=o.ensureType(t);(null!=i||null==t)&&e.push(i)}i=e}let t=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),s=e===this.length;if(t||r){let o=C.acquire();o.target=this,o.cancellable=!0;let l=C.acquire();l.target=this,l.cancellable=!1;for(let a of i)t?(o.reset(a),this.emit("before-add",o),o.defaultPrevented||(s?n.push(a):n.splice(e++,0,a),this._length=n.length,r&&(l.reset(a),this.emit("after-add",l)))):(s?n.push(a):n.splice(e++,0,a),this._length=n.length,l.reset(a),this.emit("after-add",l));C.release(l),C.release(o)}else{if(s)for(let e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){let r=new M(this,i,s,e,t);this.emit("after-splice",r)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let i=C.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,C.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;L.clear(),I.clear(),O.clear();for(let{added:t,removed:i}of e){if(t)if(0===O.size&&0===I.size)for(let e of t)L.add(e);else for(let e of t)I.has(e)?(O.add(e),I.delete(e)):O.has(e)||L.add(e);if(i)if(0===O.size&&0===L.size)for(let e of i)I.add(e);else for(let e of i)L.has(e)?L.delete(e):(O.delete(e),I.add(e))}let i=n.A.acquire();L.forEach(e=>{i.push(e)});let r=n.A.acquire();I.forEach(e=>{r.push(e)});let s=this._items,o=t.items,l=n.A.acquire();if(O.forEach(e=>{o.indexOf(e)!==s.indexOf(e)&&l.push(e)}),t.listeners&&(i.length||r.length||l.length)){let e={target:this,added:i,removed:r,moved:l},s=t.listeners.length;for(let i=0;i<s;i++){let r=t.listeners[i];r.removed||r.callback.call(this,e)}}n.A.release(i),n.A.release(r),n.A.release(l)}L.clear(),I.clear(),O.clear()}};(0,s.Cg)([(0,d.MZ)()],P.prototype,"_updating",void 0),(0,s.Cg)([(0,d.MZ)()],P.prototype,"_length",void 0),(0,s.Cg)([(0,d.MZ)()],P.prototype,"length",null),(0,s.Cg)([(0,d.MZ)()],P.prototype,"items",null),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"updating",null),P=r=(0,s.Cg)([(0,y.$)("esri.core.Collection")],P);const R=P;i.d(t,["A",0,R])},69052(e,t,i){i.d(t,{hr:()=>s});var r=i(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,s=0,n=!1){return(r-=s)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),n&&r===i&&(r=t),r+s}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const l=new s(0,2*Math.PI),a=(new s(-Math.PI,Math.PI),new s(0,360));i.d(t,["ie",0,a,"uC",0,l])},4902(e,t,i){var r=i(32198),s=i(64108);let n=0;const o=e=>{let t=e,i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable")],i),i};o(class{}),i.d(t,["s",0,o])},7695(e,t,i){function r(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>r})},18370(e,t,i){i.d(t,{z:()=>s});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function s(e){return new r(e)}},36708(e,t,i){i.d(t,{C_:()=>m,on:()=>g,wB:()=>a,z7:()=>h});var r=i(37955),s=i(36563),n=i(97768),o=i(17676),l=i(14012);function a(e,t,i={}){return u(e,t,i,c)}function h(e,t,i={}){return u(e,t,i,f)}function u(e,t,i={},r){let s=null,o=i.once?(e,i)=>{r(e)&&((0,n.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,l.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return s}function g(e,t,i,o={}){let l=null,h=null,u=null;function g(){l&&h&&(h.remove(),o.onListenerRemove?.(l),l=null,h=null)}function m(e){o.once&&o.once&&(0,n.xt)(u),i(e)}let c=a(e,(e,i)=>{g(),(0,r.wb)(e)&&(l=e,h=(0,r.on)(e,t,m),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return u=(0,s.hA)(()=>{c.remove(),g()}),u}function m(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let r=e();if(t?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,n.xt)(l)}return new Promise((r,n)=>{l=(0,s.vE)([(0,o.u7)(i,()=>{a(),n((0,o.NK)())}),u(e,e=>{a(),r(e)},{sync:!1,once:!0},t??c)])})}(e,f,t)}function c(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},52039(e,t,i){i.d(t,{O7:()=>m,el:()=>h});var r=i(69052),s=(i(49186),i(18370)),n=i(17676),o=(i(5443),i(39829)),l=(i(82799),i(16930)),a=(i(80754),i(21325));async function h(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let s=(0,a.Vp)(r);if(!s)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(s);return["xmin"in t?t:new o.A(t)]}let[l,h]=s.valid,m=!1;for(let t of e){if(!t)continue;if("point"===t.type){m||=t.x>=h,m||=t.x<=l;continue}let{extent:e}=t;if(null==e){m=!0;break}m||=e.xmin>=h,m||=e.xmin<=l,m||=e.xmax>=h,m||=e.xmax<=l}if(!m)return e;let[{foldInto360Range:c},f]=await(0,n.qr)(Promise.all([u.getImportPromise(),g.getImportPromise()]),i),d=f.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=f.fromGeometry(e),i=f.toGeometry(c(t,d),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const u=(0,s.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),g=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function m(e,t,i){let r=(0,a.Vp)(i);if(null==r)return e;let[s,n]=r.valid,o=2*n,l=0,h=0;t>n?l=Math.ceil(Math.abs(t-n)/o):t<s&&(l=-Math.ceil(Math.abs(t-s)/o)),e>n?h=Math.ceil(Math.abs(e-n)/o):e<s&&(h=-Math.ceil(Math.abs(e-s)/o));let u=e+(l-h)*o,g=u-t;return g>n?u-=o:g<s&&(u+=o),u}function c(e){let t=(0,a.Vp)(e);if(null==t)return null;let[i,s]=t.valid;return new r.hr(i,s)}const f=c(l.A.WGS84);c(l.A.WebMercator),i.d(t,["Y_",0,f])},80754(e,t,i){i.d(t,{kS:()=>h,kd:()=>a});var r=i(82799),s=i(16930),n=i(60408),o=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function h(e,t){if((0,o.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i){if((0,o.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,o.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,o.n1)(e)){let[i,r,s]=e.b;i[0]+=t,r[0]+=t,s[0]+=t;continue}e[0]+=t}for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},97770(e,t,i){i.d(t,{Ey:()=>O,F8:()=>I,J2:()=>x,Yq:()=>w,_m:()=>S,iS:()=>L,wj:()=>N});var r=i(66552),s=i(73444),n=i(98623),o=i(34747);const l={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},a={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},g={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},d={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},_={...d,...p},b={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...d},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...d},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":g,"long-month-day-year-short-time":{...g,...f},"long-month-day-year-short-time-24":{...g,...y},"long-month-day-year-long-time":{...g,...d},"long-month-day-year-long-time-24":{...g,..._},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...f},"day-short-month-year-short-time-24":{...m,...y},"day-short-month-year-long-time":{...m,...d},"day-short-month-year-long-time-24":{...m,..._},"long-date":c,"long-date-short-time":{...c,...f},"long-date-short-time-24":{...c,...y},"long-date-long-time":{...c,...d},"long-date-long-time-24":{...c,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":d},v=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function C(){let e=(0,s.lR)();return(e&&M[e])??(0,s.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(M.bs="sr-Latn-CS");let T=new WeakMap;const A=b["short-date-short-time"];function x(e){return b[e]}function S(e){let{dateStyle:t,timeStyle:i,hour12:r,year:s,month:n}=e,o={};return t?o.dateStyle=t:s&&(o.year=s,o.month=n||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===r?void 0:"always"===r),o}function w(e,t=A){return function(e){let t=T.get(e);if(!t){let i=C(),r=N(e.timeZone??"system"),s={...e,timeZone:r};t=new Intl.DateTimeFormat(i,s),T.set(e,t)}return t}(t).format(e)}function L(e,t=A){return w(new Date(e),{...t,...h,...a})}function I(e,t=A){return w(new Date(`1970-01-01T${e}Z`),{...t,...h,...l})}function O(e,t=A){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return w(i.toJSDate(),t);let r=0===i.offset?"UTC":t.timeZone,s={...t,timeZone:r};return i.toLocaleString(s,{locale:C()})}function N(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,s.Ml)(()=>{T=new WeakMap}),i.d(t,["_v",0,v])},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},73133(e,t,i){const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(t,["j",0,r])},22671(e,t,i){i.d(t,{A:()=>_});var r,s=i(32198),n=i(52106),o=i(66552),l=i(25482),a=i(4718),h=i(91429),u=i(16930),g=i(60408),m=i(65864),c=i(50498),f=i(20437),d=i(36005),p=i(43937);const y=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=r=class extends l.o{constructor(e){super(e),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(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,i,r){if(e)return void y.write(e,t,i,r);let{features:s}=this;if(s)for(let e of s)if(null!=e?.geometry)return void y.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;let i=!!e.spatialReference,r=(0,m.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=u.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:i}=this;if(i)for(let e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.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(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){let r=t.features[i];r.geometry&&=(e?.[i])?.toJSON()||r.geometry}return t}quantize(e){let{scale:[t,i],translate:[r,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((s-e)/i));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:i}=this;if(!i)return this;let{translate:[r,s],scale:[n,o]}=i,l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}let h=this._getHydrationFunction(e,e=>e*n+r,e=>s-e*o,l,a);for(let{geometry:e}of t)null!=e&&h&&h(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){let r=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let n=e[t],o=i.fromJSON(n),l=n.geometry?.spatialReference;null!=o.geometry&&!l&&(o.geometry.spatialReference=r);let a=n.aggregateGeometries,h=o.aggregateGeometries;if(a&&null!=h)for(let e in h){let t=h[e],i=a[e]?.spatialReference;null!=t&&!i&&(t.spatialReference=r)}s.push(o)}return s}_quantizePoints(e,t,i){let r,s,n=[];for(let o=0,l=e.length;o<l;o++){let l=e[o];if(o>0){let e=t(l[0]),o=i(l[1]);(e!==r||o!==s)&&(n.push([e-r,o-s]),r=e,s=o)}else r=t(l[0]),s=i(l[1]),n.push([r,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{let r=(0,g.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,n=r.length;e<n;e++){let n=r[e],o=this._quantizePoints(n,t,i);o&&s.push(o)}return s.length>0?((0,g.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{let r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,s){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,o,l=(0,g.Bi)(e)?e.rings:e.paths;for(let e=0,r=l.length;e<r;e++){let r=l[e];for(let e=0,s=r.length;e<s;e++){let s=r[e];e>0?(n+=s[0],o+=s[1]):(n=s[0],o=s[1]),s[0]=t(n),s[1]=i(o)}}if(r&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2]),i[3]=s(i[3])}}else if(r)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2])}}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=s(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let n,o,l=e.points;for(let e=0,r=l.length;e<r;e++){let r=l[e];e>0?(n+=r[0],o+=r[1]):(n=r[0],o=r[1]),r[0]=t(n),r[1]=i(o)}if(r&&s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=r(t[2]),t[3]=s(t[3])}else if(r)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=r(t[2])}else if(s)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,h.MZ)({type:[n.A],json:{write:!0}})],_.prototype,"features",void 0),(0,s.Cg)([(0,d.w)("features")],_.prototype,"readFeatures",null),(0,s.Cg)([(0,h.MZ)({type:[f.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,s.Cg)([(0,h.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:y.read}}})],_.prototype,"geometryType",void 0),(0,s.Cg)([(0,p.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,s.Cg)([(0,h.MZ)({types:c.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,d.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,h.MZ)({type:u.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,h.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=r=(0,s.Cg)([(0,h.$K)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0}}]);
|