@arcgis/core 4.28.0-next.20230720 → 4.28.0-next.20230721
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/Color.js +1 -1
- package/analysis/AreaMeasurementAnalysis.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/Top.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/FeatureSetIterator.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/lib/comment-handler.js +1 -1
- package/arcade/lib/parser.js +1 -1
- package/arcade/lib/scanner.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{75c28da8d0b02d612d69.js → 040b3fc9c9c0736dd893.js} +1 -1
- package/assets/esri/core/workers/chunks/0652f6a8d5221e978033.js +1 -0
- package/assets/esri/core/workers/chunks/{c13b332afdb3f6be1ec9.js → 092fda62b6f62c2e4869.js} +1 -1
- package/assets/esri/core/workers/chunks/{57e0ad037188bd2997e7.js → 0af18a96cbd4e2d35436.js} +1 -1
- package/assets/esri/core/workers/chunks/0b5eeec0f66c87a46a0c.js +1 -0
- package/assets/esri/core/workers/chunks/{68e568b67b6fb34393db.js → 0cad2b991d0d0fd07846.js} +1 -1
- package/assets/esri/core/workers/chunks/0dccbc6c2559fdc0c2ad.js +1 -0
- package/assets/esri/core/workers/chunks/256a82f6f6e1405fbcc6.js +1 -0
- package/assets/esri/core/workers/chunks/{bb9213899049e1db90da.js → 2c57c9bd71637c5bed8a.js} +1 -1
- package/assets/esri/core/workers/chunks/2cdbabcbfe32286ec78d.js +1 -0
- package/assets/esri/core/workers/chunks/{2b1c83453a862e01954b.js → 2d9d80b2d0042a9c09fb.js} +1 -1
- package/assets/esri/core/workers/chunks/2f9aec2238ff6cb99e09.js +1 -0
- package/assets/esri/core/workers/chunks/{7dbd3e6406fb3e3a1a8f.js → 3cf748c025f3936c1cb2.js} +1 -1
- package/assets/esri/core/workers/chunks/4481d1103363434f16da.js +1 -0
- package/assets/esri/core/workers/chunks/5ae325e6a795c72eac6c.js +1 -0
- package/assets/esri/core/workers/chunks/5e4dde2886a1027b4b96.js +1 -0
- package/assets/esri/core/workers/chunks/730eb7e5f617fdab4f10.js +1 -0
- package/assets/esri/core/workers/chunks/{5a2e6bed9431cf4f42b1.js → 740dc67038f554431f1b.js} +1 -1
- package/assets/esri/core/workers/chunks/{09178454bda15bb7929a.js → 7fbdfd1527582c52f9b6.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c026947505a9ff94a53.js → 807742f38885fa90b4fe.js} +1 -1
- package/assets/esri/core/workers/chunks/82dfbc175b52c7a10475.js +1 -0
- package/assets/esri/core/workers/chunks/870a05451e074b58f19a.js +1 -0
- package/assets/esri/core/workers/chunks/8c5a8c1dfb086069bb06.js +1 -0
- package/assets/esri/core/workers/chunks/99a5a434e0bad48c7a5c.js +1 -0
- package/assets/esri/core/workers/chunks/9a5916c66dad91d01d5b.js +1 -0
- package/assets/esri/core/workers/chunks/9c133fd8c1fbd0295b86.js +1 -0
- package/assets/esri/core/workers/chunks/9cddb504079d396779ea.js +1 -0
- package/assets/esri/core/workers/chunks/a3a1d4f32e518e97d071.js +1 -0
- package/assets/esri/core/workers/chunks/{9548aa449fe3a300c015.js → a4fa40dc77e116c954ac.js} +1 -1
- package/assets/esri/core/workers/chunks/a54ec9929a7db879d5db.js +1 -0
- package/assets/esri/core/workers/chunks/afc5b84693757fda2bc8.js +1 -0
- package/assets/esri/core/workers/chunks/{591b5c277cfd3a4101a4.js → b08f2a4aa94087c6c367.js} +1 -1
- package/assets/esri/core/workers/chunks/c0e12f6a7bb2360e4c21.js +1 -0
- package/assets/esri/core/workers/chunks/c8e656cd470a17f538e9.js +1 -0
- package/assets/esri/core/workers/chunks/d0e203405f95e14b1399.js +1 -0
- package/assets/esri/core/workers/chunks/{ec72f492f24e67e008ae.js → d8e58dc14d3495f0830c.js} +1 -1
- package/assets/esri/core/workers/chunks/ddc393a012588f799f42.js +1 -0
- package/assets/esri/core/workers/chunks/de3baa85b1639c25458d.js +1 -0
- package/assets/esri/core/workers/chunks/e66cea26064ba8353af0.js +1 -0
- package/assets/esri/core/workers/chunks/ea478f2f4a19463e13fd.js +1 -0
- package/assets/esri/core/workers/chunks/eba197e45507f56f3ed0.js +1 -0
- package/assets/esri/core/workers/chunks/ebd006fcd568a7731115.js +1 -0
- package/assets/esri/core/workers/chunks/ef9a9a7d66d818720e20.js +1 -0
- package/assets/esri/core/workers/chunks/f3b458f55236566c940b.js +1 -0
- package/assets/esri/core/workers/chunks/fd0a91b9e0216cc269c3.js +1 -0
- package/assets/esri/core/workers/chunks/{a4fe220a912b1f428e49.js → fdd6403a8390d629392b.js} +1 -1
- package/assets/esri/themes/base/widgets/_Directions.scss +13 -7
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/array.js +1 -1
- package/core/Collection.js +1 -1
- package/core/accessorSupport/decorators/subclass.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/get.js +1 -1
- package/core/accessorSupport/tracking.js +1 -1
- package/core/accessorSupport/utils.js +1 -1
- package/core/libs/rbush/PooledRBush.js +1 -1
- package/core/urlUtils.js +1 -1
- package/geometry/GeometryCursor.js +1 -1
- package/geometry/support/TileClipper.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/interfaces.d.ts +7 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/VectorTileLayer.js +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/effects/EffectView.js +1 -1
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/MultidimensionalSubset.js +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/layers/support/TileInfoTilemapCache.js +1 -1
- package/layers/support/TilemapCache.js +1 -1
- package/layers/support/rasterDatasets/multidimensionalUtils.js +1 -1
- package/layers/support/rasterDatasets/pamParser.js +1 -1
- package/layers/support/rasterDatasets/wcsCoverageParser.js +1 -1
- package/layers/support/rasterFormats/Raw.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
- package/layers/support/rasterFunctions/colormaps.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/layers/voxel/VoxelDimension.js +1 -1
- package/layers/voxel/VoxelTransferFunctionStyle.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/package.json +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/colorRampUtils.js +1 -1
- package/renderers/visualVariables/support/visualVariableUtils.js +1 -1
- package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/support/generateRendererUtils.js +1 -1
- package/smartMapping/raster/renderers/classBreaks.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/GeometryWalker.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectArrow.js +1 -1
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/views/2d/constraints/ZoomConstraint.js +1 -1
- package/views/2d/engine/flow/dataUtils.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
- package/views/2d/engine/vectorTiles/style/VectorTileSource.js +1 -1
- package/views/2d/engine/vectorTiles/tileInfoUtils.js +1 -1
- package/views/2d/engine/webgl/TurboLine.js +1 -1
- package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
- package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
- package/views/2d/layers/BaseLayerView2D.js +1 -1
- package/views/2d/layers/BaseLayerViewGL2D.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/support/rendererUtils.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/support/vectorTileDebugUtils.js +5 -0
- package/views/2d/tiling/TileInfoView.js +1 -1
- package/views/2d/tiling/TileInfoViewPOT.js +1 -1
- package/views/2d/tiling/TileQueue.js +1 -1
- package/views/2d/tiling.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/featureReference.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayRenderTarget.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/terrain/TilingScheme.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentData.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/interfaces.js +1 -1
- package/views/3d/webgl-engine/effects/ScreenSpaceGeometry.js +1 -1
- package/views/3d/webgl-engine/effects/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/requireUtils.js +1 -1
- package/views/MapView.js +1 -1
- package/views/animation/pointToPoint/Path.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
- package/views/interactive/editGeometry/operations/UndoGroup.js +1 -1
- package/views/layers/GroupLayerView.js +1 -1
- package/views/webgl/ProgramCache.js +1 -1
- package/webscene/spec-certification/api.js +1 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/webscene/spec-certification/utils.js +1 -1
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingPhase.js +1 -1
- package/widgets/BuildingExplorer/support/validation.js +1 -1
- package/widgets/Directions/support/resources.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/Histogram/HistogramViewModel.js +1 -1
- package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/styles/support/univariateUtils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/colorRampUtils.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/Legend/support/utils.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
- package/widgets/ValuePicker/ValuePickerSlider.js +1 -1
- package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
- package/widgets/smartMapping/ColorSizeSlider.js +1 -1
- package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.js +1 -1
- package/widgets/smartMapping/SizeSlider.js +1 -1
- package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.js +1 -1
- package/widgets/smartMapping/SmartMappingSliderViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0210f4c2e1f3ed13041b.js +0 -1
- package/assets/esri/core/workers/chunks/07bb40162d97d098bc19.js +0 -1
- package/assets/esri/core/workers/chunks/0a18317566c1fcb68422.js +0 -1
- package/assets/esri/core/workers/chunks/0de65e03db8c611af9fb.js +0 -1
- package/assets/esri/core/workers/chunks/1a60d23a92bcf91dbb22.js +0 -1
- package/assets/esri/core/workers/chunks/205a0b34b698d5329854.js +0 -1
- package/assets/esri/core/workers/chunks/25211d5904ee9d5f4a9d.js +0 -1
- package/assets/esri/core/workers/chunks/26b12d1ea713c1e07701.js +0 -1
- package/assets/esri/core/workers/chunks/2bfa7ee324c32a56b0d3.js +0 -1
- package/assets/esri/core/workers/chunks/4510a17839405146130b.js +0 -1
- package/assets/esri/core/workers/chunks/524156c3f5383c2dd0e3.js +0 -1
- package/assets/esri/core/workers/chunks/59666ecb7c2c1f5a13b2.js +0 -1
- package/assets/esri/core/workers/chunks/5c005c9514354c77ec27.js +0 -1
- package/assets/esri/core/workers/chunks/620ec5c75561183d3d73.js +0 -1
- package/assets/esri/core/workers/chunks/68512670816f59c0e6a5.js +0 -1
- package/assets/esri/core/workers/chunks/6c7374ebc18b46b3480a.js +0 -1
- package/assets/esri/core/workers/chunks/75ba2af92da232067adb.js +0 -1
- package/assets/esri/core/workers/chunks/7c1f0598a016516dcec3.js +0 -1
- package/assets/esri/core/workers/chunks/8dcec8d1b670d2b7ea2b.js +0 -1
- package/assets/esri/core/workers/chunks/8e07dfb6fc2673b640cb.js +0 -1
- package/assets/esri/core/workers/chunks/9050b167355588b7003d.js +0 -1
- package/assets/esri/core/workers/chunks/9230d68799f0b0b9ef36.js +0 -1
- package/assets/esri/core/workers/chunks/af4083f2aad5f5d49dde.js +0 -1
- package/assets/esri/core/workers/chunks/b0a57718a0765d1c8df0.js +0 -1
- package/assets/esri/core/workers/chunks/b431b81a7bf45dd527da.js +0 -1
- package/assets/esri/core/workers/chunks/bda311ad48efdb265939.js +0 -1
- package/assets/esri/core/workers/chunks/d5cce09fbe16cbb8fee4.js +0 -1
- package/assets/esri/core/workers/chunks/da547c3cabe4a89c3ce6.js +0 -1
- package/assets/esri/core/workers/chunks/dd295fa57b45b7ec4ec5.js +0 -1
- package/assets/esri/core/workers/chunks/f553b464e969d45bf451.js +0 -1
- package/assets/esri/core/workers/chunks/f5865294983eb160de8c.js +0 -1
- package/assets/esri/core/workers/chunks/fdb7b1fbdb6fe091ad83.js +0 -1
- package/views/2d/tiling/PagedTileQueue.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7153],{38171:(e,t,i)=>{i.d(t,{Z:()=>f});var s,r=i(43697),l=i(66577),n=i(51773),o=i(9790),a=i(2368),u=i(96674),p=i(99001),c=i(5600),d=(i(75215),i(67676),i(80442),i(52011)),h=i(33955);function y(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let m=s=class extends((0,a.J)(u.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:s}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(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){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=s),"attributes"===e&&(r.attributeName=s),this.layer.graphicChanged(r)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,h.im)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:l.qM,json:{read:h.im}})],m.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:n.Z})],m.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:o.LB})],m.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=s=(0,r._)([(0,d.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const f=m},88669:(e,t,i)=>{function s(){return[0,0,0,0]}function r(e,t,i,s){return[e,t,i,s]}function l(e,t){return new Float64Array(e,t,4)}function n(){return r(1,1,1,1)}function o(){return r(1,0,0,0)}function a(){return r(0,1,0,0)}function u(){return r(0,0,1,0)}function p(){return r(0,0,0,1)}i.d(t,{a:()=>l,c:()=>s,f:()=>r});const c=n(),d=o(),h=a(),y=u(),m=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:d,UNIT_Y:h,UNIT_Z:y,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,createView:l,fromArray:function(e,t=[0,0,0,0]){const i=Math.min(4,e.length);for(let s=0;s<i;++s)t[s]=e[s];return t},fromValues:r,ones:n,unitW:p,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},16050:(e,t,i)=>{i.d(t,{Z:()=>z});var s,r=i(43697),l=i(9790),n=i(35454),o=i(22974),a=i(92604),u=i(5600),p=i(90578),c=i(36030),d=i(71715),h=i(52011),y=i(30556),m=i(75215),f=i(35671),b=i(5499),v=i(41733),g=i(32984),w=i(9833),_=i(66338),V=i(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let j=s=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(a.Z.getLogger(this).error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.Z.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):I((0,o.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return!this.valueExpression||null!=t&&null!=t.arcade||a.Z.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,V.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void a.Z.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==t||null==t.arcade)){const e=await(0,V.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=t??{},{valueExpression:n}=this;let o=this._compiledValueExpression.valueExpression===n?this._compiledValueExpression.compiledFunction:null;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(n);o=a.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=n;const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,u.Cb)(w.KK)],j.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.Cb)({type:[g.Z]})],j.prototype,"classBreakInfos",void 0),(0,r._)([(0,d.r)("classBreakInfos")],j.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.c)("classBreakInfos")],j.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"defaultLabel",void 0),(0,r._)([(0,u.Cb)(w.Gn)],j.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"field",void 0),(0,r._)([(0,p.p)("field")],j.prototype,"castField",null),(0,r._)([(0,u.Cb)({type:Boolean})],j.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.Cb)({type:_.I,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],j.prototype,"minValue",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],j.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],j.prototype,"normalizationType",null),(0,r._)([(0,c.J)({classBreaks:"class-breaks"})],j.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpressionTitle",void 0),j=s=(0,r._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],j);const z=j},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),r=i(35454),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(69237);const u=new r.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends l.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,i)=>{i.d(t,{Z:()=>$});var s=i(43697),r=i(9790),l=i(20102),n=i(22974),o=i(92604),a=i(78286),u=i(17445),p=i(5600),c=i(90578),d=i(36030),h=i(71715),y=i(52011),m=i(30556),f=i(22862),b=i(75215),v=i(35671),g=i(48522),w=i(5499),_=i(41733),V=i(9833),S=i(66338),x=i(2368),C=i(96674),I=i(67676);i(80442);let j=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value2",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value3",void 0),j=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValue")],j);const z=j;let q=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new z({value:e}))):"object"===t?e[0]instanceof z?e:e.map((e=>new z(e))):null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,s._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:[z],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new z({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(I.pC).map((e=>e.toString()));i.push(e)}t.values=i}}}})],q.prototype,"values",void 0),(0,s._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,s._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,Z=i(44262),O=i(59266),U=i(25929),D=i(27883),L=i(59390);const N="esri.renderers.UniqueValueRenderer",M=o.Z.getLogger(N),B="uvInfos-watcher",R="uvGroups-watcher",A=(0,b.se)(Z.Z);let G=k=class extends((0,_.W)(w.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Hg)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new l.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):M.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,U.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,U.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?M.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?M.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void M.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?A(e):new Z.Z({value:e,symbol:(0,r.se)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void M.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++)if(t[i].value===e+""){delete this._valueInfoMap[e],t.splice(i,1);break}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,O.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void M.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==i||null==i.arcade)){const e=await(0,O.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),i=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,D.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new L.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new Z.Z({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(B);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.YP)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,B)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.YP)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.YP)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=l;for(const l of a??[]){const{value:a,value2:p,value3:c}=l,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(r||""):d[0];e.push(new Z.Z({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map((e=>{const{symbol:t,label:i,value:s,description:l}=e,[o,a,u]=n?s?.toString()?.split(r||"")||[]:[s];return new F({symbol:t,label:i,description:l,values:[new z({value:o,value2:a,value3:u})]})})),a=[new T({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=t??{};let n=this._cache.compiledFunc;const o=l.arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._cache.compiledFunc=n}const a=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||g.Z.getDefault());const s=i.populateFromStyle();return s.catch((t=>{M.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{M.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.Cb)({readOnly:!0})],G.prototype,"_cache",null),(0,s._)([(0,d.J)({uniqueValue:"unique-value"})],G.prototype,"type",void 0),(0,s._)([(0,p.Cb)(V.KK)],G.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],G.prototype,"field",null),(0,s._)([(0,c.p)("field")],G.prototype,"castField",null),(0,s._)([(0,m.c)("field")],G.prototype,"writeField",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field2",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field3",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],G.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"valueExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.Cb)({type:S.I,json:{write:!0}})],G.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"defaultLabel",void 0),(0,s._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],G.prototype,"defaultSymbol",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"fieldDelimiter",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],G.prototype,"portal",void 0),(0,s._)([(0,h.r)("portal",["styleName"])],G.prototype,"readPortal",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],G.prototype,"styleOrigin",void 0),(0,s._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],G.prototype,"readStyleOrigin",null),(0,s._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],G.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.Cb)({type:[T],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map((e=>{const{symbol:l,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.Cb)({type:[Z.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueInfos",null),G=k=(0,s._)([(0,y.j)(N)],G);const $=G},41733:(e,t,i)=>{i.d(t,{W:()=>U});var s=i(43697),r=i(5600),l=i(75215),n=(i(67676),i(80442),i(71715)),o=i(52011),a=i(30556),u=i(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=i(77997),h=i(21849);let y=c=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new c({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,r.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,s._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=i(96674),v=i(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,r.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,s._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,s._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,s._)([(0,r.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,s._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new _({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,r.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,s._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=i(89513),C=i(23847),I=i(92036),j=i(35454),z=i(92604),q=i(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new j.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s&&s.match(T),n=l&&l[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:n})),e)return e.map((e=>{const t=E.read(e.type),s=F[t];s||(z.Z.getLogger(this).warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new q.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,r.Cb)()],k.prototype,"visualVariables",null),k=(0,s._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const Z=k,O={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},U=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new Z}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&(D(s.valueExpression,e,t)||await(0,u.io)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.Cb)({types:[O],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function D(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.AB)(t,i,s),!0)}},69237:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(35454),n=i(96674),o=i(22974),a=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let d=s=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(90578);const b=new l.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new l.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,r._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const j=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new l.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,I.i)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],E.prototype,"classificationMethod",null),(0,r._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,r._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,r._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,r._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,r._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,r._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,r._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,r._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,r._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),(0,r._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,i)=>{i.d(t,{EW:()=>p,GY:()=>d,Gn:()=>u,KK:()=>c});var s=i(9790),r=i(78286),l=i(63213),n=i(21878),o=i(89164),a=i(86114);const u={types:s.QT,json:{write:{writer:n.cW},origins:{"web-scene":{types:s.f_,write:{writer:n.cW},read:{reader:(0,l.d)({types:s.f_})}}}}},p=(0,r.RH)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:n.cW},origins:{"web-scene":{type:a.Z,write:{writer:n.cW}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(20102),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,r._)([(0,n.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,i)=>{i.d(t,{Z:()=>j});var s,r=i(43697),l=i(20102),n=i(35454),o=i(92604),a=i(62357),u=i(5600),p=i(90578),c=i(71715),d=i(52011),h=i(30556),y=i(77997),m=i(30856),f=(i(75215),i(67676),i(80442),i(58439));let b=s=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(51706),_=i(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new I;return s.read(e,i),s}let I=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.Z.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===w.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,r._)([(0,u.Cb)()],I.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,r._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,r._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,r._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,r._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const j=I},77997:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),r=i(35454),l=i(96674),n=i(92604),o=i(5600),a=i(90578),u=i(52011),p=i(75215),c=i(58439);const d=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends l.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.Z.getLogger(this).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,s._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],h.prototype,"castField",null),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(22303),n=i(96674),o=i(5600),a=i(75215),u=(i(67676),i(80442),i(52011)),p=i(30556);let c=s=class extends n.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(62357),o=i(5600),a=(i(75215),i(67676),i(80442),i(52011));let u=s=class extends l.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),o=i(66338);let a=s=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},51706:(e,t,i)=>{var s,r;function l(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),l=e.valueUnit||"unknown";return i===s.Unknown?r.Constant:e.stops?r.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?r.ClampedLinear:"unknown"===l?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?r.Proportional:r.Additive:r.Identity:r.RealWorldSize}i.d(t,{PS:()=>o,QW:()=>a,RY:()=>s,hL:()=>r,iY:()=>l,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(r||(r={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),i(22303);var s=i(38171),r=i(74085),l=i(92604),n=i(99282),o=i(51706);const a=l.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new s.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,u=o&&o.attributes,p=s.field,{hasExpression:c}=s.cache;let d=s.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),l=t.createExecContext(o,r);if(!d){const e=t.createSyntaxTree(s.valueExpression);d=t.createFunction(e),s.cache.compiledFunc=d}h=t.executeFunction(d,l)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:l+n*h,h}function d(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o.hL.Additive:return function(e,t,i,s){return e+((h(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o.hL.Constant:return function(e,t,i){const s=e.stops;let r=s&&s.length&&s[0].size;return null==r&&(r=e.minSize),h(r,t,i)}(t,i,s);case o.hL.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=h(t.minSize,i,s),n=h(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return l;if(e>=t.maxDataValue)return n;if(null==l||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?u*(l/2)**2:l*l,i=t+r*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/u):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=h(t.minSize,i,s),o=h(t.maxSize,i,s);let a=null;return a="circle"===r?2*Math.sqrt(l*(n/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(l*n**2):l*n,y(a,n,o)}(e,t,i,s);case o.hL.Stops:return function(e,t,i,s,r){const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,r)=>e<t?(s=r,!0):(i=r,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return h(t.stops?.[l].size,i,s);{const e=h(t.stops?.[l].size,i,s);return e+(h(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o.hL.RealWorldSize:return function(e,t,i,s){const r=(null!=s&&s.resolution?s.resolution:1)*n.a[t.valueUnit],l=h(t.minSize,i,s),o=h(t.maxSize,i,s),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/r:"radius"===a||"distance"===a?2*e/r:e/r,y(p,l,o)}(e,t,i,s);case o.hL.Identity:return e;case o.hL.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,r=s?null:t,l=r&&r.attributes;let n=s?t:null;const{isScaleDriven:u}=e.cache;let p=e.cache.compiledFunc;if(u){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s.at(-1).value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.RY.Expression:{if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),o=s.createExecContext(r,l);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case o.RY.Field:l&&(n=l[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function h(e,t,i){return null==e?null:(0,o.iY)(e)?d(e,t,i):(0,o.qh)(e)?e:null}function y(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function m(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":d(l,t,i);switch(l.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,r.Bg)(l.axis)}}return s}},98046:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),l=i(22303),n=i(22974),o=i(5600),a=i(75215),u=i(36030),p=i(52011),c=i(899);let d=s=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,r._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,r._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),r=i(96674),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let o=class extends r.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(22974),n=i(5600),o=(i(75215),i(52011)),a=i(98046),u=i(899);let p=s=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.d9)(this.colorRamps)})}};(0,r._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,i)=>{i.d(t,{V:()=>n,i:()=>o});var s=i(98046),r=i(899),l=i(1515);const n={key:"type",base:r.Z,typeMap:{algorithmic:s.Z,multipart:l.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?s.Z.fromJSON(e):"multipart"===e.type?l.Z.fromJSON(e):null:null}},72245:(e,t,i)=>{i.d(t,{K3:()=>r,Rx:()=>l});var s=i(80442);const r=()=>!!(0,s.Z)("enable-feature:force-wosr"),l=()=>!!(0,s.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(s.Z.add("enable-i3s-patching",!1,!0,!0),s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),s.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":s.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},21878:(e,t,i)=>{i.d(t,{im:()=>x,cW:()=>w,vX:()=>_});var s=i(9790),r=i(20102),l=i(84230),n=i(87223),o=i(59390),a=i(42143),u=i(4095),p=i(98587),c=i(77987),d=i(37898),h=i(20256),y=i(3456),m=i(86114),f=i(78724),b=i(20825);const v={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t=v){if(!e)return{symbol:null};const{retainId:i=v.retainId,ignoreDrivers:l=v.ignoreDrivers,hasLabelingContext:n=v.hasLabelingContext,retainCIM:g=v.retainCIM}=t;let w=null;if((0,s.dU)(e)||e instanceof o.Z)w=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new r.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};w=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)w=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)w=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)w=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)w=t.geometryType&&"mesh"===t.geometryType?y.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof f.Z))return{error:new r.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};w=n?b.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return i&&w&&"cim"!==w.type&&(w.id=e.id),l&&(0,s.dU)(w)&&w.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:w}}function w(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function _(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function V(e){return e instanceof n.Z||e instanceof o.Z}function S(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:n}=i,o=s?.origin,a=s?.messages;if("web-scene"===o&&!V(e)){const i=g(e,{retainCIM:!0,hasLabelingContext:n});return null!=i.symbol?i.symbol.write(t,s):(a?.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:s,error:i.error})),null)}return("web-map"===o||"portal-item"===o&&!(0,l.A2)(s?.layer))&&V(e)?(a?.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:s})),null):e.write(t,s)}function x(e,t){return(0,s.S9)(e,null,t)}},27883:(e,t,i)=>{i.d(t,{EJ:()=>y,KV:()=>d,n2:()=>c,v9:()=>h,wm:()=>b});var s=i(3172),r=i(20102),l=i(95330),n=i(17452),o=i(48522),a=i(41253),u=i(72245);let p={};function c(e,t,i){return e&&null!=e.styleUrl?async function(e,t){try{return{data:(await y(e,t)).data,baseUrl:(0,n.Yd)(e),styleUrl:e}}catch(e){return(0,l.r9)(e),null}}(e.styleUrl,i):e&&null!=e.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.Z.getDefault();let l;const n=`${s.url} - ${s.user&&s.user.username} - ${e}`;return p[n]||(p[n]=function(e,t,i){return t.load(i).then((()=>{const s=new a.Z({disableExtraQuery:!0,query:`owner:${m} AND type:${f} AND typekeywords:"${e}"`});return t.queryItems(s,i)})).then((({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===l));if(t&&e.type===f&&e.owner===m){s=e;break}}if(!s)throw new r.Z("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)}))}(e,s,i).then((e=>(l=e,e.fetchData()))).then((t=>({data:t,baseUrl:l.itemUrl??"",styleName:e})))),p[n]}(e.styleName,t,i):Promise.reject(new r.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t,i=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())for(const t of i){const i=e.formatInfos.find((e=>e.type===t));if(i)return i.href}return e.webRef}function y(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.Z)((0,n.Fv)(e),i)}const m="esri_en",f="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7153],{38171:(e,t,i)=>{i.d(t,{Z:()=>f});var s,r=i(43697),l=i(66577),n=i(51773),o=i(9790),a=i(2368),u=i(96674),p=i(99001),c=i(5600),d=(i(75215),i(67676),i(80442),i(52011)),h=i(33955);function y(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let m=s=class extends((0,a.J)(u.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:s}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(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){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=s),"attributes"===e&&(r.attributeName=s),this.layer.graphicChanged(r)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,h.im)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:l.qM,json:{read:h.im}})],m.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:n.Z})],m.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:o.LB})],m.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=s=(0,r._)([(0,d.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const f=m},88669:(e,t,i)=>{function s(){return[0,0,0,0]}function r(e,t,i,s){return[e,t,i,s]}function l(e,t){return new Float64Array(e,t,4)}function n(){return r(1,1,1,1)}function o(){return r(1,0,0,0)}function a(){return r(0,1,0,0)}function u(){return r(0,0,1,0)}function p(){return r(0,0,0,1)}i.d(t,{a:()=>l,c:()=>s,f:()=>r});const c=n(),d=o(),h=a(),y=u(),m=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:d,UNIT_Y:h,UNIT_Z:y,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,createView:l,fromArray:function(e,t=[0,0,0,0]){const i=Math.min(4,e.length);for(let s=0;s<i;++s)t[s]=e[s];return t},fromValues:r,ones:n,unitW:p,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},16050:(e,t,i)=>{i.d(t,{Z:()=>z});var s,r=i(43697),l=i(9790),n=i(35454),o=i(22974),a=i(92604),u=i(5600),p=i(90578),c=i(36030),d=i(71715),h=i(52011),y=i(30556),m=i(75215),f=i(35671),b=i(5499),v=i(41733),g=i(32984),w=i(9833),_=i(66338),V=i(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let j=s=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(a.Z.getLogger(this).error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.Z.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):I((0,o.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return!this.valueExpression||null!=t&&null!=t.arcade||a.Z.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,V.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void a.Z.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==t||null==t.arcade)){const e=await(0,V.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=t??{},{valueExpression:n}=this;let o=this._compiledValueExpression.valueExpression===n?this._compiledValueExpression.compiledFunction:null;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(n);o=a.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=n;const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,u.Cb)(w.KK)],j.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.Cb)({type:[g.Z]})],j.prototype,"classBreakInfos",void 0),(0,r._)([(0,d.r)("classBreakInfos")],j.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.c)("classBreakInfos")],j.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"defaultLabel",void 0),(0,r._)([(0,u.Cb)(w.Gn)],j.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"field",void 0),(0,r._)([(0,p.p)("field")],j.prototype,"castField",null),(0,r._)([(0,u.Cb)({type:Boolean})],j.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.Cb)({type:_.I,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],j.prototype,"minValue",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],j.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],j.prototype,"normalizationType",null),(0,r._)([(0,c.J)({classBreaks:"class-breaks"})],j.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpressionTitle",void 0),j=s=(0,r._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],j);const z=j},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),r=i(35454),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(69237);const u=new r.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends l.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,i)=>{i.d(t,{Z:()=>$});var s=i(43697),r=i(9790),l=i(20102),n=i(22974),o=i(92604),a=i(78286),u=i(17445),p=i(5600),c=i(90578),d=i(36030),h=i(71715),y=i(52011),m=i(30556),f=i(22862),b=i(75215),v=i(35671),g=i(48522),w=i(5499),_=i(41733),V=i(9833),S=i(66338),x=i(2368),C=i(96674),I=i(67676);i(80442);let j=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value2",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value3",void 0),j=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValue")],j);const z=j;let q=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new z({value:e}))):"object"===t?e[0]instanceof z?e:e.map((e=>new z(e))):null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,s._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:[z],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new z({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(I.pC).map((e=>e.toString()));i.push(e)}t.values=i}}}})],q.prototype,"values",void 0),(0,s._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,s._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,Z=i(44262),O=i(59266),U=i(25929),D=i(27883),L=i(59390);const N="esri.renderers.UniqueValueRenderer",M=o.Z.getLogger(N),B="uvInfos-watcher",R="uvGroups-watcher",A=(0,b.se)(Z.Z);let G=k=class extends((0,_.W)(w.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Hg)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new l.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):M.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,U.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,U.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?M.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?M.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void M.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?A(e):new Z.Z({value:e,symbol:(0,r.se)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void M.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++)if(t[i].value===e+""){delete this._valueInfoMap[e],t.splice(i,1);break}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,O.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void M.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==i||null==i.arcade)){const e=await(0,O.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),i=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,D.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new L.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new Z.Z({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(B);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.YP)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,B)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.YP)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.YP)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=l;for(const l of a??[]){const{value:a,value2:p,value3:c}=l,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(r||""):d[0];e.push(new Z.Z({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map((e=>{const{symbol:t,label:i,value:s,description:l}=e,[o,a,u]=n?s?.toString()?.split(r||"")||[]:[s];return new F({symbol:t,label:i,description:l,values:[new z({value:o,value2:a,value3:u})]})})),a=[new T({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l}=t??{};let n=this._cache.compiledFunc;const o=l.arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._cache.compiledFunc=n}const a=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||g.Z.getDefault());const s=i.populateFromStyle();return s.catch((t=>{M.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{M.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.Cb)({readOnly:!0})],G.prototype,"_cache",null),(0,s._)([(0,d.J)({uniqueValue:"unique-value"})],G.prototype,"type",void 0),(0,s._)([(0,p.Cb)(V.KK)],G.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],G.prototype,"field",null),(0,s._)([(0,c.p)("field")],G.prototype,"castField",null),(0,s._)([(0,m.c)("field")],G.prototype,"writeField",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field2",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"field3",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],G.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"valueExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.Cb)({type:S.I,json:{write:!0}})],G.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],G.prototype,"defaultLabel",void 0),(0,s._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],G.prototype,"defaultSymbol",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],G.prototype,"fieldDelimiter",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],G.prototype,"portal",void 0),(0,s._)([(0,h.r)("portal",["styleName"])],G.prototype,"readPortal",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],G.prototype,"styleOrigin",void 0),(0,s._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],G.prototype,"readStyleOrigin",null),(0,s._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],G.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.Cb)({type:[T],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map((e=>{const{symbol:l,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.Cb)({type:[Z.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],G.prototype,"uniqueValueInfos",null),G=k=(0,s._)([(0,y.j)(N)],G);const $=G},41733:(e,t,i)=>{i.d(t,{W:()=>U});var s=i(43697),r=i(5600),l=i(75215),n=(i(67676),i(80442),i(71715)),o=i(52011),a=i(30556),u=i(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=i(77997),h=i(21849);let y=c=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new c({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,r.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,s._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=i(96674),v=i(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,r.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,s._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,s._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,s._)([(0,r.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,s._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new _({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,r.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,s._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=i(89513),C=i(23847),I=i(92036),j=i(35454),z=i(92604),q=i(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new j.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s&&s.match(T),n=l&&l[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:n})),e)return e.map((e=>{const t=E.read(e.type),s=F[t];s||(z.Z.getLogger(this).warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new q.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,r.Cb)()],k.prototype,"visualVariables",null),k=(0,s._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const Z=k,O={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},U=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new Z}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&(D(s.valueExpression,e,t)||await(0,u.io)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.Cb)({types:[O],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function D(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.AB)(t,i,s),!0)}},69237:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(35454),n=i(96674),o=i(22974),a=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let d=s=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(90578);const b=new l.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new l.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,r._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const j=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new l.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,I.i)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],E.prototype,"classificationMethod",null),(0,r._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,r._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,r._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,r._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,r._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,r._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,r._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,r._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,r._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),(0,r._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,i)=>{i.d(t,{EW:()=>p,GY:()=>d,Gn:()=>u,KK:()=>c});var s=i(9790),r=i(78286),l=i(63213),n=i(21878),o=i(89164),a=i(86114);const u={types:s.QT,json:{write:{writer:n.cW},origins:{"web-scene":{types:s.f_,write:{writer:n.cW},read:{reader:(0,l.d)({types:s.f_})}}}}},p=(0,r.RH)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:n.cW},origins:{"web-scene":{type:a.Z,write:{writer:n.cW}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(20102),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,r._)([(0,n.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,i)=>{i.d(t,{Z:()=>j});var s,r=i(43697),l=i(20102),n=i(35454),o=i(92604),a=i(62357),u=i(5600),p=i(90578),c=i(71715),d=i(52011),h=i(30556),y=i(77997),m=i(30856),f=(i(75215),i(67676),i(80442),i(58439));let b=s=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(51706),_=i(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new I;return s.read(e,i),s}let I=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.Z.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===w.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,r._)([(0,u.Cb)()],I.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,r._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,r._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,r._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,r._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const j=I},77997:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),r=i(35454),l=i(96674),n=i(92604),o=i(5600),a=i(90578),u=i(52011),p=i(75215),c=i(58439);const d=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends l.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.Z.getLogger(this).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,s._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],h.prototype,"castField",null),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(22303),n=i(96674),o=i(5600),a=i(75215),u=(i(67676),i(80442),i(52011)),p=i(30556);let c=s=class extends n.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(62357),o=i(5600),a=(i(75215),i(67676),i(80442),i(52011));let u=s=class extends l.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),o=i(66338);let a=s=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},51706:(e,t,i)=>{var s,r;function l(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),l=e.valueUnit||"unknown";return i===s.Unknown?r.Constant:e.stops?r.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?r.ClampedLinear:"unknown"===l?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?r.Proportional:r.Additive:r.Identity:r.RealWorldSize}i.d(t,{PS:()=>o,QW:()=>a,RY:()=>s,hL:()=>r,iY:()=>l,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(r||(r={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),i(22303);var s=i(38171),r=i(74085),l=i(92604),n=i(99282),o=i(51706);const a=l.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new s.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,u=o&&o.attributes,p=s.field,{hasExpression:c}=s.cache;let d=s.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),l=t.createExecContext(o,r);if(!d){const e=t.createSyntaxTree(s.valueExpression);d=t.createFunction(e),s.cache.compiledFunc=d}h=t.executeFunction(d,l)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:l+n*h,h}function d(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o.hL.Additive:return function(e,t,i,s){return e+((h(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o.hL.Constant:return function(e,t,i){const s=e.stops;let r=s&&s.length&&s[0].size;return null==r&&(r=e.minSize),h(r,t,i)}(t,i,s);case o.hL.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=h(t.minSize,i,s),n=h(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return l;if(e>=t.maxDataValue)return n;if(null==l||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?u*(l/2)**2:l*l,i=t+r*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/u):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=h(t.minSize,i,s),o=h(t.maxSize,i,s);let a=null;return a="circle"===r?2*Math.sqrt(l*(n/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(l*n**2):l*n,y(a,n,o)}(e,t,i,s);case o.hL.Stops:return function(e,t,i,s,r){const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,r)=>e<t?(s=r,!0):(i=r,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return h(t.stops?.[l].size,i,s);{const e=h(t.stops?.[l].size,i,s);return e+(h(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o.hL.RealWorldSize:return function(e,t,i,s){const r=(null!=s&&s.resolution?s.resolution:1)*n.a[t.valueUnit],l=h(t.minSize,i,s),o=h(t.maxSize,i,s),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/r:"radius"===a||"distance"===a?2*e/r:e/r,y(p,l,o)}(e,t,i,s);case o.hL.Identity:return e;case o.hL.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,r=s?null:t,l=r&&r.attributes;let n=s?t:null;const{isScaleDriven:u}=e.cache;let p=e.cache.compiledFunc;if(u){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.RY.Expression:{if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),o=s.createExecContext(r,l);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case o.RY.Field:l&&(n=l[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function h(e,t,i){return null==e?null:(0,o.iY)(e)?d(e,t,i):(0,o.qh)(e)?e:null}function y(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function m(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":d(l,t,i);switch(l.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,r.Bg)(l.axis)}}return s}},98046:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),l=i(22303),n=i(22974),o=i(5600),a=i(75215),u=i(36030),p=i(52011),c=i(899);let d=s=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,r._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,r._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),r=i(96674),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let o=class extends r.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(22974),n=i(5600),o=(i(75215),i(52011)),a=i(98046),u=i(899);let p=s=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.d9)(this.colorRamps)})}};(0,r._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,i)=>{i.d(t,{V:()=>n,i:()=>o});var s=i(98046),r=i(899),l=i(1515);const n={key:"type",base:r.Z,typeMap:{algorithmic:s.Z,multipart:l.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?s.Z.fromJSON(e):"multipart"===e.type?l.Z.fromJSON(e):null:null}},72245:(e,t,i)=>{i.d(t,{K3:()=>r,Rx:()=>l});var s=i(80442);const r=()=>!!(0,s.Z)("enable-feature:force-wosr"),l=()=>!!(0,s.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(s.Z.add("enable-i3s-patching",!1,!0,!0),s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),s.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":s.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},21878:(e,t,i)=>{i.d(t,{im:()=>x,cW:()=>w,vX:()=>_});var s=i(9790),r=i(20102),l=i(84230),n=i(87223),o=i(59390),a=i(42143),u=i(4095),p=i(98587),c=i(77987),d=i(37898),h=i(20256),y=i(3456),m=i(86114),f=i(78724),b=i(20825);const v={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t=v){if(!e)return{symbol:null};const{retainId:i=v.retainId,ignoreDrivers:l=v.ignoreDrivers,hasLabelingContext:n=v.hasLabelingContext,retainCIM:g=v.retainCIM}=t;let w=null;if((0,s.dU)(e)||e instanceof o.Z)w=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new r.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};w=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)w=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)w=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)w=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)w=t.geometryType&&"mesh"===t.geometryType?y.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof f.Z))return{error:new r.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};w=n?b.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return i&&w&&"cim"!==w.type&&(w.id=e.id),l&&(0,s.dU)(w)&&w.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:w}}function w(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function _(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function V(e){return e instanceof n.Z||e instanceof o.Z}function S(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:n}=i,o=s?.origin,a=s?.messages;if("web-scene"===o&&!V(e)){const i=g(e,{retainCIM:!0,hasLabelingContext:n});return null!=i.symbol?i.symbol.write(t,s):(a?.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:s,error:i.error})),null)}return("web-map"===o||"portal-item"===o&&!(0,l.A2)(s?.layer))&&V(e)?(a?.push(new r.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:s})),null):e.write(t,s)}function x(e,t){return(0,s.S9)(e,null,t)}},27883:(e,t,i)=>{i.d(t,{EJ:()=>y,KV:()=>d,n2:()=>c,v9:()=>h,wm:()=>b});var s=i(3172),r=i(20102),l=i(95330),n=i(17452),o=i(48522),a=i(41253),u=i(72245);let p={};function c(e,t,i){return e&&null!=e.styleUrl?async function(e,t){try{return{data:(await y(e,t)).data,baseUrl:(0,n.Yd)(e),styleUrl:e}}catch(e){return(0,l.r9)(e),null}}(e.styleUrl,i):e&&null!=e.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.Z.getDefault();let l;const n=`${s.url} - ${s.user&&s.user.username} - ${e}`;return p[n]||(p[n]=function(e,t,i){return t.load(i).then((()=>{const s=new a.Z({disableExtraQuery:!0,query:`owner:${m} AND type:${f} AND typekeywords:"${e}"`});return t.queryItems(s,i)})).then((({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===l));if(t&&e.type===f&&e.owner===m){s=e;break}}if(!s)throw new r.Z("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)}))}(e,s,i).then((e=>(l=e,e.fetchData()))).then((t=>({data:t,baseUrl:l.itemUrl??"",styleName:e})))),p[n]}(e.styleName,t,i):Promise.reject(new r.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t,i=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())for(const t of i){const i=e.formatInfos.find((e=>e.type===t));if(i)return i.href}return e.webRef}function y(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.Z)((0,n.Fv)(e),i)}const m="esri_en",f="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
|