@arcgis/core 5.1.0-next.70 → 5.1.0-next.71

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 (479) hide show
  1. package/assets/components/assets/combobox/t9n/messages.ar.json +1 -1
  2. package/assets/components/assets/combobox/t9n/messages.bg.json +1 -1
  3. package/assets/components/assets/combobox/t9n/messages.bs.json +1 -1
  4. package/assets/components/assets/combobox/t9n/messages.ca.json +1 -1
  5. package/assets/components/assets/combobox/t9n/messages.cs.json +1 -1
  6. package/assets/components/assets/combobox/t9n/messages.da.json +1 -1
  7. package/assets/components/assets/combobox/t9n/messages.de.json +1 -1
  8. package/assets/components/assets/combobox/t9n/messages.el.json +1 -1
  9. package/assets/components/assets/combobox/t9n/messages.en.json +1 -1
  10. package/assets/components/assets/combobox/t9n/messages.es.json +1 -1
  11. package/assets/components/assets/combobox/t9n/messages.et.json +1 -1
  12. package/assets/components/assets/combobox/t9n/messages.fi.json +1 -1
  13. package/assets/components/assets/combobox/t9n/messages.fr.json +1 -1
  14. package/assets/components/assets/combobox/t9n/messages.he.json +1 -1
  15. package/assets/components/assets/combobox/t9n/messages.hr.json +1 -1
  16. package/assets/components/assets/combobox/t9n/messages.hu.json +1 -1
  17. package/assets/components/assets/combobox/t9n/messages.id.json +1 -1
  18. package/assets/components/assets/combobox/t9n/messages.it.json +1 -1
  19. package/assets/components/assets/combobox/t9n/messages.ja.json +1 -1
  20. package/assets/components/assets/combobox/t9n/messages.json +1 -1
  21. package/assets/components/assets/combobox/t9n/messages.ko.json +1 -1
  22. package/assets/components/assets/combobox/t9n/messages.lt.json +1 -1
  23. package/assets/components/assets/combobox/t9n/messages.lv.json +1 -1
  24. package/assets/components/assets/combobox/t9n/messages.nl.json +1 -1
  25. package/assets/components/assets/combobox/t9n/messages.no.json +1 -1
  26. package/assets/components/assets/combobox/t9n/messages.pl.json +1 -1
  27. package/assets/components/assets/combobox/t9n/messages.pt-BR.json +1 -1
  28. package/assets/components/assets/combobox/t9n/messages.pt-PT.json +1 -1
  29. package/assets/components/assets/combobox/t9n/messages.ro.json +1 -1
  30. package/assets/components/assets/combobox/t9n/messages.ru.json +1 -1
  31. package/assets/components/assets/combobox/t9n/messages.sk.json +1 -1
  32. package/assets/components/assets/combobox/t9n/messages.sl.json +1 -1
  33. package/assets/components/assets/combobox/t9n/messages.sr.json +1 -1
  34. package/assets/components/assets/combobox/t9n/messages.sv.json +1 -1
  35. package/assets/components/assets/combobox/t9n/messages.th.json +1 -1
  36. package/assets/components/assets/combobox/t9n/messages.tr.json +1 -1
  37. package/assets/components/assets/combobox/t9n/messages.uk.json +1 -1
  38. package/assets/components/assets/combobox/t9n/messages.vi.json +1 -1
  39. package/assets/components/assets/combobox/t9n/messages.zh-CN.json +1 -1
  40. package/assets/components/assets/combobox/t9n/messages.zh-HK.json +1 -1
  41. package/assets/components/assets/combobox/t9n/messages.zh-TW.json +1 -1
  42. package/assets/components/assets/icon/addToLivestreamVideoLayer16.json +1 -0
  43. package/assets/components/assets/icon/addToLivestreamVideoLayer24.json +1 -0
  44. package/assets/components/assets/icon/addToLivestreamVideoLayer32.json +1 -0
  45. package/assets/components/assets/icon/addToVideoLayer16.json +1 -0
  46. package/assets/components/assets/icon/addToVideoLayer24.json +1 -0
  47. package/assets/components/assets/icon/addToVideoLayer32.json +1 -0
  48. package/assets/components/assets/icon/arcgisQuickcapture16.json +1 -0
  49. package/assets/components/assets/icon/arcgisQuickcapture24.json +1 -0
  50. package/assets/components/assets/icon/arcgisQuickcapture32.json +1 -0
  51. package/assets/components/assets/icon/arcgisSurvey12316.json +1 -0
  52. package/assets/components/assets/icon/arcgisSurvey12324.json +1 -0
  53. package/assets/components/assets/icon/arcgisSurvey12332.json +1 -0
  54. package/assets/components/assets/icon/bicycleTravelMode16.json +1 -0
  55. package/assets/components/assets/icon/bicycleTravelMode16F.json +1 -0
  56. package/assets/components/assets/icon/bicycleTravelMode24.json +1 -0
  57. package/assets/components/assets/icon/bicycleTravelMode24F.json +1 -0
  58. package/assets/components/assets/icon/bicycleTravelMode32.json +1 -0
  59. package/assets/components/assets/icon/bicycleTravelMode32F.json +1 -0
  60. package/assets/components/assets/icon/busTravelMode16.json +1 -0
  61. package/assets/components/assets/icon/busTravelMode16F.json +1 -0
  62. package/assets/components/assets/icon/busTravelMode24.json +1 -0
  63. package/assets/components/assets/icon/busTravelMode24F.json +1 -0
  64. package/assets/components/assets/icon/busTravelMode32.json +1 -0
  65. package/assets/components/assets/icon/busTravelMode32F.json +1 -0
  66. package/assets/components/assets/icon/carTravelMode16.json +1 -0
  67. package/assets/components/assets/icon/carTravelMode16F.json +1 -0
  68. package/assets/components/assets/icon/carTravelMode24.json +1 -0
  69. package/assets/components/assets/icon/carTravelMode24F.json +1 -0
  70. package/assets/components/assets/icon/carTravelMode32.json +1 -0
  71. package/assets/components/assets/icon/carTravelMode32F.json +1 -0
  72. package/assets/components/assets/icon/conditionalRulesDown16.json +1 -0
  73. package/assets/components/assets/icon/conditionalRulesDown24.json +1 -0
  74. package/assets/components/assets/icon/conditionalRulesDown32.json +1 -0
  75. package/assets/components/assets/icon/emergency16.json +1 -0
  76. package/assets/components/assets/icon/emergency16F.json +1 -0
  77. package/assets/components/assets/icon/emergency24.json +1 -0
  78. package/assets/components/assets/icon/emergency24F.json +1 -0
  79. package/assets/components/assets/icon/emergency32.json +1 -0
  80. package/assets/components/assets/icon/emergency32F.json +1 -0
  81. package/assets/components/assets/icon/eyedropper16.json +1 -1
  82. package/assets/components/assets/icon/eyedropper24.json +1 -1
  83. package/assets/components/assets/icon/eyedropper32.json +1 -1
  84. package/assets/components/assets/icon/featureDetailsSet16.json +1 -0
  85. package/assets/components/assets/icon/featureDetailsSet24.json +1 -0
  86. package/assets/components/assets/icon/featureDetailsSet32.json +1 -0
  87. package/assets/components/assets/icon/fileBim16.json +1 -0
  88. package/assets/components/assets/icon/fileBim24.json +1 -0
  89. package/assets/components/assets/icon/fileBim32.json +1 -0
  90. package/assets/components/assets/icon/fileDwg16.json +1 -0
  91. package/assets/components/assets/icon/fileDwg24.json +1 -0
  92. package/assets/components/assets/icon/fileDwg32.json +1 -0
  93. package/assets/components/assets/icon/fileRvt16.json +1 -0
  94. package/assets/components/assets/icon/fileRvt24.json +1 -0
  95. package/assets/components/assets/icon/fileRvt32.json +1 -0
  96. package/assets/components/assets/icon/gradient16.json +1 -0
  97. package/assets/components/assets/icon/gradient24.json +1 -0
  98. package/assets/components/assets/icon/gradient32.json +1 -0
  99. package/assets/components/assets/icon/layerStreamSetting16.json +1 -0
  100. package/assets/components/assets/icon/layerStreamSetting24.json +1 -0
  101. package/assets/components/assets/icon/layerStreamSetting32.json +1 -0
  102. package/assets/components/assets/icon/mopedTravelMode16.json +1 -0
  103. package/assets/components/assets/icon/mopedTravelMode16F.json +1 -0
  104. package/assets/components/assets/icon/mopedTravelMode24.json +1 -0
  105. package/assets/components/assets/icon/mopedTravelMode24F.json +1 -0
  106. package/assets/components/assets/icon/mopedTravelMode32.json +1 -0
  107. package/assets/components/assets/icon/mopedTravelMode32F.json +1 -0
  108. package/assets/components/assets/icon/motorcycleTravelMode16.json +1 -0
  109. package/assets/components/assets/icon/motorcycleTravelMode16F.json +1 -0
  110. package/assets/components/assets/icon/motorcycleTravelMode24.json +1 -0
  111. package/assets/components/assets/icon/motorcycleTravelMode24F.json +1 -0
  112. package/assets/components/assets/icon/motorcycleTravelMode32.json +1 -0
  113. package/assets/components/assets/icon/motorcycleTravelMode32F.json +1 -0
  114. package/assets/components/assets/icon/publish16.json +1 -0
  115. package/assets/components/assets/icon/publish24.json +1 -0
  116. package/assets/components/assets/icon/publish32.json +1 -0
  117. package/assets/components/assets/icon/scooterTravelMode16.json +1 -0
  118. package/assets/components/assets/icon/scooterTravelMode16F.json +1 -0
  119. package/assets/components/assets/icon/scooterTravelMode24.json +1 -0
  120. package/assets/components/assets/icon/scooterTravelMode24F.json +1 -0
  121. package/assets/components/assets/icon/scooterTravelMode32.json +1 -0
  122. package/assets/components/assets/icon/scooterTravelMode32F.json +1 -0
  123. package/assets/components/assets/icon/shuttleTravelMode16.json +1 -0
  124. package/assets/components/assets/icon/shuttleTravelMode16F.json +1 -0
  125. package/assets/components/assets/icon/shuttleTravelMode24.json +1 -0
  126. package/assets/components/assets/icon/shuttleTravelMode24F.json +1 -0
  127. package/assets/components/assets/icon/shuttleTravelMode32.json +1 -0
  128. package/assets/components/assets/icon/shuttleTravelMode32F.json +1 -0
  129. package/assets/components/assets/icon/strollerTravelMode16.json +1 -0
  130. package/assets/components/assets/icon/strollerTravelMode16F.json +1 -0
  131. package/assets/components/assets/icon/strollerTravelMode24.json +1 -0
  132. package/assets/components/assets/icon/strollerTravelMode24F.json +1 -0
  133. package/assets/components/assets/icon/strollerTravelMode32.json +1 -0
  134. package/assets/components/assets/icon/strollerTravelMode32F.json +1 -0
  135. package/assets/components/assets/icon/trainTravelMode16.json +1 -0
  136. package/assets/components/assets/icon/trainTravelMode16F.json +1 -0
  137. package/assets/components/assets/icon/trainTravelMode24.json +1 -0
  138. package/assets/components/assets/icon/trainTravelMode24F.json +1 -0
  139. package/assets/components/assets/icon/trainTravelMode32.json +1 -0
  140. package/assets/components/assets/icon/trainTravelMode32F.json +1 -0
  141. package/assets/components/assets/icon/tramTravelMode16.json +1 -0
  142. package/assets/components/assets/icon/tramTravelMode16F.json +1 -0
  143. package/assets/components/assets/icon/tramTravelMode24.json +1 -0
  144. package/assets/components/assets/icon/tramTravelMode24F.json +1 -0
  145. package/assets/components/assets/icon/tramTravelMode32.json +1 -0
  146. package/assets/components/assets/icon/tramTravelMode32F.json +1 -0
  147. package/assets/components/assets/icon/truckTravelMode16.json +1 -0
  148. package/assets/components/assets/icon/truckTravelMode16F.json +1 -0
  149. package/assets/components/assets/icon/truckTravelMode24.json +1 -0
  150. package/assets/components/assets/icon/truckTravelMode24F.json +1 -0
  151. package/assets/components/assets/icon/truckTravelMode32.json +1 -0
  152. package/assets/components/assets/icon/truckTravelMode32F.json +1 -0
  153. package/assets/components/assets/icon/velocityServer16.json +1 -0
  154. package/assets/components/assets/icon/velocityServer24.json +1 -0
  155. package/assets/components/assets/icon/velocityServer32.json +1 -0
  156. package/assets/components/assets/icon/walkingTravelMode16.json +1 -0
  157. package/assets/components/assets/icon/walkingTravelMode16F.json +1 -0
  158. package/assets/components/assets/icon/walkingTravelMode24.json +1 -0
  159. package/assets/components/assets/icon/walkingTravelMode24F.json +1 -0
  160. package/assets/components/assets/icon/walkingTravelMode32.json +1 -0
  161. package/assets/components/assets/icon/walkingTravelMode32F.json +1 -0
  162. package/assets/components/assets/icon/wheelchairTravelMode16.json +1 -0
  163. package/assets/components/assets/icon/wheelchairTravelMode16F.json +1 -0
  164. package/assets/components/assets/icon/wheelchairTravelMode24.json +1 -0
  165. package/assets/components/assets/icon/wheelchairTravelMode24F.json +1 -0
  166. package/assets/components/assets/icon/wheelchairTravelMode32.json +1 -0
  167. package/assets/components/assets/icon/wheelchairTravelMode32F.json +1 -0
  168. package/assets/esri/core/workers/RemoteClient.js +1 -1
  169. package/assets/esri/core/workers/chunks/09ecb36e44096e577af8.js +1 -0
  170. package/assets/esri/core/workers/chunks/0b1454a77a6a682541dc.js +2 -0
  171. package/assets/esri/core/workers/chunks/{d82b543c96f09ded3bf9.js.LICENSE.txt → 0b1454a77a6a682541dc.js.LICENSE.txt} +6 -1
  172. package/assets/esri/core/workers/chunks/0ca06ea649bbdb93ff49.js +1 -0
  173. package/assets/esri/core/workers/chunks/10308c9f3f0d709d96bc.js +1 -0
  174. package/assets/esri/core/workers/chunks/{03e20ac54d6f141b5001.js → 11241781baaed346af52.js} +1 -1
  175. package/assets/esri/core/workers/chunks/123e920e4460124ec3bb.js +288 -0
  176. package/assets/esri/core/workers/chunks/{fc64ae69581e4c38fa8a.js → 141edf5ed890105a079b.js} +1 -1
  177. package/assets/esri/core/workers/chunks/160b9a76b75875507c86.js +1 -0
  178. package/assets/esri/core/workers/chunks/16dfdee05704df249e95.js +1 -0
  179. package/assets/esri/core/workers/chunks/17ef955dc48e329aa184.js +1 -0
  180. package/assets/esri/core/workers/chunks/18001536ed345955121a.js +1 -0
  181. package/assets/esri/core/workers/chunks/1c7183551f5269bdcf13.js +30 -0
  182. package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +1 -0
  183. package/assets/esri/core/workers/chunks/{b364ec104dd59faa41b6.js → 1f82a0f134ea912fc686.js} +1 -1
  184. package/assets/esri/core/workers/chunks/231f502cd15f30d12be2.js +1 -0
  185. package/assets/esri/core/workers/chunks/238f51d0b36f998017b8.js +1 -0
  186. package/assets/esri/core/workers/chunks/2cee6d751c5e73fe09d4.js +1 -0
  187. package/assets/esri/core/workers/chunks/31071a43e2c03984d619.js +1 -0
  188. package/assets/esri/core/workers/chunks/36031cb53c486630f3c9.js +1 -0
  189. package/assets/esri/core/workers/chunks/3697e51e1e4cf442f39a.js +1 -0
  190. package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +1 -0
  191. package/assets/esri/core/workers/chunks/3b1446286a9b87f34761.js +1 -0
  192. package/assets/esri/core/workers/chunks/3b7cda16e656db450f11.js +1 -0
  193. package/assets/esri/core/workers/chunks/3e972ae291df1844017d.js +1 -0
  194. package/assets/esri/core/workers/chunks/{73e000cc3c4da10e9937.js → 3f7fd58ee7d71989fc83.js} +1 -1
  195. package/assets/esri/core/workers/chunks/416e031bafc0189544fa.js +1 -0
  196. package/assets/esri/core/workers/chunks/427dec43ef2d67467699.js +1 -0
  197. package/assets/esri/core/workers/chunks/{746b3e98bad32c366a27.js → 444f0f51b3ee0b9845a5.js} +1 -1
  198. package/assets/esri/core/workers/chunks/4d51261d6131c07402cd.js +1 -0
  199. package/assets/esri/core/workers/chunks/{8ccf2f65d8ed3c48ffff.js → 4d8670f6fa8952b7bab6.js} +1 -1
  200. package/assets/esri/core/workers/chunks/{f209a7076d67cbf4d205.js → 4e676e888a935c507d90.js} +1 -1
  201. package/assets/esri/core/workers/chunks/50d5d6654ada9f28345d.js +1 -0
  202. package/assets/esri/core/workers/chunks/54c6e870262469d0d702.js +1 -0
  203. package/assets/esri/core/workers/chunks/55ee78923987ed17ea8c.js +1 -0
  204. package/assets/esri/core/workers/chunks/58b3c888c8bfedbe6443.js +1 -0
  205. package/assets/esri/core/workers/chunks/58c79e15ca95238a4b43.js +1 -0
  206. package/assets/esri/core/workers/chunks/6118706b9a038e9a06b8.js +1 -0
  207. package/assets/esri/core/workers/chunks/628f56c09838eb9c573b.js +1 -0
  208. package/assets/esri/core/workers/chunks/{f11ea0d3de93ec0392af.js → 6ac5ec3ecbca8860338b.js} +1 -1
  209. package/assets/esri/core/workers/chunks/6d15229b3fa84a7acf4d.js +599 -0
  210. package/assets/esri/core/workers/chunks/6dac8dfcd63fc757ae2d.js +1 -0
  211. package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +1 -0
  212. package/assets/esri/core/workers/chunks/6f67c9f68101a084b683.js +30 -0
  213. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  214. package/assets/esri/core/workers/chunks/7314c0131403cac84ad7.js +1 -0
  215. package/assets/esri/core/workers/chunks/73545bb13c70f6a347a4.js +1 -0
  216. package/assets/esri/core/workers/chunks/74be994d789c57031631.js +1 -0
  217. package/assets/esri/core/workers/chunks/7bacdd65a6cc4d284e0a.js +2 -0
  218. package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +1 -0
  219. package/assets/esri/core/workers/chunks/7ca32806e47be15109a4.js +1 -0
  220. package/assets/esri/core/workers/chunks/7cb6d8f7eaf762279632.js +1 -0
  221. package/assets/esri/core/workers/chunks/7d6ed65bbcd279448191.js +1 -0
  222. package/assets/esri/core/workers/chunks/7e6ccf9f3e756186e93e.js +1 -0
  223. package/assets/esri/core/workers/chunks/81f149e45c79b9b086fb.js +1 -0
  224. package/assets/esri/core/workers/chunks/824051af00e7a1f05ed0.js +1 -0
  225. package/assets/esri/core/workers/chunks/84fa25f66a6949290221.js +1 -0
  226. package/assets/esri/core/workers/chunks/852aabbf671d2ca9cd33.js +1 -0
  227. package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +2 -0
  228. package/assets/esri/core/workers/chunks/{2d2c10c31cc1460dd96a.js → 88827e23f8938342781c.js} +1 -1
  229. package/assets/esri/core/workers/chunks/{bc2c7cb99e227ddbd3a6.js → 89345a682dea60ef1643.js} +1 -1
  230. package/assets/esri/core/workers/chunks/8985402c328b90af5724.js +1 -0
  231. package/assets/esri/core/workers/chunks/89fdf9ad10ca8fbb08a5.js +1 -0
  232. package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +1 -0
  233. package/assets/esri/core/workers/chunks/8b094330323d9b16fb5d.js +1 -0
  234. package/assets/esri/core/workers/chunks/8b73f4d2f99c0b54cced.js +1 -0
  235. package/assets/esri/core/workers/chunks/90aed8c4b266832f84ca.js +1 -0
  236. package/assets/esri/core/workers/chunks/916a8f3eed1fafdc7242.js +1 -0
  237. package/assets/esri/core/workers/chunks/9187d1caca1fd2d713e0.js +1 -0
  238. package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +1 -0
  239. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +1 -0
  240. package/assets/esri/core/workers/chunks/967758a05170545cd371.js +1 -0
  241. package/assets/esri/core/workers/chunks/9776c2db337222ceceef.js +1 -0
  242. package/assets/esri/core/workers/chunks/990853e9df38fdfc58b5.js +1 -0
  243. package/assets/esri/core/workers/chunks/9a21ba0c45a96b94c05e.js +1 -0
  244. package/assets/esri/core/workers/chunks/{e0a63b5861e8c975097e.js → 9aaf78b831f8739bc127.js} +1 -1
  245. package/assets/esri/core/workers/chunks/9b56162ac67c992193ce.js +1 -0
  246. package/assets/esri/core/workers/chunks/{4d378d4e021a33b0047e.js → 9be4438ce2c7180adadf.js} +1 -1
  247. package/assets/esri/core/workers/chunks/a169d9fe66b5865911d9.js +1 -0
  248. package/assets/esri/core/workers/chunks/a1e6187c239fdc7553ed.js +1 -0
  249. package/assets/esri/core/workers/chunks/a5a46d0a0831497cf1b4.js +1 -0
  250. package/assets/esri/core/workers/chunks/a5afcd633b32e6ee31a7.js +1 -0
  251. package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +1 -0
  252. package/assets/esri/core/workers/chunks/a65d576e90179a2b5400.js +1 -0
  253. package/assets/esri/core/workers/chunks/a760be8fa6c6ea6b745c.js +1 -0
  254. package/assets/esri/core/workers/chunks/a8782286ce3c0d6c20e6.js +1 -0
  255. package/assets/esri/core/workers/chunks/{38328a785365c4783b1e.js → a994a3c912a33b2f4100.js} +1 -1
  256. package/assets/esri/core/workers/chunks/{678c9f15712cf3d3bb9e.js → aa1a3a849aba84cf585b.js} +1 -1
  257. package/assets/esri/core/workers/chunks/abcc5fb71be2bd94878c.js +1 -0
  258. package/assets/esri/core/workers/chunks/ae0a572cbbdd9815ee2e.js +1 -0
  259. package/assets/esri/core/workers/chunks/aecb05df4ad1454f5435.js +1 -0
  260. package/assets/esri/core/workers/chunks/aecb105db7cec2c9c4c5.js +1 -0
  261. package/assets/esri/core/workers/chunks/b19f33e026a2a43b17c4.js +1 -0
  262. package/assets/esri/core/workers/chunks/b1a21a4d7d73ad7d0e47.js +1 -0
  263. package/assets/esri/core/workers/chunks/b2983f521d8c96becd8a.js +1 -0
  264. package/assets/esri/core/workers/chunks/b5922991d2f450e6a9d9.js +1 -0
  265. package/assets/esri/core/workers/chunks/b8643976a7f984552d94.js +1 -0
  266. package/assets/esri/core/workers/chunks/ba4259aa050169c1d523.js +1 -0
  267. package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +1 -0
  268. package/assets/esri/core/workers/chunks/{81b2985b83be8f8f1090.js → c06d021180418f2014de.js} +1 -1
  269. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +1 -0
  270. package/assets/esri/core/workers/chunks/{0e2e4cb34ac6aac88ebf.js → c178e2cfc34603661b1d.js} +1 -1
  271. package/assets/esri/core/workers/chunks/c3e80c0e29ac6a7a6f80.js +1 -0
  272. package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +1 -0
  273. package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +1 -0
  274. package/assets/esri/core/workers/chunks/c9065cee85eb8dde6a42.js +1 -0
  275. package/assets/esri/core/workers/chunks/c92352b0e39576ca317a.js +1 -0
  276. package/assets/esri/core/workers/chunks/c92b40a532e708e506cc.js +1 -0
  277. package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +1 -0
  278. package/assets/esri/core/workers/chunks/cca095f0c623e037002d.js +1 -0
  279. package/assets/esri/core/workers/chunks/ce2aa75e084ee56f5e29.js +1 -0
  280. package/assets/esri/core/workers/chunks/ce44e172e2847fd8df14.js +1 -0
  281. package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +1 -0
  282. package/assets/esri/core/workers/chunks/cff7e921649aef715c78.js +1 -0
  283. package/assets/esri/core/workers/chunks/d05a7ce6c1d4b883ed4c.js +30 -0
  284. package/assets/esri/core/workers/chunks/d4a9eb4470cc6a1f67fc.js +2 -0
  285. package/assets/esri/core/workers/chunks/{478879ba965798f61bf3.js → d69110ec4078c583a05e.js} +1 -1
  286. package/assets/esri/core/workers/chunks/d8c0d18f0132872decd3.js +1 -0
  287. package/assets/esri/core/workers/chunks/db0061a6d5bf454cc509.js +1 -0
  288. package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +1 -0
  289. package/assets/esri/core/workers/chunks/dcfafcf4386f2940d000.js +1 -0
  290. package/assets/esri/core/workers/chunks/deb8a0b306d7b9c86b97.js +1 -0
  291. package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +1 -0
  292. package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +1 -0
  293. package/assets/esri/core/workers/chunks/e2b034c391c603f7f825.js +1 -0
  294. package/assets/esri/core/workers/chunks/e77d958cb62536b8eebc.js +1 -0
  295. package/assets/esri/core/workers/chunks/e797d45eba0884dc7e6f.js +1 -0
  296. package/assets/esri/core/workers/chunks/{453280ea87a696a4df81.js → e81a3da05fcff97b4752.js} +1 -1
  297. package/assets/esri/core/workers/chunks/e957d52cb9643961a843.js +1127 -0
  298. package/assets/esri/core/workers/chunks/{915a5e8aecf25f3bc72b.js → eb3cdc4ff45243fc3cc5.js} +1 -1
  299. package/assets/esri/core/workers/chunks/eb9982bc866976fef960.js +1 -0
  300. package/assets/esri/core/workers/chunks/{edc2e87968c958bc852b.js → ec4669a0edeca94710e0.js} +1 -1
  301. package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +1 -0
  302. package/assets/esri/core/workers/chunks/f09a41ad239d467d9438.js +2 -0
  303. package/assets/esri/core/workers/chunks/f52443cd203e687551da.js +1 -0
  304. package/assets/esri/core/workers/chunks/f653970d983f17fb764b.js +1 -0
  305. package/assets/esri/core/workers/chunks/f6912532aae1638cbe8f.js +1 -0
  306. package/assets/esri/core/workers/chunks/f6d5dd2eef0d9918096e.js +1 -0
  307. package/assets/esri/core/workers/chunks/f89976ec97938bf86996.js +1 -0
  308. package/assets/esri/core/workers/chunks/f9edc685099f51363f41.js +1 -0
  309. package/assets/esri/core/workers/chunks/fa687ba2d66fcc2501da.js +1 -0
  310. package/assets/esri/core/workers/chunks/fe68c28d3c61f116ff23.js +1 -0
  311. package/assets/esri/core/workers/chunks/fef5dc19736f12dfa99a.js +1 -0
  312. package/assets/esri/core/workers/chunks/ffcd4fca7f67e1f943f1.js +1 -0
  313. package/assets/esri/themes/dark/main.css +1 -1
  314. package/assets/esri/themes/light/main.css +1 -1
  315. package/assets/esri/themes/light/view.css +1 -1
  316. package/chunks/OITDim.glsl.js +3 -4
  317. package/config.js +1 -1
  318. package/core/workers/WorkerHandle.js +1 -1
  319. package/geometry/Mesh.js +1 -1
  320. package/geometry/support/DoubleArray.js +1 -1
  321. package/geometry/support/triangulationUtilsDeprecated.js +1 -1
  322. package/kernel.js +1 -1
  323. package/package.json +3 -3
  324. package/popup/Feature.d.ts +2 -0
  325. package/popup/Feature.js +1 -1
  326. package/popup/actions.js +1 -1
  327. package/support/revision.js +1 -1
  328. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  329. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  330. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  331. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  332. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  333. package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
  334. package/views/3d/FocusAreasView.js +1 -1
  335. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  336. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  337. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  338. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  339. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  340. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  341. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  342. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  343. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  344. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  345. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  346. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  347. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  348. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  349. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  350. package/views/3d/support/renderInfoUtils/polygonDeprecated.js +1 -1
  351. package/views/3d/terrain/PatchRenderData.js +1 -1
  352. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  353. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
  354. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  355. package/views/3d/webgl-engine/lib/SamplerRepository.js +2 -0
  356. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  357. package/views/ViewAnimation.d.ts +2 -21
  358. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  359. package/views/support/rasterHitTestUtils.js +2 -0
  360. package/views/webgl/Sampler.js +1 -1
  361. package/widgets/support/widgetUtils.js +1 -1
  362. package/assets/esri/core/workers/chunks/01be1315c60810651783.js +0 -1
  363. package/assets/esri/core/workers/chunks/0dd12d6af0cf7707109c.js +0 -2
  364. package/assets/esri/core/workers/chunks/155f57fe9886ef322e2a.js +0 -1
  365. package/assets/esri/core/workers/chunks/170f4d83555d238e365b.js +0 -1
  366. package/assets/esri/core/workers/chunks/171cca726a763c770469.js +0 -1
  367. package/assets/esri/core/workers/chunks/1761dc5799850ca7b66c.js +0 -1
  368. package/assets/esri/core/workers/chunks/17d54e77001ccb48a258.js +0 -1
  369. package/assets/esri/core/workers/chunks/19afacc9a741038e4bfb.js +0 -1
  370. package/assets/esri/core/workers/chunks/1a198c9e17f7a058669e.js +0 -1
  371. package/assets/esri/core/workers/chunks/1ae4e43a399e1974f106.js +0 -1
  372. package/assets/esri/core/workers/chunks/1c742bfe3b0aa51823d1.js +0 -1
  373. package/assets/esri/core/workers/chunks/1d8777266fb1c5cfca55.js +0 -1
  374. package/assets/esri/core/workers/chunks/1f76c06af4682c85bc21.js +0 -1
  375. package/assets/esri/core/workers/chunks/205e957ffd7e95f530f7.js +0 -1
  376. package/assets/esri/core/workers/chunks/210629f3c28d4339c655.js +0 -1
  377. package/assets/esri/core/workers/chunks/21a8e2a11ffacc226e2b.js +0 -1
  378. package/assets/esri/core/workers/chunks/27643750dce502fedef3.js +0 -1
  379. package/assets/esri/core/workers/chunks/29b1a4ce7646b403008e.js +0 -1
  380. package/assets/esri/core/workers/chunks/2a65bbe6c63c384cbf5f.js +0 -1
  381. package/assets/esri/core/workers/chunks/2fa69ca3ba8c442dd7d6.js +0 -1
  382. package/assets/esri/core/workers/chunks/35217befc8f9882d139e.js +0 -1
  383. package/assets/esri/core/workers/chunks/3a2ecb883fdb5c598544.js +0 -30
  384. package/assets/esri/core/workers/chunks/3eef3c2e94aa2a00d76a.js +0 -1
  385. package/assets/esri/core/workers/chunks/40d6ad030614099155cd.js +0 -1414
  386. package/assets/esri/core/workers/chunks/41e59d75ccb51a238739.js +0 -1
  387. package/assets/esri/core/workers/chunks/44016e1176629c36bc11.js +0 -1
  388. package/assets/esri/core/workers/chunks/499b899bf88aaf29230d.js +0 -1
  389. package/assets/esri/core/workers/chunks/4b0d6309abf273f1f79f.js +0 -1
  390. package/assets/esri/core/workers/chunks/4e07827ab870c65377d3.js +0 -1
  391. package/assets/esri/core/workers/chunks/51852ef71ac04954fdae.js +0 -1
  392. package/assets/esri/core/workers/chunks/53b797e384be9628fc94.js +0 -1
  393. package/assets/esri/core/workers/chunks/549a51dedcc49f366e53.js +0 -1
  394. package/assets/esri/core/workers/chunks/54c0306082d30d59cba2.js +0 -1
  395. package/assets/esri/core/workers/chunks/57cdd5d4ae073d5ca725.js +0 -1
  396. package/assets/esri/core/workers/chunks/5b9257c5359fa05f4f28.js +0 -1
  397. package/assets/esri/core/workers/chunks/5d574079f0e96e883aab.js +0 -1
  398. package/assets/esri/core/workers/chunks/5d967bcf71c05ddb1ab6.js +0 -1
  399. package/assets/esri/core/workers/chunks/60d0f8a949b130baff81.js +0 -1
  400. package/assets/esri/core/workers/chunks/61778185d702da468b00.js +0 -1
  401. package/assets/esri/core/workers/chunks/61b49cdaf288f36f9288.js +0 -1
  402. package/assets/esri/core/workers/chunks/621ea864e2774f160d1c.js +0 -1
  403. package/assets/esri/core/workers/chunks/679086351352756b33c9.js +0 -1
  404. package/assets/esri/core/workers/chunks/681e97ebbf9c69c410c6.js +0 -1
  405. package/assets/esri/core/workers/chunks/69644b8a6ce340ca1159.js +0 -1
  406. package/assets/esri/core/workers/chunks/6a567755b67c06d16f21.js +0 -1
  407. package/assets/esri/core/workers/chunks/6e7bb6d3e739527116a4.js +0 -1
  408. package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +0 -1
  409. package/assets/esri/core/workers/chunks/71326d16b5cc35c3ff7f.js +0 -1
  410. package/assets/esri/core/workers/chunks/78fbfc03d9b827c3f767.js +0 -1
  411. package/assets/esri/core/workers/chunks/7d0350f459844162d3a7.js +0 -1
  412. package/assets/esri/core/workers/chunks/7e39e9d4d68843b60e4c.js +0 -1
  413. package/assets/esri/core/workers/chunks/823127b23bec07e1f9d0.js +0 -2
  414. package/assets/esri/core/workers/chunks/84eb889b9cce35dac2e5.js +0 -1
  415. package/assets/esri/core/workers/chunks/888f6387e795d45a7ad3.js +0 -2
  416. package/assets/esri/core/workers/chunks/891d97d0da6361d63679.js +0 -1
  417. package/assets/esri/core/workers/chunks/8969788c57bcc11bf77b.js +0 -1
  418. package/assets/esri/core/workers/chunks/8d6da6573d07385f4ed5.js +0 -1
  419. package/assets/esri/core/workers/chunks/8ede12f54b215c52cf3c.js +0 -1
  420. package/assets/esri/core/workers/chunks/8fb336c2066113300d0d.js +0 -1
  421. package/assets/esri/core/workers/chunks/8fed6becd107d2ed9bbd.js +0 -1
  422. package/assets/esri/core/workers/chunks/97062996e1e4196cfa7c.js +0 -1
  423. package/assets/esri/core/workers/chunks/97210bcb5e3cf3ac961b.js +0 -1
  424. package/assets/esri/core/workers/chunks/9c819ebdc98ed8b6afcf.js +0 -1
  425. package/assets/esri/core/workers/chunks/9d7ffd83f69d6e639f09.js +0 -1
  426. package/assets/esri/core/workers/chunks/9dfd00972c12a4adc15d.js +0 -1
  427. package/assets/esri/core/workers/chunks/9fab410b9fa668dc498b.js +0 -1
  428. package/assets/esri/core/workers/chunks/a061a17b62686f945e81.js +0 -1
  429. package/assets/esri/core/workers/chunks/a30815a0155a3b8790b4.js +0 -1
  430. package/assets/esri/core/workers/chunks/a43decc8ede8b4910553.js +0 -1
  431. package/assets/esri/core/workers/chunks/a462aa1c7b68efad6906.js +0 -1
  432. package/assets/esri/core/workers/chunks/a520f83ae0c3c3e78858.js +0 -1
  433. package/assets/esri/core/workers/chunks/a5d9dbb1fef8c4465943.js +0 -1
  434. package/assets/esri/core/workers/chunks/a73e8b80760dc88f926f.js +0 -1
  435. package/assets/esri/core/workers/chunks/b014f0b2385dc82dc683.js +0 -2
  436. package/assets/esri/core/workers/chunks/b2120c4c56656be941ae.js +0 -1
  437. package/assets/esri/core/workers/chunks/b8005b1996f42dee8237.js +0 -1
  438. package/assets/esri/core/workers/chunks/b85c9ceeece1bae67a16.js +0 -1
  439. package/assets/esri/core/workers/chunks/b8e85b7d5eed6e7c79b5.js +0 -1
  440. package/assets/esri/core/workers/chunks/bbdf27bc34fadbe8e6fe.js +0 -1
  441. package/assets/esri/core/workers/chunks/bc85bb82cfcbc216fa31.js +0 -1
  442. package/assets/esri/core/workers/chunks/be42fe0b7ba0e27030b2.js +0 -1
  443. package/assets/esri/core/workers/chunks/be4d13088a557b7de4b1.js +0 -1
  444. package/assets/esri/core/workers/chunks/be61ea8e1883b915bbb1.js +0 -1
  445. package/assets/esri/core/workers/chunks/bf758d57091fa534c1f8.js +0 -1
  446. package/assets/esri/core/workers/chunks/bfd516c37fb717e14d71.js +0 -1
  447. package/assets/esri/core/workers/chunks/c22945637a40355fbe61.js +0 -1
  448. package/assets/esri/core/workers/chunks/c25a58d9f94aaa96957d.js +0 -1
  449. package/assets/esri/core/workers/chunks/c6a43f748dbf8bac4bb5.js +0 -1
  450. package/assets/esri/core/workers/chunks/c7ca47f5d4b2f3885239.js +0 -1
  451. package/assets/esri/core/workers/chunks/d024278a1c2aa7d22be3.js +0 -1
  452. package/assets/esri/core/workers/chunks/d264aed5dbe09e34040f.js +0 -1
  453. package/assets/esri/core/workers/chunks/d4e55eb75fa4d3ac1e84.js +0 -1
  454. package/assets/esri/core/workers/chunks/d5c7ebfd5c2ca635a7a8.js +0 -1
  455. package/assets/esri/core/workers/chunks/d635f97b7b82a37482d6.js +0 -1
  456. package/assets/esri/core/workers/chunks/d7b92bd9198dd3b27eb5.js +0 -1
  457. package/assets/esri/core/workers/chunks/d816d1a4220d827faf63.js +0 -1
  458. package/assets/esri/core/workers/chunks/d82b543c96f09ded3bf9.js +0 -2
  459. package/assets/esri/core/workers/chunks/d8dde0d1759e009b8373.js +0 -1
  460. package/assets/esri/core/workers/chunks/da0a61f73d45ea9e71fc.js +0 -1
  461. package/assets/esri/core/workers/chunks/e305ced975d885c28e7e.js +0 -1
  462. package/assets/esri/core/workers/chunks/e3c60b7df2740e600066.js +0 -1
  463. package/assets/esri/core/workers/chunks/e5801b0f3893d4d4f5b0.js +0 -1
  464. package/assets/esri/core/workers/chunks/e59f5dc8c85bcea66e98.js +0 -1
  465. package/assets/esri/core/workers/chunks/e611cd03eee4fae7c413.js +0 -1
  466. package/assets/esri/core/workers/chunks/e62d08f5488a74cbda82.js +0 -1
  467. package/assets/esri/core/workers/chunks/e64a92b6f4075616f40f.js +0 -1
  468. package/assets/esri/core/workers/chunks/e78b442417f6a903b9b1.js +0 -1
  469. package/assets/esri/core/workers/chunks/ef0fe4e1a9e960a74c60.js +0 -1
  470. package/assets/esri/core/workers/chunks/efbbcf467b2a27a92b85.js +0 -1
  471. package/assets/esri/core/workers/chunks/f201edf9b68717a6106d.js +0 -1
  472. package/assets/esri/core/workers/chunks/f59f1db572be1f19887f.js +0 -1
  473. package/assets/esri/core/workers/chunks/f9cde38cb56c547e87e5.js +0 -1
  474. package/assets/esri/core/workers/chunks/fd6bbe47773bbd9f7dd9.js +0 -1
  475. package/assets/esri/core/workers/chunks/fe3b42eadcdd9ba54f05.js +0 -1
  476. /package/assets/esri/core/workers/chunks/{0dd12d6af0cf7707109c.js.LICENSE.txt → 7bacdd65a6cc4d284e0a.js.LICENSE.txt} +0 -0
  477. /package/assets/esri/core/workers/chunks/{823127b23bec07e1f9d0.js.LICENSE.txt → 85edbb072a2ce6c1bb30.js.LICENSE.txt} +0 -0
  478. /package/assets/esri/core/workers/chunks/{888f6387e795d45a7ad3.js.LICENSE.txt → d4a9eb4470cc6a1f67fc.js.LICENSE.txt} +0 -0
  479. /package/assets/esri/core/workers/chunks/{b014f0b2385dc82dc683.js.LICENSE.txt → f09a41ad239d467d9438.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3500],{563(e,t,i){i.d(t,{QueueProcessor:()=>c,SharedConcurrency:()=>u});var s=i(97768),n=i(17676),r=i(9775),o=i(32587),l=i(76030),a=i(44794);class c{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,a.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??f,this._queue=new r.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,i)=>e(i))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const i=this._get(e);if(i)return i;const s=new AbortController,r=Promise.withResolvers(),o=t?(0,n.u7)(t,()=>s.abort()):null,l=(0,n.NY)(s.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),a(),r.reject((0,n.NK)())}),a=()=>{l.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,r),this._controllers.set(e,s),r.promise.then(a,a),this._queue.push(e),this._scheduleNext(),r.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,l._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const i=new AbortController,s=new h(e,i);this._processingItems.set(e,s),this.sharedConcurrency.current.value+=1;try{t=this.process(e,i.signal)}catch(e){this._processError(s,e)}(0,n.$X)(t)?(s.promise=t,t.then(e=>this._processResult(s,e),e=>this._processError(s,e))):this._processResult(s,t)}}class h{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class u{constructor(e){this.limit=e,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const f=new u(1/0)},32587(e,t,i){i.d(t,{A:()=>r});var s=i(62788),n=i(95488);class r{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach((i,s)=>e.call(t,i,s,this),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const i of t){if(!this._map.has(i))continue;const t=this._map.get(i),s=e(t,i);s!==t&&this.set(i,s)}})}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},44794(e,t,i){i.d(t,{v:()=>l});var s=i(4718),n=i(62788),r=i(95488);class o{constructor(e,t){this._observable=new r.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=s.gh){return new o(e,t)}},49859(e,t,i){i.d(t,{A:()=>E});var s=i(5482),n=i(11254),r=i(49186),o=i(25482),l=i(53966),a=i(17676),c=i(563),h=i(91429),u=i(56507),f=i(5443),m=i(86738),d=i(16930),p=i(7548),g=i(4366),x=i(37373);const y=new Map,_=new class{constructor(e=15e3,t=5e3){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t)}decreaseRefCount(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.refCount--,e.refCount<=0&&(s.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.ts=Date.now(),e.refCount++,s.delete(i),s.set(i,e),e.block}return null}putBlock(e,t,i,s){const n=this._cachedBlocks,r=e+"/"+t;if(n.has(r)){const e=n.get(r);e.ts=Date.now(),e.refCount++}else n.set(r,{block:i,ts:Date.now(),refCount:1,controller:s});this._trim(),this._updateTimer()}deleteBlock(e,t){const i=this._cachedBlocks,s=e+"/"+t;i.has(s)&&i.delete(s)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const e=this._cachedBlocks;this._timer=setInterval(()=>{const t=Array.from(e),i=Date.now();for(let s=0;s<t.length&&t[s][1].ts<=i-this._duration;s++)e.delete(t[s][0]);0===e.size&&this._clearTimer()},this._interval)}_trim(){const e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;const t=Array.from(e);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}};function I(e,t,i){const s=y.get(e);if(!s)return null==t?_.decreaseRefCount(e,i):0;if(null==t||null==s[t])return _.decreaseRefCount(e,i);const n=s[t]?.cache,r=n?.get(i);if(n&&r){if(r.refCount--,0===r.refCount){n.delete(i);for(let e=0;e<s.length;e++)s[e]?.cache.delete(i);r.controller&&r.controller.abort()}return r.refCount}return 0}function b(e,t,i){const s=y.get(e);if(!s)return null==t?_.getBlock(e,i):null;if(null==t||null==s[t]){for(let e=0;e<s.length;e++){const t=s[e]?.cache.get(i);if(t)return t.refCount++,t.block}return _.getBlock(e,i)}const n=s[t]?.cache.get(i);if(n)return n.refCount++,n.block;for(let e=0;e<s.length;e++){if(e===t||!s[e])continue;const n=s[e]?.cache,r=n?.get(i);if(n&&r)return r.refCount++,n.set(i,r),r.block}return null}function v(e,t,i,s,n=null){const r=y.get(e);if(!r)return void(null==t&&_.putBlock(e,i,s,n));if(null==t||null==r[t])return void _.putBlock(e,i,s,n);const o={refCount:1,block:s,isResolved:!1,isRejected:!1,controller:n};s.then(()=>o.isResolved=!0).catch(()=>o.isRejected=!0),r[t]?.cache.set(i,o)}function w(e,t,i){const s=y.get(e);s?null!=t&&null!=s[t]?s[t]?.cache.delete(i):_.deleteBlock(e,i):null==t&&_.deleteBlock(e,i)}var k=i(94778),R=i(20758),S=i(47520),C=i(34251),T=i(60694),B=i(10873),P=i(45617),M=i(91806),A=i(20223),z=i(87045);let W=0,E=class extends o.o{constructor(){super(...arguments),this._tileFetchQueue=new c.QueueProcessor({concurrency:32,process:(e,t)=>this.fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"},this.rawBlockRegistryIds=[],this.refresh=(0,a.sg)(async e=>{await this._openPromise;const t=await this._refresh(e);return t.dataChanged&&function(e,t){const i=y.get(e);if(i){const e=t.map(e=>i[e]).filter(e=>null!=e);for(const t of e)t&&(Array.from(t.cache.values()).forEach(e=>{e.isResolved||e.isRejected||!e.controller||e.controller.abort()}),t.cache.clear())}}(this.rasterId,this.rawBlockRegistryIds),t})}normalizeCtorArgs(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:z.A.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){const{rasterInfo:e}=this,t=(0,x.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){const{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),(0,p.qg)(this)&&this.primaryRasters?.rasters?.forEach(t=>t.rasterJobHandler=e)}get rasterId(){return this.url||"rasterId-"+W++}set url(e){this._set("url",(0,T.Jf)(e,l.A.getLogger(this)))}async open(e){return this._openPromise??=(0,x.Hh)().then(()=>this._open(e)),this._openPromise}async fetchTile(e,t,i,s={}){const n=s.tileInfo||this.rasterInfo.storageInfo.tileInfo,o=this.getTileExtentFromTileInfo(e,t,i,n);if(!o)throw new r.A("imagery-tile:out-of-bounds","Level for fetch tile out of range");return s={noClip:!0,...s},this.fetchPixels(o,n.size[0],n.size[1],s)}async identify(e,t={}){e=(0,u.PZ)(m.A,e).clone().normalize();const{multidimensionalDefinition:i,timeExtent:s}=t,{rasterInfo:n}=this,{hasMultidimensionalTranspose:r,multidimensionalInfo:o}=n;let{transposedVariableName:l}=t;const a=null!=o&&r&&(null!=s||(0,g.DY)(i));a&&!l&&(l=null!=i&&i.length>0?i[0].variableName??void 0:o.variables[0].name,t={...t,transposedVariableName:l}),t=this._getRequestOptionsWithSliceId(t);const{spatialReference:c,extent:h}=n,{datumTransformation:d}=t;let y=(0,x._I)(e,c,d);if(!h.intersects(y))return{location:y,value:null};if(null!=n.transform){const e=n.transform.inverseTransform(y);if(!n.nativeExtent.intersects(e))return{location:e,value:null};y=e}let _=0;const I=null!=l&&null!=o&&n.hasMultidimensionalTranspose;if((0,p.qg)(this)){const e=this.primaryRasters.rasters[0];if(I)return e.identify(y,t);const{pixelSize:s}=n,r=3,o=s.x*r/2,l=s.y*r/2,a=new f.A({xmin:y.x-o,xmax:y.x+o,ymin:y.y-l,ymax:y.y+l,spatialReference:c}),h={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId,bandIds:t.bandIds},{pixelBlock:u}=await e.fetchPixels(a,r,r,h),{pixelBlock:m}=await this.fetchPixels(a,r,r,h);if(null==u)return{location:y,value:null};const d=Math.floor(r*r*.5),p=!u.mask||u.mask[d]?u.pixels.map(e=>e[d]):null;let g;return null!=m&&(g=!m.mask||m.mask[d]?m.pixels.map(e=>e[d]):void 0),{location:y,value:p,processedValue:g,pyramidLevel:0}}if(!I)if(t.srcResolution)_=(0,x.t$)(t.srcResolution,n,this.ioConfig.sampling).pyramidLevel;else if(_=await this.computeBestPyramidLevelForLocation(e,t),null==_)return{location:y,value:null};const b=this.identifyPixelLocation(y,_,null,I);if(null===b)return{location:y,value:null};const{row:v,col:w,rowOffset:k,colOffset:R,blockWidth:S}=b,C=await this._fetchRawTile(_,v,w,t);if(!C?.pixels?.length)return{location:y,value:null};const T=k*S+R;return this._processIdentifyResult(C,{srcLocation:y,position:T,pyramidLevel:_,useTransposedTile:!!I,requestSomeSlices:a,identifyOptions:t})}async fetchPixels(e,t,i,s={}){e=(0,x.Ps)(e),s=this._getRequestOptionsWithSliceId(s);const{_hasNoneOrGCSShiftTransform:n}=this;if(s.requestRawData&&n)return this._fetchPixels(e,t,i,s);const r=(0,x.FT)(e.spatialReference),o=(0,x.OM)(e);if(null==r||0===o||1===o&&this._isGlobalWrappableSource&&n)return this._fetchPixels(e,t,i,s);if(o>=3)return{extent:e,pixelBlock:null};const l=[],{xmin:a,xmax:c}=e,h=Math.round(r/(c-a)*t),u=h-Math.round((r/2-a)/(c-a)*t);let m=0;const d=[];for(let n=0;n<=o;n++){const p=new f.A({xmin:0===n?a:-r/2,xmax:n===o?c-r*n:r/2,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),g=0===n?h-u:n===o?t-m:h;m+=g,d.push(g);const x=s.disableWrapAround&&n>0?null:this._fetchPixels(p,g,i,s);l.push(x)}const p=(await Promise.all(l)).map(e=>e?.pixelBlock);let g=null;const y={width:t,height:i};return g=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:p,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:d},s)).pixelBlock:(0,S.z7)(p,y,{blockWidths:d}),{extent:e,srcExtent:(0,x._l)(e,this.rasterInfo.spatialReference,s.datumTransformation),pixelBlock:g}}async fetchRawPixels(e,t,i,s={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};const n=await this._fetchRawTiles(e,t,i,s),{nativeExtent:r,nativePixelSize:o,storageInfo:l}=this.rasterInfo,a=2**e,c=o.x*a,h=o.y*a,u=new f.A({xmin:r.xmin+c*t.x,xmax:r.xmin+c*(t.x+i.width-1),ymin:r.ymax-h*(t.y+i.height-1),ymax:r.ymax-h*t.y,spatialReference:r.spatialReference});if(!n)return{extent:u,srcExtent:u,pixelBlock:null};const{pixelBlocks:m,mosaicSize:d}=n;if(1===m.length&&null!=m[0]&&m[0].width===i.width&&m[0].height===i.height)return{extent:u,srcExtent:u,pixelBlock:n.pixelBlocks[0]};const p=e>0?l.pyramidBlockWidth:l.blockWidth,g=e>0?l.pyramidBlockHeight:l.blockHeight,x={x:t.x%p,y:t.y%g};let y;return y=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:d,destDimension:i,clipOffset:x,clipSize:i,coefs:null,sampleSpacing:null,interpolation:s.interpolation,alignmentInfo:null,blockWidths:null},s)).pixelBlock:(0,S.z7)(m,d,{clipOffset:x,clipSize:i}),{extent:u,srcExtent:u,pixelBlock:y}}fetchRawTile(e,t,i,s){throw new r.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,x._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t){return this.rasterJobHandler?this.rasterJobHandler.decode({data:e,options:t}):(0,R.D)(e,t)}async request(e,t,i=0){const{customFetchParameters:s}=this.ioConfig,{range:r,query:o,headers:l}=t;i=i??t.retryCount??this.ioConfig.retryCount;const a=r?{Range:`bytes=${r.from}-${r.to}`}:null;try{return await(0,n.A)(e,{...t,query:{...o,...s},headers:{...l,...a}})}catch(s){if(i>0)return i--,this.request(e,t,i);throw s}}getSliceIndex(e){const{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,g.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,s){const n=s.lodAt(e);return n?this.getTileExtent({x:n.resolution,y:n.resolution},t,i,s.origin,s.spatialReference,s.size):null}updateTileInfo(){const{storageInfo:e,spatialReference:t,extent:i,pixelSize:s}=this.rasterInfo,{pyramidResolutions:n}=e;if(!e.tileInfo){const r=[],o=e.maximumPyramidLevel||0;let l=(s.x+s.y)/2,a=1/.0254*96*l;for(let e=0;e<=o&&(r.unshift(new M.A({level:o-e,resolution:l,scale:a})),e!==o);e++)if(n){const t=(n[e].x+n[e].y)/2;a*=t/l,l=t}else l*=2,a*=2;const c=new m.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new z.A({origin:c,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:r}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,s){const{width:n,height:r,nativeExtent:o,pixelSize:l,spatialReference:a}=e,c=new m.A({x:o.xmin,y:o.ymax,spatialReference:a});null==s&&(s=Math.max(0,Math.round(Math.log(Math.max(n,r))/Math.LN2-8)));const h=this.computeBlockBoundary(o,512,512,{x:o.xmin,y:o.ymax},[l],s);e.storageInfo=new A.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:c,firstPyramidLevel:1,maximumPyramidLevel:s,blockBoundary:h})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,s,n,r=0,o=2){if(1===n.length&&r>0){n=[...n];let{x:e,y:t}=n[0];for(let i=0;i<r;i++)e*=o,t*=o,n.push({x:e,y:t})}const l=[],{x:a,y:c}=s;for(let s=0;s<n.length;s++){const{x:r,y:o}=n[s];l.push({minCol:Math.floor((e.xmin-a+.1*r)/t/r),maxCol:Math.floor((e.xmax-a-.1*r)/t/r),minRow:Math.floor((c-e.ymax+.1*o)/i/o),maxRow:Math.floor((c-e.ymin-.1*o)/i/o)})}return l}getPyramidPixelSize(e){const{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:s}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];const n=s**e;return{x:t.x*n,y:t.y*n}}identifyPixelLocation(e,t,i,s){const{spatialReference:n,nativeExtent:r,storageInfo:o}=this.rasterInfo,{maximumPyramidLevel:l,origin:a,transposeInfo:c}=o,h=s&&null!=c?c.tileSize[0]:o.blockWidth,u=s&&null!=c?c.tileSize[1]:o.blockHeight,f=(0,x._I)(e,n,i);if(!r.intersects(f))return null;if(t<0||t>l)return null;const m=this.getPyramidPixelSize(t),{x:d,y:p}=m,g=(a.y-f.y)/p/u,y=(f.x-a.x)/d/h,_=Math.min(u-1,Math.floor((g-Math.floor(g))*u)),I=Math.min(h-1,Math.floor((y-Math.floor(y))*h));return{pyramidLevel:t,row:Math.floor(g),col:Math.floor(y),rowOffset:_,colOffset:I,blockWidth:h,srcLocation:f}}getTileExtent(e,t,i,s,n,r){const[o,l]=r,a=s.x+i*o*e.x,c=a+o*e.x,h=s.y-t*l*e.y,u=h-l*e.y;return new f.A({xmin:a,xmax:c,ymin:u,ymax:h,spatialReference:n})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){const s=this.rasterInfo.storageInfo.blockBoundary[e];return!s||s.maxRow<t||s.maxCol<i||s.minRow>t||s.minCol>i}updateImageSpaceRasterInfo(e){const{pixelSize:t}=e,{width:i,height:s}=e,n=d.A.WebMercator;e.spatialReference=n,e.extent=e.nativeExtent=new f.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-s,spatialReference:n}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new m.A({x:1,y:1,spatialReference:n});const{extent:r,storageInfo:o}=e;if(o){o.origin=new m.A({x:r.xmin,y:r.ymax,spatialReference:n});const{pyramidResolutions:i,tileInfo:s}=o;if(i&&i.forEach(e=>{e.x/=t.x,e.y/=t.y}),s){s.origin=o.origin;const t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;s.lods.forEach((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254})}}}async _refresh(e){return{dataChanged:!0}}async _fetchPixels(e,t,i,s={}){let n=(0,x.OM)(e);if(n>=2)return{extent:e,pixelBlock:null};const r=this._getSourceDataInfo(e,t,i,s),{pyramidLevel:o,srcResolution:l,srcWidth:a,srcHeight:c,ul:h}=r;let{srcExtent:u}=r;if(0===a||0===c)return{extent:e,srcExtent:u,pixelBlock:null};const{rasterInfo:f}=this,d=f.transform,p="gcs-shift"===d?.type,g=null!=(0,x.FT)(e.spatialReference);!p&&g||(n=(0,x.OM)(u,p));const y=await this._fetchRawTiles(o,h,{width:a,height:c,wrapCount:n},s);if(!y)return{extent:e,srcExtent:u,pixelBlock:null};u=y.extent;const _=f.storageInfo,I=o>0?_.pyramidBlockWidth:_.blockWidth,b=o>0?_.pyramidBlockHeight:_.blockHeight;let{x:v,y:w}=f.pixelSize;if(o>0){const{pyramidResolutions:e,pyramidScalingFactor:t}=_;if(null!=e&&e[o-1])({x:v,y:w}=e[o-1]);else{const e=t**o;v*=e,w*=e}}const k=f.spatialReference,R=new m.A({x:v,y:w,spatialReference:k}),T=I===a&&b===c&&h.x%I===0&&h.y%b===0,B=new m.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),P=!e.spatialReference.equals(k),M=k.isGeographic?1e-9:1e-4,{datumTransformation:A}=s;if(!P&&T&&1===y.pixelBlocks.length&&I===t&&b===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(l,B,M))return{extent:e,srcExtent:u,srcTilePixelSize:R,pixelBlock:y.pixelBlocks[0]};const z=g&&null!=(0,x.FT)(u.spatialReference)&&this._hasNoneOrGCSShiftTransform,W=s.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");W&&!this.rasterJobHandler&&await(0,x.Hh)();const E=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:u,pixelSize:B.toJSON(),datumTransformation:A,rasterTransform:d,hasWrapAround:n>0||z,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:W},s):(0,x.l0)({projectedExtent:e,srcBufferExtent:u,pixelSize:B,datumTransformation:A,rasterTransform:d,hasWrapAround:n>0||z,isAdaptive:!1,includeGCSGrid:W});let N;const D=!s.requestRawData,H={rows:E.spacing[0],cols:E.spacing[1]},q=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(o,u.xmin):void 0,{pixelBlocks:L,mosaicSize:O,isPartiallyFilled:F}=y;let G=null;if(this.rasterJobHandler){const e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:L,srcMosaicSize:O,destDimension:D?{width:t,height:i}:null,coefs:D?E.coefficients:null,sampleSpacing:D?H:null,projectDirections:W,gcsGrid:W?E.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:s.interpolation,alignmentInfo:q,blockWidths:null},s);({pixelBlock:N,localNorthDirections:G}=e)}else{const e=(0,S.z7)(L,O,{alignmentInfo:q});N=D?(0,S.$i)(e,{width:t,height:i},E.coefficients,H,s.interpolation):e,W&&E.gcsGrid&&(G=(0,S.QF)({width:t,height:i},E.gcsGrid),N=(0,C.Y2)(N,this.rasterInfo.dataType,G))}return s.requestRawData||W?{extent:e,srcExtent:u,srcTilePixelSize:R,pixelBlock:N,transformGrid:E,localNorthDirections:G,isPartiallyFilled:F}:{extent:e,srcExtent:e,srcTilePixelSize:R,pixelBlock:N}}async _fetchRawTiles(e,t,i,s){const{origin:n,blockBoundary:r}=this.rasterInfo.storageInfo,{blockWidth:o,blockHeight:l}=this.getBlockWidthHeight(e);let{x:a,y:c}=t,{width:h,height:u,wrapCount:m}=i;const d=this._getRasterTileAlignmentInfo(e,0);s.buffer&&(a-=s.buffer.cols,c-=s.buffer.rows,h+=2*s.buffer.cols,u+=2*s.buffer.rows);let p=0,g=0,x=0;m&&null!=d&&(({worldColumnCountFromOrigin:g,originColumnOffset:x,rightPadding:p}=d),g*d.blockWidth-p>=a+h&&(p=0));const y=Math.floor(a/o),_=Math.floor(c/l),I=Math.floor((a+h+p-1)/o),b=Math.floor((c+u+p-1)/l),v=r[e];if(!v)return null;const{minRow:w,minCol:k,maxCol:R,maxRow:S}=v;if(0===m&&(b<w||I<k||_>S||y>R))return null;const C=new Array;let T=!1;const B=null==this.ioConfig.allowPartialFill?s.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=_;t<=b;t++)for(let i=y;i<=I;i++){let n=i;if(!s.disableWrapAround&&m&&null!=d&&g<=i&&(n=i-g-x),t>=w&&n>=k&&S>=t&&R>=n){const i=this._fetchRawTile(e,t,n,s);B?C.push(new Promise(e=>{i.then(t=>e(t)).catch(()=>{T=!0,e(null)})})):C.push(i)}else C.push(Promise.resolve(null))}if(0===C.length)return null;const P=await Promise.all(C),M={height:(b-_+1)*l,width:(I-y+1)*o},{spatialReference:A}=this.rasterInfo,z=this.getPyramidPixelSize(e),{x:W,y:E}=z;return{extent:new f.A({xmin:n.x+y*o*W,xmax:n.x+(I+1)*o*W,ymin:n.y-(b+1)*l*E,ymax:n.y-_*l*E,spatialReference:A}),pixelBlocks:P,mosaicSize:M,isPartiallyFilled:T}}_fetchRawTile(e,t,i,s){const{storageInfo:n}=this.rasterInfo,r=null!=n.transposeInfo&&!!s.transposedVariableName;if(!r){const s=n.blockBoundary[e];if(!s)return Promise.resolve(null);const{minRow:r,minCol:o,maxCol:l,maxRow:a}=s;if(t<r||i<o||t>a||i>l)return Promise.resolve(null)}const o=r?s.transposeVariableName:s.sliceId,l=n.isBsqTile?s.bandIds:null,c=function(e,t,i){const s=[];return null!=t&&s.push(`sliceId=${t}`),null!=i&&s.push(`bandIds=${i.join(",")}`),s.length?`${e}?${s.join("&")}`:e}(this.rasterId,o,l),h=`${e}/${t}/${i}`;let u=b(c,s.registryId,h);if(null==u){const r=new AbortController,o=s.bandIds?.slice();if(o?.length&&n.isBsqTile){const n=new Set(o),l=[],a=Array.from(n);for(const n of a)l.push(this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:{...s,bandIds:[n]}},{signal:r.signal}));u=Promise.all(l).then(e=>{if(e.some(e=>null==e))return null;if(a.length!==o.length){const t=[];for(const i of o){let s=e[a.indexOf(i)];t.includes(s)&&(s=s.clone()),t.push(s)}e=t}return this.rasterJobHandler?this.rasterJobHandler.compositeBands({pixelBlocks:e},{signal:r.signal,transferPixelsToWorker:!0}):(0,S.Wy)(e)})}else u=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:s},{signal:r.signal});v(c,s.registryId,h,u,r),u.catch(()=>w(c,s.registryId,h))}return s.signal&&(0,a.u7)(s,()=>{I(c,s.registryId,h)}),u}_computeMagDirValues(e){const{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;const s=e[0].length;if("vector-magdir"===i){const t=e[1].map(e=>(e+360)%360);return[e[0],t]}const[n,r]=e,o=[],l=[];for(let e=0;e<s;e++){const[t,i]=(0,C.Lu)([n[e],r[e]]);o.push(t),l.push(i)}return[o,l]}_getRasterTileAlignmentInfo(e,t){return null==this._rasterTileAlignmentInfo&&(this._rasterTileAlignmentInfo=(0,x.DO)(this.rasterInfo)),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,s={}){const n={datumTransformation:s.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};s.srcResolution&&(n.srcResolution=s.srcResolution,this._updateSourceDataInfo(e,n));const r=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:o,srcHeight:l,pyramidLevel:a}=n,c=o/t,h=l/i,u=a<r&&c*h>=16,f=a===r&&this._requireTooManySrcTiles(o,l,t,i);if(u||f||0===o||0===l){const o=new m.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference});let l=(0,x.Wo)(o,this.rasterInfo.spatialReference,e,n.datumTransformation);const f=!l||s.srcResolution&&l.x+l.y<s.srcResolution.x+s.srcResolution.y;if(u&&s.srcResolution&&f){const e=Math.round(Math.log(Math.max(c,h))/Math.LN2)-1;if(r-a+3>=e){const t=2**e;l={x:s.srcResolution.x*t,y:s.srcResolution.y*t}}}l&&(n.srcResolution=l,this._updateSourceDataInfo(e,n))}return this._requireTooManySrcTiles(n.srcWidth,n.srcHeight,t,i)&&(n.srcWidth=0,n.srcHeight=0),n}_requireTooManySrcTiles(e,t,i,s){const{tileInfo:n}=this.rasterInfo.storageInfo,r=e/i,o=t/s;return Math.ceil(e/n.size[0])*Math.ceil(t/n.size[1])>=256*Math.max(1,(i+s)/1024)||r>8||o>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;const{rasterInfo:i}=this,s=i.spatialReference,{srcResolution:n,datumTransformation:r}=t,{pyramidLevel:o,pyramidResolution:l,excessiveReading:a}=(0,x.t$)(n,i,this.ioConfig.sampling);if(a)return;let c=t.srcExtent||(0,x._l)(e,s,r);if(null==c)return;const h=i.transform;h&&(c=h.inverseTransform(c)),t.srcExtent=c;const{origin:u}=i.storageInfo,{width:f,height:m,ul:d}=(0,p.$g)(c,u,l,o);t.pyramidLevel=o,t.pyramidResolution=l,t.srcWidth=f,t.srcHeight=m,t.ul=d}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){const{srcLocation:i,position:s,pyramidLevel:n,useTransposedTile:r}=t,o=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[s])return{location:i,value:null};const{multidimensionalInfo:l}=this.rasterInfo;if(null==l||!r){const t=e.pixels.map(e=>e[s]),r={location:i,value:t,pyramidLevel:n},o=this._computeMagDirValues(t.map(e=>[e]));return o?.length&&(r.magdirValue=o.map(e=>e[0])),r}let a=e.pixels.map(e=>e.slice(s*o,s*o+o)),c=this._computeMagDirValues(a);const{requestSomeSlices:h,identifyOptions:u}=t;let f=(0,g.QW)(l,u.transposedVariableName);if(h){const e=(0,g.xx)(f,u.multidimensionalDefinition,u.timeExtent);a=a.map(t=>e.map(e=>t[e])),c=c?.map(t=>e.map(e=>t[e])),f=e.map(e=>f[e])}const m=e.noDataValues||this.rasterInfo.noDataValue,d={pixels:a,pixelType:e.pixelType};let p;return null!=m&&((0,k.Sp)(d,m),p=d.mask),{location:i,value:null,dataSeries:f.map((e,t)=>{const i={value:0===p?.[t]?null:a.map(e=>e[t]),multidimensionalDefinition:e.multidimensionalDefinition.map(e=>new P.A({...e,isSlice:!0}))};return c?.length&&(i.magdirValue=[c[0][t],c[1][t]]),i}),pyramidLevel:n}}};(0,s.Cg)([(0,h.MZ)()],E.prototype,"_rasterTileAlignmentInfo",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"_tileFetchQueue",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"_isGlobalWrappableSource",null),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"_hasNoneOrGCSShiftTransform",null),(0,s.Cg)([(0,h.MZ)()],E.prototype,"_openPromise",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"rasterJobHandler",null),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],E.prototype,"rasterId",null),(0,s.Cg)([(0,h.MZ)(B.OZ)],E.prototype,"url",null),(0,s.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],E.prototype,"datasetName",void 0),(0,s.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],E.prototype,"datasetFormat",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"hasUniqueSourceStorageInfo",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"ioConfig",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],E.prototype,"rawBlockRegistryIds",void 0),E=(0,s.Cg)([(0,h.$K)("esri.layers.raster.datasets.BaseRaster")],E)},330(e,t,i){function s(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const n=[];if(t){const r=s(e,i);for(let e=0;e<r.length;e++)s(r[e],t).forEach(e=>n.push(e));return n}const r=e.getElementsByTagNameNS("*",i);if(!r||0===r.length)return[];for(let e=0;e<r.length;e++)n.push(r[e]||r.item(e));return n}function n(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const r=s(e,i);return r.length>0?t?n(r[0],t):r[0]:null}function r(e,t=null){const i=t?n(e,t):e;let s;return i?(s=i.textContent||i.nodeValue,s?s.trim():null):null}function o(e,t){const i=s(e,t),n=[];let r;for(let e=0;e<i.length;e++)r=i[e].textContent||i[e].nodeValue,r&&(r=r.trim(),""!==r&&n.push(r));return n}function l(e,t=null){const i=r(e,t);return i?.split(" ").map(e=>Number(e))??[]}function a(e,t){return o(e,t).map(e=>Number(e))}function c(e,t){const i=r(e,t);return Number(i)}function h(e,t){const i=e?.nodeName?.toLowerCase(),s=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===s}function u(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>o,IC:()=>s,Ui:()=>a,V6:()=>n,g7:()=>h,mX:()=>r,pN:()=>l,v7:()=>c,vv:()=>u})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4341],{52106(e,t,i){i.d(t,{A:()=>v});var r,n,o=i(5482),s=i(37838),a=i(69540),l=i(51447),u=i(25482),c=i(53966),d=i(36708),p=i(24326),m=i(91429),g=i(12195),h=i(65864),y=i(50498),f=i(55156),M=i(60950),I=i(54339),w=i(94128),A=i(33910);function b(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends((0,a.OU)(u.o)){static{r=w.Z}static{n=this}constructor(e){super(e),this[r]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,M.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,I.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,I.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(n.action=r),"attributes"===e&&(n.attributeName=r),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,d.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,h.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,m.MZ)({value:null})],v.prototype,"attributes",null),(0,o.Cg)([(0,m.MZ)({value:null,types:y.yR,json:{read:h.rS}})],v.prototype,"geometry",null),(0,o.Cg)([(0,m.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,o.Cg)([(0,m.MZ)({clonable:!1})],v.prototype,"layer",void 0),(0,o.Cg)([(0,m.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,o.Cg)([(0,m.MZ)({type:s.A,value:null})],v.prototype,"popupTemplate",null),(0,o.Cg)([(0,m.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,m.MZ)({value:null,types:A.Es})],v.prototype,"symbol",null),(0,o.Cg)([(0,m.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,o.Cg)([(0,m.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=n=(0,o.Cg)([(0,m.$K)("esri.Graphic")],v)},69052(e,t,i){i.d(t,{hr:()=>n,ie:()=>l,uC:()=>a});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return o(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+s(this.range,e-t,i)}minimalMonotonic(e,t,i){return o(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function o(e,t,i,r,n=0,o=!1){return(r-=n)<t?r+=s(e,t-r):r>i&&(r-=s(e,r-i)),o&&r===i&&(r=t),r+n}function s(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360))},6797(e,t,i){i.d(t,{Ui:()=>p});var r=i(69622),n=i(7762),o=i(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=l(e),n=l(t);if(0===r.length&&0===n.length)return;if(!r.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!r.includes(e)),p=r.filter(e=>!n.includes(e)),m=r.filter(i=>n.includes(i)&&u(e,i)!==u(t,i)).concat(o,p).sort(),g=c(e);if(g&&s.has(g)&&m.length)return{type:"complete",oldValue:e,newValue:t};let h;const y=a(e)&&a(t);for(const r of m){const n=u(e,r),o=u(t,r);let s;if((y||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&c(n)===c(o)?d(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=h?h.diff[r]=s:h={type:"partial",diff:{[r]:s}})}}return h}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},9093(e,t,i){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:r,fromValues:function(e,t,i,r,n,o,s,a,l,u,c,d,p,m,g,h){return[e,t,i,r,n,o,s,a,l,u,c,d,p,m,g,h]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,i){i.d(t,{$A:()=>S,Bw:()=>o,C:()=>s,Cc:()=>D,DI:()=>b,Il:()=>_,Io:()=>M,Ln:()=>f,Om:()=>C,Qr:()=>d,Re:()=>u,S8:()=>v,T9:()=>h,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>R,ei:()=>x,fw:()=>N,gL:()=>j,hG:()=>I,hZ:()=>a,hs:()=>y,jb:()=>z,jk:()=>g,lo:()=>E,lw:()=>c,m3:()=>w,oW:()=>k,t2:()=>B,tn:()=>p,uE:()=>O,xg:()=>H,ze:()=>A});var r=i(51850),n=i(34304);function o(e){const t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function h(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function f(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function M(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(i*i+r*r+n*n)}function I(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return i*i+r*r+n*n}function w(e){const t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function A(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function b(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function v(e,t){const i=t[0],r=t[1],n=t[2];let o=i*i+r*r+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,i){const r=t[0],n=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=n*l-o*a,e[1]=o*s-r*l,e[2]=r*a-n*s,e}function D(e,t,i,r){const n=t[0],o=t[1],s=t[2];return e[0]=n+r*(i[0]-n),e[1]=o+r*(i[1]-o),e[2]=s+r*(i[2]-s),e}function T(e,t,i){const r=t[0],n=t[1],o=t[2];return e[0]=i[0]*r+i[4]*n+i[8]*o+i[12],e[1]=i[1]*r+i[5]*n+i[9]*o+i[13],e[2]=i[2]*r+i[6]*n+i[10]*o+i[14],e}function x(e,t,i){const r=t[0],n=t[1],o=t[2];return e[0]=r*i[0]+n*i[3]+o*i[6],e[1]=r*i[1]+n*i[4]+o*i[7],e[2]=r*i[2]+n*i[5]+o*i[8],e}function j(e,t,i){return N(e,t,i[0],i[1],i[2],i[3])}function N(e,t,i,r,n,o){const s=t[0],a=t[1],l=t[2],u=r*l-n*a,c=n*s-i*l,d=i*a-r*s,p=r*d-n*c,m=n*u-i*d,g=i*c-r*u,h=2*o;return e[0]=s+u*h+2*p,e[1]=a+c*h+2*m,e[2]=l+d*h+2*g,e}const L=(0,r.vt)(),Z=(0,r.vt)();function B(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t){if(e===t)return!0;const i=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(i-s)<=u*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function k(e,t,i){const r=i[0]-t[0],n=i[1]-t[1],o=i[2]-t[2];let s=r*r+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,U=c,P=d,H=M,E=I,_=o,O=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){v(L,e),v(Z,t);const i=C(L,Z);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,r,n,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,d=3*l*s,p=l*o;return e[0]=t[0]*u+i[0]*c+r[0]*d+n[0]*p,e[1]=t[1]*u+i[1]*c+r[1]*d+n[1]*p,e[2]=t[2]*u+i[2]*c+r[2]*d+n[2]*p,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,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:s,cross:S,crossAndNormalize:function(e,t,i){const r=t[0],n=t[1],o=t[2],s=i[0],a=i[1],l=i[2],u=n*l-o*a,c=o*s-r*l,d=r*a-n*s,p=Math.sqrt(u*u+c*c+d*d);return e[0]=u/p,e[1]=c/p,e[2]=d/p,e},direction:k,dist:H,distance:M,div:P,divide:d,dot:C,equals:R,exactEquals:B,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,i,r,n,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*a+i[0]*l+r[0]*u+n[0]*c,e[1]=t[1]*a+i[1]*l+r[1]*u+n[1]*c,e[2]=t[2]*a+i[2]*l+r[2]*u+n[2]*c,e},inverse:b,len:_,length:o,lerp:D,max:h,min:g,mul:U,multiply:c,negate:A,normalize:v,random:function(e,t=1){const i=n.Ov,r=2*i()*Math.PI,o=2*i()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,i,r){const n=[],o=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],o[0]=n[0],o[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),o[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),e[0]=o[0]+i[0],e[1]=o[1]+i[1],e[2]=o[2]+i[2],e},rotateY:function(e,t,i,r){const n=[],o=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],o[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),o[1]=n[1],o[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),e[0]=o[0]+i[0],e[1]=o[1]+i[1],e[2]=o[2]+i[2],e},rotateZ:function(e,t,i,r){const n=[],o=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],o[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),o[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),o[2]=n[2],e[0]=o[0]+i[0],e[1]=o[1]+i[1],e[2]=o[2]+i[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:y,scaleAndAdd:f,set:a,sign:m,sqrDist:E,sqrLen:O,squaredDistance:I,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:x,transformMat4:T,transformQuat:j,transformQuatValues:N},Symbol.toStringTag,{value:"Module"}))},83027(e,t,i){i.d(t,{h:()=>r});const r=i(29953).ho},4197(e,t,i){i.d(t,{Vj:()=>u,cj:()=>l,jh:()=>o,l5:()=>a,xm:()=>s});var r=i(34275),n=i(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e){return[...e]}function u(e){const t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>I,DC:()=>d,Ej:()=>m,Ie:()=>f,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>A,fA:()=>s,gE:()=>l,hZ:()=>y,iT:()=>p,is:()=>w,qv:()=>b,vI:()=>h,vY:()=>a,v_:()=>v,vt:()=>o,w1:()=>u}),i(35522);var r=i(5443),n=(i(19419),i(4197));function o(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,r,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=i,a[3]=r,a[4]=n,a[5]=s,a}function a(e,t=o()){return function(e,t,i,r=o()){return y(r,b),function(e,t,i=0,r=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)n=Math.min(n,t[i+3*e]),o=Math.min(o,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(r,e,t,i),r}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[i,r,o,s,a,l]=e;return t[0]=i,t[1]=r,t[2]=o,t[3]=i,t[4]=r,t[5]=l,t[6]=i,t[7]=a,t[8]=o,t[9]=i,t[10]=a,t[11]=l,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function h(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?y(e,b):o(b)}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function I(e,t,i,r,n){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function A(e,t,i){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];o()},17136(e,t,i){i.d(t,{Y_:()=>x,O7:()=>D,el:()=>S});var r=i(92602),n=i(69052),o=i(49186),s=i(53966),a=i(39829),l=i(82799),u=i(16930),c=i(80754),d=i(21325),p=i(28735),m=i(11254),g=i(60408),h=i(65864),y=i(2272),f=i(84952),M=i(92300);const I=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function A(e){return"polyline"===e[0].type}function b(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw I().error(e),new o.A("internal:geometry",e)}const i=(0,c.r8)(e),r=[];for(const e of i){const i=[];r.push(i),i.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const n=e[r][0],o=e[r][1],s=e[r+1][0],a=e[r+1][1],l=Math.sqrt((s-n)*(s-n)+(a-o)*(a-o)),u=(a-o)/l,c=(s-n)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const r=e*t,s=c*r+n,a=u*r+o;i.push([s,a])}const e=(l+Math.floor(d-1)*t)/2,r=c*e+n,s=u*e+o;i.push([r,s])}i.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return i&&(e=(0,c.kS)(e,i)),e}function v(e,t,i){if(Array.isArray(e)){const r=e[0];if(r>t){const i=(0,c.kd)(r,t);e[0]=r+i*(-2*t)}else if(r<i){const t=(0,c.kd)(r,i);e[0]=r+t*(-2*i)}}else{const r=e.x;if(r>t){const i=(0,c.kd)(r,t);e=e.clone().offset(i*(-2*t),0)}else if(r<i){const t=(0,c.kd)(r,i);e=e.clone().offset(t*(-2*i),0)}}return e}function C(e,t){let i=-1;for(let r=0;r<t.cutIndexes.length;r++){const n=t.cutIndexes[r],o=t.geometries[r],s=(0,c.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const r=t[e][0];i=r>i?r:i}i=Number(i.toFixed(9));const r=-360*(0,c.kd)(i,180);for(let i=0;i<t.length;i++){const t=o.getPoint(e,i);o.setPoint(e,i,t.clone().offset(r,0))}return!0}})}if(n===i){if(w(e))for(const t of(0,c.r8)(o))e[n]=e[n].addRing(t);else if(A(e))for(const t of(0,c.r8)(o))e[n]=e[n].addPath(t)}else i=n,e[n]=o}return e}async function S(e,t,i){if(!Array.isArray(e))return S([e],t);t&&"string"!=typeof t&&I().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,s,u,w,A,D,T,x,j=0;const N=[],L=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,d.Vp)(o),u=o.isWebMercator,D=u?102100:4326,w=c.j7[D].maxX,A=c.j7[D].minX,T=c.j7[D].plus180Line,x=c.j7[D].minus180Line),s)if("mesh"===t.type)L.push(t);else if("point"===t.type)L.push(v(t.clone(),w,A));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>v(e,w,A)),L.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);L.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,i=(0,c.kd)(e.xmin,A)*(2*w);let r=0===i?t.clone():(0,c.kS)(t.clone(),i);e.offset(i,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(T)&&o!==w?(j=o>j?o:j,r=b(r,u),N.push(r),L.push("cut")):e.intersects(x)&&n!==A?(j=o*(2*w)>j?o*(2*w):j,r=b(r,u,360),N.push(r),L.push("cut")):L.push(r)}else L.push(t.clone());else L.push(t);else L.push(t);let Z=(0,c.kd)(j,w),B=-90;const R=Z,k=new l.A;for(;Z>0;){const e=360*Z-180;k.addPath([[e,B],[e,-1*B]]),B*=-1,Z--}if(N.length>0&&R>0){const t=C(N,await async function(e,t,i,r){const n=(0,y.Dl)(e),o=t[0].spatialReference,s={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,d.YX)(o),target:JSON.stringify({geometryType:(0,g.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},a=await(0,m.A)(n.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,h.rS)(e);return t.spatialReference=o,t})}}(n,N,k,i)),r=[],o=[];for(let i=0;i<L.length;i++){const n=L[i];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[i];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(r.push(n),o.push("simplify")):o.push(u?(0,p.Gh)(n):n)}}if(!r.length)return o;const s=await async function(e,t,i){const r="string"==typeof e?(0,f.An)(e):e,n=t[0].spatialReference,o=(0,g.$B)(t[0]),s={...i,query:{...r.query,f:"json",sr:(0,d.YX)(n),geometries:JSON.stringify((0,M.X)(t))}},{data:a}=await(0,m.A)(r.path+"/simplify",s);return(0,M.V)(a.geometries,o,n)}(n,r,i),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,p.Gh)(s.shift()):s.shift())}return a}const z=[];for(let e=0;e<L.length;e++){const t=L[e];if("cut"!==t)z.push(t);else{const e=N.shift();z.push(!0===u?(0,p.Gh)(e):e)}}return z}function D(e,t,i){const r=(0,d.Vp)(i);if(null==r)return e;const[n,o]=r.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<n&&(a=-Math.ceil(Math.abs(t-n)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<n&&(l=-Math.ceil(Math.abs(e-n)/s));let u=e+(a-l)*s;const c=u-t;return c>o?u-=s:c<n&&(u+=s),u}function T(e){const t=(0,d.Vp)(e);if(null==t)return null;const[i,r]=t.valid;return new n.hr(i,r)}const x=T(u.A.WGS84);T(u.A.WebMercator)},80754(e,t,i){i.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var r=i(82799),n=i(16930),o=i(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},99959(e,t,i){i.d(t,{A:()=>o});var r=i(5482),n=i(91429);let o=class{};o=(0,r.Cg)([(0,n.$K)("esri.graphic.GraphicOrigin")],o)},55156(e,t,i){i.d(t,{I:()=>n,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&r in t?e[r]:void 0;var t}},89808(e,t,i){i.d(t,{Q:()=>r});const r=Symbol("getSliceableSymbol")},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>n})},69208(e,t,i){i.d(t,{d:()=>o});var r=i(5482),n=i(91429);const o=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}},8303(e,t,i){i.d(t,{A:()=>A});var r=i(5482),n=i(92602),o=i(70333),s=i(11254),a=i(60999),l=i(49186),u=i(53966),c=i(97768),d=i(17676),p=i(84952),m=i(91429),g=i(77548),h=i(20655),y=i(80812),f=i(41318),M=i(10407),I=i(36005),w=i(43937);const A=e=>{const t=e;let A=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new y.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,d.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!o.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let s,a;if(n)s=i.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,p.b8)(s,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new y.default({id:e,portal:{url:s}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,M.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const i=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=o.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=h.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(r))return n.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?f.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return i&&r&&!(0,p.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,m.MZ)({type:y.default})],A.prototype,"portalItem",null),(0,r.Cg)([(0,I.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,r.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,r.Cg)([(0,m.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],A),A},b={credential:null,user:null}},72545(e,t,i){i.d(t,{G:()=>c});var r=i(5482),n=i(91429),o=i(47520),s=i(34251),a=i(69409),l=i(12711),u=i(491);const c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._rasterJobHandlerConfig={instance:null,refCount:0,connectionPromise:null}}get _rasterJobHandler(){return this._rasterJobHandlerConfig.instance}increaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount--,this._rasterJobHandlerConfig.refCount<=0&&this._shutdownJobHandler()}async convertVectorFieldData(e,t,i){if(null==e)return null;const r=this._rasterJobHandler;return r?r.convertVectorFieldData({pixelBlock:e,dataType:t},i):(0,s.FI)(e,t)}async sampleVectorFieldData(e,t){const i=this._rasterJobHandler;return i?i.sampleVectorFieldData(e,t):(0,s.Wu)(e.pixelBlock,e.srcDataType,e.tileSize,e.offset,e.maximumVoidPercentage)}async createFlowMesh(e,t){const i=this._rasterJobHandler;return i?i.createFlowMesh(e,t):(0,u.CW)(e.meshType,e.simulationSettings,e.flowData,e.startInfo,null!=t.signal?t.signal:(new AbortController).signal)}async highlightPixels(e,t){const i=this,{bandIds:r}=i,n="imagery"===i.type?i.rasterInfo:i.raster.rasterInfo,s=r?.length?r:(0,l.ci)(n),a=e.highlightOptions.map(e=>{const t={...e},i="bandId"in t?[t.bandId??0]:[t.xBandId,t.yBandId];for(let e=0;e<i.length;e++){const t=i[e];if(null==t)return;const r=s?.length?s.indexOf(t):t;if(r<0||r>2)return;i[e]=r}return"bandId"in t?t.bandId=i[0]:(t.xBandId=i[0],t.yBandId=i[1]),t}).filter(e=>null!=e);if(0===a.length)return;const u=this._rasterJobHandler;u?await u.highlightPixels({...e,highlightOptions:a},t):(0,o._F)({...e,highlightOptions:a})}_initJobHandler(){const{_rasterJobHandlerConfig:e}=this;if(e.connectionPromise)return e.connectionPromise;const t=new a.A;return e.connectionPromise=t.initialize().then(()=>{e.instance=t,this.notifyChange("_rasterJobHandler")},()=>{}),e.connectionPromise}_shutdownJobHandler(){const{_rasterJobHandlerConfig:e}=this;e.instance?.destroy(),e.instance=null,e.connectionPromise=null,e.refCount=0,this.notifyChange("_rasterJobHandler"),this._cachedRendererJson=void 0}async _updateSymbolizer(e,t,i,r){const n=this._rasterJobHandlerConfig.instance;if(!n)return;const o=(0,l.$P)({...t.toJSON(),variableName:i});JSON.stringify(this._cachedRendererJson)!==JSON.stringify(o)&&(r&&(e.rasterInfo=r),e.rendererJSON=o,e.bind(),await n.updateSymbolizer(e),this._cachedRendererJson=t.toJSON())}async _symbolize(e,t){const{pixelData:i,bandIds:r,simpleStretchParams:n}=e,o=this._rasterJobHandler;if(o){const e=await o.symbolize({...i,simpleStretchParams:n,bandIds:r},t);return{extent:i.extent,pixelBlock:e}}const s=e.symbolizer.symbolize({...i,simpleStretchParams:n,bandIds:r});return{extent:i.extent,pixelBlock:s}}};return(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_rasterJobHandler",null),(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_cachedRendererJson",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_rasterJobHandlerConfig",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.RasterJobHandlerMixin")],i),i}},82935(e,t,i){i.d(t,{B:()=>p,e:()=>m});var r=i(5482),n=i(91429),o=i(89317),s=i(30524),a=i(96184),l=i(73133),u=i(79677),c=i(10184),d=i(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},m=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,n=l.j.fromJSON(i.timeOffsetUnits);return r&&n?new c.A({value:r,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,n.MZ)({type:c.A})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,n.MZ)(p)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],i),i}},7548(e,t,i){function r(e){return"Function"===e?.datasetFormat}function n(e){return r(e)?e.primaryRasters.rasters:[e]}function o(e,t,i,r){const{x:n,y:o}=t,{x:s,y:a}=i,{xmin:l,xmax:u,ymin:c,ymax:d}=e,{width:p,height:m}=e,g=p/s,h=m/a,y=Math.min(g,h),f=y<=1?0:Math.min(.1,y/100),M=Math.floor((l-n)/s+f),I=Math.floor((o-d)/a+f),w=Math.floor((u-n)/s-f),A=Math.floor((o-c)/a-f);return{ul:{x:M,y:I},width:r>0&&g<.1?0:w-M+1,height:r>0&&h<.1?0:A-I+1}}i.d(t,{$g:()=>o,pb:()=>n,qg:()=>r})},4366(e,t,i){i.d(t,{$E:()=>S,DY:()=>I,NG:()=>C,QW:()=>l,Rp:()=>h,XU:()=>y,Xg:()=>v,ct:()=>f,fy:()=>M,xx:()=>u,z2:()=>w});var r=i(4576),n=i(86738),o=i(12359),s=i(45617);function a(e,t,i){const r=t.shift();if(0===i.length){const e=[];i.push({sliceId:-1,multidimensionalDefinition:e})}const n=i.length;for(let t=0;t<n;t++){const t=i.shift().multidimensionalDefinition;r.values?.forEach(n=>{i.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:r.name,values:[n]}]})})}t.length&&a(e,t,i)}function l(e,t){const i=[];let r=0;return(t?e.variables.filter(e=>e.name.toLowerCase()===t.toLowerCase()):[...e.variables].sort((e,t)=>e.name>t.name?1:-1)).forEach(e=>{const t=[],n=[...e.dimensions].sort((e,t)=>e.name>t.name?-1:1);a(e.name,n,t),t.forEach(e=>{i.push({...e,sliceId:r++})})}),i}function u(e,t,i){let r=e;if(t&&(t=[...t].sort((e,t)=>e.dimensionName<t.dimensionName?-1:1)).forEach(({dimensionName:e,values:t,isSlice:i})=>{t.length&&(r=r.filter(r=>{const n=r.multidimensionalDefinition.find(t=>t.dimensionName===e);if(null==n)return!1;const o=n.values[0];return"number"==typeof o?"number"==typeof t[0]?t.includes(o):t.some(e=>e[0]<=o&&e[1]>=o):"number"==typeof t[0]?t.some(e=>o[0]<=e&&o[1]>=e):i?t.some(e=>e[0]===o[0]&&e[0]===o[1]):t.some(e=>e[0]>=o[0]&&e[0]<=o[1]||e[1]>=o[0]&&e[1]<=o[1]||e[0]<o[0]&&e[1]>o[1])}))}),r.length&&null!=i?.start&&null!=i.end){const e=i.start.getTime(),t=i.end.getTime(),n=r[0].multidimensionalDefinition.findIndex(e=>"StdTime"===e.dimensionName);n>-1&&(r=r.filter(i=>{const r=i.multidimensionalDefinition[n].values[0];return e<=r&&t>=r}))}return r.map(e=>e.sliceId)}function c(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function d(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function p(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function m(e,t,i){if(!t?.subsetDefinitions?.length)return e;let r;if(i){const{variables:n}=t;if(n.length&&!n.includes(i))return null;const o=t.subsetDefinitions.find(t=>t.dimensionName===e.name&&t.variableName===i);if(!o?.values?.length)return e;r=p(o.values)}else{const i=t.dimensions.find(({name:t})=>t===e.name);r=i?.extent}const n=r;if(!n?.length)return e;const o=e.values.filter(e=>c(e,n));return{...e,extent:[...n],values:o}}function g(e,t,i){if(!t?.subsetDefinitions?.length)return!1;const{variables:r}=t;if(r.length&&e.some(({variableName:e})=>e&&!r.includes(e)))return!0;for(let r=0;r<e.length;r++){const n=e[r],o=t.subsetDefinitions.find(e=>(""===n.variableName||e.variableName===n.variableName)&&e.dimensionName===n.dimensionName);if(o?.values.length){const e=p(o.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!i){if(n.values.some(t=>!c(t,e)))return!0}else if(!d(n.values,e))return!0}}return!1}function h(e,t){if(null==e)return{isOutside:!1};const{geometry:i,timeExtent:r,multidimensionalDefinition:a}=t;let l=null;if(null!=r&&(l=function(e,t){const i=e.dimensions.find(({name:e})=>"StdTime"===e);if(null==i||null==t.start&&null==t.end)return t;t=t.clone();const{start:r,end:n}=t.toJSON(),o=r===n?[r]:null!=r&&null!=n?[r,n]:[r??n];return 2===o.length&&i?.extent.length&&(o[0]=Math.max(o[0],i.extent[0]),o[1]=Math.min(o[1],i.extent[1]??i.extent[0]),o[1]<o[0])||g([new s.A({variableName:"",dimensionName:"StdTime",isSlice:1===o.length,values:o})],e,!0)?null:(t.start=new Date(o[0]),t.end=new Date(o[1]??o[0]),t)}(e,r),null==l))return{isOutside:!0};const{areaOfInterest:u}=e;if(u&&i){const e=function(e){switch(e.type){case"point":return e;case"extent":return e.center;case"polygon":{const t=(0,o.Ve)(e);return t?n.A.fromJSON(t):null}}return null}(i);if(e&&!u.contains(e))return{isOutside:!0}}return null!=a&&a.length&&g(a,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:i,timeExtent:l,multidimensionalDefinition:a}}}function y(e){const{rasterInfo:t,multidimensionalSubset:i}=e,{multidimensionalInfo:r}=t;if(null==r)return null;let n=e.multidimensionalDefinition?.length?e.multidimensionalDefinition:M(t,{multidimensionalSubset:i});if(!n?.length)return null;if(n.some(e=>!e.dimensionName)){const{variableName:e}=n[0],r=M(t,{multidimensionalSubset:i,variableName:e});r?.forEach(e=>{const t=n?.find(({dimensionName:t})=>t===e.dimensionName);t?.values?.length&&(e.values=t.values,e.isSlice=t.isSlice)}),n=r}const{timeExtent:o}=e;if(null!=n&&null!=o&&(null!=o.start||null!=o.end)){n=n.map(e=>e.clone());const e=r.variables.find(({name:e})=>e===n[0].variableName)?.dimensions?.find(({name:e})=>"StdTime"===e),t=n.find(({dimensionName:e})=>"StdTime"===e);if(!e||!t)return null;const{start:i,end:s}=o,a=null==i?null:i.getTime(),l=null==s?null:s.getTime(),u=a??l,c=l??a;if(null!=e.values){const i=e.values.filter(e=>{if(Array.isArray(e)){if(u===c)return e[0]<=u&&e[1]>=u;const t=e[0]<=u&&e[1]>u||e[0]<c&&e[1]>=c,i=e[0]>=u&&e[1]<=c||e[0]<u&&e[1]>c;return t||i}return u===c?e===u:e>=u&&e<=c});if(i.length){const e=i.sort((e,t)=>{const i=Array.isArray(e)?e[0]:e,r=Array.isArray(e)?e[1]:e,n=Array.isArray(t)?t[0]:t,o=Array.isArray(t)?t[1]:t;return u===c?i-n:Math.abs(r-c)-Math.abs(o-c)})[0];t.values=[e]}else n=null}else if(e.hasRegularIntervals&&e.extent){const[i,r]=e.extent;u>r||c<i?n=null:t.values=u===c?[u]:[Math.max(i,u),Math.min(r,c)]}}return null!=n&&g(n,i)?null:n}function f(e,t={}){const{multidimensionalInfo:i,keyProperties:r}=e;if(null==i)return null;const{variableName:n,multidimensionalSubset:o,multidimensionalDefinition:s}=t,a=null!=s?s[0]?.variableName:null,l=n||a||r?.DefaultVariable;let{variables:u}=i;return o?.variables?.length&&(u=u.filter(({name:e})=>o.variables.includes(e))),l?u.find(({name:e})=>e===l)??u[0]:u[0]}function M(e,t={}){const i=f(e,t);if(!i)return null;const r=[],{dimensions:n,name:o}=i;if(0===n.length)return[new s.A({variableName:o,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<n.length;e++){const i=m(n[e],t.multidimensionalSubset,o);if(!i)return null;const{values:a,extent:l}=i;let u=a?.[0]??l?.[0];"stdz"===i.name.toLowerCase()&&!i.hasRanges&&l&&Math.abs(l[1])<=Math.abs(l[0])&&(u=a?.length?a[a.length-1]:l[1]),r.push(new s.A({variableName:o,dimensionName:i.name,values:[u],isSlice:!t.useRangeForRangedDimensionInfo||!!i.hasRanges}))}return r}function I(e){return!!e?.length&&e.some(e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])})}function w(e,t){if(null==t||null==e)return null;let i=t.variables.map(e=>({...e}));return e?.variables?.length&&(i=i.filter(({name:t})=>e.variables.includes(t)),i.forEach(t=>{t.dimensions=t.dimensions.map(i=>m(i,e,t.name)).filter(r.Ru)})),i}function A(e,t){const{values:i}=t;if(i?.length){const t=Array.isArray(i[0]),r=Array.isArray(e);return t!==r?-1:t&&r?i.findIndex(t=>t[0]===e[0]&&t[1]===e[1]):i.indexOf(e)}const{extent:r}=t;if(Array.isArray(e)||!r||e<r[0]||e>r[1])return-1;const n=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-r[0])/n);const o=r[0];let s=-1;switch(t.intervalUnit?.toLowerCase()||"days"){case"seconds":s=Math.round((e-o)/1e3/n);break;case"minutes":s=Math.round((e-o)/6e4/n);break;case"hours":s=Math.round((e-o)/36e5/n);break;case"days":s=Math.round((e-o)/864e5/n);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear(),i=new Date(o).getUTCMonth(),r=new Date(e).getUTCMonth();s=0===t?r-i:r+11-i+12*(t-1)}break;case"years":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/n);break;case"decades":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/10/n)}return s}function b(e){let t=e.values?.length;if(t)return t;const{extent:i,unit:r}=e,n=e.interval||1,o=i?i[1]-i[0]:0;if("ISO8601"!==r)return Math.round(o/n);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(o/1e3/n);break;case"minutes":t=Math.round(o/6e4/n);break;case"hours":t=Math.round(o/36e5/n);break;case"days":t=Math.round(o/864e5/n);break;case"months":if(i){const e=new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear(),r=new Date(i[0]).getUTCMonth(),n=new Date(i[1]).getUTCMonth();t=0===e?n-r+1:n+11-r+12*(e-1)+1}else t=0;break;case"years":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/n):0;break;case"decades":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/10/n):0;break;default:t=0}return t}function v(e){if(2!==e.extent?.length||!e.interval)return[];const{extent:[t,i],interval:r}=e;if("ISO8601"===e.unit){const n=e.intervalUnit?.toLowerCase()??"days";return["decades","years","months","days","hours","minutes","seconds"].includes(n)?function(e,t,i,r){const n=[];let o=e;const s=new Date(e);for(;o<=t;)switch(n.push(o),r){case"decades":s.setUTCFullYear(s.getUTCFullYear()+10*i),o=s.getTime();break;case"years":s.setUTCFullYear(s.getUTCFullYear()+i),o=s.getTime();break;case"months":s.setUTCMonth(s.getUTCMonth()+i),o=s.getTime();break;case"days":o+=864e5*i;break;case"hours":o+=36e5*i;break;case"minutes":o+=6e4*i;break;case"seconds":o+=1e3*i}return 1===n.length?n[1]=t:n[n.length-1]=t,n}(t,i,r,n):[]}const n=Math.round((i-t)/r);return Array.from({length:n},(e,o)=>o===n-1?i:t+o*r)}function C(e,t){let i=0;const r=e[0].variableName,n=[...t.variables].sort((e,t)=>e.name>t.name?1:-1);for(let t=0;t<n.length;t++){const o=n[t],s=[...o.dimensions].sort((e,t)=>e.name>t.name?-1:1);if(o.name!==r){i+=s.map(e=>b(e)).reduce((e,t)=>e*t);continue}const a=s.map(e=>b(e)),l=s.length;for(let t=0;t<l;t++){const r=e.find(e=>e.dimensionName===s[t].name);if(null==r)return null;const n=A(r.values[0],s[t]);if(-1===n)return null;a.shift(),i+=t===l-1?n:n*a.reduce((e,t)=>e*t)}break}return i}function S(e){return Math.round(24*(e-25569)*3600*1e3)}},45617(e,t,i){i.d(t,{A:()=>u});var r,n=i(5482),o=i(25482),s=i(4718),a=i(91429),l=i(56507);let u=r=class extends o.o{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new r({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,s.o8)(this.values),isSlice:this.isSlice})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"variableName",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"dimensionName",void 0),(0,n.Cg)([(0,a.MZ)({type:l.gK.array(l.gK.oneOf([l.gK.native(Number),l.gK.array(l.gK.native(Number))])),json:{write:!0}})],u.prototype,"values",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isSlice",void 0),u=r=(0,n.Cg)([(0,a.$K)("esri.layers.support.DimensionalDefinition")],u)},85675(e,t,i){i.d(t,{A:()=>f});var r,n=i(5482),o=i(66552),s=i(25482),a=i(4718),l=i(91429),u=i(56507),c=i(86738),d=i(45617),p=i(22796),m=i(36005),g=i(43937);const h=(0,o.O)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),y=(0,o.O)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let f=r=class extends s.o{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method="none",this.multidimensionalDefinition=null,this.objectIds=null,this.operation="first",this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return y.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,i){null!=e&&(e=e.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t)).length&&(t[i]=e.map(e=>e.toJSON()))}readOperation(e,t){const i=t.mosaicOperation,r=t.mosaicOperator?.toLowerCase(),n=i||(r?h.toJSON(r):null);return h.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new r({ascending:this.ascending,itemRasterFunction:(0,a.o8)(this.itemRasterFunction),lockRasterIds:(0,a.o8)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,a.o8)(this.multidimensionalDefinition),objectIds:(0,a.o8)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,a.o8)(this.viewpoint),where:this.where})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"ascending",void 0),(0,n.Cg)([(0,m.w)("ascending",["ascending","sortAscending"])],f.prototype,"readAscending",null),(0,n.Cg)([(0,l.MZ)({type:p.A,json:{name:"itemRenderingRule",write:!0}})],f.prototype,"itemRasterFunction",void 0),(0,n.Cg)([(0,l.MZ)({type:[u.jz],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],f.prototype,"lockRasterIds",void 0),(0,n.Cg)([(0,l.MZ)({type:y.apiValues,json:{type:y.jsonValues,write:{target:"mosaicMethod",writer:y.write,isRequired:!0}}})],f.prototype,"method",void 0),(0,n.Cg)([(0,m.w)("method",["mosaicMethod","defaultMosaicMethod"])],f.prototype,"readMethod",null),(0,n.Cg)([(0,l.MZ)({type:[d.A],json:{write:!0}})],f.prototype,"multidimensionalDefinition",void 0),(0,n.Cg)([(0,g.K)("multidimensionalDefinition")],f.prototype,"writeMultidimensionalDefinition",null),(0,n.Cg)([(0,l.MZ)({type:[u.jz],json:{name:"fids",write:!0}})],f.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{type:h.jsonValues,read:{reader:h.read},write:{target:"mosaicOperation",writer:h.write}}})],f.prototype,"operation",void 0),(0,n.Cg)([(0,m.w)("operation",["mosaicOperation","mosaicOperator"])],f.prototype,"readOperation",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],f.prototype,"sortField",void 0),(0,n.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],f.prototype,"sortValue",void 0),(0,n.Cg)([(0,l.wg)("sortValue")],f.prototype,"castSortValue",null),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],f.prototype,"viewpoint",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.MosaicRule")],f)},43577(e,t,i){i.d(t,{A:()=>m});var r,n=i(5482),o=i(25482),s=i(91429),a=i(5443),l=i(91075),u=i(39829),c=i(65864),d=i(45617);const p={base:l.A,key:"type",typeMap:{extent:a.A,polygon:u.A}};let m=r=class extends o.o{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach(e=>{if(!e.dimensionName)return;let i,r;if(Array.isArray(e.values[0])){const t=e.values;i=t[0][0],r=t[e.values.length-1][1]}else{const t=e.values;i=t[0],r=t[e.values.length-1]}if(t.has(e.dimensionName)){const n=t.get(e.dimensionName);n[0]=Math.min(i,n[0]),n[1]=Math.max(r,n[1])}else t.set(e.dimensionName,[i,r])});const i=[];for(const e of t)i.push({name:e[0],extent:e[1]});return i}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach(e=>{e.variableName&&t.add(e.variableName)}),[...t]}clone(){const e=this.subsetDefinitions?.map(e=>e.clone()),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new r({areaOfInterest:t,subsetDefinitions:e})}};(0,n.Cg)([(0,s.MZ)({types:p,json:{read:c.rS,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],m.prototype,"dimensions",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],m.prototype,"variables",null),(0,n.Cg)([(0,s.MZ)({type:[d.A],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.MultidimensionalSubset")],m)},22796(e,t,i){i.d(t,{A:()=>N});var r=i(5482),n=i(25482),o=i(4718),s=i(91429),a=i(66552),l=i(56507),u=i(13868);let c=class extends n.o{constructor(){super(...arguments),this.pixelType="unknown"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,r.Cg)([(0,s.MZ)({type:l.jz,json:{type:l.jz,write:!0,name:"_object_id"}})],c.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{type:u.e8.jsonValues,read:u.e8.read,write:{writer:u.e8.write,isRequired:!0}}})],c.prototype,"pixelType",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,s.$K)("esri.layers.support.RasterFunctionInfo")],c);const d=c;let p=class extends n.o{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:l.jz,write:!0,name:"_object_id"}})],p.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"isDataset",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"isPublic",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"type",void 0),p=(0,r.Cg)([(0,s.$K)("esri.layers.support.RasterFunctionVariable")],p);const m={key:"type",base:null,typeMap:{RasterFunctionVariable:p}};let g=class extends n.o{};(0,r.Cg)([(0,s.MZ)({types:m,json:{types:m,name:"MatchVariable"}})],g.prototype,"matchVariable",void 0),(0,r.Cg)([(0,s.MZ)({types:m,json:{types:m,name:"UnionDimension"}})],g.prototype,"unionDimension",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:l.jz,write:!0,name:"_object_id"}})],g.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],g.prototype,"type",void 0),g=(0,r.Cg)([(0,s.$K)("esri.layers.support.RasterFunctionProperties")],g);const h=g,y=new a.J({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let f=class extends n.o{constructor(){super(...arguments),this.description="",this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,r.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],f.prototype,"aliases",void 0),(0,r.Cg)([(0,s.MZ)({type:Object,json:{write:{isRequired:!0}}})],f.prototype,"arguments",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"description",void 0),(0,r.Cg)([(0,s.MZ)({type:d,json:{write:{isRequired:!0},name:"function"}})],f.prototype,"functionInfo",void 0),(0,r.Cg)([(0,s.MZ)({type:y.apiValues,json:{type:[0,1,2],read:y.read,write:{writer:y.write,isRequired:!0}}})],f.prototype,"functionType",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"group",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"help",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:l.jz,write:!0,name:"_object_id"}})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0,name:"definition"}})],f.prototype,"queryDefinition",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"tag",void 0),(0,r.Cg)([(0,s.MZ)({type:h,json:{write:!0}})],f.prototype,"properties",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"thumbnail",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"thumbnailEx",void 0),(0,r.Cg)([(0,s.MZ)({json:{type:["RasterFunctionTemplate"],write:!0}})],f.prototype,"type",void 0),f=(0,r.Cg)([(0,s.$K)("esri.layers.support.RasterFunctionTemplate")],f);var M,I=i(36005),w=i(43937),A=i(93223);const b=new Set(["raster","raster2","dem","fillraster"]),v=new Set(["rasters"]),C=e=>e?.rasterFunction?N.fromJSON(e):e,S=e=>e&&e instanceof N?e.toJSON():e,D=e=>e?.functionName&&!e.declaredClass,T=e=>D(e)?new N(e):e,x=e=>e?f.fromJSON({type:"RasterFunctionTemplate",...e}):void 0,j={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:f}},json:{write:!0,name:"rasterFunctionDefinition",read:x}};let N=M=class extends n.o{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some(t=>b.has(t.toLowerCase())&&D(e[t]))||t.some(t=>v.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some(e=>D(e)))){e=(0,o.o8)(e);for(const i of t)b.has(i.toLowerCase())?e[i]=T(e[i]):v.has(i.toLowerCase())&&Array.isArray(e[i])&&(e[i]=e[i].map(e=>T(e)))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,o.o8)(e);const t={};for(const i of Object.keys(e))b.has(i.toLowerCase())?t[i]=C(e[i]):v.has(i.toLowerCase())&&Array.isArray(e[i])?t[i]=e[i].map(C):t[i]=e[i];return t})(e)}writeFunctionArguments(e,t,i){const r={};for(const t of Object.keys(e))b.has(t.toLowerCase())?r[t]=S(e[t]):v.has(t.toLowerCase())&&Array.isArray(e[t])?r[t]=e[t].map(S):r[t]=S(e[t]);t[i]=r}readFunctionName(e,t){const i=t.rasterFunctionInfos;return t.name||(i?.length&&"None"!==i[0].name?i[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=x(e)}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new M({functionName:this.functionName,functionArguments:(0,o.o8)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,o.o8)(this.rasterFunctionDefinition)})}};(0,r.Cg)([(0,s.MZ)({json:{type:Object,name:"rasterFunctionArguments"}})],N.prototype,"functionArguments",null),(0,r.Cg)([(0,I.w)("functionArguments")],N.prototype,"readFunctionArguments",null),(0,r.Cg)([(0,w.K)("functionArguments")],N.prototype,"writeFunctionArguments",null),(0,r.Cg)([(0,s.MZ)({json:{type:String,write:{target:"rasterFunction"}}})],N.prototype,"functionName",void 0),(0,r.Cg)([(0,I.w)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],N.prototype,"readFunctionName",null),(0,r.Cg)([(0,A.e)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1,default:"unknown"})],N.prototype,"outputPixelType",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:!0,write:!0}})],N.prototype,"variableName",void 0),(0,r.Cg)([(0,s.MZ)()],N.prototype,"rasterFunctionDefinition",null),(0,r.Cg)([(0,s.MZ)(j)],N.prototype,"functionDefinition",void 0),(0,r.Cg)([(0,s.MZ)()],N.prototype,"hasClipFunction",null),N=M=(0,r.Cg)([(0,s.$K)("esri.layers.support.RasterFunction")],N)},69409(e,t,i){i.d(t,{A:()=>l});var r=i(49186),n=i(97768),o=i(17676),s=i(83027),a=i(14140);class l{constructor(){this._workerThread=null,this._destroyed=!1,this._onClientConnectedHandle=null,this._symbolizerState=null,this._rasterFunctionState=null}async initialize(){const e=await(0,s.h)("RasterWorker");this._destroyed?e.close():(this._onClientConnectedHandle=(0,n.xt)(this._onClientConnectedHandle),this._workerThread=e,this._onClientConnectedHandle=e.onClientConnected(e=>{this._symbolizerState&&e.invoke("updateSymbolizer",this._symbolizerState).catch(e=>(0,o.jH)(e)),this._rasterFunctionState&&e.invoke("updateRasterFunction",this._rasterFunctionState).catch(e=>(0,o.jH)(e))}))}destroy(){this._destroyed=!0,this._onClientConnectedHandle=(0,n.xt)(this._onClientConnectedHandle),this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){u(this._workerThread);const i=e.pixelBlock.getTransferableObject().pixelBlock,r=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:i,type:e.dataType},t);return r?new a.A(r):null}async convertPixelBlockToFeatures(e,t){u(this._workerThread);const i=await this._workerThread.invoke("convertPixelBlockToFeatures",{pixelBlock:e.pixelBlock.toJSON(),extent:e.extent.toJSON(),fieldNames:e.fieldNames,skipFactor:e.skipFactor,pixelIdOffset:e.pixelIdOffset,imageRowSize:e.imageRowSize},t),r=e.extent.spatialReference?.toJSON();return i.forEach(e=>e.geometry.spatialReference=r),i}computeStatisticsHistograms(e,t){u(this._workerThread);const{transferList:i,pixelBlock:r}=e.pixelBlock.getTransferableObject();return t?.transferPixelsToWorker&&(t={...t,transferList:i}),this._workerThread.invoke("computeStatisticsHistograms",{...e,pixelBlock:r},t)}sampleVectorFieldData(e,t){u(this._workerThread);const{transferList:i,pixelBlock:r}=e.pixelBlock.getTransferableObject();return t?.transferPixelsToWorker&&(t={...t,transferList:i}),this._workerThread.invoke("sampleVectorFieldData",{...e,pixelBlock:r},t)}async transformPixels(e,t){u(this._workerThread);const{transferList:i,pixelBlock:r}=e.pixelBlock.getTransferableObject();t?.transferPixelsToWorker&&(t={...t,transferList:i});const n=await this._workerThread.invoke("transformPixels",{...e,pixelBlock:r},t);return a.A.fromJSON(n)}async compositeBands(e,t){u(this._workerThread);const i=e.pixelBlocks.map(e=>e?.getTransferableObject()),r={pixelBlocks:i.map(e=>e?.pixelBlock)};if(t?.transferPixelsToWorker){const e=i.flatMap(e=>e?.transferList).filter(e=>null!=e);t={...t,transferList:e}}const n=await this._workerThread.invoke("compositeBands",r,t);return n?a.A.fromJSON(n):null}async decode(e,t){u(this._workerThread);const i=await this._workerThread.invoke("decode",e,{...t,transferList:[e.data]});return i?new a.A(i):null}async symbolize(e,t){u(this._workerThread);const i=e.pixelBlock?.getTransferableObject().pixelBlock,r={extent:e.extent?.toJSON(),pixelBlock:i,simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",r,t);return n?new a.A(n):null}async highlightPixels(e,t){u(this._workerThread);const i={pixelBlock:e.pixelBlock?.toJSON(),renderedPixelBlock:e.renderedPixelBlock?.toJSON(),highlightOptions:e.highlightOptions},r=await this._workerThread.invoke("highlightPixels",i,t);e.renderedPixelBlock.pixels=r.pixels,e.renderedPixelBlock.mask=r.mask,e.renderedPixelBlock.maskIsAlpha=r.maskIsAlpha}async updateSymbolizer(e,t){u(this._workerThread);const i=e?.rendererJSON?.histograms;this._symbolizerState={symbolizerJSON:e.toJSON(),histograms:i},await Promise.all(this._workerThread.broadcast("updateSymbolizer",this._symbolizerState,t))}async updateRasterFunction(e,t){u(this._workerThread),this._rasterFunctionState={rasterFunctionJSON:e.toJSON()},await Promise.all(this._workerThread.broadcast("updateRasterFunction",this._rasterFunctionState,t))}async process(e,t){u(this._workerThread);const i=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map(e=>null!=e?e.toJSON():null),primaryPixelBlocks:e.primaryPixelBlocks.map(e=>e?.getTransferableObject().pixelBlock),primaryRasterIds:e.primaryRasterIds,parameters:e.parameters},t);return i?new a.A(i):null}async stretch(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock,stretchParams:e.stretchParams},r=await this._workerThread.invoke("stretch",i,t);return r?new a.A(r):null}async split(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock,tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},r=await this._workerThread.invoke("split",i,t);return r&&r.forEach((e,t)=>{r.set(t,e?a.A.fromJSON(e):null)}),r}async clipTile(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i=e.pixelBlock.getTransferableObject().pixelBlock,r={...e,pixelBlock:i},n=await this._workerThread.invoke("clipTile",r,t);return n?a.A.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(u(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock};return await this._workerThread.invoke("estimateStatisticsHistograms",i,t)}async mosaicAndTransform(e,t){if(u(this._workerThread),!e?.srcPixelBlocks?.length)return{pixelBlock:null};const i=e.srcPixelBlocks.map(e=>e?.getTransferableObject()),r={...e,srcPixelBlocks:i.map(e=>e?.pixelBlock)};if(t?.transferPixelsToWorker){const e=i.flatMap(e=>e?.transferList).filter(e=>null!=e);t={...t,transferList:e}}const n=await this._workerThread.invoke("mosaicAndTransform",r,t);return{pixelBlock:n.pixelBlock?new a.A(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){u(this._workerThread);const i={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:r,simulationSettings:n,startInfo:o}=e,s=await this._workerThread.invoke("createFlowMesh",{meshType:r,flowData:i,simulationSettings:n,startInfo:o},{...t,transferList:[i.buffer,i.maskBuffer]});return{vertexData:new Float32Array(s.vertexBuffer),indexData:new Uint32Array(s.indexBuffer),pathData:new Float32Array(s.pathBuffer)}}getProjectionOffsetGrid(e,t){u(this._workerThread);const i=null!=e.datumTransformation?e.datumTransformation.steps.map(e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse})):null,r=null!=e.rasterTransform?e.rasterTransform.toJSON():null,n={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:i,rasterTransform:r,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",n,t)}}function u(e){if(null==e)throw new r.A("raster-jobhandler:no-connection","no available worker connection")}},96184(e,t,i){i.d(t,{A:()=>m});var r=i(5482),n=i(69540),o=i(25482),s=i(91429),a=i(79677),l=i(10184),u=i(56400),c=i(36005),d=i(43937);function p(e,t){return l.A.fromJSON({value:e,unit:t})}let m=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,d.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,r.Cg)([(0,d.K)("interval")],m.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],m)},74797(e,t,i){i.d(t,{AL:()=>M,DV:()=>h,ER:()=>n,F_:()=>a,Nd:()=>m,Oo:()=>o,dy:()=>p,eS:()=>b,h4:()=>v,jC:()=>f,nq:()=>g,rZ:()=>d,y6:()=>y});var r=i(20437);const n="Raster.",o="Raster.Dim.",s=".Max",a={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"},l=new Map([["quarters","Quarter"],["months","Month"],["weeks","Week of the year"],["days","Day of the year"]]);function u(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,length:50,type:"string"})}function c(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,type:"double"})}function d(e){return u(a.servicePixelValue,e??"Service Pixel Value")}function p(e){return u(a.rawServicePixelValue,e??"Raw Service Pixel Value")}function m(){return u(a.itemPixelValue,"Item Pixel Value")}function g(e){return u(`${a.servicePixelValue}.${e}`,e)}function h(e){return c(`${a.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function y(){return c(`${a.direction}`,"Direction (°)")}function f(e){return e.fields.filter(e=>"oid"!==e.type&&"value"!==e.name.toLowerCase()).map(e=>{const t=e.clone();return t.name=`${n}${e.name}`,t})}function M(e){const t=new Set,i=new Set,n=new Map;return e.variables.forEach(({dimensions:e})=>{e.forEach(e=>{if(e.recurring)n.set(e.name,e.unit);else{const r="ISO8601"===e.unit?.trim()||"stdtime"===e.name?.trim()?.toLowerCase()?t:i;r.add(e.name),e.hasRanges&&r.add(`${e.name}${s}`)}})}),[u(a.variable,"Variable"),...[...t].map(e=>function(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,type:"date"})}(`${o}${e}`,w(e))),...[...i].map(e=>c(`${o}${e}`,w(e))),...[...n].map(([e,t])=>c(`${o}${e}`,I(e,t)))]}function I(e,t){return t=t?.toLowerCase(),t&&l.has(t)?l.get(t):w(e)}function w(e){const t=e.endsWith(s),i=t?e.slice(0,-4):e,r="StdTime"===i?"Standard Time":"StdZ"===i?"Standard Z":i;return t?`${r} Max`:r}function A(e,t){return t?new Date(e):e}function b(e,t,i){i?.length&&(t[a.variable]=i[0].variableName,i.forEach(({dimensionName:i,values:r})=>{if(i&&r?.length){const n=`${o}${i}`,a=e.find(({name:e})=>e===n);if(!a)return;const l="date"===a.type,u=r[0];if(Array.isArray(u)){if(t[`${o}${i}`]=A(u[0],l),null!=u[1]){const r=`${o}${i}${s}`;if(e.some(({name:e})=>e===r)){const e=A(u[1],l);t[r]=e}}}else t[`${o}${i}`]=A(u,l)}}))}function v(e,t){if(t.pixelType.startsWith("f")&&e.forEach(({format:e,fieldName:t})=>{e&&t&&/^raster\.(item|service)pixelvalue/i.test(t)&&(e.places=2)}),t.multidimensionalInfo){const i=t.multidimensionalInfo.variables.flatMap(({dimensions:e})=>e);e.forEach(({format:e,fieldName:t})=>{if(e&&t?.startsWith(o)){const r=t.slice(o.length),n=`${r}${s}`,a=i.find(({name:e})=>e===r||e===n);a?.values?.every(e=>Number.isInteger(e))&&(e.places=0)}})}}},10407(e,t,i){i.d(t,{It:()=>m,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>p,sQ:()=>d});var r=i(91218),n=i(16930),o=i(28735);function s(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,p.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?s(e,t):u(e,t)}async function d(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const i=n.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const p={CHARTS:"Charts",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",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function m(e){const{portal:t,isOrgItem:i,itemControl:r}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!i&&!!n?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},67730(e,t,i){i.d(t,{A:()=>y});var r,n=i(5482),o=i(68197),s=i(66552),a=i(25482),l=i(90629),u=i(91429),c=i(56507),d=i(63988),p=i(30943),m=i(20061),g=i(93223);const h=new s.J({flow_from:"flow-from",flow_to:"flow-to"});let y=r=class extends((0,d.h)(a.o)){constructor(e){super(e),this.density=.8,this.color=new o.A([255,255,255,1]),this.flowSpeed=10,this.trailLength=100,this.continuous=!0,this.perturb=null,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}get maxPathLength(){return this._get("maxPathLength")??200}set maxPathLength(e){this._set("maxPathLength",e)}get trailWidth(){return this._get("trailWidth")??1.5}set trailWidth(e){this._set("trailWidth",e)}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}clone(){const{density:e,maxPathLength:t,trailWidth:i,flowSpeed:n,trailLength:o,smoothing:s,flowRepresentation:a,trailCap:l,background:u}=this,c=this.color.clone(),d=(this.visualVariables||[]).map(e=>e.clone()),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new r({density:e,color:c,maxPathLength:t,trailWidth:i,flowSpeed:n,trailLength:o,trailCap:l,background:u,smoothing:s,flowRepresentation:a,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"density",void 0),(0,n.Cg)([(0,u.MZ)({type:o.A,json:{type:[c.jz],write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"maxPathLength",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"trailWidth",null),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"flowSpeed",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],y.prototype,"trailLength",void 0),(0,n.Cg)([(0,u.MZ)()],y.prototype,"continuous",void 0),(0,n.Cg)([(0,u.MZ)()],y.prototype,"perturb",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!1}})],y.prototype,"smoothing",void 0),(0,n.Cg)([(0,u.MZ)({type:h.apiValues,json:{type:h.jsonValues,read:{reader:h.read},write:{writer:h.write}}})],y.prototype,"flowRepresentation",void 0),(0,n.Cg)([(0,g.e)({flowRenderer:"flow"}),(0,u.MZ)({json:{write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],y.prototype,"authoringInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:m.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,n.Cg)([(0,u.MZ)({type:["butt","round"],json:{write:!0}})],y.prototype,"trailCap",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],y.prototype,"background",void 0),y=r=(0,n.Cg)([(0,u.$K)("esri.renderers.FlowRenderer")],y)},80498(e,t,i){i.d(t,{A:()=>p});var r=i(5482),n=i(25482),o=i(91429),s=i(68197),a=i(56507);let l=class extends n.o{constructor(e){super(e),this.value=null,this.label=null,this.color=null}};(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],l.prototype,"value",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)({type:s.A,json:{type:[a.jz],write:{isRequired:!0}}})],l.prototype,"color",void 0),l=(0,r.Cg)([(0,o.$K)("esri.renderers.support.ColormapInfo")],l);var u,c=i(67369),d=i(93223);let p=u=class extends n.o{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const i=5===e[0].length,r=[...e].sort((e,t)=>e[0]-t[0]).map(e=>l.fromJSON({value:e[0],color:i?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]}));return new u({colormapInfos:r})}static createFromColorramp(e){const t=(0,c.R8)(e);return u.createFromColormap(t)}clone(){return new u({colormapInfos:this.colormapInfos.map(e=>e.toJSON())})}extractColormap(){return this.colormapInfos.map(({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255]).sort((e,t)=>e[0]-t[0])}};(0,r.Cg)([(0,o.MZ)({type:[l],json:{write:{isRequired:!0}}})],p.prototype,"colormapInfos",void 0),(0,r.Cg)([(0,d.e)({rasterColormap:"raster-colormap"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),p=u=(0,r.Cg)([(0,o.$K)("esri.renderers.RasterColormapRenderer")],p)},46981(e,t,i){i.d(t,{A:()=>d});var r,n=i(5482),o=i(25482),s=i(4718),a=i(91429),l=i(95349),u=i(36005),c=i(93223);let d=r=class extends o.o{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,l.r)(e)}clone(){return new r({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,s.o8)(this.colorRamp)})}};(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"altitude",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"azimuth",void 0),(0,n.Cg)([(0,a.MZ)({types:l.g,json:{write:!0}})],d.prototype,"colorRamp",void 0),(0,n.Cg)([(0,u.w)("colorRamp")],d.prototype,"readColorRamp",null),(0,n.Cg)([(0,a.MZ)({type:["traditional","multi-directional"],json:{write:{isRequired:!0}}})],d.prototype,"hillshadeType",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pixelSizePower",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pixelSizeFactor",void 0),(0,n.Cg)([(0,a.MZ)({type:["none","adjusted"],json:{write:{isRequired:!0}}})],d.prototype,"scalingType",void 0),(0,n.Cg)([(0,c.e)({rasterShadedRelief:"raster-shaded-relief"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"zFactor",void 0),d=r=(0,n.Cg)([(0,a.$K)("esri.renderers.RasterShadedReliefRenderer")],d)},36280(e,t,i){i.d(t,{A:()=>m});var r,n=i(5482),o=i(25482),s=i(4718),a=i(91429),l=i(70274),u=i(95349),c=i(36005),d=i(43937),p=i(93223);let m=r=class extends o.o{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.histograms=null,this.customStatistics=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,u.r)(e)}readCustomStatistics(e){return e?.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))}writeCustomStatistics(e,t,i){e?.length&&(t[i]=e.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]))}readStretchType(e,t){let i=t.stretchType;return"number"==typeof i&&(i=l.x[i]),l.u.read(i)}clone(){return new r({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,customStatistics:(0,s.o8)(this.customStatistics),gamma:(0,s.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,s.o8)(this.colorRamp),histograms:(0,s.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,n.Cg)([(0,a.MZ)({types:u.g,json:{write:!0}})],m.prototype,"colorRamp",void 0),(0,n.Cg)([(0,c.w)("colorRamp")],m.prototype,"readColorRamp",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"computeGamma",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],m.prototype,"dynamicRangeAdjustment",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],m.prototype,"gamma",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxPercent",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"minPercent",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"numberOfStandardDeviations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],m.prototype,"outputMax",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],m.prototype,"outputMin",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"sigmoidStrengthLevel",void 0),(0,n.Cg)([(0,a.MZ)()],m.prototype,"histograms",void 0),(0,n.Cg)([(0,a.MZ)({json:{type:[[Number]],name:"statistics",write:!0}})],m.prototype,"customStatistics",void 0),(0,n.Cg)([(0,c.w)("customStatistics")],m.prototype,"readCustomStatistics",null),(0,n.Cg)([(0,d.K)("customStatistics")],m.prototype,"writeCustomStatistics",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"useGamma",void 0),(0,n.Cg)([(0,a.MZ)({type:l.u.apiValues,json:{type:l.u.jsonValues,write:l.u.write}})],m.prototype,"stretchType",void 0),(0,n.Cg)([(0,c.w)("stretchType",["stretchType"])],m.prototype,"readStretchType",null),(0,n.Cg)([(0,p.e)({rasterStretch:"raster-stretch"})],m.prototype,"type",void 0),m=r=(0,n.Cg)([(0,a.$K)("esri.renderers.RasterStretchRenderer")],m)},18031(e,t,i){i.d(t,{A:()=>j});var r,n=i(5482),o=i(68197),s=i(52106),a=i(66552),l=i(25482),u=i(4718),c=i(91429),d=i(86738),p=i(17136),m=i(34251),g=i(86162),h=i(63988),y=i(88542),f=i(23461),M=i(48940),I=i(29266),w=i(58592),A=i(31593),b=i(53930),v=i(37531),C=i(36005),S=i(93223);const D=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),T=new a.J({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),x=new a.J({flow_from:"flow-from",flow_to:"flow-to"});let j=r=class extends((0,h.h)(l.o)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return D.has(e)?m.MD.fromJSON(e):null}readOutputUnit(e,t){return D.has(e)?m.MD.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,i=this._createStyleRenderer(e);return i.field=t,i}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new M.A({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new f.A({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new r({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,u.o8)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,i=[]){const r=new Array,n=(0,m.KL)(this.inputUnit,this.outputUnit),o=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,m.FI)(e.pixelBlock,"vector-uv",o,n):(0,m.Rn)(e.pixelBlock,"vector-magdir",n);if(null==a)return r;const l=e.extent,u=null!=a.mask&&a.mask.length>0;let c=0;const g=(l.xmax-l.xmin)/a.width,h=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,c++){let n=new d.A({x:l.xmin+t*g+g/2,y:l.ymax-e*h-h/2,spatialReference:l.spatialReference});n=(await(0,p.el)(n))[0];const o=i.some(e=>e.intersects(n));if((!u||a.mask[c])&&!o){const e={Magnitude:a.pixels[0][c],Direction:a.pixels[1][c]},t=new s.A({geometry:new d.A({x:n.x,y:n.y,spatialReference:l.spatialReference}),attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),r.push(t)}}return r}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new b.A({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new A.A({width:0}),size:20,color:e||new o.A([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),i=this.sizeVariables,r=this.rotationVariables;if(i&&i.length&&this.sizeVariables.forEach(i=>(0,v.UQ)(t,(0,I.Yz)([i],e))),r&&r.length){const i="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+i,this.rotationVariables.forEach(i=>(0,v.GG)(t,(0,I.UT)(i,e),i.axis))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new g.A(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>3.28084*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>2.23694*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>3.6*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new o.A([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,i=this.sizeVariables[0].maxDataValue;if(null!=e&&null!=i){const r=(i-e)/5;t=Array.from({length:5},(t,i)=>e+r*i),t[5]=i}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:w.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map(e=>5*e),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],i=w.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),r=e.map((r,n)=>{let o;if(n!==e.length-1)if(0===n)o={minValue:r,maxValue:e[n+1],symbol:i};else{const i=w.A.fromJSON({type:"esriPMS",imageData:t[n].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});o={minValue:r,maxValue:e[n+1],symbol:i}}return new y.A(o)});return{defaultSymbol:i,classBreakInfos:r}}_getClassBreaks(e,t){return t.map((t,i)=>new y.A({minValue:e[i],maxValue:e[i+1],symbol:this._getDefaultSymbol(new o.A(t))}))}};(0,n.Cg)([(0,c.MZ)({type:["Magnitude"],json:{write:!0}})],j.prototype,"attributeField",void 0),(0,n.Cg)([(0,c.MZ)({type:x.apiValues,json:{type:x.jsonValues,read:{reader:x.read},write:{writer:x.write}}})],j.prototype,"flowRepresentation",void 0),(0,n.Cg)([(0,c.MZ)({type:["geographic","arithmetic"],json:{write:!0}})],j.prototype,"rotationType",void 0),(0,n.Cg)([(0,c.MZ)({type:T.apiValues,json:{type:T.jsonValues,read:{reader:T.read},write:{writer:T.write}}})],j.prototype,"style",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:!0}})],j.prototype,"symbolTileSize",void 0),(0,n.Cg)([(0,c.MZ)({type:m.MD.apiValues,json:{type:m.MD.jsonValues,write:{writer:m.MD.write}}})],j.prototype,"inputUnit",void 0),(0,n.Cg)([(0,C.w)("inputUnit")],j.prototype,"readInputUnit",null),(0,n.Cg)([(0,c.MZ)({type:m.MD.apiValues,json:{type:m.MD.jsonValues,read:{reader:m.MD.read},write:{writer:m.MD.write}}})],j.prototype,"outputUnit",void 0),(0,n.Cg)([(0,C.w)("outputUnit")],j.prototype,"readOutputUnit",null),(0,n.Cg)([(0,S.e)({vectorField:"vector-field"})],j.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({type:g.A})],j.prototype,"styleRenderer",null),(0,n.Cg)([(0,c.MZ)({type:M.A})],j.prototype,"sizeVariables",null),(0,n.Cg)([(0,c.MZ)({type:f.A})],j.prototype,"rotationVariables",null),j=r=(0,n.Cg)([(0,c.$K)("esri.renderers.VectorFieldRenderer")],j)},12711(e,t,i){i.d(t,{$P:()=>R,I8:()=>w,Mm:()=>v,PD:()=>A,ci:()=>T,fp:()=>b,m7:()=>D,w6:()=>C});var r=i(68197),n=(i(86211),i(7548)),o=i(20437),s=(i(86162),i(67730),i(80498)),a=(i(46981),i(36280)),l=i(93618),u=i(18031),c=i(30943),d=(i(88542),i(67369)),p=i(88178),m=i(94833),g=(i(2024),i(48940)),h=(i(72500),i(9760),i(84892),i(1626)),y=i(94985);const f=h.A.fromJSON({type:"multipart",colorRamps:[{algorithm:"esriCIELabAlgorithm",fromColor:[0,0,255],toColor:[0,255,255]},{algorithm:"esriCIELabAlgorithm",fromColor:[0,255,255],toColor:[255,255,0]},{algorithm:"esriCIELabAlgorithm",fromColor:[255,255,0],toColor:[255,0,0]}]}),M=h.A.fromJSON(d.vj[0]),I=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function w(e){return e.presetRenderers?.find(({method:t,value:i})=>"raster-function-template"===t?i===e.rasterFunctionName:"variable"===t&&i===e.variableName)}function A(e,t){const{attributeTable:i,colormap:n}=e;if((0,p.rd)(e)){const t=function(e){if(!(0,p.rd)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:i,maxMagnitude:r}=function(e,t){let i,r;if("vector-magdir"===e)i=t[0].min,r=t[0].max;else{const e=t[0].min,n=t[0].max,o=t[1].min,s=t[1].max;i=0,r=Math.max(Math.abs(e),Math.abs(o),Math.abs(n),Math.abs(s))}return{minMagnitude:i,maxMagnitude:r}}(e.dataType,e.statistics);t=[new g.A({field:"Magnitude",minSize:10,maxSize:40,minDataValue:i,maxDataValue:r})]}const i=null!=e.multidimensionalInfo?Z.get(e.multidimensionalInfo.variables[0].unit):void 0,r=new u.A({visualVariables:t,inputUnit:i,rotationType:"geographic"});return r.visualVariables=[...r.sizeVariables,...r.rotationVariables],r}(e);if(null!=t)return t}if(t?.rasterFunctionColorRamp){const i=S(e,t);return i.colorRamp=t.rasterFunctionColorRamp,i}if(null!=n){const t=function(e){if(!(0,p.FA)(e))return null;let t;const{attributeTable:i,colormap:r}=e;if(null!=i){const e=L(i,"value"),r=N(i,null,!0);"string"===r.type&&(t={},i.features.forEach(i=>{const n=i.attributes;t[n[e.name]]=r?n[r.name]:n[e.name]}))}return s.A.createFromColormap(r,t)}(e);if(null!=t)return t}if(null!=i){const t=function(e,t){if(!(0,p.hu)(e,t))return null;const{attributeTable:i,statistics:n}=e,o=N(i,t),s=L(i,"red"),a=L(i,"green"),u=L(i,"blue"),g=new c.A,h=[],f=new Set,I=!!(s&&a&&u);if(null!=i)i.features.forEach(e=>{const t=e.attributes[o.name];if(!f.has(e.attributes[o.name])&&null!=t){f.add(t);const n=I&&("single"===s.type||"double"===s.type)&&("single"===a.type||"double"===a.type)&&("single"===u.type||"double"===u.type)&&!i.features.some(e=>e.attributes[s.name]>1||e.attributes[a.name]>1||e.attributes[u.name]>1),l=n?255:1;h.push(new m.A({value:e.attributes[o.name],label:e.attributes[o.name]+"",symbol:new y.A({style:"solid",outline:null,color:new r.A(I?[e.attributes[s.name]*l,e.attributes[a.name]*l,e.attributes[u.name]*l,1]:[0,0,0,0])})}))}});else if(n?.[0])for(let e=n[0].min;e<=n[0].max;e++)h.push(new m.A({value:e,label:e.toString(),symbol:new y.A({style:"solid",outline:null,color:new r.A([0,0,0,0])})}));if(h.sort((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1),!I){const e=(0,d.R8)(M,{numColors:h.length});h.forEach((t,i)=>t.symbol.color=new r.A(e[i].slice(1,4))),g.colorRamp=M}return new l.A({field:o.name,uniqueValueInfos:h,authoringInfo:g})}(e);if(null!=t)return t}return S(e,t)}function b(e,t=!1){const i=["raster-stretch"];return(0,p.FA)(e,t)&&i.push("raster-colormap"),(0,p.hu)(e)&&i.push("unique-value"),(0,p.xX)(e,t)&&i.push("class-breaks"),(0,p.iL)(e)&&i.push("raster-shaded-relief"),(0,p.rd)(e)&&i.push("vector-field"),(0,p.QJ)(e)&&i.push("flow"),i}function v(e){return(0,n.qg)(e)&&"Colormap"===e.rasterFunction.functionName?e.rasterFunction.colorRamp:void 0}function C(e,t,i){const r=i?.toLowerCase().replace("bicubic","cubic"),n=["nearest","bilinear","cubic","majority"].find(e=>e===r);return"Map"===t?n??"bilinear":"standard-time"===e.dataType?n??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===n||"majority"===n?n:"nearest":n??"bilinear"}function S(e,t){e=D(e,t?.variableName);const{bandCount:i}=e;let{bandIds:r,stretchType:n}=t||{};r?.some(e=>e>=i)&&(r=null);let o=e.statistics,s=e.histograms;i>1?(r=r?.length?r:T(e),o=null==o?null:r?.map(e=>o[e]),s=null==s?null:r?.map(e=>s[e])):r=[0],null==n&&(n=function(e){let t="percent-clip";const{pixelType:i,dataType:r,histograms:n,statistics:o,multidimensionalInfo:s}=e,a=I.has(r)||"generic"===r&&null!=s;return"u8"!==i||"processed"!==r&&null!=n&&null!=o?"u8"===i||"elevation"===r||a?t="min-max":null!=n?t="percent-clip":null!=o&&(t="min-max"):t="none",t}(e)),t?.includeStatisticsInStretch&&("percent-clip"===n||"histogram-equalization"===n)&&e.statistics?.length&&(n="min-max");let l=!1;switch(n){case"none":l=!1;break;case"percent-clip":l=!s?.length;break;default:l=!o?.length}const{dataType:u}=e,c=1===r?.length&&I.has(u)?f:null,d=new a.A({stretchType:n,dynamicRangeAdjustment:l,colorRamp:c,outputMin:0,outputMax:255,gamma:1===r?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===n?d.maxPercent=d.minPercent=.25:"standard-deviation"===n&&(d.numberOfStandardDeviations=2),l||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===n?d.histograms=s:"min-max"!==n&&"standard-deviation"!==n||(d.customStatistics=o?.map(e=>({...e})))),d}function D(e,t){const{multidimensionalInfo:i}=e;if(!t||!i)return e;const r=i.variables.find(e=>e.name===t);if(!r)return e;if(e=e.clone(),r){const{statistics:t,histograms:i}=r;t?.length&&(e.statistics=t.map(e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev}))),i?.length&&(e.histograms=i)}return e}function T(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:i}=e;let r;if(i.length===t){const{red:e,green:t,blue:n,nir:o}=function(e){const t={};for(let i=0;i<e.length;i++){const r=e[i].name.toLowerCase();"red"===r?t.red=i:"green"===r?t.green=i:"blue"===r?t.blue=i:"nearinfrared"!==r&&"nearinfrared_1"!==r&&"nir"!==r||(t.nir=i)}if(null==t.blue||null==t.green||null==t.red||null==t.nir){const i=j(e);if(t.blue??=x(i,480),t.green??=x(i,550),t.red??=x(i,660),null==t.nir){const r=j(e,800);t.nir=x(r,810)??x(i,810)}}return t}(i);null!=e&&null!=t&&null!=n?r=[e,t,n]:null!=o&&null!=e&&null!=t&&(r=[o,e,t])}return!r&&t>=3&&(r=[0,1,2]),r}function x(e,t,i=60){let r,n=i;for(const i of e){const e=Math.abs(i.wavelength-t);e<=n&&(n=e,r=i.index)}return r}function j(e,t){return e.map(({name:e,minWavelength:i,maxWavelength:r},n)=>/thermal/i.test(e)||/pan/i.test(e)||null!=t&&null!=r&&r<t?null:{wavelength:null!=i&&null!=r?(i+r)/2:i??r??0,index:n}).filter(e=>null!=e)}function N(e,t,i){let r;return null!=e?(r=t?e.fields.find(e=>t.toLowerCase()===e.name.toLowerCase()):function(e){let t;for(let i=0;i<e.length;i++){const r=e[i].name.toLowerCase();if("string"===e[i].type){if(r.startsWith("class")){t=e[i];break}null==t&&(r.endsWith("name")||r.endsWith("type"))&&(t=e[i])}}return t}(e.fields),r||(i||(r=e.fields.find(e=>"string"===e.type)),r||(r=L(e,"value")))):r=new o.A({name:"value"}),r}function L(e,t){return null==e?null:e.fields.find(e=>e.name.toLowerCase()===t)}const Z=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function B(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function R(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,i=t?.[0].symbol;return i?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map(e=>({value:e.value,label:e.label,symbol:e.symbol?B(e.symbol):null}))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,i=t[0].symbol;return i?.symbolLayers?.length&&(e.classBreakInfos=t.map(e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?B(e.symbol):null}))),e}return e}},94359(e,t,i){i.d(t,{Gj:()=>p,LF:()=>g,uy:()=>d});var r=i(86162),n=i(67730),o=i(80498),s=i(46981),a=i(36280),l=i(93618),u=i(18031),c=i(59923);const d={key:"type",base:null,typeMap:{"class-breaks":r.A,flow:n.A,"raster-colormap":o.A,"raster-shaded-relief":s.A,"raster-stretch":a.A,"unique-value":l.A,"vector-field":u.A}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"];const m={classBreaks:r.A,flowRenderer:n.A,rasterColormap:o.A,rasterShadedRelief:s.A,rasterStretch:a.A,uniqueValue:l.A,vectorField:u.A};function g(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const i=function(e){return e&&m[e.type]||null}(e);if(i){const r=new i;return r.read(e,t),r}return t?.messages&&e&&(0,c.Yc)(t,"warning","renderer",`Renderers of type '${e.type??"unknown"} are not supported`,{definition:e}),null}},92300(e,t,i){i.d(t,{V:()=>s,X:()=>o});var r=i(60408),n=i(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,i){const r=(0,n.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=i,t})}},22671(e,t,i){i.d(t,{A:()=>M});var r,n=i(5482),o=i(52106),s=i(66552),a=i(25482),l=i(4718),u=i(91429),c=i(16930),d=i(60408),p=i(65864),m=i(50498),g=i(20437),h=i(36005),y=i(43937);const f=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=r=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,i,r){if(e)return void f.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void f.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,p.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=c.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((n-e)/i));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,n],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*o+r,e=>n-e*s,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=c.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}n.push(s)}return n}_quantizePoints(e,t,i){let r,n;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===r&&s===n||(o.push([e-r,s-n]),r=e,n=s)}else r=t(a[0]),n=i(a[1]),o.push([r,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,d.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,i);s&&n.push(s)}return n.length>0?((0,d.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,d.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],M.prototype,"features",void 0),(0,n.Cg)([(0,h.w)("features")],M.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],M.prototype,"geometryType",void 0),(0,n.Cg)([(0,y.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,h.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,n.Cg)([(0,y.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=r=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},22048(e,t,i){i.d(t,{A:()=>y});var r,n=i(5482),o=i(25482),s=i(4718),a=i(91429),l=i(86738),u=i(60408),c=i(65864),d=i(50498),p=i(85675),m=i(22796),g=i(79677),h=i(43937);let y=r=class extends o.o{constructor(e){super(e),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,u.$B)(e),t[i]=e.toJSON())}clone(){return new r((0,s.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n.Cg)([(0,a.MZ)({types:d.yR,json:{read:c.rS}})],y.prototype,"geometry",void 0),(0,n.Cg)([(0,h.K)("geometry")],y.prototype,"writeGeometry",null),(0,n.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],y.prototype,"mosaicRule",void 0),(0,n.Cg)([(0,a.MZ)({type:m.A,json:{write:!0,name:"renderingRule"}})],y.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],y.prototype,"pixelSize",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],y.prototype,"raster",void 0),(0,n.Cg)([(0,a.MZ)({type:g.A,json:{read:{source:"time"},write:{target:"time"}}})],y.prototype,"timeExtent",void 0),y=r=(0,n.Cg)([(0,a.$K)("esri.rest.support.ImageHistogramParameters")],y)},49410(e,t,i){i.d(t,{A:()=>a});var r=i(5482),n=i(25482),o=i(91429),s=i(86738);let a=class extends n.o{constructor(e){super(e),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"attributes",void 0),(0,r.Cg)([(0,o.MZ)({type:s.A,json:{write:!0}})],a.prototype,"location",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"locationId",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"rasterId",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],a.prototype,"pixelValue",void 0),a=(0,r.Cg)([(0,o.$K)("esri.rest.support.ImageSample")],a)},34606(e,t,i){i.d(t,{A:()=>f});var r,n=i(5482),o=i(25482),s=i(4718),a=i(91429),l=i(48526),u=i(86738),c=i(60408),d=i(65864),p=i(50498),m=i(85675),g=i(13868),h=i(79677),y=i(43937);let f=r=class extends o.o{constructor(e){super(e),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,c.$B)(e),t[i]=e.toJSON())}set locations(e){if(e?.length){const t=new l.A({spatialReference:e[0].spatialReference,points:e.map(({x:e,y:t})=>[e,t])});this._set("locations",e),this.geometry=t}}clone(){return new r((0,s.o8)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,n.Cg)([(0,a.MZ)({types:p.yR,json:{read:d.rS}})],f.prototype,"geometry",void 0),(0,n.Cg)([(0,y.K)("geometry")],f.prototype,"writeGeometry",null),(0,n.Cg)([(0,a.MZ)({type:[u.A]})],f.prototype,"locations",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{type:g.SZ.jsonValues,read:g.SZ.read,write:g.SZ.write}})],f.prototype,"interpolation",void 0),(0,n.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],f.prototype,"mosaicRule",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,n.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"pixelSize",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"raster",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"returnFirstValueOnly",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sampleDistance",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sampleCount",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sliceId",void 0),(0,n.Cg)([(0,a.MZ)({type:h.A,json:{read:{source:"time"},write:{target:"time"}}})],f.prototype,"timeExtent",void 0),f=r=(0,n.Cg)([(0,a.$K)("esri.rest.support.ImageSampleParameters")],f)},29127(e,t,i){i.d(t,{A:()=>a});var r=i(5482),n=i(25482),o=i(91429),s=i(49410);let a=class extends n.o{constructor(e){super(e),this.samples=[]}};(0,r.Cg)([(0,o.MZ)({type:[s.A],json:{write:!0}})],a.prototype,"samples",void 0),a=(0,r.Cg)([(0,o.$K)("esri.rest.support.ImageSampleResult")],a)},30291(e,t,i){i.d(t,{tn:()=>u});var r=i(37838),n=i(30524),o=i(41227),s=i(89893),a=i(66159),l=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:l,title:u},m){if(!i)return null;const h=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===r&&(e=e.slice()),!0!==i&&e.sort(d),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:p(t),visible:c(t,{...e,visibleFieldNames:i})}))}({editFieldsInfo:t,fields:i,objectIdField:l},m);if(!h.length)return null;const y=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),f=[new a.A,new s.A];return new r.A({title:y,content:f,fieldInfos:h})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function m(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const g=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6151],{52106(e,t,r){r.d(t,{A:()=>S});var n,i,s=r(5482),o=r(37838),l=r(69540),a=r(51447),u=r(25482),c=r(53966),h=r(36708),p=r(24326),f=r(91429),d=r(12195),y=r(65864),g=r(50498),m=r(55156),b=r(60950),v=r(54339),M=r(94128),w=r(33910);function _(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,l.OU)(u.o)){static{n=M.Z}static{i=this}constructor(e){super(e),this[n]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:_(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,d.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,y.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,f.MZ)({value:null})],S.prototype,"attributes",null),(0,s.Cg)([(0,f.MZ)({value:null,types:g.yR,json:{read:y.rS}})],S.prototype,"geometry",null),(0,s.Cg)([(0,f.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,s.Cg)([(0,f.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,s.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,s.Cg)([(0,f.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,s.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,f.MZ)({value:null,types:w.Es})],S.prototype,"symbol",null),(0,s.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=i=(0,s.Cg)([(0,f.$K)("esri.Graphic")],S)},38961(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(7762),s=r(36708),o=r(10107),l=r(64108),a=r(80559);let u=class extends i.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,n.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,n.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const c=u},46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const l=parseInt(r,10),a=parseInt(s,10);return new i(l,a,t)}}},6797(e,t,r){r.d(t,{Ui:()=>p});var n=r(69622),i=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof i.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function h(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=a(e),i=a(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=i.filter(e=>!n.includes(e)),p=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(s,p).sort(),d=c(e);if(d&&o.has(d)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const g=l(e)&&l(t);for(const n of f){const i=u(e,n),s=u(t,n);let o;if((g||"function"!=typeof i&&"function"!=typeof s)&&i!==s&&(null!=i||null!=s)){if(r&&r[n]&&"function"==typeof r[n])o=r[n]?.(i,s);else if(i instanceof Date&&s instanceof Date){if(i.getTime()===s.getTime())continue;o={type:"complete",oldValue:i,newValue:s}}else o="object"==typeof i&&"object"==typeof s&&c(i)===c(s)?h(i,s):{type:"complete",oldValue:i,newValue:s};null!=o&&(null!=y?y.diff[n]=o:y={type:"partial",diff:{[n]:o}})}}return y}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:h(e,t)}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(e,t,r,n,i,s,o,l,a,u,c,h,p,f,d,y){return[e,t,r,n,i,s,o,l,a,u,c,h,p,f,d,y]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>C,DI:()=>_,Il:()=>z,Io:()=>b,Ln:()=>m,Om:()=>x,Qr:()=>h,Re:()=>u,S8:()=>S,T9:()=>y,WQ:()=>a,Z0:()=>I,_S:()=>f,aI:()=>E,ei:()=>T,fw:()=>P,gL:()=>R,hG:()=>v,hZ:()=>l,hs:()=>g,jb:()=>L,jk:()=>d,lo:()=>N,lw:()=>c,m3:()=>M,oW:()=>Z,t2:()=>F,tn:()=>p,uE:()=>q,xg:()=>$,ze:()=>w});var n=r(51850),i=r(34304);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function a(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 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 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 p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function d(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 y(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 m(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 b(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 M(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],l=r[1],a=r[2];return e[0]=i*a-s*l,e[1]=s*o-n*a,e[2]=n*l-i*o,e}function C(e,t,r,n){const i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function I(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function T(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function R(e,t,r){return P(e,t,r[0],r[1],r[2],r[3])}function P(e,t,r,n,i,s){const o=t[0],l=t[1],a=t[2],u=n*a-i*l,c=i*o-r*a,h=r*l-n*o,p=n*h-i*c,f=i*u-r*h,d=r*c-n*u,y=2*s;return e[0]=o+u*y+2*p,e[1]=l+c*y+2*f,e[2]=a+h*y+2*d,e}const j=(0,n.vt)(),O=(0,n.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function E(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,i.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-l)<=u*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))}function Z(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const L=u,G=c,k=h,$=b,N=v,z=s,q=M;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:a,angle:function(e,t){S(j,e),S(O,t);const r=x(j,O);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,h=3*a*o,p=a*s;return e[0]=t[0]*u+r[0]*c+n[0]*h+i[0]*p,e[1]=t[1]*u+r[1]*c+n[1]*h+i[1]*p,e[2]=t[2]*u+r[2]*c+n[2]*h+i[2]*p,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:o,cross:A,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],l=r[1],a=r[2],u=i*a-s*l,c=s*o-n*a,h=n*l-i*o,p=Math.sqrt(u*u+c*c+h*h);return e[0]=u/p,e[1]=c/p,e[2]=h/p,e},direction:Z,dist:$,distance:b,div:k,divide:h,dot:x,equals:E,exactEquals:F,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,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+r[0]*a+n[0]*u+i[0]*c,e[1]=t[1]*l+r[1]*a+n[1]*u+i[1]*c,e[2]=t[2]*l+r[2]*a+n[2]*u+i[2]*c,e},inverse:_,len:z,length:s,lerp:C,max:y,min:d,mul:G,multiply:c,negate:w,normalize:S,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[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:m,set:l,sign:f,sqrDist:N,sqrLen:q,squaredDistance:v,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:L,subtract:u,transformMat3:T,transformMat4:I,transformQuat:R,transformQuatValues:P},Symbol.toStringTag,{value:"Module"}))},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),s=r(69540),o=r(25482),l=r(91429),a=r(99157);let u=n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(69540),o=r(25482),l=r(91429);let a=n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===i&&r===o)return!0;const t=r+3*l;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*l;for(let t=r,n=o;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>h,jd:()=>c,pO:()=>f,w5:()=>u});var n=r(34727),i=r(86211),s=r(73941),o=r(79258),l=r(34403),a=r(21325);const u={2:{5:f,7:null,9:null,10:f,1:w,6:null,8:null,0:null,3:y,11:g,2:f,4:C},5:{5:f,7:null,9:null,10:f,1:w,6:null,8:null,0:null,3:y,11:g,2:f,4:C},7:{5:null,7:f,9:null,10:f,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(e,t,r,n){const i=e[t]/O,s=j-2*Math.atan(Math.exp(-e[t+1]/O)),o=O+(e[t+2]??0),l=Math.cos(s)*o;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:f,11:function(e,t,r,n){d(e,t,r,n),g(r,n,r,n)},2:d,4:function(e,t,r,n){d(e,t,r,n),C(r,n,r,n)}},4:{5:I,7:null,9:null,10:I,1:function(e,t,r,n){I(e,t,r,n),w(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){I(e,t,r,n),y(r,n,r,n)},11:function(e,t,r,n){I(e,t,r,n),g(r,n,r,n)},2:I,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),y(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),g(r,n,r,n)},2:A,4:function(e,t,r,n){A(e,t,r,n),C(r,n,r,n)}},6:{5:null,7:x,9:null,10:x,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:w,6:M,8:v,0:null,3:y,11:g,2:f,4:C},11:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){m(e,t,r,n),w(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){m(e,t,r,n),y(r,n,r,n)},11:f,2:m,4:function(e,t,r,n){m(e,t,r,n),C(r,n,r,n)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const r=p(e,T.source),n=p(t,T.dest);return 0===r&&0===n?(0,a.aI)(e,t)?T.projector=f:T.projector=null:T.projector=u[r][n],T}function p(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function d(e,t,r,n){r[n]=P*(e[t]/O),r[n+1]=P*(j-2*Math.atan(Math.exp(-e[t+1]/O))),r[n+2]=e[t+2]??0}function y(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,l=(0,n.qE)(R*e[t+1],-o,o),a=Math.sin(l);r[i++]=R*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]??0}(e,t,r,i,o.$O)}function g(e,t,r,n){r[n]=e[t]*F,r[n+1]=e[t+1]*F,r[n+2]=e[t+2]??0}function m(e,t,r,n){r[n]=e[t]*E,r[n+1]=e[t+1]*E,r[n+2]=e[t+2]??0}function b(e,t,r,n,i){const s=i+(e[t+2]??0),o=R*e[t],l=R*e[t+1],a=Math.cos(l)*s;r[n]=Math.cos(o)*a,r[n+1]=Math.sin(o)*a,r[n+2]=Math.sin(l)*s}function v(e,t,r,n){b(e,t,r,n,o.Sw.radius)}function M(e,t,r,n){b(e,t,r,n,o.sH.radius)}function w(e,t,r,n){b(e,t,r,n,o.$O.radius)}function _(e,t,r,i,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),h=Math.atan2(l,o);r[i++]=P*h,r[i++]=P*c,r[i]=u-s}function S(e,t,r,n){_(e,t,r,n,o.Sw.radius)}function x(e,t,r,n){_(e,t,r,n,o.sH.radius)}function A(e,t,r,n){_(e,t,r,n,o.$O.radius)}function C(e,t,r,n){!function(e,t,r,n,i){const s=R*e[t],o=R*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(s),r[n++]=(c+l)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,o.$O)}function I(e,t,r,n){const i=l.TP,s=e[t],a=e[t+1],u=e[t+2]??0;let c,h,p,f,d,y,g,m,b,v,M,w,_,S,x,A,C,I,T,R,j;c=Math.abs(u),h=s*s+a*a,p=Math.sqrt(h),f=h+u*u,d=Math.sqrt(f),R=Math.atan2(a,s),y=u*u/f,g=h/f,S=i.a2/d,x=i.a3-i.a4/d,g>.3?(m=c/d*(1+g*(i.a1+S+y*x)/d),T=Math.asin(m),v=m*m,b=Math.sqrt(1-v)):(b=p/d*(1-y*(i.a5-S-g*x)/d),T=Math.acos(b),v=1-b*b,m=Math.sqrt(v)),M=1-o.$O.eccentricitySquared*v,w=o.$O.radius/Math.sqrt(M),_=i.a6*w,S=p-w*b,x=c-_*m,C=b*S+m*x,A=b*x-m*S,I=A/(_/M+C),T+=I,j=C+A*I/2,u<0&&(T=-T),r[n++]=P*R,r[n++]=P*T,r[n]=j}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},R=(0,n.kU)(1),P=(0,n.KJ)(1),j=.5*Math.PI,O=o.$O.radius,F=O*Math.PI/180,E=180/(O*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>J,initializeProjection:()=>K,isEqualBaseGCS:()=>B,isLoaded:()=>O,isLoadedOrLoad:()=>F,isLoadedOrLoadFor:()=>E,load:()=>L,project:()=>G,projectAsync:()=>H,projectExtent:()=>ie,projectMany:()=>k,projectMultipoint:()=>Q,projectOrLoad:()=>N,projectOrLoadMany:()=>z,projectPoint:()=>W,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>V,requiresLoad:()=>Z,test:()=>U,tryProject:()=>$,unload:()=>D});var n=r(49186),i=r(17676),s=r(62788),o=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),h=r(91075),p=r(48526),f=r(86738),d=r(39829),y=r(82799),g=r(16930),m=r(98764),b=r(159),v=r(9762),M=r(49208);function w(e,t,r,n,i,s){return _[0]=e,_[1]=t,_[2]=r,(0,v.projectBuffer)(_,n,0,i,s,0)}const _=(0,l.vt)();var S=r(60408),x=r(21325),A=r(52006);let C=null,I=null,T=null,R=null,P={};const j=new o.I;function O(){return!!(I?.isLoaded()&&T?.isLoaded()&&R?.isLoaded())}function F(){return!!O()||((0,s.gc)(j),L(),!1)}function E(e,t){return!e||!t||J(e,t)||F()}function Z(e,t){return!J(e,t)&&!O()}async function L(e){null==C&&(C=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(I=e,I.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(R=e,R.load()))])),await C,(0,i.Te)(e),j.notify()}function G(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(e,e[0].spatialReference,t,r)):((0,a.f)(e),k([e],e.spatialReference,t,r)[0])}function k(e,t,r,n){if(null==t||null==r)return e;if(J(t,r,n))return e.map(e=>V(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>V(e,t,g.A.WGS84)),g.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return k(e,t,g.A.WGS84).map(e=>V(e,g.A.WGS84,r));if(!O())throw new q;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:R.getTransformation(t,r,n.areaOfInterestExtent)||new b.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=P[e];i||(i=R.getTransformation(t,r)||new b.A,P[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?I.executeMany(e,r,n):T.executeMany(e,r,n)}function $(e,t,r){try{return G(e,t,r)}catch(e){return null}}function N(e,t){const r=z([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function z(e,t,r){if(!O())for(const r of e)if(null!=r&&!(0,x.aI)(r.spatialReference,t)&&(0,x.fn)(r.spatialReference)&&(0,x.fn)(t)&&!J(r.spatialReference,t))return(0,s.gc)(j),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,t)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)?G(e,t,r):null)}}class q extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){C=null,I=null,T=null,R=null,P={}}const U={get loadPromise(){return C}};async function H(e,t,r){if((0,i.Te)(r),!e)return e;const n=z(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),H(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function J(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,x.aI)(e,t)||(0,x.fn)(e)&&(0,x.fn)(t)&&!!(0,M.jd)(e,t))}function B(e,t){if((0,x.aI)(e,t))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(t))return!1;const r=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),n=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return r&&n}async function K(e,t,r,n){if(O())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!J(t,r,i))return L(n)}else if(e&&t&&!J(e,t,r))return L(n);return(0,i.NO)(n)}function V(e,t,r){return e?(0,S.fT)(e)?Y(e,t,new f.A,r,0):(0,S.ZC)(e)?se(e,t,new c.A,r,0):(0,S.Bi)(e)?ne(e,t,new d.A,r,0):(0,S.Rg)(e)?te(e,t,new y.A,r,0):(0,S.U9)(e)?X(e,t,new p.A,r,0):null:null}function W(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:i,(0,v.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:s,hasZ:o,hasM:l}=e,a=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:i);if(!(0,v.projectBuffer)(c,t,0,c,n,0,u))return null;const h=ae(o,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];h&&l?a.push([r,n,c[t+2],s[e][3]]):h?a.push([r,n,c[t+2]]):l?a.push([r,n,s[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=o,r.hasM=l,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:s,paths:o,hasZ:l,hasM:a}=e;if(!(s?le(s,l??!1,a??!1,t,r.curvePaths=[],n,i):oe(o,l??!1,a??!1,t,r.paths,n,i)))return null;const u=ae(l,n);return r.spatialReference=n,r.hasZ=u,r.hasM=a,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:s,rings:o,hasZ:l,hasM:a}=e;return(s?le(s,l??!1,a??!1,t,r.curveRings=[],n,i):oe(o,l??!1,a??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=ae(l,n),r.hasM=a,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=se(e,e.spatialReference,t,r,n)}function se(e,t,r,n,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!w(s,o,u?e.zmin:i,t,ue,n))return null;const h=ae(u,n);return r.xmin=ue[0],r.ymin=ue[1],h&&(r.zmin=ue[2]),w(l,a,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],h&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function oe(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function le(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,n]=e.c;l.push(r[0],r[1],t?r[2]:o,n[0],n[1],o);continue}if((0,A.n1)(e)){const[r,n,i]=e.b;l.push(r[0],r[1],t?r[2]:o,n[0],n[1],o,i[0],i[1],o);continue}const r=e;l.push(r[0],r[1],t?r[2]:o)}if(!(0,v.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);if(c||t.pop(),r&&t.push((0,A.yP)(n)[u]),(0,A.FG)(n))return!1;if((0,A.aO)(n)){const r=l[a++],n=l[a++];++a,e.push({c:[t,[r,n]]});continue}if((0,A.n1)(n)){const r=l[a++],n=l[a++];++a;const i=l[a++],s=l[a++];++a,e.push({b:[t,[r,n],[i,s]]});continue}e.push(t)}i.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,x.aI)(t,m.Y0)}const ue=(0,l.vt)()},98764(e,t,r){r.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var n=r(73941),i=r(16930),s=r(21325);const o=new i.A(n.fv),l=new i.A(n.FY),a=new i.A(n.LJ),u=new i.A(n.Ro);function c(e){const t=h.get(e);if(t)return t;let r=o;if(e)if(e===l)r=l;else if(e===a)r=a;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,s.tl)(t)||(0,s.tl)(n)?r=l:((0,s.ZL)(t)||(0,s.ZL)(n))&&(r=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===p?r=l:e===f&&(r=a)}}}return h.set(e,r),r}const h=new Map,p=l.wkt.toUpperCase(),f=a.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var n=r(34275),i=r(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>v,DC:()=>h,Ej:()=>f,Ie:()=>m,Jt:()=>b,Ne:()=>d,RF:()=>c,aI:()=>w,fA:()=>o,gE:()=>a,hZ:()=>g,iT:()=>p,is:()=>M,qv:()=>_,vI:()=>y,vY:()=>l,v_:()=>S,vt:()=>s,w1:()=>u}),r(35522);var n=r(5443),i=(r(19419),r(4197));function s(e=S){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,i,o,l=s()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=i,l[5]=o,l}function l(e,t=s()){return function(e,t,r,n=s()){return g(n,_),function(e,t,r=0,n=t.length/3){let i=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[r,n,s,o,l,a]=e;return t[0]=r,t[1]=n,t[2]=s,t[3]=r,t[4]=n,t[5]=a,t[6]=r,t[7]=l,t[8]=s,t[9]=r,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function m(e){return e?g(e,_):s(_)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];s()},34403(e,t,r){r.d(t,{TP:()=>o});var n=r(79258);Math.PI;const i=n.$O.radius,s=n.$O.eccentricitySquared,o={a1:i*s,a2:i*s*i*s,a3:i*s*s/2,a4:i*s*i*s*2.5,a5:i*s+i*s*s/2,a6:1-s};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},50498(e,t,r){r.d(t,{Ye:()=>h,gy:()=>c,iI:()=>f,yR:()=>p});var n=r(66552),i=r(5443),s=r(91075),o=r(48526),l=r(86738),a=r(39829),u=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},99959(e,t,r){r.d(t,{A:()=>s});var n=r(5482),i=r(91429);let s=class{};s=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],s)},55156(e,t,r){r.d(t,{I:()=>i,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}},89808(e,t,r){r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},162(e,t,r){r.r(t),r.d(t,{default:()=>K});var n=r(5482),i=r(7762),s=r(38961),o=r(25728),l=r(17676),a=r(36708),u=r(84952),c=r(91429),h=r(5443),p=r(16930),f=r(4146),d=r(63074),y=r(34287),g=r(8303),m=r(54310),b=r(25036),v=r(10873),M=r(65529),w=r(25482),_=r(92474),S=r(799),x=r(56507),A=r(89808),C=r(99959);const I=Symbol("isKMLGraphicOrigin");var T;class R extends C.A{get[(T=I,A.Q)](){return this.layer}constructor(e,t){super(),this[T]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var P=r(92602),j=r(70333),O=(r(37838),r(11254)),F=r(4718),E=r(70328),Z=r(537);r(65494),r(22671);const L={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function G(e){const t=e.folders||[],r=t.slice(),n=new Map,i=new Map,s=new Map,o=new Map,l=new Map,a={esriGeometryPoint:i,esriGeometryPolyline:s,esriGeometryPolygon:o};(e.featureCollection?.layers||[]).forEach(e=>{const t=(0,F.o8)(e);t.featureSet.features=[];const r=e.featureSet.geometryType;n.set(r,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===r?N(i,l,e.featureSet.features):"esriGeometryPolyline"===r?N(s,l,e.featureSet.features):"esriGeometryPolygon"===r&&N(o,l,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{l.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(n=>{const i=function(e,t,r){const n=function(e,t){let r;return t.some(t=>t.id===e&&(r=t,!0)),r}(e,r);return n&&(n.parentFolderId=t,n.networkLink=n),n}(n,t.id,e.networkLinks);i&&r.push(i)})}),r.forEach(e=>{if(e.featureInfos){e.points=(0,F.o8)(n.get("esriGeometryPoint")),e.polylines=(0,F.o8)(n.get("esriGeometryPolyline")),e.polygons=(0,F.o8)(n.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const r=a[t.type].get(t.id);r&&e[L[t.type]]?.featureSet.features.push(r);break}case"GroundOverlay":{const r=l.get(t.id);r&&e.mapImages.push(r);break}}e.fullExtent=z([e])}});const u=z(r);return{folders:t,sublayers:r,extent:u}}function k(e,t,r,n){const i=j.id?.findCredential(e);e=(0,u.a6)(e,{token:i?.token});const s=P.A.kmlServiceUrl;return(0,O.A)(s,{query:{url:e,model:"simple",folders:"",refresh:0!==r||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:n})}function $(e,t,r=null,n=[]){const i=[],s={},o=t.sublayers,l=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{const o=new e;if(r?o.read(t,r):o.read(t),n.length&&l.has(o.id)&&(o.visible=n.includes(o.id)),s[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=s[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers?.unshift(o)}else i.unshift(o)}),i}function N(e,t,r){r.forEach(r=>{e.set(r.attributes[t],r)})}function z(e){const t=(0,E.vt)(E.qv),r=(0,E.vt)(E.qv);for(const n of e){if(n.polygons?.featureSet?.features)for(const e of n.polygons.featureSet.features)(0,Z.LJ)(t,e.geometry),(0,E.RF)(r,t);if(n.polylines?.featureSet?.features)for(const e of n.polylines.featureSet.features)(0,Z.LJ)(t,e.geometry),(0,E.RF)(r,t);if(n.points?.featureSet?.features)for(const e of n.points.featureSet.features)(0,Z.LJ)(t,e.geometry),(0,E.RF)(r,t);if(n.mapImages)for(const e of n.mapImages)(0,Z.LJ)(t,e.extent),(0,E.RF)(r,t)}return(0,E.aI)(r,E.qv)?void 0:{xmin:r[0],ymin:r[1],zmin:r[2],xmax:r[3],ymax:r[4],zmax:r[5],spatialReference:p.A.WGS84}}var q,D=r(36005);let U=q=class extends((0,M.Zt)((0,w.T)(_.x_))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}load(e){if(!this.networkLink)return;if(this.networkLink.viewFormat)return;const t=null!=e?e.signal:null,r=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{const t=z(e.sublayers);this.fullExtent=h.A.fromJSON(t),this.sourceJSON=e;const r=(0,x.dp)(i.A.ofType(q),$(q,e));this.sublayers?this.sublayers.addMany(r):this.sublayers=r,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(r),Promise.resolve(this)}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new R(this.layer,this):null}_fetchService(e,t){return k(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>G(e.data))}};(0,n.Cg)([(0,c.MZ)()],U.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:h.A})],U.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)()],U.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,value:null})],U.prototype,"networkLink",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:{allowNull:!0}}})],U.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A.ofType(U),json:{write:{allowNull:!0}}})],U.prototype,"sublayers",void 0),(0,n.Cg)([(0,c.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,S._e)(e)}}})],U.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({value:!0})],U.prototype,"visible",null),(0,n.Cg)([(0,D.w)("visible",["visibility"])],U.prototype,"readVisible",null),(0,n.Cg)([(0,c.MZ)()],U.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,c.MZ)()],U.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)()],U.prototype,"origin",null),U=q=(0,n.Cg)([(0,c.$K)("esri.layers.support.KMLSublayer")],U);var H=r(43937);const J=["kml","xml"];let B=class extends((0,d.dM)((0,m.J)((0,b.j)((0,y.q)((0,g.A)((0,o.M)(f.A))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=p.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get sublayerById(){const e=new Map;for(const t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,r){return $(U,t,r,this._visibleFolders)}writeSublayers(e,t){const r=[],n=e.toArray();for(;n.length;){const e=n[0];e.networkLink||(e.visible&&r.push(e.id),e.sublayers&&n.push(...e.sublayers.toArray())),n.shift()}t.visibleFolders=r}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,J)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],r=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(r))};return e?.forEach(r),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(l.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=G((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:k(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());const t=r=>{if(r.sublayers)for(const n of r.sublayers.items)t(n),n.visible&&n.fullExtent&&(null!=e?e.union(n.fullExtent):e=n.fullExtent.clone())};return t(this),e}};(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"allSublayers",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"sublayerById",null),(0,n.Cg)([(0,c.MZ)({type:p.A})],B.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],B.prototype,"path",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1}})],B.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:["KML"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)({})],B.prototype,"resourceInfo",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A.ofType(U),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,D.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],B.prototype,"readSublayersFromItemOrWebMap",null),(0,n.Cg)([(0,D.w)("service","sublayers",["sublayers"])],B.prototype,"readSublayers",null),(0,n.Cg)([(0,H.K)("sublayers")],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],B.prototype,"title",null),(0,n.Cg)([(0,c.MZ)(v.OZ)],B.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],B.prototype,"visibleSublayers",null),(0,n.Cg)([(0,c.MZ)({type:h.A})],B.prototype,"extent",void 0),(0,n.Cg)([(0,c.MZ)()],B.prototype,"fullExtent",null),B=(0,n.Cg)([(0,c.$K)("esri.layers.KMLLayer")],B);const K=B},54339(e,t,r){function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const n of t.fieldNames)r.push(e.attributes[n]??null);return JSON.stringify(r)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>n,r:()=>i})},8303(e,t,r){r.d(t,{A:()=>w});var n=r(5482),i=r(92602),s=r(70333),o=r(11254),l=r(60999),a=r(49186),u=r(53966),c=r(97768),h=r(17676),p=r(84952),f=r(91429),d=r(77548),y=r(20655),g=r(80812),m=r(41318),b=r(10407),v=r(36005),M=r(43937);const w=e=>{const t=e;let w=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}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 g.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.bind(r,41204));return(0,h.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,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.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,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,l;if(i)o=r.portal.url;else try{o=await(0,d.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!o||!(0,p.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new g.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,h.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.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=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(n))return i.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.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||y.A.getDefault());return r&&n&&!(0,p.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.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,f.MZ)({type:g.default})],w.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],w.prototype,"readPortalItem",null),(0,n.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],w.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],w.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasUpdateItemPrivileges",void 0),w=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],w),w},_={credential:null,user:null}},10407(e,t,r){r.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>p,sQ:()=>h});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(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,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const p={CHARTS:"Charts",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",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},96576(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(4718),o=r(91429),l=r(92438),a=r(63988),u=r(49849),c=r(93223);let h=n=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)(u.Wp)],h.prototype,"symbol",void 0),(0,i.Cg)([(0,c.e)({simple:"simple"})],h.prototype,"type",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],h)},73681(e,t,r){r.d(t,{n:()=>a});var n=r(49186),i=r(53966),s=r(46140),o=r(95466),l=r(55674);class a{static async from(e,t,r){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),h={};if(t)for(const e in t)h[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)h.hasOwnProperty(t.name)||(h[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,l.xR)(e.expression,null,h);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const d=!o||!o.greaterEqual(4,0);d&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const y=new u(r,d);return new a(d,c,f,y)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},65494(e,t,r){r.d(t,{L:()=>a,r:()=>o});var n=r(90360),i=r(41214),s=r(59923);function o(e,t){return a(e,null,t)}const l=(0,n.C)({types:i.Hg});function a(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,r):null}},22671(e,t,r){r.d(t,{A:()=>b});var n,i=r(5482),s=r(52106),o=r(66552),l=r(25482),a=r(4718),u=r(91429),c=r(16930),h=r(60408),p=r(65864),f=r(50498),d=r(20437),y=r(36005),g=r(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=n=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,n){if(e)return void m.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,p.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=c.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[s,o]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+n,e=>i-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=n);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===n&&o===i||(s.push([e-n,o-i]),n=e,i=o)}else n=t(l[0]),i=r(l[1]),s.push([n,i])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,r);o&&i.push(o)}return i.length>0?((0,h.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,h.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,i.Cg)([(0,y.w)("features")],b.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[d.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,y.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>g,QY:()=>p,lL:()=>m,xR:()=>d});var n=r(66131),i=r(49186),s=(r(44208),r(44729)),o=r(15032),l=r(65864),a=r(95466),u=r(43668),c=r(98623);const h=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of h)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return y.create(e,t,null,["$feature","$view"])}function d(e,t,r){return y.create(e,t,r,["$feature","$view","$config"])}class y{static async create(e,t,r,n){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},h=s.compileScript(l,c);let p=null;null!=r&&(p=new o(r),p.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new y(e,s,l,h,t,f,p,o)}constructor(e,t,r,n,i,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new g,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=r?n.lY.epochToArcadeDate(s,r):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class g{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new a.A(m(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function m(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},11831(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),s=r(25482),o=r(90629),l=r(91429),a=r(5760);let u=n=class extends s.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,o.cr)(e)}clone(){return new n({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,l.MZ)({type:a.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,l.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,l.MZ)({type:a._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,l.MZ)({type:a.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=n=(0,i.Cg)([(0,l.$K)("esri.symbols.Font")],u)},68249(e,t,r){r.d(t,{A:()=>d});var n,i=r(5482),s=r(68197),o=r(4718),l=r(90629),a=r(91429),u=r(11831),c=r(20378),h=r(5760),p=r(93223),f=r(43937);let d=n=class extends c.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const n={};return e&&(n.text=e),t&&(n.font=t),r&&(n.color=r),n}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,r,n){n&&"string"!=typeof n?n.origin:t[r]=e}castLineWidth(e){return(0,l.cr)(e)}writeLineHeight(e,t,r,n){n&&"string"!=typeof n?n.origin:t[r]=e}clone(){return new n({angle:this.angle,backgroundColor:(0,o.o8)(this.backgroundColor),borderLineColor:(0,o.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,o.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,o.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],d.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],d.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},cast:l.cr})],d.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],d.prototype,"font",void 0),(0,i.Cg)([(0,a.MZ)({...h.rM,json:{write:!0}})],d.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"kerning",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],d.prototype,"haloColor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"haloSize",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rotated",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"text",void 0),(0,i.Cg)([(0,p.e)({esriTS:"text"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({...h.x0,json:{write:!0}})],d.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"xoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"yoffset",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],d.prototype,"angle",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,a.MZ)({type:Number})],d.prototype,"lineWidth",null),(0,i.Cg)([(0,f.K)("lineWidth")],d.prototype,"writeLineWidth",null),(0,i.Cg)([(0,a.wg)("lineWidth")],d.prototype,"castLineWidth",null),(0,i.Cg)([(0,a.MZ)(h.Tb)],d.prototype,"lineHeight",void 0),(0,i.Cg)([(0,f.K)("lineHeight")],d.prototype,"writeLineHeight",null),d=n=(0,i.Cg)([(0,a.$K)("esri.symbols.TextSymbol")],d)},5760(e,t,r){r.d(t,{NM:()=>l,Tb:()=>a,_R:()=>o,h9:()=>s,rM:()=>u,x0:()=>c,y7:()=>h});var n=r(34727),i=r(56507);const s=["none","underline","line-through"],o=["normal","italic","oblique"],l=["normal","lighter","bold","bolder"],a={type:Number,cast:e=>{const t=(0,i.GB)(e);return 0===t?1:(0,n.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},h=8}}]);