@arcgis/core 4.34.0-next.24 → 4.34.0-next.25

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 (363) hide show
  1. package/Basemap.js +1 -1
  2. package/analysis/VolumeMeasurement/CutFillOptions.d.ts +4 -0
  3. package/analysis/VolumeMeasurement/CutFillOptions.js +1 -1
  4. package/analysis/VolumeMeasurementAnalysis.js +1 -1
  5. package/applications/Components/imageryUtils.d.ts +4 -0
  6. package/applications/Components/imageryUtils.js +5 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{0867aa688fa8938906da.js → 03bef3f4b6b09b1e864b.js} +1 -1
  9. package/assets/esri/core/workers/chunks/06cdbccc9f325dcc303d.js +1 -0
  10. package/assets/esri/core/workers/chunks/07613c89255bdab6b7c6.js +1 -0
  11. package/assets/esri/core/workers/chunks/09618761df5c4fdd52a0.js +1 -0
  12. package/assets/esri/core/workers/chunks/0ae00339991f5387203e.js +1 -0
  13. package/assets/esri/core/workers/chunks/0b4b294f3ce74fde5620.js +1 -0
  14. package/assets/esri/core/workers/chunks/{146520d263b910b5bdc7.js → 0e96a3b7228f1ff8e6c5.js} +1 -1
  15. package/assets/esri/core/workers/chunks/109ef17dd4f9430bb686.js +1 -0
  16. package/assets/esri/core/workers/chunks/1597aca21334cab3b802.js +1 -0
  17. package/assets/esri/core/workers/chunks/196564ad230bef6b59cf.js +1 -0
  18. package/assets/esri/core/workers/chunks/19f8d551cbebc11db1eb.js +1 -0
  19. package/assets/esri/core/workers/chunks/1ceee047e3fa617b0600.js +1 -0
  20. package/assets/esri/core/workers/chunks/1d27701832ea139fcc20.js +1 -0
  21. package/assets/esri/core/workers/chunks/1f296f85becf1ca6714d.js +1 -0
  22. package/assets/esri/core/workers/chunks/1f8d7bd44d53c30df383.js +1 -0
  23. package/assets/esri/core/workers/chunks/1fabb5ec59da698c1618.js +1 -0
  24. package/assets/esri/core/workers/chunks/{919d2fd7ebc0c840a759.js → 219b2911668db120452b.js} +1 -1
  25. package/assets/esri/core/workers/chunks/29ae5723fa35aa73ff9b.js +1 -0
  26. package/assets/esri/core/workers/chunks/2b4b073254fe8b6a081c.js +1 -0
  27. package/assets/esri/core/workers/chunks/30293b88501b5d6162fc.js +1 -0
  28. package/assets/esri/core/workers/chunks/31533f5e8b76b307f61c.js +1 -0
  29. package/assets/esri/core/workers/chunks/347117e61e1c6edd074f.js +1 -0
  30. package/assets/esri/core/workers/chunks/3616eb2607843524483f.js +1 -0
  31. package/assets/esri/core/workers/chunks/36648facd56ee91afc7c.js +1 -0
  32. package/assets/esri/core/workers/chunks/394477e88be0c6790f02.js +1 -0
  33. package/assets/esri/core/workers/chunks/3b80b01551d124534a1b.js +1 -0
  34. package/assets/esri/core/workers/chunks/{89d91ce2f566dd3f57f7.js → 3be9ec0503a669bcfce6.js} +1 -1
  35. package/assets/esri/core/workers/chunks/3c9cf06ac6aa1db6c4f6.js +1 -0
  36. package/assets/esri/core/workers/chunks/40fc7c43feaeef8b814d.js +1 -0
  37. package/assets/esri/core/workers/chunks/42cddc8f8c8d73e22ee2.js +1 -0
  38. package/assets/esri/core/workers/chunks/437a4100a837ee16df7c.js +1 -0
  39. package/assets/esri/core/workers/chunks/453e536f566d80a9863b.js +1 -0
  40. package/assets/esri/core/workers/chunks/472c677a74d779ce62d7.js +1 -0
  41. package/assets/esri/core/workers/chunks/4b68b6985430c42316b7.js +1 -0
  42. package/assets/esri/core/workers/chunks/4ce671bc4d36387b55fa.js +1 -0
  43. package/assets/esri/core/workers/chunks/51cfa2f70ec222e1582b.js +1 -0
  44. package/assets/esri/core/workers/chunks/5284d46aecd6fe0345b8.js +1 -0
  45. package/assets/esri/core/workers/chunks/567385709e18ace93b1e.js +1 -0
  46. package/assets/esri/core/workers/chunks/5a9b27f2b343cd5b0852.js +1 -0
  47. package/assets/esri/core/workers/chunks/{4c2f3e43992a918e4c2d.js → 5ef3256c32c4b622bd11.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{5ce62d9fff80d014d186.js → 60aeb7a5ccd8bc71be02.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{55e9b02d70812f7cdac2.js → 63966066a963e9a1fb14.js} +1 -1
  50. package/assets/esri/core/workers/chunks/63f50ff2ae94f684d56b.js +1 -0
  51. package/assets/esri/core/workers/chunks/{8bf04be4052bf148777a.js → 6a1cf6b0ffdf6080b5c4.js} +1 -1
  52. package/assets/esri/core/workers/chunks/6deaa08e3a61a455e564.js +1 -0
  53. package/assets/esri/core/workers/chunks/6e9b4bfe2a1497c96100.js +1 -0
  54. package/assets/esri/core/workers/chunks/6efc3d120c9c2c09cb06.js +1 -0
  55. package/assets/esri/core/workers/chunks/7338ce95bceb2c7fab87.js +1 -0
  56. package/assets/esri/core/workers/chunks/{c64fa94cba71ba2794e2.js → 771012f129890f9a089c.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{d1b363c418a67b087306.js → 780ff9314f26ae62f75f.js} +1 -1
  58. package/assets/esri/core/workers/chunks/820cf4337b248a0cb63c.js +1 -0
  59. package/assets/esri/core/workers/chunks/{fedbf639a0788417a70f.js → 86abfce1f2ac93cc4d54.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{c94cc026c4ed330408fb.js → 8894483b91bcda845b6f.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{f050ab9d100012b77bb9.js → 8c5b1114cc2a58305a81.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{6ca764b4baadef5c1515.js → 92737419b66894799a34.js} +1 -1
  63. package/assets/esri/core/workers/chunks/9511e55e4fabb3235eac.js +1 -0
  64. package/assets/esri/core/workers/chunks/{909a6218db87cba2c9ba.js → 9a78cb291c966f8ddda6.js} +1 -1
  65. package/assets/esri/core/workers/chunks/9f8341caab3b1d02f387.js +1 -0
  66. package/assets/esri/core/workers/chunks/a08d018d8c137fc4ca17.js +1 -0
  67. package/assets/esri/core/workers/chunks/{7051bcc178eb512819f6.js → a55338add265d330124b.js} +1 -1
  68. package/assets/esri/core/workers/chunks/afe4fd3b1b3521712edd.js +1 -0
  69. package/assets/esri/core/workers/chunks/{9991bd3c7991bffd8260.js → b37f3c416cefc1a6ea2c.js} +1 -1
  70. package/assets/esri/core/workers/chunks/bb50b4a3af627f91d789.js +1 -0
  71. package/assets/esri/core/workers/chunks/{f42155b7a4e6c5e80757.js → bbc2a4976d044b990193.js} +1 -1
  72. package/assets/esri/core/workers/chunks/bbf2c31d217de1b8ba6e.js +1 -0
  73. package/assets/esri/core/workers/chunks/be3977f7fe0c46a1b493.js +1 -0
  74. package/assets/esri/core/workers/chunks/befba7ceeb26a38732c1.js +1 -0
  75. package/assets/esri/core/workers/chunks/bf3fc71881aa559fc931.js +1 -0
  76. package/assets/esri/core/workers/chunks/c19421707257fc93acb9.js +1 -0
  77. package/assets/esri/core/workers/chunks/c1fb5290e0e259b74389.js +1 -0
  78. package/assets/esri/core/workers/chunks/c361bf4d41a1843d4640.js +1 -0
  79. package/assets/esri/core/workers/chunks/c51099eab5a99c88e5de.js +1 -0
  80. package/assets/esri/core/workers/chunks/c56b05a8be498b6f3ee7.js +1 -0
  81. package/assets/esri/core/workers/chunks/c82e78590c2fabc67609.js +1 -0
  82. package/assets/esri/core/workers/chunks/{7d7f8f2936ddee65e3da.js → c9e580867f7ac17be329.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{92ad9098006568358550.js → cafcb46d723d38b377a9.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{1d75cb1747ffb7b8b050.js → cb81d448ed6bad205346.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{0f6203ae32663b2b52db.js → d08a523b548e892e1222.js} +1 -1
  86. package/assets/esri/core/workers/chunks/d29ae64703a947bfb83b.js +1 -0
  87. package/assets/esri/core/workers/chunks/{04c17957c15234ca0321.js → d81260303a11d3fbe940.js} +1 -1
  88. package/assets/esri/core/workers/chunks/de1457b07f4e263f1524.js +1 -0
  89. package/assets/esri/core/workers/chunks/{6bf43bc3714d7b3878fa.js → e547318638c8f496c1a0.js} +1 -1
  90. package/assets/esri/core/workers/chunks/e8e993fb8697b8f3e0c7.js +346 -0
  91. package/assets/esri/core/workers/chunks/{53781ccca16e53d4a8c3.js → f291ccf9da6aa7d7ae23.js} +1 -1
  92. package/assets/esri/core/workers/chunks/f61a8cc7e2b198e521ba.js +1 -0
  93. package/assets/esri/core/workers/chunks/f9442a281cb91c64c7cd.js +1 -0
  94. package/assets/esri/core/workers/chunks/fb785bc38323cce6e549.js +1 -0
  95. package/assets/esri/core/workers/chunks/{c3213b487c11076985af.js → fbf3240b36718fa5dc76.js} +1 -1
  96. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  97. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  98. package/chunks/ComponentShader.glsl.js +36 -36
  99. package/chunks/RibbonLine.glsl.js +40 -33
  100. package/chunks/persistableUrlUtils.js +1 -1
  101. package/config.js +1 -1
  102. package/core/AsyncUpdate.js +1 -1
  103. package/core/Clonable.js +1 -1
  104. package/core/Evented.js +1 -1
  105. package/core/Identifiable.js +1 -1
  106. package/core/JSONSupport.js +1 -1
  107. package/core/Loadable.js +1 -1
  108. package/core/MapUtils.js +1 -1
  109. package/core/MemCache.js +1 -1
  110. package/core/MultiOriginJSONSupport.js +1 -1
  111. package/core/ObjectPool.js +1 -1
  112. package/core/Promise.js +1 -1
  113. package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
  114. package/core/quantity.d.ts +1 -0
  115. package/geometry/support/buffer/BufferPool.js +1 -1
  116. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  117. package/interfaces.d.ts +147 -12
  118. package/kernel.js +1 -1
  119. package/layers/CatalogLayer.js +1 -1
  120. package/layers/FeatureLayer.js +1 -1
  121. package/layers/GeoJSONLayer.js +1 -1
  122. package/layers/SubtypeGroupLayer.js +1 -1
  123. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
  124. package/layers/mixins/APIKeyMixin.js +1 -1
  125. package/layers/mixins/ArcGISCachedService.js +1 -1
  126. package/layers/mixins/ArcGISImageService.js +1 -1
  127. package/layers/mixins/ArcGISMapService.js +1 -1
  128. package/layers/mixins/ArcGISService.js +1 -1
  129. package/layers/mixins/BlendLayer.js +1 -1
  130. package/layers/mixins/CustomParametersMixin.js +1 -1
  131. package/layers/mixins/DisplayFilteredLayer.js +1 -1
  132. package/layers/mixins/EditBusLayer.js +1 -1
  133. package/layers/mixins/FeatureEffectLayer.js +1 -1
  134. package/layers/mixins/FeatureLayerBase.js +1 -1
  135. package/layers/mixins/FeatureReductionLayer.js +1 -1
  136. package/layers/mixins/ImageryTileMixin.js +1 -1
  137. package/layers/mixins/OperationalLayer.js +1 -1
  138. package/layers/mixins/OrderedLayer.js +1 -1
  139. package/layers/mixins/PortalLayer.js +1 -1
  140. package/layers/mixins/PublishableLayer.js +1 -1
  141. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  142. package/layers/mixins/RasterPresetRendererMixin.js +1 -1
  143. package/layers/mixins/RefreshableLayer.js +1 -1
  144. package/layers/mixins/ScaleRangeLayer.js +1 -1
  145. package/layers/mixins/SceneService.js +1 -1
  146. package/layers/mixins/SublayersOwner.js +1 -1
  147. package/layers/mixins/TemporalLayer.js +1 -1
  148. package/layers/mixins/TemporalSceneLayer.js +1 -1
  149. package/layers/mixins/TrackableLayer.js +1 -1
  150. package/layers/ogc/wfsUtils.js +1 -1
  151. package/layers/support/RasterJobHandler.js +1 -1
  152. package/layers/support/RasterWorker.js +1 -1
  153. package/layers/support/Sublayer.js +1 -1
  154. package/layers/support/arcgisLayerUrl.js +1 -1
  155. package/layers/support/multiLayerServiceUtils.js +1 -1
  156. package/layers/support/rasterDatasets/pixelReader.js +5 -0
  157. package/layers/support/rasterFormats/pixelRangeUtils.js +1 -1
  158. package/layers/support/rasterFunctions/pixelUtils.js +1 -1
  159. package/package.json +1 -1
  160. package/renderers/mixins/VisualVariablesMixin.js +1 -1
  161. package/rest/support/CameraInfoMixin.js +1 -1
  162. package/rest/support/NormalizationBinParametersMixin.js +1 -1
  163. package/smartMapping/renderers/color.js +1 -1
  164. package/smartMapping/renderers/heatmap.js +1 -1
  165. package/smartMapping/renderers/pieChart.js +1 -1
  166. package/smartMapping/renderers/size.js +1 -1
  167. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  168. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  169. package/smartMapping/renderers/type.js +1 -1
  170. package/smartMapping/symbology/color.js +1 -1
  171. package/smartMapping/symbology/support/utils.js +1 -1
  172. package/support/LayersMixin.js +1 -1
  173. package/support/TablesMixin.js +1 -1
  174. package/support/revision.js +1 -1
  175. package/symbols/support/utils.js +1 -1
  176. package/views/2d/engine/ParentChildStage.js +1 -1
  177. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  178. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  179. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MultiRasterMixin.js +1 -1
  180. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  181. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  182. package/views/2d/engine/webgl/textureUtils.js +1 -1
  183. package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
  184. package/views/2d/layers/LayerView2D.js +1 -1
  185. package/views/2d/layers/MediaLayerView2D.js +1 -1
  186. package/views/2d/layers/TileLayerView2D.js +1 -1
  187. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  188. package/views/2d/layers/support/DebugOverlay.js +1 -1
  189. package/views/3d/analysis/AnalysisView3D.js +1 -1
  190. package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +5 -0
  191. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  192. package/views/3d/glTF/DefaultLoadingContext.js +1 -1
  193. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  194. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  195. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  196. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  197. package/views/3d/layers/FlowSubView3D.js +1 -1
  198. package/views/3d/layers/I3SMeshView3D.js +1 -1
  199. package/views/3d/layers/ImageryLayerView3D.js +1 -1
  200. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  201. package/views/3d/layers/LayerView3D.js +1 -1
  202. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  203. package/views/3d/layers/StreamLayerView3D.js +1 -1
  204. package/views/3d/layers/TiledLayerView3D.js +1 -1
  205. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  206. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  207. package/views/3d/layers/graphics/Labeler.js +1 -1
  208. package/views/3d/layers/graphics/StreamController.js +5 -0
  209. package/views/3d/layers/graphics/StreamGraphics3DGraphicsPipeline.js +1 -1
  210. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  211. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  212. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  213. package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
  214. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  215. package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
  216. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  217. package/views/3d/layers/support/fetchTile.js +1 -1
  218. package/views/3d/support/MemoryController.js +1 -1
  219. package/views/3d/support/ResourceController.js +1 -1
  220. package/views/3d/support/StreamDataLoader.js +1 -1
  221. package/views/3d/support/StreamDataRequester.js +5 -0
  222. package/views/3d/support/StreamTextureCollection.js +1 -1
  223. package/views/3d/support/engineContent/line.js +1 -1
  224. package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
  225. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  226. package/views/3d/support/flow/StreamlinesResources3D.js +1 -1
  227. package/views/3d/support/flow/geometryUtils.js +1 -1
  228. package/views/3d/support/index.js +1 -1
  229. package/views/3d/terrain/OverlayRenderer.js +1 -1
  230. package/views/3d/terrain/TerrainRenderer.js +1 -1
  231. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  232. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  233. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +3 -3
  234. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  235. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  236. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  237. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  238. package/views/3d/webgl-engine/lib/VertexAttribute.js +1 -1
  239. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  240. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  241. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  242. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  243. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +17 -0
  244. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  245. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  246. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  247. package/views/BreakpointsOwner.js +1 -1
  248. package/views/DOMContainer.js +1 -1
  249. package/views/PopupView.js +1 -1
  250. package/views/VideoView.js +1 -1
  251. package/views/Viewport2DBaseMixin.js +1 -1
  252. package/views/Viewport2DMixin.js +1 -1
  253. package/views/draw/DrawGraphicTool.js +1 -1
  254. package/views/draw/DrawScreenTool.js +1 -1
  255. package/views/draw/DrawTool.js +1 -1
  256. package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
  257. package/views/layers/CatalogDynamicGroupLayerView.js +1 -1
  258. package/views/layers/CatalogFootprintLayerView.js +1 -1
  259. package/views/layers/CatalogLayerView.js +1 -1
  260. package/views/layers/DimensionLayerView.js +1 -1
  261. package/views/layers/FeatureLayerView.js +1 -1
  262. package/views/layers/ImageryLayerView.js +1 -1
  263. package/views/layers/ImageryTileLayerView.js +1 -1
  264. package/views/layers/LineOfSightLayerView.js +1 -1
  265. package/views/layers/MapImageLayerView.js +1 -1
  266. package/views/layers/MediaLayerView.js +1 -1
  267. package/views/layers/OGCFeatureLayerView.js +1 -1
  268. package/views/layers/PointCloudLayerView.js +1 -1
  269. package/views/layers/RefreshableLayerView.js +1 -1
  270. package/views/layers/StreamLayerView.js +1 -1
  271. package/views/layers/ViewshedLayerView.js +1 -1
  272. package/views/layers/WMSLayerView.js +1 -1
  273. package/views/support/Scheduler.js +1 -1
  274. package/views/video/VideoOperationalDataView.js +1 -1
  275. package/views/webgl/BufferObject.js +1 -1
  276. package/views/webgl/Program.js +1 -1
  277. package/views/webgl/Renderbuffer.js +1 -1
  278. package/views/webgl/Texture.js +1 -1
  279. package/views/webgl/Util.js +1 -1
  280. package/webscene/SunLighting.js +1 -1
  281. package/webscene/VirtualLighting.js +1 -1
  282. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  283. package/widgets/Directions/DirectionsSearchTool.js +1 -1
  284. package/widgets/Editor/EditorViewModel.js +1 -1
  285. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  286. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  287. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  288. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  289. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  290. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
  291. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  292. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  293. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  294. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  295. package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
  296. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  297. package/widgets/PanoramicViewer/PanoramicZoomConditions.js +1 -1
  298. package/widgets/PanoramicViewer.js +1 -1
  299. package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
  300. package/widgets/support/GoTo.js +1 -1
  301. package/assets/esri/core/workers/chunks/0202c2ac73354e3970b2.js +0 -1
  302. package/assets/esri/core/workers/chunks/02dc6e31b1244e5bb785.js +0 -1
  303. package/assets/esri/core/workers/chunks/080c79d6caca3b6a2db2.js +0 -1
  304. package/assets/esri/core/workers/chunks/084236ca316aad980192.js +0 -1
  305. package/assets/esri/core/workers/chunks/0b484224a92b52c34330.js +0 -1
  306. package/assets/esri/core/workers/chunks/16a78f5a82f5ca163816.js +0 -1
  307. package/assets/esri/core/workers/chunks/1cc30073f8200b67cff6.js +0 -1
  308. package/assets/esri/core/workers/chunks/242b216d61940aebe8e1.js +0 -1
  309. package/assets/esri/core/workers/chunks/32756905bcf11699b3f7.js +0 -1
  310. package/assets/esri/core/workers/chunks/35d238a5a6501f89bed7.js +0 -1
  311. package/assets/esri/core/workers/chunks/36a2a8b6547604bad2ab.js +0 -1
  312. package/assets/esri/core/workers/chunks/3fcd73ba832cb53d3a07.js +0 -1
  313. package/assets/esri/core/workers/chunks/40c1d65039c8f1d6afa0.js +0 -1
  314. package/assets/esri/core/workers/chunks/49dce142ad1ea4c01d00.js +0 -1
  315. package/assets/esri/core/workers/chunks/4b89d5b9e35bf79b321e.js +0 -1
  316. package/assets/esri/core/workers/chunks/4c47d327815e281c457e.js +0 -1
  317. package/assets/esri/core/workers/chunks/4ea96aff38bb301dc40d.js +0 -346
  318. package/assets/esri/core/workers/chunks/54a49a25845897a15ab1.js +0 -1
  319. package/assets/esri/core/workers/chunks/576e408fb0834f3948e8.js +0 -1
  320. package/assets/esri/core/workers/chunks/5e805c9e9012dd39ec86.js +0 -1
  321. package/assets/esri/core/workers/chunks/6136bf09950adc46bc33.js +0 -1
  322. package/assets/esri/core/workers/chunks/666afe669866c44830bd.js +0 -1
  323. package/assets/esri/core/workers/chunks/6a0fbc54638f7de138c1.js +0 -1
  324. package/assets/esri/core/workers/chunks/843b6029d4c13115e1ac.js +0 -1
  325. package/assets/esri/core/workers/chunks/86d6007c45f2aa643ac8.js +0 -1
  326. package/assets/esri/core/workers/chunks/8ea34878a1ef24b4ded3.js +0 -1
  327. package/assets/esri/core/workers/chunks/8eea6251aa09725e654e.js +0 -1
  328. package/assets/esri/core/workers/chunks/90145d49a0cec902435c.js +0 -1
  329. package/assets/esri/core/workers/chunks/916691122d7fb38497d6.js +0 -1
  330. package/assets/esri/core/workers/chunks/9ae18a17f62d91167202.js +0 -1
  331. package/assets/esri/core/workers/chunks/9c510df592befb9ff892.js +0 -1
  332. package/assets/esri/core/workers/chunks/a273f80298417edecc07.js +0 -1
  333. package/assets/esri/core/workers/chunks/a2ed7a3cd518dd136ec7.js +0 -1
  334. package/assets/esri/core/workers/chunks/a6a7279b09d7962147ec.js +0 -1
  335. package/assets/esri/core/workers/chunks/aba520714efc01bead36.js +0 -1
  336. package/assets/esri/core/workers/chunks/acb9c166259872828646.js +0 -1
  337. package/assets/esri/core/workers/chunks/accff253af360c34e8a8.js +0 -1
  338. package/assets/esri/core/workers/chunks/ae6eed26fc932bc08356.js +0 -1
  339. package/assets/esri/core/workers/chunks/b32c1b60896a72e0ae90.js +0 -1
  340. package/assets/esri/core/workers/chunks/b4bb461955a4c2bce072.js +0 -1
  341. package/assets/esri/core/workers/chunks/b98279213f45a0c27600.js +0 -1
  342. package/assets/esri/core/workers/chunks/ba5b24beebeb703b5919.js +0 -1
  343. package/assets/esri/core/workers/chunks/bd7d19ba0c7d9143a455.js +0 -1
  344. package/assets/esri/core/workers/chunks/bffaf1f20f18c75fad4e.js +0 -1
  345. package/assets/esri/core/workers/chunks/c4f8da6c238eb5e91f91.js +0 -1
  346. package/assets/esri/core/workers/chunks/cdabea4718a7e7d34cb8.js +0 -1
  347. package/assets/esri/core/workers/chunks/ce7155ae63e7bb74be00.js +0 -1
  348. package/assets/esri/core/workers/chunks/d45383d76ba99718b6d9.js +0 -1
  349. package/assets/esri/core/workers/chunks/d915d0a30d9beb24bd3a.js +0 -1
  350. package/assets/esri/core/workers/chunks/dc6538a2d5a1e60d0209.js +0 -1
  351. package/assets/esri/core/workers/chunks/dca633ae3bfd4a3f9bb3.js +0 -1
  352. package/assets/esri/core/workers/chunks/dfa7976085f7408a366c.js +0 -1
  353. package/assets/esri/core/workers/chunks/e0a5b499b3ae38c21278.js +0 -1
  354. package/assets/esri/core/workers/chunks/e1a20ba7d6279f59adc0.js +0 -1
  355. package/assets/esri/core/workers/chunks/e49a135a2933306a6105.js +0 -1
  356. package/assets/esri/core/workers/chunks/e9a9174c4d1a0a9effb6.js +0 -1
  357. package/assets/esri/core/workers/chunks/edead1a123860cc74b1b.js +0 -1
  358. package/assets/esri/core/workers/chunks/f90573c9dc36e51cd588.js +0 -1
  359. package/assets/esri/core/workers/chunks/fa9658dbfb921f9c13af.js +0 -1
  360. package/assets/esri/core/workers/chunks/fb5e2b1ced03eef28e96.js +0 -1
  361. package/assets/esri/core/workers/chunks/fd8f4eabb8bbc593dd9c.js +0 -1
  362. package/assets/esri/core/workers/chunks/fe1902d63f610cebd947.js +0 -1
  363. package/layers/graphics/controllers/StreamController.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[13],{1626:(e,t,i)=>{i.d(t,{A:()=>p});var s,l=i(90237),r=i(4718),n=i(10107),o=(i(44208),i(53966),i(40608)),a=i(2485),u=i(72606);let p=s=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,r.o8)(this.colorRamps)})}};(0,l._)([(0,n.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,l._)([(0,n.MZ)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,l._)([(0,o.$)("esri.rest.support.MultipartColorRamp")],p)},2024:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(72500);let u=s=class extends o.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l._)([(0,r.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,l._)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,l._)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,l._)([(0,r.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,l._)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u)},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(90237),r=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(40608),c=i(72606);let d=s=class extends c.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l._)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:!0}})],d.prototype,"fromColor",void 0),(0,l._)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:!0}})],d.prototype,"toColor",void 0),(0,l._)([(0,o.MZ)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,l._)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],d)},2795:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(90237),l=i(66552),r=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(40608),p=i(56507),c=i(41078);const d=new l.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.A{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.MZ)()],h.prototype,"index",void 0),(0,s._)([(0,o.MZ)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.w)("field")],h.prototype,"castField",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],h)},12330:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let u=s=class extends r.A{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,l._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),(0,l._)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),(0,l._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,l._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,l._)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u)},20061:(e,t,i)=>{i.d(t,{A:()=>y});var s,l=i(90237),r=i(69540),n=i(66552),o=i(25482),a=i(10107),u=i(56507),p=(i(44208),i(87811),i(93223)),c=i(40608);const d=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=s=class extends(r.A.ClonableMixin(o.A)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,l._)([(0,p.e)(d)],h.prototype,"order",void 0),h=s=(0,l._)([(0,c.$)("esri.renderers.support.RendererLegendOptions")],h);const y=h},23461:(e,t,i)=>{i.d(t,{A:()=>a});var s,l=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795);let a=s=class extends o.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,l._)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,l._)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],a.prototype,"axis",void 0),(0,l._)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],a.prototype,"type",void 0),(0,l._)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],a.prototype,"rotationType",void 0),a=s=(0,l._)([(0,n.$)("esri.renderers.visualVariables.RotationVariable")],a)},29266:(e,t,i)=>{i.d(t,{RV:()=>d,UT:()=>h,Yz:()=>v}),i(68197);var s=i(52106),l=i(21818),r=i(53966),n=i(31756),o=i(98205);const a=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),d=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void u("RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=null;if(!c&&!d)return y;if(d){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l,i.timeZone);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,r)}else a&&(y=a[c]);return y="number"!=typeof y||isNaN(y)?null:r+n*y,y}function y(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void u("SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case o._w.Additive:return function(e,t,i,s){const l=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==l?null:(e??0)+(l??0)}(e,t,i,s);case o._w.Constant:return function(e,t,i){const s=e.stops;let l=s?.length&&s[0].size;return null==l&&(l=e.minSize),m(l,t,i)}(t,i,s);case o._w.ClampedLinear:return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e)return l;const{minDataValue:r,maxDataValue:n}=t;if(null==r||null==n)return null;const o=(e-r)/(n-r),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=r)return l;if(e>=n)return a;if(null==l||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?c*(l/2)**2:l*l,i=t+o*((e?c*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+o*(a-l)}(e,t,i,s);case o._w.Proportional:return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e||null==l)return l;const r=null!=s?s.shape:void 0,{minDataValue:n}=t;if(null==n)return null;const o=e/n,a=m(t.maxSize,i,s);let u=null;return u="circle"===r?2*Math.sqrt(o*(l/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(o*l**2):o*l,f(u,l,a)}(e,t,i,s);case o._w.Stops:return function(e,t,i,s,l){if(null==e)return null;const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,l)=>e<t?(s=l,!0):(i=l,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return m(t.stops?.[r].size,i,s);{const e=m(t.stops?.[r].size,i,s),l=m(t.stops?.[n].size,i,s);return null==e||null==l?null:e+(l-e)*o}}(e,t,i,s,l);case o._w.RealWorldSize:return function(e,t,i,s){const l=(s?.resolution??1)*n.j[t.valueUnit],r=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return r;let u=null;return u="area"===a?2*Math.sqrt(e/c)/l:"radius"===a||"distance"===a?2*e/l:e/l,f(u,r,o)}(e,t,i,s);case o._w.Identity:return e;case o._w.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.Yf.Expression:{if(null==i?.arcade)return void p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case o.Yf.Field:r&&(n=r[e.field]);break;case o.Yf.Unknown:n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?void 0:l}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function v(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":y(r,t,i)??"proportional";switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,l.Xb)(r.axis)}}return s}},30943:(e,t,i)=>{i.d(t,{A:()=>E});var s,l=i(90237),r=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(40608);i(44208),i(53966),i(87811);let d=s=class extends n.A{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.A{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l._)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let v=m=class extends n.A{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"size",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"value",void 0),v=m=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],v);const b=v;var g;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),_=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},S=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],M=["seconds","minutes","hours","days","months","years"];let z=g=class extends n.A{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new g({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"endTime",void 0),(0,l._)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,l._)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,l._)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,l._)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,l._)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"spikeSymbolStyle",null),(0,l._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"startTime",void 0),(0,l._)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,l._)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,l._)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,l._)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:S,write:{writer:(e,t)=>{S.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,l._)([(0,a.MZ)({type:_.apiValues,json:{type:_.jsonValues,read:_.read,write:_.write}})],z.prototype,"type",void 0),(0,l._)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=g=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var A,j=i(95349);const Z=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),k=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let E=A=class extends n.A{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,j.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new A({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l._)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write,origins:{"web-document":{default:"manual",type:Z.jsonValues,read:Z.read,write:Z.write}}}})],E.prototype,"classificationMethod",null),(0,l._)([(0,a.MZ)({types:j.g,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,l._)([(0,p.w)("colorRamp")],E.prototype,"readColorRamp",null),(0,l._)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,l._)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,l._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,l._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,l._)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,l._)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,l._)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,l._)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],E.prototype,"numClasses",null),(0,l._)([(0,a.MZ)({type:k,json:{type:k,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,l._)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,l._)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,l._)([(0,a.MZ)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,l._)([(0,a.MZ)({type:[I],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,l._)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,l._)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=A=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfo")],E)},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(90237),l=i(69540),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=class extends(l.A.ClonableMixin(r.A)){constructor(){super(...arguments),this.showLegend=null,this.title=null}};(0,s._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=(0,s._)([(0,o.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},48940:(e,t,i)=>{i.d(t,{A:()=>M});var s=i(90237),l=i(49186),r=i(66552),n=i(53966),o=i(10107),a=i(79901),u=i(36005),p=i(40608),c=i(43937),d=i(2795),h=i(90629),y=i(12330),m=(i(44208),i(87811),i(41078));let f=class extends m.A{constructor(){super(...arguments),this.customValues=null}};(0,s._)([(0,o.MZ)({type:[Number],json:{write:!0}})],f.prototype,"customValues",void 0),f=(0,s._)([(0,p.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],f);const v=f;var b,g=i(98205),w=i(29266);const _=new r.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),V=new r.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function S(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,h.cr)(e)}(e):"size"===e.type?(0,g.of)(e)?e:(delete(e={...e}).type,new M(e)):void 0}function x(e,t,i){if("object"!=typeof e)return e;const s=new M;return s.read(e,i),s}let M=b=class extends d.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&w.RV.test(this.valueExpression)}}set index(e){(0,g.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,g.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,g.eh)(this)}set maxDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return S(e)}readMaxSize(e,t,i){return x(e,0,i)}set minDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return S(e)}readMinSize(e,t,i){return x(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(n.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,g.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?V.read(e):null}clone(){return new b({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,g.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,g.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if(this.transformationType===g._w.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===g._w.Stops){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s._)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s._)([(0,o.MZ)({type:_.apiValues,json:{type:_.jsonValues,origins:{"web-map":{read:!1}},read:_.read,write:_.write}})],M.prototype,"axis",void 0),(0,s._)([(0,o.MZ)()],M.prototype,"index",null),(0,s._)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"inputValueType",null),(0,s._)([(0,o.MZ)({type:v,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxDataValue",null),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxSize",null),(0,s._)([(0,a.w)("maxSize")],M.prototype,"castMaxSize",null),(0,s._)([(0,u.w)("maxSize")],M.prototype,"readMaxSize",null),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minDataValue",null),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minSize",null),(0,s._)([(0,a.w)("minSize")],M.prototype,"castMinSize",null),(0,s._)([(0,u.w)("minSize")],M.prototype,"readMinSize",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],M.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:String})],M.prototype,"scaleBy",void 0),(0,s._)([(0,o.MZ)({type:[y.A],value:null,json:{write:!0}})],M.prototype,"stops",null),(0,s._)([(0,o.MZ)({type:["outline"],json:{write:!0}})],M.prototype,"target",void 0),(0,s._)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"transformationType",null),(0,s._)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],M.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],M.prototype,"useSymbolValue",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s._)([(0,u.w)("valueExpression",["valueExpression","expression"])],M.prototype,"readValueExpression",null),(0,s._)([(0,c.K)("web-scene","valueExpression")],M.prototype,"writeValueExpressionWebScene",null),(0,s._)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],M.prototype,"valueRepresentation",void 0),(0,s._)([(0,o.MZ)({type:V.apiValues,json:{write:V.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],M.prototype,"valueUnit",void 0),(0,s._)([(0,u.w)("valueUnit")],M.prototype,"readValueUnit",null),M=b=(0,s._)([(0,p.$)("esri.renderers.visualVariables.SizeVariable")],M)},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),l=i(90360),r=i(65365),n=i(20378),o=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:o.M9},origins:{"web-scene":{types:a.On,write:{writer:o.M9},read:{reader:(0,l.C)({types:a.On})}}}}},p=(0,s.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:n.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:o.M9},origins:{"web-scene":{type:r.A,write:{writer:o.M9}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},62724:(e,t,i)=>{i.d(t,{A:()=>f});var s,l=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(25482),u=i(56507),p=i(36005),c=i(43937),d=i(78553);let h=s=class extends a.A{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,d.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,d.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,l._)([(0,r.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l._)([(0,r.MZ)({type:Number,json:{type:u.jz,write:{target:"transparency",isRequired:!0}}})],h.prototype,"opacity",void 0),(0,l._)([(0,p.w)("opacity",["transparency"])],h.prototype,"readOpacity",null),(0,l._)([(0,c.K)("opacity")],h.prototype,"writeOpacity",null),(0,l._)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"value",void 0),h=s=(0,l._)([(0,n.$)("esri.renderers.visualVariables.support.OpacityStop")],h);const y=h;var m;let f=m=class extends o.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new m({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l._)([(0,r.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,l._)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,l._)([(0,r.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,l._)([(0,r.MZ)({type:[y],json:{write:!0}})],f.prototype,"stops",null),f=m=(0,l._)([(0,n.$)("esri.renderers.visualVariables.OpacityVariable")],f)},63988:(e,t,i)=>{i.d(t,{h:()=>x});var s=i(90237),l=i(10107),r=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(40608),a=i(43937),u=i(30524),p=i(2024),c=i(62724),d=i(23461),h=i(48940),y=i(2795),m=i(69622),f=i(66552),v=i(67076);const b={color:p.A,size:h.A,opacity:c.A,rotation:d.A},g=new f.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),w=/^\[([^\]]+)\]$/i;let _=class extends m.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:l}=t,n=s?.match(w),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:o})),e)return e.map(e=>{const t=g.read(e.type),s=b[t];s||(r.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new v.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,l.MZ)()],_.prototype,"visualVariables",null),_=(0,s._)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],_);var V=i(69309);const S={base:y.A,key:"type",typeMap:{opacity:c.A,color:p.A,rotation:d.A,size:h.A}},x=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new _}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,u.Dx)(e,t,s.valueExpression)))}};return(0,s._)([(0,l.MZ)({types:[S],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.K)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function M(e,t,i){const s=(0,V.D)(e);return null!=s&&((0,u.rq)(t,i,s),!0)}},72500:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(90237),r=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(44208),i(87811),i(40608)),p=i(43937);let c=s=class extends n.A{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,l._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l._)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l._)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,l._)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},72606:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(90237),l=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let o=class extends l.A{constructor(e){super(e),this.type=null}};(0,s._)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.$)("esri.rest.support.ColorRamp")],o)},73838:(e,t,i)=>{i.d(t,{rS:()=>E,M9:()=>Z,oO:()=>F});var s=i(49186),l=i(93637),r=i(77548),n=i(37757),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),m=i(53930),f=i(68249),v=i(68197),b=i(5503),g=(i(44208),i(90629)),w=i(27845),_=i(11506),V=i(39065),S=i(59868),x=i(93470);c.A.fromSimpleMarkerSymbol(S.UK),a.A.fromSimpleLineSymbol(S.A7),d.A.fromSimpleFillSymbol(S.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:x.fT},edges:new V.A({size:(0,g.PN)(1),color:new v.A(x.JR)})})])});const M=new a.A({symbolLayers:new b.A([new _.A({material:{color:new v.A([0,0,0])},size:(0,g.PN)(1)})])}),z=new d.A({symbolLayers:new b.A([new w.A({outline:{color:new v.A([0,0,0]),size:(0,g.PN)(1)}})])});var I=i(33910);const A="#useCIMFallbackSymbology()",j={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function Z(e,t,i,s){const r=k(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function F(e,t,i,s){const l=k(e,{},{context:s,isLabelSymbol:!0});null!=l&&(t[i]=l)}function q(e){return(0,I.wk)(e)||e instanceof n.A}function k(e,t,i){if(null==e)return null;const{context:l,isLabelSymbol:v}=i,b=l?.origin,g=l?.messages;if("web-scene"===b&&!q(e)){const i=function(e,t=j){if(!e)return{symbol:null};const{retainId:i=j.retainId,ignoreDrivers:l=j.ignoreDrivers,hasLabelingContext:r=j.hasLabelingContext,retainCIM:v=j.retainCIM,cimFallbackEnabled:b=j.cimFallbackEnabled}=t;let g=null;if((0,I.wk)(e))g=e.clone();else if("web-style"===e.type)g=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":g=v?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(g=M.clone(),t?.logWarning?.(A,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(g=z.clone(),t?.logWarning?.(A,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!g)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)g=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)g=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)g=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)g=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};g=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&g&&"cim"!==g.type&&(g.id=e.id),!l||"cim"===g.type||g instanceof n.A||g.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:g}}(e,{retainCIM:!0,hasLabelingContext:v});return null!=i.symbol?i.symbol.write(t,l):(g?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:l,error:i.error})),null)}return(0,r.TU)(l?.layer)&&(w=e,"polygon-3d"===w?.type||"line-3d"===w?.type)?(g?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${l?.layer?.declaredClass}'.`,{symbol:e,context:l})),null):("web-map"===b||"portal-item"===b&&!(0,r.TU)(l?.layer))&&q(e)?(g?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:l})),null):e.write(t,l);var w}function E(e,t){return(0,I.Bu)(e,null,t)}},85594:(e,t,i)=>{i.d(t,{jg:()=>b,cF:()=>c,bo:()=>d,yA:()=>m,o5:()=>h});var s=i(78888),l=i(49186),r=i(44208),n=i(74887),o=i(84952),a=i(20655),u=i(16405);const p=new Map;function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,n.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:a.A.getDefault();let r;const n=`${s.url} - ${s.user?.username} - ${e}`,o=p.get(n);if(o)return o;const c=function(e,t,i){return t.load(i).then(()=>{const s=new u.A({disableExtraQuery:!0,query:`owner:${f} AND type:${v} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===r);if(t&&e.type===v&&e.owner===f){s=e;break}}if(!s)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new l.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t){for(const i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{const t=y(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{const t=y(e,"gltf");if(t)return{format:i,url:t};break}case"web":{const t=y(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function y(e,t){if(!(0,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const f="esri_en",v="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},86162:(e,t,i)=>{i.d(t,{A:()=>I});var s,l=i(90237),r=i(66552),n=i(4718),o=i(53966),a=i(10107),u=i(79901),p=i(93223),c=i(36005),d=i(40608),h=i(43937),y=i(56507),m=i(30524),f=i(92438),v=i(63988),b=i(88542),g=i(49849),w=i(20061),_=i(43668),V=i(33910);const S="percent-of-total",x="field",M=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),z=(0,y.dp)(b.A);let I=s=class extends((0,v.h)(f.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map(e=>{const t=new b.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t})}writeClassBreakInfos(e,t,i,s){const l=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&l.forEach(e=>delete e.classMinValue),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,y.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new b.A({minValue:e,maxValue:t,symbol:(0,V.dp)(i)}):z((0,n.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&o.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,_.l)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void o.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,_.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,m.Dx)(e,t,this.valueExpression)];(0,m.rq)(e,t,this.field),(0,m.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=r.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:l}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l._)([(0,a.MZ)(g.As)],I.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,a.MZ)({type:[b.A],json:{write:{isRequired:!0}}})],I.prototype,"classBreakInfos",void 0),(0,l._)([(0,c.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,l._)([(0,h.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,l._)([(0,a.MZ)(g.z4)],I.prototype,"defaultSymbol",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,l._)([(0,u.w)("field")],I.prototype,"castField",null),(0,l._)([(0,a.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,l._)([(0,a.MZ)({type:w.A,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l._)([(0,a.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],I.prototype,"minValue",null),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,l._)([(0,a.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,l._)([(0,p.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,l._)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I)},88542:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends r.A{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,l._)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u)},92438:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(90237),l=i(66552),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(30943);const u=new l.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.A{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0,isRequired:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.$)("esri.renderers.Renderer")],p)},93618:(e,t,i)=>{i.d(t,{A:()=>R});var s=i(90237),l=i(49186),r=i(4718),n=i(53966),o=i(93637),a=i(36708),u=i(10107),p=i(79901),c=i(93223),d=i(36005),h=i(40608),y=i(43937),m=i(6797),f=i(56507),v=i(30524),b=i(20655),g=i(92438),w=i(63988),_=i(49849),V=i(20061),S=i(69540),x=i(25482);i(44208),i(87811);let M=class extends(S.A.ClonableMixin(x.A)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,u.MZ)(_.Ug)],M.prototype,"value",void 0),(0,s._)([(0,u.MZ)(_.Ug)],M.prototype,"value2",void 0),(0,s._)([(0,u.MZ)(_.Ug)],M.prototype,"value3",void 0),M=(0,s._)([(0,h.$)("esri.renderers.support.UniqueValue")],M);var z=i(4576);let I=class extends(S.A.ClonableMixin(x.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map(e=>new M({value:e})):"object"===t?e[0]instanceof M?e:e.map(e=>new M(e)):null}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"description",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"label",void 0),(0,s._)([(0,u.MZ)(_.z4)],I.prototype,"symbol",void 0),(0,s._)([(0,u.MZ)({type:[M],json:{type:[[String]],read:{reader:e=>e?e.map(e=>new M({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(z.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],I.prototype,"values",void 0),(0,s._)([(0,p.w)("values")],I.prototype,"castValues",null),I=(0,s._)([(0,h.$)("esri.renderers.support.UniqueValueClass")],I);let A=class extends(S.A.ClonableMixin(x.A)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"heading",void 0),(0,s._)([(0,u.MZ)({type:[I],json:{write:{isRequired:!0}}})],A.prototype,"classes",void 0),A=(0,s._)([(0,h.$)("esri.renderers.support.UniqueValueGroup")],A);var j,Z=i(94833),F=i(43668),q=i(97159),k=i(37757),E=i(85594),C=i(33910);const U="uvInfos-watcher",T="uvGroups-watcher",D=(0,f.dp)(Z.A);function O(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let R=j=class extends((0,w.h)(g.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find(e=>e.value===t[l].value);r?(0,m.Ui)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find(t=>t.value===e[l].value)||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,f.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):n.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||b.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,q.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,q.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?n.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?n.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void n.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?D(e):new Z.A({value:e,symbol:(0,C.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[O(i.value)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void n.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[O(e)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,F.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void n.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,F.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}get symbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce((e,t)=>e+t.getMeshHash(),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new j({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.o8)(this.visualVariables),legendOptions:(0,r.o8)(this.legendOptions),authoringInfo:(0,r.o8)(this.authoringInfo),backgroundFillSymbol:(0,r.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.o8)(this.uniqueValueInfos),i=(0,r.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,v.Dx)(e,t,this.valueExpression)];(0,v.rq)(e,t,this.field),(0,v.rq)(e,t,this.field2),(0,v.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,E.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new k.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new Z.A({value:i.name,symbol:s});t.push(l),this._valueInfoMap[O(i.name)]=l}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[O(t.value)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(U);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,a.wB)(()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,U)}}_watchUniqueValueGroups(){this.removeHandles(T);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,a.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,a.wB)(()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,T)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(l||""):d[0]??void 0;e.push(new Z.A({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map(e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new I({symbol:t,label:i,description:r,values:[new M({value:o,value2:a,value3:u})]})}),a=[new A({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:l}),n));return this._valueInfoMap[O(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[O(s)]}static fromPortalStyle(e,t){const i=new j(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||b.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),s}static fromStyleUrl(e,t){const i=new j(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s._)([(0,u.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s._)([(0,c.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s._)([(0,u.MZ)(_.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,u.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s._)([(0,p.w)("field")],R.prototype,"castField",null),(0,s._)([(0,y.K)("field")],R.prototype,"writeField",null),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s._)([(0,u.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,u.MZ)({type:V.A,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s._)([(0,u.MZ)((0,o.$N)({..._.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],R.prototype,"defaultSymbol",null),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s._)([(0,u.MZ)({type:b.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s._)([(0,d.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s._)([(0,u.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s._)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s._)([(0,y.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s._)([(0,u.MZ)({type:[A],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map(e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:r,label:a,values:[y],description:p}})}]}(t)).map(e=>A.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s._)([(0,u.MZ)({type:[Z.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=j=(0,s._)([(0,h.$)("esri.renderers.UniqueValueRenderer")],R)},94833:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends r.A{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,l._)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,l._)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u)},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),l=i(72606),r=i(1626);const n={key:"type",base:l.A,typeMap:{algorithmic:s.A,multipart:r.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}},98205:(e,t,i)=>{var s,l;function r(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return i===s.Unknown?l.Constant:e.stops?l.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?l.ClampedLinear:"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?l.Proportional:l.Additive:l.Identity:l.RealWorldSize}i.d(t,{KZ:()=>a,Yf:()=>s,_w:()=>l,eh:()=>o,gf:()=>n,of:()=>r}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(l||(l={}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[13],{1626:(e,t,i)=>{i.d(t,{A:()=>p});var s,l=i(90237),r=i(4718),n=i(10107),o=(i(44208),i(53966),i(40608)),a=i(2485),u=i(72606);let p=s=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,r.o8)(this.colorRamps)})}};(0,l._)([(0,n.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,l._)([(0,n.MZ)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,l._)([(0,o.$)("esri.rest.support.MultipartColorRamp")],p)},2024:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(72500);let u=s=class extends o.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l._)([(0,r.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,l._)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,l._)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,l._)([(0,r.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,l._)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u)},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(90237),r=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(40608),c=i(72606);let d=s=class extends c.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l._)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:!0}})],d.prototype,"fromColor",void 0),(0,l._)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:!0}})],d.prototype,"toColor",void 0),(0,l._)([(0,o.MZ)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,l._)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],d)},2795:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(90237),l=i(66552),r=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(40608),p=i(56507),c=i(41078);const d=new l.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.A{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.MZ)()],h.prototype,"index",void 0),(0,s._)([(0,o.MZ)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.w)("field")],h.prototype,"castField",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],h)},12330:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let u=s=class extends r.A{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,l._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),(0,l._)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),(0,l._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,l._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,l._)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u)},20061:(e,t,i)=>{i.d(t,{A:()=>y});var s,l=i(90237),r=i(69540),n=i(66552),o=i(25482),a=i(10107),u=i(56507),p=(i(44208),i(87811),i(93223)),c=i(40608);const d=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=s=class extends(r.A.ClonableMixin(o.A)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,l._)([(0,p.e)(d)],h.prototype,"order",void 0),h=s=(0,l._)([(0,c.$)("esri.renderers.support.RendererLegendOptions")],h);const y=h},23461:(e,t,i)=>{i.d(t,{A:()=>a});var s,l=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795);let a=s=class extends o.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,l._)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,l._)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],a.prototype,"axis",void 0),(0,l._)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],a.prototype,"type",void 0),(0,l._)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],a.prototype,"rotationType",void 0),a=s=(0,l._)([(0,n.$)("esri.renderers.visualVariables.RotationVariable")],a)},29266:(e,t,i)=>{i.d(t,{RV:()=>d,UT:()=>h,Yz:()=>v}),i(68197);var s=i(52106),l=i(21818),r=i(53966),n=i(31756),o=i(98205);const a=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),d=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void u("RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=null;if(!c&&!d)return y;if(d){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l,i.timeZone);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,r)}else a&&(y=a[c]);return y="number"!=typeof y||isNaN(y)?null:r+n*y,y}function y(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void u("SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case o._w.Additive:return function(e,t,i,s){const l=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==l?null:(e??0)+(l??0)}(e,t,i,s);case o._w.Constant:return function(e,t,i){const s=e.stops;let l=s?.length&&s[0].size;return null==l&&(l=e.minSize),m(l,t,i)}(t,i,s);case o._w.ClampedLinear:return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e)return l;const{minDataValue:r,maxDataValue:n}=t;if(null==r||null==n)return null;const o=(e-r)/(n-r),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=r)return l;if(e>=n)return a;if(null==l||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?c*(l/2)**2:l*l,i=t+o*((e?c*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+o*(a-l)}(e,t,i,s);case o._w.Proportional:return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e||null==l)return l;const r=null!=s?s.shape:void 0,{minDataValue:n}=t;if(null==n)return null;const o=e/n,a=m(t.maxSize,i,s);let u=null;return u="circle"===r?2*Math.sqrt(o*(l/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(o*l**2):o*l,f(u,l,a)}(e,t,i,s);case o._w.Stops:return function(e,t,i,s,l){if(null==e)return null;const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,l)=>e<t?(s=l,!0):(i=l,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return m(t.stops?.[r].size,i,s);{const e=m(t.stops?.[r].size,i,s),l=m(t.stops?.[n].size,i,s);return null==e||null==l?null:e+(l-e)*o}}(e,t,i,s,l);case o._w.RealWorldSize:return function(e,t,i,s){const l=(s?.resolution??1)*n.j[t.valueUnit],r=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return r;let u=null;return u="area"===a?2*Math.sqrt(e/c)/l:"radius"===a||"distance"===a?2*e/l:e/l,f(u,r,o)}(e,t,i,s);case o._w.Identity:return e;case o._w.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.Yf.Expression:{if(null==i?.arcade)return void p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case o.Yf.Field:r&&(n=r[e.field]);break;case o.Yf.Unknown:n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?void 0:l}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function v(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":y(r,t,i)??"proportional";switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,l.Xb)(r.axis)}}return s}},30943:(e,t,i)=>{i.d(t,{A:()=>E});var s,l=i(90237),r=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(40608);i(44208),i(53966),i(87811);let d=s=class extends n.A{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.A{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l._)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let v=m=class extends n.A{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"size",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"value",void 0),v=m=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],v);const b=v;var g;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),_=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},S=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],M=["seconds","minutes","hours","days","months","years"];let z=g=class extends n.A{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new g({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"endTime",void 0),(0,l._)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,l._)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,l._)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,l._)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,l._)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"spikeSymbolStyle",null),(0,l._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"startTime",void 0),(0,l._)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,l._)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,l._)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,l._)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:S,write:{writer:(e,t)=>{S.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,l._)([(0,a.MZ)({type:_.apiValues,json:{type:_.jsonValues,read:_.read,write:_.write}})],z.prototype,"type",void 0),(0,l._)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=g=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var A,j=i(95349);const Z=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),k=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let E=A=class extends n.A{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,j.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new A({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l._)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write,origins:{"web-document":{default:"manual",type:Z.jsonValues,read:Z.read,write:Z.write}}}})],E.prototype,"classificationMethod",null),(0,l._)([(0,a.MZ)({types:j.g,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,l._)([(0,p.w)("colorRamp")],E.prototype,"readColorRamp",null),(0,l._)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,l._)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,l._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,l._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,l._)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,l._)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,l._)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,l._)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],E.prototype,"numClasses",null),(0,l._)([(0,a.MZ)({type:k,json:{type:k,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,l._)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,l._)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,l._)([(0,a.MZ)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,l._)([(0,a.MZ)({type:[I],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,l._)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,l._)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=A=(0,l._)([(0,c.$)("esri.renderers.support.AuthoringInfo")],E)},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(90237),l=i(69540),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=class extends(l.A.ClonableMixin(r.A)){constructor(){super(...arguments),this.showLegend=null,this.title=null}};(0,s._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=(0,s._)([(0,o.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},48940:(e,t,i)=>{i.d(t,{A:()=>M});var s=i(90237),l=i(49186),r=i(66552),n=i(53966),o=i(10107),a=i(79901),u=i(36005),p=i(40608),c=i(43937),d=i(2795),h=i(90629),y=i(12330),m=(i(44208),i(87811),i(41078));let f=class extends m.A{constructor(){super(...arguments),this.customValues=null}};(0,s._)([(0,o.MZ)({type:[Number],json:{write:!0}})],f.prototype,"customValues",void 0),f=(0,s._)([(0,p.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],f);const v=f;var b,g=i(98205),w=i(29266);const _=new r.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),V=new r.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function S(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,h.cr)(e)}(e):"size"===e.type?(0,g.of)(e)?e:(delete(e={...e}).type,new M(e)):void 0}function x(e,t,i){if("object"!=typeof e)return e;const s=new M;return s.read(e,i),s}let M=b=class extends d.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&w.RV.test(this.valueExpression)}}set index(e){(0,g.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,g.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,g.eh)(this)}set maxDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return S(e)}readMaxSize(e,t,i){return x(e,0,i)}set minDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return S(e)}readMinSize(e,t,i){return x(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(n.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,g.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?V.read(e):null}clone(){return new b({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,g.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,g.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if(this.transformationType===g._w.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===g._w.Stops){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s._)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s._)([(0,o.MZ)({type:_.apiValues,json:{type:_.jsonValues,origins:{"web-map":{read:!1}},read:_.read,write:_.write}})],M.prototype,"axis",void 0),(0,s._)([(0,o.MZ)()],M.prototype,"index",null),(0,s._)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"inputValueType",null),(0,s._)([(0,o.MZ)({type:v,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxDataValue",null),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxSize",null),(0,s._)([(0,a.w)("maxSize")],M.prototype,"castMaxSize",null),(0,s._)([(0,u.w)("maxSize")],M.prototype,"readMaxSize",null),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minDataValue",null),(0,s._)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minSize",null),(0,s._)([(0,a.w)("minSize")],M.prototype,"castMinSize",null),(0,s._)([(0,u.w)("minSize")],M.prototype,"readMinSize",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],M.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:String})],M.prototype,"scaleBy",void 0),(0,s._)([(0,o.MZ)({type:[y.A],value:null,json:{write:!0}})],M.prototype,"stops",null),(0,s._)([(0,o.MZ)({type:["outline"],json:{write:!0}})],M.prototype,"target",void 0),(0,s._)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"transformationType",null),(0,s._)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],M.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],M.prototype,"useSymbolValue",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s._)([(0,u.w)("valueExpression",["valueExpression","expression"])],M.prototype,"readValueExpression",null),(0,s._)([(0,c.K)("web-scene","valueExpression")],M.prototype,"writeValueExpressionWebScene",null),(0,s._)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],M.prototype,"valueRepresentation",void 0),(0,s._)([(0,o.MZ)({type:V.apiValues,json:{write:V.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],M.prototype,"valueUnit",void 0),(0,s._)([(0,u.w)("valueUnit")],M.prototype,"readValueUnit",null),M=b=(0,s._)([(0,p.$)("esri.renderers.visualVariables.SizeVariable")],M)},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),l=i(90360),r=i(65365),n=i(20378),o=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:o.M9},origins:{"web-scene":{types:a.On,write:{writer:o.M9},read:{reader:(0,l.C)({types:a.On})}}}}},p=(0,s.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:n.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:o.M9},origins:{"web-scene":{type:r.A,write:{writer:o.M9}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},62724:(e,t,i)=>{i.d(t,{A:()=>f});var s,l=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(25482),u=i(56507),p=i(36005),c=i(43937),d=i(78553);let h=s=class extends a.A{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,d.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,d.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,l._)([(0,r.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l._)([(0,r.MZ)({type:Number,json:{type:u.jz,write:{target:"transparency",isRequired:!0}}})],h.prototype,"opacity",void 0),(0,l._)([(0,p.w)("opacity",["transparency"])],h.prototype,"readOpacity",null),(0,l._)([(0,c.K)("opacity")],h.prototype,"writeOpacity",null),(0,l._)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"value",void 0),h=s=(0,l._)([(0,n.$)("esri.renderers.visualVariables.support.OpacityStop")],h);const y=h;var m;let f=m=class extends o.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new m({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l._)([(0,r.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,l._)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,l._)([(0,r.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,l._)([(0,r.MZ)({type:[y],json:{write:!0}})],f.prototype,"stops",null),f=m=(0,l._)([(0,n.$)("esri.renderers.visualVariables.OpacityVariable")],f)},63988:(e,t,i)=>{i.d(t,{h:()=>x});var s=i(90237),l=i(10107),r=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(40608),a=i(43937),u=i(30524),p=i(2024),c=i(62724),d=i(23461),h=i(48940),y=i(2795),m=i(69622),f=i(66552),v=i(67076);const b={color:p.A,size:h.A,opacity:c.A,rotation:d.A},g=new f.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),w=/^\[([^\]]+)\]$/i;let _=class extends m.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:l}=t,n=s?.match(w),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:o})),e)return e.map(e=>{const t=g.read(e.type),s=b[t];s||(r.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new v.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,l.MZ)()],_.prototype,"visualVariables",null),_=(0,s._)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],_);var V=i(69309);const S={base:y.A,key:"type",typeMap:{opacity:c.A,color:p.A,rotation:d.A,size:h.A}},x=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new _}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,u.Dx)(e,t,s.valueExpression)))}};return(0,s._)([(0,l.MZ)({types:[S],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s._)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s._)([(0,a.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s._)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,V.D)(e);return null!=s&&((0,u.rq)(t,i,s),!0)}},72500:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(90237),r=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(44208),i(87811),i(40608)),p=i(43937);let c=s=class extends n.A{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,l._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l._)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l._)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,l._)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},72606:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(90237),l=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let o=class extends l.A{constructor(e){super(e),this.type=null}};(0,s._)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.$)("esri.rest.support.ColorRamp")],o)},73838:(e,t,i)=>{i.d(t,{rS:()=>E,M9:()=>Z,oO:()=>F});var s=i(49186),l=i(93637),r=i(77548),n=i(37757),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),m=i(53930),f=i(68249),v=i(68197),b=i(5503),g=(i(44208),i(90629)),w=i(27845),_=i(11506),V=i(39065),S=i(59868),x=i(93470);c.A.fromSimpleMarkerSymbol(S.UK),a.A.fromSimpleLineSymbol(S.A7),d.A.fromSimpleFillSymbol(S.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:x.fT},edges:new V.A({size:(0,g.PN)(1),color:new v.A(x.JR)})})])});const M=new a.A({symbolLayers:new b.A([new _.A({material:{color:new v.A([0,0,0])},size:(0,g.PN)(1)})])}),z=new d.A({symbolLayers:new b.A([new w.A({outline:{color:new v.A([0,0,0]),size:(0,g.PN)(1)}})])});var I=i(33910);const A="#useCIMFallbackSymbology()",j={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function Z(e,t,i,s){const r=k(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function F(e,t,i,s){const l=k(e,{},{context:s,isLabelSymbol:!0});null!=l&&(t[i]=l)}function q(e){return(0,I.wk)(e)||e instanceof n.A}function k(e,t,i){if(null==e)return null;const{context:l,isLabelSymbol:v}=i,b=l?.origin,g=l?.messages;if("web-scene"===b&&!q(e)){const i=function(e,t=j){if(!e)return{symbol:null};const{retainId:i=j.retainId,ignoreDrivers:l=j.ignoreDrivers,hasLabelingContext:r=j.hasLabelingContext,retainCIM:v=j.retainCIM,cimFallbackEnabled:b=j.cimFallbackEnabled}=t;let g=null;if((0,I.wk)(e))g=e.clone();else if("web-style"===e.type)g=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":g=v?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(g=M.clone(),t?.logWarning?.(A,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(g=z.clone(),t?.logWarning?.(A,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!g)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)g=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)g=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)g=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)g=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};g=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&g&&"cim"!==g.type&&(g.id=e.id),!l||"cim"===g.type||g instanceof n.A||g.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:g}}(e,{retainCIM:!0,hasLabelingContext:v});return null!=i.symbol?i.symbol.write(t,l):(g?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:l,error:i.error})),null)}return(0,r.TU)(l?.layer)&&(w=e,"polygon-3d"===w?.type||"line-3d"===w?.type)?(g?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${l?.layer?.declaredClass}'.`,{symbol:e,context:l})),null):("web-map"===b||"portal-item"===b&&!(0,r.TU)(l?.layer))&&q(e)?(g?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:l})),null):e.write(t,l);var w}function E(e,t){return(0,I.Bu)(e,null,t)}},85594:(e,t,i)=>{i.d(t,{jg:()=>b,cF:()=>c,bo:()=>d,yA:()=>m,o5:()=>h});var s=i(78888),l=i(49186),r=i(44208),n=i(74887),o=i(84952),a=i(20655),u=i(16405);const p=new Map;function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,n.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:a.A.getDefault();let r;const n=`${s.url} - ${s.user?.username} - ${e}`,o=p.get(n);if(o)return o;const c=function(e,t,i){return t.load(i).then(()=>{const s=new u.A({disableExtraQuery:!0,query:`owner:${f} AND type:${v} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===r);if(t&&e.type===v&&e.owner===f){s=e;break}}if(!s)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new l.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t){for(const i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{const t=y(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{const t=y(e,"gltf");if(t)return{format:i,url:t};break}case"web":{const t=y(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function y(e,t){if(!(0,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const f="esri_en",v="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},86162:(e,t,i)=>{i.d(t,{A:()=>I});var s,l=i(90237),r=i(66552),n=i(4718),o=i(53966),a=i(10107),u=i(79901),p=i(93223),c=i(36005),d=i(40608),h=i(43937),y=i(56507),m=i(30524),f=i(92438),v=i(63988),b=i(88542),g=i(49849),w=i(20061),_=i(43668),V=i(33910);const S="percent-of-total",x="field",M=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),z=(0,y.dp)(b.A);let I=s=class extends((0,v.h)(f.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map(e=>{const t=new b.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t})}writeClassBreakInfos(e,t,i,s){const l=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&l.forEach(e=>delete e.classMinValue),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,y.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new b.A({minValue:e,maxValue:t,symbol:(0,V.dp)(i)}):z((0,n.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&o.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,_.l)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void o.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,_.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,m.Dx)(e,t,this.valueExpression)];(0,m.rq)(e,t,this.field),(0,m.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=r.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:l}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l._)([(0,a.MZ)(g.As)],I.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,a.MZ)({type:[b.A],json:{write:{isRequired:!0}}})],I.prototype,"classBreakInfos",void 0),(0,l._)([(0,c.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,l._)([(0,h.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,l._)([(0,a.MZ)(g.z4)],I.prototype,"defaultSymbol",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,l._)([(0,u.w)("field")],I.prototype,"castField",null),(0,l._)([(0,a.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,l._)([(0,a.MZ)({type:w.A,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l._)([(0,a.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],I.prototype,"minValue",null),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l._)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,l._)([(0,a.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,l._)([(0,p.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,l._)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I)},88542:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends r.A{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,l._)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u)},92438:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(90237),l=i(66552),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(30943);const u=new l.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.A{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0,isRequired:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.$)("esri.renderers.Renderer")],p)},93618:(e,t,i)=>{i.d(t,{A:()=>R});var s=i(90237),l=i(49186),r=i(4718),n=i(53966),o=i(93637),a=i(36708),u=i(10107),p=i(79901),c=i(93223),d=i(36005),h=i(40608),y=i(43937),m=i(6797),f=i(56507),v=i(30524),b=i(20655),g=i(92438),w=i(63988),_=i(49849),V=i(20061),S=i(69540),x=i(25482);i(44208),i(87811);let M=class extends(S.A.ClonableMixin(x.A)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,u.MZ)(_.Ug)],M.prototype,"value",void 0),(0,s._)([(0,u.MZ)(_.Ug)],M.prototype,"value2",void 0),(0,s._)([(0,u.MZ)(_.Ug)],M.prototype,"value3",void 0),M=(0,s._)([(0,h.$)("esri.renderers.support.UniqueValue")],M);var z=i(4576);let I=class extends(S.A.ClonableMixin(x.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map(e=>new M({value:e})):"object"===t?e[0]instanceof M?e:e.map(e=>new M(e)):null}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"description",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"label",void 0),(0,s._)([(0,u.MZ)(_.z4)],I.prototype,"symbol",void 0),(0,s._)([(0,u.MZ)({type:[M],json:{type:[[String]],read:{reader:e=>e?e.map(e=>new M({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(z.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],I.prototype,"values",void 0),(0,s._)([(0,p.w)("values")],I.prototype,"castValues",null),I=(0,s._)([(0,h.$)("esri.renderers.support.UniqueValueClass")],I);let A=class extends(S.A.ClonableMixin(x.A)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"heading",void 0),(0,s._)([(0,u.MZ)({type:[I],json:{write:{isRequired:!0}}})],A.prototype,"classes",void 0),A=(0,s._)([(0,h.$)("esri.renderers.support.UniqueValueGroup")],A);var j,Z=i(94833),F=i(43668),q=i(97159),k=i(37757),E=i(85594),C=i(33910);const U="uvInfos-watcher",T="uvGroups-watcher",D=(0,f.dp)(Z.A);function O(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let R=j=class extends((0,w.h)(g.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find(e=>e.value===t[l].value);r?(0,m.Ui)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find(t=>t.value===e[l].value)||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,f.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):n.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||b.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,q.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,q.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?n.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?n.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void n.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?D(e):new Z.A({value:e,symbol:(0,C.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[O(i.value)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void n.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[O(e)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,F.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void n.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,F.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}get symbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce((e,t)=>e+t.getMeshHash(),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new j({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.o8)(this.visualVariables),legendOptions:(0,r.o8)(this.legendOptions),authoringInfo:(0,r.o8)(this.authoringInfo),backgroundFillSymbol:(0,r.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.o8)(this.uniqueValueInfos),i=(0,r.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,v.Dx)(e,t,this.valueExpression)];(0,v.rq)(e,t,this.field),(0,v.rq)(e,t,this.field2),(0,v.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,E.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new k.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new Z.A({value:i.name,symbol:s});t.push(l),this._valueInfoMap[O(i.name)]=l}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[O(t.value)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(U);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,a.wB)(()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,U)}}_watchUniqueValueGroups(){this.removeHandles(T);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,a.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,a.wB)(()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,T)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(l||""):d[0]??void 0;e.push(new Z.A({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map(e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new I({symbol:t,label:i,description:r,values:[new M({value:o,value2:a,value3:u})]})}),a=[new A({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:l}),n));return this._valueInfoMap[O(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[O(s)]}static fromPortalStyle(e,t){const i=new j(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||b.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),s}static fromStyleUrl(e,t){const i=new j(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s._)([(0,u.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s._)([(0,c.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s._)([(0,u.MZ)(_.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,u.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s._)([(0,p.w)("field")],R.prototype,"castField",null),(0,s._)([(0,y.K)("field")],R.prototype,"writeField",null),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s._)([(0,u.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,u.MZ)({type:V.A,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s._)([(0,u.MZ)((0,o.$N)({..._.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],R.prototype,"defaultSymbol",null),(0,s._)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s._)([(0,u.MZ)({type:b.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s._)([(0,d.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s._)([(0,u.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s._)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s._)([(0,y.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s._)([(0,u.MZ)({type:[A],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map(e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:r,label:a,values:[y],description:p}})}]}(t)).map(e=>A.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s._)([(0,u.MZ)({type:[Z.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=j=(0,s._)([(0,h.$)("esri.renderers.UniqueValueRenderer")],R)},94833:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(90237),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends r.A{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,l._)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,l._)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u)},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),l=i(72606),r=i(1626);const n={key:"type",base:l.A,typeMap:{algorithmic:s.A,multipart:r.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}},98205:(e,t,i)=>{var s,l;function r(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return i===s.Unknown?l.Constant:e.stops?l.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?l.ClampedLinear:"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?l.Proportional:l.Additive:l.Identity:l.RealWorldSize}i.d(t,{KZ:()=>a,Yf:()=>s,_w:()=>l,eh:()=>o,gf:()=>n,of:()=>r}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(l||(l={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3447,8373],{22671:(e,t,r)=>{r.d(t,{A:()=>v});var i,o=r(90237),n=r(52106),s=r(66552),a=r(25482),l=r(4718),p=r(10107),c=(r(44208),r(53966),r(36005)),u=r(40608),d=r(43937),y=r(16930),f=r(65864),h=r(50498),m=r(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=y.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,o],scale:[n,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=y.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],s=r.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=i);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],r=l[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===i&&s===o||(n.push([e-i,s-o]),i=e,o=s)}else i=t(a[0]),o=r(a[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,f.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(s+=o[0],a+=o[1]):(s=o[0],a=o[1]),o[0]=t(s),o[1]=r(a)}}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o._)([(0,c.w)("features")],v.prototype,"readFeatures",null),(0,o._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,o._)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o._)([(0,p.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o._)([(0,c.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o._)([(0,p.MZ)({type:y.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o._)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o._)([(0,u.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>c,ne:()=>p});var i=r(90237),o=r(93637),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),a=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const o=new a.A;return o.read(i,r),[o]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}},c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,n.MZ)(p)],r.prototype,"orderBy",void 0),r=(0,i._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(90237),o=r(69540),n=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),p=r(43937),c=r(80451),u=r(29005);let d=class extends(o.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,c.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i._)([(0,a.w)("domains")],d.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i._)([(0,s.MZ)({type:[u.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i._)([(0,l.$)("esri.layers.support.FeatureType")],d)},46140:(e,t,r)=>{r.d(t,{R:()=>o});var i=r(49186);let o=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[o,n]=t.split("."),s=/^\s*\d+\s*$/;if(!o?.match||!s.test(o))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!n?.match||!s.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(o,10),l=parseInt(n,10);return new e(a,l,r)}}},55674:(e,t,r)=>{r.d(t,{Ad:()=>y,Gj:()=>m,QY:()=>d,lL:()=>g,xR:()=>f});var i=r(66131),o=r(49186),n=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),p=r(43668),c=r(98623);const u=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of u)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return h.create(e,t,null,["$feature","$view"])}function f(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:n,Dictionary:s}=await(0,p.l)();let a;try{a=n.parseScript(e)}catch(t){throw new o.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=n.scriptUsesGeometryEngine(a);l&&await n.enableGeometrySupport(),await n.loadDependentModules(new Set,a,null,!1,l);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},u=n.compileScript(a,c);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new h(e,n,a,u,t,y,d,s)}constructor(e,t,r,i,o,n,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=o,this._viewDict=n,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:o,currentEnd:n}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,currentEnd:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return n.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>o});var i=r(62815);function o(e,t,r){if(!r?.features||!r.hasZ)return;const o=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of r.features)o(e.geometry)}},61760:(e,t,r)=>{r.d(t,{PU:()=>s,YW:()=>l,ex:()=>o,hv:()=>a,zp:()=>n}),r(34727);var i=r(90629);r(87317),r(91829);const o=2.4;function n(e){return(0,i.PN)(e*o)}function s(e){return(0,i.Lz)(e)/o}function a(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},73681:(e,t,r)=>{r.d(t,{n:()=>l});var i=r(49186),o=r(53966),n=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?n.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),u={};if(t)for(const e in t)u[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)u.hasOwnProperty(t.name)||(u[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,u);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const f=!s||!s.greaterEqual(4,0);f&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new p(r,f);return new l(f,c,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class p extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},91880:(e,t,r)=>{r.d(t,{A:()=>c});var i,o=r(90237),n=r(66552),s=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));const p=new n.J({asc:"ascending",desc:"descending"});let c=class extends s.A{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,o._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],c.prototype,"order",void 0),c=i=(0,o._)([(0,l.$)("esri.layers.support.OrderByInfo")],c)},97927:(e,t,r)=>{r.r(t),r.d(t,{default:()=>W});var i=r(90237),o=r(49186),n=r(4718),s=r(93637),a=r(10107),l=(r(44208),r(53966),r(40608)),p=r(13600),c=r(82935),u=r(66552),d=(r(83047),r(28735),r(69540)),y=r(25482),f=(r(87811),r(69622)),h=r(21325);let m=class extends f.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(d.A.ClonableMixin(y.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const _=v;let w=class extends(d.A.ClonableMixin(y.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${s.join("|")}`}};(0,i._)([(0,a.MZ)({json:{write:!0}})],w.prototype,"type",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"latitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"longitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"ellipsoidRadius",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"squaredEccentricity",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],w.prototype,"properties",void 0),w=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],w);const M=w;let b=class extends(d.A.ClonableMixin(y.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],b.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"omega",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"phi",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"kappa",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"z",void 0),b=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],b);const j=b;let x=class extends(d.A.ClonableMixin(y.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],x.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"yaw",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],x);const Z=x;var S;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(S||(S={}));const P=new Map;P.set(`${S.OPK}`,{desc:"Using Omega Phi Kappa",constructor:j}),P.set(`${S.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:_}),P.set(`${S.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:Z}),P.set(`${S.LTP}`,{desc:"Using Local Tangent Plane",constructor:M});let T=class extends(d.A.ClonableMixin(y.A)){constructor(){super(...arguments),this.url=null}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"lod",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"rasterFunction",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"url",void 0),T=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],T);let N=class extends(d.A.ClonableMixin(y.A)){constructor(){super(...arguments),this.constantElevation=null}};function D(e,t,r){return e?null!=(i=e)&&"number"==typeof i.constantElevation?new N(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new T({...e,url:i})):null}(e,t,r):e;var i}(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],N.prototype,"constantElevation",void 0),N=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],N);const O=new u.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),I=new u.J({Feet:"feet",Meter:"meter"}),A=new u.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),F=new Map;F.set(`${S.HPR}`,function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,m,g,v,_,w,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:a,roll:l,...E([p,c,u,d,y,f],[m,g],[v,_,w],[M,b],h)}}),F.set(`${S.YPR}`,function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,m,g,v,_,w,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:a,roll:l,...E([p,c,u,d,y,f],[m,g],[v,_,w],[M,b],h)}}),F.set(`${S.OPK}`,function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,m,g,v,_,w,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:a,kappa:l,...E([p,c,u,d,y,f],[m,g],[v,_,w],[M,b],h)}}),F.set(`${S.LTP}`,function(e){const[t,r,i,o,n,...s]=e.slice(1),a=F.get(n),l=P.get(n)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new l(a([n,"",...s]))}:null});const R=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function E(e,t,r,i,o){const n=R(e),s=R(t),a=R(r),l=R(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var $=r(43440),z=r(64272),C=r(92935);const L=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),q=(e,t)=>!L.has(t)&&e;function K(e,t,r,i){const{name:o,write:n,read:s}=((e,t,r)=>{const i=`orientedImageryProperties.${e}`;return{name:i,write:t?{ignoreOrigin:!0,target:i,writer:t}:{ignoreOrigin:!0},read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),a={name:o,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:q(n,e),read:q(s,e)},"web-map":{name:o,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let G=class extends p.default{constructor(){super(...arguments),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return D(e,t,r)}async save(e){return this._debouncedSaveOperations(C.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(C.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find(e=>this.supportedSourceTypes.has(e.type))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var J;(0,i._)([(0,a.MZ)({type:$.A,json:{write:!1,read:!1}})],G.prototype,"attributeTableTemplate",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("cameraHeading")})],G.prototype,"cameraHeading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("cameraHeight")})],G.prototype,"cameraHeight",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("cameraPitch")})],G.prototype,"cameraPitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("cameraRoll")})],G.prototype,"cameraRoll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("coveragePercent")})],G.prototype,"coveragePercent",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("demPathPrefix")})],G.prototype,"demPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("demPathSuffix")})],G.prototype,"demPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("depthImagePathPrefix")})],G.prototype,"depthImagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("depthImagePathSuffix")})],G.prototype,"depthImagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Object,json:K("elevationSource")})],G.prototype,"elevationSource",void 0),(0,i._)([(0,a.MZ)({readOnly:!0})],G.prototype,"effectiveElevationSource",null),(0,i._)([(0,a.MZ)({type:Number,json:K("farDistance")})],G.prototype,"farDistance",void 0),(0,i._)([(0,a.MZ)()],G.prototype,"geometryType",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("horizontalFieldOfView")})],G.prototype,"horizontalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("horizontalMeasurementUnit")})],G.prototype,"horizontalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:{...K("imageGeometryField"),default:"ImageGeometry"}})],G.prototype,"imageGeometryField",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("imagePathPrefix")})],G.prototype,"imagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("imagePathSuffix")})],G.prototype,"imagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:String,json:{...K("imageReferenceField"),default:"OIObjectID"}})],G.prototype,"imageReferenceField",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("imageRotation")})],G.prototype,"imageRotation",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("maximumDistance")})],G.prototype,"maximumDistance",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("nearDistance")})],G.prototype,"nearDistance",void 0),(0,i._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],G.prototype,"operationalLayerType",void 0),(0,i._)([(0,a.MZ)({json:{...K("orientationAccuracy",(e,t,r)=>{(0,s.sM)(r,e.join(";"),t)},e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}(t)?function(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}(t):[0,0,0,0,0,0,0,0]},String)}})],G.prototype,"orientationAccuracy",void 0),(0,i._)([(0,a.MZ)({json:{...K("orientedImageryType",A.write,A.read,A.jsonValues.slice(1))}})],G.prototype,"orientedImageryType",void 0),(0,i._)([(0,a.MZ)({type:String,json:{...K("referenceIDField"),default:"OBJECTID"}})],G.prototype,"referenceIDField",void 0),(0,i._)([(0,a.MZ)({type:String,json:{...K("sequenceOrderField"),default:"SequenceOrder"}})],G.prototype,"sequenceOrderField",void 0),(0,i._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],G.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:O.apiValues,json:{...K("timeIntervalUnit",O.write,O.read,O.jsonValues)}})],G.prototype,"timeIntervalUnit",void 0),(0,i._)([(0,a.MZ)((J=(0,n.o8)(c.B),J.json?(J.json.origins=J.json.origins??{},J.json.origins["web-scene"]={write:!1,read:!1},J):J))],G.prototype,"useViewTime",void 0),(0,i._)([(0,a.MZ)({type:Number,json:K("verticalFieldOfView")})],G.prototype,"verticalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:I.apiValues,json:{...K("verticalMeasurementUnit",I.write,I.read,I.jsonValues)}})],G.prototype,"verticalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("videoPathPrefix")})],G.prototype,"videoPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:K("videoPathSuffix")})],G.prototype,"videoPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:z.T,json:{origins:{"web-scene":{write:!1,read:!1}}}})],G.prototype,"visibilityTimeExtent",void 0),G=(0,i._)([(0,l.$)("esri.layers.OrientedImageryLayer")],G);const W=G}}]);