@arcgis/core 4.24.0-next.20220511 → 4.24.0-next.20220512
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/assets/components/assets/icon/compactness16.json +1 -0
- package/assets/components/assets/icon/compactness24.json +1 -0
- package/assets/components/assets/icon/compactness32.json +1 -0
- package/assets/components/assets/icon/configure16.json +1 -0
- package/assets/components/assets/icon/configure24.json +1 -0
- package/assets/components/assets/icon/configure32.json +1 -0
- package/assets/components/assets/icon/debugScript16.json +1 -0
- package/assets/components/assets/icon/debugScript24.json +1 -0
- package/assets/components/assets/icon/debugScript32.json +1 -0
- package/assets/components/assets/icon/dissolveFeatures16.json +1 -0
- package/assets/components/assets/icon/dissolveFeatures24.json +1 -0
- package/assets/components/assets/icon/dissolveFeatures32.json +1 -0
- package/assets/components/assets/icon/distanceType16.json +1 -0
- package/assets/components/assets/icon/distanceType24.json +1 -0
- package/assets/components/assets/icon/distanceType32.json +1 -0
- package/assets/components/assets/icon/gridDiamond16.json +1 -0
- package/assets/components/assets/icon/gridDiamond24.json +1 -0
- package/assets/components/assets/icon/gridDiamond32.json +1 -0
- package/assets/components/assets/icon/gridHexagon16.json +1 -0
- package/assets/components/assets/icon/gridHexagon24.json +1 -0
- package/assets/components/assets/icon/gridHexagon32.json +1 -0
- package/assets/components/assets/icon/gridTriangle16.json +1 -0
- package/assets/components/assets/icon/gridTriangle24.json +1 -0
- package/assets/components/assets/icon/gridTriangle32.json +1 -0
- package/assets/components/assets/icon/insets16.json +1 -0
- package/assets/components/assets/icon/insets24.json +1 -0
- package/assets/components/assets/icon/insets32.json +1 -0
- package/assets/components/assets/icon/maximumTerritoryDistance16.json +1 -0
- package/assets/components/assets/icon/maximumTerritoryDistance24.json +1 -0
- package/assets/components/assets/icon/maximumTerritoryDistance32.json +1 -0
- package/assets/components/assets/icon/minDistanceBetweenCenters16.json +1 -0
- package/assets/components/assets/icon/minDistanceBetweenCenters24.json +1 -0
- package/assets/components/assets/icon/minDistanceBetweenCenters32.json +1 -0
- package/assets/components/assets/icon/numberOfTerritories16.json +1 -0
- package/assets/components/assets/icon/numberOfTerritories24.json +1 -0
- package/assets/components/assets/icon/numberOfTerritories32.json +1 -0
- package/assets/components/assets/icon/overlapFeatures16.json +1 -0
- package/assets/components/assets/icon/overlapFeatures24.json +1 -0
- package/assets/components/assets/icon/overlapFeatures32.json +1 -0
- package/assets/components/assets/icon/profileVariables16.json +1 -0
- package/assets/components/assets/icon/profileVariables24.json +1 -0
- package/assets/components/assets/icon/profileVariables32.json +1 -0
- package/assets/components/assets/icon/rasterAnalysis16.json +1 -0
- package/assets/components/assets/icon/rasterAnalysis24.json +1 -0
- package/assets/components/assets/icon/rasterAnalysis32.json +1 -0
- package/assets/components/assets/icon/recurrence16.json +1 -0
- package/assets/components/assets/icon/recurrence24.json +1 -0
- package/assets/components/assets/icon/recurrence32.json +1 -0
- package/assets/components/assets/icon/splitFeatures16.json +1 -0
- package/assets/components/assets/icon/splitFeatures24.json +1 -0
- package/assets/components/assets/icon/splitFeatures32.json +1 -0
- package/assets/components/assets/icon/territoryBufferDistance16.json +1 -0
- package/assets/components/assets/icon/territoryBufferDistance24.json +1 -0
- package/assets/components/assets/icon/territoryBufferDistance32.json +1 -0
- package/assets/components/assets/icon/testData16.json +1 -0
- package/assets/components/assets/icon/testData24.json +1 -0
- package/assets/components/assets/icon/testData32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/07eda3e958d29f86b37e.js +1 -0
- package/assets/esri/core/workers/chunks/0ecaa28b8bff1d779d66.js +1 -0
- package/assets/esri/core/workers/chunks/{adae54f116f311d72d97.js → 1aba8c73c62a64e0658c.js} +1 -1
- package/assets/esri/core/workers/chunks/1d109cd048170e2d529a.js +1 -0
- package/assets/esri/core/workers/chunks/366e5c1abd1ab6d3e548.js +1 -0
- package/assets/esri/core/workers/chunks/3e94e35f44aadbb332ff.js +1 -0
- package/assets/esri/core/workers/chunks/46411f32b29a0e783105.js +1 -0
- package/assets/esri/core/workers/chunks/4d1c87e3e0a02efcc082.js +1 -0
- package/assets/esri/core/workers/chunks/{b089058b64db3912478f.js → 5e46e60fab93ad034d3a.js} +1 -1
- package/assets/esri/core/workers/chunks/6281b15009712a5dee3c.js +1 -0
- package/assets/esri/core/workers/chunks/66f627d68dbb0fdb725f.js +1 -0
- package/assets/esri/core/workers/chunks/672da24bbf86718bf48d.js +1 -0
- package/assets/esri/core/workers/chunks/733625d85602127d62cd.js +1 -0
- package/assets/esri/core/workers/chunks/{c51c9b5da855f84b9a48.js → 7391422fc51acb96a25d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f435dc615fdc8917f6ca.js → 7cf3cff7b28ff007dbad.js} +1 -1
- package/assets/esri/core/workers/chunks/7ea06c86adfc827fda08.js +1 -0
- package/assets/esri/core/workers/chunks/{a054a52712a118c6d505.js → 82bc24bdc9c6ebaf58c0.js} +1 -1
- package/assets/esri/core/workers/chunks/8965ab74e03506e3475e.js +1 -0
- package/assets/esri/core/workers/chunks/{5405f478af3563580926.js → 8b497d9c37a8f577a467.js} +1 -1
- package/assets/esri/core/workers/chunks/919d0d8b1c2176760973.js +1 -0
- package/assets/esri/core/workers/chunks/ab2a0480dc2b608deda3.js +1 -0
- package/assets/esri/core/workers/chunks/ab97a35f7a7d5cf1da19.js +2 -0
- package/assets/esri/core/workers/chunks/{dcd0653191cd4a1ccaae.js.LICENSE.txt → ab97a35f7a7d5cf1da19.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/ae554c88e862a5761f2e.js +1 -0
- package/assets/esri/core/workers/chunks/ae5ce55cd1a32525f101.js +1 -0
- package/assets/esri/core/workers/chunks/b597c04a4abb98e29d1c.js +1 -0
- package/assets/esri/core/workers/chunks/{287c484fd40eee643f3a.js → b78c3e9d31c4a562cdf0.js} +1 -1
- package/assets/esri/core/workers/chunks/be4bf1e4cbe2a593f8b3.js +1 -0
- package/assets/esri/core/workers/chunks/{b7572b0921b23aef8b9d.js → c40d9caf5189be2c698e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b28539c5a6bedb71b038.js → d63f736b3560c577a8a4.js} +1 -1
- package/assets/esri/core/workers/chunks/d869dabe937d3b60504e.js +1 -0
- package/assets/esri/core/workers/chunks/dd6c9a114ad38cf622ba.js +1 -0
- package/assets/esri/core/workers/chunks/e6b0f74226b9394bfa7a.js +1 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +3 -2
- 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/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -0
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -0
- package/chunks/EdgeShader.glsl.js +3 -4
- package/interfaces.d.ts +463 -30
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.js +1 -1
- package/layers/OGCFeatureLayer.js +1 -1
- package/layers/RouteLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/WFSLayer.js +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/AggregateField.d.ts +4 -0
- package/layers/support/AggregateField.js +1 -1
- package/layers/support/FeatureReductionBinning.d.ts +4 -0
- package/layers/support/FeatureReductionBinning.js +1 -1
- package/layers/support/OutStatistic.d.ts +4 -0
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
- package/layers/support/rasterDatasets/wcsCoverageParser.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/package.json +3 -3
- package/portal/support/portalItemUtils.js +1 -1
- package/renderers/PieChartRenderer.d.ts +4 -0
- package/renderers/PieChartRenderer.js +5 -0
- package/renderers/Renderer.js +1 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/clickToleranceUtils.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/renderers/support/types.js +1 -1
- package/renderers/support/utils.js +1 -1
- package/renderers.js +1 -1
- package/request.js +1 -1
- package/rest/imageService/fetchRasterInfo.js +5 -0
- package/rest/imageService/getCatalogItemRasterInfo.js +5 -0
- package/rest/print.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/dotDensity.js +1 -1
- package/smartMapping/renderers/heatmap.js +1 -1
- package/smartMapping/renderers/location.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CurveHelper.js +1 -1
- package/symbols/cim/ExpandedCIM.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
- package/views/2d/engine/brushes.js +1 -1
- package/views/2d/engine/vectorTiles/GlyphSource.js +1 -1
- package/views/2d/engine/vectorTiles/style/Filter.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/Utils.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushPieChart.js +5 -0
- package/views/2d/engine/webgl/brushes/WGLGeometryBrush.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushFill.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushMarker.js +1 -1
- package/views/2d/engine/webgl/color.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/enums.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLBaseFillTemplate.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLBaseLineTemplate.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLDynamicFillTemplate.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLMarkerTemplate.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/techniques/dotDensity/TechniqueDotDensity.js +1 -1
- package/views/2d/engine/webgl/techniques/pieChart/TechniquePieChart.js +5 -0
- package/views/2d/engine/webgl/techniques/utils.js +1 -1
- package/views/2d/engine/webgl/util/Matcher.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/tileRenderers/SymbolTileRenderer.js +1 -1
- package/views/2d/layers/features/tileRenderers/support/WGLFeatureView.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/analysis/Dimensioning/DimensioningTool.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionVisualization.js +1 -1
- package/views/3d/environment/SnowyWeather.d.ts +4 -0
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +5 -5
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +37 -31
- package/views/draw/DrawOperation.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/SceneSnappingEngine.js +5 -0
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/snappingFactory.js +5 -0
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateVertex.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup/actionUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0564f1cfa3d17ff1aad3.js +0 -1
- package/assets/esri/core/workers/chunks/0806d5d706a864542bfb.js +0 -1
- package/assets/esri/core/workers/chunks/52478ee2d2a1354b6900.js +0 -1
- package/assets/esri/core/workers/chunks/5759af97f96f24c40105.js +0 -1
- package/assets/esri/core/workers/chunks/7bc828fbdd54c0b28aac.js +0 -1
- package/assets/esri/core/workers/chunks/875f26ee040f3d75c0db.js +0 -1
- package/assets/esri/core/workers/chunks/88384e7cafbfd2348598.js +0 -1
- package/assets/esri/core/workers/chunks/89acd5f888d6b8df4aad.js +0 -1
- package/assets/esri/core/workers/chunks/9d7533aaeac3b8d145c4.js +0 -1
- package/assets/esri/core/workers/chunks/a3bb600bfcb0282622f1.js +0 -1
- package/assets/esri/core/workers/chunks/b50ae3dc7e43ff452568.js +0 -1
- package/assets/esri/core/workers/chunks/b5b7bcbc19b3430903ee.js +0 -1
- package/assets/esri/core/workers/chunks/b758f3c419edc2306784.js +0 -1
- package/assets/esri/core/workers/chunks/cf47b605c31063e88357.js +0 -1
- package/assets/esri/core/workers/chunks/cfbb332d144e65a4a55d.js +0 -1
- package/assets/esri/core/workers/chunks/db937849b2c1af87b481.js +0 -1
- package/assets/esri/core/workers/chunks/dc3ed59f450283d97a19.js +0 -1
- package/assets/esri/core/workers/chunks/dcd0653191cd4a1ccaae.js +0 -2
- package/assets/esri/core/workers/chunks/dfb6a28039e5d5ce6fd4.js +0 -1
- package/assets/esri/core/workers/chunks/e4fdd1eaf987977d0a51.js +0 -1
- package/assets/esri/core/workers/chunks/f7e0bb11ba3677069c94.js +0 -1
- package/assets/esri/core/workers/chunks/f7f3dde4c8f9c687cc1e.js +0 -1
- package/assets/esri/core/workers/chunks/fc6beaf9466ea3898549.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>b});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(6570),l=n(9361),c=n(8667),u=n(65091),f=n(13473),h=n(38913),d=n(58901),m=n(33955),g=n(67900);function p(e){return 0===r.i8.indexOf("4.")?h.Z.fromExtent(e):new h.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function w(e){if((0,s.p)(e,2,2),e[0]instanceof l.Z&&e[1]instanceof l.Z);else if(e[0]instanceof l.Z&&null===e[1]);else if(e[1]instanceof l.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}async function y(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return 0;let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,g.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.C)(e.zmax,0)*n-(0,s.C)(e.zmin,0)*n));const o=new d.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,c.sz)(o,t)}function b(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]||(0,c.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof l.Z&&n[1]instanceof l.Z?(0,c.fS)(n[0],n[1]):!(!(0,s.o)(n[0])||!(0,s.o)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,3,3),n[0]instanceof l.Z&&n[1]instanceof l.Z)return(0,c.LV)(n[0],n[1],(0,s.d)(n[2]));if(n[0]instanceof l.Z&&null===n[1])return!1;if(n[1]instanceof l.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]?null:(0,c.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.H)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.a)(r[0])){const e=(0,s.H)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.b)(r[0])){if(r[0]instanceof l.Z)return(0,s.s)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.H)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof l.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,c.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,c.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,c.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof a.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,c.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof d.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,c.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.CJ)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.CJ)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.Y4)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Y4)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?y(e,(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?y(r[0],(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.kQ)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.kQ)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.a)(r[0])||(0,s.b)(r[0]))&&(i=(0,s.L)(r[0],t.spatialReference));let a=r[1];if(((0,s.a)(r[1])||(0,s.b)(r[1]))&&(a=(0,s.L)(r[1],t.spatialReference)),!(i instanceof l.Z))throw new Error("Illegal Argument");if(!(a instanceof l.Z))throw new Error("Illegal Argument");return(0,c.TE)(i,a,(0,o.Lz)((0,s.C)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof f.Z))throw new Error("Illegal Argument");if(!(i instanceof f.Z))throw new Error("Illegal Argument");const a=new d.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,c.kQ)(a,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.Cz)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.Cz)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.j2)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.j2)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,c.D$)(n[0],r,(0,s.z)((0,s.C)(n[2],!0)),(0,o.Lz)((0,s.C)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.f3)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.rd)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof h.Z||n[0]instanceof d.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.t)((0,s.C)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.t)((0,s.C)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,c.cv)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)),(0,s.d)((0,s.C)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof l.Z))throw new Error("Illegal Argument");r instanceof a.Z&&(r=h.Z.fromExtent(r));const o=(0,s.t)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.C)(n[2],null);if(null===i)return(0,c.U1)(r,o);if(i instanceof f.Z)return(0,c.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.H)(r),(0,s.p)(r,1,1),null===r[0])return null;let c=r[0];if(((0,s.a)(r[0])||(0,s.b)(r[0]))&&(c=(0,s.L)(r[0],t.spatialReference)),null===c)return null;if(!(c instanceof l.Z))throw new Error("Illegal Argument");return c instanceof f.Z?(0,s.s)((0,o.r1)(r[0]),t.spatialReference):c instanceof h.Z?c.centroid:c instanceof d.Z?(0,i.s9)(c):c instanceof u.Z?(0,i.Ay)(c):c instanceof a.Z?c.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");if(r[0]instanceof f.Z)return[(0,s.s)((0,o.r1)(r[0]),t.spatialReference)];if(r[0]instanceof a.Z)return[(0,s.s)((0,o.r1)(r[0]),t.spatialReference)];const g=await(0,c.og)(r[0]);if(g instanceof h.Z){const e=[],t=[];for(let n=0;n<g.rings.length;n++)if(g.isClockwise(g.rings[n])){const t=(0,m.im)({rings:[g.rings[n]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(t)}else t.push({ring:g.rings[n],pt:g.getPoint(n,0)});for(let n=0;n<t.length;n++)for(let r=0;r<e.length;r++)if(e[r].contains(t[n].pt)){e[r].addRing(t[n].ring);break}return e}if(g instanceof d.Z){const e=[];for(let t=0;t<g.paths.length;t++){const n=(0,m.im)({paths:[g.paths[t]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(n)}return e}if(r[0]instanceof u.Z){const e=(0,s.s)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},64830:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(70586);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,r.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,r.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},80903:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(50758),o=n(92604),s=n(95330),i=n(64830),a=n(25045);const l=o.Z.getLogger("esri.core.workers.Connection");class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const i=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new a.default(e,t,(()=>this._ongoingJobsQueue.pop())),i(n),this._clients[o])),(()=>(i(r),null))):(this._clients[o]=new a.default(l,t,(()=>this._ongoingJobsQueue.pop())),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,n){let r=null;Array.isArray(n)?(l.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n;const o=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,deferred:o});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e.jobAdded()))}return o.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{t[r]=o.openPort(),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,n)=>{n.d(t,{bA:()=>F});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),c=n(92604),u=n(70586),f=n(94362),h=n(99880),d=n(68773),m=(n(2587),n(17452));const g={};function p(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=g.baseUrl),g.packages?.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(t.packages,e)})),t}var w=n(41213);class y{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class b{constructor(){this._dispatcher=new y,this._workerPostMessage({type:f.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.QM)(e);if(t&&t.type===f.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:f.Cs.OPENED,jobId:n,data:o})}}}var k=n(70171),E=n(17202);const v=c.Z.getLogger("esri.core.workers"),{HANDSHAKE:A}=f.Cs;let _,Z;const L="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function n(o){const s=(0,f.QM)(o);s&&s.type===A&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),v.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let S=0;const I=c.Z.getLogger("esri.core.workers"),{ABORT:P,INVOKE:O,OPEN:T,OPENED:N,RESPONSE:D}=f.Cs;class R{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),I.error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return C(new b);if(!_&&!Z)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=d.Z.default){const t={...d.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(d.Z));e.assetsPath=(0,m.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.Z)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.hF)(e.workers.workerPath):e.workers.workerPath=(0,m.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=d.Z.workers.loaderConfig,n=p({baseUrl:t?.baseUrl,locale:(0,k.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);_=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){Z=e||{}}let e;if(_)try{e=new Worker(_,{name:"esri-worker-"+S++})}catch(t){v.warn(L,Z),e=new b}else v.warn(L,Z),e=new b;return C(e)}();return new R(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,f.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:P,jobId:r})}))};this._outJobs.set(r,i),this._post({type:T,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,f.QM)(e);if(t)switch(t.type){case N:this._onOpenedMessage(t);break;case D:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case O:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,c=l.Nv[t];let u;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);u=c.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:D,jobId:n,error:(0,f.AB)(e)})}(0,s.y8)(u)?(a.set(n,{controller:i,promise:u}),u.then((e=>{a.has(n)&&(a.delete(n),this._post({type:D,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:D,jobId:n,error:(0,f.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:D,jobId:n},u)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,u.hw)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:o}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.hw)(s.abortHandle),n?s.reject(r.Z.fromJSON(JSON.parse(n))):s.resolve(o))}_post(e,t,n){return(0,f.oi)(this.worker,e,t,n)}}let H=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;H||(H=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let q=0;const x=[];async function M(e,t){const n=new i.Z;return await n.open(e,t),n}async function F(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return M([a.default.connect(n)],{...t,client:r})}if(await async function(){if(z)return z;j=new AbortController;const e=[];for(let t=0;t<H;t++){const n=R.create(t).then((e=>(x[t]=e,e)));e.push(n)}return z=Promise.all(e),z}(),(0,s.k_)(t.signal),"dedicated"===n){const n=q++%H;return M([await x[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,H);if(n<H){const r=new Array(n);for(let o=0;o<n;++o){const n=q++%H;r[o]=x[n].open(e,t)}return M(r,t)}}return M(x.map((n=>n.open(e,t))),t)}let j,z=null},8667:(e,t,n)=>{n.d(t,{CJ:()=>R,Cz:()=>N,D$:()=>T,ED:()=>b,G0:()=>C,Gg:()=>v,LV:()=>E,Nm:()=>k,Sp:()=>Z,TE:()=>m,U1:()=>O,W4:()=>w,Y4:()=>q,cv:()=>S,e5:()=>_,f3:()=>I,fS:()=>g,j2:()=>D,jU:()=>d,kK:()=>p,kQ:()=>x,og:()=>A,oq:()=>u,r3:()=>h,rd:()=>P,sz:()=>H,uh:()=>y,wf:()=>L,z7:()=>f}),n(66577);var r=n(78346),o=(n(13473),n(33955));function s(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function u(e,t){return a(await c("clip",[s(e),e,t]))}async function f(e,t){return a(await c("cut",[s(e),e,t]))}function h(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function p(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function y(e,t){return c("within",[s(e),e,t])}function b(e,t){return c("disjoint",[s(e),e,t])}function k(e,t){return c("overlaps",[s(e),e,t])}function E(e,t,n){return c("relate",[s(e),e,t,n])}function v(e){return c("isSimple",[s(e),e])}async function A(e){return a(await c("simplify",[s(e),e]))}async function _(e,t){return a(await c("difference",[s(e),e,t]))}async function Z(e,t){return a(await c("symmetricDifference",[s(e),e,t]))}async function L(e,t){return a(await c("intersect",[s(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await c("offset",[s(e),e,t,n,r,o,i]))}async function I(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await c("buffer",o))}async function P(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await c("geodesicBuffer",l))}async function O(e,t,n){if(null==e)throw new Error("Illegal Argument Exception");const r=e.spatialReference;n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const o=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return o.spatialReference=r,o}async function T(e,t,n,r){return a(await c("generalize",[s(e),e,t,n,r]))}async function N(e,t,n){return a(await c("densify",[s(e),e,t,n]))}async function D(e,t,n,r=0){return a(await c("geodesicDensify",[s(e),e,t,n,r]))}function R(e,t){return c("planarArea",[s(e),e,t])}function H(e,t){return c("planarLength",[s(e),e,t])}function q(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function x(e,t,n){return c("geodesicLength",[s(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],u=(0,r.Su)(o),f=`${l}${c}.json`,h=u?`${l}${c}_${u}.json`:f;let d;try{d=await a(e(h))}catch(t){if(h===f)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(f))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},f={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...u},"long-month-day-year-long-time-24":{...i,...u,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...u},"day-short-month-year-long-time-24":{...a,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},h=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(h.apiValues,h.toJSON.bind(h),h.fromJSON.bind(h),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=f["short-date-short-time"];function p(e){return f[e]||null}function w(e,t){return function(e){const t=e||g;if(!m.has(t)){const e=(0,o.Kd)(),n=d[(0,o.Kd)()]||e;m.set(t,new Intl.DateTimeFormat(n,t))}return m.get(t)}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=f["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>h});var r=n(20102),o=n(95330),s=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return a[e]??!1}const c=[],u=new Map;function f(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(f(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),f(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return await p.add(n),n}function m(e){if(!i.test(e))return null;const[,t,n]=i.exec(e),r=t+(n?"-"+n.toUpperCase():"");return l(r)?r:l(t)?t:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const p=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=n[s]||n[r];return l?u(a,l):s?f(a,s):h(a)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),h(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):h(e)}}function h(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),f=n(71058),h=n(85958);async function d(e,t){const a=(0,u.HK)(e),w=(0,u.jc)(e);w||a||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=A("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=A("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(b,y);if(null!=e)return{data:e,getHeader:k,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw A("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(a)throw A("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw A("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||w)throw A("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const E=new AbortController;(0,c.fu)(t,(()=>E.abort()));const v={controller:E,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){let t,n;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null,u=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(l=i,a=new FormData(l))),"string"==typeof i&&(u=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:g.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query&&n.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&r.Z.apiKey&&(0,f.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!Z(t)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await _(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await _(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,n]=await L(e)}while(!await S(e,t,n))}catch(n){const r=A("request:server",n,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const s=e.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&n.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&g.trustedServers.push(e)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:n,getHeader:t?e=>t.headers.get(e):k,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return b?.after?.(C),C}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],k=()=>null,E=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function A(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:k,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=E in t?t[E]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function _(){o.id||await Promise.all([n.e(280),n.e(1400),n.e(3879)]).then(n.bind(n,28153))}function Z(e){return b.some((t=>t.test(e)))}async function L(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions,s=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let f=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;f="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const d=n.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);c=e.path,!f&&c.length+1+l>g.maxUrlLength&&(f=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(f||d)){if(f){if(l>g.maxUrlLength)throw A("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw A("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw A("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,s):(r.body=(0,u.B7)(s),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&p&&r.body instanceof FormData){const e=r.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(f?(0,u.fl)(t,s):t))}let m,w,y=0,b=!1;l>0&&(y=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)w=r,w.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!v(t)){if(m=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)w=m;else if("HEAD"!==r.method)if(m.ok){switch(a){case"array-buffer":w=await m.arrayBuffer();break;case"blob":case"image":w=await m.blob();break;default:w=await m.text()}if(y&&(clearTimeout(y),y=0),"json"===a||"xml"===a||"document"===a)if(w)switch(a){case"json":w=JSON.parse(w);break;case"xml":w=C(w,"application/xml");break;case"document":w=C(w,"text/html")}else w=null;if(w){if("array-buffer"===a||"blob"===a){const e=m.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&w["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(w).json();e.error&&(w=e)}catch{}}"image"===a&&w instanceof Blob&&(w=await I(URL.createObjectURL(w),e,!0))}}else w=await m.text()}else w=await I(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||v(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,u.P$)(t)})}finally{y&&clearTimeout(y)}return[m,w]}function C(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[E]=n,s;n?.error&&(s=n.error),s&&(i=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const c=r.authMode;if(403===i&&(4===a||s.message&&s.message.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&w.includes(i)&&!Z(e.params.url)&&(403!==i||!y.includes(l)&&(null==a||2===a&&e.credentialToken))){await _();try{const t=await o.id.getCredential(e.params.url,{error:A("request:server",s,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function I(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchpriority=g.priority,o.src=e,(0,h.fY)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{Hu:()=>u,fY:()=>l,jH:()=>f,jz:()=>h});var r=n(68773),o=n(80442),s=n(70586),i=n(95330),a=n(17452);function l(e,t,n=!1,r){return new Promise(((a,l)=>{if((0,i.Hc)(r))return void l(c());let u=()=>{d(),l(new Error(`Unable to load ${t}`))},f=()=>{const t=e;d(),a(t)},h=()=>{if(!e)return;const t=e;d(),t.src="",l(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",f)),u=null,f=null,e=null,(0,s.pC)(r)&&r.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(t)};(0,s.pC)(r)&&r.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?e.decode().then(f,u):(e.addEventListener("error",u),e.addEventListener("load",f))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){r.Z.request.crossOriginNoCorsDomains||(r.Z.request.crossOriginNoCorsDomains={});const t=r.Z.request.crossOriginNoCorsDomains;for(let n of e)n=n.toLowerCase(),/^https?:\/\//.test(n)?t[(0,a.P$)(n)]=0:(t[(0,a.P$)("http://"+n)]=0,t[(0,a.P$)("https://"+n)]=0)}function f(e){const t=r.Z.request.crossOriginNoCorsDomains;if(t){let n=(0,a.P$)(e);if(n)return n=n.toLowerCase(),!(0,a.D6)(n,(0,a.TI)())&&t[n]<Date.now()-36e5}return!1}async function h(e){const t=r.Z.request.crossOriginNoCorsDomains;t&&(t[(0,a.P$)(e).toLowerCase()]=Date.now());const n=(0,a.mN)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>b});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(6570),l=n(9361),c=n(8667),u=n(65091),f=n(13473),h=n(38913),d=n(58901),m=n(33955),g=n(67900);function p(e){return 0===r.i8.indexOf("4.")?h.Z.fromExtent(e):new h.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function w(e){if((0,s.p)(e,2,2),e[0]instanceof l.Z&&e[1]instanceof l.Z);else if(e[0]instanceof l.Z&&null===e[1]);else if(e[1]instanceof l.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}async function y(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return 0;let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,g.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.C)(e.zmax,0)*n-(0,s.C)(e.zmin,0)*n));const o=new d.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,c.sz)(o,t)}function b(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]||(0,c.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof l.Z&&n[1]instanceof l.Z?(0,c.fS)(n[0],n[1]):!(!(0,s.o)(n[0])||!(0,s.o)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,3,3),n[0]instanceof l.Z&&n[1]instanceof l.Z)return(0,c.LV)(n[0],n[1],(0,s.d)(n[2]));if(n[0]instanceof l.Z&&null===n[1])return!1;if(n[1]instanceof l.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]?null:(0,c.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.H)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.a)(r[0])){const e=(0,s.H)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.b)(r[0])){if(r[0]instanceof l.Z)return(0,s.s)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.H)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof l.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,c.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,c.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,c.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof a.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,c.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof d.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,c.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.CJ)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.CJ)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.Y4)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Y4)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?y(e,(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?y(r[0],(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.q)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.kQ)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.kQ)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.a)(r[0])||(0,s.b)(r[0]))&&(i=(0,s.L)(r[0],t.spatialReference));let a=r[1];if(((0,s.a)(r[1])||(0,s.b)(r[1]))&&(a=(0,s.L)(r[1],t.spatialReference)),!(i instanceof l.Z))throw new Error("Illegal Argument");if(!(a instanceof l.Z))throw new Error("Illegal Argument");return(0,c.TE)(i,a,(0,o.Lz)((0,s.C)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof f.Z))throw new Error("Illegal Argument");if(!(i instanceof f.Z))throw new Error("Illegal Argument");const a=new d.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,c.kQ)(a,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.Cz)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.Cz)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.j2)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.j2)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,c.D$)(n[0],r,(0,s.z)((0,s.C)(n[2],!0)),(0,o.Lz)((0,s.C)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.f3)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.rd)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof h.Z||n[0]instanceof d.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.t)((0,s.C)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.t)((0,s.C)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,c.cv)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)),(0,s.d)((0,s.C)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof l.Z))throw new Error("Illegal Argument");r instanceof a.Z&&(r=h.Z.fromExtent(r));const o=(0,s.t)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.C)(n[2],null);if(null===i)return(0,c.U1)(r,o);if(i instanceof f.Z)return(0,c.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.H)(r),(0,s.p)(r,1,1),null===r[0])return null;let c=r[0];if(((0,s.a)(r[0])||(0,s.b)(r[0]))&&(c=(0,s.L)(r[0],t.spatialReference)),null===c)return null;if(!(c instanceof l.Z))throw new Error("Illegal Argument");return c instanceof f.Z?(0,s.s)((0,o.r1)(r[0]),t.spatialReference):c instanceof h.Z?c.centroid:c instanceof d.Z?(0,i.s9)(c):c instanceof u.Z?(0,i.Ay)(c):c instanceof a.Z?c.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");if(r[0]instanceof f.Z)return[(0,s.s)((0,o.r1)(r[0]),t.spatialReference)];if(r[0]instanceof a.Z)return[(0,s.s)((0,o.r1)(r[0]),t.spatialReference)];const g=await(0,c.og)(r[0]);if(g instanceof h.Z){const e=[],t=[];for(let n=0;n<g.rings.length;n++)if(g.isClockwise(g.rings[n])){const t=(0,m.im)({rings:[g.rings[n]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(t)}else t.push({ring:g.rings[n],pt:g.getPoint(n,0)});for(let n=0;n<t.length;n++)for(let r=0;r<e.length;r++)if(e[r].contains(t[n].pt)){e[r].addRing(t[n].ring);break}return e}if(g instanceof d.Z){const e=[];for(let t=0;t<g.paths.length;t++){const n=(0,m.im)({paths:[g.paths[t]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(n)}return e}if(r[0]instanceof u.Z){const e=(0,s.s)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},64830:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(70586);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,r.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,r.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},80903:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(50758),o=n(92604),s=n(95330),i=n(64830),a=n(25045);const l=o.Z.getLogger("esri.core.workers.Connection");class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const i=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new a.default(e,t,(()=>this._ongoingJobsQueue.pop())),i(n),this._clients[o])),(()=>(i(r),null))):(this._clients[o]=new a.default(l,t,(()=>this._ongoingJobsQueue.pop())),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,n){let r=null;Array.isArray(n)?(l.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n;const o=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,deferred:o});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e.jobAdded()))}return o.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{t[r]=o.openPort(),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,n)=>{n.d(t,{bA:()=>F});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),c=n(92604),u=n(70586),f=n(94362),h=n(99880),d=n(68773),m=(n(2587),n(17452));const g={};function p(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=g.baseUrl),g.packages?.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(t.packages,e)})),t}var w=n(41213);class y{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class b{constructor(){this._dispatcher=new y,this._workerPostMessage({type:f.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.QM)(e);if(t&&t.type===f.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:f.Cs.OPENED,jobId:n,data:o})}}}var k=n(70171),E=n(17202);const v=c.Z.getLogger("esri.core.workers"),{HANDSHAKE:A}=f.Cs;let _,Z;const L="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function n(o){const s=(0,f.QM)(o);s&&s.type===A&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),v.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let S=0;const I=c.Z.getLogger("esri.core.workers"),{ABORT:P,INVOKE:O,OPEN:T,OPENED:N,RESPONSE:D}=f.Cs;class R{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),I.error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return C(new b);if(!_&&!Z)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=d.Z.default){const t={...d.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(d.Z));e.assetsPath=(0,m.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.Z)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.hF)(e.workers.workerPath):e.workers.workerPath=(0,m.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=d.Z.workers.loaderConfig,n=p({baseUrl:t?.baseUrl,locale:(0,k.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);_=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){Z=e||{}}let e;if(_)try{e=new Worker(_,{name:"esri-worker-"+S++})}catch(t){v.warn(L,Z),e=new b}else v.warn(L,Z),e=new b;return C(e)}();return new R(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,f.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:P,jobId:r})}))};this._outJobs.set(r,i),this._post({type:T,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,f.QM)(e);if(t)switch(t.type){case N:this._onOpenedMessage(t);break;case D:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case O:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,c=l.Nv[t];let u;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);u=c.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:D,jobId:n,error:(0,f.AB)(e)})}(0,s.y8)(u)?(a.set(n,{controller:i,promise:u}),u.then((e=>{a.has(n)&&(a.delete(n),this._post({type:D,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:D,jobId:n,error:(0,f.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:D,jobId:n},u)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,u.hw)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:o}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.hw)(s.abortHandle),n?s.reject(r.Z.fromJSON(JSON.parse(n))):s.resolve(o))}_post(e,t,n){return(0,f.oi)(this.worker,e,t,n)}}let H=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;H||(H=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let x=0;const q=[];async function M(e,t){const n=new i.Z;return await n.open(e,t),n}async function F(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return M([a.default.connect(n)],{...t,client:r})}if(await async function(){if(z)return z;j=new AbortController;const e=[];for(let t=0;t<H;t++){const n=R.create(t).then((e=>(q[t]=e,e)));e.push(n)}return z=Promise.all(e),z}(),(0,s.k_)(t.signal),"dedicated"===n){const n=x++%H;return M([await q[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,H);if(n<H){const r=new Array(n);for(let o=0;o<n;++o){const n=x++%H;r[o]=q[n].open(e,t)}return M(r,t)}}return M(q.map((n=>n.open(e,t))),t)}let j,z=null},8667:(e,t,n)=>{n.d(t,{CJ:()=>R,Cz:()=>N,D$:()=>T,ED:()=>b,G0:()=>C,Gg:()=>v,LV:()=>E,Nm:()=>k,Sp:()=>Z,TE:()=>m,U1:()=>O,W4:()=>w,Y4:()=>x,cv:()=>S,e5:()=>_,f3:()=>I,fS:()=>g,j2:()=>D,jU:()=>d,kK:()=>p,kQ:()=>q,og:()=>A,oq:()=>u,r3:()=>h,rd:()=>P,sz:()=>H,uh:()=>y,wf:()=>L,z7:()=>f}),n(66577);var r=n(78346),o=(n(13473),n(33955));function s(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function u(e,t){return a(await c("clip",[s(e),e,t]))}async function f(e,t){return a(await c("cut",[s(e),e,t]))}function h(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function p(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function y(e,t){return c("within",[s(e),e,t])}function b(e,t){return c("disjoint",[s(e),e,t])}function k(e,t){return c("overlaps",[s(e),e,t])}function E(e,t,n){return c("relate",[s(e),e,t,n])}function v(e){return c("isSimple",[s(e),e])}async function A(e){return a(await c("simplify",[s(e),e]))}async function _(e,t){return a(await c("difference",[s(e),e,t]))}async function Z(e,t){return a(await c("symmetricDifference",[s(e),e,t]))}async function L(e,t){return a(await c("intersect",[s(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await c("offset",[s(e),e,t,n,r,o,i]))}async function I(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await c("buffer",o))}async function P(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await c("geodesicBuffer",l))}async function O(e,t,n){if(null==e)throw new Error("Illegal Argument Exception");const r=e.spatialReference;n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const o=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return o.spatialReference=r,o}async function T(e,t,n,r){return a(await c("generalize",[s(e),e,t,n,r]))}async function N(e,t,n){return a(await c("densify",[s(e),e,t,n]))}async function D(e,t,n,r=0){return a(await c("geodesicDensify",[s(e),e,t,n,r]))}function R(e,t){return c("planarArea",[s(e),e,t])}function H(e,t){return c("planarLength",[s(e),e,t])}function x(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function q(e,t,n){return c("geodesicLength",[s(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],u=(0,r.Su)(o),f=`${l}${c}.json`,h=u?`${l}${c}_${u}.json`:f;let d;try{d=await a(e(h))}catch(t){if(h===f)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(f))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},f={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...u},"long-month-day-year-long-time-24":{...i,...u,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...u},"day-short-month-year-long-time-24":{...a,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},h=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(h.apiValues,h.toJSON.bind(h),h.fromJSON.bind(h),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=f["short-date-short-time"];function p(e){return f[e]||null}function w(e,t){return function(e){const t=e||g;if(!m.has(t)){const e=(0,o.Kd)(),n=d[(0,o.Kd)()]||e;m.set(t,new Intl.DateTimeFormat(n,t))}return m.get(t)}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=f["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>h});var r=n(20102),o=n(95330),s=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return a[e]??!1}const c=[],u=new Map;function f(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(f(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),f(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return await p.add(n),n}function m(e){if(!i.test(e))return null;const[,t,n]=i.exec(e),r=t+(n?"-"+n.toUpperCase():"");return l(r)?r:l(t)?t:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const p=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=n[s]||n[r];return l?u(a,l):s?f(a,s):h(a)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),h(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):h(e)}}function h(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),f=n(71058),h=n(85958);async function d(e,t){const a=(0,u.HK)(e),w=(0,u.jc)(e);w||a||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=A("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=A("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(b,y);if(null!=e)return{data:e,getHeader:k,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw A("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(a)throw A("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw A("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||w)throw A("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const E=new AbortController;(0,c.fu)(t,(()=>E.abort()));const v={controller:E,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){let t,n;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(l=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:g.priority,redirect:"follow",signal:s},(a||l)&&(e.fetchOptions.body=a||l),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query?.token||a?.get("token")),!e.hasToken&&r.Z.apiKey&&(0,f.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!Z(t)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await _(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await _(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,n]=await L(e)}while(!await S(e,t,n))}catch(n){const r=A("request:server",n,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const s=e.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&n.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&g.trustedServers.push(e)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:n,getHeader:t?e=>t.headers.get(e):k,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return b?.after?.(C),C}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],k=()=>null,E=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function A(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:k,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=E in t?t[E]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function _(){o.id||await Promise.all([n.e(280),n.e(1400),n.e(3879)]).then(n.bind(n,28153))}function Z(e){return b.some((t=>t.test(e)))}async function L(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions,s=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let f=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;f="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const d=n.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);c=e.path,!f&&c.length+1+l>g.maxUrlLength&&(f=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(f||d)){if(f){if(l>g.maxUrlLength)throw A("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw A("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw A("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,s):(r.body=(0,u.B7)(s),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&p&&r.body instanceof FormData&&!/\/sharing\/(appservices|servers)\//i.test(t)&&r.body.set("token",s.token),n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(f?(0,u.fl)(t,s):t))}let m,w,y=0,b=!1;l>0&&(y=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)w=r,w.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!v(t)){if(m=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)w=m;else if("HEAD"!==r.method)if(m.ok){switch(a){case"array-buffer":w=await m.arrayBuffer();break;case"blob":case"image":w=await m.blob();break;default:w=await m.text()}if(y&&(clearTimeout(y),y=0),"json"===a||"xml"===a||"document"===a)if(w)switch(a){case"json":w=JSON.parse(w);break;case"xml":w=C(w,"application/xml");break;case"document":w=C(w,"text/html")}else w=null;if(w){if("array-buffer"===a||"blob"===a){const e=m.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&w["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(w).json();e.error&&(w=e)}catch{}}"image"===a&&w instanceof Blob&&(w=await I(URL.createObjectURL(w),e,!0))}}else w=await m.text()}else w=await I(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||v(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,u.P$)(t)})}finally{y&&clearTimeout(y)}return[m,w]}function C(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[E]=n,s;n?.error&&(s=n.error),s&&(i=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const c=r.authMode;if(403===i&&(4===a||s.message&&s.message.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&w.includes(i)&&!Z(e.params.url)&&(403!==i||!y.includes(l)&&(null==a||2===a&&e.credentialToken))){await _();try{const t=await o.id.getCredential(e.params.url,{error:A("request:server",s,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function I(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchpriority=g.priority,o.src=e,(0,h.fY)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{Hu:()=>u,fY:()=>l,jH:()=>f,jz:()=>h});var r=n(68773),o=n(80442),s=n(70586),i=n(95330),a=n(17452);function l(e,t,n=!1,r){return new Promise(((a,l)=>{if((0,i.Hc)(r))return void l(c());let u=()=>{d(),l(new Error(`Unable to load ${t}`))},f=()=>{const t=e;d(),a(t)},h=()=>{if(!e)return;const t=e;d(),t.src="",l(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",f)),u=null,f=null,e=null,(0,s.pC)(r)&&r.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(t)};(0,s.pC)(r)&&r.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?e.decode().then(f,u):(e.addEventListener("error",u),e.addEventListener("load",f))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){r.Z.request.crossOriginNoCorsDomains||(r.Z.request.crossOriginNoCorsDomains={});const t=r.Z.request.crossOriginNoCorsDomains;for(let n of e)n=n.toLowerCase(),/^https?:\/\//.test(n)?t[(0,a.P$)(n)]=0:(t[(0,a.P$)("http://"+n)]=0,t[(0,a.P$)("https://"+n)]=0)}function f(e){const t=r.Z.request.crossOriginNoCorsDomains;if(t){let n=(0,a.P$)(e);if(n)return n=n.toLowerCase(),!(0,a.D6)(n,(0,a.TI)())&&t[n]<Date.now()-36e5}return!1}async function h(e){const t=r.Z.request.crossOriginNoCorsDomains;t&&(t[(0,a.P$)(e).toLowerCase()]=Date.now());const n=(0,a.mN)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1423],{12501:(e,t,i)=>{i.d(t,{Z:()=>y});var s,r=i(43697),o=i(22974),n=i(5600),l=(i(75215),i(52011)),a=i(30556),u=i(35671),p=i(5499),d=i(12571),c=i(84475);let h=s=class extends((0,d.W)(p.Z)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}get _loader(){return new c.DictionaryLoader(this.url,this.config,this.fieldMap)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,i,s){s?.origin||super.writeVisualVariables(e,t,i,s)}clone(){return new s({config:(0,o.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,o.d9)(this.fieldMap),url:(0,o.d9)(this.url),visualVariables:(0,o.d9)(this.visualVariables)})}async getSymbolAsync(e,t){return this._loader.getSymbolAsync(e,t)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,u.io)(e,t,this.scaleExpression);for(const i in this.fieldMap){const s=this.fieldMap[i];t.has(s)&&e.add(s)}}get arcadeRequired(){return!0}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._loader.getSymbolFields()}};(0,r._)([(0,n.Cb)({type:c.DictionaryLoader})],h.prototype,"_loader",null),(0,r._)([(0,n.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],h.prototype,"config",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],h.prototype,"fieldMap",void 0),(0,r._)([(0,n.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],h.prototype,"scaleExpression",void 0),(0,r._)([(0,a.c)("scaleExpression")],h.prototype,"writeData",null),(0,r._)([(0,n.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],h.prototype,"scaleExpressionTitle",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"url",void 0),(0,r._)([(0,a.c)("visualVariables")],h.prototype,"writeVisualVariables",null),h=s=(0,r._)([(0,l.j)("esri.renderers.DictionaryRenderer")],h);const y=h},28756:(e,t,i)=>{i.d(t,{Z:()=>_});var s,r=i(43697),o=i(22303),n=i(22974),l=i(44422),a=(i(75215),i(36030)),u=i(5600),p=i(52011),d=i(35671),c=i(5499),h=i(12571),y=i(79887),b=i(96674);i(67676),i(80442);let m=s=class extends b.wq{constructor(){super(...arguments),this.unit=null}clone(){return new s({unit:this.unit})}};(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],m.prototype,"unit",void 0),m=s=(0,r._)([(0,p.j)("esri.renderers.support.DotDensityLegendOptions")],m);const f=m;var g,w=i(20256),v=i(4095);let S=g=class extends((0,h.W)(c.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new o.Z([0,0,0,0]),this.blendDots=!0,this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new v.Z,this.dotValue=null,this.referenceDotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new w.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes&&this.attributes.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new g({attributes:(0,n.d9)(this.attributes),backgroundColor:(0,n.d9)(this.backgroundColor),dotBlendingEnabled:(0,n.d9)(this.dotBlendingEnabled),dotShape:(0,n.d9)(this.dotShape),dotSize:(0,n.d9)(this.dotSize),dotValue:(0,n.d9)(this.dotValue),legendOptions:(0,n.d9)(this.legendOptions),outline:(0,n.d9)(this.outline),referenceScale:(0,n.d9)(this.referenceScale),visualVariables:(0,n.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes.map((e=>e.field||e.valueExpression||""))}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,d.io)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,r._)([(0,u.Cb)({type:[y.Z],json:{write:!0}})],S.prototype,"attributes",void 0),(0,r._)([(0,u.Cb)({type:o.Z,json:{write:!0}})],S.prototype,"backgroundColor",void 0),(0,r._)([(0,u.Cb)({type:Boolean}),(0,l.B)("dotBlendingEnabled")],S.prototype,"blendDots",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],S.prototype,"dotBlendingEnabled",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!1}})],S.prototype,"dotShape",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1}}}})],S.prototype,"dotSize",void 0),(0,r._)([(0,u.Cb)({type:f,json:{write:!0}})],S.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:v.Z,json:{default:null,write:!0}})],S.prototype,"outline",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],S.prototype,"dotValue",void 0),(0,r._)([(0,u.Cb)({type:Number}),(0,l.B)("dotValue")],S.prototype,"referenceDotValue",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],S.prototype,"referenceScale",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],S.prototype,"seed",void 0),(0,r._)([(0,a.J)({dotDensity:"dot-density"})],S.prototype,"type",void 0),S=g=(0,r._)([(0,p.j)("esri.renderers.DotDensityRenderer")],S);const _=S},92271:(e,t,i)=>{i.d(t,{Z:()=>v});var s,r=i(43697),o=i(22303),n=(i(78223),i(22974)),l=i(5600),a=(i(75215),i(36030)),u=i(52011),p=i(35671),d=i(5499),c=i(96674);i(67676),i(80442);let h=s=class extends c.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new s({color:this.color,ratio:this.ratio})}};(0,r._)([(0,l.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"color",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],h.prototype,"ratio",void 0),h=s=(0,r._)([(0,u.j)("esri.renderers.support.HeatmapColorStop")],h);const y=h;var b=i(2368);let m=class extends((0,b.J)(c.wq)){constructor(){super(...arguments),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"minLabel",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"maxLabel",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"title",void 0),m=(0,r._)([(0,u.j)("esri.renderers.support.HeatmapLegendOptions")],m);var f,g=i(77987);let w=f=class extends d.Z{constructor(e){super(e),this.blurRadius=10,this.colorStops=[new y({ratio:0,color:new o.Z("rgba(255, 140, 0, 0)")}),new y({ratio:.75,color:new o.Z("rgba(255, 140, 0, 1)")}),new y({ratio:.9,color:new o.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.legendOptions=null,this.maxPixelIntensity=100,this.minPixelIntensity=0,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null}getSymbol(){const e=0!==this.referenceScale?5:1,t=Math.min(3*this.blurRadius*e,256);return new g.Z({size:`${t}px`})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const i=this.field,s=this.valueExpression;i&&"string"==typeof i&&await(0,p.AB)(e,t,i),s&&"string"==typeof s&&await(0,p.io)(e,t,s)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new f({blurRadius:this.blurRadius,colorStops:(0,n.d9)(this.colorStops),field:this.field,legendOptions:(0,n.d9)(this.legendOptions),maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity,referenceScale:this.referenceScale})}};(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"blurRadius",void 0),(0,r._)([(0,l.Cb)({type:[y],json:{write:!0}})],w.prototype,"colorStops",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],w.prototype,"field",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:{overridePolicy:(e,t,i)=>({enabled:null==i})}}})],w.prototype,"fieldOffset",void 0),(0,r._)([(0,l.Cb)({type:m,json:{write:!0}})],w.prototype,"legendOptions",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"maxPixelIntensity",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"minPixelIntensity",void 0),(0,r._)([(0,l.Cb)({type:Number,range:{min:0},json:{default:0,write:!0,origins:{"web-scene":{write:!1}}}})],w.prototype,"referenceScale",void 0),(0,r._)([(0,a.J)({heatmap:"heatmap"})],w.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],w.prototype,"valueExpression",void 0),(0,r._)([(0,l.Cb)({type:String})],w.prototype,"valueExpressionTitle",void 0),w=f=(0,r._)([(0,u.j)("esri.renderers.HeatmapRenderer")],w);const v=w},18746:(e,t,i)=>{i.d(t,{Z:()=>w});var s,r=i(43697),o=i(22303),n=(i(78223),i(22974)),l=i(62357),a=i(5600),u=(i(75215),i(36030)),p=i(52011),d=i(35671),c=i(5499),h=i(12571),y=i(79887),b=i(77987),m=i(20256),f=i(4095);let g=s=class extends((0,h.W)(c.Z)){constructor(e){super(e),this.attributes=null,this.backgroundSymbol=null,this.defaultColor=new o.Z([0,0,0,0]),this.donutRatio=0,this.outline=null,this.sectorThreshold=0,this.size=null,this.type="pie-chart"}clone(){return new s({attributes:(0,n.d9)(this.attributes),backgroundSymbol:(0,n.d9)(this.backgroundSymbol),donutRatio:this.donutRatio,defaultColor:(0,n.d9)(this.defaultColor),outline:(0,n.d9)(this.outline),sectorThreshold:this.sectorThreshold,size:this.size,visualVariables:(0,n.d9)(this.visualVariables)})}getSymbol(){return new b.Z({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol(),this.backgroundSymbol]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,d.io)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,r._)([(0,a.Cb)({type:[y.Z],json:{write:!0}})],g.prototype,"attributes",void 0),(0,r._)([(0,a.Cb)({type:m.Z,json:{default:null,write:!0}})],g.prototype,"backgroundSymbol",void 0),(0,r._)([(0,a.Cb)({type:o.Z,json:{write:!0}})],g.prototype,"defaultColor",void 0),(0,r._)([(0,a.Cb)({type:Number,range:{min:0,max:1},json:{write:!0}})],g.prototype,"donutRatio",void 0),(0,r._)([(0,a.Cb)({type:f.Z,json:{default:null,write:!0}})],g.prototype,"outline",void 0),(0,r._)([(0,a.Cb)({type:Number,range:{min:0,max:1},json:{write:!0}})],g.prototype,"sectorThreshold",void 0),(0,r._)([(0,a.Cb)({type:Number,cast:l.t_,json:{write:!0}})],g.prototype,"size",void 0),(0,r._)([(0,u.J)({pieChart:"pie-chart"})],g.prototype,"type",void 0),g=s=(0,r._)([(0,p.j)("esri.renderers.PieChartRenderer")],g);const w=g},84382:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),o=i(22974),n=i(5600),l=(i(75215),i(36030)),a=i(52011),u=i(5499),p=i(12571),d=i(9833);let c=s=class extends((0,p.W)(u.Z)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map((i=>i.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new s({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,o.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,n.Cb)(d.G)],c.prototype,"symbol",void 0),(0,r._)([(0,l.J)({simple:"simple"})],c.prototype,"type",void 0),c=s=(0,r._)([(0,a.j)("esri.renderers.SimpleRenderer")],c);const h=c},79887:(e,t,i)=>{i.d(t,{Z:()=>y});var s,r=i(43697),o=i(22303),n=i(96674),l=i(92604),a=i(5600),u=(i(67676),i(80442),i(90578)),p=i(52011),d=i(75215);const c=l.Z.getLogger("esri.renderers.support.AttributeColorInfo");let h=s=class extends n.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(c.error(".field: field must be a string value"),null):(0,d.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new s({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,r._)([(0,a.Cb)({type:o.Z,json:{type:[Number],write:!0}})],h.prototype,"color",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,r._)([(0,u.p)("field")],h.prototype,"castField",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),h=s=(0,r._)([(0,p.j)("esri.renderers.support.AttributeColorInfo")],h);const y=h},84475:(e,t,i)=>{i.r(t),i.d(t,{DictionaryLoader:()=>b});var s=i(22303),r=i(3172),o=i(20102),n=i(92604),l=i(13867),a=i(70586),u=i(95330),p=i(19153),d=i(59266),c=i(17386);const h=n.Z.getLogger("esri.renderers.support.DictionaryLoader"),y={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class b{constructor(e,t,i){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new l.Z(100),this.url=e,this.config=t,this.fieldMap=i}getSymbolFields(){return this._symbolFields}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,u.D_)(e))return this._dictionaryPromise=null,null}const r={};if(this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t];if(i&&null!=e.attributes[i]){const s=""+e.attributes[i];r[t]=s}else r[t]=""}const o=i(r,t);if(!o||"string"!=typeof o)return null;const n=(0,p.hP)(o).toString(),l=this._symbolCache.get(n);if(l)return l.catch((()=>{this._symbolCache.pop(n)})),l;const d=o.split(";"),c=[],h=[];for(const e of d)if(e)if(e.includes("po:")){const t=e.substr(3).split("|");if(3===t.length){const e=t[0],i=t[1];let r=t[2];if("DashTemplate"===i)r=r.split(" ").map((e=>Number(e)));else if("Color"===i){const e=new s.Z(r).toRgba();r=[e[0],e[1],e[2],255*e[3]]}else r=Number(r);h.push({primitiveName:e,propertyName:i,value:r})}}else if(e.includes("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){c.push(t);break}}else this._itemNames.has(e)&&c.push(e);const y=!(0,a.pC)(e.geometry)||!e.geometry.hasZ&&"point"===e.geometry.type,b=this._cimPartsToCIMSymbol(c,h,y,t);return this._symbolCache.put(n,b,1),b}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void h.error("no valid URL!");const t=(0,a.pC)(e)?e.abortOptions:null,i=(0,r.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...t}),[{data:s}]=await Promise.all([i,(0,d.LC)()]);if(!s)throw this._dictionaryPromise=null,new o.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const n=s.expression,l=s.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+s.cimRefTemplateUrl,this._itemNames=new Set(s.itemsNames),this._symbolFields=l.symbol;const u={};if(this.config){const e=this.config;for(const t in e)u[t]=e[t]}if(l.configuration)for(const e of l.configuration)u.hasOwnProperty(e.name)||(u[e.name]=e.value);const p=[];if((0,a.pC)(e)&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t],s=e.fields.filter((e=>e.name===i));s.length>0&&p.push({...s[0],name:t})}return this._dictionaryPromise=(0,d.pp)(n,(0,a.pC)(e)?e.spatialReference:null,p,u).then((e=>{const t={scale:0};return(i,s)=>{const r=e.repurposeFeature({geometry:null,attributes:i});return t.scale=(0,a.pC)(s)?s.scale:void 0,e.evaluate({$feature:r,$view:t})}})).catch((e=>(h.error("Creating dictinoary expression failed:",e),null))),this._dictionaryPromise}async _cimPartsToCIMSymbol(e,t,i,s){const r=new Array(e.length);for(let t=0;t<e.length;t++)r[t]=this._getSymbolPart(e[t],s);const o=await Promise.all(r),n=this.fieldMap;for(const e of o)m(e,n);return new c.Z({data:this._combineSymbolParts(o,t,i)})}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const i=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),s=(0,r.default)(i,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,s);try{return(await s).data}catch(t){throw this._ongoingRequests.delete(e),t}}_combineSymbolParts(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.symbolLayers=[];for(const t of e){const e=t;s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=y),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}}function m(e,t){if(!e)return;const i=e.symbolLayers;if(!i)return;let s=i.length;for(;s--;){const e=i[s];e&&!1!==e.enable&&"CIMVectorMarker"===e.type&&f(e,t)}}function f(e,t){const i=e.markerGraphics;if(i)for(const e of i){if(!e)continue;const i=e.symbol;if(i)switch(i.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":m(i,t);break;case"CIMTextSymbol":i.fieldMap=t}}}},91423:(e,t,i)=>{i.d(t,{a:()=>l});var s=i(20941),r=i(63213),o=i(32400);const n=(0,r.d)({types:o.A});function l(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(i&&i.messages&&i.messages.push(new s.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:i})),null):n(e,t,i):null}},32400:(e,t,i)=>{i.d(t,{A:()=>d,o:()=>c});var s=i(16050),r=i(12501),o=i(28756),n=i(92271),l=i(18746),a=i(5499),u=i(84382),p=i(30687);const d={key:"type",base:a.Z,typeMap:{heatmap:n.Z,simple:u.Z,"unique-value":p.Z,"class-breaks":s.Z,"dot-density":o.Z,dictionary:r.Z,"pie-chart":l.Z},errorContext:"renderer"},c={key:"type",base:a.Z,typeMap:{simple:u.Z,"unique-value":p.Z,"class-breaks":s.Z},errorContext:"renderer"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fetchFeatureService:()=>m,fromUrl:()=>y});var t=r(3172),n=r(20102),l=r(70586),s=r(17452),i=r(66677),o=r(87344);async function y(e){const a=e.properties?.customParameters,t=await async function(e,a){let r=(0,i.Qc)(e);if((0,l.Wi)(r)&&(r=await c(e,a)),(0,l.Wi)(r))throw new n.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:t,sublayer:s}=r;let y;const u={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(t){case"MapServer":y=null!=s?"FeatureLayer":async function(e,a){return(await b(e,{customParameters:a})).tileInfo}(e,a).then((e=>e?"TileLayer":"MapImageLayer"));break;case"ImageServer":y=b(e,{customParameters:a}).then((e=>{const a=e.tileInfo&&e.tileInfo.format;return e.tileInfo?"LERC"!==a?.toUpperCase()||e.cacheType&&"elevation"!==e.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer"}));break;case"SceneServer":y=b(r.url.path,{customParameters:a}).then((e=>{if(e){if("Voxel"===e?.layerType)return"VoxelLayer";if(e?.layers&&Array.isArray(e.layers)&&e.layers.length>0){const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},r=e.layers[0]?.layerType;if(null!=a[r])return a[r]}}return"SceneLayer"}));break;default:y=u[t]}const d="FeatureServer"===t,f={parsedUrl:r,Constructor:null,layerOrTableId:d?s:null,sublayerIds:null,tableIds:null},h=await y;if({FeatureLayer:!0,SceneLayer:!0}[h]&&null==s){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await m(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await b(e,{customParameters:r});const l=t?.layers,s=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:s?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?s:[]}}(e,t,a);d&&(f.sublayerInfos=r.layerInfos,f.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(f.sublayerIds=r.layerIds,f.tableIds=r.tableIds):d&&(f.layerOrTableId=r.layerIds[0]??r.tableIds[0],f.sourceJSON=r.layerInfos[0]??r.tableInfos[0])}return f.Constructor=await async function(e){return(0,o.T[e])()}(h),f}(e.url,a),s={...e.properties,url:e.url};if(!t.sublayerIds)return null!=t.layerOrTableId&&(s.layerId=t.layerOrTableId,s.sourceJSON=t.sourceJSON),new t.Constructor(s);const y=new(0,(await Promise.all([r.e(6968),r.e(5787)]).then(r.bind(r,89348))).default)({title:t.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return(0,l.pC)(t)&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,u(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,u(a.tableInfos,r));e.tables.add(n)}))}(y,t,s),y}function u(e,a){return e?e.find((e=>e.id===a)):null}async function c(e,a){const r=await b(e,{customParameters:a});let t=null,n=null;const o=r.type;if("Feature Layer"===o||"Table"===o?(t="FeatureServer",n=r.id):"indexedVector"===o?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":d(r)?(t="SceneServer",n=r.id):r.hasOwnProperty("layers")&&d(r.layers?.[0])&&(t="SceneServer"),!t)return null;const y=null!=n?(0,i.DR)(e):null;return{title:(0,l.pC)(y)&&r.name||(0,s.vt)(e),serverType:t,sublayer:n,url:{path:(0,l.pC)(y)?y.serviceUrl:(0,s.mN)(e).path}}}function d(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function f(e){return!e.type||"Feature Layer"===e.type}async function m(e,a){let r=await b(e,a);r=r||{},r.layers=r.layers?.filter(f)||[];const t={serviceJSON:r};if(r.currentVersion<10.5)return t;const n=await b(e+"/layers",a);return t.layersJSON={layers:n?.layers?.filter(f)||[],tables:n?.tables||[]},t}async function b(e,a){return(await(0,t.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6968),r.e(2723)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4133),r.e(2485)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4910)]).then(r.bind(r,45425))).default,ElevationLayer:async()=>(await Promise.all([r.e(1938),r.e(9932)]).then(r.bind(r,49932))).default,FeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4477)]).then(r.bind(r,3121))).default,GroupLayer:async()=>(await Promise.all([r.e(6968),r.e(9348)]).then(r.bind(r,89348))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(3723)]).then(r.bind(r,3723))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(7202)]).then(r.bind(r,23477))).default,ImageryLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(8326),r.e(176),r.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fetchFeatureService:()=>m,fromUrl:()=>y});var t=r(3172),n=r(20102),l=r(70586),s=r(17452),i=r(66677),o=r(87344);async function y(e){const a=e.properties?.customParameters,t=await async function(e,a){let r=(0,i.Qc)(e);if((0,l.Wi)(r)&&(r=await c(e,a)),(0,l.Wi)(r))throw new n.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:t,sublayer:s}=r;let y;const u={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(t){case"MapServer":y=null!=s?"FeatureLayer":async function(e,a){return(await b(e,{customParameters:a})).tileInfo}(e,a).then((e=>e?"TileLayer":"MapImageLayer"));break;case"ImageServer":y=b(e,{customParameters:a}).then((e=>{const a=e.tileInfo&&e.tileInfo.format;return e.tileInfo?"LERC"!==a?.toUpperCase()||e.cacheType&&"elevation"!==e.cacheType.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer"}));break;case"SceneServer":y=b(r.url.path,{customParameters:a}).then((e=>{if(e){if("Voxel"===e?.layerType)return"VoxelLayer";if(e?.layers&&Array.isArray(e.layers)&&e.layers.length>0){const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"},r=e.layers[0]?.layerType;if(null!=a[r])return a[r]}}return"SceneLayer"}));break;default:y=u[t]}const d="FeatureServer"===t,f={parsedUrl:r,Constructor:null,layerOrTableId:d?s:null,sublayerIds:null,tableIds:null},h=await y;if({FeatureLayer:!0,SceneLayer:!0}[h]&&null==s){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await m(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await b(e,{customParameters:r});const l=t?.layers,s=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:s?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?s:[]}}(e,t,a);d&&(f.sublayerInfos=r.layerInfos,f.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(f.sublayerIds=r.layerIds,f.tableIds=r.tableIds):d&&(f.layerOrTableId=r.layerIds[0]??r.tableIds[0],f.sourceJSON=r.layerInfos[0]??r.tableInfos[0])}return f.Constructor=await async function(e){return(0,o.T[e])()}(h),f}(e.url,a),s={...e.properties,url:e.url};if(!t.sublayerIds)return null!=t.layerOrTableId&&(s.layerId=t.layerOrTableId,s.sourceJSON=t.sourceJSON),new t.Constructor(s);const y=new(0,(await Promise.all([r.e(6968),r.e(5787)]).then(r.bind(r,89348))).default)({title:t.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return(0,l.pC)(t)&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,u(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,u(a.tableInfos,r));e.tables.add(n)}))}(y,t,s),y}function u(e,a){return e?e.find((e=>e.id===a)):null}async function c(e,a){const r=await b(e,{customParameters:a});let t=null,n=null;const o=r.type;if("Feature Layer"===o||"Table"===o?(t="FeatureServer",n=r.id):"indexedVector"===o?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":d(r)?(t="SceneServer",n=r.id):r.hasOwnProperty("layers")&&d(r.layers?.[0])&&(t="SceneServer"),!t)return null;const y=null!=n?(0,i.DR)(e):null;return{title:(0,l.pC)(y)&&r.name||(0,s.vt)(e),serverType:t,sublayer:n,url:{path:(0,l.pC)(y)?y.serviceUrl:(0,s.mN)(e).path}}}function d(e){return e?.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}function f(e){return!e.type||"Feature Layer"===e.type}async function m(e,a){let r=await b(e,a);r=r||{},r.layers=r.layers?.filter(f)||[];const t={serviceJSON:r};if(r.currentVersion<10.5)return t;const n=await b(e+"/layers",a);return t.layersJSON={layers:n?.layers?.filter(f)||[],tables:n?.tables||[]},t}async function b(e,a){return(await(0,t.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6968),r.e(2723)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4133),r.e(2485)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4910)]).then(r.bind(r,45425))).default,ElevationLayer:async()=>(await Promise.all([r.e(1938),r.e(9932)]).then(r.bind(r,49932))).default,FeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4477)]).then(r.bind(r,3121))).default,GroupLayer:async()=>(await Promise.all([r.e(6968),r.e(9348)]).then(r.bind(r,89348))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(3723)]).then(r.bind(r,3723))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(7202)]).then(r.bind(r,23477))).default,ImageryLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(8326),r.e(176),r.e(3191),r.e(7175)]).then(r.bind(r,47175))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1938),r.e(176),r.e(3191),r.e(2398),r.e(3301)]).then(r.bind(r,69971))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(4547),r.e(4133),r.e(8297)]).then(r.bind(r,4717))).default,KMLLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(739)]).then(r.bind(r,42756))).default,MapImageLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(7832),r.e(3128),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(3750)]).then(r.bind(r,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(2855)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(6237)]).then(r.bind(r,66237))).default,PointCloudLayer:async()=>(await Promise.all([r.e(1773),r.e(4133),r.e(1197)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1423),r.e(8157)]).then(r.bind(r,50445))).default,SceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(7832),r.e(8326),r.e(3121),r.e(4133),r.e(6135)]).then(r.bind(r,49254))).default,StreamLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(6105),r.e(1408)]).then(r.bind(r,88387))).default,TileLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(3471),r.e(1423),r.e(7832),r.e(1938),r.e(3128),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(6968),r.e(1938),r.e(4325),r.e(1785),r.e(4756)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(4133),r.e(2320)]).then(r.bind(r,31017))).default,WebTileLayer:async()=>(await Promise.all([r.e(6968),r.e(6199)]).then(r.bind(r,16199))).default,WFSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(4547),r.e(3471),r.e(1423),r.e(6105),r.e(3974)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(5906)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(5853)]).then(r.bind(r,55853))).default}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3471],{38171:(e,t,i)=>{i.d(t,{Z:()=>b});var s=i(43697),r=i(66577),l=i(51773),a=i(78223),n=i(2368),o=i(96674),u=i(70586),p=i(99001),c=i(5600),d=(i(67676),i(80442),i(75215),i(52011)),h=i(33955);function y(e){if(!(0,u.pC)(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=class extends((0,n.J)(o.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))}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&&(0,u.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&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:(0,u.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,u.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,u.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"attributes"===e&&(r.attributeName=s),this.layer.graphicChanged(r)}};(0,s._)([(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,s._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,s._)([(0,c.Cb)({value:null,types:r.qM,json:{read:h.im}})],m.prototype,"geometry",null),(0,s._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,s._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,s._)([(0,c.Cb)({type:l.Z})],m.prototype,"popupTemplate",void 0),(0,s._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,s._)([(0,c.Cb)({value:null,types:a.LB})],m.prototype,"symbol",null),(0,s._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=(0,s._)([(0,d.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const b=m},44422:(e,t,i)=>{i.d(t,{B:()=>r});var s=i(5600);function r(e,t){const i=t?{...t,source:e}:e;return(0,s.Cb)({aliasOf:i})}},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},16050:(e,t,i)=>{i.d(t,{Z:()=>E});var s,r=i(43697),l=i(78223),a=i(35454),n=i(22974),o=i(92604),u=i(70586),p=i(5600),c=i(90578),d=i(36030),h=i(71715),y=i(52011),m=i(30556),b=i(75215),f=i(35671),v=i(5499),g=i(12571),w=i(32984),V=i(9833),_=i(66338),S=i(59266);const x=o.Z.getLogger("esri.renderers.ClassBreaksRenderer"),C="percent-of-total",z="field",I=new a.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:z}),j=(0,b.se)(w.Z);let F=s=class extends((0,g.W)(v.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 w.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?(x.error(".field: field must be a string value"),null):(0,b.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?z:i&&C)||null,t&&i&&x.warn("warning: both normalizationField and normalizationTotal are set!")):e!==z&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new w.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):j((0,n.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&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&x.warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,S.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void x.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&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))){const e=await(0,S.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,n.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.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}=(0,u.Pt)(t,{});let a=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;const n=(0,u.Wg)(l).arcadeUtils;if(!a){const e=n.createSyntaxTree(this.valueExpression);a=n.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=this.valueExpression;const o=n.executeFunction(a,n.createExecContext(e,n.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._getBreakIndexfromInfos(o)}_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(i[this.normalizationField]);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==C||isNaN(e)){if(s===z&&!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,p.Cb)(V.K)],F.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,p.Cb)({type:[w.Z]})],F.prototype,"classBreakInfos",void 0),(0,r._)([(0,h.r)("classBreakInfos")],F.prototype,"readClassBreakInfos",null),(0,r._)([(0,m.c)("classBreakInfos")],F.prototype,"writeClassBreakInfos",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],F.prototype,"defaultLabel",void 0),(0,r._)([(0,p.Cb)(V.G)],F.prototype,"defaultSymbol",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],F.prototype,"field",void 0),(0,r._)([(0,c.p)("field")],F.prototype,"castField",null),(0,r._)([(0,p.Cb)({type:Boolean})],F.prototype,"isMaxInclusive",void 0),(0,r._)([(0,p.Cb)({type:_.I,json:{write:!0}})],F.prototype,"legendOptions",void 0),(0,r._)([(0,p.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],F.prototype,"minValue",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],F.prototype,"normalizationField",void 0),(0,r._)([(0,p.Cb)({type:Number,cast:e=>(0,b.q9)(e),json:{write:!0}})],F.prototype,"normalizationTotal",void 0),(0,r._)([(0,p.Cb)({type:I.apiValues,value:null,json:{type:I.jsonValues,read:I.read,write:I.write}})],F.prototype,"normalizationType",null),(0,r._)([(0,d.J)({classBreaks:"class-breaks"})],F.prototype,"type",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],F.prototype,"valueExpression",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],F.prototype,"valueExpressionTitle",void 0),F=s=(0,r._)([(0,y.j)("esri.renderers.ClassBreaksRenderer")],F);const E=F},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),r=i(35454),l=i(96674),a=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=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,a.Cb)({type:o.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,a.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,n.j)("esri.renderers.Renderer")],p);const c=p},30687:(e,t,i)=>{i.d(t,{Z:()=>O});var s,r=i(43697),l=i(78223),a=i(20102),n=i(22974),o=i(92604),u=i(70586),p=i(78286),c=i(5600),d=i(90578),h=i(36030),y=i(71715),m=i(52011),b=i(30556),f=i(22862),v=i(75215),g=i(35671),w=i(65587),V=i(5499),_=i(12571),S=i(9833),x=i(66338),C=i(44262),z=i(59266),I=i(25929),j=i(27391),F=i(59390);const E=o.Z.getLogger("esri.renderers.UniqueValueRenderer"),T=(0,v.se)(C.Z);let k=s=class extends((0,_.W)(V.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this.type="unique-value",this.backgroundFillSymbol=null,this.field=null,this.field2=null,this.field3=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.fieldDelimiter=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",[])}get _cache(){return{compiledFunc:null}}castField(e){return null==e||"function"==typeof e?e:(0,v.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new a.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):E.error(".field: cannot write field to JSON since it's not a string value")}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}readPortal(e,t,i){return i.portal||w.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,I.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,I.t)(e.styleUrl,s))}set uniqueValueInfos(e){this.styleOrigin?E.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void E.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?T(e):new C.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos.push(i),this._valueInfoMap[i.value]=i}removeUniqueValueInfo(e){if(this.styleOrigin)E.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let t=0;t<this.uniqueValueInfos.length;t++)if(this.uniqueValueInfos[t].value===e+""){delete this._valueInfoMap[e],this.uniqueValueInfos.splice(t,1);break}}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,z.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void E.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&&((0,u.Wi)(i)||(0,u.Wi)(i.arcade))){const e=await(0,z.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(){return`${JSON.stringify(this.backgroundFillSymbol)}.${JSON.stringify(this.defaultSymbol)}.${this.uniqueValueInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new s({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),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);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),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,g.io)(e,t,this.valueExpression)];(0,g.AB)(e,t,this.field),(0,g.AB)(e,t,this.field2),(0,g.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,j.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 F.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 C.Z({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateValueInfoMap(){this._valueInfoMap={},this.uniqueValueInfos.forEach((e=>this._valueInfoMap[e.value+""]=e))}_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}=(0,u.Pt)(t,{});let a=this._cache.compiledFunc;const n=(0,u.Wg)(l).arcadeUtils;if(!a){const e=n.createSyntaxTree(this.valueExpression);a=n.createFunction(e),this._cache.compiledFunc=a}const o=n.executeFunction(a,n.createExecContext(e,n.getViewInfo({viewingMode:i,scale:s,spatialReference:r})));return this._valueInfoMap[o+""]}_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 s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||w.Z.getDefault());const r=i.populateFromStyle();return r.catch((t=>{E.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),r}static fromStyleUrl(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const r=i.populateFromStyle();return r.catch((t=>{E.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),r}};(0,r._)([(0,c.Cb)({readOnly:!0})],k.prototype,"_cache",null),(0,r._)([(0,h.J)({uniqueValue:"unique-value"})],k.prototype,"type",void 0),(0,r._)([(0,c.Cb)(S.K)],k.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,c.Cb)({json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],k.prototype,"field",void 0),(0,r._)([(0,d.p)("field")],k.prototype,"castField",null),(0,r._)([(0,b.c)("field")],k.prototype,"writeField",null),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],k.prototype,"field2",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],k.prototype,"field3",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],k.prototype,"valueExpression",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],k.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,c.Cb)({type:x.I,json:{write:!0}})],k.prototype,"legendOptions",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],k.prototype,"defaultLabel",void 0),(0,r._)([(0,c.Cb)((0,p.RH)({...S.G},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],k.prototype,"defaultSymbol",null),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],k.prototype,"fieldDelimiter",void 0),(0,r._)([(0,c.Cb)({type:w.Z,readOnly:!0})],k.prototype,"portal",void 0),(0,r._)([(0,y.r)("portal",["styleName"])],k.prototype,"readPortal",null),(0,r._)([(0,c.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],k.prototype,"styleOrigin",void 0),(0,r._)([(0,y.r)("styleOrigin",["styleName","styleUrl"])],k.prototype,"readStyleOrigin",null),(0,r._)([(0,b.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],k.prototype,"writeStyleOrigin",null),(0,r._)([(0,c.Cb)({type:[C.Z],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],k.prototype,"uniqueValueInfos",null),k=s=(0,r._)([(0,m.j)("esri.renderers.UniqueValueRenderer")],k);const O=k},12571:(e,t,i)=>{i.d(t,{W:()=>B});var s,r=i(43697),l=i(5600),a=(i(67676),i(80442),i(75215)),n=i(71715),o=i(52011),u=i(30556),p=i(35671),c=i(77997),d=i(21849);let h=s=class extends c.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 s({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,r._)([(0,l.Cb)({readOnly:!0})],h.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],h.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,r._)([(0,l.Cb)({type:[d.Z],json:{write:!0}})],h.prototype,"stops",null),h=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],h);const y=h;var m,b=i(96674),f=i(65242);let v=m=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,f.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,f.a)(e)}clone(){return new m({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{type:a.z8,write:{target:"transparency"}}})],v.prototype,"opacity",void 0),(0,r._)([(0,n.r)("opacity",["transparency"])],v.prototype,"readOpacity",null),(0,r._)([(0,u.c)("opacity")],v.prototype,"writeOpacity",null),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],v.prototype,"value",void 0),v=m=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],v);const g=v;var w;let V=w=class extends c.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 w({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,r._)([(0,l.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,r._)([(0,l.Cb)({type:[g],json:{write:!0}})],V.prototype,"stops",null),V=w=(0,r._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const _=V;var S=i(89513),x=i(27922),C=i(15923),z=i(35454),I=i(92604),j=i(20941);const F=I.Z.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),E={color:y,size:x.Z,opacity:_,rotation:S.Z},T=new z.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),k=/^\[([^\]]+)\]$/i;let O=class extends C.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(k),a=l&&l[1];if(a&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:a})),e)return e.map((e=>{const t=T.read(e.type),s=E[t];s||(F.warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new j.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,r._)([(0,l.Cb)()],O.prototype,"visualVariables",null),O=(0,r._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],O);const q=O,D={base:c.Z,key:"type",typeMap:{opacity:_,color:y,rotation:S.Z,size:x.Z}},B=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new q}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,p.AB)(e,t,s.field),s.normalizationField&&(0,p.AB)(e,t,s.normalizationField),s.valueExpression&&await(0,p.io)(e,t,s.valueExpression))}};return(0,r._)([(0,l.Cb)({types:[D],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,r._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,r._)([(0,u.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,r._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},69237:(e,t,i)=>{i.d(t,{Z:()=>k});var s,r=i(43697),l=i(35454),a=i(96674),n=i(22974),o=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let d=s=class extends a.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,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,o.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 a.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,n.d9)(this.classBreakInfos)})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,o.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,b=i(90578);const f=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"],V=[...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"])],_=["seconds","minutes","hours","days","months","years"];let S=m=class extends a.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,o.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,b.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,b.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,o.Cb)({type:f.apiValues,value:null,json:{type:f.jsonValues,read:f.read,write:f.write}})],S.prototype,"style",null),(0,r._)([(0,o.Cb)({type:V,value:null,json:{type:V,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,o.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:_,json:{type:_,write:!0}})],S.prototype,"units",void 0),S=m=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,z=i(94593);const I=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),j=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"}),F=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),E=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let T=C=class extends a.wq{constructor(e){super(e),this.colorRamp=null,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){if(e)return(0,z.i)(e)}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,n.d9)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:(0,n.d9)(this.field1),field2:(0,n.d9)(this.field2),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,o.Cb)({type:I.apiValues,value:null,json:{type:I.jsonValues,read:I.read,write:I.write,origins:{"web-document":{default:"manual",type:I.jsonValues,read:I.read,write:I.write}}}})],T.prototype,"classificationMethod",null),(0,r._)([(0,o.Cb)({types:z.V,json:{write:!0}})],T.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],T.prototype,"readColorRamp",null),(0,r._)([(0,o.Cb)({type:[String],value:null,json:{write:!0}})],T.prototype,"fields",null),(0,r._)([(0,o.Cb)({type:y,value:null,json:{write:!0}})],T.prototype,"field1",null),(0,r._)([(0,o.Cb)({type:y,value:null,json:{write:!0}})],T.prototype,"field2",null),(0,r._)([(0,o.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],T.prototype,"flowTheme",null),(0,r._)([(0,o.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],T.prototype,"focus",null),(0,r._)([(0,o.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],T.prototype,"numClasses",null),(0,r._)([(0,o.Cb)({type:E,json:{type:E,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],T.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"statistics",null),(0,r._)([(0,o.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],T.prototype,"standardDeviationInterval",null),(0,r._)([(0,o.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-scene":{type:F.jsonValues,write:{writer:F.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],T.prototype,"type",null),(0,r._)([(0,o.Cb)({type:[x],json:{write:!0}})],T.prototype,"visualVariables",void 0),(0,r._)([(0,o.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}}}})],T.prototype,"univariateSymbolStyle",null),(0,r._)([(0,o.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],T.prototype,"univariateTheme",null),T=C=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],T);const k=T},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),a=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=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,a.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,a.Cb)(o.G)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,n.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>o});var s,r=i(43697),l=i(96674),a=i(5600),n=(i(67676),i(80442),i(75215),i(52011));let o=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=s=(0,r._)([(0,n.j)("esri.renderers.support.LegendOptions")],o)},44262:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(96674),a=i(5600),n=(i(67676),i(80442),i(90578)),o=i(52011),u=i(9833);let p=s=class extends l.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}castValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}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,a.Cb)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r._)([(0,a.Cb)(u.G)],p.prototype,"symbol",void 0),(0,r._)([(0,a.Cb)({json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}})],p.prototype,"value",void 0),(0,r._)([(0,n.p)("value")],p.prototype,"castValue",null),p=s=(0,r._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],p);const c=p},9833:(e,t,i)=>{i.d(t,{G:()=>o,K:()=>u});var s=i(78223),r=i(63213),l=i(21878),a=i(89164),n=i(86114);const o={types:s.QT,json:{write:{writer:l.cW},origins:{"web-scene":{types:s.f_,write:{writer:l.cW},read:{reader:(0,r.d)({types:s.f_})}}}}},u={types:{base:a.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:l.cW},origins:{"web-scene":{type:n.Z,write:{writer:l.cW}}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(20102),a=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=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,a.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,a.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,o.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},27922:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(20102),a=i(35454),n=i(92604),o=i(62357),u=i(5600),p=(i(67676),i(80442),i(90578)),c=i(71715),d=i(52011),h=i(30556),y=i(77997),m=i(96674);i(75215);let b=s=class extends m.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,u.Cb)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:o.t_,json:{write:!0}})],b.prototype,"size",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],b.prototype,"value",void 0),b=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeStop")],b);const f=b;var v,g=i(58439);let w=v=class extends g.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new v({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],w.prototype,"customValues",void 0),w=v=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],w);const V=w;var _,S=i(51706),x=i(28101);const C=n.Z.getLogger("esri.renderers.visualVariables.SizeVariable"),z=new a.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),I=new a.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 j(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,o.t_)(e):"size"===e.type?(0,S.iY)(e)?e:(delete(e={...e}).type,new E(e)):void 0}function F(e,t,i){if("object"!=typeof e)return e;const s=new E;return s.read(e,i),s}let E=_=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:x.B3.test(this.valueExpression)}}set expression(e){C.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,S.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,S.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,S.PS)(this)}set maxDataValue(e){e&&this.stops&&(C.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(C.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return j(e)}readMaxSize(e,t,i){return F(e,0,i)}set minDataValue(e){e&&this.stops&&(C.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(C.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return j(e)}readMinSize(e,t,i){return F(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||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&&(C.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,S.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?I.read(e):null}clone(){return new _({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,S.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,S.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===S.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===S.hL.Stops){const e=this.stops,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})],E.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:z.apiValues,json:{type:z.jsonValues,origins:{"web-map":{read:!1}},read:z.read,write:z.write}})],E.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],E.prototype,"expression",null),(0,r._)([(0,u.Cb)()],E.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],E.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:V,json:{write:!0}})],E.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],E.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],E.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],E.prototype,"castMaxSize",null),(0,r._)([(0,c.r)("maxSize")],E.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],E.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],E.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],E.prototype,"castMinSize",null),(0,r._)([(0,c.r)("minSize")],E.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],E.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],E.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],E.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[f],value:null,json:{write:!0}})],E.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],E.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],E.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],E.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],E.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],E.prototype,"valueExpression",void 0),(0,r._)([(0,c.r)("valueExpression",["valueExpression","expression"])],E.prototype,"readValueExpression",null),(0,r._)([(0,h.c)("web-scene","valueExpression")],E.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],E.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:I.apiValues,json:{write:I.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],E.prototype,"valueUnit",void 0),(0,r._)([(0,c.r)("valueUnit")],E.prototype,"readValueUnit",null),E=_=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],E);const T=E},77997:(e,t,i)=>{i.d(t,{Z:()=>m});var s=i(43697),r=i(35454),l=i(96674),a=i(92604),n=i(5600),o=(i(67676),i(80442),i(90578)),u=i(52011),p=i(75215),c=i(58439);const d=a.Z.getLogger("esri.renderers.visualVariables.VisualVariable"),h=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let y=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?(d.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,n.Cb)()],y.prototype,"index",void 0),(0,s._)([(0,n.Cb)({type:h.apiValues,readOnly:!0,json:{read:h.read,write:h.write}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,o.p)("field")],y.prototype,"castField",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],y.prototype,"arcadeRequired",null),(0,s._)([(0,n.Cb)({type:c.Z,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],y);const m=y},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(22303),a=i(96674),n=i(5600),o=(i(67676),i(80442),i(75215)),u=i(52011),p=i(30556);let c=s=class extends a.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,n.Cb)({type:l.Z,json:{type:[o.z8],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,n.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},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),a=(i(67676),i(80442),i(75215),i(52011)),n=i(66338);let o=s=class extends n.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}})],o.prototype,"showLegend",void 0),o=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);const u=o},28101:(e,t,i)=>{i.d(t,{B3:()=>c,PR:()=>b,cM:()=>d}),i(22303);var s=i(38171),r=i(74085),l=i(92604),a=i(70586),n=i(99282),o=i(51706);const u=l.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),p=(new s.Z,Math.PI),c=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function d(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 u.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,p=o&&o.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=0;if(!c&&!d)return y;if(d){if((0,a.Wi)(i)||(0,a.Wi)(i.arcade))return void u.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(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,l)}else p&&(y=p[c]||0);return y="number"!=typeof y||isNaN(y)?null:l+n*y,y}function h(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 u.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+(y(t.minSize,i,s)||t.minDataValue)}(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),y(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=y(t.minSize,i,s),n=y(t.maxSize,i,s),o=(0,a.pC)(s)?s.shape:void 0;if(e<=t.minDataValue)return l;if(e>=t.maxDataValue)return n;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?p*(l/2)**2:l*l,i=t+r*((e?p*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/p):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const r=(0,a.pC)(s)?s.shape:void 0,l=e/t.minDataValue,n=y(t.minSize,i,s),o=y(t.maxSize,i,s);let u=null;return u="circle"===r?2*Math.sqrt(l*(n/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(l*n**2):l*n,m(u,n,o)}(e,t,i,s);case o.hL.Stops:return function(e,t,i,s,r){const[l,a,n]=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===a)return y(t.stops[l].size,i,s);{const e=y(t.stops[l].size,i,s);return e+(y(t.stops[a].size,i,s)-e)*n}}(e,t,i,s,r);case o.hL.RealWorldSize:return function(e,t,i,s){const r=((0,a.pC)(s)&&s.resolution?s.resolution:1)*n.a[t.valueUnit],l=y(t.minSize,i,s),o=y(t.maxSize,i,s),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/p)/r:"radius"===u||"distance"===u?2*e/r:e/r,m(c,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:p}=e.cache;let c=e.cache.compiledFunc;if(p){const t=(0,a.pC)(i)?i.scale:void 0,s=(0,a.pC)(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((0,a.Wi)(i)||(0,a.Wi)(i.arcade))return void u.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(!c){const t=s.createSyntaxTree(e.valueExpression);c=s.createFunction(t),e.cache.compiledFunc=c}n=s.executeFunction(c,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 d=l?parseFloat(l[e.normalizationField]):null;return(0,o.qh)(d)&&0!==d?n/d:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function y(e,t,i){return null==e?null:(0,o.iY)(e)?h(e,t,i):(0,o.qh)(e)?e:null}function m(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function b(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":h(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}},21878:(e,t,i)=>{i.d(t,{im:()=>x,cW:()=>w,vX:()=>V});var s=i(78223),r=i(20102),l=i(70586),a=i(87223),n=i(59390),o=i(42143),u=i(4095),p=i(98587),c=i(77987),d=i(37898),h=i(20256),y=i(86114),m=i(78724),b=i(20825);const f={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function v(e,t=f){if(!e)return{symbol:null};const{retainId:i=f.retainId,ignoreDrivers:l=f.ignoreDrivers,hasLabelingContext:a=f.hasLabelingContext,retainCIM:v=f.retainCIM}=t;let g;if((0,s.dU)(e)||e instanceof n.Z)g=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})};g=v?e.clone():o.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)g=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)g=o.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)g=o.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)g=y.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof m.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})};g=a?b.Z.fromTextSymbol(e):o.Z.fromTextSymbol(e)}if(i&&"cim"!==g.type&&(g.id=e.id),l&&(0,s.dU)(g))for(let e=0;e<g.symbolLayers.length;++e)g.symbolLayers.getItemAt(e)._ignoreDrivers=!0;return{symbol:g}}const g=["building-scene","integrated-mesh","point-cloud","scene"];function w(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!1});(0,l.pC)(r)&&(t[i]=r)}function V(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!0});(0,l.pC)(r)&&(t[i]=r)}function _(e){return e instanceof a.Z||e instanceof n.Z}function S(e,t,i){if((0,l.Wi)(e))return null;const{context:s,isLabelSymbol:a}=i,n=s?.origin,o=s?.messages;if("web-scene"===n&&!_(e)){const i=v(e,{retainCIM:!0,hasLabelingContext:a});return(0,l.pC)(i.symbol)?i.symbol.write(t,s):(o?.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"===n||"portal-item"===n&&!g.includes(s?.layer?.type))&&_(e)?(o?.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)}}}]);
|