@arcgis/core 5.0.0-next.67 → 5.0.0-next.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +9 -6
  2. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.js +1 -1
  3. package/arcade/arcadeAsyncRuntime.js +1 -1
  4. package/arcade/arcadeCompiler.js +1 -1
  5. package/arcade/arcadeRuntime.js +1 -1
  6. package/arcade/batchExec.js +1 -1
  7. package/arcade/compilerUtils.js +1 -1
  8. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  9. package/arcade/geometry/unitConversion.js +1 -1
  10. package/arcade/treeAnalysis.js +1 -1
  11. package/arcade.js +1 -1
  12. package/assets/esri/core/workers/RemoteClient.js +1 -1
  13. package/assets/esri/core/workers/chunks/{251eb6e00f99a816d55c.js → 0326314947734b8e640a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/04176244b0a3539c9681.js +1 -0
  15. package/assets/esri/core/workers/chunks/{942fad4ec96295672ce8.js → 10e474d664b20adcd917.js} +1 -1
  16. package/assets/esri/core/workers/chunks/12f9a55253084a910b2e.js +1 -0
  17. package/assets/esri/core/workers/chunks/{0629087bd5bb8048493e.js → 14dedd80fb797303f91f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{81d89107ff82604a3ea0.js → 1b445981fbc8373f4dd8.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{6ba3c2b9f699d94d62b8.js → 1ec1a1997b5577619040.js} +1 -1
  20. package/assets/esri/core/workers/chunks/2085084324cd5a81783f.js +1 -0
  21. package/assets/esri/core/workers/chunks/2c2c0f66cffc521df736.js +1 -0
  22. package/assets/esri/core/workers/chunks/2dd347aa2a061d536e69.js +1 -0
  23. package/assets/esri/core/workers/chunks/2dfa7abf2d39fa5a3874.js +1 -0
  24. package/assets/esri/core/workers/chunks/322085d63719da6e443c.js +1 -0
  25. package/assets/esri/core/workers/chunks/{76086517591d0eb35156.js → 34a2e0462eb05986cdd1.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{a6dcd13c792b6538ac50.js → 35593a9790818b689455.js} +1 -1
  27. package/assets/esri/core/workers/chunks/3a04153ca9d8e4f01185.js +1 -0
  28. package/assets/esri/core/workers/chunks/{4e9a8fce55cad841c731.js → 3b25f5d9c8f78bb6e011.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3e7ea06b342e33bc48a5.js +1 -0
  30. package/assets/esri/core/workers/chunks/3ed317900f0edf635508.js +1 -0
  31. package/assets/esri/core/workers/chunks/401ce5cb98fa14c1a725.js +1 -0
  32. package/assets/esri/core/workers/chunks/4319b89cfa02894a8cae.js +1 -0
  33. package/assets/esri/core/workers/chunks/4a060147d25929680ec8.js +1 -0
  34. package/assets/esri/core/workers/chunks/{7bed14d9bcd7fc5e2eec.js → 4bcd74951477e8977ba1.js} +1 -1
  35. package/assets/esri/core/workers/chunks/4d0eaeb4cd6cd55e25fd.js +1 -0
  36. package/assets/esri/core/workers/chunks/{687d2b761dc5b5cf0c31.js → 4d4d71d24c1a9cb342b8.js} +1 -1
  37. package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +1 -0
  38. package/assets/esri/core/workers/chunks/50f03813fba4b752ca9f.js +1 -0
  39. package/assets/esri/core/workers/chunks/{abc236e99b52be1c83b9.js → 52a14266fe239b95c5ce.js} +1 -1
  40. package/assets/esri/core/workers/chunks/53b5c77832df7df4d4e3.js +1 -0
  41. package/assets/esri/core/workers/chunks/{34178ace79e8dea3567d.js → 562cddaf63985e53ee6e.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{6599cc702a46f81a5634.js → 5dd5be91038df8902dc4.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{49a1b7f700b8a42de817.js → 60c7f896f2246a8aa6d7.js} +19 -19
  44. package/assets/esri/core/workers/chunks/60f363ee2add089e8f0b.js +1 -0
  45. package/assets/esri/core/workers/chunks/61801bb8c7be8fe77086.js +1 -0
  46. package/assets/esri/core/workers/chunks/68074a484d7f9bc713c0.js +1 -0
  47. package/assets/esri/core/workers/chunks/6acfa51b81e6f4255118.js +1 -0
  48. package/assets/esri/core/workers/chunks/{3fe7be535affae31de7e.js → 6b85a8776ec2beff63cb.js} +1 -1
  49. package/assets/esri/core/workers/chunks/6df484faf54e90a6cc77.js +1 -0
  50. package/assets/esri/core/workers/chunks/6ea6ad894ac634aa4391.js +1 -0
  51. package/assets/esri/core/workers/chunks/6f8098f9fe233833245a.js +1 -0
  52. package/assets/esri/core/workers/chunks/75fd2ef1236a9364ca7f.js +1 -0
  53. package/assets/esri/core/workers/chunks/7be9bbae23895d1cfa92.js +1 -0
  54. package/assets/esri/core/workers/chunks/7ea48661f1087d06aa41.js +1 -0
  55. package/assets/esri/core/workers/chunks/{47e5149765beee46f208.js → 7ee68f67f9cc48a328f0.js} +1 -1
  56. package/assets/esri/core/workers/chunks/866477acdf03b8a40bc9.js +1 -0
  57. package/assets/esri/core/workers/chunks/8e83c133b201b9b61e70.js +1 -0
  58. package/assets/esri/core/workers/chunks/9086a4933d3d3d9ffa72.js +1 -0
  59. package/assets/esri/core/workers/chunks/94174d40de39dbe7d0bf.js +1 -0
  60. package/assets/esri/core/workers/chunks/98f4b44eca91c42ca08e.js +1 -0
  61. package/assets/esri/core/workers/chunks/{dd99b77a7c0a052507bb.js → 9d88b4ba8e511da64583.js} +3 -3
  62. package/assets/esri/core/workers/chunks/a808be466812db51813d.js +1 -0
  63. package/assets/esri/core/workers/chunks/{6b4a24248182245167ca.js → a931515a2569713e743b.js} +1 -1
  64. package/assets/esri/core/workers/chunks/a95e28ade258b144cbb5.js +1 -0
  65. package/assets/esri/core/workers/chunks/adc68e2c6d2698a52bfe.js +1 -0
  66. package/assets/esri/core/workers/chunks/b2a1e5e9182b643909eb.js +316 -0
  67. package/assets/esri/core/workers/chunks/bb4574a87ca21e719f0d.js +1 -0
  68. package/assets/esri/core/workers/chunks/{07639f406b71bb49ffd6.js → bdbb5b33f0f49661bf6d.js} +1 -1
  69. package/assets/esri/core/workers/chunks/c042269586921e337be9.js +1 -0
  70. package/assets/esri/core/workers/chunks/c623918e289a09905cd1.js +1 -0
  71. package/assets/esri/core/workers/chunks/c7391b0b5a9c916a53f7.js +1 -0
  72. package/assets/esri/core/workers/chunks/{43d28c6509c21b8917a8.js → ca7523c14d81c470e92e.js} +1 -1
  73. package/assets/esri/core/workers/chunks/cd2708fb7636b3ace229.js +1 -0
  74. package/assets/esri/core/workers/chunks/d445e9399fe4ca3d2a50.js +1 -0
  75. package/assets/esri/core/workers/chunks/d7683a95775c9f401a7e.js +1 -0
  76. package/assets/esri/core/workers/chunks/{9d6945cda99d14af83ac.js → d7d9656b990ce8be2152.js} +1 -1
  77. package/assets/esri/core/workers/chunks/df4a0af329ce94a47a7b.js +1 -0
  78. package/assets/esri/core/workers/chunks/e10d6e511921394474ca.js +1 -0
  79. package/assets/esri/core/workers/chunks/e4b6aa8f67c2bd285020.js +1 -0
  80. package/assets/esri/core/workers/chunks/e6ca02f98f855024f74b.js +1 -0
  81. package/assets/esri/core/workers/chunks/{892157696e8f9e38c472.js → e6e837e43b9348050832.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{d3325ed8d224e2350db7.js → e8a3ad00936f2ccaf362.js} +1 -1
  83. package/assets/esri/core/workers/chunks/ef7063ee790d2d64d4b2.js +1 -0
  84. package/assets/esri/core/workers/chunks/{b65fcfde62d49de1fa54.js → ef977be20a647aeded0a.js} +1 -1
  85. package/assets/esri/core/workers/chunks/efb631371b6bb3f043bb.js +1 -0
  86. package/assets/esri/core/workers/chunks/{0f5693541111fcae0c2f.js → f0914715e90e43466f8c.js} +1 -1
  87. package/assets/esri/core/workers/chunks/f95e488d2b86e320624f.js +1 -0
  88. package/assets/esri/core/workers/chunks/{bfc063d4431bfa162160.js → fd09f38fb4d99bf34988.js} +1 -1
  89. package/chunks/boundedPlane.js +1 -1
  90. package/config.js +1 -1
  91. package/core/accessorSupport/ensureType.js +1 -1
  92. package/core/compilerUtils.js +1 -1
  93. package/core/typedArrayUtil.js +1 -1
  94. package/core/units.js +1 -1
  95. package/core/workers/loaderConfig.js +1 -1
  96. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  97. package/geometry/support/MeshTexture.js +1 -1
  98. package/geometry/support/aaBoundingRect.js +1 -1
  99. package/geometry/support/boundedPlane.js +1 -1
  100. package/geometry/support/heightModelInfoUtils.js +1 -1
  101. package/geometry/support/meshUtils/External.js +1 -1
  102. package/geometry/support/meshUtils/exporters/gltf/imageutils.js +1 -1
  103. package/geometry/support/meshUtils/loadExternal.js +1 -1
  104. package/geometry/support/rotate.js +1 -1
  105. package/interfaces.d.ts +0 -1
  106. package/kernel.js +1 -1
  107. package/layers/BuildingSceneLayer.d.ts +1 -1
  108. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +1 -1
  109. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  110. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  111. package/layers/graphics/dehydratedFeatureComparison.js +1 -1
  112. package/layers/graphics/dehydratedFeatures.js +1 -1
  113. package/layers/graphics/hydratedFeatures.js +1 -1
  114. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  115. package/layers/raster/functions/changeDetectionUtils.js +1 -1
  116. package/layers/raster/functions/customBandIndexUtils.js +1 -1
  117. package/layers/raster/functions/focalStatUtils.js +1 -1
  118. package/layers/raster/functions/pixelTransformUtils.js +1 -1
  119. package/layers/save/featureLayerUtils.js +1 -1
  120. package/layers/support/ElevationSampler.js +1 -1
  121. package/layers/support/SubtypeSublayer.js +1 -1
  122. package/layers/support/domains.js +1 -1
  123. package/networks/support/TopologyValidationJobInfo.js +1 -1
  124. package/networks/support/TraceJobInfo.js +1 -1
  125. package/package.json +2 -2
  126. package/renderers/support/RasterSymbolizer.js +1 -1
  127. package/renderers/support/rendererConversion.js +1 -1
  128. package/renderers/visualVariables/support/visualVariableUtils.js +1 -1
  129. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  130. package/rest/support/JobInfo.js +1 -1
  131. package/rest/support/ServiceAreaParameters.js +1 -1
  132. package/smartMapping/heuristics/sizeRange.js +1 -1
  133. package/smartMapping/renderers/support/utils.js +1 -1
  134. package/smartMapping/statistics/support/statsWorker.js +1 -1
  135. package/smartMapping/statistics/support/utils.js +1 -1
  136. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  137. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  138. package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
  139. package/smartMapping/support/utils.js +1 -1
  140. package/support/revision.js +1 -1
  141. package/symbols/support/ElevationInfo.d.ts +2 -2
  142. package/symbols/support/IconSymbol3DLayerResource.d.ts +1 -1
  143. package/symbols/support/defaults.js +1 -1
  144. package/symbols/support/defaults3D.js +1 -1
  145. package/symbols/support/previewSymbol3D.js +1 -1
  146. package/symbols/support/symbolLayerUtils3D.js +1 -1
  147. package/symbols/support/symbolUtils.js +1 -1
  148. package/symbols/support/utils.js +1 -1
  149. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  150. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +16 -11
  151. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  152. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  153. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  154. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  155. package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
  156. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  157. package/views/2d/input/handlers/DoubleTapDragZoom.js +1 -1
  158. package/views/2d/input/handlers/KeyZoom.js +1 -1
  159. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  160. package/views/2d/layers/TileLayerView2D.js +1 -1
  161. package/views/3d/analysis/AreaMeasurement/support/utils.js +1 -1
  162. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  163. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
  164. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +16 -11
  165. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  166. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  167. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  168. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  169. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  170. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  171. package/views/3d/environment/CloudsParameters.js +1 -1
  172. package/views/3d/environment/CloudsRenderer.js +1 -1
  173. package/views/3d/environment/SceneViewEnvironment.js +1 -1
  174. package/views/3d/glTF/internal/Resource.js +1 -1
  175. package/views/3d/glTF/internal/fillDefaults.js +1 -1
  176. package/views/3d/interactive/Manipulator3D.js +1 -1
  177. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  178. package/views/3d/interactive/editingTools/isSupportedObjectUtils.js +1 -1
  179. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  180. package/views/3d/interactive/editingTools/transform/isSupportedGraphic.js +1 -1
  181. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  182. package/views/3d/layers/I3SMeshView3D.js +1 -1
  183. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  184. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  185. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  186. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  187. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  188. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  189. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  190. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  191. package/views/3d/layers/graphics/lineUtils.js +1 -1
  192. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  193. package/views/3d/layers/graphics/pipeline/symbolization/primitiveObjectUtils.js +1 -1
  194. package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
  195. package/views/3d/layers/i3s/BuildingFilterUtil.js +1 -1
  196. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  197. package/views/3d/layers/i3s/I3SNode.js +1 -1
  198. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  199. package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
  200. package/views/3d/layers/i3s/SphereCone.js +5 -0
  201. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  202. package/views/3d/layers/support/edgeUtils.js +1 -1
  203. package/views/3d/layers/support/featureReference.js +1 -1
  204. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  205. package/views/3d/layers/support/patternUtils.js +1 -1
  206. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  207. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  208. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  209. package/views/3d/support/buffer/glUtil.js +1 -1
  210. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  211. package/views/3d/support/viewpointUtils.js +1 -1
  212. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  213. package/views/3d/webgl/RenderNode.js +1 -1
  214. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +8 -8
  215. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +3 -3
  216. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  217. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +2 -2
  218. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
  219. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +6 -6
  220. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  221. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +5 -5
  222. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +3 -3
  223. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
  224. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  225. package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
  226. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  227. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  228. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +4 -4
  229. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +8 -8
  230. package/views/VideoView.js +1 -1
  231. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  232. package/views/analysis/ElevationProfile/ElevationProfileIndicatorPointVisualization.js +5 -0
  233. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
  234. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  235. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  236. package/views/analysis/ElevationProfile/constants.js +1 -1
  237. package/views/draw/Draw.js +1 -1
  238. package/views/input/ViewEvents.js +1 -1
  239. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  240. package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
  241. package/views/interactive/snapping/featureSources/snappingCandidateElevationFilter.js +1 -1
  242. package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
  243. package/views/support/PromiseQueue.js +1 -1
  244. package/views/support/screenUtils.js +1 -1
  245. package/views/support/screenshotUtils.js +1 -1
  246. package/views/webgl/FramebufferObject.js +1 -1
  247. package/views/webgl/Uniform.js +1 -1
  248. package/views/webgl/Util.js +1 -1
  249. package/webscene/Slide.d.ts +2 -2
  250. package/webscene/spec-certification/api.js +1 -1
  251. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  252. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  253. package/widgets/BatchAttributeForm.js +1 -1
  254. package/widgets/Editor/workflowUtils.js +1 -1
  255. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  256. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  257. package/widgets/FeatureForm.js +1 -1
  258. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  259. package/widgets/Sketch/support/OperationHandle.js +1 -1
  260. package/widgets/TimeSlider.js +1 -1
  261. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  262. package/widgets/support/dateUtils.js +1 -1
  263. package/assets/esri/core/workers/chunks/055fdc5134d54174444d.js +0 -316
  264. package/assets/esri/core/workers/chunks/058fb2cd6387acfd458c.js +0 -1
  265. package/assets/esri/core/workers/chunks/08359ae020238a565955.js +0 -1
  266. package/assets/esri/core/workers/chunks/0ae018098906d6a88904.js +0 -1
  267. package/assets/esri/core/workers/chunks/0cd3acfbf9ee991bdab4.js +0 -1
  268. package/assets/esri/core/workers/chunks/0dc3a04ce717b7ddd957.js +0 -1
  269. package/assets/esri/core/workers/chunks/0e5cd0cf6ab7cb37d723.js +0 -1
  270. package/assets/esri/core/workers/chunks/0ee407b8db5c07a00d82.js +0 -1
  271. package/assets/esri/core/workers/chunks/10373885604655f673df.js +0 -1
  272. package/assets/esri/core/workers/chunks/119822a646834c1cebc0.js +0 -1
  273. package/assets/esri/core/workers/chunks/13d61d34e55c80e4ecdf.js +0 -1
  274. package/assets/esri/core/workers/chunks/17dea03fc4eb414f0022.js +0 -1
  275. package/assets/esri/core/workers/chunks/1967239713b58dccfd81.js +0 -1
  276. package/assets/esri/core/workers/chunks/1c350a2c4014146dbcd9.js +0 -1
  277. package/assets/esri/core/workers/chunks/2266a8f2c2ec37c19bb4.js +0 -1
  278. package/assets/esri/core/workers/chunks/226acd251ad7d7ee3b57.js +0 -1
  279. package/assets/esri/core/workers/chunks/22b07c54a5fcc27771b0.js +0 -1
  280. package/assets/esri/core/workers/chunks/22ca80f491e070b2a5e7.js +0 -1
  281. package/assets/esri/core/workers/chunks/2402d305a77fef4694a0.js +0 -1
  282. package/assets/esri/core/workers/chunks/27f096c434f049b8df01.js +0 -1
  283. package/assets/esri/core/workers/chunks/3371935a4fd6346d3a17.js +0 -1
  284. package/assets/esri/core/workers/chunks/3c4f8597f602779174f1.js +0 -1
  285. package/assets/esri/core/workers/chunks/3da53c017f9c5d2d778a.js +0 -1
  286. package/assets/esri/core/workers/chunks/4773a358832f87963766.js +0 -1
  287. package/assets/esri/core/workers/chunks/492515860198f38dd698.js +0 -1
  288. package/assets/esri/core/workers/chunks/4f33a2ecb154a2c2449c.js +0 -1
  289. package/assets/esri/core/workers/chunks/4f6f181ee83b4d484518.js +0 -1
  290. package/assets/esri/core/workers/chunks/52726458f590e726d52c.js +0 -1
  291. package/assets/esri/core/workers/chunks/536c492fdda30f2f1288.js +0 -1
  292. package/assets/esri/core/workers/chunks/600e2e6b51e2fb9c598c.js +0 -1
  293. package/assets/esri/core/workers/chunks/63b8cd7d5cafbaeed894.js +0 -1
  294. package/assets/esri/core/workers/chunks/6cb44cd319cb6c2539c8.js +0 -1
  295. package/assets/esri/core/workers/chunks/7f4fa2f2e85863d3cfb9.js +0 -1
  296. package/assets/esri/core/workers/chunks/8f4c480c418eba299c2b.js +0 -1
  297. package/assets/esri/core/workers/chunks/a3836f6a93924ee4816e.js +0 -1
  298. package/assets/esri/core/workers/chunks/ab520fd1ae917daf07d8.js +0 -1
  299. package/assets/esri/core/workers/chunks/acc7ff44bfcb5c195114.js +0 -1
  300. package/assets/esri/core/workers/chunks/b25a131c04092c3ab75d.js +0 -1
  301. package/assets/esri/core/workers/chunks/b7960ab9a9da7f88184c.js +0 -1
  302. package/assets/esri/core/workers/chunks/b9909264cfea68d5f2a1.js +0 -1
  303. package/assets/esri/core/workers/chunks/bb08359610a41e304b55.js +0 -1
  304. package/assets/esri/core/workers/chunks/bfbbcaa1fb04f17fc869.js +0 -1
  305. package/assets/esri/core/workers/chunks/d30cfc5fa302cc08d862.js +0 -1
  306. package/assets/esri/core/workers/chunks/d75adfd4acb3c92accc9.js +0 -1
  307. package/assets/esri/core/workers/chunks/da99fd0d3106dd357743.js +0 -1
  308. package/assets/esri/core/workers/chunks/de71db3b0fb947b13c97.js +0 -1
  309. package/assets/esri/core/workers/chunks/dfbbead4c24d13682891.js +0 -1
  310. package/assets/esri/core/workers/chunks/e4ba850e8344ac2c5fc0.js +0 -1
  311. package/assets/esri/core/workers/chunks/e705d041f6c1632bfbcc.js +0 -1
  312. package/assets/esri/core/workers/chunks/f9370830051865a3435b.js +0 -1
  313. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +0 -5
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>f,jV:()=>l,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function f(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7330),n.e(168),n.e(148)]).then(n.bind(n,50148));const l=await i.id.getCredential(e,s);return l?.token}},3367:(e,t,n)=>{n.d(t,{A:()=>w,B:()=>S,P:()=>g,g:()=>b,r:()=>A});var r=n(48938),i=n(66395),s=n(85935),o=n(78878),a=n(49186),l=n(53966),u=n(91869),c=n(20655),f=n(45475),p=n(67090),d=n(62791),h=n(14942),y=n(54218);class g{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const n=t.url+t.translateUtility;try{return e.requestSource??="arcade",{success:!0,results:(await(0,f.T)(n,e,{authMode:"no-prompt"})).map(e=>e.toJSON())}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof a.A)&&this._debugLog(`TranslateText error: ${e.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class m{constructor(e,t,n){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=n,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter(e=>!this._normalizedContents.has(e.text)).map(e=>e.text));if(this._requests.length+t.size>this._maxContentsLength)return null;let n=0;for(const e of t)n+=e.length;if((n+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:t,text:n}of e)(0,u.tE)(this._normalizedContents,n,()=>[]).push({batchIdx:r,key:t});return this._requests.push(e),this._contentsTotalSize+=n,r}async send(e){const t=[],n=[];let r=0;for(const[e,i]of this._normalizedContents)t.push(new p.A({key:String(r++),text:e})),n.push(i);const i=new d.A(this._parameters);i.contents=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,()=>s);const o=Array.from(this._requests,()=>({success:!0,results:[]}));for(const e of s.results){const t=Number(e.key);for(const r of n[t])o[r.batchIdx].results.push({...e,key:r.key})}return o}}function b(e){const t=[...new Set(e.to)].sort(),n=e.from??null,r=e.portalUrl,i=e.translator,s=e.apiKey??null;return JSON.stringify([t,n,r,i,s])}async function v(e,t,n){try{return(await e.yieldFor(n))[t]}catch{return{success:!1}}}class S{constructor(e,t,{maxTotalContentSize:n=5e4,maxContentsLength:r=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=n,this._maxContentsLength=r}create(e){return{translate:async t=>{const n=b(t),{contents:r,to:i,from:s,translator:o,portalUrl:a,apiKey:l}=t;if(null==i)return{success:!1};if(null==r||r.every(e=>0===e.text.length))return{success:!1};const u=this._openBatches.get(n);if(null!=u){const t=u.data.tryAdd(r);if(null!=t)return await v(e,t,u);u.send()}const c=new m({to:i,from:s,translator:o,portalUrl:a,apiKey:l},this._maxTotalContentSize,this._maxContentsLength),f=c.tryAdd(r);if(null!=f){const t=this._executor.openBatch(c,{open:e=>{this._openBatches.set(n,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(n)===e&&this._openBatches.delete(n)}});return await v(e,f,t)}return await this._service.translate(t)}}}}function A(e){"async"===e.mode&&(e.functions[(0,r.X)("TranslateText")]=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,n)=>{if((0,o.B)(n,2,3,e,t),!(0,y.Kg)(n[0])&&!(0,y.cy)(n[0])&&!(0,o.j)(n[0]))throw new s.D$(e,"InvalidParameter",t);const r=(0,o.N)(n[0]);if(!(0,y.Kg)(n[1])&&!(0,y.cy)(n[1])&&!(0,o.j)(n[1]))throw new s.D$(e,"InvalidParameter",t);const a=(0,o.N)(n[1]);let l=null;if(n.length>=3){if(!(0,y.Kg)(n[2]))throw new s.D$(e,"InvalidParameter",t);l=n[2]}const u=r.map((e,t)=>new p.A({key:String(t),text:e})),f=e.services?.portal??c.A.getDefault(),m=new d.A({to:a,contents:u,from:l,portalUrl:f.restUrl.replace(/\/sharing\/rest$/,"")}),v=new Map;let S=null;if(null!=e.lrucache){const t=e.lrucache;S??=b(m),m.contents=m.contents?.filter(e=>{const n=t.getCachedTranslation(S,e.text);return null==n||(v.set(e.key,{...n,key:e.key,text:e.text}),!1)})}if(m.contents?.length){const t=e.services?.translation??new g(f,e.console),n=await t.translate(m);if(!n.success)return new i.A({__proto__:null,success:!1});for(const t of n.results){const n=m.contents?.find(e=>e.key===t.key)?.text;if(null==n)throw new s.D$(null,"NeverReach",null);v.set(t.key,t),null!=e.lrucache&&(S??=b(m),e.lrucache.setCachedTranslation(S,n,{detectedLanguage:t.detectedLanguage,translation:t.translation}))}}const A=Array.from(u,t=>{const n=h.A.fromJSON(v.get(t.key));if(null==n)throw new s.D$(null,"NeverReach",null);return n.text=t.text,i.A.convertJsonToArcade(n.toJSON(),e.timeZone??"system",!0)});return new i.A({__proto__:null,success:!0,results:A})})})}const w=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:g,getTranslateParametersKey:b,registerFunctions:A},Symbol.toStringTag,{value:"Module"}))},6800:(e,t,n)=>{n.d(t,{G:()=>l,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){a=e}let a;function l(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.d)(e)?e:(0,i.h)(e)?e.clone():(0,i.j)(e)?e.toArray().map(e=>l(e)):(0,s.cy)(e)?e.map(e=>l(e)):(0,i.k)(e)?a.createFromArcadeFeature(e):(0,i.l)(e)||(0,i.m)(e)?e:(0,i.n)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.o)(e)||e instanceof r.x||(0,i.i)(e),e)}},7320:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},7335:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(7320);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},8631:(e,t,n)=>{n.d(t,{r:()=>p,g:()=>f}),n(44208);var r,i=n(53177),s=n(76357),o=n(31635),a=n(91429),l=n(93223);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const f={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},14607:(e,t,n)=>{n.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=r[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,f,p=r[0].lastIndexOf(",");if(-1!==p){c=r[0].length-p-1;const e=r[0].slice(0,p);p=e.lastIndexOf(","),-1!==p&&(f=e.length-p-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",f&&(c=f,f=void 0)}return o[0]=d.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=p(u,t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(l,t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const l=r[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=f(e),n=p(e.fractional,t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n},!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+p(e.exponent,t=>t?"([eE]"+f({signed:e.eSigned})+")":"")}(n)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function f(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",p(e.signed,e=>e?"[-+]":"",!0)+p(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"},!0)}const p=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return d(r.join("|"),Boolean(n))},d=(e,t)=>"("+(t?"?:":"")+e+")"},14942:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(31635),i=n(25482),s=n(10107),o=n(64108);let a=class extends i.o{constructor(e){super(e),this.text=null,this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],a.prototype,"detectedLanguage",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],a.prototype,"detectedLanguageScore",void 0),(0,r.Cg)([(0,s.MZ)({type:Object,json:{write:!0}})],a.prototype,"translation",void 0),a=(0,r.Cg)([(0,o.$)("esri.rest.support.TranslateResult")],a)},20437:(e,t,n)=>{n.d(t,{A:()=>h});var r,i=n(31635),s=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(8631),c=n(98453),f=n(36005),p=n(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=class extends o.o{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?d.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,f.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,p.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,f.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],h)},24097:(e,t,n)=>{n.d(t,{K:()=>r});const r={type:String,json:{read:{source:"token"},write:{target:"token"}}}},33325:(e,t,n)=>{n.d(t,{$P:()=>c,At:()=>b,JB:()=>S,Lk:()=>f,Qi:()=>v,eB:()=>A,eg:()=>h,f0:()=>d,gO:()=>y,ik:()=>g,ke:()=>l,nE:()=>u,rX:()=>p,yT:()=>m});var r=n(66131),i=n(44729),s=n(15032),o=n(20437),a=n(28097);function l(e){return o.A.fromJSON(e.toJSON())}function u(e){return e.toJSON?e.toJSON():e}function c(e){return e instanceof Date}function f(e){return e instanceof a.c9}function p(e){return e instanceof r.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}const y=1e3,g={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},m={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},b={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function v(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function S(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function A(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}},39357:(e,t,n)=>{n.d(t,{A:()=>a});var r,i=n(31635),s=n(25482),o=n(91429);let a=r=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628:(e,t,n)=>{n.d(t,{A:()=>l});var r,i=n(31635),s=n(91429),o=n(76357),a=n(93223);let l=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},45475:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(11254),i=n(2272),s=n(14942);async function o(e,t,n){const o=t.toJSON();o.contents=JSON.stringify(o.contents),o.token=await(0,i.gf)(t.portalUrl,t.apiKey,{signal:n?.signal,prompt:"no-prompt"!==n?.authMode});const a=(0,i.Dl)(e),l=(0,i.jV)(a.query,{...n,query:o,method:"post",authMode:"anonymous"});return(await(0,r.A)(a.path,l)).data.results.map(e=>s.A.fromJSON(e))}},48526:(e,t,n)=>{n.d(t,{A:()=>h});var r,i=n(31635),s=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),c=n(16930),f=n(90634),p=n(56993),d=n(43937);let h=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,f.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,s.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,s.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new u.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],h.prototype,"points",void 0),(0,i.Cg)([(0,d.K)("points")],h.prototype,"writePoints",null),h=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],h),h.prototype.toJSON.isDefaultToJSON=!0},48938:(e,t,n)=>{n.d(t,{X:()=>i,_:()=>s});var r=n(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new r.D$(null,"InvalidIdentifier",null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1})},53177:(e,t,n)=>{n.d(t,{A:()=>c});var r,i=n(31635),s=n(4718),o=n(91429),a=n(39357),l=n(76357),u=n(93223);let c=class extends l.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},60408:(e,t,n)=>{function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function f(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>s,uW:()=>l})},62791:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),i=n(25482),s=n(10107),o=n(64108),a=n(24097),l=n(67090);let u=class extends i.o{constructor(e){super(e),this.to=null,this.contents=null,this.portalUrl="https://www.arcgis.com",this.translator="esri",this.from=null,this.apiKey=null,this.requestSource=null}};(0,r.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],u.prototype,"to",void 0),(0,r.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"contents",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"portalUrl",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0,default:"esri"}})],u.prototype,"translator",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"from",void 0),(0,r.Cg)([(0,s.MZ)(a.K)],u.prototype,"apiKey",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"x-esri-request-source"}})],u.prototype,"requestSource",void 0),u=(0,r.Cg)([(0,o.$)("esri.rest.support.TranslateParameters")],u)},65864:(e,t,n)=>{n.d(t,{rS:()=>c,xD:()=>p});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function p(e){return e&&f[e]||null}},66395:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(66131),i=n(6800),s=n(85935),o=n(78878),a=n(91075),l=n(54218);function u(e,t,n=!1,r=!1){if(null==e)return null;if((0,l.Et)(e)||(0,l.Lm)(e)||(0,l.Kg)(e)||(0,o.e)(e)||(0,o.f)(e)||(0,o.g)(e))return e;if((0,l.cy)(e)){const i=[];for(const s of e)i.push(u(s,t,n,r));return i}if(r&&(0,o.h)(e))return e;const i=new c;i.immutable=!1;for(const[s,o]of Object.entries(e))void 0!==o&&i.setField(s,u(o,t,n,r));return i.immutable=n,i}class c{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,e instanceof c?this.attributes=e.attributes:null==e?this.attributes=Object.create(null):null!=Object.getPrototypeOf(e)?this.attributes={__proto__:null,...e}:this.attributes=e}static containerEntry(e,t){return new c({__proto__:null,key:e,value:t})}static textFormatting(){const e=new c({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});return e.immutable=!1,e}field(e){const t=e.toLowerCase(),n=this.attributes[e];if(void 0!==n)return n;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$(null,"FieldNotFound",null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$(null,"Immutable",null);if((0,o.i)(t))throw new s.D$(null,"NoFunctionInDictionary",null);const n=e.toLowerCase();if(t instanceof Date&&(t=r.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===n)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}eraseField(e){if(this.immutable)throw new s.D$(null,"Immutable",null);if(e in this.attributes)return void delete this.attributes[e];const t=e.toLowerCase();for(const e in this.attributes)if(e.toLowerCase()===t)return void delete this.attributes[e]}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){let e=[];for(const t in this.attributes)e.push(t);return e=e.sort(),e}values(){return this.keys().map(e=>this.attributes[e])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}static convertObjectToArcadeDictionary(e,t,n=!0,r=!1){const i=new c;i.immutable=!1;for(const s in e){const o=e[s];void 0!==o&&i.setField(s.toString(),u(o,t,n,r))}return i.immutable=n,i}static convertJsonToArcade(e,t,n=!1,r=!1){return u(e,t,n,r)}castAsJson(e=null){const t=Object.create(null);for(let n in this.attributes){const r=this.attributes[n];void 0!==r&&(e?.keyTranslate&&(n=e.keyTranslate(n)),t[n]=(0,o.a)(r,e))}return t}async castDictionaryValueAsJsonAsync(e,t,n,r=null,i){const s=await(0,o.b)(n,r,i);return e[t]=s,s}async castAsJsonAsync(e=null,t=null){const n=Object.create(null),i=[];for(let s in this.attributes){const l=this.attributes[s];t?.keyTranslate&&(s=t.keyTranslate(s)),void 0!==l&&((0,o.d)(l)||l instanceof a.A||l instanceof r.lY?n[s]=(0,o.a)(l,t):i.push(this.castDictionaryValueAsJsonAsync(n,s,l,e,t)))}return i.length>0&&await Promise.all(i),n}deepClone(){const e=new c;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},67090:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(31635),i=n(25482),s=n(10107),o=n(64108);let a=class extends i.o{constructor(e){super(e)}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,r.Cg)([(0,o.$)("esri.rest.support.TranslateContent")],a)},76357:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),i=n(66552),s=n(25482),o=n(91429),a=n(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},78878:(e,t,n)=>{n.d(t,{$:()=>P,A:()=>D,B:()=>ee,C:()=>Ce,D:()=>me,E:()=>xe,F:()=>_e,G:()=>Fe,H:()=>ge,I:()=>O,J:()=>I,K:()=>Ke,L:()=>te,M:()=>J,N:()=>Oe,O:()=>j,P:()=>ye,Q:()=>se,R:()=>F,S:()=>ne,T:()=>je,U:()=>Ee,V:()=>Ge,W:()=>Ve,X:()=>Le,Y:()=>be,Z:()=>K,_:()=>V,a:()=>Pe,a0:()=>ze,a1:()=>fe,a2:()=>Ie,a3:()=>Me,a4:()=>Ae,a5:()=>ve,a6:()=>Se,b:()=>Je,c:()=>ue,d:()=>R,e:()=>H,f:()=>W,g:()=>X,h:()=>G,i:()=>k,j:()=>U,k:()=>E,l:()=>Y,m:()=>z,n:()=>q,o:()=>B,p:()=>$e,q:()=>L,r:()=>he,s:()=>ce,t:()=>pe,u:()=>ae,v:()=>Z,w:()=>le,x:()=>De,y:()=>$,z:()=>M});var r=n(92602),i=n(70333),s=n(66131),o=n(99719),a=n(85935),l=n(92400),u=n(93818),c=n(7335),f=n(7320),p=n(33325),d=n(14607),h=n(44729),y=n(15032),g=n(5443),m=n(91075),b=n(48526),v=n(86738),S=n(39829),A=n(82799),w=n(16930),T=n(95108),C=n(65864),N=n(73444),x=n(54218),_=n(28097);class F{constructor(e){this.value=e}}class O{constructor(e){this.value=e}}const Z={type:"VOID"},M=Symbol("BREAK"),D=Symbol("CONTINUE");function P(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function k(e){return e instanceof l.fF}function J(e){return e instanceof o.x}function R(e){return!!((0,x.Kg)(e)||(0,x.Et)(e)||H(e)||W(e)||X(e)||(0,x.Lm)(e)||null===e||e===Z)}function I(e,t){return void 0===e?t:e}function j(e){return null==e?"":(0,x.cy)(e)||U(e)?"Array":H(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,x.Kg)(e)?"String":(0,x.Lm)(e)?"Boolean":(0,x.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":B(e)?"KnowledgeGraph":e instanceof o.x?"Module":E(e)?"Feature":e instanceof v.A?"Point":e instanceof S.A?"Polygon":e instanceof A.A?"Polyline":e instanceof b.A?"Multipoint":e instanceof g.A?"Extent":k(e)?"Function":z(e)?"FeatureSet":Y(e)?"FeatureSetCollection":K(e)?"Voxel":V(e)?"Pixel":e===Z?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function L(e){return e===Z}function G(e){return e instanceof m.A}function E(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function K(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function V(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function z(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function q(e){return"esri.arcade.Dictionary"===e?.declaredClass}function $(e){return q(e)||E(e)||K(e)||V(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function B(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function U(e){return e instanceof u.A}function H(e){return e instanceof s.lY}function W(e){return e instanceof h.n}function X(e){return e instanceof y.k}function Q(e){return null!=e&&"object"==typeof e}function ee(e,t,n,r,i){if(e.length<t||e.length>n)throw new a.D$(r,"WrongNumberOfParameters",i)}function te(e){return null==e||L(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function re(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=P(t,"‰",""),t=P(t,"¤",""),(0,d.GP)(e,{pattern:t}))}function ie(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(se(t),{locale:(0,N.JK)(),numberingSystem:"latn"})}function se(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function oe(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function ae(e,t,n){if(null===e){if(null===t||t===Z)return oe(null,null,n);if((0,x.Et)(t))return oe(0,t,n);if((0,x.Kg)(t))return oe(0,he(t),n);if((0,x.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}if(e===Z){if(null===t||t===Z)return oe(null,null,n);if((0,x.Et)(t))return oe(0,t,n);if((0,x.Kg)(t))return oe(0,he(t),n);if((0,x.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,x.Et)(e)){if((0,x.Et)(t))return oe(e,t,n);if((0,x.Lm)(t))return oe(e,he(t),n);if(null===t||t===Z)return oe(e,0,n);if((0,x.Kg)(t))return oe(e,he(t),n);if(H(t))return oe(e,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,x.Kg)(e)){if((0,x.Kg)(t))return oe(ce(e),ce(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if((0,x.Et)(t))return oe(he(e),t,n);if(null===t||t===Z)return oe(he(e),0,n);if((0,x.Lm)(t))return oe(he(e),he(t),n)}else if(H(e)){if(H(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,x.Et)(t))return oe(e.toNumber(),t,n);if((0,x.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,x.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new a.D$(null,"CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if((0,x.Lm)(e)){if((0,x.Lm)(t))return oe(e,t,n);if((0,x.Et)(t))return oe(he(e),he(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if(null===t||t===Z)return oe(he(e),0,n);if((0,x.Kg)(t))return oe(he(e),he(t),n)}else if(W(e)){if(H(t))return oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,x.Et)(t))return oe(e.toNumber(),t,n);if((0,x.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,x.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new a.D$(null,"CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(H(t))throw new a.D$(null,"CannotCompareDateAndTime",null);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,x.Et)(t))return oe(e.toNumber(),t,n);if((0,x.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,x.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))return oe(e.toNumber(),t.toNumber(),n);if(W(t))throw new a.D$(null,"CannotCompareDateAndTime",null)}return!!le(e,t)&&("<="===n||">="===n)}function le(e,t){if(e===t)return!0;if(null===e&&t===Z||null===t&&e===Z)return!0;if(H(e)&&H(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof f.A)return e.equalityTest(t);if(e instanceof v.A&&t instanceof v.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(Q(e)&&Q(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ue(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,x.Lm)(i)||(0,x.Et)(i)||(0,x.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):G(i)?n+=JSON.stringify(r)+":"+pe(i):X(i)||W(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:U(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+pe(i,null,t):H(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function ce(e,t){if((0,x.Kg)(e))return e;if(null===e)return"";if((0,x.Et)(e))return re(e,t);if((0,x.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof m.A)return JSON.stringify(e.toJSON());if((0,x.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():k(e)?"object, Function":e===Z?"":J(e)?"object, Module":""}function fe(e){const t=[];if(e instanceof u.A){for(let n=0;n<e.length();n++)t[n]=he(e.get(n));return t}if(!(0,x.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=he(e[n]);return t}function pe(e,t,n=!1){if((0,x.Kg)(e))return e;if(null===e)return"";if((0,x.Et)(e))return re(e,t);if((0,x.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof m.A)return e instanceof g.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Te(e.spatialReference)+"}":Te(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,x.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):k(e)?"object, Function":e===Z?"":J(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,x.Lm)(e)||(0,x.Kg)(e))return JSON.stringify(e);if((0,x.Et)(e))return e.toString();if(e instanceof m.A)return pe(e,null,t);if(e instanceof u.A)return pe(e,null,t);if(Array.isArray(e))return pe(e,null,t);if(H(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ie(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===Z)return"null";return"null"}function he(e,t){return(0,x.Et)(e)?e:null===e||""===e?0:H(e)||W(e)||X(e)?NaN:(0,x.Lm)(e)?e?1:0:(0,x.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,x.Kg)(e)?(t=P(t,"‰",""),t=P(t,"¤",""),(0,d.qg)(e,{pattern:t})):e===Z?0:Number(e)}function ye(e,t){if(H(e))return e;if((0,x.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,r=(0,s.mT)(t);let i=_.c9.fromISO(e,{zone:r});return i.isValid||n.test(e)&&(e=e.replace(n,"T$1"),i=_.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(n)return s.lY.dateTimeToArcadeDate(n)}return null}function ge(e){return(0,x.Lm)(e)?e:(0,x.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,x.Et)(e)&&0!==e&&!isNaN(e)}function me(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function be(e){if(null===e)return null;if(e instanceof v.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof S.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof A.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof b.A?0===e.points.length?null:e:e instanceof g.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function ve(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(H(t))n=t.toNumber();else if(W(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ce(t);else{if(null==t)return null;if(""===t)return t;n=he(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?ce(t):r.name}function Se(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ce(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function Ae(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(o=r)}if(null===o)throw new a.D$(null,"FieldNotFound",null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&l)r=n.hasField(l)?n.field(l):null;else if(l&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&l&&(r=n.hasField(l)?n.field(l):null))}return null!=r&&c.some(e=>e[u]===r&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=we(o.name,t),s=!0),!0)),s||i||(i=we(e,t)),{field:o,domain:i}}function we(e,t){let n;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n)),n}function Te(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function Ce(e){if(null===e)return null;const t=[];for(const n of e)E(n)?t.push(n.geometry()):t.push(n);return t}function Ne(e,t){if(!(t instanceof v.A))throw new a.D$(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function xe(e,t){if((0,x.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,x.cy)(e)){for(const t of e)Ne(i,t);i.length>0&&(s=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof f.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else{if(!U(e))throw new a.D$(null,"InvalidParameter",null);for(const t of e.toArray())Ne(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,T.$3)(i)||(i=i.slice().reverse()),new S.A({rings:[i],spatialReference:s,hasZ:n,hasM:r}))}return e}function _e(e,t){if((0,x.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,x.cy)(e)){for(const t of e)Ne(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())Ne(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new A.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Fe(e,t){if((0,x.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,x.cy)(e)){for(const t of e)Ne(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())Ne(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new b.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Oe(e,t=!0){if(null==e)return[];if((0,x.cy)(e)){const n=[];for(const r of e){const e=ce(r);(t||""!==e)&&n.push(e)}return n}if(U(e)){const n=[];for(let r=0;r<e.length();r++){const i=ce(e.get(r));(t||""!==i)&&n.push(i)}return n}if(R(e)){const n=ce(e);if(t||""!==n)return[n]}return[]}let Ze=0;function Me(){return Ze++,Ze%100==0?(Ze=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function De(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Pe(e,t=null){return null==e?null:(0,x.Lm)(e)||(0,x.Et)(e)||(0,x.Kg)(e)?e:e instanceof m.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map(e=>Pe(e,t)):Array.isArray(e)?e.map(e=>Pe(e,t)):(0,x.$P)(e)?e:H(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function ke(e,t,n,r,i){const s=await Je(e,t,n);i[r]=s}async function Je(e,t=null,n=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(R(e)||e instanceof m.A||(0,x.$P)(e)||H(e))return Pe(e,n);if(Array.isArray(e)){const r=[],i=[];for(const s of e)null===s||R(s)||s instanceof m.A||(0,x.$P)(s)||H(s)?i.push(Pe(s,n)):(i.push(null),r.push(ke(s,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Re(e){return Ie(e)?e.parent:e}function Ie(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function je(e,t,n){const r=Re(e.fullSchema());return null===r?null:r.fields?Ae(t,r,e,n):null}function Le(e){const t=Re(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function Ge(e,t,n,r){const i=Re(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Ae(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return ve(s,n)}function Ee(e,t,n,r){const i=Re(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return Se(Ae(t,i,e,r),n)}function Ke(e){return e?.timeZone??"system"}function Ve(e){const t=Re(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,p.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===p.yT[t.geometryType]?"":p.yT[t.geometryType],fields:n}}function ze(e,t){const n=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=n),{version:qe,engineVersion:i.rE,timeZone:e,userTimeZone:n,spatialReference:t instanceof w.A?t.toJSON():t,application:r.A.applicationName??"",engine:"web",locale:(0,N.JK)()}}const qe="1.34",$e=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:O,ReturnResult:F,absRound:ne,arcadeVersion:qe,autoCastArrayOfPointsToMultiPoint:Fe,autoCastArrayOfPointsToPolygon:xe,autoCastArrayOfPointsToPolyline:_e,autoCastFeatureToGeometry:Ce,binaryOperator:De,breakResult:M,castAsJson:Pe,castAsJsonAsync:Je,castRecordToText:ue,continueResult:D,defaultExecutingContext:ze,defaultTimeZone:Ke,defaultUndefined:I,equalityTest:le,featureDomainCodeLookup:Ee,featureDomainValueLookup:Ge,featureFullDomain:je,featureSchema:Ve,featureSubtypes:Le,fixNullGeometry:be,fixSpatialReference:me,formatDate:ie,formatNumber:re,getDomain:Ae,getDomainCode:Se,getDomainValue:ve,getType:j,greaterThanLessThan:ae,isArray:x.cy,isBoolean:x.Lm,isDate:H,isDateOnly:W,isDictionary:q,isDictionaryLike:$,isEmpty:te,isFeature:E,isFeatureSet:z,isFeatureSetCollection:Y,isFunctionParameter:k,isGeometry:G,isGraphic:x.DU,isImmutableArray:U,isInteger:x.Fq,isJsDate:x.$P,isKnowledgeGraph:B,isModule:J,isNumber:x.Et,isObject:Q,isPixel:V,isSimpleType:R,isString:x.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Ie,isTime:X,isVoid:L,isVoxel:K,multiReplace:P,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,C.rS)(n)},pcCheck:ee,stableStringify:Te,standardiseDateFormat:se,tick:Me,toBoolean:ge,toDate:ye,toNumber:he,toNumberArray:fe,toString:ce,toStringArray:Oe,toStringExplicit:pe,voidOperation:Z},Symbol.toStringTag,{value:"Module"}))},82799:(e,t,n)=>{n.d(t,{A:()=>h});var r,i=n(31635),s=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),c=n(16930),f=n(90634),p=n(56993),d=n(43937);let h=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,f.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},92400:(e,t,n)=>{n.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(74887);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof a)){const r=new a;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,(t,l,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t);const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then(e=>s(e,n,o)):c})}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},98453:(e,t,n)=>{n.d(t,{m:()=>r});const r=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},99719:(e,t,n)=>{n.d(t,{x:()=>r});class r{}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4724,5953],{1873:(e,t,n)=>{n.d(t,{$y:()=>G,Ak:()=>j,FM:()=>v,G_:()=>y,Rw:()=>O,Vb:()=>g,b3:()=>N,gJ:()=>f,jM:()=>U,lv:()=>V,oZ:()=>F,qg:()=>b,sU:()=>Z,z9:()=>p,zS:()=>z});var r=n(9760),i=n(84892);const a="<Null>",s="equal-interval",o=1,l=5,c=10,u=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,d=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),h=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),m=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function f(e){return null==e||"string"==typeof e&&!e?a:e}function g(e){const t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,r=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!r}function p(e){const{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,r=n.filter(e=>null!=e).sort(),i=r.length,a={count:i,min:r[0],max:r[i-1]};return e.supportsNullCount&&(a.nullcount=n.length-i),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(a.median=b(n,e.percentileParams)),a}function y(e){const{values:t,useSampleStdDev:n,supportsNullCount:r,outStatisticTypes:i}=e;let a=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,o=null,l=null,c=null,u=null,d=0;const h=null==e.minValue?-1/0:e.minValue,m=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=h&&e<=m&&(o=null===o?e:o+e,a=Math.min(a,e),s=Math.max(s,e),d++):"string"==typeof e&&d++;if(d&&null!=o){l=o/d;let e=0;for(const n of t)Number.isFinite(n)&&n>=h&&n<=m&&(e+=(n-l)**2);u=n?d>1?e/(d-1):0:d>0?e/d:0,c=Math.sqrt(u)}else a=null,s=null;const f={avg:l,count:d,max:s,min:a,stddev:c,sum:o,variance:u};return r&&(f.nullcount=t.length-d),!e.percentileParams||i?.include?.length&&!i.include.includes("median")||i?.exclude?.length&&i.exclude.includes("median")||(f.median=b(t,e.percentileParams)),f}function b(e,t){const{fieldType:n,value:r,orderBy:i,isDiscrete:a}=t,s=v(n,"desc"===i,"case-insensitive");if(0===(e=[...e].filter(e=>null!=e).sort((e,t)=>s(e,t))).length)return null;if(r<=0)return e[0];if(r>=1)return e[e.length-1];const o=(e.length-1)*r,l=Math.floor(o),c=l+1,u=o%1,d=e[l],h=e[c];return c>=e.length||a||"string"==typeof d||"string"==typeof h?d:d*(1-u)+h*u}function v(e,t,n="case-sensitive"){if(e){if(d.has(e))return k(t);if(h.has(e))return C(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?w:M}(t);const r=C(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(E(e),E(t))}const r=t?1:-1,i=k(t),a=C(t,"case-sensitive"===n),s=_(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?i(e,t):"string"==typeof e&&"string"==typeof t?a(e,t):s(e,t)??r}const T=(e,t)=>null==e?null==t?0:1:null==t?-1:null,S=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function _(e){return e?T:S}const M=(e,t)=>S(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),w=(e,t)=>T(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),A=(e,t)=>S(e,t)??(e===t?0:e<t?-1:1),x=(e,t)=>T(e,t)??(e===t?0:e<t?1:-1);function C(e,t){if(t)return e?x:A;const n=_(e);return e?(e,t)=>{const r=n(e,t);return null!=r?r:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const r=n(e,t);return null!=r?r:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const I=(e,t)=>T(e,t)??t-e,L=(e,t)=>S(e,t)??e-t;function k(e){return e?I:L}function E(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function F(e,t,n){let r;for(r in e)t?.include?.length&&!t.include.includes(r)||t?.exclude?.length&&t.exclude.includes(r)?delete e[r]:m.includes(r)&&(Number.isFinite(e[r])||(e[r]=null));return n?(["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e):e}function N(e){const t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function D(e){return"coded-value"!==e?.type?[]:e.codedValues.map(e=>e.code)}function V(e,t,n,r){const i=e.count,a=[];if(n&&t){const e=[],n=D(t[0]);for(const i of n)if(t[1]){const n=D(t[1]);for(const a of n)if(t[2]){const n=D(t[2]);for(const t of n)e.push(`${f(i)}${r}${f(a)}${r}${f(t)}`)}else e.push(`${f(i)}${r}${f(a)}`)}else e.push(i);for(const t of e)i.hasOwnProperty(t)||(i[t]={data:t,count:0})}for(const e in i){const t=i[e];a.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:a}}function z(e,t,n,r){let i=null;switch(t){case"log":0!==e&&(i=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(r)&&0!==r&&(i=e/r*100);break;case"field":Number.isFinite(n)&&0!==n&&(i=e/n);break;case"natural-log":e>0&&(i=Math.log(e));break;case"square-root":e>0&&(i=e**.5)}return i}function O(e,t,n){const r=P({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||l});return e=function(e,t,n){const r=t??-1/0,i=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=r&&e<=i)}(e,t.minValue,t.maxValue),(0,i.t)({definition:r,values:e,normalizationTotal:t.normalizationTotal},n)}function P(e){const{breakCount:t,field:n,normalizationField:i,normalizationType:a}=e,l=e.classificationMethod||s,c="standard-deviation"===l?e.standardDeviationInterval||o:void 0,u="defined-interval"===l?e.definedInterval:void 0;return new r.A({breakCount:t,classificationField:n,classificationMethod:l,normalizationField:"field"===a?i:void 0,normalizationType:a,standardDeviationInterval:c,definedInterval:u})}function U(e,t){let n=e.classBreaks;const r=n.length,i=n[0]?.minValue,a=n[r-1]?.maxValue,s="standard-deviation"===t,o=u;return n=n.map(e=>{const t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(s&&t){const e=t.match(o),r=e?.map(e=>+e.trim())??[];2===r.length?(n.minStdDev=r[0],n.maxStdDev=r[1],r[0]<0&&r[1]>0&&(n.hasAvg=!0)):1===r.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=r[0]):t.includes(">")&&(n.minStdDev=r[0],n.maxStdDev=null))}return n}),{minValue:i,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function G(e,t){const n=Z(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};const r=n.intervals,i=n.min??0,a=n.max??0,s=r.map((e,t)=>({minValue:r[t][0],maxValue:r[t][1],count:0}));for(const t of e)if(null!=t&&t>=i&&t<=a){const e=j(r,t);e>-1&&s[e].count++}return{bins:s,minValue:i,maxValue:a,normalizationTotal:t.normalizationTotal}}function Z(e,t,n=!1){const{field:r,classificationMethod:i,standardDeviationInterval:a,definedInterval:s,normalizationType:o,normalizationField:l,normalizationTotal:u,minValue:d,maxValue:h}=t,m=t.numBins||c;let f=null,p=null,b=null;if(i&&"equal-interval"!==i||o){const{classBreaks:t}=O(e,{field:r,normalizationType:o,normalizationField:l,normalizationTotal:u,classificationMethod:i,standardDeviationInterval:a,definedInterval:s,minValue:d,maxValue:h,numClasses:m},null!=d&&null!=h?[d,h]:void 0);f=t[0]?.minValue,p=t[t.length-1]?.maxValue,b=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=d&&null!=h)f=d,p=h;else{const t=y({values:e,minValue:d,maxValue:h,useSampleStdDev:!o,supportsNullCount:g({normalizationType:o,normalizationField:l,minValue:d,maxValue:h})});f=t.min??null,p=t.max??null}b=function(e,t,n){const r=(t-e)/n,i=[];let a,s=e;for(let e=1;e<=n;e++)a=s+r,a=Number(a.toFixed(16)),i.push([s,e===n?t:a]),s=a;return i}(f??0,p??0,m)}if(n&&b.length){const e=b.at(-1)[1];b.push([e,e])}return{min:f,max:p,intervals:b}}function j(e,t){let n=-1;for(let r=e.length-1;r>=0;r--)if(t>=e[r][0]){n=r;break}return n}},3483:(e,t,n)=>{function r(e,t){for(const n of e.values())if(t(n))return!0;return!1}function i(e,t){if(!t)return e;for(const n of t)null!=n&&e.add(n);return e}function a(e,t){return null!=t&&e.add(t),e}function s(e,t){const n=new Set;return i(n,e),i(n,t),n}function o(e,t){const n=new Set;for(const r of t)e.has(r)&&n.add(r);return n}function l(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const n of e)if(!t.has(n))return!1;return!0}function c(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function u(e,t){const n=new Set(e);for(const e of t)n.delete(e);return n}n.d(t,{E$:()=>o,FB:()=>i,KC:()=>s,Yy:()=>l,aI:()=>c,bw:()=>r,iv:()=>u,kb:()=>a})},4560:(e,t,n)=>{n.d(t,{i0:()=>l,fs:()=>o});var r=n(97770),i=n(30524);n(7762),n(84952),n(27865),n(43281);var a=n(98623),s=n(56400);function o(e){return(0,i.vE)(e)||(0,i.zD)(e)||(0,i.Ah)(e)}function l(e,t){const{format:n,fieldFormat:i,timeZoneOptions:o,fieldType:l}=t??{},c=i?(0,r._m)(i):null;let u,d;if(o&&({timeZone:u,timeZoneName:d}=(0,s.hv)(o.layerTimeZone,o.datesInUnknownTimezone,o.viewTimeZone,c||(0,r.J2)(n||"short-date-short-time"),l)),"string"==typeof e&&isNaN(Date.parse("time-only"===l?`1970-01-01T${e}Z`:e)))return e;switch(l){case"date-only":{const t=c||(0,r.J2)(n||"short-date");return"string"==typeof e?(0,r.iS)(e,{...t}):(0,r.Yq)(e,{...t,timeZone:a.n$})}case"time-only":{const t=c||(0,r.J2)(n||"short-time");return"string"==typeof e?(0,r.F8)(e,t):(0,r.Yq)(e,{...t,timeZone:a.n$})}case"timestamp-offset":{if(!u&&"string"==typeof e&&new Date(e).toISOString()!==e)return e;const t=n||c||o?c||(0,r.J2)(n||"short-date-short-time"):void 0,i=t?{...t,timeZone:u,timeZoneName:d}:void 0;return"string"==typeof e?(0,r.Ey)(e,i):(0,r.Yq)(e,i)}default:{const t=n||c||o?c||(0,r.J2)(n||"short-date-short-time"):void 0;return(0,r.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:u,timeZoneName:d}:void 0)}}}new Set(["integer","small-integer"])},7695:(e,t,n)=>{function r(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>r})},7762:(e,t,n)=>{n.d(t,{A:()=>D});var r,i=n(31635),a=n(98291),s=n(4576),o=n(65529),l=n(36563),c=n(4718),u=n(53966),d=n(93687),h=n(76030),m=n(56507),f=n(62788),g=n(10107),p=n(7695),y=n(64108),b=n(95488),v=n(12195);class T{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class S{constructor(e,t,n,r,i){this.target=e,this.added=t,this.removed=n,this.start=r,this.deleteCount=i}}const _=new d.A(()=>new T,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function w(e){return e?e instanceof N?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function A(e){if(e?.length)return e[0]}function x(e,t,n,r){const i=Math.min(e.length-n,t.length-r);let a=0;for(;a<i&&e[n+a]===t[r+a];)a++;return a}function C(e,t,n,r){t&&t.forEach((t,i,a)=>{e.push(t),C(e,n.call(r,t,i,a),n,r)})}const I=new Set,L=new Set,k=new Set,E=new Map;let F=0,N=r=class extends o.nJ{static ofType(e){if(!e)return r;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const r=e.typeMap[n].prototype.declaredClass;t?t+=` | ${r}`:t=r}let n=class extends r{};return(0,i.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,m.dp)(e):(0,m.aq)(e)})],n.prototype,"itemType",void 0),n=(0,i.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],n),E.set(e,n),n}static isCollection(e){return null!=e&&e instanceof r}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:F++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof r?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,w(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){const n="deref"in t?()=>t.deref():()=>t,r=this.on(e,e=>{n()?.call(null,e),r.remove()});return r}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t);return this._splice(n,0,w(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,f.gc)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const n=this._splice(0,this.length),r=n.length;for(let i=0;i<r;i++)e.call(t,n[i],i,n);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);const n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);const n=[];return C(n,this,e,t),new r(n)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);const n=this._items.map(e,t);return new r({items:n})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof r?e.toArray():e,n=this._items,i=[],a=t.length;for(let e=0;e<a;e++){const r=t[e],a=n.indexOf(r);if(a>-1){const r=1+x(t,n,e+1,a+1),s=this._splice(a,r);s&&s.length>0&&i.push.apply(i,s),e+=r-1}}return this._emitAfterChanges(2),i}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const r=(t?2:0)|(n.length?1:0);if(this._emitBeforeChanges(r))return[];const i=this._splice(e,t,n)||[];return this._emitAfterChanges(r),i}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const r=this._items,i=this.itemType;let a,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,h._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=r.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let n=0,i=s.length;n<i;n++)a=s[n],t.reset(a),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(n,1),r.splice(e,0,a),e+=1,n-=1,i-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let n=0;n<t;n++)e.reset(s[n]),this.emit("after-remove",e);_.release(e)}}if(n?.length){if(i){const e=[];for(const t of n){const n=i.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),s=e===this.length;if(t||a){const i=_.acquire();i.target=this,i.cancellable=!0;const o=_.acquire();o.target=this,o.cancellable=!1;for(const l of n)t?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(s?r.push(l):r.splice(e++,0,l),this._length=r.length,a&&(o.reset(l),this.emit("after-add",o)))):(s?r.push(l):r.splice(e++,0,l),this._length=r.length,o.reset(l),this.emit("after-add",o));_.release(o),_.release(i)}else{if(s)for(const e of n)r.push(e);else r.splice(e,0,...n);this._length=r.length}}if((n?.length||s?.length)&&this._notifyChangeEvent(n,s),this.hasEventListener("after-splice")){const r=new S(this,n,s,e,t);this.emit("after-splice",r)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=_.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,_.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;I.clear(),L.clear(),k.clear();for(const{added:t,removed:n}of e){if(t)if(0===k.size&&0===L.size)for(const e of t)I.add(e);else for(const e of t)L.has(e)?(k.add(e),L.delete(e)):k.has(e)||I.add(e);if(n)if(0===k.size&&0===I.size)for(const e of n)L.add(e);else for(const e of n)I.has(e)?I.delete(e):(k.delete(e),L.add(e))}const n=a.A.acquire();I.forEach(e=>{n.push(e)});const r=a.A.acquire();L.forEach(e=>{r.push(e)});const i=this._items,s=t.items,o=a.A.acquire();if(k.forEach(e=>{s.indexOf(e)!==i.indexOf(e)&&o.push(e)}),t.listeners&&(n.length||r.length||o.length)){const e={target:this,added:n,removed:r,moved:o},i=t.listeners.length;for(let n=0;n<i;n++){const r=t.listeners[n];r.removed||r.callback.call(this,e)}}a.A.release(n),a.A.release(r),a.A.release(o)}I.clear(),L.clear(),k.clear()}};(0,i.Cg)([(0,g.MZ)()],N.prototype,"_updating",void 0),(0,i.Cg)([(0,g.MZ)()],N.prototype,"_length",void 0),(0,i.Cg)([(0,g.MZ)()],N.prototype,"length",null),(0,i.Cg)([(0,g.MZ)()],N.prototype,"items",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],N.prototype,"updating",null),N=r=(0,i.Cg)([(0,y.$)("esri.core.Collection")],N);const D=N},9760:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),i=n(66552),a=n(25482),s=n(91429),o=n(93223);const l=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let u=class extends a.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,r.Cg)([(0,o.e)({classBreaksDef:"class-breaks-definition"})],u.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"breakCount",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"classificationField",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:l.read,write:l.write}})],u.prototype,"classificationMethod",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:c.read,write:c.write}})],u.prototype,"normalizationType",void 0),(0,r.Cg)([(0,s.MZ)({value:null,json:{write:!0}})],u.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,s.MZ)({value:null,json:{write:!0}})],u.prototype,"definedInterval",null),u=(0,r.Cg)([(0,s.$K)("esri.rest.support.ClassBreaksDefinition")],u)},10838:(e,t,n)=>{n.d(t,{ao:()=>h,ud:()=>m,xO:()=>f});var r=n(49186),i=n(36563),a=n(74887),s=n(73444);const o={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:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","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:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){if(function(e){return e in o}(e)){const t=o[e];return!0===t?e:t}return null}const c=[],u=new Map;function d(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(d(e),c.unshift(e)),(0,i.hA)(()=>{const t=c.indexOf(e);t>-1&&(c.splice(t,1),d(e))})}async function m(e){const t=(0,s.JK)();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.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return n&&await p.add(n),n}function f(e){const t=(0,s.lR)(e);return t?l(e)??l(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ml)(()=>{u.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}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,a.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},21276:(e,t,n)=>{n.d(t,{H:()=>a,f:()=>i});var r=n(49186);function i(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function a(e){e.forEach(i)}},27865:(e,t,n)=>{n.d(t,{O9:()=>a,dw:()=>s,mj:()=>i});var r=n(59247);function i(e,t){const n=e.length>t.length?e:t;return(e.length>t.length?t:e).every((e,t)=>e.type===n[t].type)}function a(e,t){const n=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let e=i.length;e<n.length;e++)i.push((0,r.sK)(n[e]))}function s(e){const t=e[0];return!!t&&"type"in t}},28735:(e,t,n)=>{n.d(t,{Cv:()=>y,Gh:()=>T,ci:()=>S,je:()=>b,jg:()=>h,tD:()=>v,y7:()=>p});var r=n(4718),i=n(21276),a=n(16930),s=n(79258),o=n(21325);const l=57.29577951308232,c=.017453292519943;function u(e){return e*l}function d(e){return e*c}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/s.$O.radius))}function m(e){return null!=e.wkid||null!=e.wkt}const f=[0,0];function g(e,t,n,r,i){const a=e,s=i;if(s.spatialReference=n,"x"in a&&"x"in s)[s.x,s.y]=t(a.x,a.y,f,r);else if("xmin"in a&&"xmin"in s)[s.xmin,s.ymin]=t(a.xmin,a.ymin,f,r),[s.xmax,s.ymax]=t(a.xmax,a.ymax,f,r);else if("paths"in a&&"paths"in s||"rings"in a&&"rings"in s){const e="paths"in a?a.paths:a.rings,n=[];let i;for(let a=0;a<e.length;a++){const s=e[a];i=[],n.push(i);for(let e=0;e<s.length;e++)i.push(t(s[e][0],s[e][1],[0,0],r)),s[e].length>2&&i[e].push(s[e][2]),s[e].length>3&&i[e].push(s[e][3])}"paths"in s?s.paths=n:s.rings=n}else if("points"in a&&"points"in s){const e=a.points,n=[];for(let i=0;i<e.length;i++)n[i]=t(e[i][0],e[i][1],[0,0],r),e[i].length>2&&n[i].push(e[i][2]),e[i].length>3&&n[i].push(e[i][3]);s.points=n}return i}function p(e,t){const n=e&&(m(e)?e:e.spatialReference),r=t&&(m(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,o.aI)(r,n)||(0,o.K8)(r)&&(0,o.oT)(n)||(0,o.K8)(n)&&(0,o.oT)(r))}function y(e,t){if(null==e)return null;const n=e.spatialReference,i=t&&(m(t)?t:t.spatialReference);return p(n,i)?(0,o.aI)(n,i)?(0,r.o8)(e):(0,o.K8)(i)?g(e,b,a.A.WebMercator,!1,(0,r.o8)(e)):(0,o.oT)(i)?g(e,v,a.A.WGS84,!1,(0,r.o8)(e)):null:null}function b(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=d(t);return n[0]=d(e)*s.$O.radius,n[1]=s.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function v(e,t,n=[0,0],r=!1){if(e===o.Mc[0])n[0]=-180;else if(e===o.Mc[1])n[0]=180;else{const t=u(e/s.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/s.$O.radius))),n}function T(e,t=!1,n=(0,r.o8)(e)){return(0,i.f)(e),(0,i.f)(n),g(e,b,a.A.WebMercator,t,n)}function S(e,t=!1,n=(0,r.o8)(e)){return(0,i.f)(e),(0,i.f)(n),g(e,v,a.A.WGS84,t,n)}},30524:(e,t,n)=>{n.d(t,{Ah:()=>K,Bz:()=>D,CJ:()=>ne,DB:()=>v,Dx:()=>M,JL:()=>he,Kl:()=>de,OG:()=>ee,OH:()=>H,R$:()=>N,R3:()=>R,WA:()=>q,WX:()=>te,Xz:()=>Q,_b:()=>z,_w:()=>T,eX:()=>C,hL:()=>_,hz:()=>w,lD:()=>V,mB:()=>A,nw:()=>me,rS:()=>h,rq:()=>S,sv:()=>y,te:()=>X,uo:()=>ue,vE:()=>J,yM:()=>W,yp:()=>g,zD:()=>Y});var r=n(49186),i=n(93637),a=n(3483),s=n(39516),o=(n(68463),n(69309)),l=n(54218),c=n(43668);const u=/^([0-9_])/,d=/[^a-z0-9_\u0080-\uffff]+/gi;function h(e){return null==e?null:e.trim().replaceAll(d,"_").replace(u,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],f=["field","normalizationField"];function g(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(p(m,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)p(f,e,t)}function p(e,t,n){if(e)for(const r of e){const e=(0,i.wc)(r,t),a=e&&"function"!=typeof e&&n.get(e);a&&(0,i.sM)(r,a.name,t)}}function y(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const n=t.get(e.startField),r=t.get(e.endField);e.startField=n?.name??null,e.endField=r?.name??null}else{const n=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=n?.name??null,e.endTimeField=r?.name??null}}const b=new Set;function v(e,t){return e&&t?(b.clear(),T(b,e,t),Array.from(b).sort()):[]}function T(e,t,n){if(n)if(t?.fields?.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const r of n)S(e,t,r);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)null!=t&&e.add(t)}}function S(e,t,n){if("string"==typeof n)if(t){const r=t.get(n);r&&e.add(r.name)}else e.add(n)}function _(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function M(e,t,n,r){if(!r)return;const i=(0,o.o)(r);if(i)S(e,t,i);else{const{arcadeUtils:i}=await(0,c.l)(),a=i.extractFieldNames(r,n?.partitions??t?.fields?.map(e=>e.name));for(const r of a)S(e,n?.index??t,r)}}async function w(e,t,n){if(n&&"1=1"!==n){const i=await(0,s.GP)(n,t);if(!i.isStandardized)throw new r.A("fieldUtils:collectFilterFields","Where clause is not standardized",{where:n});T(e,t,i.fieldNames)}}function A({displayField:e,fields:t}){return e||(t?.length?function(e){return x(e,"name-or-title")||x(e,"unique-identifier")||x(e,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function x(e,t){for(const n of e)if(n?.valueType&&n.valueType===t)return n.name;return null}function C(e){return e?v(e.fieldsIndex,E(e)):[]}const I=new Set(["oid","global-id","guid"]),L=new Set(["oid","global-id"]),k=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function E(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:n,creatorField:r,editDateField:i,editorField:a}=t;return[n,r,i,a].filter(Boolean)}function F(e){return E(e).map(e=>e.toLowerCase())}function N(e,t){return e.editable&&!I.has(e.type)&&!F(t).includes(e.name?.toLowerCase()??"")}function D(e,t){const n=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&n===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&n===t.globalIdField.toLowerCase()||function(e){const t=new Set;F(e).forEach(e=>t.add(e)),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?v(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));const n=e&&"infoFor3D"in e?e.infoFor3D:void 0;return n&&(Object.values(n.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(n.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(n)||L.has(e.type)||k.some(e=>e.test(n)))}function V(e){const t=e.defaultValue;return void 0!==t&&Z(e,t)?t:e.nullable?null:void 0}function z(e){const t="string"==typeof e?{type:e}:e;return W(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function O(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function P(e){return null===e||O(e)}function U(e){return null===e||Number.isInteger(e)}function G(){return!0}function Z(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":n=e.nullable?U:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?P:O;break;case"string":case"esriFieldTypeString":n=e.nullable?l.CO:l.Kg;break;default:n=G}return 1===arguments.length?n:n(t)}const j=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),B=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),$=(0,a.KC)(j,B);function R(e){return null!=e&&j.has(e.type)}function q(e){return null!=e&&$.has(e.type)}function W(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function J(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function Y(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function K(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function H(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function X(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Q(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function ee(e,t){return null===ne(e,t)}function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ne(e,t){return null==e||e.nullable&&null===t?null:Z(e,t)?q(e)&&!function(e,t){const n="string"==typeof e?re(e):e;if(!n)return!1;const r=n.min,i=n.max;return n.isInteger?Number.isInteger(t)&&t>=r&&t<=i:t>=r&&t<=i}(e.type,Number(t))?"numeric-range-validation-error::out-of-range":null:"type-validation-error::invalid-type"}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return ie;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ae;case"esriFieldTypeBigInteger":case"big-integer":return se;case"esriFieldTypeSingle":case"single":return le;case"esriFieldTypeDouble":case"double":return ce}}const ie={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ae={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},se={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},oe=(2-2**-23)*2**127,le={min:-oe,max:oe,isInteger:!1,rawMin:-oe,rawMax:oe},ce={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function ue(e,t,n){switch(e){case"domain-validation-error::invalid-coded-value":return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"domain-validation-error::value-out-of-range":return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"type-validation-error::invalid-type":return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case"numeric-range-validation-error::out-of-range":{const{min:e,max:r}=re(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}function de(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;const n=new Set(Object.keys(e.attributes));let r=!1;for(const e of t)if(!n.has(e)){r=!0;break}return r}(e,t)}function he(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function me(e){const t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}},34304:(e,t,n)=>{n.d(t,{DF:()=>l,FD:()=>i,Ov:()=>a,ct:()=>c});let r=1e-6;function i(){return r}const a=Math.random,s=Math.PI/180,o=180/Math.PI;function l(e){return e*s}function c(e){return e*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:i,setEpsilon:function(e){r=e},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"}))},39516:(e,t,n)=>{let r;async function i(){return null==r&&(r=Promise.all([n.e(8368),n.e(4800),n.e(5)]).then(n.bind(n,44123)).then(e=>new e.WhereClauseCache(500,500))),r}async function a(e,t){const n=await i(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function s(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function o(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>a,IW:()=>o,mA:()=>s})},40876:(e,t,n)=>{n.d(t,{Eq:()=>m,G1:()=>g,TS:()=>a,Tf:()=>b,V6:()=>i,Vm:()=>f,ay:()=>l,c1:()=>p,c4:()=>s,j5:()=>c,lT:()=>d,oW:()=>u,xV:()=>T});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!r[e]||!!r[e.toLowerCase()]}function a(e){return r[e]??r[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const i=(e%360+360)%360/360,a=n<=.5?n*(t+1):n+t-n*t,s=2*n-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),r]}function c(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,i=t?1:17,a=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const o=[0,0,0,1];let l;return a&&(l=s&r,s>>=n,o[3]=i*l/255),l=s&r,s>>=n,o[2]=i*l,l=s&r,s>>=n,o[1]=i*l,l=s&r,s>>=n,o[0]=i*l,o}function u(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=i(e)?a(e):null;return t??=d(e),t??=u(e),t}function f(e){const t=m(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const b=2.2,v=1/b;function T(e){return e**v}},43281:(e,t,n)=>{n.d(t,{H:()=>s,q:()=>a});var r=n(2741),i=n(10838);async function a(e){if(!e)return;const t=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e.includes("-3d")?e.slice(0,e.indexOf("-3d")):e,n=await(0,i.ud)("esri/t9n/basemaps");return n[e]||n[t]}const s={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-hillshade",url:"https://services.arcgisonline.com/ArcGIS/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1},{id:"terrain-base",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/33064a20de0c48d2bb61efa8faca93a8/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Terrain Base"},{id:"terrain-reference",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/14fbc125ccc9488888b014db09f35f67/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Reference Reference",isReference:!0}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/94329802cbfa44a18f423e6f1a0b875c/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get"dark-gray"(){return{...this["dark-gray-vector"],id:"dark-gray"}},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get gray(){return{...this["gray-vector"],id:"gray"}},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},get streets(){return{...this["streets-vector"],id:"streets"}},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},get topo(){return{...this["topo-vector"],id:"topo"}},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"topo-3d":{id:"topo-3d",is3d:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/topo-3d.png")},baseMapLayers:[{id:"topo-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/1e7d1784d1ef4b79ba6764d0bd6c3150/resources/styles/root.json",layerType:"VectorTileLayer",title:"Topographic",visibility:!0,opacity:1},{id:"topo-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Open3D_Trees_v1/SceneServer",itemId:"9d3d89d42cfe4e2c9d108a2f0d518406",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"navigation-3d":{id:"navigation-3d",is3d:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/navigation-3d.jpg")},baseMapLayers:[{id:"navigation-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/ccc904ff872b4144b94934e55e32784b/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation",visibility:!0,opacity:1},{id:"navigation-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"streets-3d":{id:"streets-3d",is3d:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/streets-3d.png")},baseMapLayers:[{id:"streets-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/198298c4c64c4cb19de5b46aa00c198d/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"streets-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"streets-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"osm-3d":{id:"osm-3d",is3d:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/osm-3d.png")},baseMapLayers:[{id:"osm-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/8628d259c9d14bdc848771c23c513940/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap",visibility:!0,opacity:1},{id:"osm-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Open3D_Trees_v1/SceneServer",itemId:"9d3d89d42cfe4e2c9d108a2f0d518406",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Open3D_Buildings_v1/SceneServer",itemId:"cd33b09dde0a419c986ca1a78a5fc06d",layerType:"ArcGISSceneServiceLayer"}]},"gray-3d":{id:"gray-3d",is3d:!0,get thumbnailUrl(){return(0,r.s)("esri/images/basemap/gray-3d.png")},baseMapLayers:[{id:"gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/01a14b466345455ba4176d2e6390db92/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"navigation-dark-3d":{id:"navigation-dark-3d",itemId:"5a1365328b4943f09a54cf5fd1205707",is3d:!0,baseMapLayers:[{id:"navigation-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/451a1777ab3f4bf095fae24a117439d9/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation Dark"},{id:"navigation-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"streets-dark-3d":{id:"streets-dark-3d",itemId:"8a4efa2c20484ec9b4557895e65736ff",is3d:!0,baseMapLayers:[{id:"streets-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/bc599b6d741a4ac084b7eea7bf8c5938/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Streets Night (for 3D)"},{id:"streets-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"streets-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]},"dark-gray-3d":{id:"dark-gray-3d",itemId:"a8b7322a5fe94002bb0f5e0eeb0c5c18",is3d:!0,baseMapLayers:[{id:"dark-gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/4178f71acb934fb89f169e7d667c20c6/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Dark Gray Canvas (for 3D)"},{id:"dark-gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"dark-gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/Esri3D_Buildings_v1/SceneServer",itemId:"b8fec5af7dfe4866b1b8ac2d2800f282",layerType:"ArcGISSceneServiceLayer"}]}}},43668:(e,t,n)=>{let r;function i(){return r||(r=(async()=>{const[e,t,r]=await Promise.all([Promise.all([n.e(708),n.e(8902),n.e(9829),n.e(8368),n.e(4800),n.e(655),n.e(3367),n.e(9221)]).then(n.bind(n,25098)),n.e(8010).then(n.bind(n,8010)),Promise.all([n.e(8902),n.e(9829),n.e(4800),n.e(655),n.e(3367),n.e(6343)]).then(n.bind(n,76343))]);return{arcade:e.arcade,arcadeUtils:e,batchExec:t,aiServices:r,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel}})()),r}n.d(t,{l:()=>i})},51850:(e,t,n)=>{function r(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function a(e,t,n){return[e,t,n]}function s(e,t,n){return[e,t,n]}function o(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function u(){return a(0,1,0)}function d(){return a(0,0,1)}n.d(t,{CN:()=>s,Cb:()=>p,Cw:()=>f,JP:()=>g,Un:()=>m,ci:()=>o,fA:()=>a,o8:()=>i,uY:()=>h,vt:()=>r});const h=[0,0,0],m=l(),f=c(),g=u(),p=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:f,UNIT_Y:g,UNIT_Z:p,ZEROS:h,clone:i,create:r,freeze:s,fromArray:o,fromValues:a,ones:l,unitX:c,unitY:u,unitZ:d,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},54218:(e,t,n)=>{function r(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function a(e){return"boolean"==typeof e}function s(e){return"string"==typeof e||e instanceof String}function o(e){return null==e||s(e)}function l(e){return Array.isArray(e)}function c(e){return"esri.Graphic"===e?.declaredClass}function u(e){return e instanceof Date}n.d(t,{$P:()=>u,CO:()=>o,DU:()=>c,Et:()=>r,Fq:()=>i,Kg:()=>s,Lm:()=>a,cy:()=>l})},56400:(e,t,n)=>{n.d(t,{ZS:()=>l,hv:()=>c,wr:()=>u,P6:()=>o});var r=n(98623);const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=n(28097);const s="shortOffset";function o(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?l(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function l(e,t=r.qU){return e?"timeZoneIANA"in e?e.timeZoneIANA:function(e,t=r.qU){if(!e||!i.has(e.timeZone))return t;const n=i.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=a.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${a.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function c(e,t,n,i,a){if(t&&"date"===a)return{timeZone:r.n$,timeZoneName:void 0};const o=i.hour,l=n===r.L5;return{timeZone:l?"timestamp-offset"===a?void 0:e??r.n$:n,timeZoneName:l&&o?s:void 0}}function u(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return e===r.qU||e===r.L5||t.has(e.toLowerCase())||n.has(e.toLowerCase())}},59247:(e,t,n)=>{n.d(t,{bv:()=>l,Fk:()=>c,yG:()=>u,$b:()=>d,Nd:()=>h,jm:()=>m,sK:()=>p});var r=n(40876),i=n(90629);function a(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const s=a();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:a,fromValues:function(e,t,n,r,i,a,s,o,l,c,u,d,h,m,f,g){const p=new Float32Array(16);return p[0]=e,p[1]=t,p[2]=n,p[3]=r,p[4]=i,p[5]=a,p[6]=s,p[7]=o,p[8]=l,p[9]=c,p[10]=u,p[11]=d,p[12]=h,p[13]=m,p[14]=f,p[15]=g,p}},Symbol.toStringTag,{value:"Module"}));var o=n(58083);class l{constructor(e,t,n){this.strength=e,this.radius=t,this.threshold=n,this.type="bloom"}interpolate(e,t,n){this.strength=f(e.strength,t.strength,n),this.radius=f(e.radius,t.radius,n),this.threshold=f(e.threshold,t.threshold,n)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:g(this.radius),strength:this.strength,threshold:this.threshold}}}class c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,n){this.radius=Math.round(f(e.radius,t.radius,n))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:g(this.radius)}}}class u{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,n){this.amount=f(e.amount,t.amount,n),this._updateMatrix()}clone(){return new u(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||a();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const n=(0,o.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,o.mg)(n,n)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const n=(0,o.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,o.mg)(n,n)})(e,this.amount);break;case"grayscale":this._colorMatrix=(e=>{const t=1-this.amount,n=(0,o.hZ)(e,.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1);return(0,o.mg)(n,n)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const n=1-2*t,r=(0,o.hZ)(e,n,0,0,t,0,n,0,t,0,0,n,t,0,0,0,1);return(0,o.mg)(r,r)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const n=(0,o.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,o.mg)(n,n)})(e,this.amount);break;case"sepia":this._colorMatrix=(e=>{const t=1-this.amount,n=(0,o.hZ)(e,.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1);return(0,o.mg)(n,n)})(e)}}}class d{constructor(e,t,n,r){this.offsetX=e,this.offsetY=t,this.blurRadius=n,this.color=r,this.type="drop-shadow"}interpolate(e,t,n){this.offsetX=f(e.offsetX,t.offsetX,n),this.offsetY=f(e.offsetY,t.offsetY,n),this.blurRadius=f(e.blurRadius,t.blurRadius,n),this.color[0]=Math.round(f(e.color[0],t.color[0],n)),this.color[1]=Math.round(f(e.color[1],t.color[1],n)),this.color[2]=Math.round(f(e.color[2],t.color[2],n)),this.color[3]=f(e.color[3],t.color[3],n)}clone(){return new d(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:g(this.offsetX),yoffset:g(this.offsetY),blurRadius:g(this.blurRadius),color:e}}}class h{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,n){this.angle=f(e.angle,t.angle,n),this._updateMatrix()}clone(){return new h(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||a();this._colorMatrix=((e,t)=>{const n=Math.sin(t*Math.PI/180),r=Math.cos(t*Math.PI/180),i=(0,o.hZ)(e,.213+.787*r-.213*n,.715-.715*r-.715*n,.072-.072*r+.928*n,0,.213-.213*r+.143*n,.715+.285*r+.14*n,.072-.072*r-.283*n,0,.213-.213*r-.787*n,.715-.715*r+.715*n,.072+.928*r+.072*n,0,0,0,0,1);return(0,o.mg)(i,i)})(e,this.angle)}}class m{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,n){this.amount=f(e.amount,t.amount,n)}clone(){return new m(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function f(e,t,n){return e+(t-e)*n}function g(e){return Math.round(1e3*(0,i.PN)(e))/1e3}function p(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new u(e.type,0);case"saturate":case"brightness":case"contrast":return new u(e.type,1);case"opacity":return new m(1);case"hue-rotate":return new h(0);case"blur":return new c(0);case"drop-shadow":return new d(0,0,0,[...(0,r.TS)("transparent")]);case"bloom":return new l(0,0,1)}}},61760:(e,t,n)=>{n.d(t,{PU:()=>s,YW:()=>l,ex:()=>i,hv:()=>o,zp:()=>a}),n(34727);var r=n(90629);n(87317),n(91829);const i=2.4;function a(e){return(0,r.PN)(e*i)}function s(e){return(0,r.Lz)(e)/i}function o(e,t,n){const r=Math.sqrt(e**2+t**2)/n;return r>1?0:3/(Math.PI*n**2)*(1-r**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},62577:(e,t,n)=>{function r(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:n,translate:r}=e,i=n[0]??1,a=n[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,n[2]??1,n[3]??1],translate:[r[0]??0,r[1]??0,r[2]??0,r[3]??0]}}function a({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function s({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function o({scale:e,translate:t},n){return n*e[0]+t[0]}function l({scale:e,translate:t},n){return n*e[1]+t[1]}function c({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function u({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function d(e,t){return e&&t?g:e&&!t?m:!e&&t?f:h}n.d(t,{$X:()=>T,B2:()=>s,Gy:()=>y,IE:()=>a,P5:()=>S,Q1:()=>i,SW:()=>b,Tr:()=>v,VV:()=>r});const h=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const r=t[0];let i=o(e,r[0]),a=l(e,r[1]);n[0]=[i,a];const{scale:s,originPosition:c}=e,u=s[0],d="lowerLeft"===c?s[1]:-s[1];for(let e=1;e<t.length;e++){const[r,s]=t[e];i+=u*r,a+=d*s,n[e]=[i,a]}return n},m=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const r=t[0];let i=o(e,r[0]),a=l(e,r[1]);n[0]=[i,a,c(e,r[2])];const{scale:s,originPosition:u}=e,d=s[0],h="lowerLeft"===u?s[1]:-s[1];for(let r=1;r<t.length;r++){const[s,o,l]=t[r];i+=d*s,a+=h*o,n[r]=[i,a,c(e,l)]}return n},f=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const r=t[0];let i=o(e,r[0]),a=l(e,r[1]);n[0]=[i,a,u(e,r[2])];const{scale:s,originPosition:c}=e,d=s[0],h="lowerLeft"===c?s[1]:-s[1];for(let r=1;r<t.length;r++){const[s,o,l]=t[r];i+=d*s,a+=h*o,n[r]=[i,a,u(e,l)]}return n},g=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const r=t[0];let i=o(e,r[0]),a=l(e,r[1]);n[0]=[i,a,c(e,r[2]),u(e,r[3])];const{scale:s,originPosition:d}=e,h=s[0],m="lowerLeft"===d?s[1]:-s[1];for(let r=1;r<t.length;r++){const[s,o,l,d]=t[r];i+=h*s,a+=m*o,n[r]=[i,a,c(e,l),u(e,d)]}return n};function p(e,t,n){const r=new Array(n.length);for(let i=0;i<n.length;i++)r[i]=t(e,n[i]);return r}function y(e,t,n){const r=i(e);return t.x=a(r,n.x),t.y=s(r,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(r,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(r,n.m)),t}function b(e,t,n,r=n?.hasZ??!1,a=n?.hasM??!1){if(null!=n){const s=i(e);t.points=d(r,a)(s,n.points),t.hasZ=r,t.hasM=a}return t}function v(e,t,n,r=null!=n?.z,a=null!=n?.m){if(null==n)return t;const s=i(e);return t.x=o(s,n.x),t.y=l(s,n.y),r&&(t.z=c(s,n.z)),a&&(t.m=u(s,n.m)),t}function T(e,t,n,r=n?.hasZ??!1,a=n?.hasM??!1){if(null!=n){const s=i(e);t.rings=p(s,d(r,a),n.rings),t.hasZ=r,t.hasM=a}return t}function S(e,t,n,r=n?.hasZ??!1,a=n?.hasM??!1){if(null!=n){const s=i(e);t.paths=p(s,d(r,a),n.paths),t.hasZ=r,t.hasM=a}return t}},65529:(e,t,n)=>{n.d(t,{Zt:()=>a,a$:()=>s,bk:()=>o,nJ:()=>l});var r=n(69622),i=n(36563);const a=e=>{const t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let r=!1;for(const e of n.slice()){const n="deref"in e?e.deref():e;n?n?.call(this,t):r=!0}return r&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){const n=e.map(e=>this.on(e,t));return(0,i.vE)(n)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,i.hA)(()=>{const n=this._listenersMap?.get(e),r=n?.indexOf(t)??-1;r>=0&&n.splice(r,1)})}once(e,t){const n=this.on(e,e=>{n.remove();const r="deref"in t?t.deref():t;r?.call(null,e)});return n}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},s=a(class{}),o=s,l=a(r.A)},68463:(e,t,n)=>{n.d(t,{A5:()=>b});var r=n(3483),i=n(97768),a=n(54218),s=n(28097);const o=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"],l="yyyy-MM-dd";function c(e){if(!e||!(0,a.Kg)(e))return null;const t=s.c9.fromFormat(e,l);return t.isValid?t:null}function u(e){return e&&(0,a.Kg)(e)?(0,i.Pb)(o,t=>{const n=s.c9.fromFormat(e,t);return n.isValid?n:null})??null:null}function d(e){if(!e||!(0,a.Kg)(e))return null;const t=s.c9.fromISO(e);return t.isValid?t:null}const h=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function m(e){return null!=e&&h.has(e.type)}function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function g(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const y=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function b(e,t){const n=t??e?.domain;if(!n||"range"!==n.type)return;const r="range"in n?n.range[0]:n.minValue,i="range"in n?n.range[1]:n.maxValue,a=m(e);return f(e)||p(e)||g(e)?{...v(e,i,r),isInteger:a}:{min:null!=r&&"number"==typeof r?r:null,max:null!=i&&"number"==typeof i?i:null,rawMin:r,rawMax:i,isInteger:a}}function v(e,t,n){return f(e)?{min:c(n)?.toMillis(),max:c(t)?.toMillis(),rawMin:n,rawMax:t}:p(e)?{min:u(n)?.toMillis(),max:u(t)?.toMillis(),rawMin:n,rawMax:t}:g(e)?{min:d(n)?.toMillis(),max:d(t)?.toMillis(),rawMin:n,rawMax:t}:{max:null,min:null}}(0,r.KC)(h,y)},69309:(e,t,n)=>{function r(e){if(!e)return;const t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}n.d(t,{D:()=>a,o:()=>r});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function a(e){return e.match(s)?.[1]?.replaceAll("\\'","'")??null}const s=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},73444:(e,t,n)=>{n.d(t,{JK:()=>l,Ml:()=>p,QC:()=>d,lR:()=>u,oQ:()=>f});var r=n(36563);let i;n(44208);const a=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function o(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return a??e??t??"en"}function l(){return void 0===i&&(i=o()),i}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return h(e)?.language}function d(e=l()){const t=h(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function h(e=l()){return c.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,r.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,r.hA)(()=>g.splice(g.indexOf(e),1))}function y(){const e=o();i!==e&&([...g].forEach(t=>t(e)),i=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},84892:(e,t,n)=>{n.d(t,{t:()=>s});var r=n(53966);const i=()=>r.A.getLogger("esri.rest.support.generateRendererUtils");function a(e,t){return Number(e.toFixed(t))}function s(e,t){const{normalizationTotal:n}=e;return{classBreaks:o(e,t),normalizationTotal:n}}function o(e,t){const n=e.definition,{classificationMethod:r,normalizationType:i,definedInterval:s}=n,o=n.breakCount??1,u=[];let d=e.values;if(0===d.length)return[];d=d.sort((e,t)=>e-t);const[h,m]=t??[d.at(0),d.at(-1)];if("equal-interval"===r)if(d.length>=o){const e=(m-h)/o;let t=h;for(let n=1;n<o;n++){const r=a(h+n*e,6);u.push({minValue:t,maxValue:r,label:l(t,r,i)}),t=r}u.push({minValue:t,maxValue:m,label:l(t,m,i)})}else d.forEach(e=>{u.push({minValue:e,maxValue:e,label:l(e,e,i)})});else if("natural-breaks"===r){const t=function(e){const t=[],n=[];let r=Number.MIN_VALUE,i=1,a=-1;for(let s=0;s<e.length;s++){const o=e[s];o===r?(i++,n[a]=i):null!==o&&(t.push(o),r=o,i=1,n.push(i),a++)}return{uniqueValues:t,valueFrequency:n}}(d),n=e.valueFrequency||t.valueFrequency,r=c(t.uniqueValues,n,o);let s=h;for(let e=1;e<o;e++)if(t.uniqueValues.length>e){const n=a(t.uniqueValues[r[e]],6);u.push({minValue:s,maxValue:n,label:l(s,n,i)}),s=n}u.push({minValue:s,maxValue:m,label:l(s,m,i)})}else if("quantile"===r)if(d.length>=o&&h!==m){let e=h,t=Math.ceil(d.length/o),n=0;for(let r=1;r<o;r++){let a=t+n-1;a>d.length&&(a=d.length-1),a<0&&(a=0),u.push({minValue:e,maxValue:d[a],label:l(e,d[a],i)}),e=d[a],n+=t,t=Math.ceil((d.length-n)/(o-r))}u.push({minValue:e,maxValue:m,label:l(e,m,i)})}else{let e=-1;for(let t=0;t<d.length;t++){const n=d[t];n!==e&&(e=n,u.push({minValue:e,maxValue:n,label:l(e,n,i)}),e=n)}}else if("standard-deviation"===r){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(d),t=function(e,t){let n=0;for(let r=0;r<e.length;r++){const i=e[r];n+=(i-t)*(i-t)}return n/=e.length,Math.sqrt(n)}(d,e);if(0===t)u.push({minValue:d[0],maxValue:d[0],label:l(d[0],d[0],i)});else{const n=function(e,t,n,r,i){let a=Math.max(r-e,t-r)/i/n;return a=a>=1?1:a>=.5?.5:.25,a}(h,m,o,e,t)*t;let r=0,s=h;for(let t=o;t>=1;t--){const o=a(e-(t-.5)*n,6);u.push({minValue:s,maxValue:o,label:l(s,o,i)}),s=o,r++}let c=a(e+.5*n,6);u.push({minValue:s,maxValue:c,label:l(s,c,i)}),s=c,r++;for(let t=1;t<=o;t++)c=r===2*o?m:a(e+(t+.5)*n,6),u.push({minValue:s,maxValue:c,label:l(s,c,i)}),s=c,r++}}else if("defined-interval"===r){if(!s)return u;const[e,n]=t??[d.at(0),d.at(-1)],r=Math.ceil((n-e)/s);let o=e;for(let t=1;t<r;t++){const n=a(e+t*s,6);u.push({minValue:o,maxValue:n,label:l(o,n,i)}),o=n}u.push({minValue:o,maxValue:n,label:l(o,n,i)})}return u}function l(e,t,n){let r=null;return r=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,r}function c(e,t,n){const r=e.length,i=[];n>r&&(n=r);for(let e=0;e<n;e++)i.push(Math.round(e*r/n-1));i.push(r-1);let a=u(i,e,t,n);return function(e,t,n,r,i,a){let s=0,o=0,l=0,c=0,u=!0;for(let h=0;h<2&&u;h++){0===h&&(u=!1);for(let h=0;h<a-1;h++)for(;n[h+1]+1!==n[h+2];){n[h+1]=n[h+1]+1;const a=d(h,n,r,i);l=a.sbMean,s=a.sbSdcm;const m=d(h+1,n,r,i);if(c=m.sbMean,o=m.sbSdcm,!(s+o<t[h]+t[h+1])){n[h+1]=n[h+1]-1;break}t[h]=s,t[h+1]=o,e[h]=l,e[h+1]=c,u=!0}for(let h=a-1;h>0;h--)for(;n[h]!==n[h-1]+1;){n[h]=n[h]-1;const a=d(h-1,n,r,i);l=a.sbMean,s=a.sbSdcm;const m=d(h,n,r,i);if(c=m.sbMean,o=m.sbSdcm,!(s+o<t[h-1]+t[h])){n[h]=n[h]+1;break}t[h-1]=s,t[h]=o,e[h-1]=l,e[h]=c,u=!0}}return u}(a.mean,a.sdcm,i,e,t,n)&&(a=u(i,e,t,n)),i}function u(e,t,n,r){let i=[],a=[],s=[],o=0;const l=[],c=[];for(let i=0;i<r;i++){const r=d(i,e,t,n);l.push(r.sbMean),c.push(r.sbSdcm),o+=c[i]}let u,h=o,m=!0;for(;m||o<h;){m=!1,i=[];for(let t=0;t<r;t++)i.push(e[t]);for(let n=0;n<r;n++)for(let i=e[n]+1;i<=e[n+1];i++)if(u=t[i],n>0&&i!==e[n+1]&&Math.abs(u-l[n])>Math.abs(u-l[n-1]))e[n]=i;else if(n<r-1&&e[n]!==i-1&&Math.abs(u-l[n])>Math.abs(u-l[n+1])){e[n+1]=i-1;break}h=o,o=0,a=[],s=[];for(let i=0;i<r;i++){a.push(l[i]),s.push(c[i]);const r=d(i,e,t,n);l[i]=r.sbMean,c[i]=r.sbSdcm,o+=c[i]}}if(o>h){for(let t=0;t<r;t++)e[t]=i[t],l[t]=a[t],c[t]=s[t];o=h}return{mean:l,sdcm:c}}function d(e,t,n,r){let a=0,s=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=r[i];a+=n[i]*e,s+=e}s<=0&&i().warn("Exception in Natural Breaks calculation");const o=a/s;let l=0;for(let i=t[e]+1;i<=t[e+1];i++)l+=r[i]*(n[i]-o)**2;return{sbMean:o,sbSdcm:l}}},86738:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(31635),i=n(69622),a=n(53966),s=n(91429),o=n(56507),l=n(91075),c=n(16930),u=n(21325),d=n(28735);function h({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,u.K8)(n))return(0,d.tD)(e,t,r);if((0,u.EA)(n))return r[0]=e,r[1]=t,r}return null}const m=[0,0];var f,g=n(43937),p=n(36005);const y=[0,0];function b(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let v=f=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",i.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,i){let s;if(Array.isArray(e))s=e,i=t,e=s[0],t=s[1],n=s[2],r=s[3];else if(e&&"object"==typeof e){if(s=e,e=null!=s.x?s.x:s.longitude,t=null!=s.y?s.y:s.latitude,n=s.z,r=s.m,(i=s.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new c.A(i)),null!=s.longitude||null!=s.latitude)if(null==s.longitude)a.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==s.latitude)a.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!s.declaredClass&&i?.isWebMercator){const n=(0,d.je)(s.longitude,s.latitude,y);e=n[0],t=n[1]}}else b(n)?(i=n,n=null):b(r)&&(i=r,r=null);const o={x:e,y:t};return null==o.x&&null!=o.y?a.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&a.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(o.spatialReference=i),null!=n&&(o.z=n),null!=r&&(o.m=r),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return e=this,h(e,m)?.[1]??null;var e}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,d.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return e=this,h(e,m)?.[0]??null;var e}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,d.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new f;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return f.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:i,spatialReference:a}=this,{z:s,m:o}=e;let{x:l,y:c,spatialReference:u}=e;if(!a.equals(u))if(a.isWebMercator&&u.isWGS84)[l,c]=(0,d.je)(l,c),u=a;else{if(!a.isWGS84||!u.isWebMercator)return!1;[l,c]=(0,d.tD)(l,c),u=a}return t===l&&n===c&&r===s&&i===o&&a.wkid===u.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,u.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,i=2*r;let a;return t>r?(a=Math.ceil(Math.abs(t-r)/i),t-=a*i):t<n&&(a=Math.ceil(Math.abs(t-n)/i),t+=a*i),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,i=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+i*i)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,s.MZ)({readOnly:!0})],v.prototype,"cache",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],v.prototype,"hasM",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],v.prototype,"hasZ",null),(0,r.Cg)([(0,s.MZ)({type:Number})],v.prototype,"latitude",null),(0,r.Cg)([(0,s.MZ)({type:Number})],v.prototype,"longitude",null),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,s.wg)(e=>isNaN(e)?e:(0,o.GB)(e))],v.prototype,"x",void 0),(0,r.Cg)([(0,g.K)("x")],v.prototype,"writeX",null),(0,r.Cg)([(0,p.w)("x")],v.prototype,"readX",null),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],v.prototype,"z",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],v.prototype,"m",void 0),v=f=(0,r.Cg)([(0,s.$K)("esri.geometry.Point")],v),v.prototype.toJSON.isDefaultToJSON=!0},87445:(e,t,n)=>{n.d(t,{$r:()=>p,Jc:()=>v,gV:()=>y,rb:()=>b}),n(49186);var r=n(90629),i=n(88930),a=n(86738),s=n(16930),o=n(62577),l=n(21325),c=n(30524),u=n(61760),d=n(4560),h=n(1873),m=n(43668);let f=null;const g=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/;function p(e,t,n,r){const i=(0,l.d9)(n)?(0,l.Vp)(n):null,s=i?Math.round((i.valid[1]-i.valid[0])/t.scale[0]):null;return e.map(e=>{const n=new a.A(e.geometry);return(0,o.Gy)(t,n,n),e.geometry=i?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,s??0,r[0]):n,e})}function y(e,t=18,n,i,a){const s=new Float64Array(i*a);t=Math.round((0,r.Lz)(t));let o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;const c=(0,u.YW)(n);for(const{geometry:n,attributes:r}of e){const{x:e,y:d}=n,h=Math.max(0,e-t),m=Math.max(0,d-t),f=Math.min(a,d+t),g=Math.min(i,e+t),p=+c(r);for(let n=m;n<f;n++)for(let r=h;r<g;r++){const a=n*i+r,c=(0,u.hv)(r-e,n-d,t)*p,h=s[a]+=c;o=Math.min(o,h),l=Math.max(l,h)}}return{min:o,max:l}}function b(e){const t=g.exec(e);if(!t)return null;const{hh:n,mm:r,ss:a,ms:s}=t.groups;return Number(n)*i.vf.hours+Number(r)*i.vf.minutes+Number(a)*i.vf.seconds+Number(s||0)}async function v(e,t,n=!0){if(!t)return[];const{field:r,field2:i,field3:a,fieldDelimiter:o,fieldInfos:l,timeZone:u}=e,g=r&&l?.find(e=>e.name.toLowerCase()===r.toLowerCase()),p=!!g&&(0,c.OH)(g),y=!!g&&(0,d.fs)(g),v=e.valueExpression,T=e.normalizationType,S=e.normalizationField,_=e.normalizationTotal,M=[],w=e.viewInfoParams;let A=null,x=null;if(v){if(!f){const{arcadeUtils:e}=await(0,m.l)();f=e}f.hasGeometryOperations(v)&&await f.enableGeometryOperations(),A=f.createFunction(v),x=w?f.getViewInfo({viewingMode:w.viewingMode,scale:w.scale,spatialReference:new s.A(w.spatialReference)}):null}const C=e.fieldInfos,I=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!C?null:{fields:C};return t.forEach(e=>{const t=e.attributes;let s;if(v){const t=I?Object.assign({},e,{layer:I}):e,n=f.createExecContext(t,x,u);s=f.executeFunction(A,n)}else t&&(s=t[r],i?(s=`${(0,h.gJ)(s)}${o}${(0,h.gJ)(t[i])}`,a&&(s=`${s}${o}${(0,h.gJ)(t[a])}`)):"string"==typeof s&&n&&(y?s=s?new Date(s).getTime():null:p&&(s=s?b(s):null)));if(T&&"number"==typeof s&&isFinite(s)){const e=t&&parseFloat(t[S]);s=(0,h.zS)(s,T,e,_)}M.push(s)}),M}},88930:(e,t,n)=>{n.d(t,{S1:()=>o,lL:()=>c,mi:()=>l,t:()=>u,vf:()=>s});var r=n(97770),i=n(98623),a=n(28097);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(e,t,n,s=i.qU){const o=new a.oh((0,r.wj)(s)),l=a.c9.fromJSDate(e,{zone:o}),c="decades"===n||"centuries"===n?"year":d(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),l.plus({[c]:t}).toJSDate()}function l(e,t,n="milliseconds"){const r=e.getTime(),i=u(t,n,"milliseconds");return new Date(r+i)}function c(e,t,n=i.qU){const s=new a.oh((0,r.wj)(n)),o=a.c9.fromJSDate(e,{zone:s});if("decades"===t||"centuries"===t){const e=o.startOf("year"),{year:n}=e,r=n-n%("decades"===t?10:100);return e.set({year:r}).toJSDate()}const l=d(t);return o.startOf(l).toJSDate()}function u(e,t,n){return 0===e?0:e*s[t]/s[n]}function d(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90629:(e,t,n)=>{n.d(t,{Lz:()=>s,PN:()=>o,cr:()=>l,gs:()=>u,r_:()=>d,tc:()=>c});const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",a=96;function s(e){return e?e/72*a:0}function o(e){return e?72*e/a:0}function l(e){if("string"==typeof e){const t=e.match(r);if(t){const n=Number(t[1]),r=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),a="px"===r?o(n):n;return i?-a:a}return console.warn(i),null}return e}function c(e=0,t=0){return{x:e,y:t}}function u(e=0,t=0){return[e,t]}function d(e=0,t=0,n=0){return[e,t,n]}},91075:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(31635),i=n(25482),a=n(91429),s=n(16930),o=n(36005);let l=class extends i.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=s.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof s.A)return e;if(null!=e){const n=new s.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,a.MZ)()],l.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,r.Cg)([(0,a.MZ)({type:s.A,json:{write:!0},value:s.A.WGS84})],l.prototype,"spatialReference",void 0),(0,r.Cg)([(0,o.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,r.Cg)([(0,a.$K)("esri.geometry.Geometry")],l)},95488:(e,t,n)=>{n.d(t,{I:()=>i});var r=n(11406);class i extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},97770:(e,t,n)=>{n.d(t,{Ey:()=>F,F8:()=>E,J2:()=>C,Yq:()=>L,_m:()=>I,_v:()=>T,iS:()=>k,wj:()=>N});var r=n(66552),i=n(73444),a=n(98623),s=(n(56400),n(28097));const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:a.n$},u={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},h={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},b={...g,...p},v={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...g},"short-date-long-time-24":{...u,...b},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...g},"short-date-le-long-time-24":{...u,...b},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...y},"long-month-day-year-long-time":{...d,...g},"long-month-day-year-long-time-24":{...d,...b},"day-short-month-year":h,"day-short-month-year-short-time":{...h,...f},"day-short-month-year-short-time-24":{...h,...y},"day-short-month-year-long-time":{...h,...g},"day-short-month-year-long-time-24":{...h,...b},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...b},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},T=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function w(){const e=(0,i.lR)();return(e&&S[e])??(0,i.QC)()}"mart"!==M&&(S.bs="sr-Latn-CS");let A=new WeakMap;const x=v["short-date-short-time"];function C(e){return v[e]}function I(e){const{dateStyle:t,timeStyle:n,hour12:r,year:i,month:a}=e,s={};return t?s.dateStyle=t:i&&(s.year=i,s.month=a||void 0),n&&!s.year&&(s.timeStyle=n,s.hour12="auto"===r?void 0:"always"===r),s}function L(e,t=x){return function(e){let t=A.get(e);if(!t){const n=w(),r=N(e.timeZone??a.qU),i={...e,timeZone:r};t=new Intl.DateTimeFormat(n,i),A.set(e,t)}return t}(t).format(e)}function k(e,t=x){return L(new Date(e),{...t,...c,...l})}function E(e,t=x){return L(new Date(`1970-01-01T${e}Z`),{...t,...c,...o})}function F(e,t=x){if(t.timeZone)return L(new Date(e),t);const n=s.c9.fromISO(e,{setZone:!0}),r=0===n.offset?a.n$:t.timeZone,i={...t,timeZone:r};return n.toLocaleString(i,{locale:w()})}function N(e){switch(e){case a.qU:return a.N5;case a.L5:return a.n$;default:return e}}v["short-date"],(0,i.Ml)(()=>{A=new WeakMap})},98623:(e,t,n)=>{n.d(t,{L5:()=>i,N5:()=>s,n$:()=>a,qU:()=>r});const r="system",i="unknown",a="UTC",s=Intl.DateTimeFormat().resolvedOptions().timeZone}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3543,7367],{71163:(n,e,t)=>{t.d(e,{C:()=>c});var r=t(29953);let a,o,i=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{o=n,i=!0,a=void 0})}async function c(n,e){return i?o.apply("invokeGeometryOp",[n,e]):(await s(),c(n,e))}},80672:(n,e,t)=>{t.d(e,{R:()=>a});var r=t(20655);function a(n,e){return null===n?e:new r.A({url:n.field("url")})}},87367:(n,e,t)=>{t.r(e),t.d(e,{registerFunctions:()=>$});var r=t(47609),a=t(66395),o=t(85935),i=t(78502),s=t(78878),c=t(80672),l=t(21300),u=t(71163),f=t(4576),d=t(5443),w=t(91075),p=t(48526),h=t(86738),y=t(39829),m=t(82799),g=t(65864),v=t(20655),S=t(70333),b=t(11254);async function A(n,e,t){const r=S.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===e&&n.user?.sourceJSON&&!1===t)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(t&&(a.query.returnUserLicenseTypeExtensions=!0),""===e){const e=await(0,b.A)(n.restUrl+"/community/self",a);if(e.data){const n=e.data;if(n?.username)return n}return null}const o=await(0,b.A)(n.restUrl+"/community/users/"+e,a);if(o.data){const n=o.data;return n.error?null:n}return null}var D=t(54218);function C(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new o.D$(null,"InvalidParameter",null)}}function $(n){"async"===n.mode&&(n.functions.disjoint=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null===a[0]||null===a[1]||(0,u.C)("disjoint",[a[0].toJSON(),a[1].toJSON()])))},n.functions.intersects=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null!==a[0]&&null!==a[1]&&(0,u.C)("intersects",[a[0].toJSON(),a[1].toJSON()])))},n.functions.touches=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null!==a[0]&&null!==a[1]&&(0,u.C)("touches",[a[0].toJSON(),a[1].toJSON()])))},n.functions.crosses=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null!==a[0]&&null!==a[1]&&(0,u.C)("crosses",[a[0].toJSON(),a[1].toJSON()])))},n.functions.within=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null!==a[0]&&null!==a[1]&&(0,u.C)("within",[a[0].toJSON(),a[1].toJSON()])))},n.functions.contains=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null!==a[0]&&null!==a[1]&&(0,u.C)("contains",[a[0].toJSON(),a[1].toJSON()])))},n.functions.overlaps=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null!==a[0]&&null!==a[1]&&(0,u.C)("overlaps",[a[0].toJSON(),a[1].toJSON()])))},n.functions.equals=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>((0,s.B)(a,2,2,e,t),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,u.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,s.e)(a[0])&&(0,s.e)(a[1])||!!((0,s.g)(a[0])&&(0,s.g)(a[1])||(0,s.f)(a[0])&&(0,s.f)(a[1])))&&a[0].equals(a[1]))))},n.functions.relate=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,3,3,e,t),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,u.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,s.s)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new o.D$(e,"InvalidParameter",t)})},n.functions.intersection=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null===a[0]||null===a[1]?null:(0,g.rS)(await(0,u.C)("intersection",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.union=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(0===(a=(0,s.C)(a)).length)throw new o.D$(e,"WrongNumberOfParameters",t);const c=[];if(1===a.length)if((0,D.cy)(a[0])){for(const n of(0,s.C)(a[0]))if(null!==n){if(!(n instanceof w.A))throw new o.D$(e,"InvalidParameter",t);c.push(n.toJSON())}}else{if(!(0,s.j)(a[0])){if(a[0]instanceof w.A)return(0,s.D)((0,i.Yq)(a[0]),e.spatialReference);if(null===a[0])return null;throw new o.D$(e,"InvalidParameter",t)}for(const n of(0,s.C)(a[0].toArray()))if(null!==n){if(!(n instanceof w.A))throw new o.D$(e,"InvalidParameter",t);c.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof w.A))throw new o.D$(e,"InvalidParameter",t);c.push(n.toJSON())}return 0===c.length?null:(0,g.rS)(await(0,u.C)("union",[c]))})},n.functions.difference=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null===a[0]?null:null===a[1]?(0,i.Yq)(a[0]):(0,g.rS)(await(0,u.C)("difference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.symmetricdifference=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>(a=(0,s.C)(a),(0,l.ZL)(a,e,t),null===a[0]&&null===a[1]?null:null===a[0]?(0,i.Yq)(a[1]):null===a[1]?(0,i.Yq)(a[0]):(0,g.rS)(await(0,u.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.clip=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,e,t),!(a[1]instanceof d.A)&&null!==a[1])throw new o.D$(e,"InvalidParameter",t);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return null===a[1]?null:(0,g.rS)(await(0,u.C)("clip",[a[0].toJSON(),a[1].toJSON()]))})},n.functions.cut=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,e,t),!(a[1]instanceof m.A)&&null!==a[1])throw new o.D$(e,"InvalidParameter",t);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return null===a[1]?[(0,i.Yq)(a[0])]:(await(0,u.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map(n=>(0,g.rS)(n))})},n.functions.area=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if((0,s.B)(a,1,2,e,t),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumArea(C(a[1]),null,e.abortSignal);if(e.abortSignal.aborted)throw new o.D$(e,"Cancelled",t);return n}let i=a[0];if(((0,D.cy)(i)||(0,s.j)(i))&&(i=(0,s.E)(a[0],e.spatialReference)),null===i)return 0;if(!(i instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,u.C)("area",[i.toJSON(),C(a[1])])})},n.functions.areageodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{(0,s.B)(a,1,3,e,t);let i=(a=(0,s.C)(a))[0];((0,D.cy)(i)||(0,s.j)(i))&&(i=(0,s.E)(i,e.spatialReference));const c=C(a[1]),f=(0,l.rE)(a[2]);if((0,s.m)(i)){const n=await i.sumArea(c,f,e.abortSignal);if(e.abortSignal.aborted)throw new o.D$(e,"Cancelled",t);return n}if(null==i)return 0;if(!(0,s.h)(i))throw new o.D$(e,"InvalidParameter",t);return(0,u.C)("geodeticArea",[i.toJSON(),c,f])})},n.functions.length=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if((0,s.B)(a,1,2,e,t),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumLength(C(a[1]),null,e.abortSignal);if(e.abortSignal.aborted)throw new o.D$(e,"Cancelled",t);return n}let i=a[0];if(((0,D.cy)(a[0])||(0,s.j)(a[0]))&&(i=(0,s.F)(a[0],e.spatialReference)),null===i)return 0;if(!(i instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,u.C)("length",[i.toJSON(),C(a[1])])})},n.functions.length3d=function(e,r){return n.standardFunctionAsync(e,r,async(n,a,i)=>{if((0,s.B)(i,1,2,e,r),null===(i=(0,s.C)(i))[0])return 0;let c=i[0];if(((0,D.cy)(i[0])||(0,s.j)(i[0]))&&(c=(0,s.F)(i[0],e.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new o.D$(e,"InvalidParameter",r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:e}=await Promise.resolve().then(t.bind(t,40547)),r=(0,l.UI)(c);return n(c.spatialReference,e(i[1]),r)}return(0,u.C)("length",[c.toJSON(),C(i[1])])})},n.functions.lengthgeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{(0,s.B)(a,1,3,e,t);let i=(a=(0,s.C)(a))[0];((0,D.cy)(a[0])||(0,s.j)(a[0]))&&(i=(0,s.F)(a[0],e.spatialReference));const c=C(a[1]),f=(0,l.rE)(a[2]);if((0,s.m)(i)){const n=await i.sumLength(c,f,e.abortSignal);if(e.abortSignal.aborted)throw new o.D$(e,"Cancelled",t);return n}if(null===i)return 0;if(!(0,s.h)(i))throw new o.D$(e,"InvalidParameter",t);return(0,u.C)("geodeticLength",[i.toJSON(),c,f])})},n.functions.distance=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,3,e,t);let i=a[0];if(((0,D.cy)(a[0])||(0,s.j)(a[0]))&&(i=(0,s.G)(a[0],e.spatialReference)),!(i instanceof w.A))throw new o.D$(e,"InvalidParameter",t);let c=a[1];if(((0,D.cy)(a[1])||(0,s.j)(a[1]))&&(c=(0,s.G)(a[1],e.spatialReference)),!(c instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,u.C)("distance",[i.toJSON(),c.toJSON(),C(a[2])])})},n.functions.distancegeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,e,t);const i=a[0];if(!(i instanceof h.A))throw new o.D$(e,"InvalidParameter",t);const c=a[1];if(!(c instanceof h.A))throw new o.D$(e,"InvalidParameter",t);const f=new m.A({paths:[],spatialReference:i.spatialReference});return f.addPath([i,c]),(0,u.C)("geodeticLength",[f.toJSON(),C(a[2]),(0,l.rE)(a[3])])})},n.functions.densify=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);const i=(0,s.r)(a[1]);if(isNaN(i))throw new o.D$(e,"InvalidParameter",t);if(i<=0)throw new o.D$(e,"InvalidParameter",t);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,g.rS)(await(0,u.C)("densify",[a[0].toJSON(),i,C(a[2])]));default:return a[0]}})},n.functions.densifygeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,e,t);const i=a[0];if(null==i)return null;if(!(0,s.h)(i))throw new o.D$(e,"InvalidParameter",t);const c=(0,s.r)(a[1]);if(isNaN(c))throw new o.D$(e,"InvalidParameter",t);if(c<=0)throw new o.D$(e,"InvalidParameter",t);const f=C(a[2]),d=(0,l.rE)(a[3]);switch(i.type){case"polygon":case"polyline":case"extent":return(0,g.rS)(await(0,u.C)("geodeticDensify",[i.toJSON(),c,f,d]));default:return i}})},n.functions.generalize=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,4,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);const i=(0,s.r)(a[1]);if(isNaN(i))throw new o.D$(e,"InvalidParameter",t);const c=(0,s.H)((0,s.J)(a[2],!0));return(0,g.rS)(await(0,u.C)("generalize",[a[0].toJSON(),i,C(a[3]),{removeDegenerateParts:c}]))})},n.functions.buffer=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);const c=(0,s.r)(a[1]);if(isNaN(c))throw new o.D$(e,"InvalidParameter",t);return 0===c?(0,i.Yq)(a[0]):(0,g.rS)(await(0,u.C)("buffer",[a[0].toJSON(),c,C(a[2])]))})},n.functions.buffergeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,e,t);const c=a[0];if(null==c)return null;if(!(0,s.h)(c))throw new o.D$(e,"InvalidParameter",t);const f=(0,s.r)(a[1]);if(isNaN(f))throw new o.D$(e,"InvalidParameter",t);if(0===f)return(0,i.Yq)(c);const d=C(a[2]),w=(0,l.rE)(a[3]);return(0,g.rS)(await(0,u.C)("geodesicBuffer",[c.toJSON(),f,d,w]))})},n.functions.offset=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,6,e,t);const i=a[0];if(null===i)return null;if(!(i instanceof y.A||i instanceof m.A))throw new o.D$(e,"InvalidParameter",t);const c=(0,s.r)(a[1]);if(isNaN(c))throw new o.D$(e,"InvalidParameter",t);const f=a[2],d=(0,l.R$)(a[3]),w=(0,s.r)((0,s.J)(a[4],10));if(isNaN(w))throw new o.D$(e,"InvalidParameter",t);const p=(0,s.r)((0,s.J)(a[5],0));if(isNaN(p))throw new o.D$(e,"InvalidParameter",t);return(0,g.rS)(await(0,u.C)("offset",[i.toJSON(),c,C(f),d,w,p]))})},n.functions.rotate=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);const i=a[0]instanceof d.A?y.A.fromExtent(a[0]):a[0],c=(0,s.r)(a[1]);if(isNaN(c))throw new o.D$(e,"InvalidParameter",t);const l=(0,s.J)(a[2],null);if(null===l){const n="point"===i.type?i:i.extent?.center;return(0,g.rS)(await(0,u.C)("rotate",[i.toJSON(),c,n?.x,n?.y]))}if(l instanceof h.A)return(0,g.rS)(await(0,u.C)("rotate",[i.toJSON(),c,l.x,l.y]));throw new o.D$(e,"InvalidParameter",t)})},n.functions.centroid=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,2,e,t),null===a[0])return null;const i=(0,l.Hz)(a[1]);let c=a[0];if(((0,D.cy)(a[0])||(0,s.j)(a[0]))&&(c="geometric"===i?(0,s.G)(a[0],e.spatialReference):(0,s.E)(a[0],e.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,g.rS)("geometric"===i?await(0,u.C)("centroid",[c.toJSON()]):await(0,u.C)("labelPoint",[c.toJSON()]))})},n.functions.measuretocoordinate=function(e,t){return n.standardFunctionAsync(e,t,l.Cd)},n.functions.pointtocoordinate=function(e,t){return n.standardFunctionAsync(e,t,l.kr)},n.functions.distancetocoordinate=function(e,t){return n.standardFunctionAsync(e,t,l.Bn)},n.functions.multiparttosinglepart=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);if(a[0]instanceof h.A)return[(0,s.D)((0,i.Yq)(a[0]),e.spatialReference)];if(a[0]instanceof d.A)return[(0,s.D)((0,i.Yq)(a[0]),e.spatialReference)];const c=(0,g.rS)(await(0,u.C)("simplify",[a[0].toJSON()]));if(c instanceof y.A){const n=[],e=[];for(let t=0;t<c.rings.length;t++)if(c.isClockwise(c.rings[t])){const e=(0,g.rS)({rings:[c.rings[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}else e.push({ring:c.rings[t],pt:c.getPoint(t,0)});for(let t=0;t<e.length;t++)for(let r=0;r<n.length;r++)if(n[r].contains(e[t].pt)){n[r].addRing(e[t].ring);break}return n}if(c instanceof m.A){const n=[];for(let e=0;e<c.paths.length;e++){const t=(0,g.rS)({paths:[c.paths[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}return n}if(a[0]instanceof p.A){const n=[],t=(0,s.D)((0,i.Yq)(a[0]),e.spatialReference);for(let e=0;e<t.points.length;e++)n.push(t.getPoint(e));return n}return null})},n.functions.isselfintersecting=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,t)=>{(0,s.B)(t,1,1,n,e);let r=(t=(0,s.C)(t))[0];if(((0,D.cy)(t[0])||(0,s.j)(t[0]))&&(r=(0,s.F)(t[0],n.spatialReference)),r instanceof p.A){const n=r.points;for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if((0,f.aI)(n[e],n[t]))return!0;return!1}return(r instanceof m.A||r instanceof y.A)&&await(0,u.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(e,t){return n.standardFunctionAsync(e,t,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,e,t),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,u.C)("isSimple",[a[0].toJSON()])})},n.functions.simplify=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,g.rS)(await(0,u.C)("simplify",[a[0].toJSON()]))})},n.functions.convexhull=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,e,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(e,"InvalidParameter",t);return(0,g.rS)(await(0,u.C)("convexHull",[a[0].toJSON()]))})},n.functions.getuser=function(e,t){return n.standardFunctionAsync(e,t,async(n,i,l)=>{(0,s.B)(l,0,2,e,t);let u=(0,s.J)(l[1],""),f=!0===u;if(u=!0===u||!1===u?"":(0,s.s)(u),0===l.length||l[0]instanceof r.A){let n;n=e.services?.portal?e.services.portal:v.A.getDefault(),l.length>0&&(n=(0,c.R)(l[0],n));const t=await A(n,u,f);if(t){const n=JSON.parse(JSON.stringify(t));for(const e of["lastLogin","created","modified"])void 0!==n[e]&&null!==n[e]&&(n[e]=new Date(n[e]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(e))}return null}let d=null;if((0,s.m)(l[0])&&(d=l[0]),d){if(f=!1,u)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!u){const n=await d.getIdentityUser();return n?a.A.convertObjectToArcadeDictionary({username:n},(0,s.K)(e)):null}return null}let t;t=e.services?.portal?e.services.portal:v.A.getDefault(),t=(0,c.R)(new r.A(n),t);const o=await A(t,u,f);if(o){const n=JSON.parse(JSON.stringify(o));for(const e of["lastLogin","created","modified"])void 0!==n[e]&&null!==n[e]&&(n[e]=new Date(n[e]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(e))}return null}throw new o.D$(e,"InvalidParameter",t)})},n.functions.nearestcoordinate=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,i)=>{if(i=(0,s.C)(i),(0,s.B)(i,2,2,e,t),!(i[0]instanceof w.A||null===i[0]))throw new o.D$(e,"InvalidParameter",t);if(!(i[1]instanceof h.A||null===i[1]))throw new o.D$(e,"InvalidParameter",t);if(null===i[0]||null===i[1])return null;const c=i[0]instanceof d.A?y.A.fromExtent(i[0]):i[0],l=await(0,u.C)("getNearestCoordinate",[c.toJSON(),i[1].toJSON(),{calculateLeftRightSide:!0}]);return null===l?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,g.rS)(l.coordinate),distance:l.distance,sideOfLine:0===l.distance?"straddle":l.isRightSide?"right":"left"},(0,s.K)(e),!1,!0)})},n.functions.nearestvertex=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,i)=>{if(i=(0,s.C)(i),(0,s.B)(i,2,2,e,t),!(i[0]instanceof w.A||null===i[0]))throw new o.D$(e,"InvalidParameter",t);if(!(i[1]instanceof h.A||null===i[1]))throw new o.D$(e,"InvalidParameter",t);if(null===i[0]||null===i[1])return null;const c=i[0]instanceof d.A?y.A.fromExtent(i[0]):i[0],l=await(0,u.C)("getNearestVertex",[c.toJSON(),i[1].toJSON()]);return null==l?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,g.rS)(l.coordinate),distance:l.distance,sideOfLine:l.sideOfLine},(0,s.K)(e),!1,!0)})})}},93543:(n,e,t)=>{t.r(e),t.d(e,{executeScript:()=>dn,extend:()=>ln,prepareScript:()=>fn});var r=t(48938),a=t(99719),o=t(72888),i=t(17433),s=t(15695),c=t(66395),l=t(85935),u=t(93833),f=t(92400),d=t(78878),w=t(19157),p=t(3367),h=t(63680),y=t(81113),m=t(32091),g=t(87367),v=t(41217),S=t(36770),b=t(47346),A=t(29304),D=t(4730),C=t(21818),$=t(53966),N=t(16930),O=t(54218);const F=()=>$.A.getLogger("esri.arcade.arcadeAsyncRuntime"),x=Symbol("uninitialized");function I(n){if(n===x)throw new l.D$(null,"InvalidIdentifier",null)}function R(n){return I(n),n}function J(n,e){const t=(0,r.X)(e);if(null!==n.localScope){const e=n.localScope[t];if(void 0!==e)return{scope:n.localScope,id:t,var:e}}const a=n.globalScope[t];if(void 0!==a)return{scope:n.globalScope,id:t,var:a};throw new l.D$(n,"InvalidIdentifier",e)}function P(n,e,t="InvalidIdentifier"){const a=(0,r.X)(e);if(null!==n.localScope){const e=n.localScope[a];if(void 0!==e)return I(e),e.value}const o=n.globalScope[a];if(void 0!==o)return I(o),o.value;throw new l.D$(n,t,e)}const k=function(){};async function B(n,e){const t=[];for(let r=0;r<e.arguments.length;r++)t.push(await Z(n,e.arguments[r]));return t}async function E(n,e,t){return!0===e.preparsed?t(n,null,e.arguments):t(n,e,await B(n,e))}k.prototype=Object.freeze(Object.create(null));class j extends f.fF{constructor(n,e,t,r){super(),this.definition=n,this.context=e,this._params=t,this._locals=r}createFunction(n){return(...e)=>{const t={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,timeZone:this.context.timeZone??null,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,services:this.context.services,abortSignal:this.context.abortSignal,localScope:new k,depthCounter:{depth:n.depthCounter.depth+1},globalScope:this.context.globalScope,track:this.context.track};if(t.depthCounter.depth>64)throw new l.D$(n,"MaximumCallDepth",null);return L(t,this.definition.body,this._params,this._locals,e,null)}}call(n,e){return U(n,e,(t,r,a)=>{const o={spatialReference:n.spatialReference,services:n.services,console:n.console,libraryResolver:n.libraryResolver,exports:n.exports,lrucache:n.lrucache,timeZone:n.timeZone??null,interceptor:n.interceptor,localScope:new k,abortSignal:n.abortSignal,globalScope:n.globalScope,depthCounter:{depth:n.depthCounter.depth+1},track:n.track};if(o.depthCounter.depth>64)throw new l.D$(n,"MaximumCallDepth",e);return L(o,this.definition.body,this._params,this._locals,a,e)})}marshalledCall(n,e,t,r){return r(n,e,async(a,o,i)=>{const s={spatialReference:n.spatialReference,services:n.services,globalScope:t.globalScope,depthCounter:{depth:n.depthCounter.depth+1},libraryResolver:n.libraryResolver,exports:n.exports,console:n.console,abortSignal:n.abortSignal,lrucache:n.lrucache,timeZone:n.timeZone??null,interceptor:n.interceptor,localScope:new k,track:n.track};return i=i.map(e=>!(0,d.i)(e)||e instanceof f.CU?e:(0,f.o6)(e,n,r)),(0,f.o6)(await L(s,this.definition.body,this._params,this._locals,i,e),t,r)})}}async function L(n,e,t,r,a,o){if(t.length!==a.length)throw new l.D$(n,"WrongNumberOfParameters",o);if(null!=n.localScope){for(let e=0;e<t.length;e++)n.localScope[t[e]]={value:a[e]};for(const e of r)n.localScope[e]=x}const i=await q(n,e);if(i instanceof d.R)return i.value;if(i===d.z)throw new l.D$(n,"UnexpectedToken",o);if(i===d.A)throw new l.D$(n,"UnexpectedToken",o);return i instanceof d.I?i.value:i}class M extends a.x{constructor(n){super(),this.moduleGlobalContext=n}global(n){const e=(0,r.X)(n);if(this.moduleGlobalContext.exports.has(e))throw new l.D$(null,"ModuleExportNotFound",null);const t=this.moduleGlobalContext.globalScope[e];if(I(t),(0,d.i)(t.value)&&!(t.value instanceof f.CU)){const n=new f.CU;return n.fn=t.value,n.parameterEvaluator=E,n.context=this.moduleGlobalContext,this.moduleGlobalContext.globalScope[e]={value:n},n}return t.value}setGlobal(n,e){if((0,d.i)(e))throw new l.D$(null,"AssignModuleFunction",null);const t=(0,r.X)(n);if(this.moduleGlobalContext.exports.has(t))throw new l.D$(null,"ModuleExportNotFound",null);this.moduleGlobalContext.globalScope[t]={value:e}}hasGlobal(n){return this.moduleGlobalContext.exports.has((0,r.X)(n))}static async load(n,e){const{globals:t,exports:a}=(0,i.aU)(e),s=new cn;for(const n of t)n in s||(s[n]=x);const c=n.spatialReference??N.A.WebMercator,l={lrucache:n.lrucache,interceptor:n.interceptor,services:n.services,console:n.console??un,abortSignal:n.abortSignal??r._,timeZone:n.timeZone??null,spatialReference:c,track:null,depthCounter:{depth:1},libraryResolver:new o.a(n.libraryResolver._moduleSingletons,e.loadedModules),exports:a,localScope:null,globalScope:s};return await _(l,e),new M(l)}}async function U(n,e,t){return!0===e.preparsed?t(n,null,e.arguments):t(n,e,await B(n,e))}async function Z(n,e){e.breakpoint&&await e.breakpoint();try{switch(e.type){case"UpdateExpression":return await async function(n,e){const t=e.argument;if("CallExpression"===t.type)throw new l.D$(n,"NeverReach",e);if("MemberExpression"===t.type){const r=await Z(n,t.object);let a,o;if(!0===t.computed)a=await Z(n,t.property);else{if("Identifier"!==t.property.type)throw new l.D$(n,"Unrecognized",e);a=t.property.name}if((0,O.cy)(r)){if(!(0,O.Et)(a))throw new l.D$(n,"ArrayAccessMustBeNumber",e);if(a<0&&(a=r.length+a),a<0||a>=r.length)throw new l.D$(n,"OutOfBounds",e);o=(0,d.r)(r[a]),r[a]="++"===e.operator?o+1:o-1}else if(r instanceof c.A){if(!1===(0,O.Kg)(a))throw new l.D$(n,"KeyAccessorMustBeString",e);if(!0!==r.hasField(a))throw new l.D$(n,"FieldNotFound",e,{key:a});o=(0,d.r)(r.field(a)),r.setField(a,"++"===e.operator?o+1:o-1)}else if(r instanceof M){if(!1===(0,O.Kg)(a))throw new l.D$(n,"ModuleAccessorMustBeString",e);if(!0!==r.hasGlobal(a))throw new l.D$(n,"ModuleExportNotFound",e);o=(0,d.r)(r.global(a)),r.setGlobal(a,"++"===e.operator?o+1:o-1)}else{if(!(0,d.k)(r))throw(0,d.j)(r)?new l.D$(n,"Immutable",e):new l.D$(n,"InvalidParameter",e);if(!1===(0,O.Kg)(a))throw new l.D$(n,"KeyAccessorMustBeString",e);if(!0!==r.hasField(a))throw new l.D$(n,"FieldNotFound",e,{key:a});o=(0,d.r)(r.field(a)),r.setField(a,"++"===e.operator?o+1:o-1)}return!1===e.prefix?o:"++"===e.operator?o+1:o-1}const r=J(n,t),a=(0,d.r)(R(r.var).value),o="++"===e.operator?a+1:a-1;return r.scope[r.id]={value:o},!1===e.prefix?a:"++"===e.operator?a+1:a-1}(n,e);case"AssignmentExpression":return await async function(n,e){const t=e.left;if("MemberExpression"===t.type){const r=await Z(n,t.object);let a;if(!0===t.computed)a=await Z(n,t.property);else{if("Identifier"!==t.property.type)throw new l.D$(n,"InvalidIdentifier",e);a=t.property.name}const o=await Z(n,e.right);if((0,O.cy)(r)){if(!(0,O.Et)(a))throw new l.D$(n,"ArrayAccessMustBeNumber",e);if(a<0&&(a=r.length+a),a<0||a>r.length)throw new l.D$(n,"OutOfBounds",e);if(a===r.length){if("="!==e.operator)throw new l.D$(n,"OutOfBounds",e);r[a]=T(o,e.operator,r[a],e,n)}else r[a]=T(o,e.operator,r[a],e,n)}else if(r instanceof c.A){if(!1===(0,O.Kg)(a))throw new l.D$(n,"KeyAccessorMustBeString",e);if(!0===r.hasField(a))r.setField(a,T(o,e.operator,r.field(a),e,n));else{if("="!==e.operator)throw new l.D$(n,"FieldNotFound",e,{key:a});r.setField(a,T(o,e.operator,null,e,n))}}else if(r instanceof M){if(!1===(0,O.Kg)(a))throw new l.D$(n,"KeyAccessorMustBeString",e);if(!0!==r.hasGlobal(a))throw new l.D$(n,"ModuleExportNotFound",e);r.setGlobal(a,T(o,e.operator,r.global(a),e,n))}else{if(!(0,d.k)(r))throw(0,d.j)(r)?new l.D$(n,"Immutable",e):new l.D$(n,"InvalidParameter",e);if(!1===(0,O.Kg)(a))throw new l.D$(n,"KeyAccessorMustBeString",e);if(!0===r.hasField(a))r.setField(a,T(o,e.operator,r.field(a),e,n));else{if("="!==e.operator)throw new l.D$(n,"FieldNotFound",e,{key:a});r.setField(a,T(o,e.operator,null,e,n))}}return d.v}const r=J(n,t),a=await Z(n,e.right);return r.scope[r.id]={value:T(a,e.operator,"="!==e.operator?R(r.var).value:null,e,n)},d.v}(n,e);case"TemplateLiteral":return await async function(n,e){let t="",r=0;for(const a of e.quasis)if(t+=a.value?a.value.cooked:"",!1===a.tail){if(e.expressions[r]){const a=await Z(n,e.expressions[r]);if((0,d.i)(a))throw new l.D$(n,"NoFunctionInTemplateLiteral",e);t+=(0,d.s)(a)}r++}return t}(n,e);case"Identifier":return Q(n,e);case"MemberExpression":return await async function(n,e){return Y(n,await Z(n,e.object),e)}(n,e);case"Literal":return e.value;case"CallExpression":return await async function(n,e){return nn(n,"Identifier"===e.callee.type?P(n,e.callee,"FunctionNotFound"):await Z(n,e.callee),e)}(n,e);case"UnaryExpression":return await async function(n,e){const t=await Z(n,e.argument);if((0,O.Lm)(t)){if("!"===e.operator)return!t;if("-"===e.operator)return-1*(0,d.r)(t);if("+"===e.operator)return 1*(0,d.r)(t);if("~"===e.operator)return~(0,d.r)(t);throw new l.D$(n,"UnsupportUnaryOperator",e)}if("-"===e.operator)return-1*(0,d.r)(t);if("+"===e.operator)return 1*(0,d.r)(t);if("~"===e.operator)return~(0,d.r)(t);throw new l.D$(n,"UnsupportUnaryOperator",e)}(n,e);case"BinaryExpression":return await async function(n,e){const t=await Z(n,e.left),r=await Z(n,e.right);switch(e.operator){case"|":case"<<":case">>":case">>>":case"^":case"&":return(0,d.x)((0,d.r)(t),(0,d.r)(r),e.operator);case"==":return(0,d.w)(t,r);case"!=":return!(0,d.w)(t,r);case"<":case">":case"<=":case">=":return(0,d.u)(t,r,e.operator);case"+":return(0,O.Kg)(t)||(0,O.Kg)(r)?(0,d.s)(t)+(0,d.s)(r):(0,d.r)(t)+(0,d.r)(r);case"-":return(0,d.r)(t)-(0,d.r)(r);case"*":return(0,d.r)(t)*(0,d.r)(r);case"/":return(0,d.r)(t)/(0,d.r)(r);case"%":return(0,d.r)(t)%(0,d.r)(r);default:throw(0,C.Ur)(e.operator),new l.D$(n,"UnsupportedOperator",e)}}(n,e);case"LogicalExpression":return await async function(n,e){const t=await Z(n,e.left);if(!(0,O.Lm)(t))throw new l.D$(n,"LogicalExpressionOnlyBoolean",e);switch(e.operator){case"||":{if(!0===t)return t;const r=await Z(n,e.right);if((0,O.Lm)(r))return r;throw new l.D$(n,"LogicExpressionOrAnd",e)}case"&&":{if(!1===t)return t;const r=await Z(n,e.right);if((0,O.Lm)(r))return r;throw new l.D$(n,"LogicExpressionOrAnd",e)}default:throw(0,C.Ur)(e.operator),new l.D$(n,"LogicExpressionOrAnd",e)}}(n,e);case"ArrayExpression":return await async function(n,e){const t=[];for(let r=0;r<e.elements.length;r++)t.push(await Z(n,e.elements[r]));for(let r=0;r<t.length;r++){if((0,d.i)(t[r]))throw new l.D$(n,"NoFunctionInArray",e);t[r]===d.v&&(t[r]=null)}return t}(n,e);case"ObjectExpression":return await async function(n,e){const t=[];for(let r=0;r<e.properties.length;r++){const a=e.properties[r],o=await Z(n,a.value),i="Identifier"===a.key.type?a.key.name:await Z(n,a.key);t[r]={key:i,value:o}}const r=Object.create(null),a=new Map;for(let o=0;o<t.length;o++){const i=t[o];if((0,d.i)(i.value))throw new l.D$(n,"NoFunctionInDictionary",e);if(!1===(0,O.Kg)(i.key))throw new l.D$(n,"KeyMustBeString",e);let s=i.key.toString();const c=s.toLowerCase();a.has(c)?s=a.get(c):a.set(c,s),i.value===d.v?r[s]=null:r[s]=i.value}const o=new c.A(r);return o.immutable=!1,o}(n,e);case"MemberAccessChainExpression":return await async function(n,e){const t=(0,i.YZ)(e);let r=await Z(n,t.root);for(const e of t.sections){const t=await H(n,r,e.checked);if(null==t)return null;r=await V(n,t,e.unchecked)}return r}(n,e);case"SafeMemberExpression":throw F().error("SafeMemberExpression outside of MemberAccessChainExpression"),new l.D$(null,"Unrecognized",e);default:throw(0,C.Ur)(e),new l.D$(n,"Unrecognized",e)}}catch(t){throw(0,l.Nh)(n,e,t)}}async function q(n,e){e.breakpoint&&await e.breakpoint();try{switch(e.type){case"ImportDeclaration":return await async function(n,e){const t=J(n,e.specifiers[0].local),r=n.libraryResolver;if(null==r)throw F().error("Internal error: module loader not initialized"),new l.D$(n,"NeverReach",e);const a=r.loadLibrary(t.id);let o;return r._moduleSingletons?.has(a.uri)?o=r._moduleSingletons.get(a.uri):(o=await M.load(n,a.syntax),r._moduleSingletons?.set(a.uri,o)),t.scope[t.id]={value:o},d.v}(n,e);case"ExportNamedDeclaration":return await async function(n,e){return await q(n,e.declaration),d.v}(n,e);case"VariableDeclaration":return await async function(n,e){for(const t of e.declarations)await X(n,t);return d.v}(n,e);case"BlockStatement":return await _(n,e);case"FunctionDeclaration":return await async function(n,e){if(null!=n.localScope)throw F().error("Function declarations are only valid in global scope."),new l.D$(n,"NeverReach",e);const t=(0,r.X)(e.id);if(!(t in n.globalScope))throw F().error(`Function "${t}" not declared.`),new l.D$(n,"NeverReach",e);const a=(0,i.SV)(e),o=e.params.map(n=>(0,r.X)(n)),s=Array.from(a).filter(n=>!o.includes(n));return n.globalScope[t]={value:new j(e,n,o,s)},d.v}(n,e);case"ReturnStatement":return await async function(n,e){if(null===e.argument)return new d.R(d.v);const t=await Z(n,e.argument);return new d.R(t)}(n,e);case"IfStatement":return await async function(n,e){const t=await Z(n,e.test);if(!0===t)return q(n,e.consequent);if(!1===t)return null!==e.alternate?q(n,e.alternate):d.v;throw new l.D$(n,"BooleanConditionRequired",e)}(n,e);case"ExpressionStatement":return await async function(n,e){const t=await Z(n,e.expression);return t===d.v?d.v:new d.I(t)}(n,e);case"ForStatement":return await async function(n,e){try{for(null!==e.init&&("VariableDeclaration"===e.init.type?await q(n,e.init):await Z(n,e.init));;){if(null!==e.test){const t=await Z(n,e.test);if(!0===n.abortSignal?.aborted)throw new l.D$(n,"Cancelled",e);if(!1===t)break;if(!0!==t)throw new l.D$(n,"BooleanConditionRequired",e)}const t=await q(n,e.body);if(t===d.z)break;if(t instanceof d.R)return t;null!==e.update&&await Z(n,e.update)}return d.v}catch(n){throw n}}(n,e);case"WhileStatement":return await async function(n,e){let t=await Z(n,e.test);if(!1===t)return d.v;if(!0!==t)throw new l.D$(n,"BooleanConditionRequired",e);for(;!0===t;){const r=await q(n,e.body);if(r===d.z)break;if(r instanceof d.R)return r;if(t=await Z(n,e.test),!0!==t&&!1!==t)throw new l.D$(n,"BooleanConditionRequired",e)}return d.v}(n,e);case"ForInStatement":return await async function(n,e){const t=await Z(n,e.right);"VariableDeclaration"===e.left.type&&await q(n,e.left);const r=J(n,"VariableDeclaration"===e.left.type?e.left.declarations[0].id:e.left);return(0,O.cy)(t)||(0,O.Kg)(t)?await z(n,e,t,r):(0,d.j)(t)?await K(n,e,t,r):t instanceof c.A||(0,d.y)(t)?await z(n,e,t.keys(),r,"k"):(0,d.m)(t)?await G(n,e,t,r):(0,d.h)(t)?await z(n,e,(0,s.T)(t),r,"k"):d.v}(n,e);case"ForOfStatement":return await async function(n,e){const t=await Z(n,e.right);"VariableDeclaration"===e.left.type&&await q(n,e.left);const r=J(n,"VariableDeclaration"===e.left.type?e.left.declarations[0].id:e.left);return(0,O.cy)(t)||(0,O.Kg)(t)?await z(n,e,t,r,"k"):(0,d.j)(t)?await K(n,e,t,r,"k"):t instanceof c.A||(0,d.y)(t)?await async function(n,e,t,r){for(const a of t.keys()){const o=t.field(a);r.scope[r.id]={value:c.A.containerEntry(a,o)};const i=await q(n,e.body);if(i===d.z)break;if(i instanceof d.R)return i}return d.v}(n,e,t,r):(0,d.m)(t)?await G(n,e,t,r):(0,d.h)(t)?await async function(n,e,t,r){for(const a of(0,s.T)(t)){const o=(0,s.Ny)(t,a,n,e);r.scope[r.id]={value:c.A.containerEntry(a,o)};const i=await q(n,e.body);if(i===d.z)break;if(i instanceof d.R)return i}return d.v}(n,e,t,r):d.v}(n,e);case"BreakStatement":return d.z;case"EmptyStatement":return d.v;case"ContinueStatement":return d.A;default:throw(0,C.Ur)(e),new l.D$(n,"Unrecognized",e)}}catch(t){throw(0,l.Nh)(n,e,t)}}async function z(n,e,t,r,a="i"){const o=t.length;for(let i=0;i<o;i++){if("k"===a){if(i>=t.length)throw new l.D$(n,"OutOfBounds",e);r.scope[r.id]={value:t[i]}}else r.scope[r.id]={value:i};const o=await q(n,e.body);if(o===d.z)break;if(o instanceof d.R)return o}return d.v}async function K(n,e,t,r,a="i"){const o=t.length();for(let i=0;i<o;i++){r.scope[r.id]="k"===a?{value:t.get(i)}:{value:i};const o=await q(n,e.body);if(o===d.z)break;if(o instanceof d.R)return o}return d.v}async function G(n,e,t,r){n:for await(const a of await t.queryAll(n.abortSignal))for(const o of a){r.scope[r.id]={value:u.Xj.createFromGraphicLikeObject(o.geometry,o.attributes,t,n.timeZone)};const a=await q(n,e.body);if(a===d.z)break n;if(a instanceof d.R)return a}return d.v}function T(n,e,t,r,a){switch(e){case"=":return n===d.v?null:n;case"/=":return(0,d.r)(t)/(0,d.r)(n);case"*=":return(0,d.r)(t)*(0,d.r)(n);case"-=":return(0,d.r)(t)-(0,d.r)(n);case"+=":return(0,O.Kg)(t)||(0,O.Kg)(n)?(0,d.s)(t)+(0,d.s)(n):(0,d.r)(t)+(0,d.r)(n);case"%=":return(0,d.r)(t)%(0,d.r)(n);default:throw new l.D$(a,"UnsupportedOperator",r)}}async function _(n,e){return W(n,e,0)}async function W(n,e,t){if(t>=e.body.length)return d.v;const r=await q(n,e.body[t]);return r instanceof d.R||r===d.z||r===d.A||t===e.body.length-1?r:W(n,e,t+1)}async function X(n,e){let t=null;t=null===e.init?null:await Z(n,e.init),t===d.v&&(t=null);const r=J(n,e.id);r.scope[r.id]={value:t}}async function Y(n,e,t){const r=t.computed?await Z(n,t.property):t.property.name;return(0,s.Xf)(e,r)}async function V(n,e,t){for(const r of t)switch(r.type){case"MemberExpression":e=await Y(n,e,r);break;case"CallExpression":e=await nn(n,e,r);break;default:throw new l.D$(null,"Unrecognized",r)}return e}async function H(n,e,t){const r=t.computed?await Z(n,t.property):t.property.name;return(0,s.c$)(e,r)}function Q(n,e){return P(n,e)}async function nn(n,e,t){if((0,d.i)(e))return e.call(n,t);throw new l.D$(n,"CallNonFunction",t)}async function en(n,e){(0,d.B)(null===e.arguments?[]:e.arguments,3,3,n,e);const t=await Z(n,e.arguments[0]);if(!1===(0,O.Lm)(t))throw new l.D$(n,"BooleanConditionRequired",e);return Z(n,t?e.arguments[1]:e.arguments[2])}async function tn(n,e){(0,d.B)(null===e.arguments?[]:e.arguments,2,3,n,e);const t=await Z(n,e.arguments[0]);if(3===e.arguments.length){const r=await Z(n,e.arguments[1]),a=(0,s.jd)(t,r);return null!=a&&""!==a?a:Z(n,e.arguments[2])}return null==t||""===t?Z(n,e.arguments[1]):t}async function rn(n,e){if(e.arguments.length<2)throw new l.D$(n,"WrongNumberOfParameters",e);if(2===e.arguments.length)return Z(n,e.arguments[1]);if((e.arguments.length-1)%2==0)throw new l.D$(n,"WrongNumberOfParameters",e);return an(n,e,1,await Z(n,e.arguments[0]))}async function an(n,e,t,r){const a=await Z(n,e.arguments[t]);if((0,d.w)(a,r))return Z(n,e.arguments[t+1]);const o=e.arguments.length-t;return 1===o?Z(n,e.arguments[t]):2===o?null:3===o?Z(n,e.arguments[t+2]):an(n,e,t+2,r)}async function on(n,e){if(e.arguments.length<3)throw new l.D$(n,"WrongNumberOfParameters",e);if(e.arguments.length%2==0)throw new l.D$(n,"WrongNumberOfParameters",e);const t=await Z(n,e.arguments[0]);if(!1===(0,O.Lm)(t))throw new l.D$(n,"BooleanConditionRequired",e.arguments[0]);return sn(n,e,0,t)}async function sn(n,e,t,r){if(!0===r)return Z(n,e.arguments[t+1]);if(3===e.arguments.length-t)return Z(n,e.arguments[t+2]);const a=await Z(n,e.arguments[t+2]);if(!1===(0,O.Lm)(a))throw new l.D$(n,"ModuleExportNotFound",e.arguments[t+2]);return sn(n,e,t+2,a)}const cn=function(){const n=Object.create(null);(0,y.d)(n,E),(0,A.d)(n,E),(0,m.d)(n,E,Q),(0,S.d)(n,E),(0,v.d)(n,E),(0,b.d)(n,E),(0,D.dW)(n,E),(0,g.registerFunctions)({functions:n,compiled:!1,signatures:null,evaluateIdentifier:null,mode:"async",standardFunction:E,standardFunctionAsync:U}),n.iif=en,n.defaultvalue=tn,n.decode=rn,n.when=on;const e=function(){this.textformatting={value:c.A.textFormatting()}};(e.prototype=Object.create(null)).infinity=Object.freeze({value:Number.POSITIVE_INFINITY}),e.prototype.pi=Object.freeze({value:Math.PI});for(const[t,r]of Object.entries(n))e.prototype[t]=Object.freeze({value:new f.UQ(r)});return e}();function ln(n){const e={mode:"async",compiled:!1,functions:Object.create(null),signatures:[],standardFunction:E,standardFunctionAsync:U,evaluateIdentifier:Q};for(let t=0;t<n.length;t++)n[t].registerFunctions(e);for(const[n,t]of Object.entries(e.functions))cn.prototype[n]=Object.freeze({value:new f.UQ(t)});for(let n=0;n<e.signatures.length;n++)(0,w.WC)(e.signatures[n],"async")}function un(n){console.log(n)}function fn(n,e){const t=new Set(Object.keys(e?.vars||{}).map(n=>(0,r.X)(n))),a=new Set(Object.keys(e?.customfunctions||{}).map(n=>(0,r.X)(n))),{globals:s,exports:c}=(0,i.aU)(n);return async e=>{const i=e.spatialReference??N.A.WebMercator;let w=null;n.usesModules&&(w=new o.a(new Map,n.loadedModules));const p=new cn;for(const n of a)null!=e.customfunctions&&n in e.customfunctions?p[n]={value:new f.UQ(e.customfunctions[n])}:p[n]=x;for(const n of t){if(null==e.vars||!(n in e.vars)){n in p||(p[n]=x);continue}const t=e.vars[n]??null;(0,O.DU)(t)?p[n]={value:u.Xj.createFromGraphic(t,e.timeZone??null)}:p[n]={value:t}}for(const n of s)n in p||(p[n]=x);const h={lrucache:e.lrucache,interceptor:e.interceptor,services:e.services,console:e.console??un,abortSignal:e.abortSignal??r._,timeZone:e.timeZone??null,spatialReference:i,track:e.track,depthCounter:{depth:1},libraryResolver:w,exports:c,localScope:null,globalScope:p},y=await _(h,n);if(y instanceof d.R||y instanceof d.I){const n=y.value;if((0,d.q)(n))return null;if((0,d.i)(n))throw new l.D$(h,"IllegalResult",null);return n}if((0,d.q)(y))return null;if(y===d.z)throw new l.D$(h,"IllegalResult",null);if(y===d.A)throw new l.D$(h,"IllegalResult",null);throw new l.D$(h,"NeverReach",null)}}function dn(n,e){return fn(n,e)(e)}ln([h.A]),ln([p.A])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[905],{10427:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(31635),r=s(91429),o=s(35625);let n=class extends o.A{constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,i.Cg)([(0,r.MZ)({type:["location"]})],n.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],n.prototype,"xField",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],n.prototype,"yField",void 0),n=(0,i.Cg)([(0,r.$K)("esri.layers.support.ParquetGeometryEncodingLocation")],n)},16238:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(31635),r=s(91429),o=s(35625);let n=class extends o.A{constructor(e){super(e),this.type="wkb",this.field=null}};(0,i.Cg)([(0,r.MZ)({type:["wkb"]})],n.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["counter-clockwise"],json:{write:!0}})],n.prototype,"orientation",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],n.prototype,"field",void 0),n=(0,i.Cg)([(0,r.$K)("esri.layers.support.ParquetGeometryEncodingWkb")],n)},35625:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(31635),r=s(69540),o=s(25482),n=s(91429);let a=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.type=null}};(0,i.Cg)([(0,n.MZ)({type:["wkb","location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.support.ParquetGeometryEncodingBase")],a)},42760:(e,t,s)=>{s.d(t,{hG:()=>y,nc:()=>m,sA:()=>h,ye:()=>d}),s(7762);var i=s(49186),r=s(66552),o=s(16930),n=s(20437),a=s(30524),u=s(54625),l=s(10427),c=s(16238),p=s(63892);const d=new r.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"}),f=new Set(["uncompressed","snappy","gzip"]);function h(e){return d.toJSON(e)}function y(e){return d.fromJSON(e)}async function m(e,t={}){if(e.urls.length<1)throw new i.A("parquet:bad-input","At least one url must be specified",e);if(e.geometryType&&e.spatialReference&&e.geometryEncoding&&e.fields)return e;const s=await(0,p.DV)(e.urls.getItemAt(0),{getCustomParameters:()=>t.customParameters});for(const e of s.compressionCodecs())if(!f.has(e))throw new i.A("parquet:unsupported",`Compression codec ${e} is unsupported. Must be of type ${Array.from(f).join(",")}`);const r=(0,p.hD)(s),d={...e,file:s};if(null==d.fields&&(d.fields=s.fields(!1).map(e=>n.A.fromJSON({name:e.name,alias:e.name,type:e.type}))),null!=d.geometryEncoding){const e=d.geometryEncoding;switch(e.type){case"wkb":{const t=d.fields.find(t=>t.name===e.field);if(!t)throw new i.A("parquet:unsupported",`Geometry encoding references field ${e.field} which does not exist`);if("blob"!==t.type)throw new i.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${t.type} but expected 'blob'`);break}case"location":for(const t of[e.xField,e.yField])if(null!=t){const e=d.fields.find(e=>e.name===t);if(!e)throw new i.A("parquet:unsupported",`Geometry encoding references field ${t} which does not exist`);if(!(0,a.WA)(e))throw new i.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${e.type} but expected a numeric`)}}}null==d.geometryEncoding&&(d.geometryEncoding=function(e,t){if(null!=e){const t=e.primary_column,s=e.columns[t];return new c.A({field:t,orientation:"counterclockwise"===s.orientation?"counter-clockwise":null})}const s=t.filter(e=>(0,a.WA)(e)).map(e=>e.name),i=(0,u.i_)(s);return i.latitudeFieldName&&i.longitudeFieldName?new l.A({xField:i.longitudeFieldName,yField:i.latitudeFieldName}):null}(r,d.fields));const h=(0,p.Xj)(s);if(h&&(d.displayOptimization=h),d.geometryEncoding)switch(d.geometryEncoding.type){case"location":null==d.spatialReference&&(d.spatialReference=o.A.WGS84),null==d.geometryType&&(d.geometryType="point");break;case"wkb":{if(!r)return d;const e=r.primary_column,t=r.columns[e];if(d.geometryType||(d.geometryType=function(e){const{geometry_types:t}=e,s=new Set;for(const e of t){const t=g(e);t&&s.add(t)}if(s.size>1)throw new i.A("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:s});return 1===s.size?s.values().next().value:void 0}(t)),d.spatialReference||(d.spatialReference=function(e){const t=e.crs?.id?.code;return t&&"number"==typeof t?new o.A({wkid:t}):void 0}(t)),d.fields)for(const e of Object.keys(r.columns))d.fields=d.fields.filter(t=>t.name!==e)}}if(d.displayOptimization){const e=d.displayOptimization.index;if(!d.spatialReference&&e.wkid&&(d.spatialReference=new o.A({wkid:e.wkid})),!d.geometryType)switch(e.type){case"z":d.geometryType="point";break;case"xz":d.geometryType=e.geometryType}}return d}function g(e){switch(e){case"Point":return"point";case"Polygon":case"MultiPolygon":return"polygon";case"LineString":return"polyline";case"MultiPoint":return"multipoint";default:return null}}},48459:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var i=s(31635),r=s(7762),o=s(21818),n=s(49186),a=s(44208),u=s(53966),l=s(74887),c=s(563),p=s(16930),d=s(70328),f=s(56390),h=s(8384),y=s(64714),m=s(20437),g=s(95466),_=s(30524),w=s(10427),S=s(16238);function x(e){switch(e.type){case"wkb":return S.A.fromJSON(e);case"location":return w.A.fromJSON(e)}}var z=s(42760),b=s(39412),R=s(63892),v=s(30661),F=s(28923),C=s(44320),I=s(35258),A=s(16630);const q=new v.Z,O="__OBJECTID";class E{constructor(){this._fileInfos=new Map,this._queue=new c.QueueProcessor({concurrency:4,process:(e,t)=>this._executeQuery(e,t)})}async load(e){const t=e.spatialReference?p.A.fromJSON(e.spatialReference):void 0;if(t&&!t.isWGS84&&!t.isWebMercator)throw new n.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");const s=await(0,z.nc)({urls:new r.A(e.urls),fields:e.fields?.map(e=>m.A.fromJSON(e)),geometryEncoding:e.geometryEncoding?x(e.geometryEncoding):null,geometryType:e.geometryType?(0,z.hG)(e.geometryType):null,displayOptimization:e.displayOptimization,spatialReference:t},{customParameters:e.customParameters});if(!s.fields)throw new n.A("parquet:unsupported","Fields must be defined");let o;if(s.spatialReference&&s.geometryType){if(!s.spatialReference)throw new n.A("parquet:unsupported","SpatialReference must be defined");if(!s.spatialReference.isGeographic&&!s.spatialReference.isWebMercator)throw new n.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");s.spatialReference.isGeographic&&!s.spatialReference.isWGS84&&(u.A.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:s.spatialReference}),s.spatialReference=p.A.WGS84),o={geometry:s.geometryEncoding?{geometryType:(0,z.sA)(s.geometryType),spatialReference:s.spatialReference.toJSON(),encoding:s.geometryEncoding.toJSON()}:null,displayOptimization:s.displayOptimization}}this.setCustomParameters(e.customParameters),this._geometryInfo=o;const a=e.urls;for(const e of a){const t=await(0,R.DV)(e,{geometryInfo:o,getCustomParameters:()=>this._customParameters});this._fileInfos.set(e,{index:this._fileInfos.size,file:t})}this._capabilities=G(this.getFileStatistics());const l=this._fileInfos.values().next().value?.file;if(!l)return{layerDefinition:{},capabilities:G(null)};const{fields:c}=s;if(null==c)throw new n.A("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",c);c.push(new m.A({name:O,type:"oid",alias:O}));const f={fields:c.map(e=>({...e.toJSON(),column:l.columnForFieldName(e.name)})),timeZoneByFieldName:null},h=g.A.fromJSON(f);this._fieldsIndex=h;const _=(0,z.sA)(s.geometryType??"point");if(this._metadata=I.i.createFeature({fieldsIndex:f,geometryType:_,featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:s.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:_,featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:s.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},s.spatialReference&&(this._fullExtent=function(e,t){const s=(0,d.hZ)((0,d.vt)(),d.qv);for(const t of e){const e=(0,R.hD)(t.file);if(!e)return null;const i=e.columns[e.primary_column];if(!i.bbox)return null;const r=k(i.bbox);(0,d.RF)(s,r)}return{xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:t}}(this._fileInfos.values(),s.spatialReference.toJSON())),null==this._fullExtent&&"location"===s.geometryEncoding?.type){const{xField:e,yField:t}=s.geometryEncoding,r=(0,d.hZ)((0,d.vt)(),d.qv);for(const s of this._fileInfos.values())for(const o of s.file.rowGroups()){const s={stack:[],error:void 0,hasError:!1};try{const n=(0,i.mS)(s,o.columnDescriptorForAttribute(e),!1),a=(0,i.mS)(s,o.columnDescriptorForAttribute(t),!1),u=[n.minValue(),a.minValue(),n.maxValue(),a.maxValue()];(0,d.DC)(r,u),o.free()}catch(e){s.error=e,s.hasError=!0}finally{(0,i.hk)(s)}}this._fullExtent={xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:s.spatialReference?.toJSON()}}return{capabilities:this._capabilities,layerDefinition:{fields:s.fields?.map(e=>e.toJSON()),drawingInfo:(0,y.F0)(_),extent:this._fullExtent??void 0,geometryType:_,geometryEncoding:s.geometryEncoding?.toJSON(),displayOptimization:s.displayOptimization}}}destroy(){for(const e of this._fileInfos.values())e.file.free();this._fileInfos.clear(),this._queue.destroy()}setCustomParameters(e){this._customParameters=e}getFileStatistics(){if(!this._fileInfos.size)return null;const e=Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.byteLength(),0);return{featureCount:this._getFeatureCount(),byteLength:e}}async updateFiles(e){const t=new Set(e);for(const[e,s]of this._fileInfos.entries())t.has(e)?t.delete(e):(s.file.free(),this._fileInfos.delete(e));for(const e of t){const t=await(0,R.DV)(e,{geometryInfo:this._geometryInfo,getCustomParameters:()=>this._customParameters});this._fileInfos.set(e,{index:this._fileInfos.size,file:t})}}async queryFeatures(e,t){return this._validateQuery(e),function(e){return!!(e.objectIds?.length||e.outStatistics||e.orderByFields?.length||e.returnDistinctValues)}(e)||(e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0),(e.outStatistics||e.returnDistinctValues)&&delete e.returnGeometry,(await this._enqueueQuery(e,t)).createQueryResponse()}async queryFeatureCount(e,t){return this._validateQuery(e),M(e)?(delete e.outFields,delete e.returnGeometry,(await this._enqueueQuery(e,t)).createQueryResponseForCount()):this._getFeatureCount()}async queryObjectIds(e,t){return this._validateQuery(e),M(e)?(e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,delete e.returnGeometry,delete e.outFields,(await this._enqueueQuery(e,t)).items.map(e=>e.getObjectId())):Array.from({length:this._getFeatureCount()},(e,t)=>t)}async queryExtent(e,t){if(this._validateQuery(e),this._fullExtent&&!M(e))return{count:this._getFeatureCount(),extent:this._fullExtent};const s=(0,o.zI)(this._metadata.spatialReference);e.returnGeometry=!0,delete e.outFields;const i=(0,d.hZ)((0,d.vt)(),d.qv),r=(0,d.vt)(),n=await this._enqueueQuery(e,t);let a=0;for(const e of n.items)e.getBounds(r)&&((0,d.RF)(i,r),a+=1);return{count:a,extent:(0,f.Wc)(i,s,e.outSR?(0,o.zI)(e.outSR):s,s,!1)}}_getFeatureCount(){return Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.numRows(),0)}_validateQuery(e){if(!this._capabilities.query.supportsStatistics&&e.outStatistics)throw new n.A("parquet:unsupported","Statistics queries are not supported",{query:e});if(!this._capabilities.query.supportsOrderBy&&e.orderByFields?.length)throw new n.A("parquet:unsupported","Queries using orderBy are not supported",{query:e});if(!this._capabilities.query.supportsDistinct&&e.returnDistinctValues)throw new n.A("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:e})}async*_fetchChunks(e,t){const s=await(0,b.N)();for(const i of this._fileInfos.values()){const r=s.Query.new();r.setOutFields(e.fields),r.setReturnGeometry(e.returnGeometry);const o=await i.file.executeQuery(r),n=[],a=o.next(t);for(let e=0;e<4;e++)n.push(o.next(t));let u=await a;for(;null!=u;){(0,l.Te)(t);const e=new A.s(this._metadata,this._fieldsIndex,u,i.index),s=T([new F.j(e,null,0,!1)],this._queryEngineParams),r=n.shift();n.push(o.next(t)),yield s,u=await r}}}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){const s=await this._getReadParams(e),i=await(0,b.N)();if(e.objectIds?.length)for(const r of this._fileInfos.values()){const o=i.Query.new();o.setOutFields(s.fields),o.setReturnGeometry(s.returnGeometry),o.setIds(new Uint32Array(e.objectIds));const n=await r.file.executeQuery(o,t);let a=await n.next(t),u=0;const l=[];for(;null!=a;){const e=new A.s(this._metadata,this._fieldsIndex,a,r.index),s=new F.j(e,null,u++,!1);l.push(s),a=await n.next(t)}const c=[],p=T(l,this._queryEngineParams),d=await p.executeQueryForOpaqueFeatures(e,t);for(const e of d)c.push(e);return new h.G(c,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}let r=e.resultRecordCount??this._getFeatureCount(),o=e.resultOffset??0;delete e.resultRecordCount,delete e.resultOffset;const n=[];for await(const i of this._fetchChunks(s,t)){const s=await i.executeQueryForOpaqueFeatures(e,t);if(s.length>o){const t=s.slice(o,Math.min(o+r,s.length));for(const e of t)n.push(e);if(o=0,r-=t.length,0===r)return new h.G(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}else o-=s.length}return new h.G(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}async _getReadParams(e){const t=new Set;if(e.where&&await(0,_.hz)(t,this._fieldsIndex,e.where),e.outStatistics)for(const s of e.outStatistics)null!=s.onStatisticField&&t.add(s.onStatisticField);if(e.outFields)for(const s of e.outFields)t.add(s);return{fields:(t.has("*")?this._fieldsIndex.fields.map(e=>e.name):Array.from(t)).filter(e=>null!=this._fieldsIndex.get(e)?.column),returnGeometry:!!e.returnGeometry||!!e.geometry}}}function M(e){return Object.keys(e).some(e=>function(e){switch(e){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"where":case"objectIds":case"historicMoment":return!0;default:return!1}}(e))}function T(e,t){const s=new C.I;for(const t of e)s.insert(t);return new f.do({...t,featureStore:s})}function k(e){switch(e.length){case 4:return(0,d.Jt)((0,d.vt)(),e);case 6:return e;default:throw new n.A("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:e})}}function G(e){const t=e?.featureCount;let s=!1;return null!=t&&t<(0,a.A)("parquetlayer-full-query-feature-count")&&(s=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:s,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:s,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:s,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},54625:(e,t,s)=>{s.d(t,{i_:()=>r});var i=s(30524);function r(e,t,s){t=(0,i.rS)(t)?.toLowerCase(),s=(0,i.rS)(s)?.toLowerCase();const r=e.map(e=>e.toLowerCase()),a=t?e[r.indexOf(t)]:null,u=s?e[r.indexOf(s)]:null;return{longitudeFieldName:a||e[r.indexOf(n.find(e=>r.includes(e)))],latitudeFieldName:u||e[r.indexOf(o.find(e=>r.includes(e)))]}}const o=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],n=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"]},66344:(e,t,s)=>{s.d(t,{q:()=>a});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const s=this._db.get(e.id+t);return s?.size??0}put(e,t,s,r,n){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==s&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,s,r,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,s,0,0);const u=1+Math.max(n,-4)- -3;this._db.set(t,new o(s,r,u)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const s=this._db.get(t);if(!s)return;this._size-=s.size,e.size-=s.size;let i=s.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,s.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}s.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const s=this._db.get(t);if(s)return this._size-=s.size,e.size-=s.size,this._db.delete(t),++this._hit,s.entry;++this._miss}get(e,t){t=e.id+t;const s=this._db.get(t);if(void 0!==s)return this._db.delete(t),s.lives=s.lifetime,this._db.set(t,s),++this._hit,s.entry;++this._miss}peek(e,t){const s=this._db.get(e.id+t);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;s[r]=(s[r]||0)+e.size,this._users.forEach(s=>{const{id:r,name:o}=s;if(i.startsWith(r)){const s=t[o]||0;t[o]=s+e.size}})});const i={};this._users.forEach(e=>{const s=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[s]||0;t[s]=r,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"});const r=Object.keys(t);r.sort((e,s)=>t[s]-t[e]),r.forEach(s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]);for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,s]of this._db)t.startsWith(e.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s,i){const r=this._users.get(e.split(n)[0])?.removeFunc,o=r?.(t,i,s);return"number"==typeof o?o:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const s=t??this;if(s.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[o,a]of this._db)if(0===a.lifetime&&(!i||o.startsWith(i))){const i=t??this._users.get(o.split(n)[0]);if(this._purgeItem(o,a,i),s.size<=.9*e)return;r||=this._db.has(o)}}for(const[r,o]of this._db)if(!i||r.startsWith(i)){const i=t??this._users.get(r.split(n)[0]);if(this._purgeItem(r,o,i),s.size<=.9*e)return}}_purgeItem(e,t,s){if(this._db.delete(e),t.lives<=1){this._size-=t.size,s&&(s.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class o{constructor(e,t,s){this.entry=e,this.size=t,this.lifetime=s,this.lives=s}}const n=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new r,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,s=1){this._storage.put(this,e,t,s,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69540:(e,t,s)=>{s.d(t,{OU:()=>c,Pw:()=>p});var i=s(31635),r=s(69622),o=(s(44208),s(4718)),n=(s(53966),s(97768)),a=s(88620),u=s(64108);const l=Symbol("ClonableMixin"),c=e=>{var t;const s=e;let r=class extends s{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){const t=(0,a.oY)(this);(0,n.Lw)(t,"unable to clone instance of non-accessor class");const s=t.metadata,i=t.store,r={},u=new Map;for(const t in s){const n=s[t],a=i?.originOf(t),l=n.clonable;if(n.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let p=null;if("function"==typeof l)p=l(c,e);else if("reference"===l)p=c;else if(p=(0,o.TU)(c,e),null!=c&&null==p)continue;0===a?u.set(t,p):r[t]=p}const l=new(0,Object.getPrototypeOf(this).constructor)(r);if(u.size){const e=(0,a.oY)(l)?.store;if(e)for(const[t,s]of u)e.set(t,s,0)}return l}};return r=(0,i.Cg)([(0,u.$)("esri.core.Clonable")],r),r},p=c(r.A)},93470:(e,t,s)=>{s.d(t,{Cb:()=>o,HW:()=>c,JR:()=>r,JZ:()=>u,WR:()=>a,b6:()=>p,fT:()=>i,nC:()=>l,yM:()=>n});const i=[252,146,31,255],r=[153,153,153,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},u={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);