@arcgis/core 5.2.0-next.128 → 5.2.0-next.129

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 (300) hide show
  1. package/applications/Components/imageryUtils.js +1 -1
  2. package/arcade/batchExec.js +1 -1
  3. package/arcade/geometry/adapters/dehydrated.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +1 -0
  6. package/assets/esri/core/workers/chunks/{67dcf9b873cb037b2647.js → 081c9ccaa5884c730a91.js} +1 -1
  7. package/assets/esri/core/workers/chunks/094102031cc77b20db74.js +1 -0
  8. package/assets/esri/core/workers/chunks/0b85c844af97b2fb0ba8.js +1 -0
  9. package/assets/esri/core/workers/chunks/{86d7a3ae672a51b75fcc.js → 0d44f793d3b0d33153ac.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +1 -0
  11. package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +1 -0
  12. package/assets/esri/core/workers/chunks/111dc5653daa7f3e1001.js +1 -0
  13. package/assets/esri/core/workers/chunks/139e3da8ea081e21539e.js +1 -0
  14. package/assets/esri/core/workers/chunks/142bedebd37d747f84ba.js +1 -0
  15. package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +1 -0
  16. package/assets/esri/core/workers/chunks/{dd02cc18ebebb90778c6.js → 17e2bfc7468c23e43bef.js} +1 -1
  17. package/assets/esri/core/workers/chunks/196d33f4d8e3a256ad94.js +1 -0
  18. package/assets/esri/core/workers/chunks/1a02c68de65a67ab6a67.js +1 -0
  19. package/assets/esri/core/workers/chunks/{4165eb86471ea3bbf364.js → 1aecf7106a21320e054e.js} +1 -1
  20. package/assets/esri/core/workers/chunks/1bc03b8065cbbbb06c87.js +1 -0
  21. package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +1 -0
  22. package/assets/esri/core/workers/chunks/20ee32fee219afbcfee3.js +1 -0
  23. package/assets/esri/core/workers/chunks/{9467744cb7d094a5067a.js → 21d2f5324db0b199060c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/22abb9a74f6594f9db2a.js +1 -0
  25. package/assets/esri/core/workers/chunks/237795866c075880531b.js +1 -0
  26. package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +1 -0
  27. package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +1 -0
  28. package/assets/esri/core/workers/chunks/3412050ae63ff7dcaf36.js +1 -0
  29. package/assets/esri/core/workers/chunks/35316724c8d3cc39cf80.js +1 -0
  30. package/assets/esri/core/workers/chunks/354cc6cd2a56937f1747.js +1 -0
  31. package/assets/esri/core/workers/chunks/365ae479765ca9e47de4.js +1 -0
  32. package/assets/esri/core/workers/chunks/{8190fcb1dd10ad20feed.js → 36ef86701883a20dd6f6.js} +1 -1
  33. package/assets/esri/core/workers/chunks/3759e272a1d43534a190.js +1 -0
  34. package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +1 -0
  35. package/assets/esri/core/workers/chunks/3a7a558e30b5cb81c801.js +1 -0
  36. package/assets/esri/core/workers/chunks/3c9405d310a1b08c901e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{e10fe4c77b8dc4492092.js → 3ce53562926b05e71af5.js} +1 -1
  38. package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +1 -0
  39. package/assets/esri/core/workers/chunks/3d67fed3e53993c38b58.js +1 -0
  40. package/assets/esri/core/workers/chunks/42bdeeff55fb1a3f735f.js +1 -0
  41. package/assets/esri/core/workers/chunks/48f1532520b76fa7f0c2.js +1 -0
  42. package/assets/esri/core/workers/chunks/{00d9e41deecf5828975c.js → 4adc3822ed9f498f5653.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d5f0fed415b5b155d57c.js → 51741ef8225d470716fe.js} +1 -1
  44. package/assets/esri/core/workers/chunks/5191e481d0e19a7f3888.js +1 -0
  45. package/assets/esri/core/workers/chunks/{7fcee3a1b900ddc9a5e3.js → 540acf6abdee9dbd453e.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d9b63cf111035b05cd2e.js → 5484b89adc53430226d5.js} +1 -1
  47. package/assets/esri/core/workers/chunks/55361b50ecfc98db2ffb.js +1 -0
  48. package/assets/esri/core/workers/chunks/58da7c41c1bcef2f4141.js +1 -0
  49. package/assets/esri/core/workers/chunks/5979bbefb09d132c008f.js +1 -0
  50. package/assets/esri/core/workers/chunks/{84db05e872dbf35c80a2.js → 5982c6a8459c1237b298.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{0a20f84b5f004a77a9f9.js → 5abfc4f447b01d6bf287.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{4c0dba437de0969a5b63.js → 5b9f88194433410bad5b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +1 -0
  54. package/assets/esri/core/workers/chunks/62a30692e2a7612bafc1.js +1 -0
  55. package/assets/esri/core/workers/chunks/62aa7daad4ca7332854e.js +1 -0
  56. package/assets/esri/core/workers/chunks/66926c3686d5ef2d4692.js +29 -0
  57. package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +1 -0
  58. package/assets/esri/core/workers/chunks/6d0c6fda9100fe89f3cb.js +1 -0
  59. package/assets/esri/core/workers/chunks/72a898894438f177cd62.js +1 -0
  60. package/assets/esri/core/workers/chunks/78d4455237120103f639.js +1 -0
  61. package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +1 -0
  62. package/assets/esri/core/workers/chunks/{6267a1fe1603daa399b4.js → 81327e10200065a0ccef.js} +1 -1
  63. package/assets/esri/core/workers/chunks/84a3fbe5d85a357f4e82.js +1 -0
  64. package/assets/esri/core/workers/chunks/862479729f2d036f606b.js +1 -0
  65. package/assets/esri/core/workers/chunks/8a9aa6db11d0f643961c.js +1 -0
  66. package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +1 -0
  67. package/assets/esri/core/workers/chunks/8e92925043dc49ed1018.js +1 -0
  68. package/assets/esri/core/workers/chunks/8f0b2b0ca239b01f44d0.js +1 -0
  69. package/assets/esri/core/workers/chunks/93a89168c18db88f60e7.js +1 -0
  70. package/assets/esri/core/workers/chunks/991c854a4459c82d4d93.js +1 -0
  71. package/assets/esri/core/workers/chunks/{f90cad9f007a11154c0d.js → 9b080d07699b56f06c5f.js} +1 -1
  72. package/assets/esri/core/workers/chunks/9cd69aa3880838a834f8.js +1 -0
  73. package/assets/esri/core/workers/chunks/{2ca49fb4590cc34a02bd.js → 9d87f38b16dda1ff7978.js} +1 -1
  74. package/assets/esri/core/workers/chunks/9fd1e5a2c0a261ed2a33.js +1 -0
  75. package/assets/esri/core/workers/chunks/a189e520da39919cdcca.js +1 -0
  76. package/assets/esri/core/workers/chunks/a3a5cb664bdb1db190dd.js +1 -0
  77. package/assets/esri/core/workers/chunks/a63c456ecf018ec06778.js +1 -0
  78. package/assets/esri/core/workers/chunks/{842f993fa60b410cb613.js → a8322a978e33c7349fdf.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{f479b4a4cee4bb2e046c.js → aa96eea0899757ab38c7.js} +1 -1
  80. package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +1 -0
  81. package/assets/esri/core/workers/chunks/ab7337b076d152a8eb9e.js +1 -0
  82. package/assets/esri/core/workers/chunks/ac0de274853a42d518a1.js +1 -0
  83. package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +1 -0
  84. package/assets/esri/core/workers/chunks/ae75b3e5320d03dff64c.js +1 -0
  85. package/assets/esri/core/workers/chunks/ae98530d5816306216b3.js +1 -0
  86. package/assets/esri/core/workers/chunks/afc94c4b9bc007fe310f.js +1 -0
  87. package/assets/esri/core/workers/chunks/afe54923339e957b71b9.js +1 -0
  88. package/assets/esri/core/workers/chunks/bbcac00362fef5e3956d.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1302bf9718747cd9fdd9.js → bcee161dd1c4781d1998.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{d1f54b0079fb71a15612.js → bd231bc0624eb889ac14.js} +1 -1
  91. package/assets/esri/core/workers/chunks/c0075715fbe7bec10fc3.js +1 -0
  92. package/assets/esri/core/workers/chunks/c4e1e864fb8c119b2520.js +1 -0
  93. package/assets/esri/core/workers/chunks/c93cedf9e53da5aaa35b.js +1 -0
  94. package/assets/esri/core/workers/chunks/{2d592c935571de80a2e2.js → c9690810b198a97bc16d.js} +1 -1
  95. package/assets/esri/core/workers/chunks/cada517cc25fa37f778c.js +1 -0
  96. package/assets/esri/core/workers/chunks/cd1821bf601949674e02.js +1 -0
  97. package/assets/esri/core/workers/chunks/{1b42d163ef22e3565bb7.js → cf7b7e54cd87422ca62a.js} +1 -1
  98. package/assets/esri/core/workers/chunks/d195c57fc6de3560653d.js +1 -0
  99. package/assets/esri/core/workers/chunks/d7f830a06ded11f2fc80.js +1 -0
  100. package/assets/esri/core/workers/chunks/d877783815afd21dbe98.js +1 -0
  101. package/assets/esri/core/workers/chunks/db5181fcea96cc2ede3e.js +1 -0
  102. package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js → de28a86775235bd5d3c4.js} +2 -2
  103. package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +1 -0
  104. package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +1 -0
  105. package/assets/esri/core/workers/chunks/{668ec0bdfb2095e90c9e.js → e495697860f7207da4c7.js} +1 -1
  106. package/assets/esri/core/workers/chunks/f163502c513205c892e7.js +1 -0
  107. package/assets/esri/core/workers/chunks/f287ec0fcb611f82ebb0.js +1 -0
  108. package/assets/esri/core/workers/chunks/{37ae52c71bf9c70fbb92.js → f2d45d15d0ba2537a4eb.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{d507d7d7a7282fc38e8d.js → f652d1db26fbdea1a79b.js} +1 -1
  110. package/assets/esri/core/workers/chunks/f6b38ed75baae198c19b.js +1 -0
  111. package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js → f6cfc901267a229de7a1.js} +2 -2
  112. package/assets/esri/core/workers/chunks/f6d04d14323b926f1025.js +1 -0
  113. package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +1 -0
  114. package/assets/esri/core/workers/chunks/{3b7dff15a0058ea29886.js → f92178ac6dc9abff304f.js} +1 -1
  115. package/assets/esri/core/workers/chunks/fc39593febef74a036f1.js +1 -0
  116. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  117. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -0
  118. package/assets/esri/themes/dark/main.css +1 -1
  119. package/assets/esri/themes/light/main.css +1 -1
  120. package/assets/esri/themes/light/view.css +1 -1
  121. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  122. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  123. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  124. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  125. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  126. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  127. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  128. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  129. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  130. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  131. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  132. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  133. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  134. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  135. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  136. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  137. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  138. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  139. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  140. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  141. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  142. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  143. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  144. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  145. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  146. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  147. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  148. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  149. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  150. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  151. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  152. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  153. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  154. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  155. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  156. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  157. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  158. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  159. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  160. package/chunks/batchExec.js +2 -0
  161. package/config.js +1 -1
  162. package/geometry/support/intersects.js +1 -1
  163. package/geometry/support/intersectsBase.js +1 -1
  164. package/kernel.js +1 -1
  165. package/layers/GeospatialPDFLayer.js +1 -1
  166. package/layers/ImageryTileLayer.js +1 -1
  167. package/layers/graphics/hydrateGeometryJSON.js +2 -0
  168. package/layers/graphics/hydratedFeatures.js +1 -1
  169. package/layers/graphics/hydratedSpatialReference.js +2 -0
  170. package/layers/raster/datasets/DBFParser.js +1 -1
  171. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  172. package/layers/raster/datasets/TIFFRaster.js +1 -1
  173. package/layers/raster/formats/JpgPlus.js +1 -1
  174. package/layers/raster/formats/RasterCodec.js +1 -1
  175. package/layers/raster/formats/Raw.js +1 -1
  176. package/layers/support/arcadeUtils.js +1 -1
  177. package/package.json +3 -3
  178. package/popup/FeatureContent.js +1 -1
  179. package/popup/FeatureContentCollection.d.ts +2 -0
  180. package/popup/FeatureContentCollection.js +1 -1
  181. package/popup/support/featureUtils.js +1 -1
  182. package/rest/imageService.js +1 -1
  183. package/support/arcadeUtils.js +1 -1
  184. package/support/loadArcade.js +1 -1
  185. package/support/revision.js +1 -1
  186. package/symbols/cim/cimAnalyzer.js +1 -1
  187. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  188. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  189. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  190. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  191. package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
  192. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  193. package/views/2d/layerViewModuleImportUtils.js +1 -1
  194. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  195. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  196. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  197. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  198. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  199. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  200. package/views/2d/support/hitTestUtils.js +1 -1
  201. package/views/3d/interactive/Manipulator3D.js +1 -1
  202. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  203. package/views/3d/terrain/TileCompositor.js +1 -1
  204. package/views/DOMContainer.d.ts +18 -8
  205. package/views/VideoView.d.ts +38 -0
  206. package/views/VideoView.js +1 -1
  207. package/views/View.d.ts +20 -2
  208. package/views/View.js +1 -1
  209. package/views/input/types.d.ts +19 -6
  210. package/views/interactive/dragEventPipeline.js +1 -1
  211. package/views/layers/ImageryTileLayerView.js +1 -1
  212. package/widgets/Search/SearchViewModel.js +1 -1
  213. package/widgets/Search/support/layerSearchUtils.js +1 -1
  214. package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +0 -1
  215. package/assets/esri/core/workers/chunks/02f94f9d704f03ddb5c6.js +0 -1
  216. package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +0 -1
  217. package/assets/esri/core/workers/chunks/04d4cd66485b622403d0.js +0 -1
  218. package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +0 -1
  219. package/assets/esri/core/workers/chunks/09676cfa99b90fe0cc63.js +0 -1
  220. package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +0 -1
  221. package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +0 -1
  222. package/assets/esri/core/workers/chunks/1262918b2161d79851c0.js +0 -1
  223. package/assets/esri/core/workers/chunks/1406a884241809b62bff.js +0 -1
  224. package/assets/esri/core/workers/chunks/1c33aa349beea9a3792f.js +0 -1
  225. package/assets/esri/core/workers/chunks/1f135269aea3931e11b2.js +0 -1
  226. package/assets/esri/core/workers/chunks/24014f3701c31ee74bc2.js +0 -1
  227. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +0 -1
  228. package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +0 -1
  229. package/assets/esri/core/workers/chunks/2c7bb5c9751524687002.js +0 -1
  230. package/assets/esri/core/workers/chunks/2ebad7e588b26e74cefe.js +0 -1
  231. package/assets/esri/core/workers/chunks/319434415d2c0561bc59.js +0 -1
  232. package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +0 -1
  233. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +0 -1
  234. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +0 -1
  235. package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +0 -1
  236. package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +0 -1
  237. package/assets/esri/core/workers/chunks/462fd57af8ed7921d6ba.js +0 -1
  238. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +0 -1
  239. package/assets/esri/core/workers/chunks/48a2f68e06a2e90b77d0.js +0 -1
  240. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +0 -1
  241. package/assets/esri/core/workers/chunks/4f464047c6f6c9486efd.js +0 -1
  242. package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +0 -1
  243. package/assets/esri/core/workers/chunks/526cc64ae46dec3fbeda.js +0 -1
  244. package/assets/esri/core/workers/chunks/550d4df0732352fa48b5.js +0 -1
  245. package/assets/esri/core/workers/chunks/581285e4d7bbe1b7c27a.js +0 -1
  246. package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +0 -1
  247. package/assets/esri/core/workers/chunks/5adf2792416b22cd602f.js +0 -1
  248. package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +0 -1
  249. package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +0 -1
  250. package/assets/esri/core/workers/chunks/606cca69eaea84bfcdc6.js +0 -1
  251. package/assets/esri/core/workers/chunks/64ee22134fda2f09c094.js +0 -1
  252. package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +0 -1
  253. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +0 -1
  254. package/assets/esri/core/workers/chunks/67fd2cdb2e6834bfa710.js +0 -1
  255. package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +0 -1
  256. package/assets/esri/core/workers/chunks/75294f515c7f8393181c.js +0 -1
  257. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +0 -1
  258. package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +0 -1
  259. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +0 -1
  260. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +0 -1
  261. package/assets/esri/core/workers/chunks/80f16f5f15518013f7d0.js +0 -1
  262. package/assets/esri/core/workers/chunks/8465e2c7221125fd3cc4.js +0 -1
  263. package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +0 -1
  264. package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +0 -1
  265. package/assets/esri/core/workers/chunks/8a842cde240aef12e417.js +0 -1
  266. package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +0 -1
  267. package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +0 -1
  268. package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +0 -1
  269. package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +0 -29
  270. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +0 -1
  271. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +0 -1
  272. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +0 -1
  273. package/assets/esri/core/workers/chunks/a3a33ffa34f4d645ddfe.js +0 -1
  274. package/assets/esri/core/workers/chunks/b396c4b4bb144200acc7.js +0 -1
  275. package/assets/esri/core/workers/chunks/b9c834e3c0701e9b14a2.js +0 -1
  276. package/assets/esri/core/workers/chunks/bbfb80a6983574007ce5.js +0 -1
  277. package/assets/esri/core/workers/chunks/bcf2e5cf6b9c6d0442bb.js +0 -1
  278. package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +0 -1
  279. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +0 -1
  280. package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +0 -1
  281. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +0 -1
  282. package/assets/esri/core/workers/chunks/d25fb32a233d2128afbe.js +0 -1
  283. package/assets/esri/core/workers/chunks/d5ef269ab0ee3744b05d.js +0 -1
  284. package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +0 -1
  285. package/assets/esri/core/workers/chunks/dc92710a8fdfb9135e55.js +0 -1
  286. package/assets/esri/core/workers/chunks/dd4ecf81250cc001d040.js +0 -1
  287. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +0 -1
  288. package/assets/esri/core/workers/chunks/e4016ae9cb8f16e3efc3.js +0 -1
  289. package/assets/esri/core/workers/chunks/e6a4cef0af9be30ffe3d.js +0 -1
  290. package/assets/esri/core/workers/chunks/eaa7cb3ffa8c11706a09.js +0 -1
  291. package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +0 -1
  292. package/assets/esri/core/workers/chunks/ef6e52f9b656751eebaf.js +0 -1
  293. package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +0 -1
  294. package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +0 -1
  295. package/assets/esri/core/workers/chunks/f71ec8a260405ed07958.js +0 -1
  296. package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +0 -1
  297. package/assets/esri/core/workers/chunks/fb11ff3f2eae5f072560.js +0 -1
  298. package/assets/esri/core/workers/chunks/ff0e9f8d323eb1729650.js +0 -1
  299. /package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js.LICENSE.txt → de28a86775235bd5d3c4.js.LICENSE.txt} +0 -0
  300. /package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js.LICENSE.txt → f6cfc901267a229de7a1.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>u,rb:()=>d,t:()=>c});var n=r(97770),i=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,s="system"){if("unknown"===r)return e;const a=new i.oh((0,n.wj)(s)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"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"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=c(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){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"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){const t=s.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(n)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function c(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>b});var n=r(32198),i=r(56507),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),d=r(17676),c=r(84952),p=r(91429),y=r(5443),h=r(16930),m=r(92602),f=r(79677);let g=0,b=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(9917),r.e(812),r.e(8559)]).then(()=>r(45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,p.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,n.Cg)([(0,p.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,n.Cg)([(0,p.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,n.Cg)([(0,p.MZ)({type:String})],b.prototype,"title",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)()],b.prototype,"url",void 0),(0,n.Cg)([(0,p.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,n.Cg)([(0,p.$K)("esri.layers.Layer")],b)},7656(e,t,r){r.r(t),r.d(t,{default:()=>B});var n=r(32198),i=r(56507),s=r(7762),a=r(49186),o=r(81583),l=r(34727),u=r(25728),d=r(17676),c=r(91429),p=r(78888),y=r(35666),h=r(5443),m=r(83960),f=r(21325),g=r(4146),b=r(52136),v=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),A=r(54310),O=r(25036),I=r(91921),Z=r(82935),T=r(10873),D=r(69622),E=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var P=r(63389);const j={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let N=class extends D.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,P.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(j[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),n=(0,E.mA)(r,t.definitionExpression);return null!=n&&(e[t.id]=n),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,n=t=>{t.visible&&(0===r||(0,m.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(n):e.unshift(t))};t?.forEach(n);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,r)=>e[r]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"dynamicLayers",null),(0,n.Cg)([(0,c.MZ)()],N.prototype,"floors",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"hasDynamicLayers",null),(0,n.Cg)([(0,c.MZ)()],N.prototype,"layer",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"layers",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"layerDefs",null),(0,n.Cg)([(0,c.MZ)({type:Number})],N.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"version",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"visibleSublayers",null),N=(0,n.Cg)([(0,c.$K)("esri.layers.support.ExportImageParameters")],N);var k=r(33446),J=r(15775),U=r(91908),F=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let q=class extends((0,S.dM)((0,Z.e)((0,O.j)((0,I.I)((0,v.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,A.J)((0,b.p)((0,C.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new N({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new F.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(390).then(()=>r(10390));switch(e){case 0:return i(this,t);case 1:return s(this,n,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:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,y.aB)(n.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,P.Zx)(i,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,P.Zx)(i,e.sublayers,(0,y.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...n,minimumWritableOrigin:o};let d=s||this.hasVisibleLayersForOrigin(a);i.forEach(e=>{const t=e.write({},u);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=n?.floors??null,this._exportImageParameters.scale=n?.scale??(0,m.X_)({extent:e,width:t})*i;const s=this._exportImageParameters.toJSON(),a=!n?.rotation||this.version<10.3?{}:{rotation:-n.rotation},o=e?.spatialReference,u=(0,f.YX)(o);let d=this._exportImageParameters.scale/(0,m.X_)({extent:e,width:t});d=(0,l.Sp)(d,i)?i:d,s.dpi*=d;const c={};if(n?.timeExtent){const{start:e,end:t}=n.timeExtent.toJSON();c.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(c.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...c}}async fetchImage(e,t,r,n){const{data:i}=await this._fetchImage("image",e,t,r,n);return i}async fetchImageBitmap(e,t,r,n){const{data:i,url:s}=await this._fetchImage("blob",e,t,r,n);return(0,k.mn)(i,s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,i.A)(this.url,t),{extent:n,fullExtent:s,timeExtent:a}=r,o=n||s;return{fullExtent:o&&h.A.fromJSON(o),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,n,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,n,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,i.A)(l,o);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,n.Cg)([(0,c.MZ)((0,R.P6)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"dpi",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"imageFormat",void 0),(0,n.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,n.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,c.MZ)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)((0,R.P6)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(J.A),json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.K)("sublayers",{layers:{type:[J.A]},visibleLayers:{type:[p.jz]}})],q.prototype,"writeSublayers",null),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],q.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)(T.OZ)],q.prototype,"url",void 0),q=(0,n.Cg)([(0,c.$K)("esri.layers.MapImageLayer")],q);const B=q},82935(e,t,r){var n=r(32198),i=r(91429),s=r(30524),a=r(96184),o=r(73133),l=r(79677),u=r(10184),d=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=o.j.fromJSON(r.timeOffsetUnits);return n&&i?new u.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>O,BR:()=>A,p2:()=>M,qd:()=>I,wI:()=>x,G$:()=>T,$x:()=>Z,Ov:()=>v,cM:()=>p,UC:()=>y,Qz:()=>h,OP:()=>D,TU:()=>b,F2:()=>m,XX:()=>g,Qi:()=>w,jy:()=>S});var n=r(70333),i=r(56507),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function c(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function p(e){return c(e,"knowledge-graph")&&"layers"in e}function y(e){return c(e,"knowledge-graph-sublayer")}function h(e){return c(e,"link-chart")&&"layers"in e}function m(e){return c(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function S(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function O(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function I(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function T(e){return null}function D(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!D(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var n=r(60694);const i=[];function s(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},79677(e,t,r){r.d(t,{A:()=>c});var n,i=r(32198),s=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),u=r(36005),d=r(43937);let c=class extends s.o{static{n=this}static get allTime(){return p}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,a.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.S1)(s,e,t,r)),null!=o&&(i.end=(0,a.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],c.prototype,"writeEnd",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],c.prototype,"writeStart",null),c=n=(0,i.Cg)([(0,o.$K)("esri.time.TimeExtent")],c);const p=new c,y=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var n=r(32198),i=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n.Cg)([(0,o.$K)("esri.time.TimeInterval")],d)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>u,rb:()=>d,t:()=>c});var n=r(97770),i=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,s="system"){if("unknown"===r)return e;const a=new i.oh((0,n.wj)(s)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"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"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=c(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){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"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){const t=s.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(n)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function c(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>b});var n=r(32198),i=r(56507),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),d=r(17676),c=r(84952),p=r(91429),y=r(5443),h=r(16930),m=r(92602),f=r(79677);let g=0,b=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,p.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,n.Cg)([(0,p.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,n.Cg)([(0,p.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,n.Cg)([(0,p.MZ)({type:String})],b.prototype,"title",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)()],b.prototype,"url",void 0),(0,n.Cg)([(0,p.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,n.Cg)([(0,p.$K)("esri.layers.Layer")],b)},7656(e,t,r){r.r(t),r.d(t,{default:()=>B});var n=r(32198),i=r(56507),s=r(7762),a=r(49186),o=r(81583),l=r(34727),u=r(25728),d=r(17676),c=r(91429),p=r(78888),y=r(35666),h=r(5443),m=r(83960),f=r(21325),g=r(4146),b=r(52136),v=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),A=r(54310),O=r(25036),I=r(91921),Z=r(82935),T=r(10873),D=r(69622),E=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var P=r(63389);const j={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let N=class extends D.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,P.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(j[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),n=(0,E.mA)(r,t.definitionExpression);return null!=n&&(e[t.id]=n),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,n=t=>{t.visible&&(0===r||(0,m.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(n):e.unshift(t))};t?.forEach(n);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,r)=>e[r]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"dynamicLayers",null),(0,n.Cg)([(0,c.MZ)()],N.prototype,"floors",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"hasDynamicLayers",null),(0,n.Cg)([(0,c.MZ)()],N.prototype,"layer",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"layers",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"layerDefs",null),(0,n.Cg)([(0,c.MZ)({type:Number})],N.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"version",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"visibleSublayers",null),N=(0,n.Cg)([(0,c.$K)("esri.layers.support.ExportImageParameters")],N);var k=r(33446),J=r(15775),U=r(91908),F=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let q=class extends((0,S.dM)((0,Z.e)((0,O.j)((0,I.I)((0,v.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,A.J)((0,b.p)((0,C.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new N({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new F.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(390).then(()=>r(10390));switch(e){case 0:return i(this,t);case 1:return s(this,n,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:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,y.aB)(n.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,P.Zx)(i,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,P.Zx)(i,e.sublayers,(0,y.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...n,minimumWritableOrigin:o};let d=s||this.hasVisibleLayersForOrigin(a);i.forEach(e=>{const t=e.write({},u);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=n?.floors??null,this._exportImageParameters.scale=n?.scale??(0,m.X_)({extent:e,width:t})*i;const s=this._exportImageParameters.toJSON(),a=!n?.rotation||this.version<10.3?{}:{rotation:-n.rotation},o=e?.spatialReference,u=(0,f.YX)(o);let d=this._exportImageParameters.scale/(0,m.X_)({extent:e,width:t});d=(0,l.Sp)(d,i)?i:d,s.dpi*=d;const c={};if(n?.timeExtent){const{start:e,end:t}=n.timeExtent.toJSON();c.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(c.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...c}}async fetchImage(e,t,r,n){const{data:i}=await this._fetchImage("image",e,t,r,n);return i}async fetchImageBitmap(e,t,r,n){const{data:i,url:s}=await this._fetchImage("blob",e,t,r,n);return(0,k.mn)(i,s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,i.A)(this.url,t),{extent:n,fullExtent:s,timeExtent:a}=r,o=n||s;return{fullExtent:o&&h.A.fromJSON(o),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,n,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,n,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,i.A)(l,o);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,n.Cg)([(0,c.MZ)((0,R.P6)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"dpi",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"imageFormat",void 0),(0,n.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,n.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,c.MZ)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)((0,R.P6)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,n.Cg)([(0,c.MZ)()],q.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(J.A),json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.K)("sublayers",{layers:{type:[J.A]},visibleLayers:{type:[p.jz]}})],q.prototype,"writeSublayers",null),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],q.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)(T.OZ)],q.prototype,"url",void 0),q=(0,n.Cg)([(0,c.$K)("esri.layers.MapImageLayer")],q);const B=q},82935(e,t,r){var n=r(32198),i=r(91429),s=r(30524),a=r(96184),o=r(73133),l=r(79677),u=r(10184),d=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=o.j.fromJSON(r.timeOffsetUnits);return n&&i?new u.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>O,BR:()=>A,p2:()=>M,qd:()=>I,wI:()=>x,G$:()=>T,$x:()=>Z,Ov:()=>v,cM:()=>p,UC:()=>y,Qz:()=>h,OP:()=>D,TU:()=>b,F2:()=>m,XX:()=>g,Qi:()=>w,jy:()=>S});var n=r(70333),i=r(56507),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function c(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function p(e){return c(e,"knowledge-graph")&&"layers"in e}function y(e){return c(e,"knowledge-graph-sublayer")}function h(e){return c(e,"link-chart")&&"layers"in e}function m(e){return c(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function S(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function O(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function I(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function T(e){return null}function D(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!D(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var n=r(60694);const i=[];function s(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},79677(e,t,r){r.d(t,{A:()=>c});var n,i=r(32198),s=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),u=r(36005),d=r(43937);let c=class extends s.o{static{n=this}static get allTime(){return p}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,a.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.S1)(s,e,t,r)),null!=o&&(i.end=(0,a.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],c.prototype,"writeEnd",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],c.prototype,"writeStart",null),c=n=(0,i.Cg)([(0,o.$K)("esri.time.TimeExtent")],c);const p=new c,y=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var n=r(32198),i=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n.Cg)([(0,o.$K)("esri.time.TimeInterval")],d)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3121],{11006(e,t,r){function n(e,t,r,n,a){i(e,t,r||0,n||e.length-1,a||s)}function i(e,t,r,n,s){for(;n>r;){if(n-r>600){var o=n-r+1,l=t-r+1,c=Math.log(o),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(o-u)/o)*(l-o/2<0?-1:1);i(e,t,Math.max(r,Math.floor(t-l*u/o+h)),Math.min(n,Math.floor(t+(o-l)*u/o+h)),s)}var d=e[t],p=r,y=n;for(a(e,r,t),s(e[n],d)>0&&a(e,r,n);p<y;){for(a(e,p,y),p++,y--;s(e[p],d)<0;)p++;for(;s(e[y],d)>0;)y--}0===s(e[r],d)?a(e,r,y):a(e,++y,n),y<=t&&(r=y+1),t<=y&&(n=y-1)}}function a(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function s(e,t){return e<t?-1:e>t?1:0}r.d(t,{q:()=>n})},40876(e,t,r){r.d(t,{Eq:()=>p,G1:()=>m,Q6:()=>v,TS:()=>a,V6:()=>i,Vm:()=>y,ay:()=>l,c1:()=>g,c4:()=>s,j5:()=>c,lT:()=>h,oW:()=>u,xV:()=>_});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function c(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const o=[0,0,0,1];let l;return a&&(l=s&n,s>>=r,o[3]=i*l/255),l=s&n,s>>=r,o[2]=i*l,l=s&n,s>>=r,o[1]=i*l,l=s&n,s>>=r,o[0]=i*l,o}function u(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?m(e[3]):1,e}function p(e){let t=i(e)?a(e):null;return t??=h(e),t??=u(e),t}function y(e){const t=p(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(e){return f(e,0,1)}function g(e){return Math.round(f(e,0,255))}function f(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const x=1/2.2;function v(e){return e**2.2}function _(e){return e**x}r.d(t,["iw",0,x])},60999(e,t,r){r.d(t,{DZ:()=>y,Ke:()=>p,QA:()=>m,Tj:()=>u,UT:()=>g,aD:()=>x,jJ:()=>c});var n=r(32198),i=r(69622),a=r(97768),s=r(17676),o=r(10107),l=r(64108);function c(e,t,r){return(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function u(e,t,r){return(await(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function h(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 h(await e)}catch(e){return d(e)}}async function y(e){try{return h(await e)}catch(e){return(0,s.QP)(e),d(e)}}function m(e){if(!0===e.ok)return e.value;throw e.error}function g(e,t){return new f(e,t)}let f=class extends i.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,a.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class x{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,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},62885(e,t,r){r.d(t,{H:()=>a,V:()=>i});var n=r(7762);function i(e,t,r=n.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function a(e){return e}},21287(e,t,r){r.d(t,{M5:()=>h,eV:()=>u});var n=r(56507),i=r(49186),a=r(17676),s=r(84952),o=r(26306);let l=null,c=!0;function u(e,t,r,n){if(!t||!r)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(e,t,r)}catch(e){c=!1}const i=function(e,t,r){return r||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),r=l),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function h(e,t){const{arrayBuffer:l,mediaType:c}=await async function(e,t){const r=(0,s.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,o.M)(r.data),mediaType:r.mediaType};const i=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(10820));if(e(l))return n(l,t)}if(u){const{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(l))return n(l,t)}return async function(e,t){const r=window.URL.createObjectURL(e);try{const{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){if(!(0,a.zf)(e))throw new i.A("invalid-image",`Could not fetch requested image at ${r}`);throw e}finally{window.URL.revokeObjectURL(r)}}(new Blob([l],{type:c}),t)}},35522(e,t,r){r.d(t,{$A:()=>I,Bw:()=>a,C:()=>s,Cc:()=>S,DI:()=>w,Io:()=>x,Ln:()=>f,Om:()=>b,Qr:()=>h,Re:()=>c,S8:()=>M,T9:()=>m,WQ:()=>l,Z0:()=>C,_S:()=>p,aI:()=>B,ei:()=>A,fw:()=>E,gL:()=>T,hG:()=>v,hZ:()=>o,hs:()=>g,jk:()=>y,lw:()=>u,m3:()=>_,oW:()=>G,t2:()=>R,tn:()=>d,ze:()=>L});var n=r(51850),i=r(34304);function a(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function c(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function u(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function m(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function g(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function f(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function x(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function _(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function L(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t=e){const r=t[0],n=t[1],i=t[2];let a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,r){const n=t[0],i=t[1],a=t[2],s=r[0],o=r[1],l=r[2];return e[0]=i*l-a*o,e[1]=a*s-n*l,e[2]=n*o-i*s,e}function S(e,t,r,n){const i=t[0],a=t[1],s=t[2];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e[2]=s+n*(r[2]-s),e}function C(e,t,r){const n=t[0],i=t[1],a=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*a+r[12],e[1]=r[1]*n+r[5]*i+r[9]*a+r[13],e[2]=r[2]*n+r[6]*i+r[10]*a+r[14],e}function A(e,t,r){const n=t[0],i=t[1],a=t[2];return e[0]=n*r[0]+i*r[3]+a*r[6],e[1]=n*r[1]+i*r[4]+a*r[7],e[2]=n*r[2]+i*r[5]+a*r[8],e}function T(e,t,r){return E(e,t,r[0],r[1],r[2],r[3])}function E(e,t,r,n,i,a){const s=t[0],o=t[1],l=t[2],c=n*l-i*o,u=i*s-r*l,h=r*o-n*s,d=n*h-i*u,p=i*c-r*h,y=r*u-n*c,m=2*a;return e[0]=s+c*m+2*d,e[1]=o+u*m+2*p,e[2]=l+h*m+2*y,e}const P=(0,n.vt)(),O=(0,n.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function B(e,t){if(e===t)return!0;const r=e[0],n=e[1],a=e[2],s=t[0],o=t[1],l=t[2],c=(0,i.FD)();return Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function G(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],a=r[2]-t[2];let s=n*n+i*i+a*a;return s>0?(s=1/Math.sqrt(s),e[0]=n*s,e[1]=i*s,e[2]=a*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=c,U=u,Z=h,W=x,V=v,Y=a,F=_;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){M(P,e),M(O,t);const r=b(P,O);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,a){const s=1-a,o=s*s,l=a*a,c=o*s,u=3*a*o,h=3*l*s,d=l*a;return e[0]=t[0]*c+r[0]*u+n[0]*h+i[0]*d,e[1]=t[1]*c+r[1]*u+n[1]*h+i[1]*d,e[2]=t[2]*c+r[2]*u+n[2]*h+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:I,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],a=t[2],s=r[0],o=r[1],l=r[2],c=i*l-a*o,u=a*s-n*l,h=n*o-i*s,d=Math.sqrt(c*c+u*u+h*h);return e[0]=c/d,e[1]=u/d,e[2]=h/d,e},direction:G,dist:W,distance:x,div:Z,divide:h,dot:b,equals:B,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,i,a){const s=a*a,o=s*(2*a-3)+1,l=s*(a-2)+a,c=s*(a-1),u=s*(3-2*a);return e[0]=t[0]*o+r[0]*l+n[0]*c+i[0]*u,e[1]=t[1]*o+r[1]*l+n[1]*c+i[1]*u,e[2]=t[2]*o+r[2]*l+n[2]*c+i[2]*u,e},inverse:w,len:Y,length:a,lerp:S,max:m,min:y,mul:U,multiply:u,negate:L,normalize:M,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,a=2*r()-1,s=Math.sqrt(1-a*a)*t;return e[0]=Math.cos(n)*s,e[1]=Math.sin(n)*s,e[2]=a*t,e},rotateX:function(e,t,r,n){const i=[],a=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],a=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],a=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:f,scaleTo:function(e,t){return g(e,e,t/Y(e))},set:o,sign:p,sqrDist:V,sqrLen:F,squaredDistance:v,squaredLength:_,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:c,transformMat3:A,transformMat4:C,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:T,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,Y,"jb",0,k,"lo",0,V,"uE",0,F])},75503(e,t,r){r.d(t,{wq:()=>o});var n=r(4576),i=r(21818),a=(r(44208),r(15142)),s=r(11006);class o{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(),L.prune(),w.prune(),M.prune(),b.prune()}all(e){l(this._data,e)}search(e,t){let r=this._data;const n=this._toBBox;if(v(e,r))for(L.clear();r;){for(let i=0,a=r.children.length;i<a;i++){const a=r.children[i],s=r.leaf?n(a):a;v(e,s)&&(r.leaf?t(a):x(e,s)?l(a,t):L.push(a))}r=L.pop()}}collides(e){let t=this._data;const r=this._toBBox;if(!v(e,t))return!1;for(L.clear();t;){for(let n=0,i=t.children.length;n<i;n++){const i=t.children[n],a=t.leaf?r(i):i;if(v(e,a)){if(t.leaf||x(e,a))return!0;L.push(i)}}t=L.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;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,r=this._data,a=null,s=0,o=!1;const l=this._toBBox(e);for(M.clear(),b.clear();r||M.length>0;){if(r||(r=M.pop(),a=M.data[M.length-1],s=b.pop()??0,o=!0),r.leaf&&(t=(0,n.qh)(r.children,(0,i.z)(e),r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),M.push(r),this._condense(M),this;o||r.leaf||!x(r,l)?a?(s++,r=a.children[s],o=!1):r=null:(M.push(r),b.push(s),s=0,a=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,r,n){const i=r-t+1;let a=this._maxEntries;if(i<=a){const n=new C(e.slice(t,r+1));return c(n,this._toBBox),n}n||(n=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/a**(n-1)));const s=new A([]);s.height=n;const o=Math.ceil(i/a),l=o*Math.ceil(Math.sqrt(a));_(e,t,r,l,this._compareMinX);for(let i=t;i<=r;i+=l){const t=Math.min(i+l-1,r);_(e,i,t,o,this._compareMinY);for(let r=i;r<=t;r+=o){const i=Math.min(r+o-1,t);s.children.push(this._build(e,r,i,n-1))}}return c(s,this._toBBox),s}_insert(e,t,r){const n=this._toBBox,i=r?e:n(e);M.clear();const a=function(e,t,r,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==r;){let r,n=1/0,i=1/0;for(let a=0,s=t.children.length;a<s;a++){const s=t.children[a],o=y(s),l=g(e,s)-o;l<i?(i=l,n=o<n?o:n,r=s):l===i&&o<n&&(n=o,r=s)}t=r||t.children[0]}return t}(i,this._data,t,M);for(a.children.push(e),h(a,i);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,r){for(let n=r;n>=0;n--)h(t.data[n],e)}(i,M,t)}_split(e,t){const r=e.data[t],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);const a=this._chooseSplitIndex(r,i,n);if(!a)return;const s=r.children.splice(a,r.children.length-a),o=r.leaf?new C(s):new A(s);o.height=r.height,c(r,this._toBBox),c(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(r,o)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let n,i,a;n=i=1/0;for(let s=t;s<=r-t;s++){const t=u(e,0,s,this._toBBox),o=u(e,s,r,this._toBBox),l=f(t,o),c=y(t)+y(o);l<n?(n=l,a=s,i=c<i?c:i):l===n&&c<i&&(i=c,a=s)}return a}_chooseSplitAxis(e,t,r){const n=e.leaf?this._compareMinX:d,i=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,i)&&e.children.sort(n)}_allDistMargin(e,t,r,n){e.children.sort(n);const i=this._toBBox,a=u(e,0,t,i),s=u(e,r-t,r,i);let o=m(a)+m(s);for(let n=t;n<r-t;n++){const t=e.children[n];h(a,e.leaf?i(t):t),o+=m(a)}for(let n=r-t-1;n>=t;n--){const t=e.children[n];h(s,e.leaf?i(t):t),o+=m(s)}return o}_condense(e){for(let t=e.length-1;t>=0;t--){const r=e.data[t];if(0===r.children.length)if(t>0){const i=e.data[t-1],a=i.children;a.splice((0,n.qh)(a,r,a.length,i.indexHint),1)}else this.clear();else c(r,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 r=e;for(w.clear();r;){if(!0===r.leaf)for(const e of r.children)t((0,i.z)(e));else w.pushArray(r.children);r=w.pop()??null}}function c(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,n,i){i||(i=new C([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a,s=t;s<r;s++)a=e.children[s],h(i,e.leaf?n(a):a);return i}function h(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 y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(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 f(e,t){const r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),a=Math.min(e.maxY,t.maxY);return Math.max(0,i-r)*Math.max(0,a-n)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function v(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,r,n,i){const a=[t,r];for(;a.length;){const t=a.pop(),r=a.pop();if(t-r<=n)continue;const o=r+Math.ceil((t-r)/n/2)*n;(0,s.q)(e,o,r,t,i),a.push(r,o,o,t)}}const L=new a.A,w=new a.A,M=new a.A,b=new a.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class C extends S{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends S{constructor(e){super(),this.children=e,this.leaf=!1}}},16494(e,t,r){var n=r(76361);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),a=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new n.I({whiteList:i,onTagAttr:(e,t,r)=>{const n=`${t}="${r}"`;if(a.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),o=new n.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);r.d(t,["Nd",0,o,"W5",0,s])},90629(e,t,r){r.d(t,{Lz:()=>i,PN:()=>a,cr:()=>s,gs:()=>l,r_:()=>c,tc:()=>o}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function a(e){return e?72*e/96:0}function s(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===n?a(r):r;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}},13069(e,t,r){r.d(t,{AG:()=>o,lk:()=>i,vD:()=>s,yS:()=>a});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function a(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function o(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},80754(e,t,r){r.d(t,{kS:()=>c,kd:()=>l});var n=r(82799),i=r(16930),a=r(60408),s=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){if((0,s.Ed)(e))for(const r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,s.aO)(e)){const[r,n]=e.c;r[0]+=t,n[0]+=t;continue}if((0,s.FG)(e)){const[r,n]=e.a;r[0]+=t,n[0]+=t;continue}if((0,s.n1)(e)){const[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},89056(e,t,r){r.d(t,{b3:()=>h,jZ:()=>u});var n=r(12195),i=r(19419),a=r(537),s=r(95108),o=r(60408),l=r(80754),c=r(21325);function u(e){return d(e,!0)}function h(e){return d(e,!1)}function d(e,t){if(null==e)return null;const r=e.spatialReference,i=(0,c.Vp)(r),s=(0,n.W)(e)?e.toJSON():e;if(!i)return s;const u=(0,c.K8)(r)?102100:4326,h=l.j7[u].maxX,d=l.j7[u].minX;if((0,o.fT)(s))return y(s,h,d);if((0,o.U9)(s))return s.points=s.points.map(e=>y(e,h,d)),s;if((0,o.ZC)(s))return p(s,i);if((0,o.Bi)(s)||(0,o.Rg)(s)){const e=(0,a.Rg)(_,s),r={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,l.kd)(r.xmin,d)*(2*h),i=0===n?s:(0,l.kS)(s,n);return r.xmin+=n,r.xmax+=n,r.xmax>h?x(i,h,t):r.xmin<d?x(i,d,t):i}return s}function p(e,t){if(!t)return e;const r=function(e,t){const r=[],{ymin:n,ymax:i,xmin:a,xmax:s}=e,o=e.xmax-e.xmin,[l,c]=t.valid,{x:u,frameId:h}=m(e.xmin,t),{x:d,frameId:p}=m(e.xmax,t),y=u===d&&o>0;if(o>2*c){const e={xmin:a<s?u:d,ymin:n,xmax:c,ymax:i},t={xmin:l,ymin:n,xmax:a<s?d:u,ymax:i},o={xmin:0,ymin:n,xmax:c,ymax:i},y={xmin:l,ymin:n,xmax:0,ymax:i},m=[],f=[];g(e,o)&&m.push(h),g(e,y)&&f.push(h),g(t,o)&&m.push(p),g(t,y)&&f.push(p);for(let e=h+1;e<p;e++)m.push(e),f.push(e);r.push(new v(e,[h]),new v(t,[p]),new v(o,m),new v(y,f))}else u>d||y?r.push(new v({xmin:u,ymin:n,xmax:c,ymax:i},[h]),new v({xmin:l,ymin:n,xmax:d,ymax:i},[p])):r.push(new v({xmin:u,ymin:n,xmax:d,ymax:i},[h]));return r}(e,t).map(e=>e.extent);return r.length<2?r[0]||e:r.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:r.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function y(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,l.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,l.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,l.kd)(n,t);e.x+=r*(-2*t)}else if(n<r){const t=(0,l.kd)(n,r);e.x+=t*(-2*r)}}return e}function m(e,t){const[r,n]=t.valid,i=2*n;let a,s=0;return e>n?(a=Math.ceil(Math.abs(e-n)/i),e-=a*i,s=a):e<r&&(a=Math.ceil(Math.abs(e-r)/i),e+=a*i,s=-a),{x:e,frameId:s}}function g(e,t){const{xmin:r,ymin:n,xmax:i,ymax:a}=t;return f(e,r,n)&&f(e,r,a)&&f(e,i,a)&&f(e,i,n)}function f(e,t,r){return t>=e.xmin&&t<=e.xmax&&r>=e.ymin&&r<=e.ymax}function x(e,t,r=!0){const n=!(0,o.Rg)(e);if(n&&(0,s.m3)(e),r)return(new L).cut(e,t);const i=n?e.rings:e.paths,a=n?4:2,l=i.length,c=-2*t;for(let e=0;e<l;e++){const t=i[e];if(t&&t.length>=a){const e=[];for(const[r,...n]of t)e.push([r+c,...n]);i.push(e)}}return n?e.rings=i:e.paths=i,e}class v{constructor(e,t){this.extent=e,this.frameIds=t}}const _=(0,i.vt)();class L{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let r;if(this._xCut=t,e.rings)this._closed=!0,r=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,r=e.paths,this._minPts=2}for(const e of r){if(!e||e.length<this._minPts)continue;let t=!0;for(const r of e)t?(this.moveTo(r),t=!1):this.lineTo(r);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),r=[];for(const e of this._linesIn)e&&e.length>=this._minPts&&r.push(e);const n=-2*this._xCut;for(const e of this._linesOut)if(e&&e.length>=this._minPts){for(const t of e)t[0]+=n;r.push(e)}return this._closed?e.rings=r:e.paths=r,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){const t=this._side(e[0]);if(t*this._prevSide===-1){const r=this._intersect(this._prevPt,e);this._lineTo(r,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){const e=this._firstPt,t=this._prevPt;e[0]===t[0]&&e[1]===t[1]||this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(w(e,t<=0?e[0]:this._xCut)),this._lineOut.push(w(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(M(this._lineIn,e,t<=0?e[0]:this._xCut),M(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){const t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:e>this._xCut?1:0}_intersect(e,t){const r=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+r*(t[1]-e[1])],i=Math.min(e.length,t.length);for(let a=2;a<i;a++)n.push(e[a]+r*(t[a]-e[a]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(e,t){const r=e.slice();return r[0]=t,r}function M(e,t,r){const n=e.length;n>1&&e[n-1][0]===r&&e[n-2][0]===r?e[n-1]=w(t,r):e.push(w(t,r))}},99557(e,t,r){r.r(t),r.d(t,{default:()=>Te});var n=r(32198),i=r(7762),a=r(49186),s=r(53966),o=r(25728),l=r(17676),c=r(91429),u=r(16930),h=r(4146),d=r(63074),p=r(34287),y=r(8303),m=r(25036),g=r(48237),f=r(56507),x=r(21287),v=r(84952),_=r(13069),L=r(92474),w=r(64108);let M=0;const b=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:M++})}};return r=(0,n.Cg)([(0,w.$)("esri.core.NumericIdentifiable")],r),r};var I=r(90629),S=r(35666),C=r(5443),A=r(86738),T=r(21325),E=r(56560),P=r(69540),O=r(83529),R=r(29242),B=r(37585),G=r(48163),k=r(39829),U=r(99917),Z=r(33905);const W=(0,G.vt)();let V=class extends((0,Z.L)(P.Pw)){constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:r,bottomRight:n}=this;if(null==e||null==t||null==r||null==n)return null;const i=e.spatialReference;return t=this.projectOrWarn(t,i),r=this.projectOrWarn(r,i),n=this.projectOrWarn(n,i),null==t||null==r||null==n?null:new k.A({rings:[[[r.x,r.y],[e.x,e.y],[t.x,t.y],[n.x,n.y],[r.x,r.y]]],spatialReference:i})}set coords(e){const{topLeft:t}=this;if(null==t)return;const r=t.spatialReference;if(null==(e=this.projectOrWarn(e,r)))return;const{rings:[[n,i,a,s]]}=e;this.bottomLeft=new A.A({x:n[0],y:n[1],spatialReference:r}),this.topLeft=new A.A({x:i[0],y:i[1],spatialReference:r}),this.topRight=new A.A({x:a[0],y:a[1],spatialReference:r}),this.bottomRight=new A.A({x:s[0],y:s[1],spatialReference:r})}toSourceNormalized(e){const{topLeft:t,topRight:r,bottomRight:n,bottomLeft:i}=this;if(null==e||null==t||null==r||null==n||null==i)return null;const a=t.spatialReference;e=e.normalize();const s=(0,U.projectOrLoad)(e,a).geometry;if(null==s)return null;(0,B.hZ)(W,s.x,s.y);const o=(0,O.O)((0,R.vt)(),[t.x,t.y,i.x,i.y,r.x,r.y,n.x,n.y],[0,0,0,1,1,0,1,1]);return(0,O.W)(W,W,o),(0,I.tc)(W[0],W[1])}};(0,n.Cg)([(0,c.MZ)({clonable:!1})],V.prototype,"coords",null),(0,n.Cg)([(0,c.MZ)({type:A.A})],V.prototype,"bottomLeft",void 0),(0,n.Cg)([(0,c.MZ)({type:A.A})],V.prototype,"bottomRight",void 0),(0,n.Cg)([(0,c.MZ)({type:A.A})],V.prototype,"topLeft",void 0),(0,n.Cg)([(0,c.MZ)({type:A.A})],V.prototype,"topRight",void 0),V=(0,n.Cg)([(0,c.$K)("esri.layers.support.CornersGeoreference")],V);const Y=V;var F=r(34727),H=r(34304);let j=class extends((0,Z.L)(P.Pw)){constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:i}=this.extent;let a;if(this.rotation){const{x:i,y:s}=this.extent.center,o=D(i,s,this.rotation);a=[o(e,t),o(e,n),o(r,n),o(r,t)],a.push(a[0])}else a=[[e,t],[e,n],[r,n],[r,t],[e,t]];return new k.A({rings:[a],spatialReference:i})}set coords(e){if(null==e||null==this.extent)return;const t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;const{rings:[[r,n,i]],extent:{center:{x:a,y:s}}}=e,o=(0,F.KJ)(Math.PI/2-Math.atan2(n[1]-r[1],n[0]-r[0])),l=D(a,s,-o),[c,u]=l(r[0],r[1]),[h,d]=l(i[0],i[1]);this.extent=new C.A({xmin:c,ymin:u,xmax:h,ymax:d,spatialReference:t}),this.rotation=o}toSourceNormalized(e){const{extent:t,rotation:r}=this;if(null==e||null==t)return null;const{xmin:n,ymin:i,xmax:a,ymax:s,center:o,spatialReference:l}=t;e=e.normalize();const c=(0,U.projectOrLoad)(e,l).geometry;if(null==c)return null;let u=c.x,h=c.y;return r&&([u,h]=D(o.x,o.y,-r)(u,h)),(0,I.tc)((0,F.hs)(u,n,a,0,1),(0,F.hs)(h,s,i,0,1))}};function D(e,t,r){const n=(0,H.DF)(r),i=Math.cos(n),a=Math.sin(n);return(r,n)=>[i*(r-e)+a*(n-t)+e,i*(n-t)-a*(r-e)+t]}(0,n.Cg)([(0,c.MZ)({clonable:!1})],j.prototype,"coords",null),(0,n.Cg)([(0,c.MZ)({type:C.A})],j.prototype,"extent",void 0),(0,n.Cg)([(0,c.MZ)({type:Number})],j.prototype,"rotation",void 0),j=(0,n.Cg)([(0,c.$K)("esri.layers.support.ExtentAndRotationGeoreference")],j);const X=j;function q(e,t){const r=(0,S.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=r&&r>3}function N(e,t,r){return{enabled:!q(r?.layer,r?.origin),ignoreOrigin:!0}}const z={json:{name:"url",type:String,write:{overridePolicy:N}}},$={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:N}}},K={types:{key:"type",base:null,typeMap:{"control-points":g.A,corners:Y,"extent-and-rotation":X}},json:{types:{key:"type",base:null,typeMap:{"control-points":g.A}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};var J=r(59923),Q=r(36005),ee=r(43937);let te=class extends(b((0,o.M)(L.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return g.A.fromJSON(e)}writeGeoreference(e,t,r,n){const i=n?.resources?.pendingOperations,a=()=>{const i=function(e,t,r){if(!e||"control-points"===e.type)return e;const{coords:n}=e;if(5!==n?.rings[0]?.length)return null;const[i,a,s,o]=n.rings[0],{spatialReference:l}=n;return new g.A({controlPoints:[new E.A({mapPoint:new A.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,I.tc)(0,r)}),new E.A({mapPoint:new A.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,I.tc)(0,0)}),new E.A({mapPoint:new A.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,I.tc)(t,0)}),new E.A({mapPoint:new A.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,I.tc)(t,r)})],width:t,height:r})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==e.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==i.controlPoints?.length)return void(0,J.qt)(n,"ControlPointsGeoreference.controlPoints","only 'control-points' georeference with 4 control points may be persisted.");t[r]=i.write({},n)}};if("control-points"!==e.type&&!this.loaded&&i)return t[r]={},void i.push(this.load().then(a));a()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){const{georeference:t,contentWidth:r,contentHeight:n}=this;if(null==e||null==t||0===r||0===n)return null;const i=t.toSourceNormalized(e);return null==i?null:(i.x*=r,i.y*=n,i)}};(0,n.Cg)([(0,c.MZ)(K)],te.prototype,"georeference",void 0),(0,n.Cg)([(0,Q.w)("georeference")],te.prototype,"readGeoreference",null),(0,n.Cg)([(0,ee.K)("georeference")],te.prototype,"writeGeoreference",null),(0,n.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],te.prototype,"opacity",void 0),te=(0,n.Cg)([(0,c.$K)("esri.layers.support.MediaElementBase")],te);var re=r(85648);const ne=Symbol("ImageElementInstance"),ie=Symbol("VideoElementInstance");function ae(e){return null!=e&&"object"==typeof e&&ne in e}function se(e){return ae(e)||function(e){return null!=e&&"object"==typeof e&&ie in e}(e)}var oe,le=r(97159);let ce=class extends te{static{oe=ne}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[oe]=!0,this.image=null}load(){const e=this.image;if("string"==typeof e){const t=(0,x.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){const t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new a.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,r){return(0,le.f)(t.url,r)}writeImage(e,t,r,n){if(null==e)return;const i=n?.portalItem,a=n?.resources;if(!i||!a)return void("string"==typeof e&&(t[r]=(0,le.t)(e,n)));const s=function(e){return"string"==typeof e&&!(0,v.DB)(e)&&!(0,v.w8)(e)}(e)?e:null;if(s){if(null==(0,le.i)(s))return void(t[r]=s);const e=(0,le.t)(s,{...n,verifyItemRelativeUrls:n?.verifyItemRelativeUrls?{writtenUrls:n.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(i&&e&&!(0,v.oP)(e))return a.toKeep.push({resource:i.resourceFromPath(e),compress:!1}),void(t[r]=e)}t[r]="<pending>",a.pendingOperations.push(async function(e){return"string"==typeof e?(0,v.DB)(e)?(0,v.N9)(e):(await(0,f.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;const t=e instanceof HTMLImageElement?e.naturalWidth:e.width,r=e instanceof HTMLImageElement?e.naturalHeight:e.height,n=document.createElement("canvas"),i=n.getContext("2d");return n.width=t,n.height=r,e instanceof HTMLImageElement?i.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&i.putImageData(e,0,0),n}(e).toBlob(t))}(e).then(e=>{const n=function(e,t){const r=(0,_.lk)(),n=`${(0,v.fj)("media",r)}.${(0,re.n)({type:"blob",blob:e})}`;return t.resourceFromPath(n)}(e,i);t[r]=n.itemRelativeUrl,a.toAdd.push({resource:n,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,n.Cg)([(0,c.MZ)()],ce.prototype,"animationOptions",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],ce.prototype,"content",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],ce.prototype,"contentWidth",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],ce.prototype,"contentHeight",null),(0,n.Cg)([(0,c.MZ)(z)],ce.prototype,"image",void 0),(0,n.Cg)([(0,Q.w)("image",["url"])],ce.prototype,"readImage",null),(0,n.Cg)([(0,ee.K)("image")],ce.prototype,"writeImage",null),(0,n.Cg)([(0,c.MZ)($)],ce.prototype,"type",void 0),ce=(0,n.Cg)([(0,c.$K)("esri.layers.support.ImageElement")],ce);var ue=r(62885),he=r(65529),de=r(61893),pe=r(36708),ye=r(19419),me=r(12176),ge=r(6518),fe=r(69622),xe=r(89056);let ve=class extends fe.A{constructor(e){super(e)}get bounds(){const e=this.coords;return null==e?.extent?null:(0,ye.VY)(e.extent)}get coords(){const e=this.element.georeference?.coords;return(0,U.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return k.A.fromJSON((0,xe.jZ)(this.coords))}get normalizedBounds(){const e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,ye.VY)(e):null}};(0,n.Cg)([(0,c.MZ)()],ve.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)()],ve.prototype,"element",void 0),(0,n.Cg)([(0,c.MZ)()],ve.prototype,"bounds",null),(0,n.Cg)([(0,c.MZ)()],ve.prototype,"coords",null),(0,n.Cg)([(0,c.MZ)()],ve.prototype,"normalizedCoords",null),(0,n.Cg)([(0,c.MZ)()],ve.prototype,"normalizedBounds",null),ve=(0,n.Cg)([(0,c.$K)("esri.layers.support.MediaElementView")],ve);var _e,Le=r(16494),we=r(38969);const Me=Symbol("canplay");let be=class extends te{static{_e=ie}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[_e]=!0}load(){const e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{const t=document.createElement("video");return t.src=Le.W5.sanitizeUrl((0,v.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new a.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;const t=(0,F.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,r,n){if(!e)return void(n?.messages&&n.messages.push(new a.A("video-element:unsupported-video","video source is missing")));const i=function(e){return"string"==typeof e&&!(0,v.DB)(e)&&!(0,v.w8)(e)}(e)?e:null;if(!i)return void(n?.messages&&n.messages.push(new a.A("video-element:unsupported-video","video source must be an absolute url")));!(0,v.oP)(i)&&n?.blockedRelativeUrls&&n.blockedRelativeUrls.push(i);const s=(0,v.s2)(i);(0,le.i)(s)?n?.messages&&n.messages.push(new a.A("video-element:unsupported-video","video source cannot be an item resource")):t[r]=s}async _preProcessVideoUrl(e){if((0,v.zs)(e))return(0,v.yM)(e);try{return await(0,f.A)(e,{method:"head"}),e}catch{try{return(0,v.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,v.w8)(e.src)||(e.src=e.src));try{await(0,we.i)(e,e=>this.addHandles(e,Me)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(Me)}}};(0,n.Cg)([(0,c.MZ)()],be.prototype,"autoplay",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],be.prototype,"content",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],be.prototype,"contentWidth",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],be.prototype,"contentHeight",null),(0,n.Cg)([(0,c.MZ)({type:Number})],be.prototype,"currentTime",null),(0,n.Cg)([(0,c.MZ)({type:Number})],be.prototype,"duration",null),(0,n.Cg)([(0,c.MZ)(z)],be.prototype,"video",null),(0,n.Cg)([(0,ee.K)("video")],be.prototype,"writeVideo",null),(0,n.Cg)([(0,c.MZ)($)],be.prototype,"type",void 0),be=(0,n.Cg)([(0,c.$K)("esri.layers.support.VideoElement")],be);const Ie={key:"type",defaultKeyValue:"image",base:te,typeMap:{image:ce,video:be}},Se=i.A.ofType(Ie);let Ce=class extends((0,L.WV)((0,de.g)(he.nJ))){constructor(e){super(e),this._index=new ge.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(const t of e.removed){const e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}const{spatialReference:t}=this;for(const r of e.added){if(this._elementViewsMap.get(r))continue;const e=new ve({spatialReference:t,element:r});this._elementViewsMap.set(r,e);const n=(0,pe.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(n,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Se}async load(e){if((0,l.Te)(e),!this.spatialReference){const e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:u.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}get elements(){return this._get("elements")}set elements(e){this._set("elements",(0,ue.V)(e,this._get("elements"),Se))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const e=this._index.fullBounds;return null==e?null:new C.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):s.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,U.initializeProjection)(e.spatialReference,this.spatialReference,null,t);const r=(0,T.aI)(e.spatialReference,this.spatialReference)?e:(0,U.project)(e,this.spatialReference);if(!r)return[];const n=r.normalize(),i=[];for(const e of n)this._index.forEachInBounds((0,ye.VY)(e),({normalizedCoords:t,element:r})=>{null!=t&&(0,me.fA)(e,t)&&i.push(r)});return i.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),i}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){const r=e.normalizedBounds,n=this._index.has(e),i=null!=r;this._index.delete(e),i&&this._index.set(e,r),this.notifyChange("fullExtent"),t||(n!==i?this.emit("refresh"):this.emit("change",{element:e.element}))}};(0,n.Cg)([(0,c.MZ)()],Ce.prototype,"elements",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],Ce.prototype,"fullExtent",null),(0,n.Cg)([(0,c.MZ)()],Ce.prototype,"spatialReference",null),Ce=(0,n.Cg)([(0,c.$K)("esri.layers.support.LocalMediaElementSource")],Ce);let Ae=class extends((0,d.dM)((0,m.j)((0,p.q)((0,y.A)((0,o.M)(h.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.sg)(async(e,t,n)=>{const{save:i,saveAs:a}=await r.e(3561).then(()=>r(63561));switch(e){case 0:return i(this,t);case 1:return a(this,n,t)}}),this.source=new Ce}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new a.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const r=this._getSourceOverride(t,this.georeference);r&&(this.setAtOrigin("source",r,"web-map"),this.setAtOrigin("source",r,"web-scene"),t=r);const n=se(t)?new Ce({elements:new i.A([t])}):t;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference),await n.load(e),this.spatialReference=n.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",e):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(e){return e?Array.isArray(e)?new Ce({elements:new i.A(e)}):e instanceof i.A?new Ce({elements:e}):e:null}readSource(e,t,r){if("itemId"in t&&t.itemId)return;const n=this._createSource(t);return n?.read(t,r),n}writeSource(e,t,r,n){if(e&&e instanceof Ce){const t=e.elements.length;if(1!==t)return void(n?.messages&&n.messages.push(new a.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}se(e)?e.write(t,n):n?.messages&&(e?n.messages.push(new a.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):n.messages.push(new a.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new ce;case"video":return new be}return null}_getSourceOverride(e,t){if(se(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const r=e.toJSON(),n=this._createSource(r);return n.read({...r},{origin:"portal-item"}),n.read({georeference:t},{origin:"web-map"}),n.read({georeference:t},{origin:"web-scene"}),n}return null}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],Ae.prototype,"effectiveSource",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],Ae.prototype,"georeference",void 0),(0,n.Cg)([(0,Q.w)("web-document","georeference")],Ae.prototype,"readGeoreference",null),(0,n.Cg)([(0,c.MZ)({type:String})],Ae.prototype,"copyright",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],Ae.prototype,"fullExtent",null),(0,n.Cg)([(0,c.MZ)({type:["MediaLayer"]})],Ae.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide"]})],Ae.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:g.A}},overridePolicy(e,t,r){return{enabled:!0,allowNull:!1,ignoreOrigin:q(this,r?.origin)&&se(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],Ae.prototype,"source",null),(0,n.Cg)([(0,c.wg)("source")],Ae.prototype,"castSource",null),(0,n.Cg)([(0,Q.w)("source",["url"])],Ae.prototype,"readSource",null),(0,n.Cg)([(0,ee.K)("source")],Ae.prototype,"writeSource",null),(0,n.Cg)([(0,c.MZ)({type:u.A})],Ae.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],Ae.prototype,"type",void 0),Ae=(0,n.Cg)([(0,c.$K)("esri.layers.MediaLayer")],Ae);const Te=Ae},6518(e,t,r){r.d(t,{F:()=>o});var n=r(44208),i=r(75503),a=r(19419);const s={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,n.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((r,n)=>{e[t++]=n}),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,a.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,r){(function(e){s.minX=e[0],s.minY=e[1],s.maxX=e[2],s.maxY=e[3]})(t),e.search(s,r)}(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()))}}},34287(e,t,r){var n=r(32198),i=r(49186),a=r(84952),s=r(91429),o=r(78888),l=r(89317),c=r(45917),u=r(49422),h=r(10873),d=r(6345),p=r(79677),y=r(59923),m=r(36005),g=r(43937);r.d(t,["q",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,u.R)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?p.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,n){e&&"tables"!==n.layerContainerType&&(e.isEmpty?n?.messages&&n.messages.push(new i.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,c.t)(this,e,t=>super.read(e,t),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin&&!(0,d.Bu)(t,this.operationalLayerType,this.type))return(0,y.U4)(t,this),null;const r=super.write(e,{...t,layer:this}),n=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof i.A&&"web-document-write:property-required"===e.name).length;return(0,a.w8)(r?.url)?(t?.messages?.push(new i.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&n?null:r}beforeSave(){}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],r.prototype,"id",void 0),(0,n.Cg)([(0,m.w)("id",["id"])],r.prototype,"readId",null),(0,n.Cg)([(0,s.MZ)(h.C1)],r.prototype,"listMode",void 0),(0,n.Cg)([(0,g.K)("listMode")],r.prototype,"writeListMode",null),(0,n.Cg)([(0,s.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:l.K,isRequired:!0}}}}})],r.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,g.K)("operationalLayerType")],r.prototype,"writeOperationalLayerType",null),(0,n.Cg)([(0,s.MZ)(h.ke)],r.prototype,"opacity",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,readOnly:!1})],r.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],r.prototype,"title",void 0),(0,n.Cg)([(0,g.K)("title"),(0,g.K)(["web-scene"],"title")],r.prototype,"writeTitle",null),(0,n.Cg)([(0,s.MZ)({type:p.A,json:{origins:{"web-scene":{write:{layerContainerTypes:l.K}}}}})],r.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,m.w)("visibilityTimeExtent")],r.prototype,"readVisibilityTimeExtent",null),(0,n.Cg)([(0,g.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],r.prototype,"writeVisibilityTimeExtent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:l.K}}})],r.prototype,"visible",void 0),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.OperationalLayer")],r),r}])},8303(e,t,r){var n=r(32198),i=r(92602),a=r(70333),s=r(56507),o=r(60999),l=r(49186),c=r(36563),u=r(53966),h=r(97768),d=r(17676),p=r(84952),y=r(91429),m=r(77548),g=r(20655),f=r(80812),x=r(41318),v=r(10407),_=r(36005),L=r(43937);const w={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const n=t?.signal?null:new AbortController;try{const{reload:i}=await r.e(1204).then(()=>r(41204));return n&&this.addHandles((0,c.rE)(n),"reloadFromPortal"),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:n.signal})}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{n&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!a.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let s,o;if(i)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,p.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(a.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,c=!1,u=!1;if(!o)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(i?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?a.id?.findCredential(this.url):null;if(!t)return!0;const r=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=a.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=g.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(n))return i.user;const l=`${n}/community/self`,c=null!=e?e.signal:null,u=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?x.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&n&&!(0,p.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,y.MZ)({type:f.default})],M.prototype,"portalItem",null),(0,n.Cg)([(0,_.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,n.Cg)([(0,L.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,n.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,n.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],M),M}])},6345(e,t,r){r.d(t,{Bu:()=>v,VH:()=>x});var n=r(44208);const i={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},a={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,n.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},o={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},c={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},u={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},h={ArcGISFeatureLayer:"FeatureLayer"},d={...a,LinkChartLayer:"LinkChartLayer"},p=i,y=s,m={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},g=s;function f(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return o;case"basemap-ground-layers":return l;case"ground":return c;case"tables":return h;default:return u}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return p;case"tables":return y;default:return d}default:switch(e.layerContainerType){case"basemap-base-layers":return i;case"tables":return s;case"ground":case"basemap-ground-layers":return;default:return a}}}function x(e,t){if(!t)return"UnknownLayer";if("DefaultTileLayer"===t){let t="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":t="TileLayer";break;case"ground":t="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":t="TileLayer"}return t}return f(e)?.[t]??"UnknownLayer"}function v(e,t,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(t){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1}const n=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return g;default:return m}return f(e)}(e)?.[t];return null!=n&&"UnknownLayer"!==n&&"UnsupportedLayer"!==n}},38969(e,t,r){r.d(t,{i:()=>i});var n=r(37955);function i(e,t){return new Promise((r,i)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,n.Oo)(e,"canplay",r)),t((0,n.Oo)(e,"error",i)))})}},10407(e,t,r){r.d(t,{It:()=>p,LG:()=>s,OM:()=>c,Sm:()=>u,Y:()=>o,bK:()=>l,sQ:()=>h});var n=r(99917),i=r(16930),a=r(28735);function s(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,d.HOSTED_SERVICE)}function c(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function u(e,t,r){r?s(e,t):c(e,t)}async function h(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,a.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function p(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let a=!i||i.includes("features:user:edit"),s=!!r&&!!i?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?s=a=!0:s&&(a=!0),{features:{edit:a,fullEdit:s},content:{updateItem:o}}}r.d(t,["mm",0,d])},85648(e,t,r){r.d(t,{n:()=>i});var n=r(84952);function i(e){return a[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,n.Zo)(e);return l[t]||s}(e.url)}(e)]||o}const a={},s="text/plain",o=a[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)a[l[e]]=e},78553(e,t,r){r.d(t,{D:()=>a,p:()=>i});var n=r(78888);function i(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function a(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2554],{65529(e,n,t){var a=t(69622),i=t(36563);const r=e=>{const n=e;return class extends n{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,n){let t=this._listenersMap?.get(e);if(!t)return!1;let a=!1;for(const e of t.slice()){const t="deref"in e?e.deref():e;t?t?.call(this,n):a=!0}return a&&(t=t.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,t)),t.length>0}on(e,n){if(Array.isArray(e)){const t=e.map(e=>this.on(e,n));return(0,i.vE)(t)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const t=this._listenersMap.get(e)||[];return t.push(n),this._listenersMap.set(e,t),(0,i.hA)(()=>{const t=this._listenersMap?.get(e),a=t?.indexOf(n)??-1;a>=0&&t.splice(a,1)})}once(e,n){const t=this.on(e,e=>{t.remove();const a="deref"in n?n.deref():n;a?.call(null,e)});return t}hasEventListener(e){const n=this._listenersMap?.get(e);return null!=n&&n.length>0}}},o=r(class{}),s=o,l=r(a.A);t.d(n,["Zt",0,r,"a$",0,o,"bk",0,s,"nJ",0,l])},3483(e,n,t){function a(e,n){for(const t of e.values())if(n(t))return!0;return!1}function i(e,n){if(n)for(const t of n)null!=t&&e.add(t)}function r(e,n){null!=n&&e.add(n)}function o(e,n){const t=new Set;return i(t,e),i(t,n),t}function s(e,n){const t=new Set;for(const a of n)e.has(a)&&t.add(a);return t}function l(e,n){if(!e||!n)return!1;if(e===n)return!0;for(const t of e)if(!n.has(t))return!1;return!0}function u(e,n){if(null==e&&null==n)return!0;if(null==e||null==n||e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;return!0}function d(e,n){const t=new Set(e);for(const e of n)t.delete(e);return t}t.d(n,{E$:()=>s,FB:()=>i,KC:()=>o,Yy:()=>l,aI:()=>u,bw:()=>a,iv:()=>d,kb:()=>r})},95488(e,n,t){t.d(n,{I:()=>i});var a=t(11406);class i extends a.T{notify(){const e=this._observers;if(e&&e.length>0){const n=e.slice();for(const e of n)e.onInvalidated(),e.onCommitted()}}}},51850(e,n,t){function a(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function r(e,n,t){return[e,n,t]}function o(e,n,t){return[e,n,t]}function s(e,n=[0,0,0]){const t=Math.min(3,e.length);for(let a=0;a<t;++a)n[a]=e[a];return n}function l(){return r(1,1,1)}function u(){return r(1,0,0)}function d(){return r(0,1,0)}function c(){return r(0,0,1)}t.d(n,{CN:()=>o,ci:()=>s,fA:()=>r,o8:()=>i,vt:()=>a});const m=[0,0,0],f=l(),T=u(),p=d(),S=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:T,UNIT_Y:p,UNIT_Z:S,ZEROS:m,clone:i,create:a,freeze:o,fromArray:s,fromValues:r,ones:l,unitX:u,unitY:d,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),t.d(n,["Cb",0,S,"Cw",0,T,"JP",0,p,"Un",0,f,"uY",0,m])},34304(e,n,t){t.d(n,{DF:()=>l,FD:()=>i,ct:()=>u});let a=1e-6;function i(){return a}const r=Math.random,o=Math.PI/180,s=180/Math.PI;function l(e){return e*o}function u(e){return e*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:r,equals:function(e,n){return Math.abs(e-n)<=a*Math.max(1,Math.abs(e),Math.abs(n))},getEpsilon:i,setEpsilon:function(e){a=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"})),t.d(n,["Ov",0,r])},39516(e,n,t){let a;async function i(e,n){const i=await async function(){return null==a&&(a=Promise.all([t.e(9696),t.e(5248)]).then(()=>t(44123)).then(e=>new e.WhereClauseCache(500,500))),a}(),r=i.get(e,n);if(null==r)throw i.getError(e,n);return r}function r(e,n){return e||=null,n||=null,"1=1"===e?n??e:"1=1"===n?e??n:e&&n?`(${e}) AND (${n})`:e??n}function o(e,n){return e||=null,n||=null,"1=1"===e||"1=1"===n||e===n?"1=1"===e?e:n:e&&n?`(${e}) OR (${n})`:e??n}t.d(n,{GP:()=>i,IW:()=>o,mA:()=>r}),t(3330),t(56400)},3330(e,n,t){t.d(n,{GB:()=>i,Qo:()=>o,Y4:()=>r});var a=t(34747);class i{static{this.instance=a.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof a.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return r(e)?i.instance:e}},52006(e,n,t){function a(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function i(e){return"curveRings"in e?e.curveRings:e.curvePaths}function r(e){return"b"in e}function o(e){return"c"in e}function s(e){return Array.isArray(e)}function l(e){return"a"in e}function u(e){return"a"in e&&4===e.a.length}function d(e){return"a"in e&&7===e.a.length}function c(e,n){return i(e).flat().some(e=>function(e,n){return!(s(e)||(r(e)?n.has("cubic-bezier"):o(e)?n.has("circular-arc"):!u(e)&&!d(e)||n.has("elliptic-arc")))}(e,n))}function m(e){return s(e)?e:r(e)?e.b[0]:o(e)?e.c[0]:e.a[0]}function f(e){if(r(e)){const[n,t,a]=e.b;return{b:[[...n],[...t],[...a]]}}if(o(e)){const[n,t]=e.c;return{c:[[...n],[...t]]}}if(s(e))return[...e];if(u(e)){const[n,t,a,i]=e.a;return{a:[[...n],[...t],a,i]}}if(d(e)){const[n,t,a,i,r,o,s]=e.a;return{a:[[...n],[...t],a,i,r,o,s]}}return e}t.d(n,{DA:()=>u,Ed:()=>a,FD:()=>i,FG:()=>l,V8:()=>c,Xq:()=>s,aO:()=>o,n1:()=>r,tk:()=>f,wY:()=>d,yP:()=>m}),t(4576)},68463(e,n,t){t.d(n,{Mh:()=>c,A5:()=>g});var a=t(3483),i=t(97768),r=t(54218),o=t(34747);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function l(e){if(!e||!(0,r.Kg)(e))return null;const n=o.c9.fromFormat(e,"yyyy-MM-dd");return n.isValid?n:null}function u(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(s,n=>{const t=o.c9.fromFormat(e,n);return t.isValid?t:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;const n=o.c9.fromISO(e);return n.isValid?n:null}const c={VALUE_OUT_OF_RANGE:"domain-validation-error::value-out-of-range",INVALID_CODED_VALUE:"domain-validation-error::invalid-coded-value"},m=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function T(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const S=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function g(e,n){const t=n??e?.domain;if(!t||"range"!==t.type)return;const a="range"in t?t.range[0]:t.minValue,i="range"in t?t.range[1]:t.maxValue,r=function(e){return null!=e&&m.has(e.type)}(e);return f(e)||p(e)||T(e)?{...A(e,i,a),isInteger:r}:{min:null!=a&&"number"==typeof a?a:null,max:null!=i&&"number"==typeof i?i:null,rawMin:a,rawMax:i,isInteger:r}}function A(e,n,t){return f(e)?{min:l(t)?.toMillis(),max:l(n)?.toMillis(),rawMin:t,rawMax:n}:p(e)?{min:u(t)?.toMillis(),max:u(n)?.toMillis(),rawMin:t,rawMax:n}:T(e)?{min:d(t)?.toMillis(),max:d(n)?.toMillis(),rawMin:t,rawMax:n}:{max:null,min:null}}(0,a.KC)(m,S)},30524(e,n,t){t.d(n,{Ah:()=>X,Bz:()=>P,CJ:()=>ie,DB:()=>A,Dx:()=>M,GZ:()=>be,JL:()=>Se,Jl:()=>N,Kl:()=>pe,NF:()=>he,OG:()=>q,OH:()=>J,R$:()=>U,R3:()=>Z,Vb:()=>ye,WA:()=>K,WX:()=>te,XT:()=>ae,Xz:()=>Q,_b:()=>G,_w:()=>y,e7:()=>Ae,eX:()=>F,hL:()=>b,lD:()=>x,mB:()=>E,nw:()=>ge,rS:()=>c,rq:()=>h,sv:()=>S,te:()=>Y,uo:()=>Te,vE:()=>H,yM:()=>W,yp:()=>T,zD:()=>j}),t(49186);var a=t(93637),i=t(3483),r=(t(39516),t(68463)),o=t(69309),s=t(54218),l=t(43668);const u=/^([0-9_])/,d=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(d,"_").replace(u,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],f=["field","normalizationField"];function T(e,n){if(null!=e&&null!=n)for(const t of Array.isArray(e)?e:[e])if(p(m,t,n),"visualVariables"in t&&t.visualVariables)for(const e of t.visualVariables)p(f,e,n)}function p(e,n,t){if(e)for(const i of e){const e=(0,a.wc)(i,n),r=e&&"function"!=typeof e&&t.get(e);r&&(0,a.sM)(i,r.name,n)}}function S(e,n){if(null==e||!n?.fields?.length)return;if("startField"in e){const t=n.get(e.startField),a=n.get(e.endField);e.startField=t?.name??null,e.endField=a?.name??null}else{const t=n.get(e.startTimeField),a=n.get(e.endTimeField);e.startTimeField=t?.name??null,e.endTimeField=a?.name??null}const t=n.get(e.trackIdField);e.trackIdField=t?.name??null}const g=new Set;function A(e,n){return e&&n?(g.clear(),y(g,e,n),Array.from(g).sort()):[]}function y(e,n,t){if(t)if(n?.fields?.length)if(t.includes("*"))for(const{name:t}of n.fields)e.add(t);else for(const a of t)h(e,n,a);else{if(t.includes("*"))return e.clear(),void e.add("*");for(const n of t)null!=n&&e.add(n)}}function h(e,n,t){if("string"==typeof t)if(n){const a=n.get(t);a&&e.add(a.name)}else e.add(t)}function b(e,n){return null==n||null==e?[]:n.includes("*")?(e.fields??[]).map(e=>e.name):n}async function M(e,n,t,a){if(!a)return;const i=(0,o.o)(a);if(i)h(e,n,i);else{const{arcadeUtils:i}=await(0,l.l)(),r=i.extractFieldNames(a,t?.partitions??n?.fields?.map(e=>e.name));for(const a of r)h(e,t?.index??n,a)}}function E({displayField:e,fields:n}){return e||(n?.length?function(e){return C(e,"name-or-title")||C(e,"unique-identifier")||C(e,"type-or-category")||function(e){for(const n of e){if(!n?.name)continue;const e=n.name.toLowerCase();if(e.includes("name")||e.includes("title"))return n.name}return null}(e)}(n):null)}function C(e,n){for(const t of e)if(t?.valueType&&t.valueType===n)return t.name;return null}function F(e){return e?A(e.fieldsIndex,I(e)):[]}const _=new Set(["oid","global-id","guid"]),w=new Set(["oid","global-id"]),v=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function I(e){if(!e)return[];const n="editFieldsInfo"in e&&e.editFieldsInfo;if(!n)return[];const{creationDateField:t,creatorField:a,editDateField:i,editorField:r}=n;return[t,a,i,r].filter(Boolean)}function k(e){return I(e).map(e=>e.toLowerCase())}function N(e){return!!e.type}function U(e,n){return!!e.editable&&N(e)&&!_.has(e.type)&&!k(n).includes(e.name?.toLowerCase()??"")}function P(e,n){const t=e.name?.toLowerCase()??"";return!(null!=n?.objectIdField&&t===n.objectIdField.toLowerCase()||null!=n?.globalIdField&&t===n.globalIdField.toLowerCase()||function(e){const n=new Set;k(e).forEach(e=>n.add(e)),function(e){if(!e)return[];const n=e.geometryFieldsInfo;return n?A(e.fieldsIndex,[n.shapeAreaField,n.shapeLengthField]):[]}(e).forEach(e=>n.add(e.toLowerCase()));const t=e&&"infoFor3D"in e?e.infoFor3D:void 0;return t&&(Object.values(t.assetMapFieldRoles).forEach(e=>n.add(e.toLowerCase())),Object.values(t.transformFieldRoles).forEach(e=>n.add(e.toLowerCase()))),Array.from(n)}(n).includes(t)||w.has(e.type)||v.some(e=>e.test(t)))}function x(e){const n=e.defaultValue;return void 0!==n&&V(e,n)?n:e.nullable?null:void 0}function G(e){const n="string"==typeof e?{type:e}:e;return W(n)?255:"esriFieldTypeDate"===n.type||"date"===n.type?8:void 0}function L(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function D(e){return null===e||L(e)}function $(e){return null===e||Number.isInteger(e)}function O(){return!0}function V(e,n){let t;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":t=e.nullable?$:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":t=e.nullable?D:L;break;case"string":case"esriFieldTypeString":t=e.nullable?s.CO:s.Kg;break;default:t=O}return 1===arguments.length?t:t(n)}const B=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),R=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),z=(0,i.KC)(B,R);function Z(e){return null!=e&&B.has(e.type)}function K(e){return null!=e&&z.has(e.type)}function W(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function H(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function j(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function X(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function J(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function Y(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Q(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function q(e,n){return null===ie(e,n)}const ee="numeric-range-validation-error::out-of-range",ne="type-validation-error::invalid-type";function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ae(e){return parseFloat(e.replaceAll("_",""))}function ie(e,n){return null==e||e.nullable&&null===n?null:V(e,n)?K(e)&&!function(e,n){const t="string"==typeof e?re(e):e;if(!t)return!1;const a=t.min,i=t.max;return t.isInteger?Number.isInteger(n)&&n>=a&&n<=i:n>=a&&n<=i}(e.type,Number(n))?ee:null:ne}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return oe;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ue;case"esriFieldTypeBigInteger":case"big-integer":return de;case"esriFieldTypeSingle":case"single":return me;case"esriFieldTypeDouble":case"double":return fe}}const oe={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},se=-2147483648,le=2**31-1,ue={min:se,max:le,isInteger:!0,rawMin:se,rawMax:le},de={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},ce=(2-2**-23)*2**127,me={min:-ce,max:ce,isInteger:!1,rawMin:-ce,rawMax:ce},fe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function Te(e,n,t){switch(e){case r.Mh.INVALID_CODED_VALUE:return`Value ${t} is not in the coded domain - field: ${n.name}, domain: ${JSON.stringify(n.domain)}`;case r.Mh.VALUE_OUT_OF_RANGE:return`Value ${t} is out of the range of valid values - field: ${n.name}, domain: ${JSON.stringify(n.domain)}`;case ne:return`Value ${t} is not a valid value for the field type - field: ${n.name}, type: ${n.type}, nullable: ${n.nullable}`;case ee:{const{min:e,max:a}=re(n.type);return`Value ${t} is out of range for the number type - field: ${n.name}, type: ${n.type}, value range is ${e} to ${a}`}}}function pe(e,n){return!function(e,n){if(!e?.attributes||!n)return!0;const t=new Set(Object.keys(e.attributes));let a=!1;for(const e of n)if(!t.has(e)){a=!0;break}return a}(e,n)}function Se(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(n=>e.toLowerCase().startsWith(n))}function ge(e){const n=e?.match(/{[^}]+}/g);return n?n.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function Ae(e,n){const{statisticType:t,onStatisticField:a,onStatisticExpression:i}=e,r=n.get(a),o=K(r),s=i?.returnType;switch(t){case"avg":case"avg_angle":return r?o||H(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?o||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?o?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function ye(e){const{fieldName:n,fieldsMap:t,normalizedFieldsMap:a}=e;if(!n)return;let i=t.get(n);return i||(i=t.get(he(n))??a.get(be(n)),i&&t.set(n,i),i)}function he(e){return e.trim().toLowerCase()}function be(e){return c(e)?.toLowerCase()??""}},69309(e,n,t){function a(e){if(!e)return;const n=e.match(i);return n?.groups?n.groups.doubleQuoted??n.groups.singleQuoted??n.groups.dotNotation:void 0}t.d(n,{D:()=>r,o:()=>a});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(o)?.[1]?.replaceAll("\\'","'")??null}const o=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,n,t){function a(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function o(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||o(e)}function l(e){return Array.isArray(e)}function u(e){return e instanceof Date}t.d(n,{$P:()=>u,CO:()=>s,Et:()=>a,Fq:()=>i,Kg:()=>o,Lm:()=>r,cy:()=>l})},43668(e,n,t){let a;function i(){return a||(a=(async()=>{const[e,n,a,i]=await Promise.all([Promise.all([t.e(2292),t.e(2869),t.e(3910),t.e(4473),t.e(5278),t.e(9696),t.e(3470),t.e(8878),t.e(7803)]).then(()=>t(85194)),t.e(8010).then(()=>t(8010)),Promise.all([t.e(3470),t.e(8878),t.e(1089)]).then(()=>t(76343)),Promise.all([t.e(8878),t.e(8964)]).then(()=>t(8964))]);return{arcade:e.arcade,arcadeUtils:e,batchExec:n,aiServices:a,languageUtils:i,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel}})()),a}t.d(n,{l:()=>i})},98623(e,n,t){const a=Intl.DateTimeFormat().resolvedOptions().timeZone;t.d(n,["L",0,"unknown","N",0,a])},84741(e,n,t){t.d(n,{p:()=>s});var a=t(44208),i=t(34747);class r extends i.oh{constructor(e){super(e),this._start=[],this._end=[],this._offset=[]}get type(){return"temporal"}equals(e){return"temporal"===e.type&&e.name===this.name}_findIndexOfLatestStartIncluding(e){let n=0,t=this._start.length;for(;n<t;){const a=n+t>>>1;this._start[a]>e?t=a:n=a+1}return n-1}offset(e){if(e<-864e13||864e13<e)return NaN;const n=this._findIndexOfLatestStartIncluding(e);if(n>=0&&e<this._end[n])return this._offset[n];const t=Temporal.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(this.name),a=t.offsetNanoseconds/6e10,i=t.add({nanoseconds:1}).getTimeZoneTransition("previous")?.epochMilliseconds??-1/0,r=t.getTimeZoneTransition("next")?.epochMilliseconds??1/0;return this._start.splice(n+1,0,i),this._end.splice(n+1,0,r),this._offset.splice(n+1,0,a),a}}const o=new Map;function s(e){if((0,a.A)("esri-temporal")){let n=o.get(e);return void 0===n&&(n=new r(e),o.set(e,n)),n}return i.oh.create(e)}},56400(e,n,t){t.d(n,{ZS:()=>u,S3:()=>m,hv:()=>d,wr:()=>c,P6:()=>l});var a=t(3330),i=t(98623),r=t(84741);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=t(34747);function l(e,n=!1,t=!0){return{json:{read:{source:e,reader:(n,t)=>t[e]?u(t[e]):null},write:!!n&&{allowNull:t,writer(n,t){t[e]=n?function(e){return{timeZoneIANA:e}}(n):null},target:{[`${e}.timeZoneIANA`]:{type:String}}}}}}function u(e,n="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,n="system"){if(!e||!o.has(e.timeZone))return n;const t=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?t:function(e){const n=s.c9.local().setZone(e),t=Math.min(n.set({month:1,day:1}).offset,n.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${s.mQ.instance(-t).formatOffset(0,"narrow")}`}(t)}(e,n):n}function d(e,n,t,a,r){if(n&&"date"===r)return{timeZone:"UTC",timeZoneName:void 0};const o=a.hour,s=t===i.L;return{timeZone:s?"timestamp-offset"===r?void 0:e??"UTC":t,timeZoneName:s&&o?"shortOffset":void 0}}function c(e){const n=new Set(["etc/utc","etc/gmt","gmt"]),t=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===i.L||n.has(e.toLowerCase())||t.has(e.toLowerCase())}function m(e){return e===i.L?a.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.p)(e)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2554],{65529(e,n,t){var a=t(69622),i=t(36563);const r=e=>{const n=e;return class extends n{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,n){let t=this._listenersMap?.get(e);if(!t)return!1;let a=!1;for(const e of t.slice()){const t="deref"in e?e.deref():e;t?t?.call(this,n):a=!0}return a&&(t=t.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,t)),t.length>0}on(e,n){if(Array.isArray(e)){const t=e.map(e=>this.on(e,n));return(0,i.vE)(t)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const t=this._listenersMap.get(e)||[];return t.push(n),this._listenersMap.set(e,t),(0,i.hA)(()=>{const t=this._listenersMap?.get(e),a=t?.indexOf(n)??-1;a>=0&&t.splice(a,1)})}once(e,n){const t=this.on(e,e=>{t.remove();const a="deref"in n?n.deref():n;a?.call(null,e)});return t}hasEventListener(e){const n=this._listenersMap?.get(e);return null!=n&&n.length>0}}},o=r(class{}),s=o,l=r(a.A);t.d(n,["Zt",0,r,"a$",0,o,"bk",0,s,"nJ",0,l])},3483(e,n,t){function a(e,n){for(const t of e.values())if(n(t))return!0;return!1}function i(e,n){if(n)for(const t of n)null!=t&&e.add(t)}function r(e,n){null!=n&&e.add(n)}function o(e,n){const t=new Set;return i(t,e),i(t,n),t}function s(e,n){const t=new Set;for(const a of n)e.has(a)&&t.add(a);return t}function l(e,n){if(!e||!n)return!1;if(e===n)return!0;for(const t of e)if(!n.has(t))return!1;return!0}function u(e,n){if(null==e&&null==n)return!0;if(null==e||null==n||e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;return!0}function d(e,n){const t=new Set(e);for(const e of n)t.delete(e);return t}t.d(n,{E$:()=>s,FB:()=>i,KC:()=>o,Yy:()=>l,aI:()=>u,bw:()=>a,iv:()=>d,kb:()=>r})},95488(e,n,t){t.d(n,{I:()=>i});var a=t(11406);class i extends a.T{notify(){const e=this._observers;if(e&&e.length>0){const n=e.slice();for(const e of n)e.onInvalidated(),e.onCommitted()}}}},51850(e,n,t){function a(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function r(e,n,t){return[e,n,t]}function o(e,n,t){return[e,n,t]}function s(e,n=[0,0,0]){const t=Math.min(3,e.length);for(let a=0;a<t;++a)n[a]=e[a];return n}function l(){return r(1,1,1)}function u(){return r(1,0,0)}function d(){return r(0,1,0)}function c(){return r(0,0,1)}t.d(n,{CN:()=>o,ci:()=>s,fA:()=>r,o8:()=>i,vt:()=>a});const m=[0,0,0],f=l(),T=u(),p=d(),S=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:T,UNIT_Y:p,UNIT_Z:S,ZEROS:m,clone:i,create:a,freeze:o,fromArray:s,fromValues:r,ones:l,unitX:u,unitY:d,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),t.d(n,["Cb",0,S,"Cw",0,T,"JP",0,p,"Un",0,f,"uY",0,m])},34304(e,n,t){t.d(n,{DF:()=>l,FD:()=>i,ct:()=>u});let a=1e-6;function i(){return a}const r=Math.random,o=Math.PI/180,s=180/Math.PI;function l(e){return e*o}function u(e){return e*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:r,equals:function(e,n){return Math.abs(e-n)<=a*Math.max(1,Math.abs(e),Math.abs(n))},getEpsilon:i,setEpsilon:function(e){a=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"})),t.d(n,["Ov",0,r])},39516(e,n,t){let a;async function i(e,n){const i=await async function(){return null==a&&(a=Promise.all([t.e(9696),t.e(5248)]).then(()=>t(44123)).then(e=>new e.WhereClauseCache(500,500))),a}(),r=i.get(e,n);if(null==r)throw i.getError(e,n);return r}function r(e,n){return e||=null,n||=null,"1=1"===e?n??e:"1=1"===n?e??n:e&&n?`(${e}) AND (${n})`:e??n}function o(e,n){return e||=null,n||=null,"1=1"===e||"1=1"===n||e===n?"1=1"===e?e:n:e&&n?`(${e}) OR (${n})`:e??n}t.d(n,{GP:()=>i,IW:()=>o,mA:()=>r}),t(3330),t(56400)},3330(e,n,t){t.d(n,{GB:()=>i,Qo:()=>o,Y4:()=>r});var a=t(34747);class i{static{this.instance=a.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof a.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return r(e)?i.instance:e}},52006(e,n,t){function a(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function i(e){return"curveRings"in e?e.curveRings:e.curvePaths}function r(e){return"b"in e}function o(e){return"c"in e}function s(e){return Array.isArray(e)}function l(e){return"a"in e}function u(e){return"a"in e&&4===e.a.length}function d(e){return"a"in e&&7===e.a.length}function c(e,n){return i(e).flat().some(e=>function(e,n){return!(s(e)||(r(e)?n.has("cubic-bezier"):o(e)?n.has("circular-arc"):!u(e)&&!d(e)||n.has("elliptic-arc")))}(e,n))}function m(e){return s(e)?e:r(e)?e.b[0]:o(e)?e.c[0]:e.a[0]}function f(e){if(r(e)){const[n,t,a]=e.b;return{b:[[...n],[...t],[...a]]}}if(o(e)){const[n,t]=e.c;return{c:[[...n],[...t]]}}if(s(e))return[...e];if(u(e)){const[n,t,a,i]=e.a;return{a:[[...n],[...t],a,i]}}if(d(e)){const[n,t,a,i,r,o,s]=e.a;return{a:[[...n],[...t],a,i,r,o,s]}}return e}t.d(n,{DA:()=>u,Ed:()=>a,FD:()=>i,FG:()=>l,V8:()=>c,Xq:()=>s,aO:()=>o,n1:()=>r,tk:()=>f,wY:()=>d,yP:()=>m}),t(4576)},68463(e,n,t){t.d(n,{Mh:()=>c,A5:()=>g});var a=t(3483),i=t(97768),r=t(54218),o=t(34747);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function l(e){if(!e||!(0,r.Kg)(e))return null;const n=o.c9.fromFormat(e,"yyyy-MM-dd");return n.isValid?n:null}function u(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(s,n=>{const t=o.c9.fromFormat(e,n);return t.isValid?t:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;const n=o.c9.fromISO(e);return n.isValid?n:null}const c={VALUE_OUT_OF_RANGE:"domain-validation-error::value-out-of-range",INVALID_CODED_VALUE:"domain-validation-error::invalid-coded-value"},m=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function T(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const S=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function g(e,n){const t=n??e?.domain;if(!t||"range"!==t.type)return;const a="range"in t?t.range[0]:t.minValue,i="range"in t?t.range[1]:t.maxValue,r=function(e){return null!=e&&m.has(e.type)}(e);return f(e)||p(e)||T(e)?{...A(e,i,a),isInteger:r}:{min:null!=a&&"number"==typeof a?a:null,max:null!=i&&"number"==typeof i?i:null,rawMin:a,rawMax:i,isInteger:r}}function A(e,n,t){return f(e)?{min:l(t)?.toMillis(),max:l(n)?.toMillis(),rawMin:t,rawMax:n}:p(e)?{min:u(t)?.toMillis(),max:u(n)?.toMillis(),rawMin:t,rawMax:n}:T(e)?{min:d(t)?.toMillis(),max:d(n)?.toMillis(),rawMin:t,rawMax:n}:{max:null,min:null}}(0,a.KC)(m,S)},30524(e,n,t){t.d(n,{Ah:()=>X,Bz:()=>x,CJ:()=>ie,DB:()=>A,Dx:()=>M,GZ:()=>be,JL:()=>Se,Jl:()=>N,Kl:()=>pe,NF:()=>he,OG:()=>q,OH:()=>J,R$:()=>U,R3:()=>Z,Vb:()=>ye,WA:()=>K,WX:()=>te,XT:()=>ae,Xz:()=>Q,_b:()=>L,_w:()=>y,e7:()=>Ae,eX:()=>F,hL:()=>b,lD:()=>G,mB:()=>E,nw:()=>ge,rS:()=>c,rq:()=>h,sv:()=>S,te:()=>Y,uo:()=>Te,vE:()=>H,yM:()=>W,yp:()=>T,zD:()=>j}),t(49186);var a=t(93637),i=t(3483),r=(t(39516),t(68463)),o=t(69309),s=t(54218),l=t(43668);const u=/^([0-9_])/,d=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(d,"_").replace(u,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],f=["field","normalizationField"];function T(e,n){if(null!=e&&null!=n)for(const t of Array.isArray(e)?e:[e])if(p(m,t,n),"visualVariables"in t&&t.visualVariables)for(const e of t.visualVariables)p(f,e,n)}function p(e,n,t){if(e)for(const i of e){const e=(0,a.wc)(i,n),r=e&&"function"!=typeof e&&t.get(e);r&&(0,a.sM)(i,r.name,n)}}function S(e,n){if(null==e||!n?.fields?.length)return;if("startField"in e){const t=n.get(e.startField),a=n.get(e.endField);e.startField=t?.name??null,e.endField=a?.name??null}else{const t=n.get(e.startTimeField),a=n.get(e.endTimeField);e.startTimeField=t?.name??null,e.endTimeField=a?.name??null}const t=n.get(e.trackIdField);e.trackIdField=t?.name??null}const g=new Set;function A(e,n){return e&&n?(g.clear(),y(g,e,n),Array.from(g).sort()):[]}function y(e,n,t){if(t)if(n?.fields?.length)if(t.includes("*"))for(const{name:t}of n.fields)e.add(t);else for(const a of t)h(e,n,a);else{if(t.includes("*"))return e.clear(),void e.add("*");for(const n of t)null!=n&&e.add(n)}}function h(e,n,t){if("string"==typeof t)if(n){const a=n.get(t);a&&e.add(a.name)}else e.add(t)}function b(e,n){return null==n||null==e?[]:n.includes("*")?(e.fields??[]).map(e=>e.name):n}async function M(e,n,t,a){if(!a)return;const i=(0,o.o)(a);if(i)h(e,n,i);else{const{arcadeUtils:i}=await(0,l.l)(),r=i.extractFieldNames(a,t?.partitions??n?.fields?.map(e=>e.name));for(const a of r)h(e,t?.index??n,a)}}function E({displayField:e,fields:n}){return e||(n?.length?function(e){return C(e,"name-or-title")||C(e,"unique-identifier")||C(e,"type-or-category")||function(e){for(const n of e){if(!n?.name)continue;const e=n.name.toLowerCase();if(e.includes("name")||e.includes("title"))return n.name}return null}(e)}(n):null)}function C(e,n){for(const t of e)if(t?.valueType&&t.valueType===n)return t.name;return null}function F(e){return e?A(e.fieldsIndex,I(e)):[]}const _=new Set(["oid","global-id","guid"]),v=new Set(["oid","global-id"]),w=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function I(e){if(!e)return[];const n="editFieldsInfo"in e&&e.editFieldsInfo;if(!n)return[];const{creationDateField:t,creatorField:a,editDateField:i,editorField:r}=n;return[t,a,i,r].filter(Boolean)}function k(e){return I(e).map(e=>e.toLowerCase())}function N(e){return!!e.type}function U(e,n){return!!e.editable&&N(e)&&!_.has(e.type)&&!k(n).includes(e.name?.toLowerCase()??"")}function x(e,n){const t=e.name?.toLowerCase()??"";return!(null!=n?.objectIdField&&t===n.objectIdField.toLowerCase()||null!=n?.globalIdField&&t===n.globalIdField.toLowerCase()||function(e){const n=new Set;k(e).forEach(e=>n.add(e)),function(e){if(!e)return[];const n=e.geometryFieldsInfo;return n?A(e.fieldsIndex,[n.shapeAreaField,n.shapeLengthField]):[]}(e).forEach(e=>n.add(e.toLowerCase()));const t=e&&"infoFor3D"in e?e.infoFor3D:void 0;return t&&(Object.values(t.assetMapFieldRoles).forEach(e=>n.add(e.toLowerCase())),Object.values(t.transformFieldRoles).forEach(e=>n.add(e.toLowerCase()))),Array.from(n)}(n).includes(t)||v.has(e.type)||w.some(e=>e.test(t)))}function G(e){const n=e.defaultValue;return void 0!==n&&V(e,n)?n:e.nullable?null:void 0}function L(e){const n="string"==typeof e?{type:e}:e;return W(n)?255:"esriFieldTypeDate"===n.type||"date"===n.type?8:void 0}function P(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function D(e){return null===e||P(e)}function $(e){return null===e||Number.isInteger(e)}function O(){return!0}function V(e,n){let t;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":t=e.nullable?$:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":t=e.nullable?D:P;break;case"string":case"esriFieldTypeString":t=e.nullable?s.CO:s.Kg;break;default:t=O}return 1===arguments.length?t:t(n)}const B=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),R=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),z=(0,i.KC)(B,R);function Z(e){return null!=e&&B.has(e.type)}function K(e){return null!=e&&z.has(e.type)}function W(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function H(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function j(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function X(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function J(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function Y(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Q(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function q(e,n){return null===ie(e,n)}const ee="numeric-range-validation-error::out-of-range",ne="type-validation-error::invalid-type";function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ae(e){return parseFloat(e.replaceAll("_",""))}function ie(e,n){return null==e||e.nullable&&null===n?null:V(e,n)?K(e)&&!function(e,n){const t="string"==typeof e?re(e):e;if(!t)return!1;const a=t.min,i=t.max;return t.isInteger?Number.isInteger(n)&&n>=a&&n<=i:n>=a&&n<=i}(e.type,Number(n))?ee:null:ne}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return oe;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ue;case"esriFieldTypeBigInteger":case"big-integer":return de;case"esriFieldTypeSingle":case"single":return me;case"esriFieldTypeDouble":case"double":return fe}}const oe={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},se=-2147483648,le=2**31-1,ue={min:se,max:le,isInteger:!0,rawMin:se,rawMax:le},de={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},ce=(2-2**-23)*2**127,me={min:-ce,max:ce,isInteger:!1,rawMin:-ce,rawMax:ce},fe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function Te(e,n,t){switch(e){case r.Mh.INVALID_CODED_VALUE:return`Value ${t} is not in the coded domain - field: ${n.name}, domain: ${JSON.stringify(n.domain)}`;case r.Mh.VALUE_OUT_OF_RANGE:return`Value ${t} is out of the range of valid values - field: ${n.name}, domain: ${JSON.stringify(n.domain)}`;case ne:return`Value ${t} is not a valid value for the field type - field: ${n.name}, type: ${n.type}, nullable: ${n.nullable}`;case ee:{const{min:e,max:a}=re(n.type);return`Value ${t} is out of range for the number type - field: ${n.name}, type: ${n.type}, value range is ${e} to ${a}`}}}function pe(e,n){return!function(e,n){if(!e?.attributes||!n)return!0;const t=new Set(Object.keys(e.attributes));let a=!1;for(const e of n)if(!t.has(e)){a=!0;break}return a}(e,n)}function Se(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(n=>e.toLowerCase().startsWith(n))}function ge(e){const n=e?.match(/{[^}]+}/g);return n?n.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function Ae(e,n){const{statisticType:t,onStatisticField:a,onStatisticExpression:i}=e,r=n.get(a),o=K(r),s=i?.returnType;switch(t){case"avg":case"avg_angle":return r?o||H(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?o||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?o?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function ye(e){const{fieldName:n,fieldsMap:t,normalizedFieldsMap:a}=e;if(!n)return;let i=t.get(n);return i||(i=t.get(he(n))??a.get(be(n)),i&&t.set(n,i),i)}function he(e){return e.trim().toLowerCase()}function be(e){return c(e)?.toLowerCase()??""}},69309(e,n,t){function a(e){if(!e)return;const n=e.match(i);return n?.groups?n.groups.doubleQuoted??n.groups.singleQuoted??n.groups.dotNotation:void 0}t.d(n,{D:()=>r,o:()=>a});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(o)?.[1]?.replaceAll("\\'","'")??null}const o=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,n,t){function a(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function o(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||o(e)}function l(e){return Array.isArray(e)}function u(e){return e instanceof Date}t.d(n,{$P:()=>u,CO:()=>s,Et:()=>a,Fq:()=>i,Kg:()=>o,Lm:()=>r,cy:()=>l})},43668(e,n,t){let a;function i(){return a||(a=Promise.all([t.e(6854),t.e(9696),t.e(7582),t.e(5606)]).then(()=>t(55606)).then(e=>({arcade:e.arcade,arcadeUtils:e,batchExec:e.batchExec,aiServices:e.aiServices,languageUtils:e.languageUtils,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel}))),a}t.d(n,{l:()=>i})},98623(e,n,t){const a=Intl.DateTimeFormat().resolvedOptions().timeZone;t.d(n,["L",0,"unknown","N",0,a])},84741(e,n,t){t.d(n,{p:()=>s});var a=t(44208),i=t(34747);class r extends i.oh{constructor(e){super(e),this._start=[],this._end=[],this._offset=[]}get type(){return"temporal"}equals(e){return"temporal"===e.type&&e.name===this.name}_findIndexOfLatestStartIncluding(e){let n=0,t=this._start.length;for(;n<t;){const a=n+t>>>1;this._start[a]>e?t=a:n=a+1}return n-1}offset(e){if(e<-864e13||864e13<e)return NaN;const n=this._findIndexOfLatestStartIncluding(e);if(n>=0&&e<this._end[n])return this._offset[n];const t=Temporal.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(this.name),a=t.offsetNanoseconds/6e10,i=t.add({nanoseconds:1}).getTimeZoneTransition("previous")?.epochMilliseconds??-1/0,r=t.getTimeZoneTransition("next")?.epochMilliseconds??1/0;return this._start.splice(n+1,0,i),this._end.splice(n+1,0,r),this._offset.splice(n+1,0,a),a}}const o=new Map;function s(e){if((0,a.A)("esri-temporal")){let n=o.get(e);return void 0===n&&(n=new r(e),o.set(e,n)),n}return i.oh.create(e)}},56400(e,n,t){t.d(n,{ZS:()=>u,S3:()=>m,hv:()=>d,wr:()=>c,P6:()=>l});var a=t(3330),i=t(98623),r=t(84741);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=t(34747);function l(e,n=!1,t=!0){return{json:{read:{source:e,reader:(n,t)=>t[e]?u(t[e]):null},write:!!n&&{allowNull:t,writer(n,t){t[e]=n?function(e){return{timeZoneIANA:e}}(n):null},target:{[`${e}.timeZoneIANA`]:{type:String}}}}}}function u(e,n="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,n="system"){if(!e||!o.has(e.timeZone))return n;const t=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?t:function(e){const n=s.c9.local().setZone(e),t=Math.min(n.set({month:1,day:1}).offset,n.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${s.mQ.instance(-t).formatOffset(0,"narrow")}`}(t)}(e,n):n}function d(e,n,t,a,r){if(n&&"date"===r)return{timeZone:"UTC",timeZoneName:void 0};const o=a.hour,s=t===i.L;return{timeZone:s?"timestamp-offset"===r?void 0:e??"UTC":t,timeZoneName:s&&o?"shortOffset":void 0}}function c(e){const n=new Set(["etc/utc","etc/gmt","gmt"]),t=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===i.L||n.has(e.toLowerCase())||t.has(e.toLowerCase())}function m(e){return e===i.L?a.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.p)(e)}}}]);