@arcgis/core 4.34.0-next.7 → 4.34.0-next.8

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 (355) hide show
  1. package/Map.js +1 -1
  2. package/applications/ExperienceBuilder/sketchUtils.d.ts +1 -0
  3. package/applications/ExperienceBuilder/sketchUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{feaf79b69d2e2a1f2aa2.js → 06877ea5b9df7de89aff.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{44db659fd4e711f8e22f.js → 076f830d6d0337dfce9d.js} +1 -1
  7. package/assets/esri/core/workers/chunks/09907c9ff597df9bc954.js +1 -0
  8. package/assets/esri/core/workers/chunks/0dbb350ce651bc236ec8.js +1 -0
  9. package/assets/esri/core/workers/chunks/0ed4ec00ef16aa58a33d.js +1 -0
  10. package/assets/esri/core/workers/chunks/{0624ae07d3af8d5f1ac8.js → 15b3eb60f86954783fab.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{b845586219f284a215b2.js → 1db026cc25338dbc208e.js} +1 -1
  12. package/assets/esri/core/workers/chunks/21de4516bf5c9630edfd.js +1 -0
  13. package/assets/esri/core/workers/chunks/2254989ca3ff3960f2fe.js +1 -0
  14. package/assets/esri/core/workers/chunks/248a198f97871a8d6dd6.js +1 -0
  15. package/assets/esri/core/workers/chunks/2dbd18df5c691c8d0a61.js +1 -0
  16. package/assets/esri/core/workers/chunks/2e1ceff3f88a6c78dfa2.js +1 -0
  17. package/assets/esri/core/workers/chunks/{847e88e1d6da1e74cdc8.js → 2ecc1057d53e0b4a60b7.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3025e420e13e2bc8c0a1.js +1 -0
  19. package/assets/esri/core/workers/chunks/32537e2b014bc3d82f5c.js +346 -0
  20. package/assets/esri/core/workers/chunks/34f55bb89ddf26b10260.js +1 -0
  21. package/assets/esri/core/workers/chunks/355ab428a04ee9fcf888.js +1 -0
  22. package/assets/esri/core/workers/chunks/{28e31ac00dc95a1318e9.js → 3916879b9ca8c6979011.js} +1 -1
  23. package/assets/esri/core/workers/chunks/3a74654fa539f78ceb86.js +1 -0
  24. package/assets/esri/core/workers/chunks/3bec10a4f01757590c1c.js +1 -0
  25. package/assets/esri/core/workers/chunks/{a4c108e913d2dc0edc7b.js → 4088f4c25a09932a3eb1.js} +1 -1
  26. package/assets/esri/core/workers/chunks/427318722815bef1496b.js +1 -0
  27. package/assets/esri/core/workers/chunks/4c3bd6cc0badb78c7112.js +1 -0
  28. package/assets/esri/core/workers/chunks/500fb5f615f0c1db1b66.js +1 -0
  29. package/assets/esri/core/workers/chunks/5222523fff30d07f88de.js +1 -0
  30. package/assets/esri/core/workers/chunks/{412eef58cb0d24826375.js → 52c34d6ecd9d45a33e69.js} +1 -1
  31. package/assets/esri/core/workers/chunks/539541dec5fcf3b657aa.js +1 -0
  32. package/assets/esri/core/workers/chunks/53e8c061f36516c3c3e4.js +1 -0
  33. package/assets/esri/core/workers/chunks/{ca76950d81ab4ebb65e1.js → 58f403f956b7b3467344.js} +1 -1
  34. package/assets/esri/core/workers/chunks/5a01bd7a9ee24be7bac4.js +1 -0
  35. package/assets/esri/core/workers/chunks/5bfcb3d87380e7f85b08.js +1 -0
  36. package/assets/esri/core/workers/chunks/5d3246b8fc50f9d9e2c4.js +1 -0
  37. package/assets/esri/core/workers/chunks/{4dd0a5f327fa5fc7249d.js → 5ef1095842e21090f1f4.js} +1 -1
  38. package/assets/esri/core/workers/chunks/614bc3f05873b37af091.js +1 -0
  39. package/assets/esri/core/workers/chunks/6194636638b0439fccd8.js +1 -0
  40. package/assets/esri/core/workers/chunks/66e4cb2479bed1384ed5.js +1 -0
  41. package/assets/esri/core/workers/chunks/6b0ae9ccdd1acef5b5b4.js +1 -0
  42. package/assets/esri/core/workers/chunks/7112b092d98172b7db8b.js +1 -0
  43. package/assets/esri/core/workers/chunks/72ea996b03932c0f004f.js +1 -0
  44. package/assets/esri/core/workers/chunks/74d18c22fa1c178bd9df.js +1 -0
  45. package/assets/esri/core/workers/chunks/766e08d0c56b2b31b63b.js +1 -0
  46. package/assets/esri/core/workers/chunks/77dbb1d5d5e1a6ced932.js +1 -0
  47. package/assets/esri/core/workers/chunks/{bd7b54db7fd278b15500.js → 7a2189614f2dad49ffcd.js} +1 -1
  48. package/assets/esri/core/workers/chunks/7ae88c141a5d85e5bb88.js +1 -0
  49. package/assets/esri/core/workers/chunks/7aef81778155be373d3e.js +1 -0
  50. package/assets/esri/core/workers/chunks/7e1906d35a764f7f10b0.js +1 -0
  51. package/assets/esri/core/workers/chunks/80777a9db53bee2ad8a8.js +1 -0
  52. package/assets/esri/core/workers/chunks/8249b5de5c15461a6787.js +1 -0
  53. package/assets/esri/core/workers/chunks/8385c13ac10e595374cb.js +1 -0
  54. package/assets/esri/core/workers/chunks/83db8bd42f94f97c7cf1.js +1 -0
  55. package/assets/esri/core/workers/chunks/87623ebe32c6ae9cb223.js +1 -0
  56. package/assets/esri/core/workers/chunks/88b1214c284c2ec7d51b.js +1 -0
  57. package/assets/esri/core/workers/chunks/8b86c75426c55b29ebed.js +1 -0
  58. package/assets/esri/core/workers/chunks/8c4b26d86483646c70d2.js +1 -0
  59. package/assets/esri/core/workers/chunks/9cb242dfc3765b590f51.js +1 -0
  60. package/assets/esri/core/workers/chunks/9ddb0b07be31c3747238.js +1 -0
  61. package/assets/esri/core/workers/chunks/9f0f1472f36b42c507d1.js +1 -0
  62. package/assets/esri/core/workers/chunks/{f840e1655c4f6b6630be.js → 9f964467f7353039dd9c.js} +19 -19
  63. package/assets/esri/core/workers/chunks/9fe62638dc7dce466612.js +1 -0
  64. package/assets/esri/core/workers/chunks/a2e9141ff4efd13413a1.js +66 -0
  65. package/assets/esri/core/workers/chunks/adf6982e2d8102669cdf.js +1 -0
  66. package/assets/esri/core/workers/chunks/{d9b2263e0a9f9068ab62.js → b6c3a2d93a59df9a1418.js} +1 -1
  67. package/assets/esri/core/workers/chunks/b763292829aa4d3fab60.js +1 -0
  68. package/assets/esri/core/workers/chunks/ba015f4f72714820a12f.js +1 -0
  69. package/assets/esri/core/workers/chunks/bbbd58b02a3ee8fe595e.js +1 -0
  70. package/assets/esri/core/workers/chunks/c3d95f7f4370486eed2c.js +1 -0
  71. package/assets/esri/core/workers/chunks/c3df693d1bce8f189fa2.js +1 -0
  72. package/assets/esri/core/workers/chunks/{6993a59cbb78bc26f029.js → c45a314ace9725aa250e.js} +1 -1
  73. package/assets/esri/core/workers/chunks/c96fed4889712f5a9135.js +1 -0
  74. package/assets/esri/core/workers/chunks/c9fbada1e84981784f6c.js +1 -0
  75. package/assets/esri/core/workers/chunks/cefcecbeef4f0a46f58c.js +1 -0
  76. package/assets/esri/core/workers/chunks/d2317b87aa2ac3ad97a6.js +1 -0
  77. package/assets/esri/core/workers/chunks/{0bbb38f59f37c51c72f0.js → d45a4e5806a80b69ceec.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{7a23dc625a812a562c21.js → d5f770302dc686e55ba7.js} +1 -1
  79. package/assets/esri/core/workers/chunks/dc14507cfc052faa5890.js +1 -0
  80. package/assets/esri/core/workers/chunks/e7a440476cd1eb4c6547.js +1 -0
  81. package/assets/esri/core/workers/chunks/ede9738ac20e7dd5ce63.js +1 -0
  82. package/assets/esri/core/workers/chunks/eec034d88db320880133.js +1 -0
  83. package/assets/esri/core/workers/chunks/f1e87720b425d7fb348a.js +1 -0
  84. package/assets/esri/core/workers/chunks/f2863c501d62dece5fdd.js +1 -0
  85. package/assets/esri/core/workers/chunks/f5741d09fd4e1809f580.js +1 -0
  86. package/assets/esri/core/workers/chunks/f9e1b73976027e17cd03.js +1 -0
  87. package/assets/esri/core/workers/chunks/fd207a40faf882d3b2a3.js +1 -0
  88. package/assets/esri/core/workers/chunks/fe3832107278244dc04d.js +1 -0
  89. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  90. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  91. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  92. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  93. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  94. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  95. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  96. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  97. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  98. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  99. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  100. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  101. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  102. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  103. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  104. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  105. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  106. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  107. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  108. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  109. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  110. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  111. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  112. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  113. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  114. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  115. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  116. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  117. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  118. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  119. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  120. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  121. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  122. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  123. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  124. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  125. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  126. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  127. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  128. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  129. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  130. package/chunks/aiServices.js +1 -1
  131. package/config.js +1 -1
  132. package/core/workers/Connection.js +1 -1
  133. package/core/workers/RemoteClient.js +1 -1
  134. package/core/workers/WorkerHandle.js +1 -1
  135. package/effects/FocusArea.d.ts +4 -0
  136. package/effects/FocusArea.js +1 -1
  137. package/effects/FocusAreaOutline.d.ts +4 -0
  138. package/effects/FocusAreaOutline.js +1 -1
  139. package/effects/FocusAreas.d.ts +4 -0
  140. package/effects/FocusAreas.js +1 -1
  141. package/geometry.js +1 -1
  142. package/interfaces.d.ts +307 -43
  143. package/kernel.js +1 -1
  144. package/layers/BuildingSceneLayer.js +1 -1
  145. package/layers/GroupLayer.js +1 -1
  146. package/layers/ImageryLayer.js +1 -1
  147. package/layers/ImageryTileLayer.js +1 -1
  148. package/layers/VideoLayer.js +1 -1
  149. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  150. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  151. package/layers/graphics/editingSupport.js +1 -1
  152. package/layers/mixins/ImageryTileMixin.js +1 -1
  153. package/layers/mixins/operationalLayerModuleMap.js +1 -1
  154. package/layers/mixins/operationalLayers.js +1 -1
  155. package/layers/support/BuildingSummaryStatistics.js +1 -1
  156. package/layers/support/PromiseQueue.js +1 -1
  157. package/layers/support/TelemetryDisplay.js +1 -1
  158. package/layers/support/TitleCreator.js +1 -1
  159. package/layers/support/arcgisLayers.js +1 -1
  160. package/layers/support/featurePopupQueryUtils.js +5 -0
  161. package/layers/support/fieldUtils.js +1 -1
  162. package/layers/support/layersCreator.js +1 -1
  163. package/layers/support/multiLayerServiceUtils.js +5 -0
  164. package/networks/CircuitManager.js +1 -1
  165. package/networks/UnitIdentifierManager.js +1 -1
  166. package/networks/UtilityNetwork.js +1 -1
  167. package/networks/support/UNTraceConfiguration.js +1 -1
  168. package/networks/support/typeUtils.js +1 -1
  169. package/package.json +1 -1
  170. package/portal/PortalItem.js +1 -1
  171. package/portal/support/layersLoader.js +1 -1
  172. package/portal/support/portalLayers.js +1 -1
  173. package/rasterRenderers.js +1 -1
  174. package/renderers.js +1 -1
  175. package/rest/featureService/FeatureService.js +1 -1
  176. package/rest/networks/circuits/queryCircuits.js +1 -1
  177. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  178. package/rest/networks/support/CircuitTraceResult.js +5 -0
  179. package/rest/networks/support/TraceResult.js +1 -1
  180. package/rest/networks/unitIdentifiers/support/{QueryUnitIdentifiersParamters.js → QueryUnitIdentifiersParameters.js} +1 -1
  181. package/support/revision.js +1 -1
  182. package/symbols/cim/animationUtils.js +1 -1
  183. package/symbols/cim/cimAnalyzer.js +1 -1
  184. package/symbols/cim/defaultCIMValues.js +1 -1
  185. package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
  186. package/symbols/cim/utils.js +1 -1
  187. package/symbols/support/cimSymbolUtils.js +1 -1
  188. package/symbols/support/previewCIMSymbol.js +1 -1
  189. package/symbols.js +1 -1
  190. package/views/2d/engine/webgl/animations/infos.js +1 -1
  191. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  192. package/views/2d/engine/webgl/animations/utils.js +1 -1
  193. package/views/2d/engine/webgl/shaderGraph/techniques/GraphicInstanceStore.js +1 -1
  194. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js +1 -1
  195. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueType.js +1 -1
  196. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +5 -0
  197. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +5 -0
  198. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +5 -0
  199. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +5 -0
  200. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  201. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  202. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +5 -0
  203. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  204. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechniques.js +5 -0
  205. package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +5 -0
  206. package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +5 -0
  207. package/views/2d/engine/webgl/shaderGraph/techniques/animated/enums.js +1 -1
  208. package/views/2d/engine/webgl/shaderGraph/techniques/createGraphicSymbolMeshSchemas.js +1 -1
  209. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  210. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  211. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
  212. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  213. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  214. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  215. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  216. package/views/2d/layers/MediaLayerView2D.js +1 -1
  217. package/views/2d/layers/TileLayerView2D.js +1 -1
  218. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  219. package/views/2d/layers/features/schema/processor/symbols/utils.js +1 -1
  220. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  221. package/views/3d/interactive/visualElements/DrapedVisualElementResources.js +1 -1
  222. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  223. package/views/3d/layers/I3SMeshView3D.js +1 -1
  224. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  225. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  226. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  227. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  228. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  229. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  230. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  231. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  232. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  233. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  234. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  235. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  236. package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
  237. package/views/3d/terrain/OverlayRenderer.js +1 -1
  238. package/views/3d/terrain/TerrainRenderer.js +1 -1
  239. package/views/3d/terrain/TerrainSurface.js +1 -1
  240. package/views/3d/terrain/TileRenderer.js +1 -1
  241. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  242. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  243. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +3 -3
  244. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  245. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  246. package/views/SelectionManager.js +1 -1
  247. package/views/VideoView.js +1 -1
  248. package/views/draw/support/GraphicMover.js +1 -1
  249. package/views/layers/CatalogDynamicGroupLayerView.js +1 -1
  250. package/views/layers/FeatureLayerView.js +1 -1
  251. package/views/layers/ImageryLayerView.js +1 -1
  252. package/views/layers/ImageryTileLayerView.js +1 -1
  253. package/views/layers/PointCloudLayerView.js +1 -1
  254. package/views/support/TextureCompressionTracker.js +5 -0
  255. package/views/webgl/Texture.js +1 -1
  256. package/webdoc/support/writeUtils.js +1 -1
  257. package/webmap/utils.js +1 -1
  258. package/widgets/Attachments.js +1 -1
  259. package/widgets/BatchAttributeForm.js +1 -1
  260. package/widgets/Directions/DirectionsVisibleElements.js +1 -1
  261. package/widgets/Directions.js +1 -1
  262. package/widgets/Editor/AddAssociationWorkflowData.js +1 -1
  263. package/widgets/Editor/EditorViewModel.js +1 -1
  264. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  265. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  266. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  267. package/widgets/Editor/workflowUtils.js +1 -1
  268. package/widgets/Feature/support/featureUtils.js +1 -1
  269. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  270. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  271. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  272. package/widgets/FeatureForm.js +1 -1
  273. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  274. package/widgets/Features/FeaturesViewModel.js +1 -1
  275. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  276. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  277. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  278. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  279. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  280. package/widgets/OrientedImageryViewer/videoViewerUtils.js +5 -0
  281. package/widgets/OrientedImageryViewer.js +1 -1
  282. package/widgets/Sketch.js +1 -1
  283. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  284. package/widgets/support/SelectionToolbar.js +1 -1
  285. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  286. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  287. package/assets/esri/core/workers/chunks/003ddb190a5cc56f7925.js +0 -1
  288. package/assets/esri/core/workers/chunks/03db109e9b695528c35d.js +0 -1
  289. package/assets/esri/core/workers/chunks/09da6b3085fc84cd69d5.js +0 -1
  290. package/assets/esri/core/workers/chunks/0a770f283eb77c8dc97a.js +0 -1
  291. package/assets/esri/core/workers/chunks/0b70b2ee62904318a12c.js +0 -1
  292. package/assets/esri/core/workers/chunks/0c2dccec20c0994366fe.js +0 -1
  293. package/assets/esri/core/workers/chunks/0d78fc2c2bc1152f84db.js +0 -1
  294. package/assets/esri/core/workers/chunks/0fb5de3f8a4d69b2d514.js +0 -1
  295. package/assets/esri/core/workers/chunks/17e43a050fbf8dc87588.js +0 -1
  296. package/assets/esri/core/workers/chunks/1d7f2abfccc54659d6f2.js +0 -1
  297. package/assets/esri/core/workers/chunks/1f9c6fbcd4d0eae1e574.js +0 -1
  298. package/assets/esri/core/workers/chunks/22e53cb1c8c575fa4d46.js +0 -1
  299. package/assets/esri/core/workers/chunks/2cf82d3645c75d311e99.js +0 -1
  300. package/assets/esri/core/workers/chunks/2d90806faa4269828948.js +0 -1
  301. package/assets/esri/core/workers/chunks/377a7f0f7d304ff9fe5b.js +0 -1
  302. package/assets/esri/core/workers/chunks/3bf1cf6c3cba172e2f6d.js +0 -1
  303. package/assets/esri/core/workers/chunks/3d7eedb787c1e3b9fbfc.js +0 -1
  304. package/assets/esri/core/workers/chunks/3fe7be535affae31de7e.js +0 -1
  305. package/assets/esri/core/workers/chunks/417293f00b2c21cc3175.js +0 -1
  306. package/assets/esri/core/workers/chunks/41cbba9b286cf5558a9c.js +0 -1
  307. package/assets/esri/core/workers/chunks/42bb9bb6fe44a47d9b81.js +0 -1
  308. package/assets/esri/core/workers/chunks/465f2db4ab8aa9c9f907.js +0 -1
  309. package/assets/esri/core/workers/chunks/4ca0738ed38c15b68a77.js +0 -1
  310. package/assets/esri/core/workers/chunks/515e3295495d0958db7e.js +0 -1
  311. package/assets/esri/core/workers/chunks/51ba7345c31e6eb79060.js +0 -1
  312. package/assets/esri/core/workers/chunks/5200be8bce60fa831026.js +0 -1
  313. package/assets/esri/core/workers/chunks/52a57106a41b8c9483d7.js +0 -1
  314. package/assets/esri/core/workers/chunks/536d7986ebb710a8a452.js +0 -1
  315. package/assets/esri/core/workers/chunks/5617532299f73d186968.js +0 -1
  316. package/assets/esri/core/workers/chunks/56d2a20c1b143697aa19.js +0 -1
  317. package/assets/esri/core/workers/chunks/5890740d5a761b038560.js +0 -1
  318. package/assets/esri/core/workers/chunks/5dbd8d81d94cfda5bb32.js +0 -1
  319. package/assets/esri/core/workers/chunks/5e1f7fe6bbc5754efee1.js +0 -1
  320. package/assets/esri/core/workers/chunks/61f9747c960d959b571b.js +0 -346
  321. package/assets/esri/core/workers/chunks/74182421ba425720dc7f.js +0 -1
  322. package/assets/esri/core/workers/chunks/74c0db9e3a62e9839b23.js +0 -1
  323. package/assets/esri/core/workers/chunks/7b12607633bbdc318936.js +0 -1
  324. package/assets/esri/core/workers/chunks/86023cc5ccbc7ac43479.js +0 -1
  325. package/assets/esri/core/workers/chunks/87eca6de502d18d8b7eb.js +0 -1
  326. package/assets/esri/core/workers/chunks/8aa8f9986b966ccb64e2.js +0 -1
  327. package/assets/esri/core/workers/chunks/8d14e957219364a81d5f.js +0 -66
  328. package/assets/esri/core/workers/chunks/937b653b10e8704b38bf.js +0 -1
  329. package/assets/esri/core/workers/chunks/98ef17d15517368d2383.js +0 -1
  330. package/assets/esri/core/workers/chunks/9cac00d4bfac14aaae12.js +0 -1
  331. package/assets/esri/core/workers/chunks/a0c35521e677459f6fa3.js +0 -1
  332. package/assets/esri/core/workers/chunks/a32dcd5bc4680374d30c.js +0 -1
  333. package/assets/esri/core/workers/chunks/aaa6d45316a7d3466d0f.js +0 -1
  334. package/assets/esri/core/workers/chunks/ae733c963d61065faa54.js +0 -1
  335. package/assets/esri/core/workers/chunks/b2a6afa0cd537805b4b8.js +0 -1
  336. package/assets/esri/core/workers/chunks/bf9b6b74654d303a6dae.js +0 -1
  337. package/assets/esri/core/workers/chunks/c6580fdcdc33153008b0.js +0 -1
  338. package/assets/esri/core/workers/chunks/c779335f5d5455c77a62.js +0 -1
  339. package/assets/esri/core/workers/chunks/c77cfd8790877393353a.js +0 -1
  340. package/assets/esri/core/workers/chunks/c9ab067b07d1eab974d1.js +0 -1
  341. package/assets/esri/core/workers/chunks/d3c0d7799c92c6f0e7d3.js +0 -1
  342. package/assets/esri/core/workers/chunks/d52f5214a0330ed2e05e.js +0 -1
  343. package/assets/esri/core/workers/chunks/dbe10c20df7e0e563a0b.js +0 -1
  344. package/assets/esri/core/workers/chunks/df7ca2fe12e22ccfde17.js +0 -1
  345. package/assets/esri/core/workers/chunks/df933eac03dc63064723.js +0 -1
  346. package/assets/esri/core/workers/chunks/e89345c7af9d3d4d8452.js +0 -1
  347. package/assets/esri/core/workers/chunks/ee6240636d04d7d37b7b.js +0 -1
  348. package/assets/esri/core/workers/chunks/ef7955a2509be0f03ca2.js +0 -1
  349. package/assets/esri/core/workers/chunks/f1c6df5cf2ccb6ac47a1.js +0 -1
  350. package/assets/esri/core/workers/chunks/f3d97a4c4f433adbdab5.js +0 -1
  351. package/assets/esri/core/workers/chunks/fc0a3db3d6d26c763fb9.js +0 -1
  352. package/assets/esri/core/workers/chunks/fd4c020297badcb81947.js +0 -1
  353. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerTechnique.js +0 -5
  354. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedShader.js +0 -5
  355. package/views/support/TextureCompressionHandle.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6660,7136],{4197:(e,t,i)=>{i.d(t,{jh:()=>r,l5:()=>s,xm:()=>o});var n=i(34275);function r(e,t=!1){return e<=n.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function s(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}},8303:(e,t,i)=>{i.d(t,{A:()=>v});var n=i(90237),r=i(92602),o=i(70333),s=i(78888),a=i(60999),l=i(49186),u=i(53966),c=i(97768),d=i(74887),p=i(84952),m=i(10107),h=(i(44208),i(87811),i(36005)),y=i(40608),g=i(43937),M=i(77548),f=i(20655),w=i(80812),I=i(41318),A=i(10407);const v=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await i.e(1204).then(i.bind(i,41204));return(0,d.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:n},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!o.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,n);let s,a;if(r)s=i.portal.url;else try{s=await(0,M.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,p.b8)(s,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(r?await i.reload():(i=new w.default({id:e,portal:{url:s}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,n)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,A.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const i=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=o.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const n=`${i.owningSystemUrl}/sharing/rest`,r=f.A.getDefault();if(r&&r.loaded&&(0,p.S8)(r.restUrl)===(0,p.S8)(n))return r.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?I.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return i&&n&&!(0,p.ut)(n.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,m.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,m.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,n._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,n._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,n._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,n._)([(0,y.$)("esri.layers.mixins.PortalLayer")],t),t},b={credential:null,user:null}},9760:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(90237),r=i(66552),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),l=i(40608);const u=new r.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends o.A{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,n._)([(0,a.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,n._)([(0,s.MZ)({type:String,json:{read:u.read,write:u.write}})],d.prototype,"classificationMethod",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,n._)([(0,s.MZ)({json:{read:c.read,write:c.write}})],d.prototype,"normalizationType",void 0),(0,n._)([(0,s.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,n._)([(0,s.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,n._)([(0,l.$)("esri.rest.support.ClassBreaksDefinition")],d)},12711:(e,t,i)=>{i.d(t,{$P:()=>L,I8:()=>A,Mm:()=>D,PD:()=>v,ci:()=>N,fp:()=>b,m7:()=>x,w6:()=>S});var n=i(68197),r=(i(83047),i(20437)),o=i(76353),s=(i(86162),i(67730),i(80498)),a=(i(46981),i(36280)),l=i(93618),u=i(18031),c=i(30943),d=(i(88542),i(67369)),p=i(88178),m=i(94833),h=(i(2024),i(48940)),y=(i(72500),i(9760),i(84892),i(1626)),g=i(94985);const M=.25,f=y.A.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),w=y.A.fromJSON(d.vj[0]),I=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function A(e){return e.presetRenderers?.find((({method:t,value:i})=>"raster-function-template"===t?i===e.rasterFunctionName:"variable"===t&&i===e.variableName))}function v(e,t){const{attributeTable:i,colormap:r}=e;if((0,p.rd)(e)){const t=function(e){if(!(0,p.rd)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:i,maxMagnitude:n}=function(e,t){let i,n;if("vector-magdir"===e)i=t[0].min,n=t[0].max;else{const e=t[0].min,r=t[0].max,o=t[1].min,s=t[1].max;i=0,n=Math.max(Math.abs(e),Math.abs(o),Math.abs(r),Math.abs(s))}return{minMagnitude:i,maxMagnitude:n}}(e.dataType,e.statistics);t=[new h.A({field:"Magnitude",minSize:10,maxSize:40,minDataValue:i,maxDataValue:n})]}const i=null!=e.multidimensionalInfo?Z.get(e.multidimensionalInfo.variables[0].unit):void 0,n=new u.A({visualVariables:t,inputUnit:i,rotationType:"geographic"});return n.visualVariables=[...n.sizeVariables,...n.rotationVariables],n}(e);if(null!=t)return t}if(t?.rasterFunctionColorRamp){const i=T(e,t);return i.colorRamp=t.rasterFunctionColorRamp,i}if(null!=r){const t=function(e){if(!(0,p.FA)(e))return null;let t;const{attributeTable:i,colormap:n}=e;if(null!=i){const e=C(i,"value"),n=j(i,null,!0);"string"===n.type&&(t={},i.features.forEach((i=>{const r=i.attributes;t[r[e.name]]=n?r[n.name]:r[e.name]})))}return s.A.createFromColormap(n,t)}(e);if(null!=t)return t}if(null!=i){const t=function(e,t){if(!(0,p.hu)(e,t))return null;const{attributeTable:i,statistics:r}=e,o=j(i,t),s=C(i,"red"),a=C(i,"green"),u=C(i,"blue"),h=new c.A,y=[],M=new Set,f=!!(s&&a&&u);if(null!=i)i.features.forEach((e=>{const t=e.attributes[o.name];if(!M.has(e.attributes[o.name])&&null!=t){M.add(t);const r=f&&("single"===s.type||"double"===s.type)&&("single"===a.type||"double"===a.type)&&("single"===u.type||"double"===u.type)&&!i.features.some((e=>e.attributes[s.name]>1||e.attributes[a.name]>1||e.attributes[u.name]>1)),l=r?255:1;y.push(new m.A({value:e.attributes[o.name],label:e.attributes[o.name]+"",symbol:new g.A({style:"solid",outline:null,color:new n.A(f?[e.attributes[s.name]*l,e.attributes[a.name]*l,e.attributes[u.name]*l,1]:[0,0,0,0])})}))}}));else if(r?.[0])for(let e=r[0].min;e<=r[0].max;e++)y.push(new m.A({value:e,label:e.toString(),symbol:new g.A({style:"solid",outline:null,color:new n.A([0,0,0,0])})}));if(y.sort(((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1)),!f){const e=(0,d.R8)(w,{numColors:y.length});y.forEach(((t,i)=>t.symbol.color=new n.A(e[i].slice(1,4)))),h.colorRamp=w}return new l.A({field:o.name,uniqueValueInfos:y,authoringInfo:h})}(e);if(null!=t)return t}return T(e,t)}function b(e,t=!1){const i=["raster-stretch"];return(0,p.FA)(e,t)&&i.push("raster-colormap"),(0,p.hu)(e)&&i.push("unique-value"),(0,p.xX)(e,t)&&i.push("class-breaks"),(0,p.iL)(e)&&i.push("raster-shaded-relief"),(0,p.rd)(e)&&i.push("vector-field"),(0,p.QJ)(e)&&i.push("flow"),i}function D(e){return(0,o.q)(e)&&"Colormap"===e.rasterFunction.functionName?e.rasterFunction.colorRamp:void 0}function S(e,t,i){const n=i?.toLowerCase().replace("bicubic","cubic"),r=["nearest","bilinear","cubic","majority"].find((e=>e===n));return"Map"===t?r??"bilinear":"standard-time"===e.dataType?r??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===r||"majority"===r?r:"nearest":r??"bilinear"}function T(e,t){e=x(e,t?.variableName);const{bandCount:i}=e;let{bandIds:n,stretchType:r}=t||{};n?.some((e=>e>=i))&&(n=null);let o=e.statistics,s=e.histograms;i>1?(n=n?.length?n:N(e),o=null==o?null:n?.map((e=>o[e])),s=null==s?null:n?.map((e=>s[e]))):n=[0],null==r&&(r=function(e){let t="percent-clip";const{pixelType:i,dataType:n,histograms:r,statistics:o,multidimensionalInfo:s}=e,a=I.has(n)||"generic"===n&&null!=s;return"u8"!==i||"processed"!==n&&null!=r&&null!=o?"u8"===i||"elevation"===n||a?t="min-max":null!=r?t="percent-clip":null!=o&&(t="min-max"):t="none",t}(e)),t?.includeStatisticsInStretch&&("percent-clip"===r||"histogram-equalization"===r)&&e.statistics?.length&&(r="min-max");let l=!1;switch(r){case"none":l=!1;break;case"percent-clip":l=!s?.length;break;default:l=!o?.length}const{dataType:u}=e,c=1===n?.length&&I.has(u)?f:null,d=new a.A({stretchType:r,dynamicRangeAdjustment:l,colorRamp:c,outputMin:0,outputMax:255,gamma:1===n?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===r?d.maxPercent=d.minPercent=M:"standard-deviation"===r&&(d.numberOfStandardDeviations=2),l||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===r?d.histograms=s:"min-max"!==r&&"standard-deviation"!==r||(d.statistics=o)),d}function x(e,t){const{multidimensionalInfo:i}=e;if(!t||!i)return e;const n=i.variables.find((e=>e.name===t));if(!n)return e;if(e=e.clone(),n){const{statistics:t,histograms:i}=n;t?.length&&(e.statistics=t.map((e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev})))),i?.length&&(e.histograms=i)}return e}function N(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:i}=e;let n;if(i.length===t){const{red:e,green:t,blue:r,nir:o}=function(e){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=n.name.toLowerCase();if("red"===r)t.red=i;else if("green"===r)t.green=i;else if("blue"===r)t.blue=i;else if("nearinfrared"===r||"nearinfrared_1"===r||"nir"===r)t.nir=i;else if(n.maxWavelength&&n.minWavelength){const e=n.minWavelength,r=n.maxWavelength;null==t.blue&&e>=410&&e<=480&&r>=480&&r<=540?t.blue=i:null==t.green&&e>=490&&e<=560&&r>=560&&r<=610?t.green=i:null==t.red&&e>=595&&e<=670&&r>=660&&r<=730?t.red=i:null==t.nir&&e>=700&&e<=860&&r>=800&&r<=950&&(t.nir=i)}}return t}(i);null!=e&&null!=t&&null!=r?n=[e,t,r]:null!=o&&null!=e&&null!=t&&(n=[o,e,t])}return!n&&t>=3&&(n=[0,1,2]),n}function j(e,t,i){let n;return null!=e?(n=t?e.fields.find((e=>t.toLowerCase()===e.name.toLowerCase())):function(e){let t;for(let i=0;i<e.length;i++){const n=e[i].name.toLowerCase();if("string"===e[i].type){if(n.startsWith("class")){t=e[i];break}null==t&&(n.endsWith("name")||n.endsWith("type"))&&(t=e[i])}}return t}(e.fields),n||(i||(n=e.fields.find((e=>"string"===e.type))),n||(n=C(e,"value")))):n=new r.A({name:"value"}),n}function C(e,t){return null==e?null:e.fields.find((e=>e.name.toLowerCase()===t))}const Z=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function _(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function L(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,i=t?.[0].symbol;return i?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map((e=>({value:e.value,label:e.label,symbol:e.symbol?_(e.symbol):null})))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,i=t[0].symbol;return i?.symbolLayers?.length&&(e.classBreakInfos=t.map((e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?_(e.symbol):null})))),e}return e}},17136:(e,t,i)=>{i.d(t,{O7:()=>b,el:()=>v});var n=i(92602),r=i(49186),o=i(53966),s=i(39829),a=i(82799),l=i(80754),u=i(21325),c=i(28735),d=i(78888),p=i(65864),m=i(2272),h=i(84952),y=i(92300);const g=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function M(e){return"polygon"===e[0].type}function f(e){return"polyline"===e[0].type}function w(e,t,i){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof s.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g().error(e),new r.A("internal:geometry",e)}const i=(0,l.r8)(e),n=[];for(const e of i){const i=[];n.push(i),i.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const r=e[n][0],o=e[n][1],s=e[n+1][0],a=e[n+1][1],l=Math.sqrt((s-r)*(s-r)+(a-o)*(a-o)),u=(a-o)/l,c=(s-r)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const n=e*t,s=c*n+r,a=u*n+o;i.push([s,a])}const e=(l+Math.floor(d-1)*t)/2,n=c*e+r,s=u*e+o;i.push([n,s])}i.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new s.A({rings:n,spatialReference:e.spatialReference}):new a.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,c.ci)(t,!0)}return i&&(e=(0,l.kS)(e,i)),e}function I(e,t,i){if(Array.isArray(e)){const n=e[0];if(n>t){const i=(0,l.kd)(n,t);e[0]=n+i*(-2*t)}else if(n<i){const t=(0,l.kd)(n,i);e[0]=n+t*(-2*i)}}else{const n=e.x;if(n>t){const i=(0,l.kd)(n,t);e=e.clone().offset(i*(-2*t),0)}else if(n<i){const t=(0,l.kd)(n,i);e=e.clone().offset(t*(-2*i),0)}}return e}function A(e,t){let i=-1;for(let n=0;n<t.cutIndexes.length;n++){const r=t.cutIndexes[n],o=t.geometries[n],s=(0,l.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some((i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const n=t[e][0];i=n>i?n:i}i=Number(i.toFixed(9));const n=-360*(0,l.kd)(i,180);for(let i=0;i<t.length;i++){const t=o.getPoint(e,i);o.setPoint(e,i,t.clone().offset(n,0))}return!0}}))}if(r===i){if(M(e))for(const t of(0,l.r8)(o))e[r]=e[r].addRing(t);else if(f(e))for(const t of(0,l.r8)(o))e[r]=e[r].addPath(t)}else i=r,e[r]=o}return e}async function v(e,t,i){if(!Array.isArray(e))return v([e],t);t&&"string"!=typeof t&&g().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let o,M,f,b,D,S,T,x,N=0;const j=[],C=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,M=(0,u.Vp)(o),f=o.isWebMercator,S=f?102100:4326,b=l.j7[S].maxX,D=l.j7[S].minX,T=l.j7[S].plus180Line,x=l.j7[S].minus180Line),M)if("mesh"===t.type)C.push(t);else if("point"===t.type)C.push(I(t.clone(),b,D));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>I(e,b,D))),C.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,M);C.push(e.rings?new s.A(e):e)}else if(t.extent){const e=t.extent,i=(0,l.kd)(e.xmin,D)*(2*b);let n=0===i?t.clone():(0,l.kS)(t.clone(),i);e.offset(i,0);let{xmin:r,xmax:o}=e;r=Number(r.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(T)&&o!==b?(N=o>N?o:N,n=w(n,f),j.push(n),C.push("cut")):e.intersects(x)&&r!==D?(N=o*(2*b)>N?o*(2*b):N,n=w(n,f,360),j.push(n),C.push("cut")):C.push(n)}else C.push(t.clone());else C.push(t);else C.push(t);let Z=(0,l.kd)(N,b),_=-90;const L=Z,R=new a.A;for(;Z>0;){const e=360*Z-180;R.addPath([[e,_],[e,-1*_]]),_*=-1,Z--}if(j.length>0&&L>0){const t=A(j,await async function(e,t,i,n){const r=(0,m.Dl)(e),o=t[0].spatialReference,s={...n,responseType:"json",query:{...r.query,f:"json",sr:(0,u.YX)(o),target:JSON.stringify({geometryType:(0,p.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},a=await(0,d.A)(r.path+"/cut",s),{cutIndexes:l,geometries:c=[]}=a.data;return{cutIndexes:l,geometries:c.map((e=>{const t=(0,p.rS)(e);return t.spatialReference=o,t}))}}(r,j,R,i)),n=[],o=[];for(let i=0;i<C.length;i++){const r=C[i];if("cut"!==r)o.push(r);else{const r=t.shift(),s=e[i];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&r.rings.length>=s.rings.length?(n.push(r),o.push("simplify")):o.push(f?(0,c.Gh)(r):r)}}if(!n.length)return o;const s=await async function(e,t,i){const n="string"==typeof e?(0,h.An)(e):e,r=t[0].spatialReference,o=(0,p.$B)(t[0]),s={...i,query:{...n.query,f:"json",sr:(0,u.YX)(r),geometries:JSON.stringify((0,y.X)(t))}},{data:a}=await(0,d.A)(n.path+"/simplify",s);return(0,y.V)(a.geometries,o,r)}(r,n,i),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(f?(0,c.Gh)(s.shift()):s.shift())}return a}const U=[];for(let e=0;e<C.length;e++){const t=C[e];if("cut"!==t)U.push(t);else{const e=j.shift();U.push(!0===f?(0,c.Gh)(e):e)}}return U}function b(e,t,i){const n=(0,u.Vp)(i);if(null==n)return e;const[r,o]=n.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<r&&(a=-Math.ceil(Math.abs(t-r)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<r&&(l=-Math.ceil(Math.abs(e-r)/s));let c=e+(a-l)*s;const d=c-t;return d>o?c-=s:d<r&&(c+=s),c}},18031:(e,t,i)=>{i.d(t,{A:()=>C});var n,r=i(90237),o=i(68197),s=i(52106),a=i(66552),l=i(25482),u=i(4718),c=i(10107),d=(i(44208),i(53966),i(93223)),p=i(36005),m=i(40608),h=i(86738),y=i(17136),g=i(14636),M=i(86162),f=i(63988),w=i(88542),I=i(23461),A=i(48940),v=i(29266),b=i(58592),D=i(31593),S=i(53930),T=i(37531);const x=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),N=new a.J({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),j=new a.J({flow_from:"flow-from",flow_to:"flow-to"});let C=n=class extends((0,f.h)(l.A)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return x.has(e)?g.MD.fromJSON(e):null}readOutputUnit(e,t){return x.has(e)?g.MD.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,i=this._createStyleRenderer(e);return i.field=t,i}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new A.A({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new I.A({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new n({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,u.o8)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,i=[]){const n=new Array,r=(0,g.KL)(this.inputUnit,this.outputUnit),o=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,g.FI)(e.pixelBlock,"vector-uv",o,r):(0,g.Rn)(e.pixelBlock,"vector-magdir",r);if(null==a)return n;const l=e.extent,u=null!=a.mask&&a.mask.length>0;let c=0;const d=(l.xmax-l.xmin)/a.width,p=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,c++){let r=new h.A({x:l.xmin+t*d+d/2,y:l.ymax-e*p-p/2,spatialReference:l.spatialReference});r=(await(0,y.el)(r))[0];const o=i.some((e=>e.intersects(r)));if((!u||a.mask[c])&&!o){const e={Magnitude:a.pixels[0][c],Direction:a.pixels[1][c]},t=new s.A({geometry:new h.A({x:r.x,y:r.y,spatialReference:l.spatialReference}),attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),n.push(t)}}return n}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new S.A({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new D.A({width:0}),size:20,color:e||new o.A([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),i=this.sizeVariables,n=this.rotationVariables;if(i&&i.length&&this.sizeVariables.forEach((i=>(0,T.UQ)(t,(0,v.Yz)([i],e)))),n&&n.length){const i="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+i,this.rotationVariables.forEach((i=>(0,T.GG)(t,(0,v.UT)(i,e),i.axis)))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new M.A(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.28084*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>2.23694*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.6*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new o.A([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,i=this.sizeVariables[0].maxDataValue;if(e&&i){const n=(i-e)/5;t=Array.from(Array(6).keys()).map((t=>e+n*t))}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:b.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map((e=>5*e)),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],i=b.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),n=e.map(((n,r)=>{let o;if(r!==e.length-1)if(0===r)o={minValue:n,maxValue:e[r+1],symbol:i};else{const i=b.A.fromJSON({type:"esriPMS",imageData:t[r].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});o={minValue:n,maxValue:e[r+1],symbol:i}}return new w.A(o)}));return{defaultSymbol:i,classBreakInfos:n}}_getClassBreaks(e,t){return t.map(((t,i)=>new w.A({minValue:e[i],maxValue:e[i+1],symbol:this._getDefaultSymbol(new o.A(t))})))}};(0,r._)([(0,c.MZ)({type:["Magnitude"],json:{write:!0}})],C.prototype,"attributeField",void 0),(0,r._)([(0,c.MZ)({type:j.apiValues,json:{type:j.jsonValues,read:{reader:j.read},write:{writer:j.write}}})],C.prototype,"flowRepresentation",void 0),(0,r._)([(0,c.MZ)({type:["geographic","arithmetic"],json:{write:!0}})],C.prototype,"rotationType",void 0),(0,r._)([(0,c.MZ)({type:N.apiValues,json:{type:N.jsonValues,read:{reader:N.read},write:{writer:N.write}}})],C.prototype,"style",void 0),(0,r._)([(0,c.MZ)({json:{write:!0}})],C.prototype,"symbolTileSize",void 0),(0,r._)([(0,c.MZ)({type:g.MD.apiValues,json:{type:g.MD.jsonValues,write:{writer:g.MD.write}}})],C.prototype,"inputUnit",void 0),(0,r._)([(0,p.w)("inputUnit")],C.prototype,"readInputUnit",null),(0,r._)([(0,c.MZ)({type:g.MD.apiValues,json:{type:g.MD.jsonValues,read:{reader:g.MD.read},write:{writer:g.MD.write}}})],C.prototype,"outputUnit",void 0),(0,r._)([(0,p.w)("outputUnit")],C.prototype,"readOutputUnit",null),(0,r._)([(0,d.e)({vectorField:"vector-field"})],C.prototype,"type",void 0),(0,r._)([(0,c.MZ)({type:M.A})],C.prototype,"styleRenderer",null),(0,r._)([(0,c.MZ)({type:A.A})],C.prototype,"sizeVariables",null),(0,r._)([(0,c.MZ)({type:I.A})],C.prototype,"rotationVariables",null),C=n=(0,r._)([(0,m.$)("esri.renderers.VectorFieldRenderer")],C)},22048:(e,t,i)=>{i.d(t,{A:()=>g});var n,r=i(90237),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(40608)),u=i(43937),c=i(86738),d=i(65864),p=i(50498),m=i(85675),h=i(22796),y=i(64272);let g=n=class extends o.A{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,d.$B)(e),t[i]=e.toJSON())}clone(){return new n((0,s.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,r._)([(0,a.MZ)({types:p.yR,json:{read:d.rS}})],g.prototype,"geometry",void 0),(0,r._)([(0,u.K)("geometry")],g.prototype,"writeGeometry",null),(0,r._)([(0,a.MZ)({type:m.A,json:{write:!0}})],g.prototype,"mosaicRule",void 0),(0,r._)([(0,a.MZ)({type:h.A,json:{write:!0,name:"renderingRule"}})],g.prototype,"rasterFunction",void 0),(0,r._)([(0,a.MZ)({type:c.A,json:{write:!0}})],g.prototype,"pixelSize",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],g.prototype,"raster",void 0),(0,r._)([(0,a.MZ)({type:y.T,json:{read:{source:"time"},write:{target:"time"}}})],g.prototype,"timeExtent",void 0),g=n=(0,r._)([(0,l.$)("esri.rest.support.ImageHistogramParameters")],g)},22671:(e,t,i)=>{i.d(t,{A:()=>f});var n,r=i(90237),o=i(52106),s=i(66552),a=i(25482),l=i(4718),u=i(10107),c=(i(44208),i(53966),i(36005)),d=i(40608),p=i(43937),m=i(16930),h=i(65864),y=i(50498),g=i(20437);const M=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let f=n=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,o.A)}writeGeometryType(e,t,i,n){if(e)return void M.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void M.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,h.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=m.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(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 i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((r-e)/i)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,(e=>e*o+n),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const n=m.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=n);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],r=i?.spatialReference;null==t||r||(t.spatialReference=n)}r.push(s)}return r}_quantizePoints(e,t,i){let n,r;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===n&&s===r||(o.push([e-n,s-r]),n=e,r=s)}else n=t(a[0]),r=i(a[1]),o.push([n,r])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,i);s&&r.push(s)}return r.length>0?((0,h.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,h.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"displayFieldName",void 0),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,u.MZ)({type:[o.A],json:{write:!0}})],f.prototype,"features",void 0),(0,r._)([(0,c.w)("features")],f.prototype,"readFeatures",null),(0,r._)([(0,u.MZ)({type:[g.A],json:{write:!0}})],f.prototype,"fields",void 0),(0,r._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:M.read}}})],f.prototype,"geometryType",void 0),(0,r._)([(0,p.K)("geometryType")],f.prototype,"writeGeometryType",null),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"hasM",void 0),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"hasZ",void 0),(0,r._)([(0,u.MZ)({types:y.yR,json:{write:!0}})],f.prototype,"queryGeometry",void 0),(0,r._)([(0,c.w)("queryGeometry")],f.prototype,"readQueryGeometry",null),(0,r._)([(0,u.MZ)({type:m.A,json:{write:!0}})],f.prototype,"spatialReference",void 0),(0,r._)([(0,p.K)("spatialReference")],f.prototype,"writeSpatialReference",null),(0,r._)([(0,u.MZ)({json:{write:!0}})],f.prototype,"transform",void 0),f=n=(0,r._)([(0,d.$)("esri.rest.support.FeatureSet")],f),f.prototype.toJSON.isDefaultToJSON=!0},22796:(e,t,i)=>{i.d(t,{A:()=>Z});var n=i(90237),r=i(25482),o=i(4718),s=i(10107),a=(i(44208),i(53966),i(93223)),l=i(36005),u=i(40608),c=i(43937),d=i(66552),p=i(56507),m=(i(87811),i(13868));let h=class extends r.A{constructor(){super(...arguments),this.pixelType="unknown"}};(0,n._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"name",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,n._)([(0,s.MZ)({type:p.jz,json:{type:p.jz,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,n._)([(0,s.MZ)({type:String,json:{type:m.e8.jsonValues,read:m.e8.read,write:{writer:m.e8.write,isRequired:!0}}})],h.prototype,"pixelType",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,n._)([(0,u.$)("esri.layers.support.RasterFunctionInfo")],h);const y=h;let g=class extends r.A{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],g.prototype,"id",void 0),(0,n._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"isDataset",void 0),(0,n._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"isPublic",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],g.prototype,"value",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],g.prototype,"type",void 0),g=(0,n._)([(0,u.$)("esri.layers.support.RasterFunctionVariable")],g);const M={key:"type",base:null,typeMap:{RasterFunctionVariable:g}};let f=class extends r.A{};(0,n._)([(0,s.MZ)({types:M,json:{types:M,name:"MatchVariable"}})],f.prototype,"matchVariable",void 0),(0,n._)([(0,s.MZ)({types:M,json:{types:M,name:"UnionDimension"}})],f.prototype,"unionDimension",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],f.prototype,"id",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"type",void 0),f=(0,n._)([(0,u.$)("esri.layers.support.RasterFunctionProperties")],f);const w=f,I=new d.J({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let A=class extends r.A{constructor(){super(...arguments),this.description="",this.functionType="mosaic",this.type="RasterFunctionTemplate"}};var v;(0,n._)([(0,s.MZ)({type:[String],json:{write:!0}})],A.prototype,"aliases",void 0),(0,n._)([(0,s.MZ)({type:Object,json:{write:{isRequired:!0}}})],A.prototype,"arguments",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],A.prototype,"description",void 0),(0,n._)([(0,s.MZ)({type:y,json:{write:{isRequired:!0},name:"function"}})],A.prototype,"functionInfo",void 0),(0,n._)([(0,s.MZ)({type:I.apiValues,json:{type:[0,1,2],read:I.read,write:{writer:I.write,isRequired:!0}}})],A.prototype,"functionType",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"group",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"help",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],A.prototype,"id",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],A.prototype,"name",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0,name:"definition"}})],A.prototype,"queryDefinition",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"tag",void 0),(0,n._)([(0,s.MZ)({type:w,json:{write:!0}})],A.prototype,"properties",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnail",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnailEx",void 0),(0,n._)([(0,s.MZ)({json:{type:["RasterFunctionTemplate"],write:!0}})],A.prototype,"type",void 0),A=(0,n._)([(0,u.$)("esri.layers.support.RasterFunctionTemplate")],A);const b=new Set(["raster","raster2","dem","fillraster"]),D=new Set(["rasters"]),S=e=>e?.rasterFunction?Z.fromJSON(e):e,T=e=>e&&e instanceof Z?e.toJSON():e,x=e=>e?.functionName&&!e.declaredClass,N=e=>x(e)?new Z(e):e,j=e=>e?A.fromJSON({type:"RasterFunctionTemplate",...e}):void 0,C={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:A}},json:{write:!0,name:"rasterFunctionDefinition",read:j}};let Z=v=class extends r.A{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>b.has(t.toLowerCase())&&x(e[t])))||t.some((t=>D.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>x(e)))))){e=(0,o.o8)(e);for(const i of t)b.has(i.toLowerCase())?e[i]=N(e[i]):D.has(i.toLowerCase())&&Array.isArray(e[i])&&(e[i]=e[i].map((e=>N(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,o.o8)(e);const t={};for(const i of Object.keys(e))b.has(i.toLowerCase())?t[i]=S(e[i]):D.has(i.toLowerCase())&&Array.isArray(e[i])?t[i]=e[i].map(S):t[i]=e[i];return t})(e)}writeFunctionArguments(e,t,i){const n={};for(const t of Object.keys(e))b.has(t.toLowerCase())?n[t]=T(e[t]):D.has(t.toLowerCase())&&Array.isArray(e[t])?n[t]=e[t].map(T):n[t]=T(e[t]);t[i]=n}readFunctionName(e,t){const i=t.rasterFunctionInfos;return t.name||(i?.length&&"None"!==i[0].name?i[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=j(e)}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new v({functionName:this.functionName,functionArguments:(0,o.o8)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,o.o8)(this.rasterFunctionDefinition)})}};(0,n._)([(0,s.MZ)({json:{type:Object,name:"rasterFunctionArguments"}})],Z.prototype,"functionArguments",null),(0,n._)([(0,l.w)("functionArguments")],Z.prototype,"readFunctionArguments",null),(0,n._)([(0,c.K)("functionArguments")],Z.prototype,"writeFunctionArguments",null),(0,n._)([(0,s.MZ)({json:{type:String,write:{target:"rasterFunction"}}})],Z.prototype,"functionName",void 0),(0,n._)([(0,l.w)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],Z.prototype,"readFunctionName",null),(0,n._)([(0,a.e)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1,default:"unknown"})],Z.prototype,"outputPixelType",void 0),(0,n._)([(0,s.MZ)({type:String,json:{read:!0,write:!0}})],Z.prototype,"variableName",void 0),(0,n._)([(0,s.MZ)()],Z.prototype,"rasterFunctionDefinition",null),(0,n._)([(0,s.MZ)(C)],Z.prototype,"functionDefinition",void 0),(0,n._)([(0,s.MZ)()],Z.prototype,"hasClipFunction",null),Z=v=(0,n._)([(0,u.$)("esri.layers.support.RasterFunction")],Z)},26253:(e,t,i)=>{i.d(t,{T:()=>d});var n=i(90237),r=i(69540),o=i(25482),s=i(88930),a=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),u=i(40608),c=i(73133);let d=class extends(r.A.ClonableMixin(o.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n._)([(0,l.e)(c.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n._)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n._)([(0,u.$)("esri.time.TimeInterval")],d)},27865:(e,t,i)=>{i.d(t,{O9:()=>o,dw:()=>s,mj:()=>r});var n=i(59247);function r(e,t){const i=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===i[t].type))}function o(e,t){const i=e.length>t.length?e:t,r=e.length>t.length?t:e;for(let e=r.length;e<i.length;e++)r.push((0,n.sK)(i[e]))}function s(e){const t=e[0];return!!t&&"type"in t}},30291:(e,t,i)=>{i.d(t,{tn:()=>u});var n=i(13874),r=i(30524),o=i(89893),s=(i(84424),i(80737),i(96808),i(66159)),a=(i(67336),i(92094),i(23721),i(47582),i(41227)),l=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:l,title:u},m){if(!i)return null;const y=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const n=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===n&&(e=e.slice()),!0!==i&&e.sort(d),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map((t=>new a.A({fieldName:t.name,isEditable:(0,r.R$)(t,e),label:t.alias,format:p(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:l},m);if(!y.length)return null;const g=function(e){const t=(0,r.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),M=[new s.A,new o.A];return new n.A({title:g,content:M,fieldInfos:y})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,r.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.A({digitSeparator:!0,places:0});case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,r.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function m(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]},34606:(e,t,i)=>{i.d(t,{A:()=>M});var n,r=i(90237),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(40608)),u=i(43937),c=i(48526),d=i(86738),p=i(65864),m=i(50498),h=i(85675),y=i(13868),g=i(64272);let M=n=class extends o.A{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,p.$B)(e),t[i]=e.toJSON())}set locations(e){if(e?.length){const t=new c.A({spatialReference:e[0].spatialReference,points:e.map((({x:e,y:t})=>[e,t]))});this._set("locations",e),this.geometry=t}}clone(){return new n((0,s.o8)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,r._)([(0,a.MZ)({types:m.yR,json:{read:p.rS}})],M.prototype,"geometry",void 0),(0,r._)([(0,u.K)("geometry")],M.prototype,"writeGeometry",null),(0,r._)([(0,a.MZ)({type:[d.A]})],M.prototype,"locations",null),(0,r._)([(0,a.MZ)({type:String,json:{type:y.SZ.jsonValues,read:y.SZ.read,write:y.SZ.write}})],M.prototype,"interpolation",void 0),(0,r._)([(0,a.MZ)({type:h.A,json:{write:!0}})],M.prototype,"mosaicRule",void 0),(0,r._)([(0,a.MZ)({type:[String],json:{write:!0}})],M.prototype,"outFields",void 0),(0,r._)([(0,a.MZ)({type:d.A,json:{write:!0}})],M.prototype,"pixelSize",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"raster",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"returnFirstValueOnly",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"sampleDistance",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"sampleCount",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"sliceId",void 0),(0,r._)([(0,a.MZ)({type:g.T,json:{read:{source:"time"},write:{target:"time"}}})],M.prototype,"timeExtent",void 0),M=n=(0,r._)([(0,l.$)("esri.rest.support.ImageSampleParameters")],M)},36280:(e,t,i)=>{i.d(t,{A:()=>g});var n,r=i(90237),o=i(51447),s=i(25482),a=i(4718),l=i(53966),u=i(10107),c=(i(44208),i(93223)),d=i(36005),p=i(40608),m=i(43937),h=i(70274),y=i(95349);let g=n=class extends s.A{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,y.r)(e)}get statistics(){return this._get("statistics")}set statistics(e){(0,o.Lx)(l.A.getLogger(this),"statistics",{replacement:"customStatistics",version:"4.31",warnOnce:!0}),this._set("statistics",e)}get customStatistics(){const e=this.statistics;return e&&Array.isArray(e[0])?e.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))):e}set customStatistics(e){this._set("statistics",e?.map((e=>[e.min,e.max,e.avg??0,e.stddev??1])))}readCustomStatistics(e){return e?.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})))}writeCustomStatistics(e,t,i){e?.length&&(t[i]=e.map((e=>[e.min,e.max,e.avg??0,e.stddev??1])))}readStretchType(e,t){let i=t.stretchType;return"number"==typeof i&&(i=h.x[i]),h.u.read(i)}clone(){const e=new n({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,gamma:(0,a.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,a.o8)(this.colorRamp),histograms:(0,a.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment});return e._set("statistics",(0,a.o8)(this.statistics)),e}};(0,r._)([(0,u.MZ)({types:y.g,json:{write:!0}})],g.prototype,"colorRamp",void 0),(0,r._)([(0,d.w)("colorRamp")],g.prototype,"readColorRamp",null),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"computeGamma",void 0),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],g.prototype,"dynamicRangeAdjustment",void 0),(0,r._)([(0,u.MZ)({type:[Number],json:{write:!0}})],g.prototype,"gamma",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"maxPercent",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"minPercent",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"numberOfStandardDeviations",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],g.prototype,"outputMax",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],g.prototype,"outputMin",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"sigmoidStrengthLevel",void 0),(0,r._)([(0,u.MZ)({})],g.prototype,"statistics",null),(0,r._)([(0,u.MZ)()],g.prototype,"histograms",void 0),(0,r._)([(0,u.MZ)({json:{type:[[Number]],name:"statistics",write:!0}})],g.prototype,"customStatistics",null),(0,r._)([(0,d.w)("customStatistics")],g.prototype,"readCustomStatistics",null),(0,r._)([(0,m.K)("customStatistics")],g.prototype,"writeCustomStatistics",null),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"useGamma",void 0),(0,r._)([(0,u.MZ)({type:h.u.apiValues,json:{type:h.u.jsonValues,write:h.u.write}})],g.prototype,"stretchType",void 0),(0,r._)([(0,d.w)("stretchType",["stretchType"])],g.prototype,"readStretchType",null),(0,r._)([(0,c.e)({rasterStretch:"raster-stretch"})],g.prototype,"type",void 0),g=n=(0,r._)([(0,p.$)("esri.renderers.RasterStretchRenderer")],g)},43577:(e,t,i)=>{i.d(t,{A:()=>h});var n,r=i(90237),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(40608)),l=i(5443),u=i(91075),c=i(39829),d=i(65864),p=i(45617);const m={base:u.A,key:"type",typeMap:{extent:l.A,polygon:c.A}};let h=n=class extends o.A{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach((e=>{if(!e.dimensionName)return;let i,n;if(Array.isArray(e.values[0])){const t=e.values;i=t[0][0],n=t[e.values.length-1][1]}else{const t=e.values;i=t[0],n=t[e.values.length-1]}if(t.has(e.dimensionName)){const r=t.get(e.dimensionName);r[0]=Math.min(i,r[0]),r[1]=Math.max(n,r[1])}else t.set(e.dimensionName,[i,n])}));const i=[];for(const e of t)i.push({name:e[0],extent:e[1]});return i}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach((e=>{e.variableName&&t.add(e.variableName)})),[...t]}clone(){const e=this.subsetDefinitions?.map((e=>e.clone())),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new n({areaOfInterest:t,subsetDefinitions:e})}};(0,r._)([(0,s.MZ)({types:m,json:{read:d.rS,write:!0}})],h.prototype,"areaOfInterest",void 0),(0,r._)([(0,s.MZ)({readOnly:!0})],h.prototype,"dimensions",null),(0,r._)([(0,s.MZ)({readOnly:!0})],h.prototype,"variables",null),(0,r._)([(0,s.MZ)({type:[p.A],json:{write:!0}})],h.prototype,"subsetDefinitions",void 0),h=n=(0,r._)([(0,a.$)("esri.layers.support.MultidimensionalSubset")],h)},45617:(e,t,i)=>{i.d(t,{A:()=>c});var n,r=i(90237),o=i(25482),s=i(4718),a=i(10107),l=i(56507),u=i(40608);let c=n=class extends o.A{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new n({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,s.o8)(this.values),isSlice:this.isSlice})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"variableName",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"dimensionName",void 0),(0,r._)([(0,a.MZ)({type:l.gK.array(l.gK.oneOf([l.gK.native(Number),l.gK.array(l.gK.native(Number))])),json:{write:!0}})],c.prototype,"values",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"isSlice",void 0),c=n=(0,r._)([(0,u.$)("esri.layers.support.DimensionalDefinition")],c)},46981:(e,t,i)=>{i.d(t,{A:()=>p});var n,r=i(90237),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(93223)),u=i(36005),c=i(40608),d=i(95349);let p=n=class extends o.A{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,d.r)(e)}clone(){return new n({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,s.o8)(this.colorRamp)})}};(0,r._)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],p.prototype,"altitude",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],p.prototype,"azimuth",void 0),(0,r._)([(0,a.MZ)({types:d.g,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,r._)([(0,u.w)("colorRamp")],p.prototype,"readColorRamp",null),(0,r._)([(0,a.MZ)({type:["traditional","multi-directional"],json:{write:{isRequired:!0}}})],p.prototype,"hillshadeType",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,r._)([(0,a.MZ)({type:["none","adjusted"],json:{write:{isRequired:!0}}})],p.prototype,"scalingType",void 0),(0,r._)([(0,l.e)({rasterShadedRelief:"raster-shaded-relief"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],p.prototype,"zFactor",void 0),p=n=(0,r._)([(0,c.$)("esri.renderers.RasterShadedReliefRenderer")],p)},49410:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(90237),r=i(25482),o=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),a=i(86738);let l=class extends r.A{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,n._)([(0,o.MZ)({json:{write:!0}})],l.prototype,"attributes",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"location",void 0),(0,n._)([(0,o.MZ)({json:{write:!0}})],l.prototype,"locationId",void 0),(0,n._)([(0,o.MZ)({json:{write:!0}})],l.prototype,"rasterId",void 0),(0,n._)([(0,o.MZ)({json:{write:!0}})],l.prototype,"resolution",void 0),(0,n._)([(0,o.MZ)({json:{write:!0}})],l.prototype,"pixelValue",void 0),l=(0,n._)([(0,s.$)("esri.rest.support.ImageSample")],l)},51508:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(90237),r=i(25482),o=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),a=i(49410);let l=class extends r.A{constructor(){super(...arguments),this.samples=[]}};(0,n._)([(0,o.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"samples",void 0),l=(0,n._)([(0,s.$)("esri.rest.support.ImageSampleResult")],l)},54339:(e,t,i)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map((t=>e.attributes?.[t]));return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},59247:(e,t,i)=>{i.d(t,{bv:()=>l,Fk:()=>u,yG:()=>c,$b:()=>d,Nd:()=>p,jm:()=>m,sK:()=>g});var n=i(40876),r=i(90629);function o(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const s=o();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:o,fromValues:function(e,t,i,n,r,o,s,a,l,u,c,d,p,m,h,y){const g=new Float32Array(16);return g[0]=e,g[1]=t,g[2]=i,g[3]=n,g[4]=r,g[5]=o,g[6]=s,g[7]=a,g[8]=l,g[9]=u,g[10]=c,g[11]=d,g[12]=p,g[13]=m,g[14]=h,g[15]=y,g}},Symbol.toStringTag,{value:"Module"}));var a=i(58083);class l{constructor(e,t,i){this.strength=e,this.radius=t,this.threshold=i,this.type="bloom"}interpolate(e,t,i){this.strength=h(e.strength,t.strength,i),this.radius=h(e.radius,t.radius,i),this.threshold=h(e.threshold,t.threshold,i)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:y(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,i){this.radius=Math.round(h(e.radius,t.radius,i))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:y(this.radius)}}}class c{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,i){this.amount=h(e.amount,t.amount,i),this._updateMatrix()}clone(){return new c(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||o();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const i=(0,a.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,a.mg)(i,i)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const i=(0,a.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,a.mg)(i,i)})(e,this.amount);break;case"grayscale":this._colorMatrix=(e=>{const t=1-this.amount,i=(0,a.hZ)(e,.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1);return(0,a.mg)(i,i)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const i=1-2*t,n=(0,a.hZ)(e,i,0,0,t,0,i,0,t,0,0,i,t,0,0,0,1);return(0,a.mg)(n,n)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const i=(0,a.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,a.mg)(i,i)})(e,this.amount);break;case"sepia":this._colorMatrix=(e=>{const t=1-this.amount,i=(0,a.hZ)(e,.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1);return(0,a.mg)(i,i)})(e)}}}class d{constructor(e,t,i,n){this.offsetX=e,this.offsetY=t,this.blurRadius=i,this.color=n,this.type="drop-shadow"}interpolate(e,t,i){this.offsetX=h(e.offsetX,t.offsetX,i),this.offsetY=h(e.offsetY,t.offsetY,i),this.blurRadius=h(e.blurRadius,t.blurRadius,i),this.color[0]=Math.round(h(e.color[0],t.color[0],i)),this.color[1]=Math.round(h(e.color[1],t.color[1],i)),this.color[2]=Math.round(h(e.color[2],t.color[2],i)),this.color[3]=h(e.color[3],t.color[3],i)}clone(){return new d(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:y(this.offsetX),yoffset:y(this.offsetY),blurRadius:y(this.blurRadius),color:e}}}class p{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,i){this.angle=h(e.angle,t.angle,i),this._updateMatrix()}clone(){return new p(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||o();this._colorMatrix=((e,t)=>{const i=Math.sin(t*Math.PI/180),n=Math.cos(t*Math.PI/180),r=(0,a.hZ)(e,.213+.787*n-.213*i,.715-.715*n-.715*i,.072-.072*n+.928*i,0,.213-.213*n+.143*i,.715+.285*n+.14*i,.072-.072*n-.283*i,0,.213-.213*n-.787*i,.715-.715*n+.715*i,.072+.928*n+.072*i,0,0,0,0,1);return(0,a.mg)(r,r)})(e,this.angle)}}class m{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,i){this.amount=h(e.amount,t.amount,i)}clone(){return new m(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function h(e,t,i){return e+(t-e)*i}function y(e){return Math.round(1e3*(0,r.PN)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new c(e.type,0);case"saturate":case"brightness":case"contrast":return new c(e.type,1);case"opacity":return new m(1);case"hue-rotate":return new p(0);case"blur":return new u(0);case"drop-shadow":return new d(0,0,0,[...(0,n.TS)("transparent")]);case"bloom":return new l(0,0,1)}}},63660:(e,t,i)=>{i.d(t,{G:()=>m});var n=i(90237),r=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),s=i(49186),a=i(29953),l=i(14140);class u{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,a.ho)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:e.pixelBlock.toJSON(),type:e.dataType},t);return i?new l.A(i):null}computeStatisticsHistograms(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");return this._workerThread.invoke("computeStatisticsHistograms",{pixelBlock:e.pixelBlock.toJSON()},t)}async decode(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("decode",e,t);return i?new l.A(i):null}async symbolize(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i={extent:e.extent?.toJSON(),pixelBlock:e.pixelBlock?.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",i,t);return n?new l.A(n):null}async updateSymbolizer(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:i},t))}async updateRasterFunction(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?e.toJSON():null)),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?e.toJSON():null)),primaryRasterIds:e.primaryRasterIds},t);return i?new l.A(i):null}async stretch(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},n=await this._workerThread.invoke("stretch",i,t);return n?new l.A(n):null}async split(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON(),tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},n=await this._workerThread.invoke("split",i,t);return n&&n.forEach(((e,t)=>{n.set(t,e?l.A.fromJSON(e):null)})),n}async clipTile(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={...e,pixelBlock:e.pixelBlock.toJSON()},n=await this._workerThread.invoke("clipTile",i,t);return n?l.A.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON()};return await this._workerThread.invoke("estimateStatisticsHistograms",i,t)}async mosaicAndTransform(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.srcPixelBlocks?.length)return{pixelBlock:null};const i={...e,srcPixelBlocks:e.srcPixelBlocks.map((e=>null!=e?e.toJSON():null))},n=await this._workerThread.invoke("mosaicAndTransform",i,t);return{pixelBlock:n.pixelBlock?new l.A(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:n,simulationSettings:r}=e,o=await this._workerThread.invoke("createFlowMesh",{meshType:n,flowData:i,simulationSettings:r},{...t,transferList:[i.buffer,i.maskBuffer]});return{vertexData:new Float32Array(o.vertexBuffer),indexData:new Uint32Array(o.indexBuffer)}}getProjectionOffsetGrid(e,t){if(!this._workerThread)throw new s.A("raster-jobhandler:no-connection","no available worker connection");const i=null!=e.datumTransformation?e.datumTransformation.steps.map((e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))):null,n=null!=e.rasterTransform?e.rasterTransform.toJSON():null,r={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:i,rasterTransform:n,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",r,t)}}var c=i(14636),d=i(12711),p=i(4095);const m=e=>{let t=class extends e{constructor(){super(...arguments),this._rasterJobHandlerConfig={instance:null,refCount:0,connectionPromise:null}}get _rasterJobHandler(){return this._rasterJobHandlerConfig.instance}increaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount--,this._rasterJobHandlerConfig.refCount<=0&&this._shutdownJobHandler()}async convertVectorFieldData(e,t,i){if(null==e)return null;const n=this._rasterJobHandler;return n?n.convertVectorFieldData({pixelBlock:e,dataType:t},i):(0,c.FI)(e,t)}async createFlowMesh(e,t){const i=this._rasterJobHandler;return i?i.createFlowMesh(e,t):(0,p.CW)(e.meshType,e.simulationSettings,e.flowData,null!=t.signal?t.signal:(new AbortController).signal)}_initJobHandler(){const{_rasterJobHandlerConfig:e}=this;if(e.connectionPromise)return e.connectionPromise;const t=new u;return e.connectionPromise=t.initialize().then((()=>{e.instance=t,this.notifyChange("_rasterJobHandler")}),(()=>{})),e.connectionPromise}_shutdownJobHandler(){const{_rasterJobHandlerConfig:e}=this;e.instance?.destroy(),e.instance=null,e.connectionPromise=null,e.refCount=0,this.notifyChange("_rasterJobHandler"),this._cachedRendererJson=void 0}async _updateSymbolizer(e,t,i,n){const r=this._rasterJobHandlerConfig.instance;if(!r)return;const o=(0,d.$P)({...t.toJSON(),variableName:i});JSON.stringify(this._cachedRendererJson)!==JSON.stringify(o)&&(n&&(e.rasterInfo=n),e.rendererJSON=o,e.bind(),await r.updateSymbolizer(e),this._cachedRendererJson=t.toJSON())}async _symbolize(e,t){const{pixelData:i,bandIds:n,simpleStretchParams:r}=e,o=this._rasterJobHandler;if(o){const e=await o.symbolize({...i,simpleStretchParams:r,bandIds:n},t);return{extent:i.extent,pixelBlock:e}}const s=e.symbolizer.symbolize({...i,simpleStretchParams:r,bandIds:n});return{extent:i.extent,pixelBlock:s}}};return(0,n._)([(0,r.MZ)({clonable:!1})],t.prototype,"_rasterJobHandler",null),(0,n._)([(0,r.MZ)({clonable:!1})],t.prototype,"_cachedRendererJson",void 0),(0,n._)([(0,r.MZ)({clonable:!1})],t.prototype,"_rasterJobHandlerConfig",void 0),t=(0,n._)([(0,o.$)("esri.layers.mixins.RasterJobHandlerMixin")],t),t}},67730:(e,t,i)=>{i.d(t,{A:()=>g});var n,r=i(90237),o=i(68197),s=i(66552),a=i(25482),l=i(90629),u=i(10107),c=(i(44208),i(53966),i(87811),i(93223)),d=i(40608),p=i(63988),m=i(30943),h=i(20061);const y=new s.J({flow_from:"flow-from",flow_to:"flow-to"});let g=n=class extends((0,p.h)(a.A)){constructor(e){super(e),this.density=.8,this.color=new o.A([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:e,maxPathLength:t,trailWidth:i,flowSpeed:r,trailLength:o,smoothing:s,flowRepresentation:a,trailCap:l,background:u}=this,c=this.color.clone(),d=(this.visualVariables||[]).map((e=>e.clone())),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new n({density:e,color:c,maxPathLength:t,trailWidth:i,flowSpeed:r,trailLength:o,trailCap:l,background:u,smoothing:s,flowRepresentation:a,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"density",void 0),(0,r._)([(0,u.MZ)({type:o.A,json:{write:{allowNull:!0}}})],g.prototype,"color",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"maxPathLength",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"trailWidth",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"flowSpeed",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"trailLength",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!1}})],g.prototype,"smoothing",void 0),(0,r._)([(0,u.MZ)({type:y.apiValues,json:{type:y.jsonValues,read:{reader:y.read},write:{writer:y.write}}})],g.prototype,"flowRepresentation",void 0),(0,r._)([(0,c.e)({flowRenderer:"flow"})],g.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:m.A,json:{write:!0}})],g.prototype,"authoringInfo",void 0),(0,r._)([(0,u.MZ)({type:h.A,json:{write:!0}})],g.prototype,"legendOptions",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"trailCap",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"background",void 0),g=n=(0,r._)([(0,d.$)("esri.renderers.FlowRenderer")],g)},69208:(e,t,i)=>{i.d(t,{d:()=>s});var n=i(90237),r=i(10107),o=(i(44208),i(53966),i(87811),i(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,n._)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,n._)([(0,o.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},70328:(e,t,i)=>{i.d(t,{BI:()=>f,Ej:()=>p,Ie:()=>g,Jt:()=>M,Ne:()=>m,RF:()=>c,aI:()=>I,fA:()=>s,gE:()=>l,hZ:()=>y,iT:()=>d,is:()=>w,qv:()=>A,vI:()=>h,vY:()=>a,v_:()=>v,vt:()=>o,w1:()=>u});var n=i(5443),r=(i(19419),i(4197));function o(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,n,r,s,a=o()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=s,a}function a(e,t=o()){return function(e,t,i,n=o()){return y(n,A),function(e,t,i=0,n=t.length/3){let r=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),o=Math.min(o,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function l(e,t=(0,r.jh)(24)){const[i,n,o,s,a,l]=e;return t[0]=i,t[1]=n,t[2]=o,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=o,t[9]=i,t[10]=a,t[11]=l,t[12]=s,t[13]=n,t[14]=o,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function h(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,A):o(A)}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function I(e,t,i){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const A=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];o()},73133:(e,t,i)=>{i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},74797:(e,t,i)=>{i.d(t,{AL:()=>f,DV:()=>y,ER:()=>r,F_:()=>a,Nd:()=>m,Oo:()=>o,dy:()=>p,eS:()=>v,h4:()=>b,jC:()=>M,nq:()=>h,rZ:()=>d,y6:()=>g});var n=i(20437);const r="Raster.",o="Raster.Dim.",s=".Max",a={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"},l=new Map([["quarters","Quarter"],["months","Month"],["weeks","Week of the year"],["days","Day of the year"]]);function u(e,t){return new n.A({name:e,alias:t,domain:null,editable:!1,length:50,type:"string"})}function c(e,t){return new n.A({name:e,alias:t,domain:null,editable:!1,type:"double"})}function d(e){return u(a.servicePixelValue,e??"Service Pixel Value")}function p(e){return u(a.rawServicePixelValue,e??"Raw Service Pixel Value")}function m(){return u(a.itemPixelValue,"Item Pixel Value")}function h(e){return u(`${a.servicePixelValue}.${e}`,e)}function y(e){return c(`${a.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function g(){return c(`${a.direction}`,"Direction (°)")}function M(e){return e.fields.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const t=e.clone();return t.name=`${r}${e.name}`,t}))}function f(e){const t=new Set,i=new Set,r=new Map;return e.variables.forEach((({dimensions:e})=>{e.forEach((e=>{if(e.recurring)r.set(e.name,e.unit);else{const n="ISO8601"===e.unit?.trim()?t:i;n.add(e.name),e.hasRanges&&n.add(`${e.name}${s}`)}}))})),[u(a.variable,"Variable"),...[...t].map((e=>function(e,t){return new n.A({name:e,alias:t,domain:null,editable:!1,type:"date"})}(`${o}${e}`,I(e)))),...[...i].map((e=>c(`${o}${e}`,I(e)))),...[...r].map((([e,t])=>c(`${o}${e}`,w(e,t))))]}function w(e,t){return t=t?.toLowerCase(),t&&l.has(t)?l.get(t):I(e)}function I(e){const t=e.endsWith(s),i=t?e.slice(0,-4):e,n="StdTime"===i?"Standard Time":"StdZ"===i?"Standard Z":i;return t?`${n} Max`:n}function A(e,t){return t?new Date(e):e}function v(e,t,i){i?.length&&(t[a.variable]=i[0].variableName,i.forEach((({dimensionName:i,values:n})=>{if(i&&n?.length){const r=`${o}${i}`,a=e.find((({name:e})=>e===r));if(!a)return;const l="date"===a.type,u=n[0];if(Array.isArray(u)){if(t[`${o}${i}`]=A(u[0],l),null!=u[1]){const n=`${o}${i}${s}`;if(e.some((({name:e})=>e===n))){const e=A(u[1],l);t[n]=e}}}else t[`${o}${i}`]=A(u,l)}})))}function b(e,t){if(t.pixelType.startsWith("f")&&e.forEach((({format:e,fieldName:t})=>{e&&t&&/^raster\.(item|service)pixelvalue/i.test(t)&&(e.places=2)})),t.multidimensionalInfo){const i=t.multidimensionalInfo.variables.flatMap((({dimensions:e})=>e));e.forEach((({format:e,fieldName:t})=>{if(e&&t?.startsWith(o)){const n=t.slice(o.length),r=`${n}${s}`,a=i.find((({name:e})=>e===n||e===r));a?.values?.every((e=>Number.isInteger(e)))&&(e.places=0)}}))}}},76353:(e,t,i)=>{function n(e){return"Function"===e?.datasetFormat}function r(e){return n(e)?e.primaryRasters.rasters:[e]}i.d(t,{p:()=>r,q:()=>n})},77301:(e,t,i)=>{i.d(t,{$E:()=>b,DY:()=>M,NG:()=>v,QW:()=>s,Rp:()=>m,XU:()=>h,Xg:()=>A,ct:()=>y,fy:()=>g,xx:()=>a,z2:()=>f});var n=i(4576),r=i(45617);function o(e,t,i){const n=t.shift();if(0===i.length){const e=[];i.push({sliceId:-1,multidimensionalDefinition:e})}const r=i.length;for(let t=0;t<r;t++){const t=i.shift().multidimensionalDefinition;n.values?.forEach((r=>{i.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:n.name,values:[r]}]})}))}t.length&&o(e,t,i)}function s(e,t){const i=[];let n=0;return(t?e.variables.filter((e=>e.name.toLowerCase()===t.toLowerCase())):[...e.variables].sort(((e,t)=>e.name>t.name?1:-1))).forEach((e=>{const t=[],r=[...e.dimensions].sort(((e,t)=>e.name>t.name?-1:1));o(e.name,r,t),t.forEach((e=>{i.push({...e,sliceId:n++})}))})),i}function a(e,t,i){let n=e;if(t&&(t=[...t].sort(((e,t)=>e.dimensionName<t.dimensionName?-1:1))).forEach((({dimensionName:e,values:t,isSlice:i})=>{t.length&&(n=n.filter((n=>{const r=n.multidimensionalDefinition.find((t=>t.dimensionName===e));if(null==r)return!1;const o=r.values[0];return"number"==typeof o?"number"==typeof t[0]?t.includes(o):t.some((e=>e[0]<=o&&e[1]>=o)):"number"==typeof t[0]?t.some((e=>o[0]<=e&&o[1]>=e)):i?t.some((e=>e[0]===o[0]&&e[0]===o[1])):t.some((e=>e[0]>=o[0]&&e[0]<=o[1]||e[1]>=o[0]&&e[1]<=o[1]||e[0]<o[0]&&e[1]>o[1]))})))})),n.length&&null!=i?.start&&null!=i.end){const e=i.start.getTime(),t=i.end.getTime(),r=n[0].multidimensionalDefinition.findIndex((e=>"StdTime"===e.dimensionName));r>-1&&(n=n.filter((i=>{const n=i.multidimensionalDefinition[r].values[0];return e<=n&&t>=n})))}return n.map((e=>e.sliceId))}function l(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function u(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function c(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function d(e,t,i){if(!t?.subsetDefinitions?.length)return e;let n;if(i){const{variables:r}=t;if(r.length&&!r.includes(i))return null;const o=t.subsetDefinitions.find((t=>t.dimensionName===e.name&&t.variableName===i));if(!o?.values?.length)return e;n=c(o.values)}else{const i=t.dimensions.find((({name:t})=>t===e.name));n=i?.extent}const r=n;if(!r?.length)return e;const o=e.values.filter((e=>l(e,r)));return{...e,extent:[...r],values:o}}function p(e,t,i){if(!t?.subsetDefinitions?.length)return!1;const{variables:n}=t;if(n.length&&e.some((({variableName:e})=>e&&!n.includes(e))))return!0;for(let n=0;n<e.length;n++){const r=e[n],o=t.subsetDefinitions.find((e=>(""===r.variableName||e.variableName===r.variableName)&&e.dimensionName===r.dimensionName));if(o?.values.length){const e=c(o.values);if(r.isSlice||2!==r.values.length||Array.isArray(r.values[0])||r.values[0]===r.values[1]||!i){if(r.values.some((t=>!l(t,e))))return!0}else if(!u(r.values,e))return!0}}return!1}function m(e,t){if(null==e)return{isOutside:!1};const{geometry:i,timeExtent:n,multidimensionalDefinition:o}=t;let s=null;if(null!=n&&(s=function(e,t){const i=e.dimensions.find((({name:e})=>"StdTime"===e));if(null==i||null==t.start&&null==t.end)return t;t=t.clone();const{start:n,end:o}=t.toJSON(),s=n===o?[n]:null!=n&&null!=o?[n,o]:[n??o];return 2===s.length&&i?.extent.length&&(s[0]=Math.max(s[0],i.extent[0]),s[1]=Math.min(s[1],i.extent[1]??i.extent[0]),s[1]<s[0])||p([new r.A({variableName:"",dimensionName:"StdTime",isSlice:1===s.length,values:s})],e,!0)?null:(t.start=new Date(s[0]),t.end=new Date(s[1]??s[0]),t)}(e,n),null==s))return{isOutside:!0};const{areaOfInterest:a}=e;if(a&&i){const e="point"===i.type?i:"extent"===i.type?i.center:"polygon"===i.type?i.centroid:null;if(e&&!a.contains(e))return{isOutside:!0}}return null!=o&&o.length&&p(o,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:i,timeExtent:s,multidimensionalDefinition:o}}}function h(e){const{rasterInfo:t,multidimensionalSubset:i}=e,{multidimensionalInfo:n}=t;if(null==n)return null;let r=e.multidimensionalDefinition?.length?e.multidimensionalDefinition:g(t,{multidimensionalSubset:i});if(!r?.length)return null;if(r.some((e=>!e.dimensionName))){const{variableName:e}=r[0],n=g(t,{multidimensionalSubset:i,variableName:e});n?.forEach((e=>{const t=r?.find((({dimensionName:t})=>t===e.dimensionName));t?.values?.length&&(e.values=t.values,e.isSlice=t.isSlice)})),r=n}const{timeExtent:o}=e;if(null!=r&&null!=o&&(null!=o.start||null!=o.end)){r=r.map((e=>e.clone()));const e=n.variables.find((({name:e})=>e===r[0].variableName))?.dimensions?.find((({name:e})=>"StdTime"===e)),t=r.find((({dimensionName:e})=>"StdTime"===e));if(!e||!t)return null;const{start:i,end:s}=o,a=null==i?null:i.getTime(),l=null==s?null:s.getTime(),u=a??l,c=l??a;if(null!=e.values){const i=e.values.filter((e=>{if(Array.isArray(e)){if(u===c)return e[0]<=u&&e[1]>=u;const t=e[0]<=u&&e[1]>u||e[0]<c&&e[1]>=c,i=e[0]>=u&&e[1]<=c||e[0]<u&&e[1]>c;return t||i}return u===c?e===u:e>=u&&e<=c}));if(i.length){const e=i.sort(((e,t)=>{const i=Array.isArray(e)?e[0]:e,n=Array.isArray(e)?e[1]:e,r=Array.isArray(t)?t[0]:t,o=Array.isArray(t)?t[1]:t;return u===c?i-r:Math.abs(n-c)-Math.abs(o-c)}))[0];t.values=[e]}else r=null}else if(e.hasRegularIntervals&&e.extent){const[i,n]=e.extent;u>n||c<i?r=null:t.values=u===c?[u]:[Math.max(i,u),Math.min(n,c)]}}return null!=r&&p(r,i)?null:r}function y(e,t={}){const{multidimensionalInfo:i,keyProperties:n}=e;if(null==i)return null;const{variableName:r,multidimensionalSubset:o,multidimensionalDefinition:s}=t,a=null!=s?s[0]?.variableName:null,l=r||a||n?.DefaultVariable;let{variables:u}=i;return o?.variables?.length&&(u=u.filter((({name:e})=>o.variables.includes(e)))),l?u.find((({name:e})=>e===l))??u[0]:u[0]}function g(e,t={}){const i=y(e,t);if(!i)return null;const n=[],{dimensions:o,name:s}=i;if(0===o.length)return[new r.A({variableName:s,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<o.length;e++){const i=d(o[e],t.multidimensionalSubset,s);if(!i)return null;const{values:a,extent:l}=i;let u=a?.[0]??l?.[0];"stdz"===i.name.toLowerCase()&&!i.hasRanges&&l&&Math.abs(l[1])<=Math.abs(l[0])&&(u=a?.length?a[a.length-1]:l[1]),n.push(new r.A({variableName:s,dimensionName:i.name,values:[u],isSlice:!t.useRangeForRangedDimensionInfo||!!i.hasRanges}))}return n}function M(e){return!!e?.length&&e.some((e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])}))}function f(e,t){if(null==t||null==e)return null;let i=t.variables.map((e=>({...e})));return e?.variables?.length&&(i=i.filter((({name:t})=>e.variables.includes(t))),i.forEach((t=>{t.dimensions=t.dimensions.map((i=>d(i,e,t.name))).filter(n.Ru)}))),i}function w(e,t){const{values:i}=t;if(i?.length){const t=Array.isArray(i[0]),n=Array.isArray(e);return t!==n?-1:t&&n?i.findIndex((t=>t[0]===e[0]&&t[1]===e[1])):i.indexOf(e)}const{extent:n}=t;if(Array.isArray(e)||!n||e<n[0]||e>n[1])return-1;const r=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-n[0])/r);const o=n[0];let s=-1;switch(t.intervalUnit?.toLowerCase()||"days"){case"seconds":s=Math.round((e-o)/1e3/r);break;case"minutes":s=Math.round((e-o)/6e4/r);break;case"hours":s=Math.round((e-o)/36e5/r);break;case"days":s=Math.round((e-o)/864e5/r);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear(),i=new Date(o).getUTCMonth(),n=new Date(e).getUTCMonth();s=0===t?n-i:n+11-i+12*(t-1)}break;case"years":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/r);break;case"decades":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/10/r)}return s}function I(e){let t=e.values?.length;if(t)return t;const{extent:i,unit:n}=e,r=e.interval||1,o=i?i[1]-i[0]:0;if("ISO8601"!==n)return Math.round(o/r);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(o/1e3/r);break;case"minutes":t=Math.round(o/6e4/r);break;case"hours":t=Math.round(o/36e5/r);break;case"days":t=Math.round(o/864e5/r);break;case"months":if(i){const e=new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear(),n=new Date(i[0]).getUTCMonth(),r=new Date(i[1]).getUTCMonth();t=0===e?r-n+1:r+11-n+12*(e-1)+1}else t=0;break;case"years":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/r):0;break;case"decades":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/10/r):0;break;default:t=0}return t}function A(e){if(2!==e.extent?.length||!e.interval)return[];const{extent:[t,i],interval:n}=e;if("ISO8601"===e.unit){const r=e.intervalUnit?.toLowerCase()??"days";return["decades","years","months","days","hours","minutes","seconds"].includes(r)?function(e,t,i,n){const r=[];let o=e;const s=new Date(e);for(;o<=t;)switch(r.push(o),n){case"decades":s.setUTCFullYear(s.getUTCFullYear()+10*i),o=s.getTime();break;case"years":s.setUTCFullYear(s.getUTCFullYear()+i),o=s.getTime();break;case"months":s.setUTCMonth(s.getUTCMonth()+i),o=s.getTime();break;case"days":o+=864e5*i;break;case"hours":o+=36e5*i;break;case"minutes":o+=6e4*i;break;case"seconds":o+=1e3*i}return 1===r.length?r[1]=t:r[r.length-1]=t,r}(t,i,n,r):[]}const r=Math.round((i-t)/n);return Array.from({length:r},((e,o)=>o===r-1?i:t+o*n))}function v(e,t){let i=0;const n=e[0].variableName,r=[...t.variables].sort(((e,t)=>e.name>t.name?1:-1));for(let t=0;t<r.length;t++){const o=r[t],s=[...o.dimensions].sort(((e,t)=>e.name>t.name?-1:1));if(o.name!==n){i+=s.map((e=>I(e))).reduce(((e,t)=>e*t));continue}const a=s.map((e=>I(e))),l=s.length;for(let t=0;t<l;t++){const n=e.find((e=>e.dimensionName===s[t].name));if(null==n)return null;const r=w(n.values[0],s[t]);if(-1===r)return null;a.shift(),i+=t===l-1?r:r*a.reduce(((e,t)=>e*t))}break}return i}function b(e){return Math.round(24*(e-25569)*3600*1e3)}},80498:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(90237),r=i(25482),o=i(10107),s=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),l=i(68197),u=i(56507);let c=class extends r.A{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,n._)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n._)([(0,o.MZ)({type:l.A,json:{type:[u.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),c=(0,n._)([(0,a.$)("esri.renderers.support.ColormapInfo")],c);var d,p=i(67369);let m=d=class extends r.A{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const i=5===e[0].length,n=[...e].sort(((e,t)=>e[0]-t[0])).map((e=>c.fromJSON({value:e[0],color:i?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]})));return new d({colormapInfos:n})}static createFromColorramp(e){const t=(0,p.R8)(e);return d.createFromColormap(t)}clone(){return new d({colormapInfos:this.colormapInfos.map((e=>e.toJSON()))})}extractColormap(){return this.colormapInfos.map((({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255])).sort(((e,t)=>e[0]-t[0]))}};(0,n._)([(0,o.MZ)({type:[c],json:{write:{isRequired:!0}}})],m.prototype,"colormapInfos",void 0),(0,n._)([(0,s.e)({rasterColormap:"raster-colormap"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],m.prototype,"type",void 0),m=d=(0,n._)([(0,a.$)("esri.renderers.RasterColormapRenderer")],m)},80754:(e,t,i)=>{i.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var n=i(82799),r=i(16930),o=i(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},82935:(e,t,i)=>{i.d(t,{B:()=>m,e:()=>h});var n=i(90237),r=i(10107),o=(i(44208),i(53966),i(87811),i(36005)),s=i(40608),a=i(89317),l=i(30524),u=i(96184),c=i(73133),d=i(64272),p=i(26253);const m={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},h=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,r=c.j.fromJSON(i.timeOffsetUnits);return n&&r?new p.T({value:n,unit:r}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,r.MZ)({type:d.T,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,r.MZ)({type:p.T})],t.prototype,"timeOffset",void 0),(0,n._)([(0,o.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,r.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,r.MZ)(m)],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,s.$)("esri.layers.mixins.TemporalLayer")],t),t}},84892:(e,t,i)=>{i.d(t,{t:()=>s});var n=i(53966);const r=()=>n.A.getLogger("esri.rest.support.generateRendererUtils");function o(e,t){return Number(e.toFixed(t))}function s(e,t){const{normalizationTotal:i}=e;return{classBreaks:a(e,t),normalizationTotal:i}}function a(e,t){const i=e.definition,{classificationMethod:n,normalizationType:r,definedInterval:s}=i,a=i.breakCount??1,c=[];let d=e.values;if(0===d.length)return[];d=d.sort(((e,t)=>e-t));const[p,m]=t??[d.at(0),d.at(-1)];if("equal-interval"===n)if(d.length>=a){const e=(m-p)/a;let t=p;for(let i=1;i<a;i++){const n=o(p+i*e,6);c.push({minValue:t,maxValue:n,label:l(t,n,r)}),t=n}c.push({minValue:t,maxValue:m,label:l(t,m,r)})}else d.forEach((e=>{c.push({minValue:e,maxValue:e,label:l(e,e,r)})}));else if("natural-breaks"===n){const t=function(e){const t=[],i=[];let n=Number.MIN_VALUE,r=1,o=-1;for(let s=0;s<e.length;s++){const a=e[s];a===n?(r++,i[o]=r):null!==a&&(t.push(a),n=a,r=1,i.push(r),o++)}return{uniqueValues:t,valueFrequency:i}}(d),i=e.valueFrequency||t.valueFrequency,n=u(t.uniqueValues,i,a);let s=p;for(let e=1;e<a;e++)if(t.uniqueValues.length>e){const i=o(t.uniqueValues[n[e]],6);c.push({minValue:s,maxValue:i,label:l(s,i,r)}),s=i}c.push({minValue:s,maxValue:m,label:l(s,m,r)})}else if("quantile"===n)if(d.length>=a&&p!==m){let e=p,t=Math.ceil(d.length/a),i=0;for(let n=1;n<a;n++){let o=t+i-1;o>d.length&&(o=d.length-1),o<0&&(o=0),c.push({minValue:e,maxValue:d[o],label:l(e,d[o],r)}),e=d[o],i+=t,t=Math.ceil((d.length-i)/(a-n))}c.push({minValue:e,maxValue:m,label:l(e,m,r)})}else{let e=-1;for(let t=0;t<d.length;t++){const i=d[t];i!==e&&(e=i,c.push({minValue:e,maxValue:i,label:l(e,i,r)}),e=i)}}else if("standard-deviation"===n){const e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(d),t=function(e,t){let i=0;for(let n=0;n<e.length;n++){const r=e[n];i+=(r-t)*(r-t)}return i/=e.length,Math.sqrt(i)}(d,e);if(0===t)c.push({minValue:d[0],maxValue:d[0],label:l(d[0],d[0],r)});else{const i=function(e,t,i,n,r){let o=Math.max(n-e,t-n)/r/i;return o=o>=1?1:o>=.5?.5:.25,o}(p,m,a,e,t)*t;let n=0,s=p;for(let t=a;t>=1;t--){const a=o(e-(t-.5)*i,6);c.push({minValue:s,maxValue:a,label:l(s,a,r)}),s=a,n++}let u=o(e+.5*i,6);c.push({minValue:s,maxValue:u,label:l(s,u,r)}),s=u,n++;for(let t=1;t<=a;t++)u=n===2*a?m:o(e+(t+.5)*i,6),c.push({minValue:s,maxValue:u,label:l(s,u,r)}),s=u,n++}}else if("defined-interval"===n){if(!s)return c;const[e,i]=t??[d.at(0),d.at(-1)],n=Math.ceil((i-e)/s);let a=e;for(let t=1;t<n;t++){const i=o(e+t*s,6);c.push({minValue:a,maxValue:i,label:l(a,i,r)}),a=i}c.push({minValue:a,maxValue:i,label:l(a,i,r)})}return c}function l(e,t,i){let n=null;return n=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,n}function u(e,t,i){const n=e.length,r=[];i>n&&(i=n);for(let e=0;e<i;e++)r.push(Math.round(e*n/i-1));r.push(n-1);let o=c(r,e,t,i);return function(e,t,i,n,r,o){let s=0,a=0,l=0,u=0,c=!0;for(let p=0;p<2&&c;p++){0===p&&(c=!1);for(let p=0;p<o-1;p++)for(;i[p+1]+1!==i[p+2];){i[p+1]=i[p+1]+1;const o=d(p,i,n,r);l=o.sbMean,s=o.sbSdcm;const m=d(p+1,i,n,r);if(u=m.sbMean,a=m.sbSdcm,!(s+a<t[p]+t[p+1])){i[p+1]=i[p+1]-1;break}t[p]=s,t[p+1]=a,e[p]=l,e[p+1]=u,c=!0}for(let p=o-1;p>0;p--)for(;i[p]!==i[p-1]+1;){i[p]=i[p]-1;const o=d(p-1,i,n,r);l=o.sbMean,s=o.sbSdcm;const m=d(p,i,n,r);if(u=m.sbMean,a=m.sbSdcm,!(s+a<t[p-1]+t[p])){i[p]=i[p]+1;break}t[p-1]=s,t[p]=a,e[p-1]=l,e[p]=u,c=!0}}return c}(o.mean,o.sdcm,r,e,t,i)&&(o=c(r,e,t,i)),r}function c(e,t,i,n){let r=[],o=[],s=[],a=0;const l=[],u=[];for(let r=0;r<n;r++){const n=d(r,e,t,i);l.push(n.sbMean),u.push(n.sbSdcm),a+=u[r]}let c,p=a,m=!0;for(;m||a<p;){m=!1,r=[];for(let t=0;t<n;t++)r.push(e[t]);for(let i=0;i<n;i++)for(let r=e[i]+1;r<=e[i+1];r++)if(c=t[r],i>0&&r!==e[i+1]&&Math.abs(c-l[i])>Math.abs(c-l[i-1]))e[i]=r;else if(i<n-1&&e[i]!==r-1&&Math.abs(c-l[i])>Math.abs(c-l[i+1])){e[i+1]=r-1;break}p=a,a=0,o=[],s=[];for(let r=0;r<n;r++){o.push(l[r]),s.push(u[r]);const n=d(r,e,t,i);l[r]=n.sbMean,u[r]=n.sbSdcm,a+=u[r]}}if(a>p){for(let t=0;t<n;t++)e[t]=r[t],l[t]=o[t],u[t]=s[t];a=p}return{mean:l,sdcm:u}}function d(e,t,i,n){let o=0,s=0;for(let r=t[e]+1;r<=t[e+1];r++){const e=n[r];o+=i[r]*e,s+=e}s<=0&&r().warn("Exception in Natural Breaks calculation");const a=o/s;let l=0;for(let r=t[e]+1;r<=t[e+1];r++)l+=n[r]*(i[r]-a)**2;return{sbMean:a,sbSdcm:l}}},85675:(e,t,i)=>{i.d(t,{A:()=>w});var n,r=i(90237),o=i(66552),s=i(25482),a=i(4718),l=i(10107),u=i(79901),c=i(36005),d=i(40608),p=i(43937),m=i(56507),h=i(86738),y=i(45617),g=i(22796);const M=(0,o.O)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),f=(0,o.O)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let w=n=class extends s.A{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method="none",this.multidimensionalDefinition=null,this.objectIds=null,this.operation="first",this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return f.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,i){null!=e&&(e=e.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t))).length&&(t[i]=e.map((e=>e.toJSON())))}readOperation(e,t){const i=t.mosaicOperation,n=t.mosaicOperator?.toLowerCase(),r=i||(n?M.toJSON(n):null);return M.fromJSON(r)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new n({ascending:this.ascending,itemRasterFunction:(0,a.o8)(this.itemRasterFunction),lockRasterIds:(0,a.o8)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,a.o8)(this.multidimensionalDefinition),objectIds:(0,a.o8)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,a.o8)(this.viewpoint),where:this.where})}};(0,r._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],w.prototype,"ascending",void 0),(0,r._)([(0,c.w)("ascending",["ascending","sortAscending"])],w.prototype,"readAscending",null),(0,r._)([(0,l.MZ)({type:g.A,json:{name:"itemRenderingRule",write:!0}})],w.prototype,"itemRasterFunction",void 0),(0,r._)([(0,l.MZ)({type:[m.jz],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],w.prototype,"lockRasterIds",void 0),(0,r._)([(0,l.MZ)({type:f.apiValues,json:{type:f.jsonValues,write:{target:"mosaicMethod",writer:f.write,isRequired:!0}}})],w.prototype,"method",void 0),(0,r._)([(0,c.w)("method",["mosaicMethod","defaultMosaicMethod"])],w.prototype,"readMethod",null),(0,r._)([(0,l.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"multidimensionalDefinition",void 0),(0,r._)([(0,p.K)("multidimensionalDefinition")],w.prototype,"writeMultidimensionalDefinition",null),(0,r._)([(0,l.MZ)({type:[m.jz],json:{name:"fids",write:!0}})],w.prototype,"objectIds",void 0),(0,r._)([(0,l.MZ)({type:M.apiValues,json:{type:M.jsonValues,read:{reader:M.read},write:{target:"mosaicOperation",writer:M.write}}})],w.prototype,"operation",void 0),(0,r._)([(0,c.w)("operation",["mosaicOperation","mosaicOperator"])],w.prototype,"readOperation",null),(0,r._)([(0,l.MZ)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],w.prototype,"sortField",void 0),(0,r._)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],w.prototype,"sortValue",void 0),(0,r._)([(0,u.w)("sortValue")],w.prototype,"castSortValue",null),(0,r._)([(0,l.MZ)({type:h.A,json:{write:!0}})],w.prototype,"viewpoint",void 0),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],w.prototype,"where",void 0),w=n=(0,r._)([(0,d.$)("esri.layers.support.MosaicRule")],w)},92300:(e,t,i)=>{i.d(t,{V:()=>o,X:()=>r});var n=i(65864);function r(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function o(e,t,i){const r=(0,n.xD)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=i,t}))}},92935:(e,t,i)=>{var n;i.d(t,{X:()=>n}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(n||(n={}))},94359:(e,t,i)=>{i.d(t,{Gj:()=>p,LF:()=>h,uy:()=>d});var n=i(67076),r=i(86162),o=i(67730),s=i(80498),a=i(46981),l=i(36280),u=i(93618),c=i(18031);const d={key:"type",base:null,typeMap:{"unique-value":u.A,"class-breaks":r.A,"raster-colormap":s.A,"raster-stretch":l.A,"vector-field":c.A,"raster-shaded-relief":a.A,flow:o.A}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"],delete p.typeMap.flow;const m={uniqueValue:u.A,classBreaks:r.A,rasterStretch:l.A,rasterColormap:s.A,vectorField:c.A,rasterShadedRelief:a.A,flowRenderer:o.A};function h(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const i=(r=e)&&m[r.type]||null;var r;if(i){const n=new i;return n.read(e,t),n}return t?.messages&&e&&t.messages.push(new n.A("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},96184:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(90237),r=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),u=i(43937),c=i(64272),d=i(26253),p=i(56400);function m(e,t){return d.T.fromJSON({value:e,unit:t})}let h=class extends(r.A.ClonableMixin(o.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n._)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,n._)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,n._)([(0,s.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,n._)([(0,a.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,n._)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,n._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,n._)([(0,s.MZ)({type:d.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,n._)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,n._)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,n._)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,n._)([(0,s.MZ)((0,p.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,n._)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,n._)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,n._)([(0,l.$)("esri.layers.support.TimeInfo")],h)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4522],{10536:(e,t,s)=>{function r(e){const t={};for(const s in e){if("declaredClass"===s)continue;const i=e[s];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){t[s]=[];for(let e=0;e<i.length;e++)t[s][e]=r(i[e])}else"object"==typeof i?i.toJSON&&(t[s]=JSON.stringify(i)):t[s]=i}return t}s.d(t,{z:()=>r})},13069:(e,t,s)=>{s.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>n});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},20437:(e,t,s)=>{s.d(t,{A:()=>g});var r,i=s(90237),n=s(66552),o=s(25482),a=s(10107),l=s(56507),u=(s(44208),s(87811),s(93223)),d=s(36005),c=s(40608),p=s(80451),h=s(98453);const y=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=class extends o.A{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?.value??null}readValueType(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?y.fromJSON(s.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,i._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,i._)([(0,a.MZ)()],g.prototype,"description",void 0),(0,i._)([(0,d.w)("description")],g.prototype,"readDescription",null),(0,i._)([(0,a.MZ)({types:p.gK,json:{read:{reader:p.rS},write:!0}})],g.prototype,"domain",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,i._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,i._)([(0,u.e)(h.m)],g.prototype,"type",void 0),(0,i._)([(0,a.MZ)()],g.prototype,"valueType",void 0),(0,i._)([(0,d.w)("valueType",["description"])],g.prototype,"readValueType",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=r=(0,i._)([(0,c.$)("esri.layers.support.Field")],g)},39357:(e,t,s)=>{s.d(t,{H:()=>l});var r,i=s(90237),n=s(25482),o=s(10107),a=(s(44208),s(53966),s(87811),s(40608));let l=r=class extends n.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=r=(0,i._)([(0,a.$)("esri.layers.support.CodedValue")],l)},50498:(e,t,s)=>{s.d(t,{Ye:()=>c,gy:()=>d,yR:()=>p});var r=s(66552),i=s(5443),n=s(91075),o=s(48526),a=s(86738),l=s(39829),u=s(82799);const d=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:n.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},51624:(e,t,s)=>{s.d(t,{A:()=>c});var r,i,n=s(44208),o=s(69397),a=s(93687);(i=r||(r={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const l=4294967296,u=new TextDecoder("utf-8"),d=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class c{constructor(e,t,s=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=r.unknown,this._init(e,t,s,i)}_init(e,t,s,r){this._data=e,this._dataView=t,this._pos=s,this._end=r}get usedMemory(){return 64+(0,o.Qf)(this._data)}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*l;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*l;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,r){const i=this.getMessage(),n=e(i,t,s,r);return i.release(),n}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case r.varint:this._decodeVarint();break;case r.fixed64:this._skip(8);break;case r.delimited:this._skip(this._getLength());break;case r.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,s=0,r=0;if(this._end-t>=10)do{if(r=e[t++],s|=127&r,!(128&r))break;if(r=e[t++],s|=(127&r)<<7,!(128&r))break;if(r=e[t++],s|=(127&r)<<14,!(128&r))break;if(r=e[t++],s|=(127&r)<<21,!(128&r))break;if(r=e[t++],s+=268435456*(127&r),!(128&r))break;if(r=e[t++],s+=34359738368*(127&r),!(128&r))break;if(r=e[t++],s+=4398046511104*(127&r),!(128&r))break;if(r=e[t++],s+=562949953421312*(127&r),!(128&r))break;if(r=e[t++],s+=72057594037927940*(127&r),!(128&r))break;if(r=e[t++],s+=0x8000000000000000*(127&r),!(128&r))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(r=e[t],128&r);)++t,s+=(127&r)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=r*i}return this._pos=t,s}_decodeSVarint(){const e=this._data;let t,s=0,r=0;const i=1&e[this._pos];if(r=e[this._pos++],s|=127&r,!(128&r))return i?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<7,!(128&r))return i?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<14,!(128&r))return i?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<21,!(128&r))return i?-(s+1)/2:s/2;if(r=e[this._pos++],s+=268435456*(127&r),!(128&r))return i?-(s+1)/2:s/2;if(r=e[this._pos++],s+=34359738368*(127&r),!(128&r))return i?-(s+1)/2:s/2;if(r=e[this._pos++],s+=4398046511104*(127&r),!(128&r))return i?-(s+1)/2:s/2;if(t=BigInt(s),r=e[this._pos++],t+=0x2000000000000n*BigInt(127&r),!(128&r))return Number(i?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x100000000000000n*BigInt(127&r),!(128&r))return Number(i?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x8000000000000000n*BigInt(127&r),!(128&r))return Number(i?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==r.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>d){const r=e.subarray(t,s);return u.decode(r)}let r="",i="";for(let n=t;n<s;++n){const t=e[n];128&t?i+="%"+t.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}static{this.pool=new a.A(c,void 0,(e=>{e._data=null,e._dataView=null}))}}},53177:(e,t,s)=>{s.d(t,{A:()=>c});var r,i=s(90237),n=s(4718),o=s(10107),a=(s(44208),s(53966),s(93223)),l=s(40608),u=s(39357),d=s(76357);let c=class extends d.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const s=String(e);this.codedValues.some((e=>(String(e.code)===s&&(t=e.name),!!t)))}return t}clone(){return new r({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i._)([(0,a.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=r=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],c)},53655:(e,t,s)=>{s.d(t,{SH:()=>O,ae:()=>S,cn:()=>_});var r=s(49186),i=s(51624),n=s(92722),o=s(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function d(e){return e>=a.length?null:a[e]}function c(e){return e>=l.length?null:l[e]}function p(e){return e>=u.length?null:u[e]}function h(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,s){const r=e.asUnsafe(),i=t.createPointGeometry(s);for(;r.next();)switch(r.tag()){case 3:{const e=r.getUInt32(),s=r.pos()+e;let n=0;for(;r.pos()<s;)t.addCoordinatePoint(i,r.getSInt64(),n++);break}default:r.skip()}return i}function g(e,t,s){const r=e.asUnsafe(),i=t.createGeometry(s),n=2+(s.hasZ?1:0)+(s.hasM?1:0);for(;r.next();)switch(r.tag()){case 2:{const e=r.getUInt32(),s=r.pos()+e;let n=0;for(;r.pos()<s;)t.addLength(i,r.getUInt32(),n++);break}case 3:{const e=r.getUInt32(),s=r.pos()+e;let o=0;for(t.allocateCoordinates(i);r.pos()<s;)t.addCoordinate(i,r.getSInt64(),o),o++,o===n&&(o=0);break}default:r.skip()}return i}function f(e){const t=e.asUnsafe(),s=new n.A;let r="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),r=t.pos()+e;for(;t.pos()<r;)s.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),r=t.pos()+e;for(;t.pos()<r;)s.coords.push(t.getSInt64());break}case 1:r=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:s,queryGeometryType:r}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),s={type:d(0)};for(;t.next();)switch(t.tag()){case 1:s.name=t.getString();break;case 2:s.type=d(t.getEnum());break;case 3:s.alias=t.getString();break;case 4:s.sqlType=c(t.getEnum());break;case 5:default:t.skip();break;case 6:s.defaultValue=t.getString()}return s}function w(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.name=s.getString();break;case 2:t.isSystemMaintained=s.getBool();break;default:s.skip()}return t}function b(e,t,s,r){const i=t.createFeature(s);let n=0;for(;e.next();)switch(e.tag()){case 1:{const t=r[n++].name;i.attributes[t]=e.processMessage(m);break}case 2:i.geometry=e.processMessageWithArgs(g,t,s);break;case 4:i.centroid=e.processMessageWithArgs(y,t,s);break;default:e.skip()}return i}function v(e){const t=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function k(e){const t=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function S(e){const t={originPosition:p(0)},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.originPosition=p(s.getEnum());break;case 2:t.scale=s.processMessage(v);break;case 3:t.translate=s.processMessage(k);break;default:s.skip()}return t}function x(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.shapeAreaFieldName=s.getString();break;case 2:t.shapeLengthFieldName=s.getString();break;case 3:t.units=s.getString();break;default:s.skip()}return t}function T(e,t){const s=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:s.wkid=e.getUInt32();break;case 5:s.wkt=e.getString();break;case 2:s.latestWkid=e.getUInt32();break;case 3:s.vcsWkid=e.getUInt32();break;case 4:s.latestVcsWkid=e.getUInt32();break;default:e.skip()}return s}function I(e,t){const s=t.createFeatureResult(),r=e.asUnsafe();s.geometryType=h(t,0);let i=!1;for(;r.next();)switch(r.tag()){case 1:s.objectIdFieldName=r.getString();break;case 3:s.globalIdFieldName=r.getString();break;case 4:s.geohashFieldName=r.getString();break;case 5:s.geometryProperties=r.processMessage(x);break;case 7:s.geometryType=h(t,r.getEnum());break;case 8:s.spatialReference=r.processMessageWithArgs(T,t);break;case 10:s.hasZ=r.getBool();break;case 11:s.hasM=r.getBool();break;case 12:s.transform=r.processMessage(S);break;case 9:s.exceededTransferLimit=r.getBool();break;case 13:t.addField(s,r.processMessage(_));break;case 15:i||(t.prepareFeatures(s),i=!0),t.addFeature(s,r.processMessageWithArgs(b,t,s,s.fields));break;case 2:s.uniqueIdField=r.processMessage(w);break;default:r.skip()}return t.finishFeatureResult(s),s}function A(e,t){const s={};let r=null;for(;e.next();)switch(e.tag()){case 4:r=e.processMessageWithArgs(f);break;case 1:s.featureResult=e.processMessageWithArgs(I,t);break;default:e.skip()}return null!=r&&s.featureResult&&t.addQueryGeometry(s,r),s}function O(e,t){try{const s=2,r=new i.A(new Uint8Array(e),new DataView(e)),n={};for(;r.next();)r.tag()===s?n.queryResult=r.processMessageWithArgs(A,t):r.skip();return n}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},58501:(e,t,s)=>{s.d(t,{q:()=>i});var r=s(62815);function i(e,t,s){if(!s?.features||!s.hasZ)return;const i=(0,r.N)(s.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of s.features)i(e.geometry)}},66208:(e,t,s)=>{s.d(t,{m:()=>i});var r=s(53655);function i(e,t){const s=(0,r.SH)(e,t),i=s.queryResult.featureResult,n=s.queryResult.queryGeometry,o=s.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=n,i.queryGeometryType=o),i}},69418:(e,t,s)=>{s.d(t,{S:()=>u,z:()=>l});var r=s(83047),i=s(21325),n=s(43334),o=s(58512),a=s(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,i.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,r.G9)(this._options.sourceSpatialReference)/(0,r.G9)(e.spatialReference);if(1!==t)for(const s of e.features){if(!(0,n.N3)(s))continue;const e=s.geometry.coords;for(let s=2;s<e.length;s+=3)e[s]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new n.Om(null,{},null,0)}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},72802:(e,t,s)=>{s.d(t,{U:()=>r});class r{constructor(e,t,s,r,i=void 0){this.id=e,this.level=t,this.row=s,this.col=r,this.extent=i}}},76357:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(90237),i=s(66552),n=s(25482),o=s(10107),a=(s(44208),s(53966),s(87811),s(93223)),l=s(40608);const u=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends n.A{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=(0,r._)([(0,l.$)("esri.layers.support.Domain")],d)},79897:(e,t,s)=>{s.d(t,{U:()=>d});var r=s(90237),i=s(69622),n=s(36563),o=s(36708),a=s(11932),l=s(10107),u=s(40608);let d=class extends i.A{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,s={}){return this._installWatch(e,t,s,o.wB)}addWhen(e,t,s={}){return this._installWatch(e,t,s,o.z7)}addOnCollectionChange(e,t,{initial:s=!1,final:r=!1}={}){const i=++this._handleId;return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.OH),(0,o.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],i),(0,n.hA)((()=>this.removeHandles(i)))}addPromise(e){if(null==e)return e;const t=++this._handleId;this.addHandles((0,n.hA)((()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(c)||this._set("updating",!1))})),t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this.removeHandles(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,s={},r){const i=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,i);const o=r(e,t,s);return this.addHandles(o,i),(0,n.hA)((()=>this.removeHandles(i)))}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),r=(0,o.wB)(e,s,{sync:!0,equals:()=>!1});return this.addHandles(r,t),r}_createSyncUpdatingCallback(){return()=>{this.removeHandles(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a._)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(c))})),c)}}};(0,r._)([(0,l.MZ)({readOnly:!0})],d.prototype,"updating",void 0),d=(0,r._)([(0,u.$)("esri.core.support.UpdatingHandles")],d);const c=-42},80451:(e,t,s)=>{s.d(t,{rS:()=>y,gK:()=>h}),s(44208);var r,i=s(53177),n=s(76357),o=s(90237),a=(s(53966),s(87811),s(49186),s(93223)),l=s(40608);let u=class extends n.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var d,c=s(10107);let p=class extends n.A{static{d=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new d({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,c.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,s){t[s]=[this.minValue||0,e]},isRequired:!0}}})],p.prototype,"maxValue",void 0),(0,o._)([(0,c.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,s){t[s]=[e,this.maxValue||0]},isRequired:!0}}})],p.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],p.prototype,"type",void 0),p=d=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],p);const h={key:"type",base:n.A,typeMap:{range:p,"coded-value":i.A,inherited:u}};function y(e){if(!e?.type)return null;switch(e.type){case"range":return p.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},80893:(e,t,s)=>{s.d(t,{IJ:()=>y,Jf:()=>_,Pk:()=>f,eW:()=>h,gW:()=>m,kS:()=>g});var r=s(78888),i=s(84952),n=s(65864),o=s(17136),a=s(21325),l=s(10536),u=s(66208),d=s(58501);const c="Layer does not support extent calculation.";function p(e,t,s){const r=e.geometry,i=e.toJSON();delete i.compactGeometryEnabled,delete i.defaultSpatialReferenceEnabled;const o=i;let l,u,d;if(r&&(u=r.spatialReference,d=(0,a.YX)(u),o.geometryType=(0,n.$B)(r),o.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const s=e.toJSON();return delete s.spatialReference,JSON.stringify(s)}(r,e.compactGeometryEnabled),o.inSR=d),i.groupByFieldsForStatistics&&(o.groupByFieldsForStatistics=i.groupByFieldsForStatistics.join(",")),i.objectIds)switch(s?.uniqueIdFields?.length){case void 0:o.objectIds=i.objectIds.join(",");break;case 1:o.uniqueIds=JSON.stringify(i.objectIds),delete o.objectIds;break;default:o.uniqueIds=JSON.stringify(i.objectIds.map((e=>JSON.parse(e)))),delete o.objectIds}if(i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),!i.outFields||!i.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete o.outFields:i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","),i.outSR?(o.outSR=(0,a.YX)(i.outSR),l=e.outSpatialReference):r&&(i.returnGeometry||i.returnCentroid)&&(o.outSR=o.inSR,l=u),i.returnGeometry&&delete i.returnGeometry,i.outStatistics&&(o.outStatistics=JSON.stringify(i.outStatistics)),i.fullText&&(o.fullText=JSON.stringify(i.fullText)),i.pixelSize&&(o.pixelSize=JSON.stringify(i.pixelSize)),i.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters?.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete i.quantizationParameters.extent.spatialReference,o.quantizationParameters=JSON.stringify(i.quantizationParameters)),i.parameterValues&&(o.parameterValues=JSON.stringify(i.parameterValues)),i.rangeValues&&(o.rangeValues=JSON.stringify(i.rangeValues)),i.dynamicDataSource&&(o.layer=JSON.stringify({source:i.dynamicDataSource}),delete i.dynamicDataSource),i.timeExtent){const e=i.timeExtent,{start:t,end:s}=e;null==t&&null==s||(o.time=t===s?t:`${t??"null"},${s??"null"}`),delete i.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=l&&u.equals(l)&&(o.defaultSR=o.inSR,delete o.inSR,delete o.outSR),o}async function h(e,t,s,r,i){const n=t.timeExtent?.isEmpty?{data:{features:[]}}:await b(e,t,"json",r,void 0,i);return(0,d.q)(t,s,n.data),n}async function y(e,t,s,r,i){if(t.timeExtent?.isEmpty)return{data:s.createFeatureResult()};const n=await g(e,t,r,i),o=n;return o.data=(0,u.m)(n.data,s),o}function g(e,t,s,r){return b(e,t,"pbf",s,void 0,r)}function f(e,t,s,r){return t.timeExtent?.isEmpty?Promise.resolve({data:{objectIds:[]}}):b(e,t,"json",s,{returnIdsOnly:!0},r)}function m(e,t,s,r){return t.timeExtent?.isEmpty?Promise.resolve({data:{count:0}}):b(e,t,"json",s,{returnIdsOnly:!0,returnCountOnly:!0},r)}async function _(e,t,s){if(t.timeExtent?.isEmpty)return{data:{count:0,extent:null}};const r=await b(e,t,"json",s,{returnExtentOnly:!0,returnCountOnly:!0}),i=r.data;if(i.hasOwnProperty("extent"))return r;if(i.features)throw new Error(c);if(i.hasOwnProperty("count"))throw new Error(c);return r}function w(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const s={...e,returnUniqueIdsOnly:!0};return delete s.returnIdsOnly,s}async function b(e,t,s,n={},a={},u={}){const d="string"==typeof e?(0,i.An)(e):e,c=t.geometry?[t.geometry]:[],h=await(0,o.el)(c,null,{signal:n.signal}),y=h?.[0];null!=y&&((t=t.clone()).geometry=y);const g=(0,l.z)({...d.query,f:s,...w(a,u),...p(t,a,u)});return(0,r.A)((0,i.fj)(d.path,(f=a,null==t.formatOf3DObjects||f.returnCountOnly||f.returnExtentOnly||f.returnIdsOnly?"query":"query3d")),{...n,responseType:"pbf"===s?"array-buffer":"json",query:{...g,...n.query}});var f}},87045:(e,t,s)=>{s.d(t,{A:()=>v});var r,i=s(90237),n=s(66552),o=s(25482),a=s(83047),l=s(10107),u=s(56507),d=(s(44208),s(87811),s(36005)),c=s(40608),p=s(43937),h=s(86738),y=s(16930),g=s(19419),f=s(21325),m=s(28735),_=s(91806),w=s(72802);const b=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends o.A{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:s,size:i=256,spatialReference:n=y.A.WebMercator,numLODs:o=24}=e;if(!(0,f.fn)(n)){const e=[];if(s)for(let t=0;t<s.length;t++){const r=s[t];e.push(new _.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let s=o-1;s>=0;s--)e.unshift(new _.A({level:s,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,n),size:[i,i],spatialReference:n})}const l=(0,f.Vp)(n),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:n}):new h.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),d=1/(39.37*(0,a.GA)(n)*96),c=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],r=t*d;c.push(new _.A({level:e,scale:t,resolution:r}))}else{let e=(0,f.EA)(n)?512/i*591657527.5917094:256/i*591657527.591555;const s=Math.ceil(o/t);c.push(new _.A({level:0,scale:e,resolution:e*d}));for(let r=1;r<s;r++){const s=e/2**t,i=s*d;c.push(new _.A({level:r,scale:s,resolution:i})),e=s}}return new r({dpi:96,lods:c,origin:u,size:[i,i],spatialReference:n})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,f.Vp)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const r=[],i=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,i[e.level]=e}))),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),r=s+1;return t[s]/(t[s]/t[r])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let r=0;for(;r<s;r++){const s=t[r],i=t[r+1];if(s<=e)return r;if(i===e)return r+1;if(s>e&&i<e)return r+Math.log(s/e)/Math.log(s/i)}return r}tileAt(e,t,s,r){const i=this.lodAt(e);if(!i)return null;let n,o;if("number"==typeof t)n=t,o=s;else if((0,f.aI)(t.spatialReference,this.spatialReference))n=t.x,o=t.y,r=s;else{const e=(0,m.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,o=e.y,r=s}const a=i.resolution*this.size[0],l=i.resolution*this.size[1];return r||(r=new w.U(null,0,0,0,(0,g.vt)())),r.level=e,r.row=Math.floor((this.origin.y-o)/l+.001),r.col=Math.floor((n-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let s=this.lodAt(e.level);if(!s&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return;const i=e.level-s.level,n=s.resolution*this.size[0]/2**i,o=s.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,g.vt)()),e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:r}=s,i=r*this.size[0],n=r*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+i,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const s=[],i=this.lods.length-t;for(let e=0;e<i;e++){const r=e+t,{scale:i,resolution:n}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};s.push(new _.A({level:e,scale:i,resolution:n}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const r=e[s];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var k,S;(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,i._)([(0,l.MZ)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,i._)([(0,l.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,i._)([(0,l.MZ)({type:h.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,i._)([(0,d.w)("origin")],v.prototype,"readOrigin",null),(0,i._)([(0,l.MZ)({type:[_.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,i._)([(0,l.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,i._)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,i._)([(0,d.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,i._)([(0,p.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,i._)([(0,l.MZ)({type:y.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=r=(0,i._)([(0,c.$)("esri.layers.support.TileInfo")],v),(S=(k=v||(v={})).ExtrapolateOptions||(k.ExtrapolateOptions={}))[S.NONE=0]="NONE",S[S.POWER_OF_TWO=1]="POWER_OF_TWO"},91806:(e,t,s)=>{s.d(t,{A:()=>u});var r,i=s(90237),n=s(25482),o=s(10107),a=s(56507),l=(s(44208),s(87811),s(40608));let u=class extends n.A{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,i._)([(0,o.MZ)({type:a.jz,json:{write:!0}})],u.prototype,"level",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,i._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,i._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,i._)([(0,l.$)("esri.layers.support.LOD")],u)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[603],{70603:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>ae});var i,r,o=n(52106),a=n(66131),s=n(47609),l=n(66395),u=n(59534),c=n(85935),d=n(93833),f=n(40334),m=n(93818),p=n(78878),y=n(80672),w=n(68423),I=n(35704),g=n(86691),h=n(54461),T=n(85978),F=n(30235),b=n(87594),D=n(33325),A=n(80609),N=n(334),v=n(74887),E=n(88368),k=n(13600),S=n(20437),$=n(20655),x=n(78888),Z=n(51447),C=n(53966),j=n(66552);(r=i||(i={}))[r.RTJunctionJunctionConnectivity=1]="RTJunctionJunctionConnectivity",r[r.RTContainment=2]="RTContainment",r[r.RTAttachment=3]="RTAttachment",r[r.RTJunctionEdgeConnectivity=4]="RTJunctionEdgeConnectivity",r[r.RTEdgeJunctionEdgeConnectivity=5]="RTEdgeJunctionEdgeConnectivity",new j.J({connected:"connected",upstream:"upstream",downstream:"downstream",shortestPath:"shortest-path",subnetwork:"subnetwork",subnetworkController:"subnetwork-controller",loops:"loops",isolation:"isolation",path:"path",circuit:"circuit"});const U=new j.J({junctionJunctionConnectivity:"junction-junction-connectivity",connectivity:"connectivity",attachment:"attachment",containment:"containment",junctionEdgeFromConnectivity:"junction-edge-from-connectivity",junctionEdgeMidspanConnectivity:"junction-edge-midspan-connectivity",junctionEdgeToConnectivity:"junction-edge-to-connectivity"});new j.J({normal:"normal",rebuild:"rebuild",forceRebuild:"force-rebuild"});var L=n(2272),M=n(90237),P=n(25482),R=n(10107),_=(n(44208),n(87811),n(40608)),X=n(36005),O=n(43937),K=n(82799);let G=class extends P.A{constructor(e){super(e),this.type="networkElement",this.assetGroupCode=null,this.assetTypeCode=null,this.globalId=null,this.networkSourceId=null,this.objectId=null,this.positionFrom=null,this.positionTo=null,this.terminalId=null}};(0,M._)([(0,R.MZ)({json:{write:!1}})],G.prototype,"type",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"assetGroupCode",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"assetTypeCode",void 0),(0,M._)([(0,R.MZ)({type:String,json:{write:!0}})],G.prototype,"globalId",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"networkSourceId",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"objectId",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"positionFrom",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"positionTo",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],G.prototype,"terminalId",void 0),G=(0,M._)([(0,_.$)("esri.rest.networks.support.NetworkElement")],G);let V=class extends G{constructor(e){super(e),this.type="telecomNetworkElement",this.firstUnit=null,this.numUnits=null}};(0,M._)([(0,R.MZ)({json:{write:!1}})],V.prototype,"type",void 0),(0,M._)([(0,R.MZ)({json:{write:!0}})],V.prototype,"firstUnit",void 0),(0,M._)([(0,R.MZ)({json:{write:!0}})],V.prototype,"numUnits",void 0),V=(0,M._)([(0,_.$)("esri.rest.networks.support.TelecomNetworkElement")],V);let J=class extends P.A{constructor(e){super(e),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(e,t){return t.fromFirstUnit||t.fromNumUnits?new V({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,terminalId:t.fromTerminalId,firstUnit:t.fromFirstUnit,numUnits:t.fromNumUnits}):new G({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,terminalId:t.fromTerminalId})}writeFromNetworkElement(e,t){if(e&&(t.fromGlobalId=e.globalId,t.fromNetworkSourceId=e.networkSourceId,t.fromTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.fromFirstUnit=n.firstUnit,t.fromNumUnits=n.numUnits}}readToNetworkElement(e,t){return t.toFirstUnit||t.toNumUnits?new V({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,terminalId:t.toTerminalId,firstUnit:t.toFirstUnit,numUnits:t.toNumUnits}):new G({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,terminalId:t.toTerminalId})}writeToNetworkElement(e,t){if(e&&(t.toGlobalId=e.globalId,t.toNetworkSourceId=e.networkSourceId,t.toTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.toFirstUnit=n.firstUnit,t.toNumUnits=n.numUnits}}};(0,M._)([(0,R.MZ)({type:String,json:{write:!0}})],J.prototype,"globalId",void 0),(0,M._)([(0,R.MZ)({type:U.apiValues,json:{type:U.jsonValues,read:U.read,write:U.write}})],J.prototype,"associationType",void 0),(0,M._)([(0,R.MZ)({type:G,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromNumUnits:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromNumUnits"]}}})],J.prototype,"fromNetworkElement",void 0),(0,M._)([(0,X.w)("fromNetworkElement")],J.prototype,"readFromNetworkElement",null),(0,M._)([(0,O.K)("fromNetworkElement")],J.prototype,"writeFromNetworkElement",null),(0,M._)([(0,R.MZ)({type:G,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toNumUnits:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toNumUnits"]}}})],J.prototype,"toNetworkElement",void 0),(0,M._)([(0,X.w)("toNetworkElement")],J.prototype,"readToNetworkElement",null),(0,M._)([(0,O.K)("toNetworkElement")],J.prototype,"writeToNetworkElement",null),(0,M._)([(0,R.MZ)({type:K.A,json:{write:!0}})],J.prototype,"geometry",void 0),(0,M._)([(0,R.MZ)({type:String,json:{write:!0}})],J.prototype,"errorMessage",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],J.prototype,"percentAlong",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],J.prototype,"errorCode",void 0),(0,M._)([(0,R.MZ)({type:Boolean,json:{write:!0}})],J.prototype,"isContentVisible",void 0),(0,M._)([(0,R.MZ)({type:Number,json:{write:!0}})],J.prototype,"status",void 0),J=(0,M._)([(0,_.$)("esri.rest.networks.support.Association")],J);let z=class extends P.A{constructor(e){super(e),this.associations=[]}};function H(e){const{returnDeletes:t,elements:n,gdbVersion:i,moment:r}=e.toJSON();return{returnDeletes:t,elements:JSON.stringify(n.map((e=>({globalId:e.globalId,networkSourceId:e.networkSourceId,terminalId:e.terminalId})))),types:JSON.stringify(e.types.map((e=>U.toJSON(e)))).replaceAll('"connectivity"','"junctionJunctionConnectivity"'),gdbVersion:i,moment:r}}async function W(e,t,n){const i=(0,L.Dl)(e),r={...H(t),f:"json"},o=(0,L.lF)({...i.query,...r}),a=(0,L.jV)(o,{...n,method:"post"}),s=`${i.path}/associations/query`,{data:l}=await(0,x.A)(s,a),u=z.fromJSON(l);return t.types.includes("connectivity")&&(0,Z.Lx)(C.A.getLogger("esri/rest/networks/support/QueryAssociationsParameters"),"types",{replacement:"Please use 'junction-junction-connectivity' instead of 'connectivity'.",see:"https://arcg.is/11Tr8a#types",version:"4.29",warnOnce:!0}),u}(0,M._)([(0,R.MZ)({type:[J],json:{write:!0}})],z.prototype,"associations",void 0),z=(0,M._)([(0,_.$)("esri.rest.networks.support.QueryAssociationsResult")],z);var B,Q=n(56507);let q=B=class extends P.A{static from(e){return(0,Q.PZ)(B,e)}constructor(e){super(e),this.returnDeletes=!1,this.elements=[],this.types=[],this.gdbVersion=null,this.moment=null}};(0,M._)([(0,R.MZ)({type:Boolean,json:{write:!0}})],q.prototype,"returnDeletes",void 0),(0,M._)([(0,R.MZ)({type:[G],json:{write:!0}})],q.prototype,"elements",void 0),(0,M._)([(0,R.MZ)({type:[U.apiValues],json:{type:U.jsonValues,read:U.read,write:U.write}})],q.prototype,"types",void 0),(0,M._)([(0,R.MZ)({type:String,json:{write:!0}})],q.prototype,"gdbVersion",void 0),(0,M._)([(0,R.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?.getTime()}}}})],q.prototype,"moment",void 0),q=B=(0,M._)([(0,_.$)("esri.rest.networks.support.QueryAssociationsParameters")],q);var Y=n(54218);function ee(e,t,n){const i=e.getVariables();if(i.length>0){const r={};for(const e of i)r[e]=t.evaluateIdentifier(n,{name:e});e.parameters=r}return e}function te(e,t,n=null){for(const n in e)if(n.toLowerCase()===t.toLowerCase())return e[n];return n}function ne(e){if(null===e)return null;const t={type:te(e,"type",""),name:te(e,"name","")};if("range"===t.type)t.range=te(e,"range",[]);else{t.codedValues=[];for(const n of te(e,"codedValues",[]))t.codedValues.push({name:te(n,"name",""),code:te(n,"code",null)})}return t}function ie(e){if(null===e)return null;const t={},n=te(e,"wkt");null!==n&&(t.wkt=n);const i=te(e,"wkid");return null!==i&&(t.wkid=i),t}function re(e){if(null===e)return null;const t={hasZ:te(e,"hasz",!1),hasM:te(e,"hasm",!1)},n=te(e,"spatialreference");null!=n&&(t.spatialReference=ie(n));const i=te(e,"x",null);if(null!==i)return t.x=i,t.y=te(e,"y",null),t.hasZ&&(t.z=te(e,"z",null)),t.hasM&&(t.m=te(e,"m",null)),t;const r=te(e,"rings",null);if(null!==r)return t.rings=r,t;const o=te(e,"paths",null);if(null!==o)return t.paths=o,t;const a=te(e,"points",null);if(null!==a)return t.points=a,t;for(const n of["xmin","xmax","ymin","ymax","zmin","zmax","mmin","mmax"]){const i=te(e,n,null);null!==i&&(t[n]=i)}return t}function oe(e){return"utc"===e?.toLowerCase()?"UTC":"unknown"===e?.toLowerCase()?"Unknown":e}function ae(e){if("async"===e.mode){e.functions.timezone=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{if((0,p.D)(r,1,2,t,n),(0,p.k)(r[0]))return"Unknown";if((0,p.j)(r[0]))return"Unknown";if((0,p.p)(r[0])){if(await r[0].load(),1===r.length||null===r[1])return r[0].datesInUnknownTimezone?oe("unknown"):oe(r[0].dateFieldsTimeZone);if(!(r[1]instanceof l.A)||!1===r[1].hasField("type"))throw new c.D$(t,c.TX.InvalidParameter,n);const e=r[1].field("type");if(!1===(0,Y.Kg)(e))throw new c.D$(t,c.TX.InvalidParameter,n);switch((0,p.f)(e).toLowerCase()){case"preferredtimezone":return oe(r[0].preferredTimeZone);case"editfieldsinfo":return oe(r[0].editFieldsInfo?.timeZone??null);case"timeinfo":return oe(r[0].timeInfo?.timeZone??null);case"field":if(r[1].hasField("fieldname")&&(0,Y.Kg)(r[1].field("fieldname")))return oe(r[0].fieldTimeZone((0,p.f)(r[1].field("fieldname"))))}throw new c.D$(t,c.TX.InvalidParameter,n)}const o=(0,p.h)(r[0],(0,p.L)(t));if(null===o)return null;const s=o.timeZone;return"system"===s?a.lY.systemTimeZoneCanonicalName:"utc"===s.toLowerCase()?"UTC":"unknown"===s.toLowerCase()?"Unknown":s}))},e.functions.sqltimestamp=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{(0,p.D)(r,1,3,t,n);const o=r[0];if((0,p.g)(o)){if(1===r.length)return o.toSQLWithKeyword();if(2===r.length)return o.changeTimeZone((0,p.f)(r[1])).toSQLWithKeyword();throw new c.D$(t,c.TX.InvalidParameter,n)}if((0,p.j)(o))return o.toSQLWithKeyword();if((0,p.p)(o)){if(3!==r.length)throw new c.D$(t,c.TX.InvalidParameter,n);await o.load();const e=(0,p.f)(r[1]);if((0,p.j)(r[2]))return r[2].toSQLWithKeyword();if(!1===(0,p.g)(r[2]))throw new c.D$(t,c.TX.InvalidParameter,n);const i=o.fieldTimeZone(e);return null==i?r[2].toSQLWithKeyword():r[2].changeTimeZone(i).toSQLWithKeyword()}throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"sqltimestamp",min:2,max:4}),e.functions.featuresetbyid=function(t,n){return e.standardFunctionAsync(t,n,((e,i,r)=>{if((0,p.D)(r,2,4,t,n),(0,p.o)(r[0])){const e=(0,p.f)(r[1]);let i=(0,p.K)(r[2],null);const o=(0,p.e)((0,p.K)(r[3],!0));if(null===i&&(i=["*"]),!1===(0,Y.cy)(i))throw new c.D$(t,c.TX.InvalidParameter,n);return r[0].featureSetById(e,o,i)}throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"featuresetbyid",min:2,max:4});const t=new u.b(["datasource","parent","root"]);e.functions.getfeatureset=function(n,i){return e.standardFunctionAsync(n,i,(async(e,r,o)=>{if((0,p.D)(o,1,2,n,i),(0,p.n)(o[0])){const e=null==o[1]?"datasource":t.lookup((0,p.f)(o[1]));return(0,f.convertToFeatureSet)(o[0].fullSchema(),e,n.lrucache,n.interceptor,n.spatialReference)}throw new c.D$(n,c.TX.InvalidParameter,i)}))},e.signatures.push({name:"getfeatureset",min:1,max:2}),e.functions.featuresetbyportalitem=function(t,n){return e.standardFunctionAsync(t,n,((e,i,r)=>{if((0,p.D)(r,2,5,t,n),null===r[0])throw new c.D$(t,c.TX.PortalRequired,n);if(r[0]instanceof s.A){const e=(0,p.f)(r[1]),i=(0,p.f)(r[2]);let o=(0,p.K)(r[3],null);const a=(0,p.e)((0,p.K)(r[4],!0));if(null===o&&(o=["*"]),!1===(0,Y.cy)(o))throw new c.D$(t,c.TX.InvalidParameter,n);let s;return s=t.services?.portal?t.services.portal:$.A.getDefault(),s=(0,y.R)(r[0],s),(0,f.constructFeatureSetFromPortalItem)(e,i,t.spatialReference,o,a,s,t.lrucache,t.interceptor)}if(!1===(0,Y.Kg)(r[0]))throw new c.D$(t,c.TX.PortalRequired,n);const o=(0,p.f)(r[0]),a=(0,p.f)(r[1]);let l=(0,p.K)(r[2],null);const u=(0,p.e)((0,p.K)(r[3],!0));if(null===l&&(l=["*"]),!1===(0,Y.cy)(l))throw new c.D$(t,c.TX.InvalidParameter,n);return(0,f.constructFeatureSetFromPortalItem)(o,a,t.spatialReference,l,u,t.services?.portal??$.A.getDefault(),t.lrucache,t.interceptor)}))},e.signatures.push({name:"featuresetbyportalitem",min:2,max:5}),e.functions.featuresetbyname=function(t,n){return e.standardFunctionAsync(t,n,((e,i,r)=>{if((0,p.D)(r,2,4,t,n),(0,p.o)(r[0])){const e=(0,p.f)(r[1]);let i=(0,p.K)(r[2],null);const o=(0,p.e)((0,p.K)(r[3],!0));if(null===i&&(i=["*"]),!1===(0,Y.cy)(i))throw new c.D$(t,c.TX.InvalidParameter,n);return r[0].featureSetByName(e,o,i)}throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"featuresetbyname",min:2,max:4}),e.functions.featureset=function(t,n){return e.standardFunction(t,n,((e,i,r)=>{(0,p.D)(r,1,1,t,n);const o={layerDefinition:{geometryType:"",objectIdField:"",globalIdField:"",typeIdField:"",hasM:!1,hasZ:!1,fields:[]},featureSet:{geometryType:"",features:[]}};if((0,Y.Kg)(r[0])){const e=JSON.parse(r[0]);void 0!==e.layerDefinition?(o.layerDefinition=e.layerDefinition,o.featureSet=e.featureSet,e.layerDefinition.spatialReference&&(o.layerDefinition.spatialReference=e.layerDefinition.spatialReference)):(o.featureSet.features=e.features,o.featureSet.geometryType=e.geometryType,o.layerDefinition.geometryType=o.featureSet.geometryType,o.layerDefinition.objectIdField=e.objectIdFieldName??"",o.layerDefinition.typeIdField=e.typeIdFieldName,o.layerDefinition.globalIdField=e.globalIdFieldName,o.layerDefinition.fields=e.fields,e.spatialReference&&(o.layerDefinition.spatialReference=e.spatialReference))}else{if(!(r[0]instanceof l.A))throw new c.D$(t,c.TX.InvalidParameter,n);{const e=JSON.parse(r[0].castToText(!0)),i=te(e,"layerdefinition");if(null!==i){o.layerDefinition.geometryType=te(i,"geometrytype",""),o.featureSet.geometryType=o.layerDefinition.geometryType,o.layerDefinition.globalIdField=te(i,"globalidfield",""),o.layerDefinition.objectIdField=te(i,"objectidfield",""),o.layerDefinition.typeIdField=te(i,"typeidfield",""),o.layerDefinition.hasZ=!0===te(i,"hasz",!1),o.layerDefinition.hasM=!0===te(i,"hasm",!1);const t=te(i,"spatialreference");t&&(o.layerDefinition.spatialReference=ie(t));const n=[];for(const e of te(i,"fields",[])){const t={name:te(e,"name",""),alias:te(e,"alias",""),type:te(e,"type",""),nullable:te(e,"nullable",!0),editable:te(e,"editable",!0),length:te(e,"length",null),domain:ne(te(e,"domain"))};n.push(t)}o.layerDefinition.fields=n;const r=te(e,"featureset");if(r){const e={};for(const t of n)e[t.name.toLowerCase()]=t.name;for(const t of te(r,"features",[])){const n={},i=te(t,"attributes",{});for(const t in i)n[e[t.toLowerCase()]]=i[t];o.featureSet.features.push({attributes:n,geometry:re(te(t,"geometry"))})}}}else{o.layerDefinition.hasZ=!0===te(e,"hasz",!1),o.layerDefinition.hasM=!0===te(e,"hasm",!1),o.layerDefinition.geometryType=te(e,"geometrytype",""),o.featureSet.geometryType=o.layerDefinition.geometryType,o.layerDefinition.objectIdField=te(e,"objectidfieldname",""),o.layerDefinition.typeIdField=te(e,"typeidfieldname","");const i=te(e,"spatialreference");i&&(o.layerDefinition.spatialReference=ie(i));const r=[],a=te(e,"fields",null);if(!(0,Y.cy)(a))throw new c.D$(t,c.TX.InvalidParameter,n);for(const e of a){const t={name:te(e,"name",""),alias:te(e,"alias",""),type:te(e,"type",""),nullable:te(e,"nullable",!0),editable:te(e,"editable",!0),length:te(e,"length",null),domain:ne(te(e,"domain"))};r.push(t)}o.layerDefinition.fields=r;const s={};for(const e of r)s[e.name.toLowerCase()]=e.name;let l=te(e,"features",null);if((0,Y.cy)(l))for(const e of l){const t={},n=te(e,"attributes",{});for(const e in n)t[s[e.toLowerCase()]]=n[e];o.featureSet.features.push({attributes:t,geometry:re(te(e,"geometry",null))})}else l=null,o.featureSet.features=l}}}if(!1===function(e){return!!e.layerDefinition&&!!e.featureSet&&!1!==function(e){for(const t of["",null,"esriGeometryNull","esriGeometryPoint","esriGeometryPolyline","esriGeometryPolygon","esriGeometryMultipoint","esriGeometryEnvelope"])if(t===e)return!0;return!1}(e.layerDefinition.geometryType)&&!1!==(0,Y.cy)(e.layerDefinition.fields)&&!1!==(0,Y.cy)(e.featureSet.features)}(o))throw new c.D$(t,c.TX.InvalidParameter,n);return o.layerDefinition.geometryType||(o.layerDefinition.geometryType="esriGeometryNull"),F.A.create(o,t.spatialReference)}))},e.signatures.push({name:"featureset",min:1,max:1}),e.functions.filter=function(t,n){return e.standardFunctionAsync(t,n,(async(i,r,o)=>{if((0,p.D)(o,2,2,t,n),(0,Y.cy)(o[0])||(0,p.m)(o[0])){const e=[];let i,r=o[0];if(r instanceof m.A&&(r=r.toArray()),!(0,p.i)(o[1]))throw new c.D$(t,c.TX.InvalidParameter,n);i=o[1].createFunction(t);for(const t of r){const n=i(t);(0,v.$X)(n)?!0===await n&&e.push(t):!0===n&&e.push(t)}return e}if((0,p.p)(o[0])){const n=await o[0].load(),i=E.A.create(o[1],{fieldsIndex:n.getFieldsIndex(),timeZone:n.dateFieldsTimeZoneDefaultUTC}),r=i.getVariables();if(r.length>0){const n={};for(const i of r)n[i]=e.evaluateIdentifier(t,{name:i});i.parameters=n}return new I.A({parentfeatureset:o[0],whereclause:i})}throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"filter",min:2,max:2}),e.functions.orderby=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{if((0,p.D)(r,2,2,t,n),(0,p.p)(r[0])){const e=new b.A(r[1]);return new g.A({parentfeatureset:r[0],orderbyclause:e})}throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"orderby",min:2,max:2}),e.functions.top=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{if((0,p.D)(r,2,2,t,n),(0,p.p)(r[0]))return new h.A({parentfeatureset:r[0],topnum:r[1]});if((0,Y.cy)(r[0]))return(0,p.t)(r[1])>=r[0].length?r[0].slice():r[0].slice(0,(0,p.t)(r[1]));if((0,p.m)(r[0]))return(0,p.t)(r[1])>=r[0].length()?r[0].slice():r[0].slice(0,(0,p.t)(r[1]));throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"top",min:2,max:2}),e.functions.first=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{if((0,p.D)(r,1,1,t,n),(0,p.p)(r[0])){const n=await r[0].first(e.abortSignal);if(null!==n){const e=d.A.createFromGraphicLikeObject(n.geometry,n.attributes,r[0],t.timeZone);return e._underlyingGraphic=n,e}return n}return(0,Y.cy)(r[0])?0===r[0].length?null:r[0][0]:(0,p.m)(r[0])?0===r[0].length()?null:r[0].get(0):null}))},e.signatures.push({name:"first",min:1,max:1}),e.functions.attachments=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{(0,p.D)(r,1,2,t,n);const o={minsize:-1,maxsize:-1,types:null,returnMetadata:!1};if(r.length>1)if(r[1]instanceof l.A){if(r[1].hasField("minsize")&&(o.minsize=(0,p.t)(r[1].field("minsize"))),r[1].hasField("metadata")&&(o.returnMetadata=(0,p.e)(r[1].field("metadata"))),r[1].hasField("maxsize")&&(o.maxsize=(0,p.t)(r[1].field("maxsize"))),r[1].hasField("types")){const e=(0,p.M)(r[1].field("types"),!1);e.length>0&&(o.types=e)}}else if(null!==r[1])throw new c.D$(t,c.TX.InvalidParameter,n);if((0,p.n)(r[0])){const e=r[0]._layer;let n;if((0,p.p)(e))n=e;else{if(null==e||!(0,D.eB)(e))return[];n=(0,f.constructFeatureSet)(e,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}return await n.load(),n.queryAttachments(r[0].field(n.objectIdField),o.minsize,o.maxsize,o.types,o.returnMetadata)}if(null===r[0])return[];throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"attachments",min:1,max:2}),e.functions.featuresetbyrelationshipname=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{(0,p.D)(r,2,4,t,n);const o=r[0],a=(0,p.f)(r[1]);let s=(0,p.K)(r[2],null);const l=(0,p.e)((0,p.K)(r[3],!0));if(null===s&&(s=["*"]),!1===(0,Y.cy)(s))throw new c.D$(t,c.TX.InvalidParameter,n);if(null===r[0])return null;if(!(0,p.n)(r[0]))throw new c.D$(t,c.TX.InvalidParameter,n);const u=o._layer;let d;if((0,p.p)(u))d=u;else{if(null==u||!(0,D.eB)(u))return null;d=(0,f.constructFeatureSet)(u,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}d=await d.load();const m=d.relationshipMetaData().filter((e=>e.name===a));if(0===m.length)return null;if(void 0!==m[0].relationshipTableId&&null!==m[0].relationshipTableId&&m[0].relationshipTableId>-1)return(0,f.constructFeatureSetFromRelationship)(d,m[0],o.field(d.objectIdField),d.spatialReference,s,l,t.lrucache,t.interceptor);let y=d.serviceUrl();if(!y)return null;y="/"===y.charAt(y.length-1)?y+m[0].relatedTableId.toString():y+"/"+m[0].relatedTableId.toString();const w=await(0,f.constructFeatureSetFromUrl)(y,d.spatialReference,s,l,t.lrucache,t.interceptor);await w.load();let I=w.relationshipMetaData();if(I=I.filter((e=>e.id===m[0].id)),!1===o.hasField(m[0].keyField)||null===o.field(m[0].keyField)){const e=await d.getFeatureByObjectId(o.field(d.objectIdField),[m[0].keyField]);if(e){const t=E.A.create(I[0].keyField+"= @id",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});return t.parameters={id:e.attributes[m[0].keyField]},w.filter(t)}return new T.A({parentfeatureset:w})}const g=E.A.create(I[0].keyField+"= @id",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});return g.parameters={id:o.field(m[0].keyField)},w.filter(g)}))},e.signatures.push({name:"featuresetbyrelationshipname",min:2,max:4}),e.functions.featuresetbyassociation=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{(0,p.D)(r,2,3,t,n);const a=r[0],s=(0,u.B)((0,p.f)((0,p.K)(r[1],""))),l=(0,Y.Kg)(r[2])?(0,p.f)(r[2]):null;if(null===r[0])return null;if(!(0,p.n)(r[0]))throw new c.D$(t,c.TX.InvalidParameter,n);let d=a._layer;if(d instanceof k.default&&(d=(0,f.constructFeatureSet)(d,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)),null===d)return null;if(!1===(0,p.p)(d))return null;await d.load();const m=d.serviceUrl(),y=await(0,f.constructAssociationMetaDataFeatureSetFromUrl)(m,t.spatialReference,!0);if(y.unVersion>=8)return await async function(e,t,n,i,r,a,s){const l=await e.getFeatureSetInfo();if(null===(l?.layerId??null))return null;if(!r.layerIdLookup.get(l.layerId))return null;const u=e.serviceUrl().replace(/\/FeatureServer/i,"/UtilityNetworkServer"),d=[];switch(n){case"connected":d.push("connectivity"),d.push("junction-edge-from-connectivity"),d.push("junction-edge-to-connectivity"),d.push("junction-edge-midspan-connectivity"),d.push("junction-junction-connectivity");break;case"container":case"content":d.push("containment");break;case"structure":case"attached":d.push("attachment");break;case"junctionedge":d.push("junction-edge-from-connectivity"),d.push("junction-edge-to-connectivity");break;case"midspan":d.push("junction-edge-midspan-connectivity");break;default:throw new c.D$(a,c.TX.InvalidParameter,s)}let m=null,p=!1;if(null!==i&&""!==i&&void 0!==i){for(const e of r.terminals)e.terminalName===i&&(m=e.terminalId);null===m&&(p=!0)}const y=[];if(!p){const i=new G({globalId:t.field(e.globalIdField),networkSourceId:r.layerIdLookup.get(l.layerId).sourceId,...m?{terminalId:m}:""}),a=await W(u,new q({types:d,elements:[i]}));let s=0;for(const e of a.associations){let t=null,a="",l="";if(e.fromNetworkElement?.globalId===i.globalId?(t=e.toNetworkElement,l="to"):e.toNetworkElement?.globalId===i.globalId&&(t=e.fromNetworkElement,l="from"),!t)continue;switch(n){case"attached":if("attachment"!==e.associationType)continue;if("to"!==l)continue;break;case"structure":if("attachment"!==e.associationType)continue;if("from"!==l)continue;break;case"container":if("containment"!==e.associationType)continue;if("from"!==l)continue;break;case"content":if("containment"!==e.associationType)continue;if("to"!==l)continue;break;case"connected":break;case"junctionedge":"junction-edge-to-connectivity"===e.associationType?a="to":"junction-edge-from-connectivity"===e.associationType&&(a="from");break;case"midspan":if("junction-edge-midspan-connectivity"!==e.associationType)continue}const u=r.sourceIdLookup.get(t.networkSourceId)?.className??"";y.push(new o.A({geometry:null,attributes:{objectId:s++,globalId:t.globalId,percentAlong:e.percentAlong??0,isContentVisible:e.isContentVisible?0:1,className:u,side:a}}))}}const w=new k.default({source:y,geometryType:null,objectIdField:"objectId",globalIdField:"globalId",fields:[new S.A({name:"objectId",alias:"objectId",type:"oid"}),new S.A({name:"globalId",alias:"globalId",type:"global-id"}),new S.A({name:"percentAlong",alias:"percentAlong",type:"double"}),new S.A({name:"side",alias:"side",type:"string"}),new S.A({name:"isContentVisible",alias:"isContentVisible",type:"integer"}),new S.A({name:"className",alias:"className",type:"string"})]});return(0,f.constructFeatureSet)(w)}(d,a,s,l,y,t,n);const I=y.associations;let g=null,h=null,T=!1;if(null!==l&&""!==l&&void 0!==l){for(const e of y.terminals)e.terminalName===l&&(h=e.terminalId);null===h&&(T=!0)}const F=I.getFieldsIndex(),b=F.get("TOGLOBALID").name,A=F.get("FROMGLOBALID").name,N=F.get("TOTERMINALID").name,v=F.get("FROMTERMINALID").name,$=F.get("FROMNETWORKSOURCEID").name,x=F.get("TONETWORKSOURCEID").name,Z=F.get("ASSOCIATIONTYPE").name,C=F.get("ISCONTENTVISIBLE").name,j=F.get("OBJECTID").name;for(const e of d.fields)if("global-id"===e.type){g=a.field(e.name);break}let U=null,L=new w.Gr(new S.A({name:"percentalong",alias:"percentalong",type:"double"}),E.A.create("0",{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC})),M=new w.Gr(new S.A({name:"side",alias:"side",type:"string"}),E.A.create("''",{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC}));const P="globalid",R="globalId",_={};for(const e in y.lkp)_[e]=y.lkp[e].sourceId;const X=new w.bV(new S.A({name:"classname",alias:"classname",type:"string"}),null,_);let O="";switch(s){case"midspan":{O=`((${b}='${g}') OR ( ${A}='${g}')) AND (${Z} IN (5))`,X.codefield=E.A.create(`CASE WHEN (${b}='${g}') THEN ${$} ELSE ${x} END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC});const e=(0,D.ke)(w.a.findField(I.fields,A));e.name=P,e.alias=P,U=new w.Gr(e,E.A.create(`CASE WHEN (${A}='${g}') THEN ${b} ELSE ${A} END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC})),L=y.unVersion>=4?new w.IO(w.a.findField(I.fields,F.get("PERCENTALONG").name)):new w.Gr(new S.A({name:"percentalong",alias:"percentalong",type:"double"}),E.A.create("0",{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC}));break}case"junctionedge":{O=`((${b}='${g}') OR ( ${A}='${g}')) AND (${Z} IN (4,6))`,X.codefield=E.A.create(`CASE WHEN (${b}='${g}') THEN ${$} ELSE ${x} END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC});const e=(0,D.ke)(w.a.findField(I.fields,A));e.name=P,e.alias=P,U=new w.Gr(e,E.A.create(`CASE WHEN (${A}='${g}') THEN ${b} ELSE ${A} END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC})),M=new w.Gr(new S.A({name:"side",alias:"side",type:"string"}),E.A.create(`CASE WHEN (${Z}=4) THEN 'from' ELSE 'to' END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC}));break}case"connected":{let e=`${b}='@T'`,t=`${A}='@T'`;null!==h&&(e+=` AND ${N}=@A`,t+=` AND ${v}=@A`),O="(("+e+") OR ("+t+"))",O=(0,p.Y)(O,"@T",g??""),e=(0,p.Y)(e,"@T",g??""),null!==h&&(e=(0,p.Y)(e,"@A",h.toString()),O=(0,p.Y)(O,"@A",h.toString())),X.codefield=E.A.create("CASE WHEN "+e+` THEN ${$} ELSE ${x} END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC});const n=(0,D.ke)(w.a.findField(I.fields,A));n.name=P,n.alias=P,U=new w.Gr(n,E.A.create("CASE WHEN "+e+` THEN ${A} ELSE ${b} END`,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC}));break}case"container":O=`${b}='${g}' AND ${Z} = 2`,null!==h&&(O+=` AND ${N} = `+h.toString()),X.codefield=$,O="( "+O+" )",U=new w.p8(w.a.findField(I.fields,A),P,P);break;case"content":O=`(${A}='${g}' AND ${Z} = 2)`,null!==h&&(O+=` AND ${v} = `+h.toString()),X.codefield=x,O="( "+O+" )",U=new w.p8(w.a.findField(I.fields,b),P,P);break;case"structure":O=`(${b}='${g}' AND ${Z} = 3)`,null!==h&&(O+=` AND ${N} = `+h.toString()),X.codefield=$,O="( "+O+" )",U=new w.p8(w.a.findField(I.fields,A),P,R);break;case"attached":O=`(${A}='${g}' AND ${Z} = 3)`,null!==h&&(O+=` AND ${v} = `+h.toString()),X.codefield=x,O="( "+O+" )",U=new w.p8(w.a.findField(I.fields,b),P,R);break;default:throw new c.D$(t,c.TX.InvalidParameter,n)}return T&&(O="1 <> 1"),new w.a({parentfeatureset:I,adaptedFields:[new w.IO(w.a.findField(I.fields,j)),new w.IO(w.a.findField(I.fields,C)),U,M,X,L],extraFilter:O?E.A.create(O,{fieldsIndex:I.getFieldsIndex(),timeZone:I.dateFieldsTimeZoneDefaultUTC}):null})}))},e.signatures.push({name:"featuresetbyassociation",min:2,max:6}),e.functions.groupby=function(t,n){return e.standardFunctionAsync(t,n,(async(i,r,o)=>{if((0,p.D)(o,3,3,t,n),!(0,p.p)(o[0]))throw new c.D$(t,c.TX.InvalidParameter,n);const a=await o[0].load(),s=[],u=[];let d=!1,f=[];if((0,Y.Kg)(o[1]))f.push(o[1]);else if(o[1]instanceof l.A)f.push(o[1]);else if((0,Y.cy)(o[1]))f=o[1];else{if(!(0,p.m)(o[1]))throw new c.D$(t,c.TX.InvalidParameter,n);f=o[1].toArray()}for(const e of f)if((0,Y.Kg)(e)){const t=E.A.create((0,p.f)(e),{fieldsIndex:a.getFieldsIndex(),timeZone:a.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,A.DA)(t)?(0,p.f)(e):"%%%%FIELDNAME";s.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(d=!0)}else{if(!(e instanceof l.A))throw new c.D$(t,c.TX.InvalidParameter,n);{const i=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",r=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===i&&(d=!0),!i)throw new c.D$(t,c.TX.InvalidParameter,n);s.push({name:i,expression:E.A.create(r||i,{fieldsIndex:a.getFieldsIndex(),timeZone:a.dateFieldsTimeZoneDefaultUTC})})}}if(f=[],(0,Y.Kg)(o[2]))f.push(o[2]);else if((0,Y.cy)(o[2]))f=o[2];else if((0,p.m)(o[2]))f=o[2].toArray();else{if(!(o[2]instanceof l.A))throw new c.D$(t,c.TX.InvalidParameter,n);f.push(o[2])}for(const e of f){if(!(e instanceof l.A))throw new c.D$(t,c.TX.InvalidParameter,n);{const i=e.hasField("name")?e.field("name"):"",r=e.hasField("statistic")?e.field("statistic"):"",o=e.hasField("expression")?e.field("expression"):"";if(!(i&&r&&(0,Y.Kg)(r)&&o))throw new c.D$(t,c.TX.InvalidParameter,n);u.push({name:i,statistic:r,expression:E.A.create(o,{fieldsIndex:a.getFieldsIndex(),timeZone:a.dateFieldsTimeZoneDefaultUTC})})}}if(d){const e={};for(const t of a.fields)e[t.name.toLowerCase()]=1;for(const t of s)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);for(const t of u)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of s)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of s)ee(n.expression,e,t);for(const n of u)ee(n.expression,e,t);return o[0].groupby(s,u)}))},e.signatures.push({name:"groupby",min:3,max:3}),e.functions.distinct=function(t,n){return e.standardFunctionAsync(t,n,(async(i,r,o)=>{if((0,p.p)(o[0])){(0,p.D)(o,2,2,t,n);const i=await o[0].load(),r=[];let a=[];if((0,Y.Kg)(o[1]))a.push(o[1]);else if(o[1]instanceof l.A)a.push(o[1]);else if((0,Y.cy)(o[1]))a=o[1];else{if(!(0,p.m)(o[1]))throw new c.D$(t,c.TX.InvalidParameter,n);a=o[1].toArray()}let s=!1;for(const e of a)if((0,Y.Kg)(e)){const t=E.A.create((0,p.f)(e),{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,A.DA)(t)?(0,p.f)(e):"%%%%FIELDNAME";r.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(s=!0)}else{if(!(e instanceof l.A))throw new c.D$(t,c.TX.InvalidParameter,n);{const o=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",a=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===o&&(s=!0),!o)throw new c.D$(t,c.TX.InvalidParameter,n);r.push({name:o,expression:E.A.create(a||o,{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC})})}}if(s){const e={};for(const t of i.fields)e[t.name.toLowerCase()]=1;for(const t of r)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of r)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of r)ee(n.expression,e,t);return o[0].groupby(r,[])}return function(e){if(1===e.length){if((0,Y.cy)(e[0]))return(0,N.t)("distinct",e[0],-1);if((0,p.m)(e[0]))return(0,N.t)("distinct",e[0].toArray(),-1)}return(0,N.t)("distinct",e,-1)}(o)}))},e.functions.getfeaturesetinfo=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{if((0,p.D)(r,1,1,t,n),!(0,p.p)(r[0]))return null;const o=await r[0].getFeatureSetInfo();return o?l.A.convertObjectToArcadeDictionary({layerId:o.layerId,layerName:o.layerName,itemId:o.itemId,serviceLayerUrl:o.serviceLayerUrl,webMapLayerId:o.webMapLayerId??null,webMapLayerTitle:o.webMapLayerTitle??null,className:null,objectClassId:null},(0,p.L)(t),!1,!1):null}))},e.signatures.push({name:"getfeaturesetinfo",min:1,max:1}),e.functions.filterbysubtypecode=function(t,n){return e.standardFunctionAsync(t,n,(async(e,i,r)=>{if((0,p.D)(r,2,2,t,n),(0,p.p)(r[0])){const e=await r[0].load(),i=r[1];if(!(0,Y.Fq)(i))throw new c.D$(t,c.TX.InvalidParameter,n);if(e.subtypeField){const t=E.A.create(`${e.subtypeField}= ${r[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new I.A({parentfeatureset:r[0],whereclause:t})}if(null===e.typeIdField||""===e.typeIdField)throw new c.D$(t,c.TX.FeatureSetDoesNotHaveSubtypes,n);const o=E.A.create(`${e.typeIdField}= ${r[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new I.A({parentfeatureset:r[0],whereclause:o})}throw new c.D$(t,c.TX.InvalidParameter,n)}))},e.signatures.push({name:"filterbysubtypecode",min:2,max:2})}}},80672:(e,t,n)=>{n.d(t,{R:()=>r});var i=n(20655);function r(e,t){return null===e?t:new i.A({url:e.field("url")})}}}]);