@arcgis/core 5.2.0-next.75 → 5.2.0-next.77

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 (295) hide show
  1. package/arcgisGlobal.d.ts +1 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/013c9cc198736a72f7f2.js +1 -0
  4. package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
  5. package/assets/esri/core/workers/chunks/040a73b2a23577e1eabd.js +1 -0
  6. package/assets/esri/core/workers/chunks/{0d3b2d9a19383bb63f0a.js → 05663093b1d2a268b953.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 06c8547521ce9c97b258.js} +2 -2
  8. package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
  9. package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
  10. package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
  11. package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
  12. package/assets/esri/core/workers/chunks/{5e1d84e97de0e662aaa9.js → 1142f8e9c80207d6bdae.js} +1 -1
  13. package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
  14. package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
  15. package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
  16. package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → 17e9324a02b69733307a.js} +2 -2
  17. package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
  18. package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
  19. package/assets/esri/core/workers/chunks/{2b93888e61ca638490cf.js → 20b54e7872d967f3be32.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
  22. package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
  23. package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
  24. package/assets/esri/core/workers/chunks/29a20a37e7837142fa6b.js +2 -0
  25. package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
  26. package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
  27. package/assets/esri/core/workers/chunks/385b23d4bd5275031fb6.js +1 -0
  28. package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
  29. package/assets/esri/core/workers/chunks/3958d92c737b3a2a3bc2.js +1 -0
  30. package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
  31. package/assets/esri/core/workers/chunks/{6743d726e45e7b660505.js → 4115bab15c19b4f5ae08.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
  34. package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
  35. package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
  36. package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
  37. package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
  38. package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
  39. package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
  40. package/assets/esri/core/workers/chunks/{36ec5b84e551ab08b24a.js → 57e26a86d46e02c89c4f.js} +1 -1
  41. package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
  42. package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
  43. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
  44. package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
  45. package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
  46. package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
  47. package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
  48. package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
  49. package/assets/esri/core/workers/chunks/{b14961a9f1f40028f141.js → 6c982779d6d47ec99899.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{6b783f440c4a5d36e879.js → 75fc0b1db8e2e3fd2458.js} +1 -1
  52. package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
  53. package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
  54. package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
  55. package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 81cd0cb9ae1371765d32.js} +1 -1
  56. package/assets/esri/core/workers/chunks/83556c9f6f85c2a46779.js +1 -0
  57. package/assets/esri/core/workers/chunks/{d1c7c877edc6948f3801.js → 8762da315cf5086167c3.js} +1 -1
  58. package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
  59. package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
  60. package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
  61. package/assets/esri/core/workers/chunks/{4046bd65d7d0677f4600.js → 8d9a7fa14489897780d3.js} +1 -1
  62. package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
  63. package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
  64. package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 95956d62591d689f1135.js} +1 -1
  65. package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
  66. package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
  67. package/assets/esri/core/workers/chunks/{53d165b4f30fd64e5d8a.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
  68. package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
  69. package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
  70. package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
  71. package/assets/esri/core/workers/chunks/{7a24cc0f3b4eff2bdb8e.js → ac2ba5c3d613d7d5183a.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
  73. package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
  74. package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
  75. package/assets/esri/core/workers/chunks/{43713bc6f7eea07259d0.js → b084829a3fd709dc47a8.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{5ba3a30b7cbfa9e3aa62.js → b2812279662f1a5f8d06.js} +1 -1
  78. package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
  79. package/assets/esri/core/workers/chunks/{43a65cab888d43954564.js → b4abf82b8ac974a55ae1.js} +1 -1
  80. package/assets/esri/core/workers/chunks/b82763e9401b16121f8d.js +2 -0
  81. package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
  82. package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
  83. package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
  84. package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
  85. package/assets/esri/core/workers/chunks/{1c49c9472167a2e0c923.js → c17dda6fadb8bfad0d51.js} +1 -1
  86. package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
  87. package/assets/esri/core/workers/chunks/c69cf08da4e4c2c824ee.js +1717 -0
  88. package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
  89. package/assets/esri/core/workers/chunks/cd74de12005834244a47.js +1 -0
  90. package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
  91. package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
  92. package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
  93. package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
  94. package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
  95. package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
  96. package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
  97. package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
  98. package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
  99. package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
  100. package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
  101. package/assets/esri/core/workers/chunks/{b6cd165d0e58598f28a5.js → ef47a5da641cb0d33fdf.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{0eb35e09765fd74eb698.js → ef803fb25741e9f2a0a1.js} +1 -1
  103. package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
  104. package/assets/esri/core/workers/chunks/f3bbebedad51f776bb98.js +1 -0
  105. package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
  106. package/assets/esri/core/workers/chunks/f703bc002c732d1c045d.js +1 -0
  107. package/assets/esri/core/workers/chunks/fdd4f78facec6387cdb0.js +1 -0
  108. package/assets/esri/core/workers/chunks/ffd5285c7b2c83208f87.js +2 -0
  109. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  110. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  111. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  112. package/chunks/HeatmapDensity.glsl.js +5 -5
  113. package/chunks/bundle2.js +1 -1
  114. package/chunks/lyr3DMain.js +1 -1
  115. package/chunks/lyr3DWorker.js +1 -1
  116. package/config.js +1 -1
  117. package/geometry/geometryEngine.js +1 -1
  118. package/geometry/support/centroid.js +1 -1
  119. package/geometry/support/extentUtils.js +1 -1
  120. package/geometry/support/frustum.js +1 -1
  121. package/geometry/support/webMercatorUtils.d.ts +38 -14
  122. package/kernel.js +1 -1
  123. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  124. package/layers/VectorTileLayer.d.ts +40 -22
  125. package/layers/graphics/data/QueryEngineResult.js +1 -1
  126. package/layers/graphics/data/projectionSupport.js +1 -1
  127. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  128. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  129. package/layers/support/RasterJobHandler.js +1 -1
  130. package/layers/video/VideoController.js +1 -1
  131. package/package.json +4 -4
  132. package/support/revision.js +1 -1
  133. package/symbols/cim/animationUtils.js +1 -1
  134. package/symbols/cim/cimAnalyzer.js +1 -1
  135. package/symbols/cim/effects/EffectCircularSector.js +1 -1
  136. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  137. package/views/2d/engine/webgl/animations/infos.js +1 -1
  138. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  140. package/views/3d/GroundView3D.js +1 -1
  141. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  142. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  143. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  144. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  145. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  146. package/views/3d/layers/MediaLayerView3D.js +1 -1
  147. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  148. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  149. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  150. package/views/3d/state/HUDOccludedFragmentOpacity.js +1 -1
  151. package/views/3d/state/ViewState.js +1 -1
  152. package/views/3d/state/ViewStateManager.js +1 -1
  153. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  154. package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
  155. package/views/3d/support/flow/geometryUtils.js +1 -1
  156. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  157. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  158. package/views/3d/support/renderInfoUtils/line.js +1 -1
  159. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  160. package/views/3d/terrain/DrapedZ.js +2 -0
  161. package/views/3d/terrain/OverlayManager.js +1 -1
  162. package/views/3d/terrain/OverlayRenderer.js +1 -1
  163. package/views/3d/terrain/PatchRenderDataWaterproofness.js +1 -1
  164. package/views/3d/terrain/TerrainRenderer.js +1 -1
  165. package/views/3d/terrain/TerrainSurface.js +1 -1
  166. package/views/3d/terrain/TerrainWaterproofnessDiagnostics.js +2 -0
  167. package/views/3d/webgl/RenderCamera.js +1 -1
  168. package/views/3d/webgl/RenderNode.js +1 -1
  169. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
  170. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
  171. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  172. package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
  173. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
  174. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
  175. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  176. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  177. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  178. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  179. package/views/3d/webgl-engine/parts/Model.js +1 -1
  180. package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
  181. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  182. package/views/support/waitForResources.js +1 -1
  183. package/views/webgl/RenderingContext.js +1 -1
  184. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
  185. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  186. package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
  187. package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
  188. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  189. package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
  190. package/widgets/BatchAttributeForm.js +1 -1
  191. package/widgets/Feature/FeatureViewModel.d.ts +4 -3
  192. package/widgets/Feature/FeatureViewModel.js +1 -1
  193. package/widgets/Feature.js +1 -1
  194. package/widgets/Features/FeaturesViewModel.d.ts +4 -2
  195. package/widgets/Features/FeaturesViewModel.js +1 -1
  196. package/widgets/Features.js +1 -1
  197. package/widgets/OrientedImageryViewer.js +1 -1
  198. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  199. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  200. package/widgets/Popup/PopupViewModel.d.ts +1 -0
  201. package/widgets/Popup/PopupViewModel.js +1 -1
  202. package/widgets/Popup.js +1 -1
  203. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  204. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  205. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  206. package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
  207. package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
  208. package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +0 -1
  209. package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
  210. package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
  211. package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
  212. package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +0 -1
  213. package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
  214. package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +0 -1
  215. package/assets/esri/core/workers/chunks/186bedc377cc97731ca2.js +0 -2
  216. package/assets/esri/core/workers/chunks/1cf8fb704c48ac3d3b15.js +0 -1
  217. package/assets/esri/core/workers/chunks/2435ef7d11f8dbb920b7.js +0 -256
  218. package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
  219. package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +0 -1
  220. package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
  221. package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
  222. package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
  223. package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +0 -1
  224. package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
  225. package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
  226. package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +0 -1
  227. package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +0 -1
  228. package/assets/esri/core/workers/chunks/42d5ed44111bea77ec71.js +0 -1462
  229. package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +0 -1
  230. package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
  231. package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
  232. package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
  233. package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
  234. package/assets/esri/core/workers/chunks/4fe2cca405180af23364.js +0 -1
  235. package/assets/esri/core/workers/chunks/519af918050b47f93516.js +0 -1
  236. package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
  237. package/assets/esri/core/workers/chunks/5627f562dea8bae2f346.js +0 -1
  238. package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
  239. package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
  240. package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
  241. package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +0 -1
  242. package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
  243. package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +0 -1
  244. package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
  245. package/assets/esri/core/workers/chunks/8302bffd28cc6720e0fe.js +0 -2
  246. package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
  247. package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
  248. package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
  249. package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
  250. package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
  251. package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
  252. package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
  253. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
  254. package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
  255. package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
  256. package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
  257. package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
  258. package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +0 -1
  259. package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
  260. package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
  261. package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
  262. package/assets/esri/core/workers/chunks/a7a7d3289d4ca95f545f.js +0 -1
  263. package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +0 -1
  264. package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
  265. package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
  266. package/assets/esri/core/workers/chunks/b78f509fd8e95f728178.js +0 -1
  267. package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
  268. package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
  269. package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
  270. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
  271. package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
  272. package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
  273. package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
  274. package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
  275. package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
  276. package/assets/esri/core/workers/chunks/d633e98b0dfa0490e4de.js +0 -1
  277. package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
  278. package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +0 -1
  279. package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
  280. package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +0 -1
  281. package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
  282. package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
  283. package/assets/esri/core/workers/chunks/ee9eb381e675d2d01260.js +0 -1
  284. package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
  285. package/assets/esri/core/workers/chunks/f43a0edf58941e2ac78e.js +0 -1
  286. package/assets/esri/core/workers/chunks/f78acff510ca615d42e4.js +0 -1
  287. package/assets/esri/core/workers/chunks/f7a5c4d22a24e1ac433c.js +0 -1
  288. package/chunks/geometryEngineBase.js +0 -2
  289. package/geometry/geometryAdapters/json.js +0 -2
  290. package/geometry/geometryEngineJSON.js +0 -2
  291. /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 06c8547521ce9c97b258.js.LICENSE.txt} +0 -0
  292. /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → 17e9324a02b69733307a.js.LICENSE.txt} +0 -0
  293. /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 29a20a37e7837142fa6b.js.LICENSE.txt} +0 -0
  294. /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → b82763e9401b16121f8d.js.LICENSE.txt} +0 -0
  295. /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → ffd5285c7b2c83208f87.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3103,6956,7745],{31464(e,t,r){r.d(t,{Cv:()=>c,Nk:()=>y,lK:()=>f});var i=r(4576),n=r(91218),s=r(60408),o=r(21325),a=r(28735);const l=[0,0];function u(e,t){const r=(0,o.K8)(e)?a.je:a.tD;if((0,s.fT)(t)){const e={x:0,y:0};return[e.x,e.y]=r(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){const e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=r(t.xmin,t.ymin,l),[e.xmax,e.ymax]=r(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:p(t.rings,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:p(t.paths,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:d(t.points,r),hasM:t.hasM,hasZ:t.hasZ};throw new Error}function p(e,t){const r=[];for(const i of e)r.push(d(i,t));return r}function d(e,t){const r=[];for(const i of e){const e=t(i[0],i[1],[0,0]);r.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return r}async function y(e,t){if(!e||!t)return;const r=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(i.Ru):[e];await(0,n.initializeProjection)(r.map(e=>({source:e,dest:t})))}function c(e,t,r,i){if(!e)return null;if(r||(r=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(r)||(0,o.aI)(t,r))return e;if((0,a.y7)(t,r)){const t=u(r,e);return t.spatialReference=r,t}return(0,n.projectMany)([e],t,r,i)[0]}const m=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,r,i){if(!e?.length||!t||!r||(0,o.aI)(t,r))return e;const n={geometries:e,inSpatialReference:t,outSpatialReference:r,options:i,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:r,outSpatialReference:i,resolve:s,options:o}=e,l=t.filter(e=>null!=e);let p;p=(0,a.y7)(r,i)&&null==o?.extendedParams?l.map(e=>u(i,e)):(0,n.projectMany)(l,r,i,o);let d=0;const y=t.map(e=>null==e?null:p[d++]);s.resolve(y),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function f(e,t,r,i){return m.push(e,t,r,i)}},58727(e,t,r){r.d(t,{GC:()=>h,T2:()=>v,dO:()=>S,iJ:()=>g});var i=r(49186),n=r(66552),s=r(86211),o=r(39829),a=r(91218),l=r(90634),u=r(60408),p=r(65864),d=r(52039),y=r(21325),c=r(31464);const m=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});async function g(e,t,r){const i=e.bin;return i.onField&&(i.onField=i.onField.trim()),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),h(e,t,r)}async function h(e,t,r){const{outFields:i,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:o}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,r)}async function v(e,t,r){if(!e)return null;let{where:i}=e;if(e.where=i=i?.trim(),(!i||/^1 *= *1$/.test(i)||t&&t===i)&&(e.where=null),!e.geometry)return e;let n=await w(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;n=(0,l.HA)(n),n.spatialReference=t}if(!n)return e;await(0,c.Nk)(n.spatialReference,r);let[s]=await(0,d.el)((0,p.rS)(n));if(null==s)throw f;let m=!1;((0,u.ZC)(s)||(0,u.Bi)(s)||(0,u.Rg)(s))&&(m=!(0,y.aI)(s.spatialReference,r)&&!(0,a.canProjectWithoutEngine)(s.spatialReference,r)),m&&(0,u.ZC)(s)&&(s=o.A.fromExtent(s));const g="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,h=m&&g?{extendedParams:{densificationStep:8*g}}:void 0,v=s.toJSON(),S=(0,c.Cv)(v,v.spatialReference,r,h);if(!S)throw f;return S.spatialReference=r,e.geometry=S,e}async function w(e){const{distance:t,units:n}=e,o=e.geometry;if(!t||"vertexAttributes"in o)return o;const a=o.spatialReference,l=n?m.fromJSON(n):(0,s.Ij)(a),p=a&&((0,y.EA)(a)||(0,y.K8)(a))?o:await(0,c.Nk)(a,y.KK).then(()=>(0,c.Cv)(o,y.KK)),d=await r.e(9159).then(r.bind(r,49159));await d.load();const f=d.execute(p,t||1,{unit:l})??void 0;if(!f||!(0,u.Bi)(f)||0===f.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return f}function S(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}r.d(t,["VY",0,m,"v8",0,f])},33103(e,t,r){r.r(t),r.d(t,{executeAttributeBinsQuery:()=>c});var i=r(2272),n=r(11254),s=r(84952),o=r(60408),a=r(52039),l=r(21325),u=r(10536);function p(e){const t=e.geometry,r=e.toJSON(),i=r;let n,s,a;if(null!=t&&(s=t.spatialReference,a=(0,l.YX)(s),i.geometryType=(0,o.$B)(t),i.geometry=JSON.stringify(t),i.inSR=a),r.outSR?(i.outSR=(0,l.YX)(r.outSR),n=e.outSpatialReference):t&&(i.outSR=i.inSR,n=s),i.bin&&=JSON.stringify(i.bin),i.quantizationParameters&&=JSON.stringify(i.quantizationParameters),i.outStatistics&&=JSON.stringify(i.outStatistics),i.outTimeReference&&=JSON.stringify(i.outTimeReference),r.timeExtent){const e=r.timeExtent,{start:t,end:n}=e;null==t&&null==n||(i.time=t===n?t:`${t??"null"},${n??"null"}`),delete r.timeExtent}return e.defaultSpatialReference&&(0,l.aI)(s,n)&&(i.defaultSR=i.inSR,delete i.inSR,delete i.outSR),i}var d=r(37745),y=r(14575);async function c(e,t,r){const{data:o}=await async function(e,t,r){return null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await async function(e,t,r={}){const i="string"==typeof e?(0,s.An)(e):e,[o]=await(0,a.el)([t.geometry],r);null!=o&&((t=t.clone()).geometry=o);const l=(0,u.z)({...i.query,f:"json",...p(t)});return(0,n.A)((0,s.fj)(i.path,"queryBins"),{...r,query:{...l,...r.query}})}(e,t,r)}((0,i.Dl)(e),y.default.from(t),r);return d.default.fromJSON(o)}},37745(e,t,r){r.r(t),r.d(t,{default:()=>y});var i,n=r(5482),s=r(52106),o=r(4718),a=r(91429);let l=class extends s.A{static{i=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new i(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,o.o8)(this.stackedAttributes)}}};(0,n.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=r(69540),p=r(22671),d=r(36005);let y=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,n.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],y.prototype,"features",void 0),(0,n.Cg)([(0,d.w)("features")],y.prototype,"readFeatures",null),y=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],y)},14575(e,t,r){r.d(t,{default:()=>A});var i=r(5482),n=r(69540),s=r(66552),o=r(25482),a=r(53966),l=r(91429),u=r(56507),p=r(16930),d=r(65864),y=r(50498),c=r(58727),m=r(5834),f=r(41266),g=r(59977),h=r(11440),v=r(60909),w=r(58174),S=r(7562),C=r(79677),B=r(56400),x=r(93223);const M=new s.J({asc:"ascending",desc:"descending"}),Z={base:f.A,key:"type",typeMap:{"auto-interval":m.A,date:g.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let A=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,B.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:Z,json:{name:"bin",write:!0}})],A.prototype,"binParameters",void 0),(0,i.Cg)([(0,x.e)(M)],A.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],A.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],A.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],A.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],A.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],A.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[S.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],A.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,r)=>{e&&(t[r]={ianaTimeZone:e})}}}})],A.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],A.prototype,"returnAggregateIds",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,x.e)(w.x,{name:"spatialRel"})],A.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:C.A,json:{write:!0}})],A.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:c.VY.read,write:{writer:c.VY.write,overridePolicy(e){return{enabled:null!=e&&!!this.distance}}}}})],A.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],A),A.from=(0,u.dp)(A)},5834(e,t,r){r.d(t,{A:()=>d});var i=r(5482),n=r(93637),s=r(91429),o=r(56507),a=r(41266),l=r(41366),u=r(93223);function p(e,t,r){(0,n.sM)(r,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],d.prototype,"numBins",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],d),d.from=(0,o.dp)(d)},41266(e,t,r){r.d(t,{A:()=>f});var i=r(5482),n=r(69540),s=r(66552),o=r(25482),a=r(91429),l=r(56507),u=r(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let d=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],d.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],d.prototype,"responseType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(p)],d.prototype,"valueType",void 0),d=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],d);const y=d;d.from=(0,l.dp)(d);const c=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),m=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(c,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{target:{stackBy:{type:y},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>y.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(m)],f.prototype,"transformation",void 0),f=(0,i.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],f)},59977(e,t,r){r.d(t,{A:()=>g});var i=r(5482),n=r(93637),s=r(91429),o=r(56507),a=r(41266),l=r(69540),u=r(25482),p=r(57231),d=r(93223);let y=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,i.Cg)([(0,d.e)(p.g)],y.prototype,"unit",void 0),y=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],y);const c=y;function m(e,t,r){(0,n.sM)(r,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){const r=e.parameters[t];return r?"string"==typeof r?r:new Date(r):null}y.from=(0,o.dp)(y);let g=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:m}}})],g.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:c,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({type:c,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],g.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:m}}})],g.prototype,"start",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],g.prototype,"snapToData",void 0),(0,i.Cg)([(0,d.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],g),g.from=(0,o.dp)(g)},57231(e,t,r){const i=(0,r(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});r.d(t,["g",0,i])},11440(e,t,r){r.d(t,{A:()=>u});var i=r(5482),n=r(93637),s=r(91429),o=r(56507),a=r(41266),l=r(93223);let u=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,r){(0,n.sM)(r,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},60909(e,t,r){r.d(t,{A:()=>d});var i=r(5482),n=r(93637),s=r(91429),o=r(56507),a=r(41266),l=r(41366),u=r(93223);function p(e,t,r){(0,n.sM)(r,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],d.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],d),d.from=(0,o.dp)(d)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8006],{69540(e,t,n){var s=n(5482),r=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),h=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,s=t.store,r={},u=new Map;for(const t in n){const o=n[t],a=s?.originOf(t),l=o.clonable;if(o.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let c=null;if("function"==typeof l)c=l(h,e);else if("reference"===l)c=h;else if(c=(0,i.TU)(h,e),null!=h&&null==c)continue;0===a?u.set(t,c):r[t]=c}const l=new(0,Object.getPrototypeOf(this).constructor)(r);if(u.size){const e=(0,a.oY)(l)?.store;if(e)for(const[t,n]of u)e.set(t,n,0)}return l}};return r=(0,s.Cg)([(0,u.$)("esri.core.Clonable")],r),r},c=h(r.A);n.d(t,["OU",0,h,"Pw",0,c])},60999(e,t,n){n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>h,UT:()=>y,aD:()=>g,jJ:()=>l});var s=n(5482),r=n(69622),i=n(97768),o=n(17676),a=n(10107),u=n(64108);function l(e,t,n){return(0,o.Lx)(e.map((e,s)=>t.apply(n,[e,s])))}async function h(e,t,n){return(await(0,o.Lx)(e.map((e,s)=>t.apply(n,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function m(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e,t){return new f(e,t)}let f=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],f.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],f.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],f.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],f.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],f.prototype,"_result",void 0),f=(0,s.Cg)([(0,u.$)("esri.core.asyncUtils.ReactiveTask")],f);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},67482(e,t,n){function s(e){return null!==r(e)}function r(e){return function(e){const t=i.exec(e);if(!t?.groups)return null;const n=t.groups,s=+n.year,r=+n.month-1,o=+n.day,a=+(n.hours??"0"),u=+(n.minutes??"0"),l=+(n.seconds??"0");if(a>23)return null;if(u>59)return null;if(l>59)return null;const h=n.ms??"0",c=h?+h.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(s,r,o,a,u,l,c);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,r,o,a,u,l,c)}return Number.isNaN(d)?null:d}(e)??function(e){const t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>s,_:()=>r});const i=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},75503(e,t,n){n.d(t,{wq:()=>a});var s=n(4576),r=n(21818),i=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),I.prune(),v.prune()}all(e){u(this._data,e)}search(e,t){let n=this._data;const s=this._toBBox;if(w(e,n))for(x.clear();n;){for(let r=0,i=n.children.length;r<i;r++){const i=n.children[r],o=n.leaf?s(i):i;w(e,o)&&(n.leaf?t(i):_(e,o)?u(i,t):x.push(i))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!w(e,t))return!1;for(x.clear();t;){for(let s=0,r=t.children.length;s<r;s++){const r=t.children[s],i=t.leaf?n(r):r;if(w(e,i)){if(t.leaf||_(e,i))return!0;x.push(r)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new C([]),this}remove(e){if(!e)return this;let t,n=this._data,i=null,o=0,a=!1;const u=this._toBBox(e);for(I.clear(),v.clear();n||I.length>0;){if(n||(n=I.pop(),i=I.data[I.length-1],o=v.pop()??0,a=!0),n.leaf&&(t=(0,s.qh)(n.children,(0,r.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),I.push(n),this._condense(I),this;a||n.leaf||!_(n,u)?i?(o++,n=i.children[o],a=!1):n=null:(I.push(n),v.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,s){const r=n-t+1;let i=this._maxEntries;if(r<=i){const s=new C(e.slice(t,n+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(r)/Math.log(i)),i=Math.ceil(r/i**(s-1)));const o=new A([]);o.height=s;const a=Math.ceil(r/i),u=a*Math.ceil(Math.sqrt(i));b(e,t,n,u,this._compareMinX);for(let r=t;r<=n;r+=u){const t=Math.min(r+u-1,n);b(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);o.children.push(this._build(e,n,r,s-1))}}return l(o,this._toBBox),o}_insert(e,t,n){const s=this._toBBox,r=n?e:s(e);I.clear();const i=function(e,t,n,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==n;){let n,s=1/0,r=1/0;for(let i=0,o=t.children.length;i<o;i++){const o=t.children[i],a=m(o),u=f(e,o)-a;u<r?(r=u,s=a<s?a:s,n=o):u===r&&a<s&&(s=a,n=o)}t=n||t.children[0]}return t}(r,this._data,t,I);for(i.children.push(e),c(i,r);t>=0&&I.data[t].children.length>this._maxEntries;)this._split(I,t),t--;!function(e,t,n){for(let s=n;s>=0;s--)c(t.data[s],e)}(r,I,t)}_split(e,t){const n=e.data[t],s=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,s);const i=this._chooseSplitIndex(n,r,s);if(!i)return;const o=n.children.splice(i,n.children.length-i),a=n.leaf?new C(o):new A(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let s,r,i;s=r=1/0;for(let o=t;o<=n-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,n,this._toBBox),u=g(t,a),l=m(t)+m(a);u<s?(s=u,i=o,r=l<r?l:r):u===s&&l<r&&(r=l,i=o)}return i}_chooseSplitAxis(e,t,n){const s=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,s)<this._allDistMargin(e,t,n,r)&&e.children.sort(s)}_allDistMargin(e,t,n,s){e.children.sort(s);const r=this._toBBox,i=h(e,0,t,r),o=h(e,n-t,n,r);let a=y(i)+y(o);for(let s=t;s<n-t;s++){const t=e.children[s];c(i,e.leaf?r(t):t),a+=y(i)}for(let s=n-t-1;s>=t;s--){const t=e.children[s];c(o,e.leaf?r(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const r=e.data[t-1],i=r.children;i.splice((0,s.qh)(i,n,i.length,r.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function u(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function l(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,s,r){r||(r=new C([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let i,o=t;o<n;o++)i=e.children[o],c(r,e.leaf?s(i):i);return r}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,i-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,n,s,r){const i=[t,n];for(;i.length;){const t=i.pop(),n=i.pop();if(t-n<=s)continue;const a=n+Math.ceil((t-n)/s/2)*s;(0,o.q)(e,a,n,t,r),i.push(n,a,a,t)}}const x=new i.A,S=new i.A,I=new i.A,v=new i.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class C extends M{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends M{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>r});var s=n(34275);function r(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+c:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,c=145},36708(e,t,n){n.d(t,{C_:()=>d,on:()=>c,wB:()=>u,z7:()=>l});var s=n(37955),r=n(36563),i=n(97768),o=n(17676),a=n(14012);function u(e,t,n={}){return h(e,t,n,p)}function l(e,t,n={}){return h(e,t,n,m)}function h(e,t,n={},s){let r=null;const o=n.once?(e,n)=>{s(e)&&((0,i.xt)(r),t(e,n))}:(e,n)=>{s(e)&&t(e,n)};if(r=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return r}function c(e,t,n,o={}){let a=null,l=null,h=null;function c(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(e){o.once&&o.once&&(0,i.xt)(h),n(e)}const p=u(e,(e,n)=>{c(),(0,s.wb)(e)&&(a=e,l=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function u(){a=(0,i.xt)(a)}return new Promise((s,i)=>{a=(0,r.vE)([(0,o.u7)(n,()=>{u(),i((0,o.NK)())}),h(e,e=>{u(),s(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,n){n.d(t,{S1:()=>a,lL:()=>l,mi:()=>u,rb:()=>h,t:()=>c});var s=n(97770),r=(n(98623),n(92647));const i=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,i="system"){if("unknown"===n)return e;const o=new r.oh((0,s.wj)(i)),a=r.c9.fromJSDate(e,{zone:o}),u="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[u]:t}).toJSDate()}function u(e,t,n="milliseconds"){const s=e.getTime(),r=c(t,n,"milliseconds");return new Date(s+r)}function l(e,t,n="system"){const{unit:i}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,s.wj)(n)),u=r.c9.fromJSDate(e,{zone:a}),l=e=>e-e%o;switch(i){case"milliseconds":return u.startOf("second").plus({millisecond:l(u.millisecond)}).toJSDate();case"seconds":return u.startOf("minute").plus({second:l(u.second)}).toJSDate();case"minutes":return u.startOf("hour").plus({minute:l(u.minute)}).toJSDate();case"hours":return u.startOf("day").plus({hour:l(u.hour)}).toJSDate();case"days":return u.startOf("month").plus({day:l(u.day-1)}).toJSDate();case"weeks":{const e=u.startOf("year").startOf("week"),t=Math.floor(u.diff(e,"weeks").weeks);return e.plus({week:l(t)}).toJSDate()}case"months":return u.startOf("year").plus({month:l(u.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=u.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){const t=i.exec(e);if(!t)return null;const{hh:n,mm:s,ss:r,ms:a}=t.groups;return Number(n)*o.hours+Number(s)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function c(e,t,n){return 0===e?0:e*o[t]/o[n]}},48526(e,t,n){n.d(t,{A:()=>f});var s,r=n(5482),i=n(4576),o=n(4718),a=n(91429),u=n(5443),l=n(91075),h=n(86738),c=n(16930),d=n(90634),p=n(47610),m=n(56993),y=n(43937);let f=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:s,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return r??=c.A.WGS84,{...e,hasM:n,hasZ:s,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,d.ge)(this);return e?new u.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:r}=this;return new s({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,i.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(n.z=t[2],s=3),this.hasM&&(n.m=t[s]),new h.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,r.Cg)([(0,y.K)("points")],f.prototype,"writePoints",null),f=s=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>m});var s,r=n(5482),i=n(4718),o=n(91429),a=n(5443),u=n(91075),l=n(86738),h=n(16930),c=n(90634),d=n(56993),p=n(43937);let m=s=class extends u.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:s,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return r??=h.A.WGS84,{...e,hasM:n,hasZ:s,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,i.o8)(e)}get extent(){const e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,i.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,n=e.length;t<n;t++)s[t]=e[t].toArray();t[n]=s}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,i.o8)(this.paths),e.curvePaths=(0,i.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],s=this.hasZ,r=this.hasM;return s&&!r?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):r&&!s?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):s&&r?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,s=t.map(e=>new l.A(e,n));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(n&&(t<0||t>s.length))return!1;if(!n&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,r.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},97770(e,t,n){n.d(t,{Ey:()=>P,F8:()=>E,J2:()=>C,Yq:()=>F,_m:()=>A,iS:()=>B,wj:()=>D});var s=n(66552),r=n(73444),i=n(98623),o=n(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},u={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},f={hourCycle:"h23"},g={...m,...f},_={...y,...f},w={"short-date":h,"short-date-short-time":{...h,...m},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...y},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...m},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...y},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...m},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...y},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,..._},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...g},"long-date-long-time":{...p,...y},"long-date-long-time-24":{...p,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},b=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},S=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),I=S.find(({type:e})=>"month"===e)?.value.toLowerCase();function v(){const e=(0,r.lR)();return(e&&x[e])??(0,r.QC)()}"mart"!==I&&(x.bs="sr-Latn-CS");let T=new WeakMap;const M=w["short-date-short-time"];function C(e){return w[e]}function A(e){const{dateStyle:t,timeStyle:n,hour12:s,year:r,month:i}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=i||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===s?void 0:"always"===s),o}function F(e,t=M){return function(e){let t=T.get(e);if(!t){const n=v(),s=D(e.timeZone??"system"),r={...e,timeZone:s};t=new Intl.DateTimeFormat(n,r),T.set(e,t)}return t}(t).format(e)}function B(e,t=M){return F(new Date(e),{...t,...l,...u})}function E(e,t=M){return F(new Date(`1970-01-01T${e}Z`),{...t,...l,...a})}function P(e,t=M){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return F(n.toJSDate(),t);const s=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:s};return n.toLocaleString(r,{locale:v()})}function D(e){switch(e){case"system":return i.N;case i.L:return"UTC";default:return e}}(0,r.Ml)(()=>{T=new WeakMap}),n.d(t,["_v",0,b])},73444(e,t,n){n.d(t,{JK:()=>u,Ml:()=>f,QC:()=>c,lR:()=>h,oQ:()=>m});var s=n(36563);let r;n(44208);const i=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??e??t??"en"}function u(){return void 0===r&&(r=a()),r}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=u()){return d(e)?.language}function c(e=u()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=u()){return l.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,s.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const y=[];function f(e){return y.push(e),(0,s.hA)(()=>y.splice(y.indexOf(e),1))}function g(){const e=a();r!==e&&([...y].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,n){n.d(t,{F:()=>a});var s=n(44208),r=n(75503),i=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,i.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>m});var s=n(4576),r=n(49186),i=n(65529),o=n(53966),a=n(70328),u=n(19419),l=n(90708),h=n(6518),c=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new i.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,s,r]=this.fullBounds;return{xmin:t,ymin:n,xmax:s,ymax:r,spatialReference:(0,c.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let s;if(n?(e.displayId=n.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,l.jQ)(null!=s?s:(0,u.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:s,attributes:i}=e;for(const e in i)n.attributes[e]=i[e];return s&&(n.geometry=s,this._boundsStore.set(t,(0,l.jQ)((0,u.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var s=n(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,r])},71202(e,t,n){n.r(t),n.d(t,{default:()=>x});var s=n(11254),r=n(60999),i=n(49186),o=n(53966),a=n(17676),u=n(60408),l=n(21325),h=n(90708),c=n(83221),d=n(31464),p=n(75752),m=n(85113),y=n(64714),f=n(82832),g=n(95466),_=n(98453),w=n(30524);n(98623);const b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryWithCacheHint:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsQueryWithResultType:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0},queryBinsCapabilities:f.PC};class x{constructor(){this._featureIdInfo=null,this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};const n=[],[s]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),r=(0,m.BM)(s,{geometryType:e.geometryType}),o=e.fields||r.fields||[],a=null!=e.hasZ?e.hasZ:r.hasZ,u=r.geometryType;let h=e.objectIdField||r.objectIdFieldName||"__OBJECTID";const d=e.spatialReference||l.KK;let f=e.timeInfo;o===r.fields&&r.unknownFields.length>0&&n.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:r.unknownFields}});const x=new g.A(o);let S=x.dateFields.length>0,I=x.get(h);I?("esriFieldTypeString"!==I.type&&(I.type="esriFieldTypeOID"),I.editable=!1,I.nullable=!1,h=I.name):(I={alias:h,name:h,type:"string"===r.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(I));const v={};for(const e of o){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new i.A("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.m.jsonValues.includes(e.type))throw new i.A("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==I.name){const t=(0,w.lD)(e);void 0!==t&&(v[e.name]=t)}null==e.length&&(e.length=(0,w._b)(e))}if(f){if(f.startTimeField){const e=x.get(f.startTimeField);e?(f.startTimeField=e.name,e.type="esriFieldTypeDate",S=!0):f.startTimeField=null}if(f.endTimeField){const e=x.get(f.endTimeField);e?(f.endTimeField=e.name,e.type="esriFieldTypeDate",S=!0):f.endTimeField=null}if(f.trackIdField){const e=x.get(f.trackIdField);e?f.trackIdField=e.name:(f.trackIdField=null,n.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:f}}))}f.startTimeField||f.endTimeField||(n.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:f}}),f=null)}const T=u?(0,y.F0)(u):void 0,M=S?{timeZoneIANA:"UTC"}:null,C={warnings:n,featureErrors:[],layerDefinition:{...b,drawingInfo:T??void 0,templates:(0,y.e2)(v),extent:void 0,geometryType:u,objectIdField:h,fields:o,hasZ:!!a,timeInfo:f,dateFieldsTimeReference:M}};this._featureIdInfo={type:"object-id",fieldName:h},this._queryEngine=new p.do({fieldsIndex:g.A.fromLayerJSON({fields:o,timeInfo:f,dateFieldsTimeReference:M}),geometryType:u,hasM:!1,hasZ:a,featureIdInfo:this._featureIdInfo,spatialReference:d,timeInfo:f,featureStore:new c.A({geometryType:u,hasM:!1,hasZ:a})});const A=this._queryEngine.fieldsIndex.requiredFields.indexOf(I);A>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(A,1),this._createDefaultAttributes=(0,y.Vx)(v,h);const F=this._createFeatures(s);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,F);const B=this._normalizeFeatures(F,C.featureErrors);this._queryEngine.featureStore.addMany(B);const{fullExtent:E,timeExtent:P}=await this._queryEngine.fetchRecomputedExtents();if(C.layerDefinition.extent=E,P){const{start:e,end:t}=P;C.layerDefinition.timeInfo.timeExtent=[e,t]}return C}async applyEdits(e){const{spatialReference:t,geometryType:n}=this._queryEngine;return await Promise.all([(0,f.$1)(t,n),(0,d.Nk)(e.adds,t),(0,d.Nk)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);const t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)},e=>{this._queryEngine.featureStore.clear(),(0,a.zf)(e)||o.A.getLogger("esri.layers.GeoJSONLayer").error(new i.A("geojson-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:n}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:n}}_createFeatures(e){if(null==e)return[];const{geometryType:t,hasZ:n}=this._queryEngine,s=this._featureIdInfo.fieldName,r=(0,m.bd)(e,{geometryType:t,hasZ:n,objectIdField:s});if(!(0,l.aI)(this._queryEngine.spatialReference,l.KK))for(const e of r)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,d.Cv)((0,h.zv)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),l.KK,this._queryEngine.spatialReference)));return r}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this._loadOptions,r=(await(0,s.A)(t??"",{responseType:"json",query:{...n},signal:e})).data;return(0,m.sO)(r),r}_normalizeFeatures(e,t){const{fieldsIndex:n}=this._queryEngine,s=[],r=this._featureIdInfo.fieldName;for(const i of e){const e=this._createDefaultAttributes(),o=(0,f.MB)(n,e,i.attributes,!0);o?t?.push(o):(this._assignObjectId(e,i.attributes,!0),i.attributes=e,i.objectId=e[r],s.push(i))}return s}async _applyEdits(e){const{adds:t,updates:n,deletes:s}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),n?.length&&this._applyUpdateEdits(r,n),s?.length){for(const e of s)r.deleteResults.push((0,f.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:i,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:i,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){const{addResults:n}=e,{geometryType:s,hasM:r,hasZ:i,spatialReference:o,featureStore:a,fieldsIndex:l}=this._queryEngine,c=this._featureIdInfo.fieldName,p=[];for(const r of t){if(r.geometry&&s!==(0,u.$B)(r.geometry)){n.push((0,f.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),i=(0,f.MB)(l,t,r.attributes);if(i)n.push(i);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){const t=r.attributes[c];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){const e=r.geometry.spatialReference??o;r.geometry=(0,d.Cv)((0,f.CR)(r.geometry,e),e,o)}p.push(r),n.push((0,f.bP)(r.attributes[c]))}}a.addMany((0,h.Di)([],p,s,i,r,this._featureIdInfo))}_applyUpdateEdits({updateResults:e},t){const{geometryType:n,hasM:s,hasZ:r,spatialReference:i,featureStore:o,fieldsIndex:a}=this._queryEngine,l=this._featureIdInfo.fieldName;for(const c of t){const{attributes:t,geometry:p}=c,m=t?.[l];if(null==m){e.push((0,f.Yx)(`Identifier field ${l} missing`));continue}if(!o.has(m)){e.push((0,f.Yx)(`Feature with object id ${m} missing`));continue}const y=(0,h.oN)(o.getFeature(m),n,r,s);if(null!=p){if(n!==(0,u.$B)(p)){e.push((0,f.Yx)("Incorrect geometry type."));continue}const t=p.spatialReference??i;y.geometry=(0,d.Cv)((0,f.CR)(p,t),t,i)}if(t){const n=(0,f.MB)(a,y.attributes,t);if(n){e.push(n);continue}}o.add((0,h.E2)(y,n,r,s,this._featureIdInfo)),e.push((0,f.bP)(m))}}_createObjectIdGenerator(e,t){const n=this._featureIdInfo.fieldName,s=e.fieldsIndex.get(n);if("esriFieldTypeString"===s.type)return()=>s.name+"-"+Date.now().toString(16);let r=Number.NEGATIVE_INFINITY;for(const e of t)e.objectId&&(r=Math.max(r,e.objectId));return r=Math.max(0,r)+1,()=>r++}_assignObjectId(e,t,n=!1){const s=this._featureIdInfo.fieldName;e[s]=n&&s in t?t[s]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,d.Nk)(l.KK,e)}catch{throw new i.A("geojson-layer","Projection not supported")}}}},85113(e,t,n){n.d(t,{BM:()=>T,bd:()=>M,sO:()=>v,xD:()=>c});var s=n(67482),r=n(49186),i=n(21325),o=n(90708),a=n(43334),u=n(92722),l=n(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return h[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function y(e){let t=0;for(let n=0;n<e.length;n++){const s=e[n],r=e[(n+1)%e.length];t+=s[0]*r[1]-r[0]*s[1]}return t<=0}function f(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:s}=e,r=t.hasZ??!1,i=!0;switch(s){case"Point":return new u.A([],[...n],r,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:i},r,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:i},r,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:i},r,!1);case"Polygon":case"MultiPolygon":{const e=new u.A([],[],r,!1);for(const t of"Polygon"===s?[n]:n){_(e,t[0],r);for(let n=1;n<t.length;n++)w(e,t[n],r)}return e}}}function _(e,t,n){f(t),function(e){return!y(e)}(t)?x(e,t,n):b(e,t,n)}function w(e,t,n){f(t),function(e){return y(e)}(t)?x(e,t,n):b(e,t,n)}function b(e,t,n){for(const s of t)S(e,s,n);e.lengths.push(t.length)}function x(e,t,n){for(let s=t.length-1;s>=0;s--)S(e,t[s],n);e.lengths.push(t.length)}function S(e,[t,n,s],r){e.coords.push(t,n),r&&e.coords.push(s||0)}function I(e){switch(typeof e){case"string":return(0,s.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function v(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const s="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,i.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!s||!o.test(s))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],s=new Set,r=new Set;let i,o=!1,a=null,u=!1,{geometryType:h=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:y}=t;if((!e||(h||(h=c(e.type)),c(e.type)===h))&&(o||(o=m(p(e))),u||(u=null!=y,u&&(i=typeof y,d&&(a=Object.keys(d).filter(e=>d[e]===y)))),d&&a&&u&&null!=y&&(a.length>1?a=a.filter(e=>d[e]===y):1===a.length&&(a=d[a[0]]===y?a:[])),d))for(const e in d){if(s.has(e))continue;const t=I(d[e]);if("unknown"===t){r.add(e);continue}r.delete(e),s.add(e);const i=(0,l.rS)(e);i&&n.push({name:i,alias:e,type:t})}}const y=(0,l.rS)(1===a?.length&&a[0]||null)??void 0;if(y)for(const e of n)if(e.name===y&&(0,l.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:o,objectIdFieldName:y,objectIdFieldType:i,unknownFields:Array.from(r)}}function M(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:s}=t;for(const r of e){const{geometry:e,properties:i,id:o}=r;if(e&&c(e.type)!==n)continue;const u=i||{};let l;s&&(l=u[s],null==o||l||(u[s]=l=o)),yield new a.Om(e&&g(e,t),u,null,l)}}(d(e),t))}},64714(e,t,n){n.d(t,{F0:()=>a,Vx:()=>h,e2:()=>d,f:()=>p});var s=n(44208),r=n(4718),i=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function h(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let n="";t&&(n+=`this${c(t)} = null;`);for(const t in e)n+=`this${c(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new s}catch(n){return()=>t?{[t]:null,...e}:{...e}}}function c(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,n){n.d(t,{$1:()=>f,CR:()=>y,MB:()=>d,Yx:()=>u,bP:()=>h});var s=n(67482),r=n(21325),i=n(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function u(e){return new a(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function h(e){return new l(e)}const c=new Set;function d(e,t,n,s=!1){c.clear();for(const r in n){const o=e.get(r);if(!o)continue;const a=p(o,n[r]);if(c.add(o.name),o&&(s||o.editable)){const e=(0,i.CJ)(o,a);if(e)return u((0,i.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!c.has(t.name))return u(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,i.WA)(e)&&"string"==typeof t?n=(0,i.XT)(t):(0,i.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,i.vE)(e)&&"string"==typeof t&&(n=(0,s._)(t)),(0,i.WX)(n)}let m;function y(e,t){if(!e||!(0,r.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function f(e,t){!(0,r.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await n.e(1023).then(n.bind(n,81023))),m}()}n.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},98453(e,t,n){const s=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,s])},93470(e,t,n){const s=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};n.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,i])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8006],{69540(e,t,n){var s=n(5482),r=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;const n=e;let r=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,s=t.store,r={},l=new Map;for(const t in n){const o=n[t],a=s?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,i.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):r[t]=c}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return r=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],r),r},c=h(r.A);n.d(t,["OU",0,h,"Pw",0,c])},60999(e,t,n){n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>h,UT:()=>y,aD:()=>g,jJ:()=>u});var s=n(5482),r=n(69622),i=n(97768),o=n(17676),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,s)=>t.apply(n,[e,s])))}async function h(e,t,n){return(await(0,o.Lx)(e.map((e,s)=>t.apply(n,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function m(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e,t){return new f(e,t)}let f=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],f.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],f.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],f.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],f.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],f.prototype,"_result",void 0),f=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},67482(e,t,n){function s(e){return null!==r(e)}function r(e){return function(e){const t=i.exec(e);if(!t?.groups)return null;const n=t.groups,s=+n.year,r=+n.month-1,o=+n.day,a=+(n.hours??"0"),l=+(n.minutes??"0"),u=+(n.seconds??"0");if(a>23)return null;if(l>59)return null;if(u>59)return null;const h=n.ms??"0",c=h?+h.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(s,r,o,a,l,u,c);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,r,o,a,l,u,c)}return Number.isNaN(d)?null:d}(e)??function(e){const t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>s,_:()=>r});const i=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},75503(e,t,n){n.d(t,{wq:()=>a});var s=n(4576),r=n(21818),i=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),I.prune(),v.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const s=this._toBBox;if(b(e,n))for(x.clear();n;){for(let r=0,i=n.children.length;r<i;r++){const i=n.children[r],o=n.leaf?s(i):i;b(e,o)&&(n.leaf?t(i):_(e,o)?l(i,t):x.push(i))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(x.clear();t;){for(let s=0,r=t.children.length;s<r;s++){const r=t.children[s],i=t.leaf?n(r):r;if(b(e,i)){if(t.leaf||_(e,i))return!0;x.push(r)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new C([]),this}remove(e){if(!e)return this;let t,n=this._data,i=null,o=0,a=!1;const l=this._toBBox(e);for(I.clear(),v.clear();n||I.length>0;){if(n||(n=I.pop(),i=I.data[I.length-1],o=v.pop()??0,a=!0),n.leaf&&(t=(0,s.qh)(n.children,(0,r.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),I.push(n),this._condense(I),this;a||n.leaf||!_(n,l)?i?(o++,n=i.children[o],a=!1):n=null:(I.push(n),v.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,s){const r=n-t+1;let i=this._maxEntries;if(r<=i){const s=new C(e.slice(t,n+1));return u(s,this._toBBox),s}s||(s=Math.ceil(Math.log(r)/Math.log(i)),i=Math.ceil(r/i**(s-1)));const o=new A([]);o.height=s;const a=Math.ceil(r/i),l=a*Math.ceil(Math.sqrt(i));w(e,t,n,l,this._compareMinX);for(let r=t;r<=n;r+=l){const t=Math.min(r+l-1,n);w(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);o.children.push(this._build(e,n,r,s-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const s=this._toBBox,r=n?e:s(e);I.clear();const i=function(e,t,n,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==n;){let n,s=1/0,r=1/0;for(let i=0,o=t.children.length;i<o;i++){const o=t.children[i],a=m(o),l=f(e,o)-a;l<r?(r=l,s=a<s?a:s,n=o):l===r&&a<s&&(s=a,n=o)}t=n||t.children[0]}return t}(r,this._data,t,I);for(i.children.push(e),c(i,r);t>=0&&I.data[t].children.length>this._maxEntries;)this._split(I,t),t--;!function(e,t,n){for(let s=n;s>=0;s--)c(t.data[s],e)}(r,I,t)}_split(e,t){const n=e.data[t],s=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,s);const i=this._chooseSplitIndex(n,r,s);if(!i)return;const o=n.children.splice(i,n.children.length-i),a=n.leaf?new C(o):new A(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let s,r,i;s=r=1/0;for(let o=t;o<=n-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,n,this._toBBox),l=g(t,a),u=m(t)+m(a);l<s?(s=l,i=o,r=u<r?u:r):l===s&&u<r&&(r=u,i=o)}return i}_chooseSplitAxis(e,t,n){const s=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,s)<this._allDistMargin(e,t,n,r)&&e.children.sort(s)}_allDistMargin(e,t,n,s){e.children.sort(s);const r=this._toBBox,i=h(e,0,t,r),o=h(e,n-t,n,r);let a=y(i)+y(o);for(let s=t;s<n-t;s++){const t=e.children[s];c(i,e.leaf?r(t):t),a+=y(i)}for(let s=n-t-1;s>=t;s--){const t=e.children[s];c(o,e.leaf?r(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const r=e.data[t-1],i=r.children;i.splice((0,s.qh)(i,n,i.length,r.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,s,r){r||(r=new C([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let i,o=t;o<n;o++)i=e.children[o],c(r,e.leaf?s(i):i);return r}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,i-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,s,r){const i=[t,n];for(;i.length;){const t=i.pop(),n=i.pop();if(t-n<=s)continue;const a=n+Math.ceil((t-n)/s/2)*s;(0,o.q)(e,a,n,t,r),i.push(n,a,a,t)}}const x=new i.A,S=new i.A,I=new i.A,v=new i.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class C extends M{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends M{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>r});var s=n(34275);function r(e){if(!e)return 0;let t=u;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let n=h;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=u;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+c:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return h+e.length*t}const u=32,h=16,c=145},36708(e,t,n){n.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var s=n(37955),r=n(36563),i=n(97768),o=n(17676),a=n(14012);function l(e,t,n={}){return h(e,t,n,p)}function u(e,t,n={}){return h(e,t,n,m)}function h(e,t,n={},s){let r=null;const o=n.once?(e,n)=>{s(e)&&((0,i.xt)(r),t(e,n))}:(e,n)=>{s(e)&&t(e,n)};if(r=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return r}function c(e,t,n,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,i.xt)(h),n(e)}const p=l(e,(e,n)=>{c(),(0,s.wb)(e)&&(a=e,u=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,i.xt)(a)}return new Promise((s,i)=>{a=(0,r.vE)([(0,o.u7)(n,()=>{l(),i((0,o.NK)())}),h(e,e=>{l(),s(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,n){n.d(t,{S1:()=>a,lL:()=>u,mi:()=>l,rb:()=>h,t:()=>c});var s=n(97770),r=(n(98623),n(92647));const i=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,i="system"){if("unknown"===n)return e;const o=new r.oh((0,s.wj)(i)),a=r.c9.fromJSDate(e,{zone:o}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const s=e.getTime(),r=c(t,n,"milliseconds");return new Date(s+r)}function u(e,t,n="system"){const{unit:i}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,s.wj)(n)),l=r.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(i){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){const t=i.exec(e);if(!t)return null;const{hh:n,mm:s,ss:r,ms:a}=t.groups;return Number(n)*o.hours+Number(s)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function c(e,t,n){return 0===e?0:e*o[t]/o[n]}},48526(e,t,n){n.d(t,{A:()=>f});var s,r=n(5482),i=n(4576),o=n(4718),a=n(91429),l=n(5443),u=n(91075),h=n(86738),c=n(16930),d=n(90634),p=n(47610),m=n(56993),y=n(43937);let f=s=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:s,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return r??=c.A.WGS84,{...e,hasM:n,hasZ:s,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:r}=this;return new s({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,i.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(n.z=t[2],s=3),this.hasM&&(n.m=t[s]),new h.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,r.Cg)([(0,y.K)("points")],f.prototype,"writePoints",null),f=s=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>m});var s,r=n(5482),i=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),h=n(16930),c=n(90634),d=n(56993),p=n(43937);let m=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:s,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return r??=h.A.WGS84,{...e,hasM:n,hasZ:s,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,i.o8)(e)}get extent(){const e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,i.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,n=e.length;t<n;t++)s[t]=e[t].toArray();t[n]=s}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,i.o8)(this.paths),e.curvePaths=(0,i.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],s=this.hasZ,r=this.hasM;return s&&!r?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):r&&!s?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):s&&r?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,s=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(n&&(t<0||t>s.length))return!1;if(!n&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,r.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},97770(e,t,n){n.d(t,{Ey:()=>P,F8:()=>E,J2:()=>C,Yq:()=>F,_m:()=>A,iS:()=>B,wj:()=>R});var s=n(66552),r=n(73444),i=n(98623),o=n(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},f={hourCycle:"h23"},g={...m,...f},_={...y,...f},b={"short-date":h,"short-date-short-time":{...h,...m},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...y},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...m},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...y},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...m},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...y},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,..._},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...g},"long-date-long-time":{...p,...y},"long-date-long-time-24":{...p,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},w=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},S=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),I=S.find(({type:e})=>"month"===e)?.value.toLowerCase();function v(){const e=(0,r.lR)();return(e&&x[e])??(0,r.QC)()}"mart"!==I&&(x.bs="sr-Latn-CS");let T=new WeakMap;const M=b["short-date-short-time"];function C(e){return b[e]}function A(e){const{dateStyle:t,timeStyle:n,hour12:s,year:r,month:i}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=i||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===s?void 0:"always"===s),o}function F(e,t=M){return function(e){let t=T.get(e);if(!t){const n=v(),s=R(e.timeZone??"system"),r={...e,timeZone:s};t=new Intl.DateTimeFormat(n,r),T.set(e,t)}return t}(t).format(e)}function B(e,t=M){return F(new Date(e),{...t,...u,...l})}function E(e,t=M){return F(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function P(e,t=M){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return F(n.toJSDate(),t);const s=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:s};return n.toLocaleString(r,{locale:v()})}function R(e){switch(e){case"system":return i.N;case i.L:return"UTC";default:return e}}(0,r.Ml)(()=>{T=new WeakMap}),n.d(t,["_v",0,w])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>f,QC:()=>c,lR:()=>h,oQ:()=>m});var s=n(36563);let r;n(44208);const i=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,s.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const y=[];function f(e){return y.push(e),(0,s.hA)(()=>y.splice(y.indexOf(e),1))}function g(){const e=a();r!==e&&([...y].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,n){n.d(t,{F:()=>a});var s=n(44208),r=n(75503),i=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,i.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>m});var s=n(4576),r=n(49186),i=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),h=n(6518),c=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new i.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,s,r]=this.fullBounds;return{xmin:t,ymin:n,xmax:s,ymax:r,spatialReference:(0,c.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let s;if(n?(e.displayId=n.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.jQ)(null!=s?s:(0,l.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:s,attributes:i}=e;for(const e in i)n.attributes[e]=i[e];return s&&(n.geometry=s,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var s=n(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,r])},71202(e,t,n){n.r(t),n.d(t,{default:()=>x});var s=n(11254),r=n(60999),i=n(49186),o=n(53966),a=n(17676),l=n(60408),u=n(21325),h=n(90708),c=n(83221),d=n(31464),p=n(56390),m=n(85113),y=n(64714),f=n(82832),g=n(95466),_=n(98453),b=n(30524);n(98623);const w={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryWithCacheHint:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsQueryWithResultType:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0},queryBinsCapabilities:f.PC};class x{constructor(){this._featureIdInfo=null,this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};const n=[],[s]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),r=(0,m.BM)(s,{geometryType:e.geometryType}),o=e.fields||r.fields||[],a=null!=e.hasZ?e.hasZ:r.hasZ,l=r.geometryType;let h=e.objectIdField||r.objectIdFieldName||"__OBJECTID";const d=e.spatialReference||u.KK;let f=e.timeInfo;o===r.fields&&r.unknownFields.length>0&&n.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:r.unknownFields}});const x=new g.A(o);let S=x.dateFields.length>0,I=x.get(h);I?("esriFieldTypeString"!==I.type&&(I.type="esriFieldTypeOID"),I.editable=!1,I.nullable=!1,h=I.name):(I={alias:h,name:h,type:"string"===r.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(I));const v={};for(const e of o){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new i.A("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.m.jsonValues.includes(e.type))throw new i.A("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==I.name){const t=(0,b.lD)(e);void 0!==t&&(v[e.name]=t)}null==e.length&&(e.length=(0,b._b)(e))}if(f){if(f.startTimeField){const e=x.get(f.startTimeField);e?(f.startTimeField=e.name,e.type="esriFieldTypeDate",S=!0):f.startTimeField=null}if(f.endTimeField){const e=x.get(f.endTimeField);e?(f.endTimeField=e.name,e.type="esriFieldTypeDate",S=!0):f.endTimeField=null}if(f.trackIdField){const e=x.get(f.trackIdField);e?f.trackIdField=e.name:(f.trackIdField=null,n.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:f}}))}f.startTimeField||f.endTimeField||(n.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:f}}),f=null)}const T=l?(0,y.F0)(l):void 0,M=S?{timeZoneIANA:"UTC"}:null,C={warnings:n,featureErrors:[],layerDefinition:{...w,drawingInfo:T??void 0,templates:(0,y.e2)(v),extent:void 0,geometryType:l,objectIdField:h,fields:o,hasZ:!!a,timeInfo:f,dateFieldsTimeReference:M}};this._featureIdInfo={type:"object-id",fieldName:h},this._queryEngine=new p.do({fieldsIndex:g.A.fromLayerJSON({fields:o,timeInfo:f,dateFieldsTimeReference:M}),geometryType:l,hasM:!1,hasZ:a,featureIdInfo:this._featureIdInfo,spatialReference:d,timeInfo:f,featureStore:new c.A({geometryType:l,hasM:!1,hasZ:a})});const A=this._queryEngine.fieldsIndex.requiredFields.indexOf(I);A>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(A,1),this._createDefaultAttributes=(0,y.Vx)(v,h);const F=this._createFeatures(s);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,F);const B=this._normalizeFeatures(F,C.featureErrors);this._queryEngine.featureStore.addMany(B);const{fullExtent:E,timeExtent:P}=await this._queryEngine.fetchRecomputedExtents();if(C.layerDefinition.extent=E,P){const{start:e,end:t}=P;C.layerDefinition.timeInfo.timeExtent=[e,t]}return C}async applyEdits(e){const{spatialReference:t,geometryType:n}=this._queryEngine;return await Promise.all([(0,f.$1)(t,n),(0,d.Nk)(e.adds,t),(0,d.Nk)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);const t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)},e=>{this._queryEngine.featureStore.clear(),(0,a.zf)(e)||o.A.getLogger("esri.layers.GeoJSONLayer").error(new i.A("geojson-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:n}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:n}}_createFeatures(e){if(null==e)return[];const{geometryType:t,hasZ:n}=this._queryEngine,s=this._featureIdInfo.fieldName,r=(0,m.bd)(e,{geometryType:t,hasZ:n,objectIdField:s});if(!(0,u.aI)(this._queryEngine.spatialReference,u.KK))for(const e of r)null!=e.geometry&&(e.geometry=(0,h.Ux)((0,d.Cv)((0,h.zv)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),u.KK,this._queryEngine.spatialReference)));return r}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this._loadOptions,r=(await(0,s.A)(t??"",{responseType:"json",query:{...n},signal:e})).data;return(0,m.sO)(r),r}_normalizeFeatures(e,t){const{fieldsIndex:n}=this._queryEngine,s=[],r=this._featureIdInfo.fieldName;for(const i of e){const e=this._createDefaultAttributes(),o=(0,f.MB)(n,e,i.attributes,!0);o?t?.push(o):(this._assignObjectId(e,i.attributes,!0),i.attributes=e,i.objectId=e[r],s.push(i))}return s}async _applyEdits(e){const{adds:t,updates:n,deletes:s}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),n?.length&&this._applyUpdateEdits(r,n),s?.length){for(const e of s)r.deleteResults.push((0,f.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:i,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:i,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){const{addResults:n}=e,{geometryType:s,hasM:r,hasZ:i,spatialReference:o,featureStore:a,fieldsIndex:u}=this._queryEngine,c=this._featureIdInfo.fieldName,p=[];for(const r of t){if(r.geometry&&s!==(0,l.$B)(r.geometry)){n.push((0,f.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),i=(0,f.MB)(u,t,r.attributes);if(i)n.push(i);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){const t=r.attributes[c];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){const e=r.geometry.spatialReference??o;r.geometry=(0,d.Cv)((0,f.CR)(r.geometry,e),e,o)}p.push(r),n.push((0,f.bP)(r.attributes[c]))}}a.addMany((0,h.Di)([],p,s,i,r,this._featureIdInfo))}_applyUpdateEdits({updateResults:e},t){const{geometryType:n,hasM:s,hasZ:r,spatialReference:i,featureStore:o,fieldsIndex:a}=this._queryEngine,u=this._featureIdInfo.fieldName;for(const c of t){const{attributes:t,geometry:p}=c,m=t?.[u];if(null==m){e.push((0,f.Yx)(`Identifier field ${u} missing`));continue}if(!o.has(m)){e.push((0,f.Yx)(`Feature with object id ${m} missing`));continue}const y=(0,h.oN)(o.getFeature(m),n,r,s);if(null!=p){if(n!==(0,l.$B)(p)){e.push((0,f.Yx)("Incorrect geometry type."));continue}const t=p.spatialReference??i;y.geometry=(0,d.Cv)((0,f.CR)(p,t),t,i)}if(t){const n=(0,f.MB)(a,y.attributes,t);if(n){e.push(n);continue}}o.add((0,h.E2)(y,n,r,s,this._featureIdInfo)),e.push((0,f.bP)(m))}}_createObjectIdGenerator(e,t){const n=this._featureIdInfo.fieldName,s=e.fieldsIndex.get(n);if("esriFieldTypeString"===s.type)return()=>s.name+"-"+Date.now().toString(16);let r=Number.NEGATIVE_INFINITY;for(const e of t)e.objectId&&(r=Math.max(r,e.objectId));return r=Math.max(0,r)+1,()=>r++}_assignObjectId(e,t,n=!1){const s=this._featureIdInfo.fieldName;e[s]=n&&s in t?t[s]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,d.Nk)(u.KK,e)}catch{throw new i.A("geojson-layer","Projection not supported")}}}},85113(e,t,n){n.d(t,{BM:()=>T,bd:()=>M,sO:()=>v,xD:()=>c});var s=n(67482),r=n(49186),i=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const h={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return h[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function y(e){let t=0;for(let n=0;n<e.length;n++){const s=e[n],r=e[(n+1)%e.length];t+=s[0]*r[1]-r[0]*s[1]}return t<=0}function f(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:s}=e,r=t.hasZ??!1,i=!0;switch(s){case"Point":return new l.A([],[...n],r,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:i},r,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:i},r,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:i},r,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],r,!1);for(const t of"Polygon"===s?[n]:n){_(e,t[0],r);for(let n=1;n<t.length;n++)b(e,t[n],r)}return e}}}function _(e,t,n){f(t),function(e){return!y(e)}(t)?x(e,t,n):w(e,t,n)}function b(e,t,n){f(t),function(e){return y(e)}(t)?x(e,t,n):w(e,t,n)}function w(e,t,n){for(const s of t)S(e,s,n);e.lengths.push(t.length)}function x(e,t,n){for(let s=t.length-1;s>=0;s--)S(e,t[s],n);e.lengths.push(t.length)}function S(e,[t,n,s],r){e.coords.push(t,n),r&&e.coords.push(s||0)}function I(e){switch(typeof e){case"string":return(0,s.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function v(e,t=4326){if(!e)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const s="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,i.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!s||!o.test(s))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],s=new Set,r=new Set;let i,o=!1,a=null,l=!1,{geometryType:h=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:y}=t;if((!e||(h||(h=c(e.type)),c(e.type)===h))&&(o||(o=m(p(e))),l||(l=null!=y,l&&(i=typeof y,d&&(a=Object.keys(d).filter(e=>d[e]===y)))),d&&a&&l&&null!=y&&(a.length>1?a=a.filter(e=>d[e]===y):1===a.length&&(a=d[a[0]]===y?a:[])),d))for(const e in d){if(s.has(e))continue;const t=I(d[e]);if("unknown"===t){r.add(e);continue}r.delete(e),s.add(e);const i=(0,u.rS)(e);i&&n.push({name:i,alias:e,type:t})}}const y=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(y)for(const e of n)if(e.name===y&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:h,hasZ:o,objectIdFieldName:y,objectIdFieldType:i,unknownFields:Array.from(r)}}function M(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:s}=t;for(const r of e){const{geometry:e,properties:i,id:o}=r;if(e&&c(e.type)!==n)continue;const l=i||{};let u;s&&(u=l[s],null==o||u||(l[s]=u=o)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},64714(e,t,n){n.d(t,{F0:()=>a,Vx:()=>h,e2:()=>d,f:()=>p});var s=n(44208),r=n(4718),i=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let n="";t&&(n+=`this${c(t)} = null;`);for(const t in e)n+=`this${c(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new s}catch(n){return()=>t?{[t]:null,...e}:{...e}}}function c(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,n){n.d(t,{$1:()=>_,CR:()=>g,MB:()=>m,Yx:()=>h,bP:()=>d});var s=n(67482),r=n(93146),i=n(60408),o=n(21325),a=n(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class c{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new c(e)}const p=new Set;function m(e,t,n,s=!1){p.clear();for(const r in n){const i=e.get(r);if(!i)continue;const o=y(i,n[r]);if(p.add(i.name),i&&(s||i.editable)){const e=(0,a.CJ)(i,o);if(e)return h((0,a.uo)(e,i,o));t[i.name]=o}}for(const t of e.requiredFields??[])if(!p.has(t.name))return h(`missing required field "${t.name}"`);return null}function y(e,t){let n=t;return(0,a.WA)(e)&&"string"==typeof t?n=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,a.vE)(e)&&"string"==typeof t&&(n=(0,s._)(t)),(0,a.WX)(n)}const f=(0,r.z)(()=>Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(1075)]).then(n.bind(n,3637)));function g(e,t){if(!(0,i.Bi)(e)&&!(0,i.Rg)(e))return e;if(!(0,o.fn)(t))return e;const n=f.module;if(null==n)throw new TypeError("simplify operator not loaded");return n.execute({...e,spatialReference:t})??e}async function _(e,t){!(0,o.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await f.getImportPromise()}n.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},98453(e,t,n){const s=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,s])},93470(e,t,n){const s=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};n.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,i])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[124,9036],{69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>n,lM:()=>s});var i=r(34275);function s(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function n(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=c;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?n(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+p:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,p=145},5359(e,t,r){r.d(t,{Z:()=>s});const i=Symbol("isImageryTileGraphicOrigin");function s(e){return!!e&&i in e}r.d(t,["H",0,i])},90124(e,t,r){r.r(t),r.d(t,{default:()=>K});var i,s=r(5482),n=r(37838),a=r(69540),o=r(49186),l=r(53966),u=r(97768),c=r(25728),p=r(17676),d=r(36708),h=r(91429),y=r(56507),m=r(60950),f=r(89808),g=r(99959),v=r(5359);class w extends g.A{get[(i=v.H,m.ym)](){return this.layer}get[f.Q](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery-tile",this.layer=e}get id(){return this.layer.id}}var b=r(4146),R=r(18768),S=r(63074),C=r(69208),A=r(34287),O=r(8303),I=r(72545),M=r(56551),_=r(54310),F=r(25036),P=r(82935),x=r(82806),N=r(7548),T=r(23636),J=r(1003),Z=r(99235),j=r(10873),D=r(20437),V=r(74797),k=r(22796),L=r(69409);const E={instance:null,refCount:0,connectionPromise:null};async function H(){if(E.refCount++,E.instance)return E.instance;if(!E.connectionPromise){const e=new L.A;E.connectionPromise=e.initialize().then(()=>{E.instance=e})}return await E.connectionPromise,E.instance}function W(){E.refCount--,E.refCount>0||(E.instance?.destroy(),E.instance=null,E.connectionPromise=null,E.refCount=0)}var $=r(87045),z=r(24212),q=r(30291),B=r(88625),U=r(59923);let G=class extends((0,S.dM)((0,F.j)((0,A.q)((0,O.A)((0,M.H)((0,C.d)((0,x.b)((0,I.G)((0,P.e)((0,R.b)((0,_.J)((0,c.M)((0,a.OU)(b.A)))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.charts=null,this.graphicOrigin=new w(this),this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.fields=null,this.source=void 0,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}destroy(){super.destroy(),this._releaseWorkerHandle=(0,u.xt)(this._releaseWorkerHandle)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[(0,V.rZ)("Pixel Value"),(0,V.dy)("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,r=t?.attributeTable;if(r){const t=(0,V.jC)(r);e.push(...t)}const i=t?.dataType,s=t?.multidimensionalInfo;if(("vector-magdir"===i||"vector-uv"===i)&&null!=s){const t=s.variables[0].unit?.trim(),r=(0,V.DV)(t),i=(0,V.y6)();e.push(r,i)}if(s){const t=(0,V.AL)(s);e.push(...t)}return e}get renderer(){return super.renderer}set renderer(e){super.renderer=e}createPopupTemplate(e){const{rasterFields:t}=this,r=e?.visibleFieldNames??new Set(t.map(({name:e})=>e).filter(e=>e!==V.F_.rawServicePixelValue)),i=(0,q.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:s}=this.raster;return i?.fieldInfos&&s&&(0,V.h4)(i.fieldInfos,s),i}async generateRasterInfo(e,t){const r=(0,y.PZ)(k.A,e);if(await this.load(),!r||"none"===r.functionName?.toLowerCase())return this.serviceRasterInfo;try{const{rasterInfo:e}=await this._openFunctionRaster(r,t);return e}catch(e){if(e instanceof o.A)throw e;throw new o.A("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}supportsExportMapTiles(){const e=this._primaryRasters[0]??this.raster,t="RasterTileServer"===e?.datasetFormat,r=!!this.sourceJSON?.exportTilesAllowed,i=this.sourceJSON?.datasetFormat?.toLowerCase(),s=!/\/tiledimageservices[^.]*\.arcgis\.com/i.test(this.url)&&"Raster"===e?.tileType&&("cache/jpegplus"===i||"cache/jpegpng"===i);return t&&r&&("Map"===e?.tileType||s)}supportsWrite(){const e=this._primaryRasters[0]??this.raster;return!!(this.loaded?"RasterTileServer"===e.datasetFormat&&("Raster"===e.tileType||"Map"===e.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))}write(e,t){return this.supportsWrite()?super.write(e,t):((0,U.U4)(t,this),null)}async hasDataChanged(){try{const e=this._primaryRasters[0]??this.raster,{dataChanged:t,updates:r}=await e.refresh();return t&&(this.serviceRasterInfo!==e.rasterInfo&&this._set("serviceRasterInfo",e.rasterInfo),e.sourceJSON&&this.sourceJSON!==e.sourceJSON&&(this.sourceJSON=e.sourceJSON),r&&this.read(r,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0})),t}catch{return!1}}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=(0,N.qg)(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{const{url:t,rasterFunction:r,source:i}=this;if(!t&&!i)throw new o.A("imagery-tile-layer:open","missing url or source parameter");i?await this._openFromSource(i,e):r?await this._openFromUrlWithRasterFunction(t,r,e):await this._openFromUrl(t,e)}const r=this.raster.rasterInfo;if(!r)throw new o.A("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?r:this._primaryRasters[0].rasterInfo),this._set("spatialReference",r.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,d.wB)(()=>this.customParameters,e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)}))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=(0,N.pb)(e),this.url||(this.url=this._primaryRasters[0].url)}async _openFromUrlWithRasterFunction(e,t,r){const i=[e];let s;t&&(0,Z.UD)(t.toJSON(),i),i.some(e=>Q(e))&&(s=await H(),this._releaseWorkerHandle={remove:()=>W()});const n=await Promise.all(i.map(e=>J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:s,signal:r}))),a=n.findIndex(e=>null==e);if(a>-1)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${i[a]}`);return this._primaryRasters=n,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){let r;Q(e)&&(r=await H(),this._releaseWorkerHandle={remove:()=>W()});const i=await J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:r,signal:t});if(null==i)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[i],this.raster=i}async _openFromSource(e,t){const r="the tiled imagery data source is not supported",i="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!i)throw new o.A("imagery-tile-layer:open",r);"MEMORY"===i&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});const s=await J.default.open({url:"",source:e,datasetFormat:i,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==s)throw new o.A("imagery-tile-layer:open",r);this._primaryRasters=[s],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=s}async _openFunctionRaster(e,t){const r={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach(e=>r[e.url]=e);const i=(0,Z.vt)(e.functionDefinition?.toJSON()??e.toJSON(),r),s=new T.A({rasterFunction:i});return await s.open(t),s}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(e){e instanceof o.A&&l.A.getLogger(this).error("imagery-tile-layer:open",e.message),l.A.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}_validateElevationInfo(e){(0,z.XF)(l.A.getLogger(this),(0,z.$7)("ImageryTile layers","relative-to-scene",e)),(0,z.XF)(l.A.getLogger(this),(0,z.tW)("ImageryTile layers",e))}};(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_primaryRasters",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_releaseWorkerHandle",void 0),(0,s.Cg)([(0,h.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],G.prototype,"charts",void 0),(0,s.Cg)([(0,h.MZ)({type:B.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],G.prototype,"elevationInfo",null),(0,s.Cg)([(0,h.MZ)({type:$.A})],G.prototype,"tileInfo",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,h.MZ)(j.fV)],G.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],G.prototype,"isReference",void 0),(0,s.Cg)([(0,h.MZ)({type:["show","hide"]})],G.prototype,"listMode",void 0),(0,s.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],G.prototype,"blendMode",void 0),(0,s.Cg)([(0,h.MZ)({type:k.A,json:{name:"renderingRule",write:!0}})],G.prototype,"rasterFunction",void 0),(0,s.Cg)([(0,h.MZ)()],G.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],G.prototype,"version",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,s.Cg)([(0,h.MZ)({type:["ArcGISTiledImageServiceLayer"]})],G.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,r){t[r]=!e}}}})],G.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],G.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],G.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,h.MZ)(j.PY)],G.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"fields",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"rasterFields",null),(0,s.Cg)([(0,h.MZ)({constructOnly:!0})],G.prototype,"source",void 0),G=(0,s.Cg)([(0,h.$K)("esri.layers.ImageryTileLayer")],G);const K=G;function Q(e){return/\.(jpe?g|png)$/i.test(e)}},18768(e,t,r){var i=r(5482),s=r(53966),n=r(91429),a=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},56551(e,t,r){r.d(t,{H:()=>p});var i=r(5482),s=r(91429),n=r(69540),a=r(25482),o=r(56507),l=r(94359),u=r(93223);let c=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],c.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],c.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],c.prototype,"renderer",void 0),c=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],c);const p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[c],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},82371(e,t,r){r.d(t,{E9:()=>y,Tw:()=>d,X6:()=>h});var i=r(11254),s=r(5443),n=r(86738),a=r(16930),o=r(87186),l=r(20223),u=r(2272),c=r(22671);async function p(e,t,r){const p=(0,u.Dl)(e),{rasterFunction:d,sourceJSON:h}=t||{},y=d?JSON.stringify(d.rasterFunctionDefinition||d):null,m=(0,u.lF)({...p.query,renderingRule:y,f:"json"}),f=(0,u.jV)(m,r);e=p.path;const g=h||await(0,i.A)(e,f).then(e=>e.data),v=g.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,f):null,w=g.hasColormap?(0,i.A)(`${e}/colormap`,f):null,b=g.hasHistograms?(0,i.A)(`${e}/histograms`,f):null,R=g.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,f):null,S=g.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,f):null,C=g.currentVersion>=10.81?(0,i.A)(`${e}/statistics`,f):null,A=await Promise.allSettled([v,w,b,R,S,C]),O=s.A.fromJSON(g.extent),I=Math.ceil(O.width/g.pixelSizeX-.1),M=Math.ceil(O.height/g.pixelSizeY-.1),_=a.A.fromJSON(g.spatialReference||g.extent.spatialReference),F="fulfilled"===A[0].status?A[0].value?.data:null,P=F?.features?.length?c.A.fromJSON(F):null,x="fulfilled"===A[1].status?A[1].value?.data.colormap:null,N=x?.length?x:null,T="fulfilled"===A[2].status?A[2].value?.data.histograms:null,J=T?.[0]?.counts?.length?T:null,Z="fulfilled"===A[3].status?A[3].value?.data??{}:{},j="fulfilled"===A[4].status?A[4].value?.data.multidimensionalInfo:null,D=j?.variables?.length?j:null;D&&D.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let V=null;const k="fulfilled"===A[5].status?A[5].value?.data.statistics:null;if(k&&k.length===g.bandCount)V=k.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum}));else if(g.minValues&&g.minValues.length===g.bandCount){V=[];for(let e=0;e<g.minValues.length;e++)V.push({min:g.minValues[e],max:g.maxValues[e],avg:g.meanValues[e],stddev:g.stdvValues[e]})}const{defaultVariable:L,serviceDataType:E}=g;L&&L!==Z.DefaultVariable&&(Z.DefaultVariable=L),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(Z.DataType)&&(Z.DataType=E.replace("esriImageServiceDataType",""));let H=g.noDataValue;g.noDataValues?.length&&g.noDataValues.some(e=>e!==H)&&(H=g.noDataValues);const W=g.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:g.extent.xmin,y:g.extent.ymax,spatialReference:_}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(I,M))/Math.LN2-8)),transposeInfo:g.transposeInfo}):void 0;return new o.A({width:I,height:M,bandCount:g.bandCount,extent:s.A.fromJSON(g.extent),spatialReference:_,pixelSize:new n.A({x:g.pixelSizeX,y:g.pixelSizeY,spatialReference:_}),pixelType:g.pixelType.toLowerCase(),statistics:V,attributeTable:P,colormap:N,histograms:J,keyProperties:Z,noDataValue:H,multidimensionalInfo:D,storageInfo:W})}function d(e,t,r){return p(e,{sourceJSON:t},r)}function h(e,t,r){return p(e,{rasterFunction:t},r)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var i=r(92602),s=r(70333),n=r(4718),a=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function c(e,t,r){const i={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))i[s]=n.map(e=>c(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(r?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?n:JSON.stringify(n);else i[s]=n}return i}async function p(e,t,n){const a=function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(a)return a;!s.id&&i.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(5683),r.e(148)]).then(r.bind(r,50148));const l=await s.id.getCredential(e,n);return l?.token}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[124,9036],{69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>n,lM:()=>s});var i=r(34275);function s(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function n(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=c;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?n(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+p:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,p=145},5359(e,t,r){r.d(t,{Z:()=>s});const i=Symbol("isImageryTileGraphicOrigin");function s(e){return!!e&&i in e}r.d(t,["H",0,i])},90124(e,t,r){r.r(t),r.d(t,{default:()=>K});var i,s=r(5482),n=r(37838),a=r(69540),o=r(49186),l=r(53966),u=r(97768),c=r(25728),p=r(17676),d=r(36708),h=r(91429),y=r(56507),m=r(60950),f=r(89808),g=r(99959),v=r(5359);class w extends g.A{get[(i=v.H,m.ym)](){return this.layer}get[f.Q](){return this.layer}constructor(e){super(),this[i]=!0,this.type="imagery-tile",this.layer=e}get id(){return this.layer.id}}var b=r(4146),R=r(18768),S=r(63074),C=r(69208),A=r(34287),O=r(8303),I=r(72545),M=r(56551),_=r(54310),F=r(25036),P=r(82935),x=r(82806),N=r(7548),T=r(23636),J=r(1003),Z=r(99235),j=r(10873),D=r(20437),V=r(74797),k=r(22796),L=r(69409);const E={instance:null,refCount:0,connectionPromise:null};async function H(){if(E.refCount++,E.instance)return E.instance;if(!E.connectionPromise){const e=new L.A;E.connectionPromise=e.initialize().then(()=>{E.instance=e})}return await E.connectionPromise,E.instance}function W(){E.refCount--,E.refCount>0||(E.instance?.destroy(),E.instance=null,E.connectionPromise=null,E.refCount=0)}var $=r(87045),z=r(24212),q=r(30291),B=r(88625),U=r(59923);let G=class extends((0,S.dM)((0,F.j)((0,A.q)((0,O.A)((0,M.H)((0,C.d)((0,x.b)((0,I.G)((0,P.e)((0,R.b)((0,_.J)((0,c.M)((0,a.OU)(b.A)))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.charts=null,this.graphicOrigin=new w(this),this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.fields=null,this.source=void 0,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:s,saveAs:n}=await r.e(9838).then(r.bind(r,59838));switch(e){case 0:return s(this,t);case 1:return n(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}destroy(){super.destroy(),this._releaseWorkerHandle=(0,u.xt)(this._releaseWorkerHandle)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[(0,V.rZ)("Pixel Value"),(0,V.dy)("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,r=t?.attributeTable;if(r){const t=(0,V.jC)(r);e.push(...t)}const i=t?.dataType,s=t?.multidimensionalInfo;if(("vector-magdir"===i||"vector-uv"===i)&&null!=s){const t=s.variables[0].unit?.trim(),r=(0,V.DV)(t),i=(0,V.y6)();e.push(r,i)}if(s){const t=(0,V.AL)(s);e.push(...t)}return e}get renderer(){return super.renderer}set renderer(e){super.renderer=e}createPopupTemplate(e){const{rasterFields:t}=this,r=e?.visibleFieldNames??new Set(t.map(({name:e})=>e).filter(e=>e!==V.F_.rawServicePixelValue)),i=(0,q.tn)({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:s}=this.raster;return i?.fieldInfos&&s&&(0,V.h4)(i.fieldInfos,s),i}async generateRasterInfo(e,t){const r=(0,y.PZ)(k.A,e);if(await this.load(),!r||"none"===r.functionName?.toLowerCase())return this.serviceRasterInfo;try{const{rasterInfo:e}=await this._openFunctionRaster(r,t);return e}catch(e){if(e instanceof o.A)throw e;throw new o.A("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}supportsExportMapTiles(){const e=this._primaryRasters[0]??this.raster,t="RasterTileServer"===e?.datasetFormat,r=!!this.sourceJSON?.exportTilesAllowed,i=this.sourceJSON?.datasetFormat?.toLowerCase(),s=!/\/tiledimageservices[^.]*\.arcgis\.com/i.test(this.url)&&"Raster"===e?.tileType&&("cache/jpegplus"===i||"cache/jpegpng"===i);return t&&r&&("Map"===e?.tileType||s)}supportsWrite(){const e=this._primaryRasters[0]??this.raster;return!!(this.loaded?"RasterTileServer"===e.datasetFormat&&("Raster"===e.tileType||"Map"===e.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))}write(e,t){return this.supportsWrite()?super.write(e,t):((0,U.U4)(t,this),null)}async hasDataChanged(){try{const e=this._primaryRasters[0]??this.raster,{dataChanged:t,updates:r}=await e.refresh();return t&&(this.serviceRasterInfo!==e.rasterInfo&&this._set("serviceRasterInfo",e.rasterInfo),e.sourceJSON&&this.sourceJSON!==e.sourceJSON&&(this.sourceJSON=e.sourceJSON),r&&this.read(r,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0})),t}catch{return!1}}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=(0,N.qg)(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{const{url:t,rasterFunction:r,source:i}=this;if(!t&&!i)throw new o.A("imagery-tile-layer:open","missing url or source parameter");i?await this._openFromSource(i,e):r?await this._openFromUrlWithRasterFunction(t,r,e):await this._openFromUrl(t,e)}const r=this.raster.rasterInfo;if(!r)throw new o.A("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?r:this._primaryRasters[0].rasterInfo),this._set("spatialReference",r.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,d.wB)(()=>this.customParameters,e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)}))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=(0,N.pb)(e),this.url||(this.url=this._primaryRasters[0].url)}async _openFromUrlWithRasterFunction(e,t,r){const i=[e];let s;t&&(0,Z.UD)(t.toJSON(),i),i.some(e=>Q(e))&&(s=await H(),this._releaseWorkerHandle={remove:()=>W()});const n=await Promise.all(i.map(e=>J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:s,signal:r}))),a=n.findIndex(e=>null==e);if(a>-1)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${i[a]}`);return this._primaryRasters=n,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){let r;Q(e)&&(r=await H(),this._releaseWorkerHandle={remove:()=>W()});const i=await J.default.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:r,signal:t});if(null==i)throw new o.A("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[i],this.raster=i}async _openFromSource(e,t){const r="the tiled imagery data source is not supported",i="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!i)throw new o.A("imagery-tile-layer:open",r);"MEMORY"===i&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});const s=await J.default.open({url:"",source:e,datasetFormat:i,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==s)throw new o.A("imagery-tile-layer:open",r);this._primaryRasters=[s],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=s}async _openFunctionRaster(e,t){const r={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach(e=>r[e.url]=e);const i=(0,Z.vt)(e.functionDefinition?.toJSON()??e.toJSON(),r),s=new T.A({rasterFunction:i});return await s.open(t),s}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(e){e instanceof o.A&&l.A.getLogger(this).error("imagery-tile-layer:open",e.message),l.A.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}_validateElevationInfo(e){(0,z.XF)(l.A.getLogger(this),(0,z.$7)("ImageryTile layers","relative-to-scene",e)),(0,z.XF)(l.A.getLogger(this),(0,z.tW)("ImageryTile layers",e))}};(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_primaryRasters",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],G.prototype,"_releaseWorkerHandle",void 0),(0,s.Cg)([(0,h.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],G.prototype,"charts",void 0),(0,s.Cg)([(0,h.MZ)({type:B.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],G.prototype,"elevationInfo",null),(0,s.Cg)([(0,h.MZ)({type:$.A})],G.prototype,"tileInfo",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,h.MZ)(j.fV)],G.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],G.prototype,"isReference",void 0),(0,s.Cg)([(0,h.MZ)({type:["show","hide"]})],G.prototype,"listMode",void 0),(0,s.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],G.prototype,"blendMode",void 0),(0,s.Cg)([(0,h.MZ)({type:k.A,json:{name:"renderingRule",write:!0}})],G.prototype,"rasterFunction",void 0),(0,s.Cg)([(0,h.MZ)()],G.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],G.prototype,"version",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,s.Cg)([(0,h.MZ)({type:["ArcGISTiledImageServiceLayer"]})],G.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,r){t[r]=!e}}}})],G.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],G.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],G.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,h.MZ)(j.PY)],G.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"fields",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0,type:[D.A]})],G.prototype,"rasterFields",null),(0,s.Cg)([(0,h.MZ)({constructOnly:!0})],G.prototype,"source",void 0),G=(0,s.Cg)([(0,h.$K)("esri.layers.ImageryTileLayer")],G);const K=G;function Q(e){return/\.(jpe?g|png)$/i.test(e)}},18768(e,t,r){var i=r(5482),s=r(53966),n=r(91429),a=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},56551(e,t,r){r.d(t,{H:()=>p});var i=r(5482),s=r(91429),n=r(69540),a=r(25482),o=r(56507),l=r(94359),u=r(93223);let c=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],c.prototype,"method",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,i.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],c.prototype,"bandIds",void 0),(0,i.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],c.prototype,"renderer",void 0),c=(0,i.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],c);const p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],r.prototype,"activePresetRendererName",void 0),(0,i.Cg)([(0,s.MZ)({type:[c],json:{name:"layerDefinition.presetRenderers",write:!0}})],r.prototype,"presetRenderers",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],r),r}},82371(e,t,r){r.d(t,{E9:()=>y,Tw:()=>d,X6:()=>h});var i=r(11254),s=r(5443),n=r(86738),a=r(16930),o=r(87186),l=r(20223),u=r(2272),c=r(22671);async function p(e,t,r){const p=(0,u.Dl)(e),{rasterFunction:d,sourceJSON:h}=t||{},y=d?JSON.stringify(d.rasterFunctionDefinition||d):null,m=(0,u.lF)({...p.query,renderingRule:y,f:"json"}),f=(0,u.jV)(m,r);e=p.path;const g=h||await(0,i.A)(e,f).then(e=>e.data),v=g.hasRasterAttributeTable?(0,i.A)(`${e}/rasterAttributeTable`,f):null,w=g.hasColormap?(0,i.A)(`${e}/colormap`,f):null,b=g.hasHistograms?(0,i.A)(`${e}/histograms`,f):null,R=g.currentVersion>=10.3?(0,i.A)(`${e}/keyProperties`,f):null,S=g.hasMultidimensions?(0,i.A)(`${e}/multidimensionalInfo`,f):null,C=g.currentVersion>=10.81?(0,i.A)(`${e}/statistics`,f):null,A=await Promise.allSettled([v,w,b,R,S,C]),O=s.A.fromJSON(g.extent),I=Math.ceil(O.width/g.pixelSizeX-.1),M=Math.ceil(O.height/g.pixelSizeY-.1),_=a.A.fromJSON(g.spatialReference||g.extent.spatialReference),F="fulfilled"===A[0].status?A[0].value?.data:null,P=F?.features?.length?c.A.fromJSON(F):null,x="fulfilled"===A[1].status?A[1].value?.data.colormap:null,N=x?.length?x:null,T="fulfilled"===A[2].status?A[2].value?.data.histograms:null,J=T?.[0]?.counts?.length?T:null,Z="fulfilled"===A[3].status?A[3].value?.data??{}:{},j="fulfilled"===A[4].status?A[4].value?.data.multidimensionalInfo:null,D=j?.variables?.length?j:null;D&&D.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let V=null;const k="fulfilled"===A[5].status?A[5].value?.data.statistics:null;if(k&&k.length===g.bandCount)V=k.map(e=>({avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum}));else if(g.minValues&&g.minValues.length===g.bandCount){V=[];for(let e=0;e<g.minValues.length;e++)V.push({min:g.minValues[e],max:g.maxValues[e],avg:g.meanValues[e],stddev:g.stdvValues[e]})}const{defaultVariable:L,serviceDataType:E}=g;L&&L!==Z.DefaultVariable&&(Z.DefaultVariable=L),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(Z.DataType)&&(Z.DataType=E.replace("esriImageServiceDataType",""));let H=g.noDataValue;g.noDataValues?.length&&g.noDataValues.some(e=>e!==H)&&(H=g.noDataValues);const W=g.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:g.extent.xmin,y:g.extent.ymax,spatialReference:_}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(I,M))/Math.LN2-8)),transposeInfo:g.transposeInfo}):void 0;return new o.A({width:I,height:M,bandCount:g.bandCount,extent:s.A.fromJSON(g.extent),spatialReference:_,pixelSize:new n.A({x:g.pixelSizeX,y:g.pixelSizeY,spatialReference:_}),pixelType:g.pixelType.toLowerCase(),statistics:V,attributeTable:P,colormap:N,histograms:J,keyProperties:Z,noDataValue:H,multidimensionalInfo:D,storageInfo:W})}function d(e,t,r){return p(e,{sourceJSON:t},r)}function h(e,t,r){return p(e,{rasterFunction:t},r)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var i=r(92602),s=r(70333),n=r(4718),a=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function c(e,t,r){const i={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))i[s]=n.map(e=>c(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(r?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?n:JSON.stringify(n);else i[s]=n}return i}async function p(e,t,n){const a=function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(a)return a;!s.id&&i.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(1144),r.e(148)]).then(r.bind(r,50148));const l=await s.id.getCredential(e,n);return l?.token}}}]);