@arcgis/core 4.34.0-next.89 → 4.34.0-next.90

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 (380) hide show
  1. package/applications/Components/featureUtils.d.ts +2 -0
  2. package/applications/Components/featureUtils.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{eada3483116a5ea8baed.js → 004c2a1a37b99a184b13.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{23f54b49742098def8ae.js → 00ee2a605c30744f415a.js} +1 -1
  6. package/assets/esri/core/workers/chunks/024063fe2bbb27899094.js +1 -0
  7. package/assets/esri/core/workers/chunks/0271a2ca4e9b1e4fd284.js +1 -0
  8. package/assets/esri/core/workers/chunks/0328eaea66c1db98da1c.js +1 -0
  9. package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +1 -0
  10. package/assets/esri/core/workers/chunks/{8380a092ffc8e92ede7a.js → 05072093e0209ef5db20.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{b53008c1461dd6bacc63.js → 06221ebadab32111e2c6.js} +1 -1
  12. package/assets/esri/core/workers/chunks/06aed0a5464965be8d52.js +1 -0
  13. package/assets/esri/core/workers/chunks/{67fdc8074cdcf374af9a.js → 07a7ca89ef2ca4fc090b.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0810dbbf348a927392e7.js +1 -0
  15. package/assets/esri/core/workers/chunks/08374e5805fcedc1cb57.js +1 -0
  16. package/assets/esri/core/workers/chunks/0856cd281efd71bfe3c4.js +1 -0
  17. package/assets/esri/core/workers/chunks/08957e462d06c4dc8ab5.js +1 -0
  18. package/assets/esri/core/workers/chunks/0aaaf4d1c4a5d284216e.js +1 -0
  19. package/assets/esri/core/workers/chunks/{3c0990c4be06a2fd51e9.js → 0ca5060c81a1a05b8be3.js} +1 -1
  20. package/assets/esri/core/workers/chunks/0ceb68ff73e5d39e837a.js +1 -0
  21. package/assets/esri/core/workers/chunks/{998d164b3e0b99a0ff1e.js → 0e5e565df6ec71445f2e.js} +1 -1
  22. package/assets/esri/core/workers/chunks/0f4e9846d074864b39c2.js +1 -0
  23. package/assets/esri/core/workers/chunks/100a0041ee42b0b2fa32.js +1 -0
  24. package/assets/esri/core/workers/chunks/1194c2432c31def87db1.js +1 -0
  25. package/assets/esri/core/workers/chunks/{2896ada406074f754b00.js → 1214c126af0de25a4b4a.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{978ffde9ebebf5c83aea.js → 14114be3afd6d292f89c.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{4dd4b19c410026233999.js → 142c45ad68eecaf3fc7c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{2b2f1fcd50dea017d891.js → 147f6e7b147beaa4ed29.js} +1 -1
  29. package/assets/esri/core/workers/chunks/155dcbd957f8787a45c3.js +1 -0
  30. package/assets/esri/core/workers/chunks/{d5363e5637d37e89a25f.js → 18e9cb71fa020e93d139.js} +1 -1
  31. package/assets/esri/core/workers/chunks/19bd0b56d82446dbb7c5.js +1 -0
  32. package/assets/esri/core/workers/chunks/{96de78f9994207aa7201.js → 1bbc0dfad4cd72a1c42b.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{914eaed113dda727eb47.js → 20988e116f3723228f36.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{831a69e5a87e92830fbe.js → 21f37a4b8d1857369203.js} +1 -1
  35. package/assets/esri/core/workers/chunks/22c3a21bc9f32c429c48.js +1 -0
  36. package/assets/esri/core/workers/chunks/282c4f3484c605ce7d5e.js +1 -0
  37. package/assets/esri/core/workers/chunks/2870723d57aa7b885896.js +1 -0
  38. package/assets/esri/core/workers/chunks/28bb6896c5fd353ca5e9.js +1 -0
  39. package/assets/esri/core/workers/chunks/2b867cec6ada339f1c8f.js +1 -0
  40. package/assets/esri/core/workers/chunks/{709dc98379f4ce18a0b5.js → 31186e83fe009aa0fd36.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{c779c8b98e07fa881c1d.js → 348c871657b0af621c33.js} +1 -1
  42. package/assets/esri/core/workers/chunks/35ca317490540fae437c.js +1 -0
  43. package/assets/esri/core/workers/chunks/{c5fe356fc5b8b7be0d31.js → 375f20f2e91d6a7507e8.js} +1 -1
  44. package/assets/esri/core/workers/chunks/3807d0b9b1894731174d.js +1 -0
  45. package/assets/esri/core/workers/chunks/38d874d7f815f5329420.js +1 -0
  46. package/assets/esri/core/workers/chunks/393274af1804e5b6046a.js +1 -0
  47. package/assets/esri/core/workers/chunks/3c3b1dc95f03082e4d5b.js +1 -0
  48. package/assets/esri/core/workers/chunks/3dcdbba706a8034b6ba3.js +1 -0
  49. package/assets/esri/core/workers/chunks/{834985ec601623df34a1.js → 3e11a893271caa11a881.js} +1 -1
  50. package/assets/esri/core/workers/chunks/4133ab8720e7e4afa9a6.js +1 -0
  51. package/assets/esri/core/workers/chunks/{b246ed6d86c2c8df56fb.js → 41f275401e1cde7eee20.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{595593dd03bcfba795c8.js → 4660798b3b45dcb5cecb.js} +2 -2
  53. package/assets/esri/core/workers/chunks/{69ae235423f0b1bdfcb4.js → 48c8ef4170e803a564d6.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{c90830ee562b5ddc4f8b.js → 49e6219dd08cb6c27023.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{00bbd37910c70989b54d.js → 4d0e099f34639cda3a9b.js} +1 -1
  56. package/assets/esri/core/workers/chunks/4d807bfe75108438db83.js +1 -0
  57. package/assets/esri/core/workers/chunks/{d1fc2c6e95fe2572d297.js → 50d9f69d5255af4b29bb.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{300b96f0f8e34b4a5d8b.js → 56de25a6fe659a5b5c2b.js} +1 -1
  59. package/assets/esri/core/workers/chunks/57c08ccb75e3135978d1.js +1 -0
  60. package/assets/esri/core/workers/chunks/5ad1985a9e66fb2232ae.js +1 -0
  61. package/assets/esri/core/workers/chunks/{d8494617cebc68e50d35.js → 5b7a2ee44883b1fb2a5f.js} +1 -1
  62. package/assets/esri/core/workers/chunks/5caf49e679ed0c27e0bd.js +1 -0
  63. package/assets/esri/core/workers/chunks/{f5c821ca2911a5103c9a.js → 5d15ca055071d7db6de8.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{59139347495988b19061.js → 61a9ffd4cf07d8bb7a9b.js} +1 -1
  65. package/assets/esri/core/workers/chunks/61e8e159f1f336569b27.js +1 -0
  66. package/assets/esri/core/workers/chunks/{88b8f33ce1cbf8a0f855.js → 633faa9cec8988ab06af.js} +4 -4
  67. package/assets/esri/core/workers/chunks/648c91a9822bc9d6ee47.js +1 -0
  68. package/assets/esri/core/workers/chunks/6aa349e1adf844df4b5b.js +1 -0
  69. package/assets/esri/core/workers/chunks/{d2371f5034b2a32e2523.js → 6cfa0967045068ce8a8b.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{28d30be414e59eabd963.js → 70c8f69eed14d55c5cf6.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{fdc8300b6374ef2b8b3e.js → 74881340e040bfd0580f.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{8be81e1530b952c97936.js → 768ae52b4e5c3e571ef5.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{b43473e84b3f7fa2634d.js → 77e611724a499d36eacc.js} +1 -1
  74. package/assets/esri/core/workers/chunks/7f8b85de079614b9c336.js +1 -0
  75. package/assets/esri/core/workers/chunks/{9280edff80fd87860a5e.js → 80a155496deef2c02a3e.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{7db105f6b688b6da8106.js → 82ba4140e30f083fbc87.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{672c04d48aa51f16e9b7.js → 8a6052b4d163d5088e11.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{5b35b30495145bf8dd5d.js → 8ff2daef892881ff2019.js} +1 -1
  79. package/assets/esri/core/workers/chunks/9a855a10798348a21bab.js +1 -0
  80. package/assets/esri/core/workers/chunks/9bb6984f24cd5461a754.js +1 -0
  81. package/assets/esri/core/workers/chunks/9d9a639f7388a29e7c96.js +1 -0
  82. package/assets/esri/core/workers/chunks/{813efde41e90e652b7db.js → 9f2a3f37fe9b19ef1209.js} +1 -1
  83. package/assets/esri/core/workers/chunks/a1a7b0e7ca488c895cb7.js +1 -0
  84. package/assets/esri/core/workers/chunks/a6a2d4602dfeb62e0ecc.js +1 -0
  85. package/assets/esri/core/workers/chunks/{d3fd11da3a823e148957.js → ab88577987cf2fe1cb32.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{a6767d75e718f2e1e714.js → ad9606164c694af0c61f.js} +1 -1
  87. package/assets/esri/core/workers/chunks/b18887a6dc86f0c8324a.js +1 -0
  88. package/assets/esri/core/workers/chunks/b240298b8b643a323d34.js +1 -0
  89. package/assets/esri/core/workers/chunks/{481c2b01e2fe92249698.js → b265472ac3f949a7f40c.js} +1 -1
  90. package/assets/esri/core/workers/chunks/b47f26d6aa9a2848a677.js +1 -0
  91. package/assets/esri/core/workers/chunks/{4094cebc4b92c52f4e27.js → b48abbf877e26ed1a4f8.js} +1 -1
  92. package/assets/esri/core/workers/chunks/b510c07dfd0d31683b08.js +1 -0
  93. package/assets/esri/core/workers/chunks/b661ea374fe38c8e29ca.js +1 -0
  94. package/assets/esri/core/workers/chunks/b8f55ee77ab6ea4c289e.js +1 -0
  95. package/assets/esri/core/workers/chunks/{ccd157ede169b93eea65.js → bb0a1be03bb9d621432c.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{fdae43a97537093e4b97.js → bdf0ab95401c6d8fbc7d.js} +1 -1
  97. package/assets/esri/core/workers/chunks/c20862fe15295a294bbd.js +1 -0
  98. package/assets/esri/core/workers/chunks/{365d63c2aed3a49918f2.js → c27783ce7ea51a5e49c5.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{ce937ff0dd1147ea297e.js → c3020747f9001ca6a6e7.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{516864fb68025acc7db6.js → c547692862df95d22818.js} +1 -1
  101. package/assets/esri/core/workers/chunks/c5c6a32a24005478c976.js +1 -0
  102. package/assets/esri/core/workers/chunks/{e4acc3c2b6d865ed1940.js → c7c76a8a1c47eb62bef1.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{58422c616a824ab49218.js → c84665db250b05e2829d.js} +1 -1
  104. package/assets/esri/core/workers/chunks/cb6a9b43406f4fbe10b2.js +1 -0
  105. package/assets/esri/core/workers/chunks/{cef9ff811221a7c3812c.js → cb90cfa35d77ab561939.js} +1 -1
  106. package/assets/esri/core/workers/chunks/ced12ad98f8f48d0dc00.js +1 -0
  107. package/assets/esri/core/workers/chunks/{bd451668c4ce9f7d7128.js → d56548a994753b08403c.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{251b7f2e295ce191eb62.js → da4163b4f9b34e83c92d.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{43fba9d6be5971ec20a9.js → e0017c6739d2532793e6.js} +1 -1
  110. package/assets/esri/core/workers/chunks/e22b400636094fc7b6c0.js +1 -0
  111. package/assets/esri/core/workers/chunks/{0296ebe8e37e30af771c.js → e2fdc4dc1ab9decd731e.js} +1 -1
  112. package/assets/esri/core/workers/chunks/e34136ad9d620cb845fd.js +1 -0
  113. package/assets/esri/core/workers/chunks/e537e1d37f3fcb14fce2.js +1 -0
  114. package/assets/esri/core/workers/chunks/e5baa30944061418cb13.js +1 -0
  115. package/assets/esri/core/workers/chunks/edef1e2254c992459c63.js +1 -0
  116. package/assets/esri/core/workers/chunks/{109149c378aa4c5f8526.js → eea9d49d55c2d1355497.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{3245663da75e168bf85c.js → ef75cad6570b14a42b62.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{2a2a925c45d5fd58628b.js → f3284d4e0d41efb0b4a0.js} +1 -1
  119. package/assets/esri/core/workers/chunks/f62717338075df626eda.js +1 -0
  120. package/assets/esri/core/workers/chunks/{d07d3b0e06f12aee4a8b.js → f6ce485c082d0d640b01.js} +1 -1
  121. package/assets/esri/core/workers/chunks/fb6ebb780bb59e252887.js +1 -0
  122. package/assets/esri/core/workers/chunks/{69e6000044bfb03776ac.js → fd34c033ce7f16835368.js} +1 -1
  123. package/assets/esri/core/workers/chunks/fdadf11f31384c09db9f.js +1 -0
  124. package/assets/esri/core/workers/chunks/{80bd5988180f4618fd61.js → ff6d189ba78980d40bb5.js} +1 -1
  125. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  126. package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
  127. package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
  128. package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
  129. package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
  130. package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
  131. package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
  132. package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
  133. package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
  134. package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
  135. package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
  136. package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
  137. package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
  138. package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
  139. package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
  140. package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
  141. package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
  142. package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
  143. package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
  144. package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
  145. package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
  146. package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
  147. package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
  148. package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
  149. package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
  150. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
  151. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
  152. package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
  153. package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
  154. package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
  155. package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
  156. package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
  157. package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
  158. package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
  159. package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
  160. package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
  161. package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
  162. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
  163. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
  164. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
  165. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ar.json +1 -1
  166. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_bg.json +1 -1
  167. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_bs.json +1 -1
  168. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ca.json +1 -1
  169. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_cs.json +1 -1
  170. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_da.json +1 -1
  171. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_de.json +1 -1
  172. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_el.json +1 -1
  173. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_es.json +1 -1
  174. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_et.json +1 -1
  175. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_fi.json +1 -1
  176. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_fr.json +1 -1
  177. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_he.json +1 -1
  178. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_hr.json +1 -1
  179. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_hu.json +1 -1
  180. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_id.json +1 -1
  181. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_it.json +1 -1
  182. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ja.json +1 -1
  183. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ko.json +1 -1
  184. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_lt.json +1 -1
  185. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_lv.json +1 -1
  186. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_nl.json +1 -1
  187. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_no.json +1 -1
  188. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pl.json +1 -1
  189. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pt-BR.json +1 -1
  190. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pt-PT.json +1 -1
  191. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ro.json +1 -1
  192. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ru.json +1 -1
  193. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sk.json +1 -1
  194. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sl.json +1 -1
  195. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sr.json +1 -1
  196. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sv.json +1 -1
  197. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_th.json +1 -1
  198. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_tr.json +1 -1
  199. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_uk.json +1 -1
  200. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_vi.json +1 -1
  201. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-CN.json +1 -1
  202. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-HK.json +1 -1
  203. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-TW.json +1 -1
  204. package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
  205. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  206. package/chunks/GaussianSplat.glsl.js +2 -2
  207. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  208. package/chunks/GeodeticUtils.js +1 -1
  209. package/chunks/GlowBlur.glsl.js +5 -5
  210. package/chunks/MultiPathImpl.js +1 -1
  211. package/chunks/OITBlend.glsl.js +9 -7
  212. package/chunks/OperatorCrosses.js +1 -1
  213. package/chunks/OperatorCut.js +1 -1
  214. package/chunks/OperatorGeodesicBuffer.js +1 -1
  215. package/chunks/OperatorGeodeticArea.js +1 -1
  216. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  217. package/chunks/OperatorGeodeticLength.js +1 -1
  218. package/chunks/OperatorIntersects.js +1 -1
  219. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  220. package/chunks/OperatorOverlaps.js +1 -1
  221. package/chunks/OperatorProximity.js +1 -1
  222. package/chunks/OperatorProximityGeodesic.js +1 -1
  223. package/chunks/OperatorShapePreservingLength.js +1 -1
  224. package/chunks/OperatorShapePreservingProject.js +1 -1
  225. package/chunks/OperatorSimplifyOGC.js +1 -1
  226. package/chunks/OperatorTouches.js +1 -1
  227. package/chunks/OperatorWithin.js +1 -1
  228. package/chunks/Point2D.js +1 -1
  229. package/chunks/ProjectionTransformation.js +1 -1
  230. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  231. package/chunks/UnitFactory.js +1 -1
  232. package/chunks/containsOperator.js +1 -1
  233. package/chunks/disjointOperator.js +1 -1
  234. package/chunks/equalsOperator.js +1 -1
  235. package/chunks/relateOperator.js +1 -1
  236. package/config.js +1 -1
  237. package/geohash/geohashUtils.js +1 -1
  238. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  239. package/geometry/operators/gx/operatorBuffer.js +1 -1
  240. package/geometry/operators/gx/operatorDifference.js +1 -1
  241. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  242. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  243. package/geometry/operators/gx/operatorIntersection.js +1 -1
  244. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  245. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  246. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  247. package/geometry/operators/gx/operatorSimplify.js +1 -1
  248. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  249. package/geometry/operators/gx/operatorUnion.js +1 -1
  250. package/geometry/operators/json/containsOperator.js +1 -1
  251. package/geometry/operators/json/disjointOperator.js +1 -1
  252. package/geometry/operators/json/projectOperator.js +5 -0
  253. package/geometry/operators/projectOperator.js +1 -1
  254. package/geometry/operators/reshapeOperator.js +1 -1
  255. package/geometry/operators/shapePreservingProjectOperator.js +1 -1
  256. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  257. package/geometry/operators/support/initNoPeFactory.js +1 -1
  258. package/geometry/operators/support/jsonConverter.js +1 -1
  259. package/geometry/operators/support/projectionTransformation.js +5 -0
  260. package/geometry/projectionUtils.js +1 -1
  261. package/geometry/support/GeographicTransformation.js +1 -1
  262. package/geometry/support/GeographicTransformationStep.js +1 -1
  263. package/interfaces.d.ts +359 -0
  264. package/intl/date.js +1 -1
  265. package/kernel.js +1 -1
  266. package/layers/graphics/data/QueryEngine.js +1 -1
  267. package/layers/graphics/data/projectionSupport.js +1 -1
  268. package/layers/graphics/data/queryUtils.js +1 -1
  269. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  270. package/layers/support/DateTimeFieldFormat.d.ts +4 -0
  271. package/layers/support/FieldConfiguration.d.ts +4 -0
  272. package/layers/support/NumberFieldFormat.d.ts +4 -0
  273. package/layers/support/vectorTileLayerLoader.js +1 -1
  274. package/package.json +2 -2
  275. package/support/revision.js +1 -1
  276. package/views/2d/engine/flow/dataUtils.js +1 -1
  277. package/views/2d/engine/flow/utils.js +1 -1
  278. package/views/2d/layers/MediaLayerView2D.js +1 -1
  279. package/views/2d/layers/TileLayerView2D.js +1 -1
  280. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +4 -0
  281. package/views/3d/{support/flow/VisualQuery3D.js → analysis/VolumeMeasurement/VolumeMeasurementError.js} +1 -1
  282. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  283. package/views/3d/layers/FlowSubView3D.js +1 -1
  284. package/views/3d/state/ViewState.js +1 -1
  285. package/views/3d/state/controllers/SurfaceCollisionCorrectionController.js +1 -1
  286. package/views/3d/support/DisplayQualityProfile.js +1 -1
  287. package/views/3d/support/QualitySettings.js +1 -1
  288. package/views/3d/support/flow/FlowQuery3D.js +5 -0
  289. package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
  290. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  291. package/views/3d/support/flow/FlowWorker.js +1 -1
  292. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  293. package/views/3d/support/flow/geometryUtils.js +1 -1
  294. package/views/3d/support/flow/loadUtils.js +1 -1
  295. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  296. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +2 -2
  297. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  298. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  299. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  300. package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
  301. package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
  302. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  303. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  304. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  305. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  306. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  307. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  308. package/views/VideoView.js +1 -1
  309. package/views/webgl/enums.js +1 -1
  310. package/views/webgl/renderState.js +1 -1
  311. package/webmap/utils.js +1 -1
  312. package/widgets/Editor/Upload.js +1 -1
  313. package/widgets/FeatureTable/FieldColumn.js +1 -1
  314. package/widgets/FeatureTable/support/tableUtils.js +1 -1
  315. package/widgets/OrientedImageryViewer.js +1 -1
  316. package/assets/esri/core/workers/chunks/0103b70126bc5dffc55e.js +0 -1
  317. package/assets/esri/core/workers/chunks/03ef19f0753d68770444.js +0 -1
  318. package/assets/esri/core/workers/chunks/050429f516149ce3b517.js +0 -1
  319. package/assets/esri/core/workers/chunks/09f1a27442bdd52cdeb7.js +0 -1
  320. package/assets/esri/core/workers/chunks/0fadd1defbb6743dacdc.js +0 -1
  321. package/assets/esri/core/workers/chunks/124f8757ea18bfd158ec.js +0 -1
  322. package/assets/esri/core/workers/chunks/135142f3cbfaf24949bc.js +0 -1
  323. package/assets/esri/core/workers/chunks/138c11b5eca621e51396.js +0 -1
  324. package/assets/esri/core/workers/chunks/14743a962e661babe0a4.js +0 -1
  325. package/assets/esri/core/workers/chunks/1bf17c6548ac4cd5a166.js +0 -1
  326. package/assets/esri/core/workers/chunks/1d9212a70df68a508dca.js +0 -1
  327. package/assets/esri/core/workers/chunks/213e82a7e3fa5b253ec1.js +0 -1
  328. package/assets/esri/core/workers/chunks/3b23c37e5bc552dc81d4.js +0 -1
  329. package/assets/esri/core/workers/chunks/3d68a650a1f944ec5171.js +0 -1
  330. package/assets/esri/core/workers/chunks/451555af283b32a10fef.js +0 -1
  331. package/assets/esri/core/workers/chunks/48913b944c28343816ac.js +0 -1
  332. package/assets/esri/core/workers/chunks/4e6e8dda6c12f6fbed8e.js +0 -1
  333. package/assets/esri/core/workers/chunks/4e77b9cc1d9437bcbb0c.js +0 -1
  334. package/assets/esri/core/workers/chunks/5019f1b8186a65a0313b.js +0 -1
  335. package/assets/esri/core/workers/chunks/547af4ffbeeccba9d187.js +0 -1
  336. package/assets/esri/core/workers/chunks/589a0e244ef5f1b84ab6.js +0 -1
  337. package/assets/esri/core/workers/chunks/59e27818cb68f0285d54.js +0 -1
  338. package/assets/esri/core/workers/chunks/5e1d6704ee0aa41b1d06.js +0 -1
  339. package/assets/esri/core/workers/chunks/6b0baecbd35d26393dcf.js +0 -1
  340. package/assets/esri/core/workers/chunks/6dafb2b95bae552c1cc2.js +0 -1
  341. package/assets/esri/core/workers/chunks/71df48968d6cdc736458.js +0 -1
  342. package/assets/esri/core/workers/chunks/773d106f60f7dad1493d.js +0 -1
  343. package/assets/esri/core/workers/chunks/79c4f10da8360ee60cd2.js +0 -1
  344. package/assets/esri/core/workers/chunks/7aa7aff6d42be7c2d1d2.js +0 -1
  345. package/assets/esri/core/workers/chunks/82404ff7c298493ff6f4.js +0 -1
  346. package/assets/esri/core/workers/chunks/84a556dafd583635ad5e.js +0 -1
  347. package/assets/esri/core/workers/chunks/885a398de8a33d36c59e.js +0 -1
  348. package/assets/esri/core/workers/chunks/8bd6c27a93a697a7fa3d.js +0 -1
  349. package/assets/esri/core/workers/chunks/8be9fa12e854a83062c3.js +0 -1
  350. package/assets/esri/core/workers/chunks/9386a0ebff78b6303ed2.js +0 -1
  351. package/assets/esri/core/workers/chunks/9673e25114fc1897460d.js +0 -1
  352. package/assets/esri/core/workers/chunks/96a14689815bec741308.js +0 -1
  353. package/assets/esri/core/workers/chunks/977582cb3c8f17a2cb4c.js +0 -1
  354. package/assets/esri/core/workers/chunks/97d71459ad72b4b780a3.js +0 -1
  355. package/assets/esri/core/workers/chunks/a1abe9865d66789bd5af.js +0 -1
  356. package/assets/esri/core/workers/chunks/a7ea2e3895046e566bc6.js +0 -1
  357. package/assets/esri/core/workers/chunks/a96e58ed9a4a2329ee53.js +0 -1
  358. package/assets/esri/core/workers/chunks/aa778e5d7db40d9b9b4a.js +0 -1
  359. package/assets/esri/core/workers/chunks/acb49f3d2b783e81a215.js +0 -1
  360. package/assets/esri/core/workers/chunks/b0a03b6edbcf6e933431.js +0 -1
  361. package/assets/esri/core/workers/chunks/bc83bcfe123525d21884.js +0 -1
  362. package/assets/esri/core/workers/chunks/bd028badc07270eda3d0.js +0 -1
  363. package/assets/esri/core/workers/chunks/be8dd8e68c8805300ad1.js +0 -1
  364. package/assets/esri/core/workers/chunks/c1d75c48558ed23c5b2b.js +0 -1
  365. package/assets/esri/core/workers/chunks/c24214666d10cb648428.js +0 -1
  366. package/assets/esri/core/workers/chunks/c3010d783506f8410f99.js +0 -1
  367. package/assets/esri/core/workers/chunks/d0296368ae143de4d5ce.js +0 -1
  368. package/assets/esri/core/workers/chunks/d51aabb9b950f49df183.js +0 -1
  369. package/assets/esri/core/workers/chunks/d8a0eb143b2079d7b6b7.js +0 -1
  370. package/assets/esri/core/workers/chunks/dca2b487152cde45fb65.js +0 -1
  371. package/assets/esri/core/workers/chunks/e760b8ca64d67c04d98a.js +0 -1
  372. package/assets/esri/core/workers/chunks/ee78a38a0cacb19b2fd4.js +0 -1
  373. package/assets/esri/core/workers/chunks/f5710ced8d38f9a90fc5.js +0 -1
  374. package/assets/esri/core/workers/chunks/f592c4e5e1746d4619db.js +0 -1
  375. package/assets/esri/core/workers/chunks/f8d2c52cc51d5f1bbce2.js +0 -1
  376. package/assets/esri/core/workers/chunks/f9decc88561c03aca3c9.js +0 -1
  377. package/assets/esri/core/workers/chunks/fd1fdb97a294a1b7041d.js +0 -1
  378. package/assets/esri/core/workers/chunks/ffee8cc83d703c1dc0c0.js +0 -1
  379. package/chunks/CompositeGeographicTransformation.js +0 -5
  380. package/chunks/GeographicTransformation.js +0 -5
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5890],{8303:(t,e,r)=>{r.d(e,{A:()=>C});var n=r(31635),i=r(92602),s=r(70333),l=r(78888),o=r(60999),a=r(49186),u=r(53966),c=r(97768),h=r(74887),p=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),y=r(40608),g=r(43937),m=r(77548),w=r(20655),S=r(80812),v=r(41318),M=r(10407);const C=t=>{const e=t;let C=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new S.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,h.Te)(e),await n({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,h.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,h.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,h.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const n=!s.id?.findCredential(this.url),i=t===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let l,o;if(i)l=r.portal.url;else try{l=await(0,m.wI)(this.url,e)}catch(t){(0,h.QP)(t)}if(!l||!(0,p.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.QP)(t)}const a=!0,u=!1,c=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new S.default({id:t,portal:{url:l}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,n)}catch(t){(0,h.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const r=(0,M.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=b.credential===e?b.user:await this._fetchEditingUser(t);return b.credential=e,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=w.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!=t?t.signal:null,c=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,n=this.portalItem?.id&&(this.portalItem.portal||w.A.getDefault());return r&&n&&!(0,p.ut)(n.restUrl,r.restUrl)?(e.messages&&e.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(t,{...e,layer:this})}};return(0,n.Cg)([(0,d.MZ)({type:S.default})],C.prototype,"portalItem",null),(0,n.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,n.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,n.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],C),C},b={credential:null,user:null}},9762:(t,e,r)=>{r.r(e),r.d(e,{projectBuffer:()=>i});var n=r(37539);function i(t,e,r,i,s,l,o=Math.floor(t.length/3)){const a=(0,n.jd)(e,s);if(null==a)return!1;if(a===n.pO){if(t===i&&r===l)return!0;const e=r+3*o;for(let n=r,s=l;n<e;n++,s++)i[s]=t[n];return!0}const u=r+3*o;for(let e=r,n=l;e<u;e+=3,n+=3)a(t,e,i,n);return!0}},10407:(t,e,r)=>{r.d(e,{It:()=>d,LG:()=>l,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>a,mm:()=>p,sQ:()=>h});var n=r(98988),i=r(16930),s=r(28735);function l(t,e){if(!o(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function a(t){return o(t,p.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function c(t,e,r){r?l(t,e):u(t,e)}async function h(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,s.ci)(t);const r=i.A.WGS84;return await(0,n.initializeProjection)(e,r),(0,n.project)(t,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 d(t){const{portal:e,isOrgItem:r,itemControl:n}=t,i=e.user?.privileges;let s=!i||i.includes("features:user:edit"),l=!!r&&!!i?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?l=s=!0:l&&(s=!0),{features:{edit:s,fullEdit:l},content:{updateItem:o}}}},20378:(t,e,r)=>{r.d(e,{A:()=>p});var n=r(31635),i=r(68197),s=r(66552),l=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608);const c=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,p=class extends l.o{constructor(t){super(t),this.id="sym"+h++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n.Cg)([(0,o.MZ)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write,isRequired:!0}}})],p.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,n.Cg)([(0,a.w)("color")],p.prototype,"readColor",null),p=(0,n.Cg)([(0,u.$)("esri.symbols.Symbol")],p)},31593:(t,e,r)=>{r.d(e,{A:()=>C});var n=r(31635),i=r(66552),s=r(4718),l=r(90629),o=r(10107),a=(r(44208),r(53966),r(93223)),u=r(40608),c=(r(87811),r(20378));let h=class extends c.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,n.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,cast:l.cr,json:{write:!0}})],h.prototype,"width",void 0),h=(0,n.Cg)([(0,u.$)("esri.symbols.LineSymbol")],h);var p,d=r(68197),f=r(25482),y=r(36005),g=r(43937),m=r(83213);let w=p=class extends f.o{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,n){e[r]="web-map"===n?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,n){"web-map"===n?.origin||(e[r]=t)}clone(){return new p({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,n.Cg)([(0,o.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],w.prototype,"placement",void 0),(0,n.Cg)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,o.MZ)({json:{origins:{"web-map":{write:!1}}}})],w.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:m.z})],w.prototype,"style",void 0),(0,n.Cg)([(0,g.K)("style")],w.prototype,"writeStyle",null),(0,n.Cg)([(0,o.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],w.prototype,"color",null),(0,n.Cg)([(0,y.w)("color")],w.prototype,"readColor",null),(0,n.Cg)([(0,g.K)("color")],w.prototype,"writeColor",null),w=p=(0,n.Cg)([(0,u.$)("esri.symbols.LineSymbolMarker")],w);const S=w;var v;const M=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let C=v=class extends h{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,n,i,s){if(t&&"string"!=typeof t)return t;const o={};return null!=t&&(o.style=t),null!=e&&(o.color=e),null!=r&&(o.width=(0,l.cr)(r)),null!=n&&(o.cap=n),null!=i&&(o.join=i),null!=s&&(o.miterLimit=(0,l.cr)(s)),o}clone(){return new v({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,n.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],C.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:M.apiValues,json:{read:M.read,write:M.write}})],C.prototype,"style",void 0),(0,n.Cg)([(0,o.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],C.prototype,"cap",void 0),(0,n.Cg)([(0,o.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],C.prototype,"join",void 0),(0,n.Cg)([(0,o.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":S}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"marker",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:!1,write:!1}})],C.prototype,"miterLimit",void 0),C=v=(0,n.Cg)([(0,u.$)("esri.symbols.SimpleLineSymbol")],C)},37539:(t,e,r)=>{r.d(e,{pO:()=>y,jd:()=>p,Tp:()=>d,w5:()=>h});var n=r(34727),i=r(83047),s=r(73941),l=r(79258);Math.PI;const o=l.$O.radius,a=l.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=r(21325);const h={2:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:w,2:y,4:k},5:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:w,2:y,4:k},7:{5:null,7:y,9:null,10:y,1:null,6:C,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,r,n){const i=t[e]/E,s=L-2*Math.atan(Math.exp(-t[e+1]/E)),l=E+t[e+2],o=Math.cos(s)*l;r[n]=Math.cos(i)*o,r[n+1]=Math.sin(i)*o,r[n+2]=Math.sin(s)*l},6:null,8:null,0:null,3:y,11:function(t,e,r,n){g(t,e,r,n),w(r,n,r,n)},2:g,4:function(t,e,r,n){g(t,e,r,n),k(r,n,r,n)}},4:{5:R,7:null,9:null,10:R,1:function(t,e,r,n){R(t,e,r,n),b(r,n,r,n)},6:null,8:null,0:null,3:function(t,e,r,n){R(t,e,r,n),m(r,n,r,n)},11:function(t,e,r,n){R(t,e,r,n),w(r,n,r,n)},2:R,4:y},1:{5:I,7:null,9:null,10:I,1:y,6:null,8:null,0:null,3:function(t,e,r,n){I(t,e,r,n),m(r,n,r,n)},11:function(t,e,r,n){I(t,e,r,n),w(r,n,r,n)},2:I,4:function(t,e,r,n){I(t,e,r,n),k(r,n,r,n)}},6:{5:null,7:P,9:null,10:P,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:y,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:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:b,6:C,8:M,0:null,3:m,11:w,2:y,4:k},11:{5:S,7:null,9:null,10:S,1:function(t,e,r,n){S(t,e,r,n),b(r,n,r,n)},6:null,8:null,0:null,3:function(t,e,r,n){S(t,e,r,n),m(r,n,r,n)},11:y,2:S,4:function(t,e,r,n){S(t,e,r,n),k(r,n,r,n)}}};function p(t,e){return d(t,e)?.projector}function d(t,e){if(null==t||null==e)return null;if(j.source.spatialReference===t&&j.dest.spatialReference===e)return j;const r=f(t,j.source),n=f(e,j.dest);return 0===r&&0===n?(0,c.aI)(t,e)?j.projector=y:j.projector=null:j.projector=h[r][n],j}function f(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,c.oT)(t)?e.spatialReferenceId=2:(0,c.K8)(t)?e.spatialReferenceId=3:(0,c.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,c.q8)(t)?e.spatialReferenceId=7:(0,c.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function y(t,e,r,n){t!==r&&(r[n++]=t[e++],r[n++]=t[e++],r[n]=t[e])}function g(t,e,r,n){r[n]=$*(t[e]/E),r[n+1]=$*(L-2*Math.atan(Math.exp(-t[e+1]/E))),r[n+2]=t[e+2]}function m(t,e,r,i){!function(t,e,r,i,s){const l=.4999999*Math.PI,o=(0,n.qE)(x*t[e+1],-l,l),a=Math.sin(o);r[i++]=x*t[e]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=t[e+2]}(t,e,r,i,l.$O)}function w(t,e,r,n){r[n]=t[e]*Z,r[n+1]=t[e+1]*Z,r[n+2]=t[e+2]}function S(t,e,r,n){r[n]=t[e]*O,r[n+1]=t[e+1]*O,r[n+2]=t[e+2]}function v(t,e,r,n,i){const s=i+t[e+2],l=x*t[e+1],o=x*t[e],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 M(t,e,r,n){v(t,e,r,n,l.Sw.radius)}function C(t,e,r,n){v(t,e,r,n,l.sH.radius)}function b(t,e,r,n){v(t,e,r,n,l.$O.radius)}function _(t,e,r,i,s){const l=t[e],o=t[e+1],a=t[e+2],u=Math.sqrt(l*l+o*o+a*a),c=(0,n.YN)(a/(0===u?1:u)),h=Math.atan2(o,l);r[i++]=$*h,r[i++]=$*c,r[i]=u-s}function A(t,e,r,n){_(t,e,r,n,l.Sw.radius)}function P(t,e,r,n){_(t,e,r,n,l.sH.radius)}function I(t,e,r,n){_(t,e,r,n,l.$O.radius)}function k(t,e,r,n){!function(t,e,r,n,i){const s=x*t[e],l=x*t[e+1],o=t[e+2],a=Math.sin(l),u=Math.cos(l),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+o)*u*Math.cos(s),r[n++]=(c+o)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+o)*a}(t,e,r,n,l.$O)}function R(t,e,r,n){const i=u,s=t[e],o=t[e+1],a=t[e+2];let c,h,p,d,f,y,g,m,w,S,v,M,C,b,_,A,P,I,k,R,j;c=Math.abs(a),h=s*s+o*o,p=Math.sqrt(h),d=h+a*a,f=Math.sqrt(d),R=Math.atan2(o,s),y=a*a/d,g=h/d,b=i.a2/f,_=i.a3-i.a4/f,g>.3?(m=c/f*(1+g*(i.a1+b+y*_)/f),k=Math.asin(m),S=m*m,w=Math.sqrt(1-S)):(w=p/f*(1-y*(i.a5-b-g*_)/f),k=Math.acos(w),S=1-w*w,m=Math.sqrt(S)),v=1-l.$O.eccentricitySquared*S,M=l.$O.radius/Math.sqrt(v),C=i.a6*M,b=p-M*w,_=c-C*m,P=w*b+m*_,A=w*_-m*b,I=A/(C/v+P),k+=I,j=P+A*I/2,a<0&&(k=-k),r[n++]=$*R,r[n++]=$*k,r[n]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},x=(0,n.kU)(1),$=(0,n.KJ)(1),L=.5*Math.PI,E=l.$O.radius,Z=E*Math.PI/180,O=180/(E*Math.PI)},53930:(t,e,r)=>{r.d(e,{A:()=>g});var n,i=r(31635),s=r(68197),l=r(66552),o=r(4718),a=r(90629),u=r(10107),c=(r(44208),r(53966),r(93223)),h=r(40608),p=r(43937),d=r(89420),f=r(31593);const y=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=n=class extends d.A{constructor(...t){super(...t),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new f.A}normalizeCtorArgs(t,e,r,n){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),null!=e&&(i.size=(0,a.cr)(e)),r&&(i.outline=r),n&&(i.color=n),i}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new n({angle:this.angle,color:(0,o.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i.Cg)([(0,u.MZ)()],g.prototype,"color",void 0),(0,i.Cg)([(0,p.K)("color")],g.prototype,"writeColor",null),(0,i.Cg)([(0,c.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)()],g.prototype,"size",void 0),(0,i.Cg)([(0,u.MZ)({type:y.apiValues,json:{read:y.read,write:y.write}})],g.prototype,"style",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,i.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":f.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=n=(0,i.Cg)([(0,h.$)("esri.symbols.SimpleMarkerSymbol")],g)},58592:(t,e,r)=>{r.d(e,{A:()=>d});var n,i=r(31635),s=r(4718),l=r(90629),o=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),c=r(40608),h=r(89420),p=r(77040);let d=n=class extends h.A{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const n={};return t&&(n.url=t),null!=e&&(n.width=(0,l.cr)(e)),null!=r&&(n.height=(0,l.cr)(r)),n}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new n({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,s.o8)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i.Cg)([(0,o.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)(p.ku)],d.prototype,"url",void 0),(0,i.Cg)([(0,o.MZ)(p.k7)],d.prototype,"source",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"height",void 0),(0,i.Cg)([(0,u.w)("height",["height","size"])],d.prototype,"readHeight",null),(0,i.Cg)([(0,o.MZ)({type:Number,cast:l.cr,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!1}})],d.prototype,"size",void 0),d=n=(0,i.Cg)([(0,c.$)("esri.symbols.PictureMarkerSymbol")],d)},60999:(t,e,r)=>{r.d(e,{DZ:()=>f,Ke:()=>d,Tj:()=>c,UT:()=>y,jJ:()=>u});var n=r(31635),i=r(65008),s=r(97768),l=r(74887),o=r(10107),a=r(40608);function u(t,e,r){return(0,l.Lx)(t.map((t,n)=>e.apply(r,[t,n])))}async function c(t,e,r){return(await(0,l.Lx)(t.map((t,n)=>e.apply(r,[t,n])))).map(t=>t.value)}function h(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function d(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return h(await t)}catch(t){return p(t)}}async function f(t){try{return h(await t)}catch(t){return(0,l.QP)(t),p(t)}}function y(t,e){return new g(t,e)}let g=class extends i.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=h(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,l.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],g)},62815:(t,e,r)=>{r.d(e,{N:()=>l});var n=r(83047),i=r(73941),s=r(21325);function l(t,e,r){if(null==e||null==r||r.vcsWkid||(0,s.aI)(e,r)||(0,i.xP)(e)||(0,i.xP)(r))return null;const l=(0,n.G9)(e)/(0,n.G9)(r);if(1===l)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,l);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const r of t.paths)for(const t of r)t.length>2&&(t[2]*=e)}(t,l);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const r of t.rings)for(const t of r)t.length>2&&(t[2]*=e)}(t,l);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const r of t.points)r.length>2&&(r[2]*=e)}(t,l);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,l);default:return null}}},65851:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(31635),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),l=r(31593),o=r(20378);let a=class extends o.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,n.Cg)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,n.Cg)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,n.Cg)([(0,s.$)("esri.symbols.FillSymbol")],a)},68197:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(40876),i=r(34727),s=r(56507);function l(t){return(0,i.qE)((0,s.Vr)(t),0,255)}function o(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class a{static blendColors(t,e,r,n=new a){return n.r=Math.round(t.r+(e.r-t.r)*r),n.g=Math.round(t.g+(e.g-t.g)*r),n.b=Math.round(t.b+(e.b-t.b)*r),n.a=t.a+(e.a-t.a)*r,n._sanitize()}static fromRgb(t,e){const r=(0,n.lT)(t);return r?a.fromArray(r,e):null}static fromHex(t,e=new a){const r=(0,n.oW)(t);return r?a.fromArray(r,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,n.Eq)(t);return r?a.fromArray(r,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${o(this.r,n)}${o(this.g,n)}${o(this.b,n)}${i?o(Math.round(255*this.a),n):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=l(this.r),r=l(this.g),n=l(this.b);return 0===t||1!==this.a?[e,r,n,l(255*this.a)]:[e,r,n]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(t,e,r,n){this.r=t,this.g=e,this.b=r,this.a=n}}a.prototype.declaredClass="esri.Color"},69540:(t,e,r)=>{r.d(e,{OU:()=>c,Pw:()=>h});var n=r(31635),i=r(65008),s=(r(44208),r(4718)),l=(r(53966),r(97768)),o=r(88620),a=r(40608);const u=Symbol("ClonableMixin"),c=t=>{var e;const r=t;let i=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,o.oY)(this);(0,l.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,n=e.store,i={},a=new Map;for(const e in r){const l=r[e],o=n?.originOf(e),u=l.clonable;if(l.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const c=this[e];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===o?a.set(e,h):i[e]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const t=(0,o.oY)(u)?.store;if(t)for(const[e,r]of a)t.set(e,r,0)}return u}};return i=(0,n.Cg)([(0,a.$)("esri.core.Clonable")],i),i},h=c(i.A)},77040:(t,e,r)=>{r.d(e,{k7:()=>o,ku:()=>l});var n=r(84952),i=r(97159);function s(t,e){if(!(0,n.oP)(t)){const r=function(t){if(!t)return null;const{origin:e,layer:r}=t;if("service"!==e&&"portal-item"!==e)return null;const n=r?.type;return"feature"===n||"stream"===n?r.parsedUrl?.path:"map-image"===n||"tile"===n?t.url?.path:null}(e);if(r)return(0,n.fj)(r,"images",t)}return(0,i.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,r){return e.imageData?(0,n.Hg)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):s(e.url,r)}},write:{writer(t,e,r,s){!function(t,e,r,s){if((0,n.DB)(t)){const l=(0,n.r$)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,r&&r.imageData===e.imageData&&r.url&&(0,i.w)(r.url,e,"url",s)}else(0,i.w)(t,e,"url",s)}(t,e,this.source,s)}}}},o={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,r){const n={};return e.imageData&&(n.imageData=e.imageData),e.contentType&&(n.contentType=e.contentType),e.url&&(n.url=s(e.url,r)),n}}}}},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>i});var n=r(56507);function i(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83213:(t,e,r)=>{r.d(e,{x:()=>n,z:()=>i});const n=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},85582:(t,e,r)=>{r.r(e),r.d(e,{default:()=>x});var n=r(31635),i=r(92602),s=r(78888),l=r(92071),o=r(74887),a=r(84952),u=r(10107),c=(r(44208),r(53966),r(87811),r(36005)),h=r(40608),p=r(5443),d=r(21325),f=r(4146),y=r(63074),g=r(16131),m=r(8303),w=r(54310),S=r(25036),v=r(10873),M=r(58592),C=r(94985),b=r(31593),_=r(53930),A=r(20378);const P=["atom","xml"],I={base:A.A,key:"type",typeMap:{"simple-line":b.A},errorContext:"symbol"},k={base:A.A,key:"type",typeMap:{"picture-marker":M.A,"simple-marker":_.A},errorContext:"symbol"},R={base:A.A,key:"type",typeMap:{"simple-fill":C.A},errorContext:"symbol"};let j=class extends((0,y.dM)((0,w.J)((0,g.q)((0,m.A)((0,S.j)((0,l.P)(f.A))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}readFeatureCollections(t,e){return e.featureCollection.layers.forEach(t=>{const e=t.layerDefinition.drawingInfo.renderer.symbol;e&&"esriSFS"===e.type&&e.outline?.style.includes("esriSFS")&&(e.outline.style="esriSLSSolid")}),e.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,a.e7)(this.url,P)||"GeoRSS":t}set title(t){this._set("title",t)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(o.QP).then(()=>this._fetchService(e)).then(t=>{this.read(t,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const t=await this._fetchService();return this.read(t,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(t){const e=this.spatialReference,{data:r}=await(0,s.A)(i.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,d.oT)(e)?void 0:e.wkid??JSON.stringify(e)},signal:t});return r}_hasGeometry(t){return this.featureCollections?.some(e=>e.featureSet?.geometryType===t&&e.featureSet.features?.length>0)??!1}};(0,n.Cg)([(0,u.MZ)()],j.prototype,"description",void 0),(0,n.Cg)([(0,u.MZ)()],j.prototype,"featureCollections",void 0),(0,n.Cg)([(0,c.w)("service","featureCollections",["featureCollection.layers"])],j.prototype,"readFeatureCollections",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{name:"lookAtExtent"}})],j.prototype,"fullExtent",void 0),(0,n.Cg)([(0,u.MZ)(v.id)],j.prototype,"id",void 0),(0,n.Cg)([(0,u.MZ)(v.fV)],j.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,u.MZ)({types:I,json:{write:!0}})],j.prototype,"lineSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({types:k,json:{write:!0}})],j.prototype,"pointSymbol",void 0),(0,n.Cg)([(0,u.MZ)({types:R,json:{write:!0}})],j.prototype,"polygonSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["GeoRSS"]})],j.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)(v.OZ)],j.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],j.prototype,"title",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],j.prototype,"type",void 0),j=(0,n.Cg)([(0,h.$)("esri.layers.GeoRSSLayer")],j);const x=j},89420:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(31635),i=r(90629),s=r(10107),l=r(56507),o=(r(44208),r(87811),r(40608)),a=r(20378);let u=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),(0,n.Cg)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,n.Cg)([(0,s.MZ)({cast:t=>"auto"===t?t:(0,l.GB)((0,i.cr)(t)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,n.Cg)([(0,o.$)("esri.symbols.MarkerSymbol")],u)},94985:(t,e,r)=>{r.d(e,{A:()=>f});var n,i=r(31635),s=r(68197),l=r(66552),o=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),c=r(40608),h=r(65851),p=r(31593);const d=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let f=n=class extends h.A{constructor(...t){super(...t),this.color=new s.A([0,0,0,.25]),this.outline=new p.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const n={};return t&&(n.style=t),e&&(n.outline=e),r&&(n.color=r),n}clone(){return new n({color:(0,o.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i.Cg)([(0,a.MZ)()],f.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"outline",void 0),(0,i.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],f.prototype,"style",void 0),f=n=(0,i.Cg)([(0,c.$)("esri.symbols.SimpleFillSymbol")],f)},98988:(t,e,r)=>{r.r(e),r.d(e,{canProjectWithoutEngine:()=>K,getTransformation:()=>G,getTransformations:()=>U,initializeProjection:()=>V,isEqualBaseGCS:()=>J,isLoaded:()=>x,isLoadedOrLoad:()=>$,isLoadedOrLoadFor:()=>L,load:()=>Z,project:()=>O,projectExtent:()=>st,projectMany:()=>D,projectMultipoint:()=>X,projectOrLoad:()=>T,projectOrLoadMany:()=>z,projectPoint:()=>W,projectPolygon:()=>nt,projectPolyline:()=>et,projectWithZConversion:()=>B,projectWithoutEngine:()=>Y,requiresLoad:()=>E,test:()=>F,tryProjectWithZConversion:()=>q,unload:()=>N});var n=r(49186),i=r(74887),s=r(62788),l=r(95488),o=r(51850),a=r(21276),u=r(73941),c=r(5443),h=r(48526),p=r(83290),d=r(86738),f=r(39829),y=r(82799),g=r(16930),m=r(9762),w=r(37539);function S(t,e,r,n,i,s){return v[0]=t,v[1]=e,v[2]=r,(0,m.projectBuffer)(v,n,0,i,s,0)}const v=(0,o.vt)();let M=0;class C{static fromGE(t){const e=new C;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=M++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=M++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=M++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=M++}getInverse(){const t=new C;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class b{static cacheKey(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}static fromGE(t){const e=new b;let r="";for(const n of t.steps){const t=C.fromGE(n);e.steps.push(t),r+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=r,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const e of t.steps)e instanceof C?this.steps.push(e):this.steps.push(new C({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new b;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const r=this.steps[e];t.steps.push(r.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,r){this._cachedProjection[b.cacheKey(t,e)]=r}getCachedGeTransformation(t,e){let r="";for(const t of this.steps)r+=t.uid.toString()+",";r!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=r);const n=this._cachedProjection[b.cacheKey(t,e)];return void 0===n?null:n}}var _=r(21325),A=r(62815);let P=null,I=null,k=null,R={};const j=new l.I;function x(){return!!P&&(0,p.i)()}function $(){return!!x()||((0,s.gc)(j),Z(),!1)}function L(t,e){return!t||!e||K(t,e)||$()}function E(t,e){return!K(t,e)&&!x()}function Z(t){return null==k&&(k=Promise.all([(0,p.l)(),r.e(9930).then(r.bind(r,49930)).then(t=>t.g),r.e(2731).then(r.bind(r,12731))])),k.then(([,e,{hydratedAdapter:r}])=>{(0,i.Te)(t),I=r,P=e.default,P._enableProjection(p.p),j.notify()})}function O(t,e,r=null,n=null){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),D(I,t,t[0].spatialReference,e,r,n)):((0,a.f)(t),D(I,[t],t.spatialReference,e,r,n)[0])}function D(t,e,r,n,i=null,s=null){if(null==r||null==n)return e;if(K(r,n,i))return e.map(t=>Y(t,r,n));if(null==i&&(0,u.jA)(r))return e.map(t=>Y(t,r,g.A.WGS84)).map(t=>q(t,n));if(null==i&&(0,u.jA)(n))return e.map(t=>q(t,g.A.WGS84)).map(t=>Y(t,g.A.WGS84,n));if(null==i){const t=b.cacheKey(r,n);void 0!==R[t]?i=R[t]:(null==(i=G(r,n,void 0))&&(i=new b),R[t]=i)}if(null==P||null==t)throw new H;return null!=s?P._project(t,e,r,n,i,s):P._project(t,e,r,n,i)}function T(t,e){const r=z([t],e);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function z(t,e){if(!x())for(const r of t)if(null!=r&&!(0,_.aI)(r.spatialReference,e)&&(0,_.fn)(r.spatialReference)&&(0,_.fn)(e)&&!K(r.spatialReference,e))return(0,s.gc)(j),{pending:Z(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,_.aI)(t.spatialReference,e)?t:(0,_.fn)(t.spatialReference)&&(0,_.fn)(e)?q(t,e):null)}}function G(t,e,r=null){if(null==t||null==e)return null;if(null==P||null==I)throw new H;const n=P._getTransformation(I,t,e,r,r?.spatialReference);return null!==n?b.fromGE(n):null}function U(t,e,r=null){if(null==P||null==I)throw new H;const n=P._getTransformationBySuitability(I,t,e,r,r?.spatialReference);if(null!==n){const t=[];for(const e of n)t.push(b.fromGE(e));return t}return[]}class H extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function N(){P=null,I=null,k=null,R={}}const F={get loadPromise(){return k}};function q(t,e){try{const r=O(t,e);if(null==r)return null;"xmin"in t&&"xmin"in r&&(r.zmin=t.zmin,r.zmax=t.zmax);const n=(0,A.N)(r.type,t.spatialReference,e);return null!=n&&n(r),r}catch(t){if(!(t instanceof H))throw t;return null}}async function B(t,e,r){const n=t.spatialReference;return null!=n&&null!=e&&await V(n,e,null,r),q(t,e)}function K(t,e,r){return!r&&(!!(0,_.aI)(t,e)||(0,_.fn)(t)&&(0,_.fn)(e)&&!!(0,w.jd)(t,e))}function J(t,e){if((0,_.aI)(t,e))return!0;if(!(0,_.fn)(t)||!(0,_.fn)(e))return!1;const r=(0,_.oT)(t)||(0,_.K8)(t)||(0,_.x1)(t),n=(0,_.oT)(e)||(0,_.K8)(e)||(0,_.x1)(e);return r&&n}async function V(t,e,r,n){if(x())return(0,i.NO)(n);if(Array.isArray(t)){for(const{source:e,dest:r,geographicTransformation:i}of t)if(e&&r&&!K(e,r,i))return Z(n)}else if(t&&e&&!K(t,e,r))return Z(n);return(0,i.NO)(n)}function Y(t,e,r){return t?"x"in t?Q(t,e,new d.A,r,0):"xmin"in t?lt(t,e,new c.A,r,0):"rings"in t?it(t,e,new f.A,r,0):"paths"in t?rt(t,e,new y.A,r,0):"points"in t?tt(t,e,new h.A,r,0):null:null}function W(t,e,r=e.spatialReference,n=0){return null!=r&&null!=t.spatialReference&&null!=Q(t,t.spatialReference,e,r,n)}function Q(t,e,r,n,i){at[0]=t.x,at[1]=t.y;const s=t.z;return at[2]=void 0!==s?s:i,(0,m.projectBuffer)(at,e,0,at,n,0)?(r.x=at[0],r.y=at[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=at[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===t.m?(r.m=void 0,r.hasM=!1):(r.m=t.m,r.hasM=!0),r):null}function X(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=tt(t,t.spatialReference,e,r,n)}function tt(t,e,r,n,i){const{points:s,hasZ:l,hasM:o}=t,a=[],c=s.length,h=[];for(const t of s)h.push(t[0],t[1],l?t[2]:i);if(!(0,m.projectBuffer)(h,e,0,h,n,0,c))return null;const p=l||(0,u.xP)(n);for(let t=0;t<c;++t){const e=3*t,r=h[e],n=h[e+1];p&&o?a.push([r,n,h[e+2],s[t][3]]):p?a.push([r,n,h[e+2]]):o?a.push([r,n,s[t][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=l,r.hasM=o,r}function et(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=rt(t,t.spatialReference,e,r,n)}function rt(t,e,r,n,i){const{paths:s,hasZ:l,hasM:o}=t,a=[];if(!ot(s,l??!1,o??!1,e,a,n,i))return null;const c=l||(0,u.xP)(n);return r.paths=a,r.spatialReference=n,r.hasZ=c,r.hasM=o,r}function nt(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=it(t,t.spatialReference,e,r,n)}function it(t,e,r,n,i){const{rings:s,hasZ:l,hasM:o}=t,a=[];if(!ot(s,l??!1,o??!1,e,a,n,i))return null;const c=l||(0,u.xP)(n);return r.rings=a,r.spatialReference=n,r.hasZ=c,r.hasM=o,r}function st(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=lt(t,t.spatialReference,e,r,n)}function lt(t,e,r,n,i){const{xmin:s,ymin:l,xmax:o,ymax:a,hasZ:c,hasM:h}=t;if(!S(s,l,c?t.zmin:i,e,at,n))return null;const p=c||(0,u.xP)(n);return r.xmin=at[0],r.ymin=at[1],p&&(r.zmin=at[2]),S(o,a,c?t.zmax:i,e,at,n)?(r.xmax=at[0],r.ymax=at[1],p&&(r.zmax=at[2]),h&&(r.mmin=t.mmin,r.mmax=t.mmax),r.spatialReference=n,r):null}function ot(t,e,r,n,i,s,l=0){const o=new Array;for(const r of t)for(const t of r)o.push(t[0],t[1],e?t[2]:l);if(!(0,m.projectBuffer)(o,n,0,o,s,0))return!1;let a=0;i.length=0;const c=e||(0,u.xP)(s);for(const e of t){const t=new Array;for(const n of e)c&&r?t.push([o[a++],o[a++],o[a++],n[3]]):c?t.push([o[a++],o[a++],o[a++]]):r?(t.push([o[a++],o[a++],n[2]]),a++):(t.push([o[a++],o[a++]]),a++);i.push(t)}return!0}const at=(0,o.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9692],{4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>l,l5:()=>s,xm:()=>o});var i=n(34275),r=n(9093);function l(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},6797:(e,t,n)=>{n.d(t,{Ui:()=>p});var i=n(65008),r=n(7762),l=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):s(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function f(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.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 l=r.filter(e=>!i.includes(e)),p=i.filter(e=>!r.includes(e)),d=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(l,p).sort(),h=c(e);if(h&&o.has(h)&&d.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=s(e)&&s(t);for(const i of d){const r=u(e,i),l=u(t,i);let o;if((y||"function"!=typeof r&&"function"!=typeof l)&&r!==l&&(null!=r||null!=l)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,l);else if(r instanceof Date&&l instanceof Date){if(r.getTime()===l.getTime())continue;o={type:"complete",oldValue:r,newValue:l}}else o="object"==typeof r&&"object"==typeof l&&c(r)===c(l)?f(r,l):{type:"complete",oldValue:r,newValue:l};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}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}:f(e,t)}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(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]]}n.d(t,{o8:()=>r,vt:()=>i,zK:()=>l});const l=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:l,clone:r,create:i,fromValues:function(e,t,n,i,r,l,o,s,a,u,c,f,p,d,h,m){return[e,t,n,i,r,l,o,s,a,u,c,f,p,d,h,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,l,o,s=Math.floor(e.length/3)){const a=(0,i.jd)(t,l);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*s;for(let i=n,l=o;i<t;i++,l++)r[l]=e[i];return!0}const u=n+3*s;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},13069:(e,t,n)=>{n.d(t,{AG:()=>s,lk:()=>r,vD:()=>o,yS:()=>l});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function l(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function s(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},29005:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),r=n(69540),l=n(66552),o=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));const u=new l.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let c=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"thumbnail",void 0),c=(0,i.Cg)([(0,a.$)("esri.layers.support.FeatureTemplate")],c)},32730:(e,t,n)=>{n.d(t,{BI:()=>y,D3:()=>h,XJ:()=>m,lc:()=>d,mX:()=>w,rU:()=>g,tH:()=>_});var i=n(799);const r="__begin__",l="__end__",o=new RegExp(r,"ig"),s=new RegExp(l,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(l+"$","i"),c='"',f=c+" + ",p=" + "+c;function d(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=d(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(M);return t?.[1].trim()||null}(t.expression);case"arcade":return _(t.expression)}return null}function w(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+l),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,f).replaceAll(s,p)):t='""',t}const M=/^\s*\{([^}]+)\}\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function _(e){if(!e)return null;let t=v.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},37352:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),l=n(7762),o=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let u=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=i=(0,r.Cg)([(0,a.$)("esri.layers.support.LayerFloorInfo")],u)},37539:(e,t,n)=>{n.d(t,{pO:()=>m,jd:()=>p,Tp:()=>d,w5:()=>f});var i=n(34727),r=n(83047),l=n(73941),o=n(79258);Math.PI;const s=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:s*a,a2:s*a*s*a,a3:s*a*a/2,a4:s*a*s*a*2.5,a5:s*a+s*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const f={2:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:g,11:w,2:m,4:j},5:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:g,11:w,2:m,4:j},7:{5:null,7:m,9:null,10:m,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:b,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/O,l=N-2*Math.atan(Math.exp(-e[t+1]/O)),o=O+e[t+2],s=Math.cos(l)*o;n[i]=Math.cos(r)*s,n[i+1]=Math.sin(r)*s,n[i+2]=Math.sin(l)*o},6:null,8:null,0:null,3:m,11:function(e,t,n,i){y(e,t,n,i),w(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),j(n,i,n,i)}},4:{5:R,7:null,9:null,10:R,1:function(e,t,n,i){R(e,t,n,i),_(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){R(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){R(e,t,n,i),w(n,i,n,i)},2:R,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),w(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),j(n,i,n,i)}},6:{5:null,7:F,9:null,10:F,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:_,6:I,8:b,0:null,3:g,11:w,2:m,4:j},11:{5:M,7:null,9:null,10:M,1:function(e,t,n,i){M(e,t,n,i),_(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){M(e,t,n,i),g(n,i,n,i)},11:m,2:M,4:function(e,t,n,i){M(e,t,n,i),j(n,i,n,i)}}};function p(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(S.source.spatialReference===e&&S.dest.spatialReference===t)return S;const n=h(e,S.source),i=h(t,S.dest);return 0===n&&0===i?(0,c.aI)(e,t)?S.projector=m:S.projector=null:S.projector=f[n][i],S}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,l.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===l.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===l.FY.wkt?t.spatialReferenceId=6:e.wkt===l.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=Z*(e[t]/O),n[i+1]=Z*(N-2*Math.atan(Math.exp(-e[t+1]/O))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,l){const o=.4999999*Math.PI,s=(0,i.qE)(C*e[t+1],-o,o),a=Math.sin(s);n[r++]=C*e[t]*l.radius,n[r++]=l.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function w(e,t,n,i){n[i]=e[t]*E,n[i+1]=e[t+1]*E,n[i+2]=e[t+2]}function M(e,t,n,i){n[i]=e[t]*P,n[i+1]=e[t+1]*P,n[i+2]=e[t+2]}function v(e,t,n,i,r){const l=r+e[t+2],o=C*e[t+1],s=C*e[t],a=Math.cos(o)*l;n[i]=Math.cos(s)*a,n[i+1]=Math.sin(s)*a,n[i+2]=Math.sin(o)*l}function b(e,t,n,i){v(e,t,n,i,o.Sw.radius)}function I(e,t,n,i){v(e,t,n,i,o.sH.radius)}function _(e,t,n,i){v(e,t,n,i,o.$O.radius)}function T(e,t,n,r,l){const o=e[t],s=e[t+1],a=e[t+2],u=Math.sqrt(o*o+s*s+a*a),c=(0,i.YN)(a/(0===u?1:u)),f=Math.atan2(s,o);n[r++]=Z*f,n[r++]=Z*c,n[r]=u-l}function x(e,t,n,i){T(e,t,n,i,o.Sw.radius)}function F(e,t,n,i){T(e,t,n,i,o.sH.radius)}function A(e,t,n,i){T(e,t,n,i,o.$O.radius)}function j(e,t,n,i){!function(e,t,n,i,r){const l=C*e[t],o=C*e[t+1],s=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+s)*u*Math.cos(l),n[i++]=(c+s)*u*Math.sin(l),n[i++]=(c*(1-r.eccentricitySquared)+s)*a}(e,t,n,i,o.$O)}function R(e,t,n,i){const r=u,l=e[t],s=e[t+1],a=e[t+2];let c,f,p,d,h,m,y,g,w,M,v,b,I,_,T,x,F,A,j,R,S;c=Math.abs(a),f=l*l+s*s,p=Math.sqrt(f),d=f+a*a,h=Math.sqrt(d),R=Math.atan2(s,l),m=a*a/d,y=f/d,_=r.a2/h,T=r.a3-r.a4/h,y>.3?(g=c/h*(1+y*(r.a1+_+m*T)/h),j=Math.asin(g),M=g*g,w=Math.sqrt(1-M)):(w=p/h*(1-m*(r.a5-_-y*T)/h),j=Math.acos(w),M=1-w*w,g=Math.sqrt(M)),v=1-o.$O.eccentricitySquared*M,b=o.$O.radius/Math.sqrt(v),I=r.a6*b,_=p-b*w,T=c-I*g,F=w*_+g*T,x=w*T-g*_,A=x/(I/v+F),j+=A,S=F+x*A/2,a<0&&(j=-j),n[i++]=Z*R,n[i++]=Z*j,n[i]=S}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},C=(0,i.kU)(1),Z=(0,i.KJ)(1),N=.5*Math.PI,O=o.$O.radius,E=O*Math.PI/180,P=180/(O*Math.PI)},41366:(e,t,n)=>{n.d(t,{K:()=>p,Q:()=>u});var i=n(31635),r=n(66552),l=n(53966),o=n(10107),s=(n(44208),n(87811),n(93223)),a=n(40608);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",f="field",p=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&f||n&&c||null,t&&n&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==f&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(u,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},41560:(e,t,n)=>{n.d(t,{Ch:()=>o,mW:()=>l});var i=n(34727),r=n(39516);function l(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const l=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],f(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(n,l[1])))return"";const o=Array.from(s(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),l=f(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(l,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if((0,i.ZH)(c(r.minScale),f(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,n)&&(yield i)}}function a(e,t,n,r){return e=c(e),n=c(n),t=f(t),!(!(0,i.Sp)(n,e)&&(r??n)>e||(0,i.Hx)(t,n)||void 0!==r&&(0,i.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function f(e){return e||0}},45067:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(31635),r=n(69540),l=n(66552),o=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));const u=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),c=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let f=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],f.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],f.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],f.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:c.read,write:c.write}})],f.prototype,"role",void 0),f=(0,i.Cg)([(0,a.$)("esri.layers.support.Relationship")],f)},50498:(e,t,n)=>{n.d(t,{Ye:()=>f,gy:()=>c,yR:()=>p});var i=n(66552),r=n(5443),l=n(91075),o=n(48526),s=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),f=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:l.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:s.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>I});var i,r=n(31635),l=n(37838),o=n(69540),s=n(51447),a=n(25482),u=n(53966),c=n(36708),f=n(24326),p=n(10107),d=(n(44208),n(87811),n(40608)),h=n(12195),m=n(65864),y=n(50498),g=n(55156),w=n(60950),M=n(54339),v=n(33910);function b(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let I=class extends((0,o.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,s.eF)(u.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,w.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,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 n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,g.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,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,r.Cg)([(0,p.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,m.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],I.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,p.MZ)({value:null})],I.prototype,"attributes",null),(0,r.Cg)([(0,p.MZ)({value:null,types:y.yR,json:{read:m.rS}})],I.prototype,"geometry",null),(0,r.Cg)([(0,p.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,r.Cg)([(0,p.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,r.Cg)([(0,p.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,r.Cg)([(0,p.MZ)({type:l.A,value:null})],I.prototype,"popupTemplate",null),(0,r.Cg)([(0,p.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,p.MZ)({value:null,types:v.Es})],I.prototype,"symbol",null),(0,r.Cg)([(0,p.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,r.Cg)([(0,d.$)("esri.Graphic")],I)},52136:(e,t,n)=>{n.d(t,{p:()=>o});var i=n(31635),r=n(10107),l=(n(44208),n(53966),n(87811),n(40608));const o=e=>{const t=e;let n=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,r.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,i.Cg)([(0,l.$)("esri.layers.mixins.APIKeyMixin")],n),n}},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),l=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,l.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},70328:(e,t,n)=>{n.d(t,{BI:()=>M,DC:()=>f,Ej:()=>d,Ie:()=>g,Jt:()=>w,Ne:()=>h,RF:()=>c,aI:()=>b,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>p,is:()=>v,qv:()=>I,vI:()=>m,vY:()=>s,v_:()=>_,vt:()=>l,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function l(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,s=l()){return s[0]=e,s[1]=t,s[2]=n,s[3]=i,s[4]=r,s[5]=o,s}function s(e,t=l()){return function(e,t,n,i=l()){return y(i,I),function(e,t,n=0,i=t.length/3){let r=e[0],l=e[1],o=e[2],s=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),l=Math.min(l,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),s=Math.max(s,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=l,e[2]=o,e[3]=s,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,l,o,s,a]=e;return t[0]=n,t[1]=i,t[2]=l,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=s,t[8]=l,t[9]=n,t[10]=s,t[11]=a,t[12]=o,t[13]=i,t[14]=l,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=s,t[20]=l,t[21]=o,t[22]=s,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{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 f(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 d(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 h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,I):l(I)}function w(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 M(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function v(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!v(e)||!v(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];l()},95466:(e,t,n)=>{n.d(t,{A:()=>d});var i=n(49186),r=n(53966),l=n(91869),o=n(3330),s=n(12195),a=n(30524),u=n(98623),c=n(56400),f=n(28097);const p=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],g(e))}static fromLayerJSON(e){return new d(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=m(t);if(t&&i){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?f.mQ.utcInstance:(0,l.tE)(p,t,()=>f.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,l=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",s=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??s:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):s??u.n$:null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??s:i.timeReference?(0,c.ZS)(i.timeReference):s:null,p=new Map([[h(r?.creationDateField??""),a],[h(r?.editDateField??""),a],[h(l),f],[h(o),f]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=p.get(h(i??""))??s;t.set(i,e)}return t}},98988:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>K,getTransformation:()=>L,getTransformations:()=>$,initializeProjection:()=>W,isEqualBaseGCS:()=>U,isLoaded:()=>C,isLoadedOrLoad:()=>Z,isLoadedOrLoadFor:()=>N,load:()=>E,project:()=>P,projectExtent:()=>le,projectMany:()=>k,projectMultipoint:()=>Q,projectOrLoad:()=>z,projectOrLoadMany:()=>G,projectPoint:()=>Y,projectPolygon:()=>ie,projectPolyline:()=>te,projectWithZConversion:()=>J,projectWithoutEngine:()=>H,requiresLoad:()=>O,test:()=>D,tryProjectWithZConversion:()=>B,unload:()=>V});var i=n(49186),r=n(74887),l=n(62788),o=n(95488),s=n(51850),a=n(21276),u=n(73941),c=n(5443),f=n(48526),p=n(83290),d=n(86738),h=n(39829),m=n(82799),y=n(16930),g=n(9762),w=n(37539);function M(e,t,n,i,r,l){return v[0]=e,v[1]=t,v[2]=n,(0,g.projectBuffer)(v,i,0,r,l,0)}const v=(0,s.vt)();let b=0;class I{static fromGE(e){const t=new I;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=b++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=b++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=b++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=b++}getInverse(){const e=new I;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class _{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new _;let n="";for(const i of e.steps){const e=I.fromGE(i);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof I?this.steps.push(t):this.steps.push(new I({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new _;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[_.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const i=this._cachedProjection[_.cacheKey(e,t)];return void 0===i?null:i}}var T=n(21325),x=n(62815);let F=null,A=null,j=null,R={};const S=new o.I;function C(){return!!F&&(0,p.i)()}function Z(){return!!C()||((0,l.gc)(S),E(),!1)}function N(e,t){return!e||!t||K(e,t)||Z()}function O(e,t){return!K(e,t)&&!C()}function E(e){return null==j&&(j=Promise.all([(0,p.l)(),n.e(9930).then(n.bind(n,49930)).then(e=>e.g),n.e(2731).then(n.bind(n,12731))])),j.then(([,t,{hydratedAdapter:n}])=>{(0,r.Te)(e),A=n,F=t.default,F._enableProjection(p.p),S.notify()})}function P(e,t,n=null,i=null){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),k(A,e,e[0].spatialReference,t,n,i)):((0,a.f)(e),k(A,[e],e.spatialReference,t,n,i)[0])}function k(e,t,n,i,r=null,l=null){if(null==n||null==i)return t;if(K(n,i,r))return t.map(e=>H(e,n,i));if(null==r&&(0,u.jA)(n))return t.map(e=>H(e,n,y.A.WGS84)).map(e=>B(e,i));if(null==r&&(0,u.jA)(i))return t.map(e=>B(e,y.A.WGS84)).map(e=>H(e,y.A.WGS84,i));if(null==r){const e=_.cacheKey(n,i);void 0!==R[e]?r=R[e]:(null==(r=L(n,i,void 0))&&(r=new _),R[e]=r)}if(null==F||null==e)throw new q;return null!=l?F._project(e,t,n,i,r,l):F._project(e,t,n,i,r)}function z(e,t){const n=G([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(e,t){if(!C())for(const n of e)if(null!=n&&!(0,T.aI)(n.spatialReference,t)&&(0,T.fn)(n.spatialReference)&&(0,T.fn)(t)&&!K(n.spatialReference,t))return(0,l.gc)(S),{pending:E(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,T.aI)(e.spatialReference,t)?e:(0,T.fn)(e.spatialReference)&&(0,T.fn)(t)?B(e,t):null)}}function L(e,t,n=null){if(null==e||null==t)return null;if(null==F||null==A)throw new q;const i=F._getTransformation(A,e,t,n,n?.spatialReference);return null!==i?_.fromGE(i):null}function $(e,t,n=null){if(null==F||null==A)throw new q;const i=F._getTransformationBySuitability(A,e,t,n,n?.spatialReference);if(null!==i){const e=[];for(const t of i)e.push(_.fromGE(t));return e}return[]}class q extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function V(){F=null,A=null,j=null,R={}}const D={get loadPromise(){return j}};function B(e,t){try{const n=P(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,x.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof q))throw e;return null}}async function J(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await W(i,t,null,n),B(e,t)}function K(e,t,n){return!n&&(!!(0,T.aI)(e,t)||(0,T.fn)(e)&&(0,T.fn)(t)&&!!(0,w.jd)(e,t))}function U(e,t){if((0,T.aI)(e,t))return!0;if(!(0,T.fn)(e)||!(0,T.fn)(t))return!1;const n=(0,T.oT)(e)||(0,T.K8)(e)||(0,T.x1)(e),i=(0,T.oT)(t)||(0,T.K8)(t)||(0,T.x1)(t);return n&&i}async function W(e,t,n,i){if(C())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:r}of e)if(t&&n&&!K(t,n,r))return E(i)}else if(e&&t&&!K(e,t,n))return E(i);return(0,r.NO)(i)}function H(e,t,n){return e?"x"in e?X(e,t,new d.A,n,0):"xmin"in e?oe(e,t,new c.A,n,0):"rings"in e?re(e,t,new h.A,n,0):"paths"in e?ne(e,t,new m.A,n,0):"points"in e?ee(e,t,new f.A,n,0):null:null}function Y(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){ae[0]=e.x,ae[1]=e.y;const l=e.z;return ae[2]=void 0!==l?l:r,(0,g.projectBuffer)(ae,t,0,ae,i,0)?(n.x=ae[0],n.y=ae[1],n.spatialReference=i,void 0!==l||(0,u.xP)(i)?(n.z=ae[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,i)}function ee(e,t,n,i,r){const{points:l,hasZ:o,hasM:s}=e,a=[],c=l.length,f=[];for(const e of l)f.push(e[0],e[1],o?e[2]:r);if(!(0,g.projectBuffer)(f,t,0,f,i,0,c))return null;const p=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=f[t],i=f[t+1];p&&s?a.push([n,i,f[t+2],l[e][3]]):p?a.push([n,i,f[t+2]]):s?a.push([n,i,l[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=s,n}function te(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,i)}function ne(e,t,n,i,r){const{paths:l,hasZ:o,hasM:s}=e,a=[];if(!se(l,o??!1,s??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=s,n}function ie(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,i)}function re(e,t,n,i,r){const{rings:l,hasZ:o,hasM:s}=e,a=[];if(!se(l,o??!1,s??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=s,n}function le(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=oe(e,e.spatialReference,t,n,i)}function oe(e,t,n,i,r){const{xmin:l,ymin:o,xmax:s,ymax:a,hasZ:c,hasM:f}=e;if(!M(l,o,c?e.zmin:r,t,ae,i))return null;const p=c||(0,u.xP)(i);return n.xmin=ae[0],n.ymin=ae[1],p&&(n.zmin=ae[2]),M(s,a,c?e.zmax:r,t,ae,i)?(n.xmax=ae[0],n.ymax=ae[1],p&&(n.zmax=ae[2]),f&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function se(e,t,n,i,r,l,o=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:o);if(!(0,g.projectBuffer)(s,i,0,s,l,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(l);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([s[a++],s[a++],s[a++],i[3]]):c?e.push([s[a++],s[a++],s[a++]]):n?(e.push([s[a++],s[a++],i[2]]),a++):(e.push([s[a++],s[a++]]),a++);r.push(e)}return!0}const ae=(0,s.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5613],{9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>a});var r=n(37539);function a(e,t,n,a,s,l,i=Math.floor(e.length/3)){const u=(0,r.jd)(t,s);if(null==u)return!1;if(u===r.pO){if(e===a&&n===l)return!0;const t=n+3*i;for(let r=n,s=l;r<t;r++,s++)a[s]=e[r];return!0}const c=n+3*i;for(let t=n,r=l;t<c;t+=3,r+=3)u(e,t,a,r);return!0}},10407:(e,t,n)=>{n.d(t,{It:()=>d,LG:()=>l,OM:()=>c,Sm:()=>o,Y:()=>i,bK:()=>u,mm:()=>p,sQ:()=>f});var r=n(98988),a=n(16930),s=n(28735);function l(e,t){if(!i(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function i(e,t){return!!e.typeKeywords?.includes(t)}function u(e){return i(e,p.HOSTED_SERVICE)}function c(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function o(e,t,n){n?l(e,t):c(e,t)}async function f(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=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 n=a.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}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 d(e){const{portal:t,isOrgItem:n,itemControl:r}=e,a=t.user?.privileges;let s=!a||a.includes("features:user:edit"),l=!!n&&!!a?.includes("features:user:fullEdit");const i="update"===r||"admin"===r;return i?l=s=!0:l&&(s=!0),{features:{edit:s,fullEdit:l},content:{updateItem:i}}}},22429:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(24183);class a{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const n=this._serviceMetadatas.get(e);if(n)return n;const a=await(0,r.V)(e,t);return this._serviceMetadatas.set(e,a),a}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:n}=this;if(n.has(t))return n.get(t);const r=await e.fetchData();return n.set(t,r),r}async fetchCustomParameters(e,t){const n=await this.fetchItemData(e);return n&&"object"==typeof n&&(t?t(n):n.customParameters)||null}}},37539:(e,t,n)=>{n.d(t,{pO:()=>h,jd:()=>p,Tp:()=>d,w5:()=>f});var r=n(34727),a=n(83047),s=n(73941),l=n(79258);Math.PI;const i=l.$O.radius,u=l.$O.eccentricitySquared,c={a1:i*u,a2:i*u*i*u,a3:i*u*u/2,a4:i*u*i*u*2.5,a5:i*u+i*u*u/2,a6:1-u};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var o=n(21325);const f={2:{5:h,7:null,9:null,10:h,1:v,6:null,8:null,0:null,3:w,11:g,2:h,4:j},5:{5:h,7:null,9:null,10:h,1:v,6:null,8:null,0:null,3:w,11:g,2:h,4:j},7:{5:null,7:h,9:null,10:h,1:null,6:L,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,n,r){const a=e[t]/E,s=T-2*Math.atan(Math.exp(-e[t+1]/E)),l=E+e[t+2],i=Math.cos(s)*l;n[r]=Math.cos(a)*i,n[r+1]=Math.sin(a)*i,n[r+2]=Math.sin(s)*l},6:null,8:null,0:null,3:h,11:function(e,t,n,r){m(e,t,n,r),g(n,r,n,r)},2:m,4:function(e,t,n,r){m(e,t,n,r),j(n,r,n,r)}},4:{5:N,7:null,9:null,10:N,1:function(e,t,n,r){N(e,t,n,r),v(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){N(e,t,n,r),w(n,r,n,r)},11:function(e,t,n,r){N(e,t,n,r),g(n,r,n,r)},2:N,4:h},1:{5:G,7:null,9:null,10:G,1:h,6:null,8:null,0:null,3:function(e,t,n,r){G(e,t,n,r),w(n,r,n,r)},11:function(e,t,n,r){G(e,t,n,r),g(n,r,n,r)},2:G,4:function(e,t,n,r){G(e,t,n,r),j(n,r,n,r)}},6:{5:null,7:_,9:null,10:_,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:P,10:P,1:null,6:null,8:h,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:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:v,6:L,8:I,0:null,3:w,11:g,2:h,4:j},11:{5:S,7:null,9:null,10:S,1:function(e,t,n,r){S(e,t,n,r),v(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),w(n,r,n,r)},11:h,2:S,4:function(e,t,n,r){S(e,t,n,r),j(n,r,n,r)}}};function p(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(k.source.spatialReference===e&&k.dest.spatialReference===t)return k;const n=y(e,k.source),r=y(t,k.dest);return 0===n&&0===r?(0,o.aI)(e,t)?k.projector=h:k.projector=null:k.projector=f[n][r],k}function y(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,a.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,o.oT)(e)?t.spatialReferenceId=2:(0,o.K8)(e)?t.spatialReferenceId=3:(0,o.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,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function m(e,t,n,r){n[r]=A*(e[t]/E),n[r+1]=A*(T-2*Math.atan(Math.exp(-e[t+1]/E))),n[r+2]=e[t+2]}function w(e,t,n,a){!function(e,t,n,a,s){const l=.4999999*Math.PI,i=(0,r.qE)(b*e[t+1],-l,l),u=Math.sin(i);n[a++]=b*e[t]*s.radius,n[a++]=s.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[a]=e[t+2]}(e,t,n,a,l.$O)}function g(e,t,n,r){n[r]=e[t]*x,n[r+1]=e[t+1]*x,n[r+2]=e[t+2]}function S(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]}function M(e,t,n,r,a){const s=a+e[t+2],l=b*e[t+1],i=b*e[t],u=Math.cos(l)*s;n[r]=Math.cos(i)*u,n[r+1]=Math.sin(i)*u,n[r+2]=Math.sin(l)*s}function I(e,t,n,r){M(e,t,n,r,l.Sw.radius)}function L(e,t,n,r){M(e,t,n,r,l.sH.radius)}function v(e,t,n,r){M(e,t,n,r,l.$O.radius)}function R(e,t,n,a,s){const l=e[t],i=e[t+1],u=e[t+2],c=Math.sqrt(l*l+i*i+u*u),o=(0,r.YN)(u/(0===c?1:c)),f=Math.atan2(i,l);n[a++]=A*f,n[a++]=A*o,n[a]=c-s}function P(e,t,n,r){R(e,t,n,r,l.Sw.radius)}function _(e,t,n,r){R(e,t,n,r,l.sH.radius)}function G(e,t,n,r){R(e,t,n,r,l.$O.radius)}function j(e,t,n,r){!function(e,t,n,r,a){const s=b*e[t],l=b*e[t+1],i=e[t+2],u=Math.sin(l),c=Math.cos(l),o=a.radius/Math.sqrt(1-a.eccentricitySquared*u*u);n[r++]=(o+i)*c*Math.cos(s),n[r++]=(o+i)*c*Math.sin(s),n[r++]=(o*(1-a.eccentricitySquared)+i)*u}(e,t,n,r,l.$O)}function N(e,t,n,r){const a=c,s=e[t],i=e[t+1],u=e[t+2];let o,f,p,d,y,h,m,w,g,S,M,I,L,v,R,P,_,G,j,N,k;o=Math.abs(u),f=s*s+i*i,p=Math.sqrt(f),d=f+u*u,y=Math.sqrt(d),N=Math.atan2(i,s),h=u*u/d,m=f/d,v=a.a2/y,R=a.a3-a.a4/y,m>.3?(w=o/y*(1+m*(a.a1+v+h*R)/y),j=Math.asin(w),S=w*w,g=Math.sqrt(1-S)):(g=p/y*(1-h*(a.a5-v-m*R)/y),j=Math.acos(g),S=1-g*g,w=Math.sqrt(S)),M=1-l.$O.eccentricitySquared*S,I=l.$O.radius/Math.sqrt(M),L=a.a6*I,v=p-I*g,R=o-L*w,_=g*v+w*R,P=g*R-w*v,G=P/(L/M+_),j+=G,k=_+P*G/2,u<0&&(j=-j),n[r++]=A*N,n[r++]=A*j,n[r]=k}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},b=(0,r.kU)(1),A=(0,r.KJ)(1),T=.5*Math.PI,E=l.$O.radius,x=E*Math.PI/180,O=180/(E*Math.PI)},45613:(e,t,n)=>{n.d(t,{fromItem:()=>p,n:()=>d});var r=n(49186),a=n(92009),s=n(23154),l=n(22429),i=n(77548),u=n(4513),c=n(80812),o=n(66964),f=n(10407);async function p(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const n=await async function(e){await e.load();const t=new l.v;return async function(e){const t=e.className,n=u.S[t];return{constructor:await n(),properties:e.properties}}(await d(e,t))}(t);return new(0,n.constructor)({portalItem:t,...n.properties})}async function d(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,f.Y)(e,"Map Notes"),n=(0,f.Y)(e,"Markup");if(t||n)return{className:"MapNotesLayer"};if((0,f.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,o.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const n=await y(e,t);if("object"==typeof n){const{sourceJSON:e,className:t}=n,r={sourceJSON:e};return null!=n.id&&(r.layerId=n.id),{className:t||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const n=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(n.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(n.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await t.fetchItemData(e),a=r?.layerType;if("ArcGISTiledImageServiceLayer"===a)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===a)return{className:"ImageryLayer"};const s=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),l=s.cacheType?.toLowerCase(),i=s.capabilities?.toLowerCase().includes("tilesonly"),u=s.tileInfo?.format?.toLowerCase()??"",c=null==l&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(u);return"map"===l||c||i?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:n}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return n}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const n=await y(e,t,async()=>{try{if(!e.url)return[];const{serverUrl:n}=await(0,a.L)(e.url,{sceneLayerItem:e}),r=await t.fetchServiceMetadata(n);return r?.tables??[]}catch{return[]}});if("object"==typeof n){const r={};let a;if(null!=n.id?(r.layerId=n.id,a=`${e.url}/layers/${n.id}`):a=e.url,e.typeKeywords?.length)for(const t of Object.keys(i.XX))if(e.typeKeywords.includes(t))return{className:i.XX[t]};const s=await t.fetchServiceMetadata(a,{customParameters:await t.fetchCustomParameters(e,e=>(0,o.pJ)(e)?.customParameters)});return{className:i.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===n){const n=await t.fetchServiceMetadata(e.url);if("Voxel"===n?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Video Service":return async function(e,t){return"object"==typeof await y(e,t)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function y(e,t,n){const{url:r,type:a}=e,l="Feature Service"===a;if(!r)return{};if(/\/\d+$/.test(r)){if(l){const n=await t.fetchServiceMetadata(r,{customParameters:await t.fetchCustomParameters(e,e=>(0,o.pJ)(e)?.customParameters)});return(0,i.Gh)(e,(0,i.G$)()),{id:n.id,className:(0,s.K)(n.type),sourceJSON:n}}return{}}if("Video Service"===a){const e=await t.fetchServiceMetadata(r);return!((e.layers?.length??0)>1)&&{}}await e.load();let u=await t.fetchItemData(e);if(l){const{data:n,preferredHost:a}=await(0,o.bO)(u,r,t);(0,i.Gh)(e,a);const s=h(n);if("object"==typeof s){const e=(0,o.rc)(n,s.id);s.className=(0,o.K8)(e?.layerType)}return s}if("Scene Service"===a&&(u=await(0,o.nu)(e,u,t)),(0,o.XH)(u)>0)return h(u);const c=await t.fetchServiceMetadata(r);return n&&(c.tables=await n()),h(c)}function h(e){return 1===(0,o.XH)(e)&&{id:(0,o.pJ)(e)?.id}}},62815:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(83047),a=n(73941),s=n(21325);function l(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,a.xP)(t)||(0,a.xP)(n))return null;const l=(0,r.G9)(t)/(0,r.G9)(n);if(1===l)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,l);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,l);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,l);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,l);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,l);default:return null}}},66964:(e,t,n)=>{n.d(t,{Ju:()=>o,K8:()=>d,XH:()=>f,_r:()=>l,bO:()=>i,l:()=>p,nu:()=>y,pJ:()=>u,rc:()=>c});var r=n(92009),a=n(23154),s=n(77548);function l(e){const t={id:e.id,name:e.name},n=(0,a.K)(e.type);return"FeatureLayer"!==n&&(t.layerType=n),t}async function i(e,t,n){let r;if(null==e?.layers||null==e?.tables){const a=await n.fetchServiceMetadata(t,{customParameters:u(e)?.customParameters});r=(0,s.G$)(),(e=e||{}).layers=e.layers||a?.layers?.map(l),e.tables=e.tables||a?.tables?.map(l)}return{data:e,preferredHost:r}}function u(e){if(!e)return null;const{layers:t,tables:n}=e;return t?.length?t[0]:n?.length?n[0]:null}function c(e,t){return null==t?null:[...e.layers||[],...e.tables||[]].find(e=>e.id===t)}function o(e,t){return[...e.layers||[],...e.tables||[]].filter(({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer"))}function f(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function p(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function d(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function y(e,t,n){if(!e?.url)return t??{};if(t??={},!t.layers){const r=await n.fetchServiceMetadata(e.url);t.layers=r.layers?.map(l)}const{serverUrl:a,portalItem:s}=await(0,r.L)(e.url,{sceneLayerItem:e,customParameters:u(t)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==a)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)t.tables=e.tables.map(l);else{const r=await n.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters}).catch(()=>null);t.tables=r?.tables?.map(l)}}if(t.tables)for(const e of t.tables)e.url=`${a}/${e.id}`;return t}},98988:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>F,getTransformation:()=>z,getTransformations:()=>W,initializeProjection:()=>V,isEqualBaseGCS:()=>J,isLoaded:()=>b,isLoadedOrLoad:()=>A,isLoadedOrLoadFor:()=>T,load:()=>x,project:()=>O,projectExtent:()=>se,projectMany:()=>C,projectMultipoint:()=>Q,projectOrLoad:()=>K,projectOrLoadMany:()=>D,projectPoint:()=>Z,projectPolygon:()=>re,projectPolyline:()=>te,projectWithZConversion:()=>q,projectWithoutEngine:()=>B,requiresLoad:()=>E,test:()=>U,tryProjectWithZConversion:()=>Y,unload:()=>H});var r=n(49186),a=n(74887),s=n(62788),l=n(95488),i=n(51850),u=n(21276),c=n(73941),o=n(5443),f=n(48526),p=n(83290),d=n(86738),y=n(39829),h=n(82799),m=n(16930),w=n(9762),g=n(37539);function S(e,t,n,r,a,s){return M[0]=e,M[1]=t,M[2]=n,(0,w.projectBuffer)(M,r,0,a,s,0)}const M=(0,i.vt)();let I=0;class L{static fromGE(e){const t=new L;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=I++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=I++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=I++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=I++}getInverse(){const e=new L;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class v{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new v;let n="";for(const r of e.steps){const e=L.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof L?this.steps.push(t):this.steps.push(new L({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new v;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[v.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[v.cacheKey(e,t)];return void 0===r?null:r}}var R=n(21325),P=n(62815);let _=null,G=null,j=null,N={};const k=new l.I;function b(){return!!_&&(0,p.i)()}function A(){return!!b()||((0,s.gc)(k),x(),!1)}function T(e,t){return!e||!t||F(e,t)||A()}function E(e,t){return!F(e,t)&&!b()}function x(e){return null==j&&(j=Promise.all([(0,p.l)(),n.e(9930).then(n.bind(n,49930)).then(e=>e.g),n.e(2731).then(n.bind(n,12731))])),j.then(([,t,{hydratedAdapter:n}])=>{(0,a.Te)(e),G=n,_=t.default,_._enableProjection(p.p),k.notify()})}function O(e,t,n=null,r=null){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),C(G,e,e[0].spatialReference,t,n,r)):((0,u.f)(e),C(G,[e],e.spatialReference,t,n,r)[0])}function C(e,t,n,r,a=null,s=null){if(null==n||null==r)return t;if(F(n,r,a))return t.map(e=>B(e,n,r));if(null==a&&(0,c.jA)(n))return t.map(e=>B(e,n,m.A.WGS84)).map(e=>Y(e,r));if(null==a&&(0,c.jA)(r))return t.map(e=>Y(e,m.A.WGS84)).map(e=>B(e,m.A.WGS84,r));if(null==a){const e=v.cacheKey(n,r);void 0!==N[e]?a=N[e]:(null==(a=z(n,r,void 0))&&(a=new v),N[e]=a)}if(null==_||null==e)throw new $;return null!=s?_._project(e,t,n,r,a,s):_._project(e,t,n,r,a)}function K(e,t){const n=D([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function D(e,t){if(!b())for(const n of e)if(null!=n&&!(0,R.aI)(n.spatialReference,t)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(t)&&!F(n.spatialReference,t))return(0,s.gc)(k),{pending:x(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,R.aI)(e.spatialReference,t)?e:(0,R.fn)(e.spatialReference)&&(0,R.fn)(t)?Y(e,t):null)}}function z(e,t,n=null){if(null==e||null==t)return null;if(null==_||null==G)throw new $;const r=_._getTransformation(G,e,t,n,n?.spatialReference);return null!==r?v.fromGE(r):null}function W(e,t,n=null){if(null==_||null==G)throw new $;const r=_._getTransformationBySuitability(G,e,t,n,n?.spatialReference);if(null!==r){const e=[];for(const t of r)e.push(v.fromGE(t));return e}return[]}class $ extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function H(){_=null,G=null,j=null,N={}}const U={get loadPromise(){return j}};function Y(e,t){try{const n=O(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const r=(0,P.N)(n.type,e.spatialReference,t);return null!=r&&r(n),n}catch(e){if(!(e instanceof $))throw e;return null}}async function q(e,t,n){const r=e.spatialReference;return null!=r&&null!=t&&await V(r,t,null,n),Y(e,t)}function F(e,t,n){return!n&&(!!(0,R.aI)(e,t)||(0,R.fn)(e)&&(0,R.fn)(t)&&!!(0,g.jd)(e,t))}function J(e,t){if((0,R.aI)(e,t))return!0;if(!(0,R.fn)(e)||!(0,R.fn)(t))return!1;const n=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e),r=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t);return n&&r}async function V(e,t,n,r){if(b())return(0,a.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:a}of e)if(t&&n&&!F(t,n,a))return x(r)}else if(e&&t&&!F(e,t,n))return x(r);return(0,a.NO)(r)}function B(e,t,n){return e?"x"in e?X(e,t,new d.A,n,0):"xmin"in e?le(e,t,new o.A,n,0):"rings"in e?ae(e,t,new y.A,n,0):"paths"in e?ne(e,t,new h.A,n,0):"points"in e?ee(e,t,new f.A,n,0):null:null}function Z(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,a){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:a,(0,w.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==s||(0,c.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,r)}function ee(e,t,n,r,a){const{points:s,hasZ:l,hasM:i}=e,u=[],o=s.length,f=[];for(const e of s)f.push(e[0],e[1],l?e[2]:a);if(!(0,w.projectBuffer)(f,t,0,f,r,0,o))return null;const p=l||(0,c.xP)(r);for(let e=0;e<o;++e){const t=3*e,n=f[t],r=f[t+1];p&&i?u.push([n,r,f[t+2],s[e][3]]):p?u.push([n,r,f[t+2]]):i?u.push([n,r,s[e][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=l,n.hasM=i,n}function te(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,r)}function ne(e,t,n,r,a){const{paths:s,hasZ:l,hasM:i}=e,u=[];if(!ie(s,l??!1,i??!1,t,u,r,a))return null;const o=l||(0,c.xP)(r);return n.paths=u,n.spatialReference=r,n.hasZ=o,n.hasM=i,n}function re(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ae(e,e.spatialReference,t,n,r)}function ae(e,t,n,r,a){const{rings:s,hasZ:l,hasM:i}=e,u=[];if(!ie(s,l??!1,i??!1,t,u,r,a))return null;const o=l||(0,c.xP)(r);return n.rings=u,n.spatialReference=r,n.hasZ=o,n.hasM=i,n}function se(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=le(e,e.spatialReference,t,n,r)}function le(e,t,n,r,a){const{xmin:s,ymin:l,xmax:i,ymax:u,hasZ:o,hasM:f}=e;if(!S(s,l,o?e.zmin:a,t,ue,r))return null;const p=o||(0,c.xP)(r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),S(i,u,o?e.zmax:a,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),f&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function ie(e,t,n,r,a,s,l=0){const i=new Array;for(const n of e)for(const e of n)i.push(e[0],e[1],t?e[2]:l);if(!(0,w.projectBuffer)(i,r,0,i,s,0))return!1;let u=0;a.length=0;const o=t||(0,c.xP)(s);for(const t of e){const e=new Array;for(const r of t)o&&n?e.push([i[u++],i[u++],i[u++],r[3]]):o?e.push([i[u++],i[u++],i[u++]]):n?(e.push([i[u++],i[u++],r[2]]),u++):(e.push([i[u++],i[u++]]),u++);a.push(e)}return!0}const ue=(0,i.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9719],{9762:(n,t,e)=>{e.r(t),e.d(t,{projectBuffer:()=>r});var l=e(37539);function r(n,t,e,r,i,u,s=Math.floor(n.length/3)){const o=(0,l.jd)(t,i);if(null==o)return!1;if(o===l.pO){if(n===r&&e===u)return!0;const t=e+3*s;for(let l=e,i=u;l<t;l++,i++)r[i]=n[l];return!0}const a=e+3*s;for(let t=e,l=u;t<a;t+=3,l+=3)o(n,t,r,l);return!0}},37539:(n,t,e)=>{e.d(t,{pO:()=>m,jd:()=>h,Tp:()=>p,w5:()=>f});var l=e(34727),r=e(83047),i=e(73941),u=e(79258);Math.PI;const s=u.$O.radius,o=u.$O.eccentricitySquared,a={a1:s*o,a2:s*o*s*o,a3:s*o*o/2,a4:s*o*s*o*2.5,a5:s*o+s*o*o/2,a6:1-o};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:j,6:null,8:null,0:null,3:g,11:y,2:m,4:S},5:{5:m,7:null,9:null,10:m,1:j,6:null,8:null,0:null,3:g,11:y,2:m,4:S},7:{5:null,7:m,9:null,10:m,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:k,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(n,t,e,l){const r=n[t]/q,i=$-2*Math.atan(Math.exp(-n[t+1]/q)),u=q+n[t+2],s=Math.cos(i)*u;e[l]=Math.cos(r)*s,e[l+1]=Math.sin(r)*s,e[l+2]=Math.sin(i)*u},6:null,8:null,0:null,3:m,11:function(n,t,e,l){w(n,t,e,l),y(e,l,e,l)},2:w,4:function(n,t,e,l){w(n,t,e,l),S(e,l,e,l)}},4:{5:A,7:null,9:null,10:A,1:function(n,t,e,l){A(n,t,e,l),j(e,l,e,l)},6:null,8:null,0:null,3:function(n,t,e,l){A(n,t,e,l),g(e,l,e,l)},11:function(n,t,e,l){A(n,t,e,l),y(e,l,e,l)},2:A,4:m},1:{5:P,7:null,9:null,10:P,1:m,6:null,8:null,0:null,3:function(n,t,e,l){P(n,t,e,l),g(e,l,e,l)},11:function(n,t,e,l){P(n,t,e,l),y(e,l,e,l)},2:P,4:function(n,t,e,l){P(n,t,e,l),S(e,l,e,l)}},6:{5:null,7:v,9:null,10:v,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:j,6:I,8:k,0:null,3:g,11:y,2:m,4:S},11:{5:R,7:null,9:null,10:R,1:function(n,t,e,l){R(n,t,e,l),j(e,l,e,l)},6:null,8:null,0:null,3:function(n,t,e,l){R(n,t,e,l),g(e,l,e,l)},11:m,2:R,4:function(n,t,e,l){R(n,t,e,l),S(e,l,e,l)}}};function h(n,t){return p(n,t)?.projector}function p(n,t){if(null==n||null==t)return null;if(G.source.spatialReference===n&&G.dest.spatialReference===t)return G;const e=d(n,G.source),l=d(t,G.dest);return 0===e&&0===l?(0,c.aI)(n,t)?G.projector=m:G.projector=null:G.projector=f[e][l],G}function d(n,t){return n?t.spatialReference===n?t.spatialReferenceId:(t.spatialReference=n,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(n,1)),(0,i.jA)(n)?t.spatialReferenceId=1:(0,c.oT)(n)?t.spatialReferenceId=2:(0,c.K8)(n)?t.spatialReferenceId=3:(0,c.r1)(n)?t.spatialReferenceId=11:n.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===n.wkid?t.spatialReferenceId=5:n.wkt===i.FY.wkt?t.spatialReferenceId=6:n.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(n)?t.spatialReferenceId=7:(0,c.KQ)(n)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(n,t,e,l){n!==e&&(e[l++]=n[t++],e[l++]=n[t++],e[l]=n[t])}function w(n,t,e,l){e[l]=z*(n[t]/q),e[l+1]=z*($-2*Math.atan(Math.exp(-n[t+1]/q))),e[l+2]=n[t+2]}function g(n,t,e,r){!function(n,t,e,r,i){const u=.4999999*Math.PI,s=(0,l.qE)(O*n[t+1],-u,u),o=Math.sin(s);e[r++]=O*n[t]*i.radius,e[r++]=i.halfSemiMajorAxis*Math.log((1+o)/(1-o)),e[r]=n[t+2]}(n,t,e,r,u.$O)}function y(n,t,e,l){e[l]=n[t]*E,e[l+1]=n[t+1]*E,e[l+2]=n[t+2]}function R(n,t,e,l){e[l]=n[t]*T,e[l+1]=n[t+1]*T,e[l+2]=n[t+2]}function M(n,t,e,l,r){const i=r+n[t+2],u=O*n[t+1],s=O*n[t],o=Math.cos(u)*i;e[l]=Math.cos(s)*o,e[l+1]=Math.sin(s)*o,e[l+2]=Math.sin(u)*i}function k(n,t,e,l){M(n,t,e,l,u.Sw.radius)}function I(n,t,e,l){M(n,t,e,l,u.sH.radius)}function j(n,t,e,l){M(n,t,e,l,u.$O.radius)}function x(n,t,e,r,i){const u=n[t],s=n[t+1],o=n[t+2],a=Math.sqrt(u*u+s*s+o*o),c=(0,l.YN)(o/(0===a?1:a)),f=Math.atan2(s,u);e[r++]=z*f,e[r++]=z*c,e[r]=a-i}function _(n,t,e,l){x(n,t,e,l,u.Sw.radius)}function v(n,t,e,l){x(n,t,e,l,u.sH.radius)}function P(n,t,e,l){x(n,t,e,l,u.$O.radius)}function S(n,t,e,l){!function(n,t,e,l,r){const i=O*n[t],u=O*n[t+1],s=n[t+2],o=Math.sin(u),a=Math.cos(u),c=r.radius/Math.sqrt(1-r.eccentricitySquared*o*o);e[l++]=(c+s)*a*Math.cos(i),e[l++]=(c+s)*a*Math.sin(i),e[l++]=(c*(1-r.eccentricitySquared)+s)*o}(n,t,e,l,u.$O)}function A(n,t,e,l){const r=a,i=n[t],s=n[t+1],o=n[t+2];let c,f,h,p,d,m,w,g,y,R,M,k,I,j,x,_,v,P,S,A,G;c=Math.abs(o),f=i*i+s*s,h=Math.sqrt(f),p=f+o*o,d=Math.sqrt(p),A=Math.atan2(s,i),m=o*o/p,w=f/p,j=r.a2/d,x=r.a3-r.a4/d,w>.3?(g=c/d*(1+w*(r.a1+j+m*x)/d),S=Math.asin(g),R=g*g,y=Math.sqrt(1-R)):(y=h/d*(1-m*(r.a5-j-w*x)/d),S=Math.acos(y),R=1-y*y,g=Math.sqrt(R)),M=1-u.$O.eccentricitySquared*R,k=u.$O.radius/Math.sqrt(M),I=r.a6*k,j=h-k*y,x=c-I*g,v=y*j+g*x,_=y*x-g*j,P=_/(I/M+v),S+=P,G=v+_*P/2,o<0&&(S=-S),e[l++]=z*A,e[l++]=z*S,e[l]=G}const G={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,l.kU)(1),z=(0,l.KJ)(1),$=.5*Math.PI,q=u.$O.radius,E=q*Math.PI/180,T=180/(q*Math.PI)},56776:(n,t,e)=>{e.d(t,{B:()=>r,$7:()=>i,tW:()=>u,w7:()=>l,XF:()=>s});e(83047);function l(n,t){return function(n,t){return t?.mode?t.mode:function(n){return n?o:a}(n).mode}(null==n||(n.hasZ??!1),t)}function r(n,t,e){return e&&e.mode!==t?`${n} only support ${t} elevation mode`:null}function i(n,t,e){return e?.mode===t?`${n} do not support ${t} elevation mode`:null}function u(n,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${n} do not support featureExpressionInfo`:null}function s(n,t){t&&n.warn(".elevationInfo=",t)}e(16271);const o={mode:"absolute-height",offset:0},a={mode:"on-the-ground",offset:null}},62815:(n,t,e)=>{e.d(t,{N:()=>u});var l=e(83047),r=e(73941),i=e(21325);function u(n,t,e){if(null==t||null==e||e.vcsWkid||(0,i.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e))return null;const u=(0,l.G9)(t)/(0,l.G9)(e);if(1===u)return null;switch(n){case"point":case"esriGeometryPoint":return n=>function(n,t){null!=n?.z&&(n.z*=t)}(n,u);case"polyline":case"esriGeometryPolyline":return n=>function(n,t){if(n)for(const e of n.paths)for(const n of e)n.length>2&&(n[2]*=t)}(n,u);case"polygon":case"esriGeometryPolygon":return n=>function(n,t){if(n)for(const e of n.rings)for(const n of e)n.length>2&&(n[2]*=t)}(n,u);case"multipoint":case"esriGeometryMultipoint":return n=>function(n,t){if(n)for(const e of n.points)e.length>2&&(e[2]*=t)}(n,u);case"extent":case"esriGeometryEnvelope":return n=>function(n,t){n&&null!=n.zmin&&null!=n.zmax&&(n.zmin*=t,n.zmax*=t)}(n,u);default:return null}}},98988:(n,t,e)=>{e.r(t),e.d(t,{canProjectWithoutEngine:()=>F,getTransformation:()=>K,getTransformations:()=>W,initializeProjection:()=>Y,isEqualBaseGCS:()=>J,isLoaded:()=>O,isLoadedOrLoad:()=>z,isLoadedOrLoadFor:()=>$,load:()=>E,project:()=>T,projectExtent:()=>un,projectMany:()=>Z,projectMultipoint:()=>V,projectOrLoad:()=>L,projectOrLoadMany:()=>C,projectPoint:()=>X,projectPolygon:()=>ln,projectPolyline:()=>tn,projectWithZConversion:()=>U,projectWithoutEngine:()=>Q,requiresLoad:()=>q,test:()=>H,tryProjectWithZConversion:()=>N,unload:()=>B});var l=e(49186),r=e(74887),i=e(62788),u=e(95488),s=e(51850),o=e(21276),a=e(73941),c=e(5443),f=e(48526),h=e(83290),p=e(86738),d=e(39829),m=e(82799),w=e(16930),g=e(9762),y=e(37539);function R(n,t,e,l,r,i){return M[0]=n,M[1]=t,M[2]=e,(0,g.projectBuffer)(M,l,0,r,i,0)}const M=(0,s.vt)();let k=0;class I{static fromGE(n){const t=new I;return t._wkt=n.wkt,t._wkid=n.wkid,t._isInverse=n.isInverse,t}constructor(n){this.uid=k++,n?(this._wkt=null!=n.wkt?n.wkt:null,this._wkid=null!=n.wkid?n.wkid:-1,this._isInverse=null!=n.isInverse&&!0===n.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(n){this._wkt=n,this.uid=k++}get wkid(){return this._wkid}set wkid(n){this._wkid=n,this.uid=k++}get isInverse(){return this._isInverse}set isInverse(n){this._isInverse=n,this.uid=k++}getInverse(){const n=new I;return n._wkt=this.wkt,n._wkid=this._wkid,n._isInverse=!this.isInverse,n}}class j{static cacheKey(n,t){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(n){const t=new j;let e="";for(const l of n.steps){const n=I.fromGE(l);t.steps.push(n),e+=n.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=e,t}constructor(n){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,n?.steps)for(const t of n.steps)t instanceof I?this.steps.push(t):this.steps.push(new I({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const n=new j;n.steps=[];for(let t=this.steps.length-1;t>=0;t--){const e=this.steps[t];n.steps.push(e.getInverse())}return n}getGTListEntry(){let n="";for(const t of this.steps)n+=t.uid.toString()+",";return n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n),this._gtlistentry}assignCachedGe(n,t,e){this._cachedProjection[j.cacheKey(n,t)]=e}getCachedGeTransformation(n,t){let e="";for(const n of this.steps)e+=n.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const l=this._cachedProjection[j.cacheKey(n,t)];return void 0===l?null:l}}var x=e(21325),_=e(62815);let v=null,P=null,S=null,A={};const G=new u.I;function O(){return!!v&&(0,h.i)()}function z(){return!!O()||((0,i.gc)(G),E(),!1)}function $(n,t){return!n||!t||F(n,t)||z()}function q(n,t){return!F(n,t)&&!O()}function E(n){return null==S&&(S=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(n=>n.g),e.e(2731).then(e.bind(e,12731))])),S.then(([,t,{hydratedAdapter:e}])=>{(0,r.Te)(n),P=e,v=t.default,v._enableProjection(h.p),G.notify()})}function T(n,t,e=null,l=null){return Array.isArray(n)?0===n.length?[]:((0,o.H)(n),Z(P,n,n[0].spatialReference,t,e,l)):((0,o.f)(n),Z(P,[n],n.spatialReference,t,e,l)[0])}function Z(n,t,e,l,r=null,i=null){if(null==e||null==l)return t;if(F(e,l,r))return t.map(n=>Q(n,e,l));if(null==r&&(0,a.jA)(e))return t.map(n=>Q(n,e,w.A.WGS84)).map(n=>N(n,l));if(null==r&&(0,a.jA)(l))return t.map(n=>N(n,w.A.WGS84)).map(n=>Q(n,w.A.WGS84,l));if(null==r){const n=j.cacheKey(e,l);void 0!==A[n]?r=A[n]:(null==(r=K(e,l,void 0))&&(r=new j),A[n]=r)}if(null==v||null==n)throw new b;return null!=i?v._project(n,t,e,l,r,i):v._project(n,t,e,l,r)}function L(n,t){const e=C([n],t);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function C(n,t){if(!O())for(const e of n)if(null!=e&&!(0,x.aI)(e.spatialReference,t)&&(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)&&!F(e.spatialReference,t))return(0,i.gc)(G),{pending:E(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,x.aI)(n.spatialReference,t)?n:(0,x.fn)(n.spatialReference)&&(0,x.fn)(t)?N(n,t):null)}}function K(n,t,e=null){if(null==n||null==t)return null;if(null==v||null==P)throw new b;const l=v._getTransformation(P,n,t,e,e?.spatialReference);return null!==l?j.fromGE(l):null}function W(n,t,e=null){if(null==v||null==P)throw new b;const l=v._getTransformationBySuitability(P,n,t,e,e?.spatialReference);if(null!==l){const n=[];for(const t of l)n.push(j.fromGE(t));return n}return[]}class b extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function B(){v=null,P=null,S=null,A={}}const H={get loadPromise(){return S}};function N(n,t){try{const e=T(n,t);if(null==e)return null;"xmin"in n&&"xmin"in e&&(e.zmin=n.zmin,e.zmax=n.zmax);const l=(0,_.N)(e.type,n.spatialReference,t);return null!=l&&l(e),e}catch(n){if(!(n instanceof b))throw n;return null}}async function U(n,t,e){const l=n.spatialReference;return null!=l&&null!=t&&await Y(l,t,null,e),N(n,t)}function F(n,t,e){return!e&&(!!(0,x.aI)(n,t)||(0,x.fn)(n)&&(0,x.fn)(t)&&!!(0,y.jd)(n,t))}function J(n,t){if((0,x.aI)(n,t))return!0;if(!(0,x.fn)(n)||!(0,x.fn)(t))return!1;const e=(0,x.oT)(n)||(0,x.K8)(n)||(0,x.x1)(n),l=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return e&&l}async function Y(n,t,e,l){if(O())return(0,r.NO)(l);if(Array.isArray(n)){for(const{source:t,dest:e,geographicTransformation:r}of n)if(t&&e&&!F(t,e,r))return E(l)}else if(n&&t&&!F(n,t,e))return E(l);return(0,r.NO)(l)}function Q(n,t,e){return n?"x"in n?D(n,t,new p.A,e,0):"xmin"in n?sn(n,t,new c.A,e,0):"rings"in n?rn(n,t,new d.A,e,0):"paths"in n?en(n,t,new m.A,e,0):"points"in n?nn(n,t,new f.A,e,0):null:null}function X(n,t,e=t.spatialReference,l=0){return null!=e&&null!=n.spatialReference&&null!=D(n,n.spatialReference,t,e,l)}function D(n,t,e,l,r){an[0]=n.x,an[1]=n.y;const i=n.z;return an[2]=void 0!==i?i:r,(0,g.projectBuffer)(an,t,0,an,l,0)?(e.x=an[0],e.y=an[1],e.spatialReference=l,void 0!==i||(0,a.xP)(l)?(e.z=an[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===n.m?(e.m=void 0,e.hasM=!1):(e.m=n.m,e.hasM=!0),e):null}function V(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=nn(n,n.spatialReference,t,e,l)}function nn(n,t,e,l,r){const{points:i,hasZ:u,hasM:s}=n,o=[],c=i.length,f=[];for(const n of i)f.push(n[0],n[1],u?n[2]:r);if(!(0,g.projectBuffer)(f,t,0,f,l,0,c))return null;const h=u||(0,a.xP)(l);for(let n=0;n<c;++n){const t=3*n,e=f[t],l=f[t+1];h&&s?o.push([e,l,f[t+2],i[n][3]]):h?o.push([e,l,f[t+2]]):s?o.push([e,l,i[n][2]]):o.push([e,l])}return e.points=o,e.spatialReference=l,e.hasZ=u,e.hasM=s,e}function tn(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=en(n,n.spatialReference,t,e,l)}function en(n,t,e,l,r){const{paths:i,hasZ:u,hasM:s}=n,o=[];if(!on(i,u??!1,s??!1,t,o,l,r))return null;const c=u||(0,a.xP)(l);return e.paths=o,e.spatialReference=l,e.hasZ=c,e.hasM=s,e}function ln(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=rn(n,n.spatialReference,t,e,l)}function rn(n,t,e,l,r){const{rings:i,hasZ:u,hasM:s}=n,o=[];if(!on(i,u??!1,s??!1,t,o,l,r))return null;const c=u||(0,a.xP)(l);return e.rings=o,e.spatialReference=l,e.hasZ=c,e.hasM=s,e}function un(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=sn(n,n.spatialReference,t,e,l)}function sn(n,t,e,l,r){const{xmin:i,ymin:u,xmax:s,ymax:o,hasZ:c,hasM:f}=n;if(!R(i,u,c?n.zmin:r,t,an,l))return null;const h=c||(0,a.xP)(l);return e.xmin=an[0],e.ymin=an[1],h&&(e.zmin=an[2]),R(s,o,c?n.zmax:r,t,an,l)?(e.xmax=an[0],e.ymax=an[1],h&&(e.zmax=an[2]),f&&(e.mmin=n.mmin,e.mmax=n.mmax),e.spatialReference=l,e):null}function on(n,t,e,l,r,i,u=0){const s=new Array;for(const e of n)for(const n of e)s.push(n[0],n[1],t?n[2]:u);if(!(0,g.projectBuffer)(s,l,0,s,i,0))return!1;let o=0;r.length=0;const c=t||(0,a.xP)(i);for(const t of n){const n=new Array;for(const l of t)c&&e?n.push([s[o++],s[o++],s[o++],l[3]]):c?n.push([s[o++],s[o++],s[o++]]):e?(n.push([s[o++],s[o++],l[2]]),o++):(n.push([s[o++],s[o++]]),o++);r.push(n)}return!0}const an=(0,s.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>o,xm:()=>l});var r=n(34275),i=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function l(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function o(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},8303:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(31635),i=n(92602),s=n(70333),l=n(78888),o=n(60999),a=n(49186),u=n(53966),c=n(97768),p=n(74887),h=n(84952),d=n(10107),f=(n(44208),n(87811),n(36005)),m=n(40608),y=n(43937),g=n(77548),v=n(20655),b=n(80812),w=n(41318),I=n(10407);const x=e=>{const t=e;let x=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}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new b.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,p.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,p.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,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let l,o;if(i)l=n.portal.url;else try{l=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!l||!(0,h.b8)(l,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new b.default({id:e,portal:{url:l}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,I.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.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 n=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=v.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(r))return i.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?w.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return n&&r&&!(0,h.ut)(r.restUrl,n.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,r.Cg)([(0,d.MZ)({type:b.default})],x.prototype,"portalItem",null),(0,r.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],x.prototype,"readPortalItem",null),(0,r.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],x.prototype,"writePortalItem",null),(0,r.Cg)([(0,d.MZ)({clonable:!1})],x.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasUpdateItemPrivileges",void 0),x=(0,r.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],x),x},M={credential:null,user:null}},9093:(e,t,n)=>{function r(){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]]}n.d(t,{o8:()=>i,vt:()=>r,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:r,fromValues:function(e,t,n,r,i,s,l,o,a,u,c,p,h,d,f,m){return[e,t,n,r,i,s,l,o,a,u,c,p,h,d,f,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(37539);function i(e,t,n,i,s,l,o=Math.floor(e.length/3)){const a=(0,r.jd)(t,s);if(null==a)return!1;if(a===r.pO){if(e===i&&n===l)return!0;const t=n+3*o;for(let r=n,s=l;r<t;r++,s++)i[s]=e[r];return!0}const u=n+3*o;for(let t=n,r=l;t<u;t+=3,r+=3)a(e,t,i,r);return!0}},10184:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(31635),i=n(69540),s=n(25482),l=n(88930),o=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),u=n(40608),c=n(73133);let p=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,n)=>{n.d(t,{It:()=>d,LG:()=>l,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>a,mm:()=>h,sQ:()=>p});var r=n(98988),i=n(16930),s=n(28735);function l(e,t){if(!o(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return o(e,h.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?l(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=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 n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const h={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 d(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),l=!!n&&!!i?.includes("features:user:fullEdit");const o="update"===r||"admin"===r;return o?l=s=!0:l&&(s=!0),{features:{edit:s,fullEdit:l},content:{updateItem:o}}}},16494:(e,t,n)=>{n.d(t,{W5:()=>l});var r=n(37330);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],l=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(s.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},33446:(e,t,n)=>{n.d(t,{C:()=>l,m:()=>s});var r=n(49186),i=n(74887);async function s(e,t,n){let s;try{s=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.Te)(n),s}async function l(e,t,n,s,l){let o;try{o=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${n}/${s}`,{error:e,level:t,row:n,col:s})}return(0,i.Te)(l),o}},37539:(e,t,n)=>{n.d(t,{pO:()=>m,jd:()=>h,Tp:()=>d,w5:()=>p});var r=n(34727),i=n(83047),s=n(73941),l=n(79258);Math.PI;const o=l.$O.radius,a=l.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=n(21325);const p={2:{5:m,7:null,9:null,10:m,1:M,6:null,8:null,0:null,3:g,11:v,2:m,4:E},5:{5:m,7:null,9:null,10:m,1:M,6:null,8:null,0:null,3:g,11:v,2:m,4:E},7:{5:null,7:m,9:null,10:m,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){const i=e[t]/F,s=N-2*Math.atan(Math.exp(-e[t+1]/F)),l=F+e[t+2],o=Math.cos(s)*l;n[r]=Math.cos(i)*o,n[r+1]=Math.sin(i)*o,n[r+2]=Math.sin(s)*l},6:null,8:null,0:null,3:m,11:function(e,t,n,r){y(e,t,n,r),v(n,r,n,r)},2:y,4:function(e,t,n,r){y(e,t,n,r),E(n,r,n,r)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,n,r){T(e,t,n,r),M(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){T(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){T(e,t,n,r),v(n,r,n,r)},2:T,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(e,t,n,r){A(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),v(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),E(n,r,n,r)}},6:{5:null,7:S,9:null,10:S,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:M,6:x,8:I,0:null,3:g,11:v,2:m,4:E},11:{5:b,7:null,9:null,10:b,1:function(e,t,n,r){b(e,t,n,r),M(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){b(e,t,n,r),g(n,r,n,r)},11:m,2:b,4:function(e,t,n,r){b(e,t,n,r),E(n,r,n,r)}}};function h(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(P.source.spatialReference===e&&P.dest.spatialReference===t)return P;const n=f(e,P.source),r=f(t,P.dest);return 0===n&&0===r?(0,c.aI)(e,t)?P.projector=m:P.projector=null:P.projector=p[n][r],P}function f(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,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.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,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function y(e,t,n,r){n[r]=R*(e[t]/F),n[r+1]=R*(N-2*Math.atan(Math.exp(-e[t+1]/F))),n[r+2]=e[t+2]}function g(e,t,n,i){!function(e,t,n,i,s){const l=.4999999*Math.PI,o=(0,r.qE)(O*e[t+1],-l,l),a=Math.sin(o);n[i++]=O*e[t]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=e[t+2]}(e,t,n,i,l.$O)}function v(e,t,n,r){n[r]=e[t]*j,n[r+1]=e[t+1]*j,n[r+2]=e[t+2]}function b(e,t,n,r){n[r]=e[t]*L,n[r+1]=e[t+1]*L,n[r+2]=e[t+2]}function w(e,t,n,r,i){const s=i+e[t+2],l=O*e[t+1],o=O*e[t],a=Math.cos(l)*s;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(l)*s}function I(e,t,n,r){w(e,t,n,r,l.Sw.radius)}function x(e,t,n,r){w(e,t,n,r,l.sH.radius)}function M(e,t,n,r){w(e,t,n,r,l.$O.radius)}function C(e,t,n,i,s){const l=e[t],o=e[t+1],a=e[t+2],u=Math.sqrt(l*l+o*o+a*a),c=(0,r.YN)(a/(0===u?1:u)),p=Math.atan2(o,l);n[i++]=R*p,n[i++]=R*c,n[i]=u-s}function _(e,t,n,r){C(e,t,n,r,l.Sw.radius)}function S(e,t,n,r){C(e,t,n,r,l.sH.radius)}function A(e,t,n,r){C(e,t,n,r,l.$O.radius)}function E(e,t,n,r){!function(e,t,n,r,i){const s=O*e[t],l=O*e[t+1],o=e[t+2],a=Math.sin(l),u=Math.cos(l),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+o)*u*Math.cos(s),n[r++]=(c+o)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+o)*a}(e,t,n,r,l.$O)}function T(e,t,n,r){const i=u,s=e[t],o=e[t+1],a=e[t+2];let c,p,h,d,f,m,y,g,v,b,w,I,x,M,C,_,S,A,E,T,P;c=Math.abs(a),p=s*s+o*o,h=Math.sqrt(p),d=p+a*a,f=Math.sqrt(d),T=Math.atan2(o,s),m=a*a/d,y=p/d,M=i.a2/f,C=i.a3-i.a4/f,y>.3?(g=c/f*(1+y*(i.a1+M+m*C)/f),E=Math.asin(g),b=g*g,v=Math.sqrt(1-b)):(v=h/f*(1-m*(i.a5-M-y*C)/f),E=Math.acos(v),b=1-v*v,g=Math.sqrt(b)),w=1-l.$O.eccentricitySquared*b,I=l.$O.radius/Math.sqrt(w),x=i.a6*I,M=h-I*v,C=c-x*g,S=v*M+g*C,_=v*C-g*M,A=_/(x/w+S),E+=A,P=S+_*A/2,a<0&&(E=-E),n[r++]=R*T,n[r++]=R*E,n[r]=P}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,r.kU)(1),R=(0,r.KJ)(1),N=.5*Math.PI,F=l.$O.radius,j=F*Math.PI/180,L=180/(F*Math.PI)},38458:(e,t,n)=>{n.d(t,{m:()=>i});const r=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function i(e){return null!=e&&r.some(([t,n])=>e>=t&&e<=n)}},38961:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),i=n(7762),s=n(36708),l=n(10107),o=n(40608),a=n(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=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const n of e)null!=n&&(t=this._processCollection(t,n));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const n=this.itemFilterFunction??(e=>!!e);for(const r of t)if(r){if(n(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const n of t)e=this._processCollection(e,n);else e=this._processCollection(e,t)}}return e}};(0,r.Cg)([(0,l.MZ)()],u.prototype,"getCollections",void 0),(0,r.Cg)([(0,l.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,r.Cg)([(0,l.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,r.Cg)([(0,o.$)("esri.core.CollectionFlattener")],u)},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>h});var r=n(66552),i=n(5443),s=n(91075),l=n(48526),o=n(86738),a=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),h={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:l.A,point:o.A,polyline:u.A,polygon:a.A}}},51904:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_e});var r=n(31635),i=n(92602),s=n(52106),l=n(37838),o=n(78888),a=n(7762),u=n(38961),c=n(49186),p=n(66552),h=n(4718),d=n(92071),f=n(74887),m=n(36708),y=n(16494),g=n(84952),v=n(10107),b=n(56507),w=n(36005),I=n(40608),x=n(43937),M=n(49422),C=n(5443),_=n(16930),S=n(83960),A=n(21325),E=n(4146),T=n(63074),P=n(16131),O=n(8303),R=n(54310),N=n(25036),F=n(82935),j=n(38458),L=n(60694),Z=n(10873),U=n(65008);n(44208),n(53966),n(87811);const k={visible:"visibleSublayers"};let G=class extends U.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(k[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,n=e?.sublayers,r=[],i=e=>{const{minScale:n,maxScale:s,sublayers:l,visible:o}=e;o&&(0===t||(0===n||t<=n)&&(0===s||t>=s))&&(l?l.forEach(i):r.push(e))};return n?.forEach(i),r}toJSON(){const{layer:e,layers:t}=this,{imageFormat:n,imageTransparency:r,version:i}=e;return{format:n,request:"GetMap",service:"WMS",styles:"",transparent:r?"TRUE":"FALSE",version:i,layers:t}}};(0,r.Cg)([(0,v.MZ)()],G.prototype,"layer",null),(0,r.Cg)([(0,v.MZ)({readOnly:!0})],G.prototype,"layers",null),(0,r.Cg)([(0,v.MZ)({type:Number})],G.prototype,"scale",void 0),(0,r.Cg)([(0,v.MZ)({readOnly:!0})],G.prototype,"version",null),(0,r.Cg)([(0,v.MZ)({readOnly:!0})],G.prototype,"visibleSublayers",null),G=(0,r.Cg)([(0,I.$)("esri.layers.support.ExportWMSImageParameters")],G);var $,q=n(33446),H=n(4902),B=n(79901);let V=0,W=$=class extends((0,H.sA)(d.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,m.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},m.OH),(0,m.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},m.OH),(0,m.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},m.OH),(0,m.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},m.OH)])}get id(){return this._get("id")??V++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,b.dp)(a.A.ofType($),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new $;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const n=this.layer;this._get(e)!==t&&(this._set(e,t),n&&n.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,r.Cg)([(0,v.MZ)()],W.prototype,"description",void 0),(0,r.Cg)([(0,v.MZ)({readOnly:!0})],W.prototype,"dimensions",void 0),(0,r.Cg)([(0,v.MZ)({type:C.A,json:{name:"extent"}})],W.prototype,"fullExtent",void 0),(0,r.Cg)([(0,v.MZ)()],W.prototype,"fullExtents",void 0),(0,r.Cg)([(0,v.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],W.prototype,"id",null),(0,r.Cg)([(0,v.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],W.prototype,"legendUrl",void 0),(0,r.Cg)([(0,w.w)("legendUrl",["legendUrl","legendURL"])],W.prototype,"readLegendUrl",null),(0,r.Cg)([(0,v.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],W.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,v.MZ)()],W.prototype,"layer",void 0),(0,r.Cg)([(0,v.MZ)()],W.prototype,"maxScale",void 0),(0,r.Cg)([(0,v.MZ)()],W.prototype,"minScale",void 0),(0,r.Cg)([(0,v.MZ)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],W.prototype,"name",void 0),(0,r.Cg)([(0,v.MZ)()],W.prototype,"parent",void 0),(0,r.Cg)([(0,v.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],W.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,v.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],W.prototype,"queryable",void 0),(0,r.Cg)([(0,v.MZ)()],W.prototype,"sublayers",void 0),(0,r.Cg)([(0,B.w)("sublayers")],W.prototype,"castSublayers",null),(0,r.Cg)([(0,v.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],W.prototype,"spatialReferences",void 0),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],W.prototype,"title",void 0),(0,r.Cg)([(0,v.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],W.prototype,"visible",null),W=$=(0,r.Cg)([(0,I.$)("esri.layers.support.WMSSublayer")],W);var z=n(4576),D=n(28097);const J={84:4326,83:4269,27:4267};function K(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const n=e.documentElement;if("ServiceExceptionReport"===n.nodeName){const e=Array.prototype.slice.call(n.childNodes).map(e=>e.textContent).join("\r\n");throw new c.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const r=ee("Capability",n),i=ee("Service",n),s=r&&ee("Request",r);if(!r||!i||!s)return null;const l=ee("Layer",r);if(!l)return null;const o="WMS_Capabilities"===n.nodeName||"WMT_MS_Capabilities"===n.nodeName?n.getAttribute("version"):"1.3.0",a=ne("Title",i,"")||ne("Name",i,""),u=ne("AccessConstraints",i,""),p=/^none$/i.test(u)?"":u,h=ne("Abstract",i,""),d=parseInt(ne("MaxWidth",i,"5000"),10),f=parseInt(ne("MaxHeight",i,"5000"),10),m=se(s,"GetMap"),y=ie(s,"GetMap"),g=oe(l,o,t);if(!g)return null;let v,b=0;const w=Array.prototype.slice.call(r.childNodes),I=g.sublayers??[],x=e=>{null!=e&&I.push(e)};w.forEach(e=>{"Layer"===e.nodeName&&(0===b?v=e:1===b?(g.name&&(g.name="",x(oe(v,o,t))),x(oe(e,o,t))):x(oe(e,o,t)),b++)});const M=g.sublayers??[],C=g.fullExtents??[];0===M.length&&M.push(g),g.extent??=M[0].extent;const _=g.spatialReferences.length>0?g.spatialReferences:Y(g),S=ie(s,"GetFeatureInfo"),A=S?se(s,"GetFeatureInfo"):null,E=Q(M),T=g.minScale||0,P=g.maxScale||0,O=g.dimensions??[],R=E.reduce((e,t)=>e.concat(t.dimensions??[]),[]),N=O.concat(R).filter(ue);let F=null;if(N.length){const e=N.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(z.Ru),{start:t,end:n}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});F={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,n]}}return{copyright:p,description:h,dimensions:O,extent:g.extent,fullExtents:C,featureInfoFormats:A,featureInfoUrl:S,mapUrl:y,maxWidth:d,maxHeight:f,maxScale:P,minScale:T,layers:E,spatialReferences:_,supportedImageFormatTypes:m,timeInfo:F,title:a,version:o}}function Y(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=Y(t);if(e.length>0)return e}return[]}function Q(e){let t=[];for(const n of e)t.push(n),n.sublayers?.length&&(t=t.concat(Q(n.sublayers)),delete n.sublayers);return t}function X(e,t,n){return t.getAttribute(e)??n}function ee(e,t){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(ae(r)&&r.nodeName===e)return r}return null}function te(e,t){if(null==t)return[];const n=[];for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];ae(i)&&i.nodeName===e&&n.push(i)}return n}function ne(e,t,n){return ee(e,t)?.textContent??n}function re(e,t,n){const r=parseFloat(e.getAttribute("minx")??"0"),i=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),l=parseFloat(e.getAttribute("maxy")??"0");return{xmin:n?isNaN(i)?-Number.MAX_VALUE:i:isNaN(r)?-Number.MAX_VALUE:r,ymin:n?isNaN(r)?-Number.MAX_VALUE:r:isNaN(i)?-Number.MAX_VALUE:i,xmax:n?isNaN(l)?Number.MAX_VALUE:l:isNaN(s)?Number.MAX_VALUE:s,ymax:n?isNaN(s)?Number.MAX_VALUE:s:isNaN(l)?Number.MAX_VALUE:l,spatialReference:{wkid:t}}}function ie(e,t){const n=ee(t,e);if(n){const e=ee("DCPType",n);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,n){const r=ee("OnlineResource",n);return r?X("xlink:href",r,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const n=[],r=(0,g.An)(e);for(const e in r.query)r.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||n.push(e+"="+r.query[e]));return r.path+(n.length?"?"+n.join("&"):"")}(t,["service","request"])}}}}}return null}function se(e,t){const n=te("Operation",e);if(!n.length)return te("Format",ee(t,e)).map(({textContent:e})=>e).filter(z.Ru);const r=[];for(const e of n)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&r.push(e)}return r}function le(e,t,n){const r=ee(t,e);if(!r)return n;const{textContent:i}=r;if(null==i||""===i)return n;const s=Number(i);return isNaN(s)?n:s}function oe(e,t,n){if(!e)return null;const r=e.getAttribute("queryable")?.toLowerCase(),i="1"===r||"true"===r,s={id:n.idCounter++,fullExtents:[],parentLayerId:null,queryable:i,spatialReferences:[],sublayers:null},l=ee("LatLonBoundingBox",e),o=ee("EX_GeographicBoundingBox",e),a=l?re(l,4326):o?{xmin:parseFloat(ne("westBoundLongitude",o,"0")),ymin:parseFloat(ne("southBoundLatitude",o,"0")),xmax:parseFloat(ne("eastBoundLongitude",o,"0")),ymax:parseFloat(ne("northBoundLatitude",o,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=le(e,"MaxScaleDenominator",0),s.maxScale=le(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const n=e.getAttribute(u),r=n?.indexOf(":");if(r&&r>-1){let i=parseInt(n.slice(r+1),10);0===i||isNaN(i)||(i=J[i]??i);const l="1.3.0"===t?re(e,i,(0,j.m)(i)):re(e,i);l&&s.fullExtents&&s.fullExtents.push(l)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[n,r]=e.toUpperCase().split(":");"CRS"!==n&&"EPSG"!==n||(t=parseInt(r,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=J[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const r=oe(e,t,n);r&&(r.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(r))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=a,s.dimensions=te("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),n=e.getAttribute("units"),r=e.textContent,i=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,l="0"!==X("default",e,"0"),o="0"!==X("nearestValue",e,"0"),a="0"!==X("current",e,"0");return ue({name:t,units:n})?{name:"time",units:"ISO8601",extent:he(r),default:he(s),multipleValues:l,nearestValue:o,current:a}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:n})?{name:"elevation",units:n,extent:ce(r),unitSymbol:i,default:ce(s),multipleValues:l,nearestValue:o}:{name:t,units:n,extent:pe(r),unitSymbol:i,default:pe(s),multipleValues:l,nearestValue:o}}),s}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function ce(e){if(!e)return;const t=e.includes("/"),n=e.split(",");return t?n.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(z.Ru):n.map(e=>parseFloat(e))}function pe(e){if(!e)return;const t=e.includes("/"),n=e.split(",");return t?n.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(z.Ru):n}function he(e){if(!e)return;const t=e.includes("/"),n=e.split(",");return t?n.map(e=>{const t=e.split("/");return t.length<2?null:{min:de(t[0]),max:de(t[1]),resolution:t.length>=3&&"0"!==t[2]?fe(t[2]):void 0}}).filter(z.Ru):n.map(e=>de(e))}function de(e){return D.c9.fromISO(e,{zone:D.mQ.utcInstance}).toJSDate()}function fe(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:me(t[1]),months:me(t[2]),days:me(t[3]),hours:me(t[4]),minutes:me(t[5]),seconds:me(t[6])}:null}function me(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const n=t[0].replace(",",".");return Number(n)}function ye(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function ge(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:n}=e;return t&&n&&t.getTime()===n.getTime()?`${ye(t)}`:`${t?ye(t):"0000-01-01T00:00:00Z"}/${n?ye(n):"9999-12-31T23:59:59Z"}`}const ve=new Set([102100,3857,102113,900913]),be=new Set([3395,54004]),we=new p.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function Ie(e){return"text/html"===e}function xe(e){return"text/plain"===e}let Me=class extends((0,T.dM)((0,F.e)((0,R.J)((0,N.j)((0,P.q)((0,O.A)((0,d.P)(E.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,m.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},m.OH),(0,m.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},m.OH),(0,m.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=t.layer=this},m.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(f.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const n=t.extent;return n?new C.A({xmin:n[0][0],ymin:n[0][1],xmax:n[1][0],ymax:n[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(Ie)??this.featureInfoFormats.find(xe)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(Ie(e)||xe(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const n=t.supportedImageFormatTypes;return n&&n.includes("image/png")?"image/png":n&&n[0]}readSpatialReferenceFromItemOrDocument(e,t){return new _.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const n=this.spatialReference?.wkid;e&&n?(t.spatialReferences=e.filter(e=>e!==n),t.spatialReferences.unshift(n)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,n){return Ce(t.layers,n,t.visibleLayers)}readSublayers(e,t,n){return Ce(t.layers,n)}writeSublayers(e,t,n,r){t.layers=[];const i=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=i.get(e.parent.id);null!=t?t.push(e.id):i.set(e.parent.id,[e.id])}for(const e of s){const n={sublayer:e,...r},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},n);if(i.has(e.id)&&(s.sublayerIds=i.get(e.id)),!e.sublayers&&e.name){const r=e.write({},n);delete r.id,t.layers.push(r)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:n}=(0,g.An)(e);for(const e in n)/^(request|service)$/i.test(e)&&delete n[e];const r=(0,g.a6)(t,n??{});this._set("url",r)}createExportImageParameters(e,t,n,r){const i=r?.pixelRatio??1,s=(0,S.X_)({extent:e,width:t})*i,l=new G({layer:this,scale:s}),{xmin:o,ymin:a,xmax:u,ymax:c,spatialReference:p}=e,h=function(e,t){let n=e.wkid;return null==t?n:(null!=n&&t.includes(n)||!e.latestWkid||(n=e.latestWkid),null!=n&&ve.has(n)?t.find(e=>ve.has(e))||t.find(e=>be.has(e))||102100:n)}(p,this.spatialReferences),d="1.3.0"===this.version&&(0,j.m)(h)?`${a},${o},${c},${u}`:`${o},${a},${u},${c}`,f=l.toJSON(),m="1.3.0"===this.version?"crs":"srs";return{bbox:d,[m]:null==h||isNaN(h)?void 0:"EPSG:"+h,...f}}async fetchImage(e,t,n,r){const i=this.mapUrl,s=this.createExportImageParameters(e,t,n,r);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const l=ge(r?.timeExtent),a={responseType:"image",query:this._mixCustomParameters({width:t,height:n,...s,time:l,...this.refreshParameters}),signal:r?.signal};return(0,o.A)(i??"",a).then(e=>e.data)}async fetchImageBitmap(e,t,n,r){const i=this.mapUrl??"",s=this.createExportImageParameters(e,t,n,r);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const l=ge(r?.timeExtent),a={responseType:"blob",query:this._mixCustomParameters({width:t,height:n,...s,time:l,...this.refreshParameters}),signal:r?.signal},{data:u}=await(0,o.A)(i,a);return(0,q.m)(u,i,r?.signal)}fetchFeatureInfo(e,t,n,r,i){const s=(0,S.X_)({extent:e,width:t}),l=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new G({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==l)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:r,J:i}:{x:r,y:i},a={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:n,...o},u={...this.createExportImageParameters(e,t,n),...a},c=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(c):this._defaultFetchFeatureInfoFunction((0,g.a6)(this.featureInfoUrl,c))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,L.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const n=900913===t?_.A.WebMercator:new _.A({wkid:t});return(0,A.aI)(n,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,g.yM)(y.W5.sanitizeUrl((0,g.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const n=new l.A({title:this.title,content:t}),r=new s.A({sourceLayer:this,popupTemplate:n});return Promise.resolve([r])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:n}=this.parsedUrl,{data:r}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...n,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=K(r)}if(this.parsedUrl){const e=new g.s0(this.parsedUrl.path),{httpsDomains:t}=i.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new c.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const n in t)e[n.toLowerCase()]=t[n];return e}};function Ce(e,t,n){e=e??[];const r=new Map;e.every(e=>null==e.id)&&(e=(0,h.o8)(e)).forEach((e,t)=>e.id=t);for(const i of e){const e=new W;e.read(i,t),n&&!n.includes(e.name)&&(e.visible=!1),r.set(e.id,e)}const i=[];for(const t of e){const e=null!=t.id?r.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const n=r.get(t.parentLayerId);if(!n)continue;n.sublayers||(n.sublayers=new a.A),n.sublayers.push(e)}else i.push(e)}return i}(0,r.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"allSublayers",void 0),(0,r.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customParameters",void 0),(0,r.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customLayerParameters",void 0),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:!0}})],Me.prototype,"copyright",void 0),(0,r.Cg)([(0,v.MZ)()],Me.prototype,"description",void 0),(0,r.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"dimensions",void 0),(0,r.Cg)([(0,v.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],Me.prototype,"fullExtent",void 0),(0,r.Cg)([(0,w.w)(["web-document","portal-item"],"fullExtent",["extent"])],Me.prototype,"readFullExtentFromItemOrMap",null),(0,r.Cg)([(0,x.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],Me.prototype,"writeFullExtent",null),(0,r.Cg)([(0,v.MZ)({type:[C.A]})],Me.prototype,"fullExtents",void 0),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoFormat",null),(0,r.Cg)([(0,v.MZ)({type:[String],readOnly:!0})],Me.prototype,"featureInfoFormats",void 0),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoUrl",void 0),(0,r.Cg)([(0,v.MZ)()],Me.prototype,"fetchFeatureInfoFunction",void 0),(0,r.Cg)([(0,v.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:we.jsonValues,read:{reader:we.read,source:"format"},write:{writer:we.write,target:"format"}}}}})],Me.prototype,"imageFormat",void 0),(0,r.Cg)([(0,w.w)("imageFormat",["supportedImageFormatTypes"])],Me.prototype,"readImageFormat",null),(0,r.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],Me.prototype,"imageMaxHeight",void 0),(0,r.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],Me.prototype,"imageMaxWidth",void 0),(0,r.Cg)([(0,v.MZ)()],Me.prototype,"imageTransparency",void 0),(0,r.Cg)([(0,v.MZ)(Z.fV)],Me.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,v.MZ)({type:["show","hide","hide-children"]})],Me.prototype,"listMode",void 0),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"mapUrl",void 0),(0,r.Cg)([(0,v.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Me.prototype,"isReference",void 0),(0,r.Cg)([(0,v.MZ)({type:["WMS"]})],Me.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,v.MZ)()],Me.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,v.MZ)({type:_.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],Me.prototype,"spatialReference",void 0),(0,r.Cg)([(0,w.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],Me.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,r.Cg)([(0,v.MZ)({type:[b.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],Me.prototype,"spatialReferences",void 0),(0,r.Cg)([(0,x.K)(["web-document","portal-item"],"spatialReferences")],Me.prototype,"writeSpatialReferences",null),(0,r.Cg)([(0,v.MZ)({type:a.A.ofType(W),json:{write:{target:"layers",overridePolicy(e,t,n){if(function(e,t){return e.some(e=>{for(const n in e)if((0,M.R)(e,n,null,t))return!0;return!1})}(this.allSublayers,n))return{ignoreOrigin:!0}}}}})],Me.prototype,"sublayers",void 0),(0,r.Cg)([(0,w.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],Me.prototype,"readSublayersFromItemOrMap",null),(0,r.Cg)([(0,w.w)("service","sublayers",["layers"])],Me.prototype,"readSublayers",null),(0,r.Cg)([(0,x.K)("sublayers",{layers:{type:[W]},visibleLayers:{type:[String]}})],Me.prototype,"writeSublayers",null),(0,r.Cg)([(0,v.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],Me.prototype,"type",void 0),(0,r.Cg)([(0,v.MZ)(Z.OZ)],Me.prototype,"url",null),(0,r.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"version",void 0),Me=(0,r.Cg)([(0,I.$)("esri.layers.WMSLayer")],Me);const _e=Me},52106:(e,t,n)=>{n.d(t,{A:()=>x});var r,i=n(31635),s=n(37838),l=n(69540),o=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),h=n(10107),d=(n(44208),n(87811),n(40608)),f=n(12195),m=n(65864),y=n(50498),g=n(55156),v=n(60950),b=n(54339),w=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,l.OU)(a.o)){static{r=this}constructor(e){super(e),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,o.eF)(u.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 r({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,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,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 n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,g.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:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,i.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,m.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,h.MZ)({value:null})],x.prototype,"attributes",null),(0,i.Cg)([(0,h.MZ)({value:null,types:y.yR,json:{read:m.rS}})],x.prototype,"geometry",null),(0,i.Cg)([(0,h.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,i.Cg)([(0,h.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,i.Cg)([(0,h.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,i.Cg)([(0,h.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,i.Cg)([(0,h.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,h.MZ)({value:null,types:w.Es})],x.prototype,"symbol",null),(0,i.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=r=(0,i.Cg)([(0,d.$)("esri.Graphic")],x)},54339:(e,t,n)=>{function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},55156:(e,t,n)=>{n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},60999:(e,t,n)=>{n.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>c,UT:()=>m,jJ:()=>u});var r=n(31635),i=n(65008),s=n(97768),l=n(74887),o=n(10107),a=n(40608);function u(e,t,n){return(0,l.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function c(e,t,n){return(await(0,l.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,l.QP)(e),h(e)}}function m(e,t){return new y(e,t)}let y=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,o.MZ)()],y.prototype,"value",null),(0,r.Cg)([(0,o.MZ)()],y.prototype,"error",null),(0,r.Cg)([(0,o.MZ)()],y.prototype,"finished",null),(0,r.Cg)([(0,o.MZ)()],y.prototype,"promise",void 0),(0,r.Cg)([(0,o.MZ)()],y.prototype,"_result",void 0),y=(0,r.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],y)},62815:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(83047),i=n(73941),s=n(21325);function l(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,i.xP)(t)||(0,i.xP)(n))return null;const l=(0,r.G9)(t)/(0,r.G9)(n);if(1===l)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,l);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,l);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,l);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,l);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,l);default:return null}}},70328:(e,t,n)=>{n.d(t,{BI:()=>b,DC:()=>p,Ej:()=>d,Ie:()=>g,Jt:()=>v,Ne:()=>f,RF:()=>c,aI:()=>I,fA:()=>l,gE:()=>a,hZ:()=>y,iT:()=>h,is:()=>w,qv:()=>x,vI:()=>m,vY:()=>o,v_:()=>M,vt:()=>s,w1:()=>u});var r=n(5443),i=(n(19419),n(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function l(e,t,n,r,i,l,o=s()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=l,o}function o(e,t=s()){return function(e,t,n,r=s()){return y(r,x),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],l=e[2],o=e[3],a=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),l=Math.min(l,t[n+3*e+2]),o=Math.max(o,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=l,e[3]=o,e[4]=a,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function a(e,t=(0,i.jh)(24)){const[n,r,s,l,o,a]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=a,t[6]=n,t[7]=o,t[8]=s,t[9]=n,t[10]=o,t[11]=a,t[12]=l,t[13]=r,t[14]=s,t[15]=l,t[16]=r,t[17]=a,t[18]=l,t[19]=o,t[20]=s,t[21]=l,t[22]=o,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{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 p(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 h(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 d(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 f(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,x):s(x)}function v(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 b(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},73133:(e,t,n)=>{n.d(t,{j:()=>r});const r=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,n)=>{n.d(t,{B:()=>d,e:()=>f});var r=n(31635),i=n(10107),s=(n(44208),n(53966),n(87811),n(36005)),l=n(40608),o=n(89317),a=n(30524),u=n(96184),c=n(73133),p=n(79677),h=n(10184);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},f=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=c.j.fromJSON(n.timeOffsetUnits);return r&&i?new h.A({value:r,unit:i}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,i.MZ)({type:p.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:h.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(d)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,l.$)("esri.layers.mixins.TemporalLayer")],n),n}},83960:(e,t,n)=>{n.d(t,{X_:()=>l,oW:()=>a,zx:()=>o});var r=n(34727),i=n(83047);const s=96;function l(e,t){const n=t||e.extent,r=e.width,l=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*l*i.dy*s:0}function o(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},96184:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(31635),i=n(69540),s=n(25482),l=n(10107),o=(n(44208),n(53966),n(87811),n(36005)),a=n(40608),u=n(43937),c=n(79677),p=n(10184),h=n(56400);function d(e,t){return p.A.fromJSON({value:e,unit:t})}let f=class extends((0,i.OU)(s.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?c.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?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,r.Cg)([(0,l.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,o.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,u.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,l.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,o.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,r.Cg)([(0,u.K)("interval")],f.prototype,"writeInterval",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,r.Cg)([(0,l.MZ)((0,h.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,r.Cg)([(0,l.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,r.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],f)},98988:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>z,getTransformation:()=>G,getTransformations:()=>$,initializeProjection:()=>J,isEqualBaseGCS:()=>D,isLoaded:()=>O,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>N,load:()=>j,project:()=>L,projectExtent:()=>se,projectMany:()=>Z,projectMultipoint:()=>X,projectOrLoad:()=>U,projectOrLoadMany:()=>k,projectPoint:()=>Y,projectPolygon:()=>re,projectPolyline:()=>te,projectWithZConversion:()=>W,projectWithoutEngine:()=>K,requiresLoad:()=>F,test:()=>B,tryProjectWithZConversion:()=>V,unload:()=>H});var r=n(49186),i=n(74887),s=n(62788),l=n(95488),o=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(48526),h=n(83290),d=n(86738),f=n(39829),m=n(82799),y=n(16930),g=n(9762),v=n(37539);function b(e,t,n,r,i,s){return w[0]=e,w[1]=t,w[2]=n,(0,g.projectBuffer)(w,r,0,i,s,0)}const w=(0,o.vt)();let I=0;class x{static fromGE(e){const t=new x;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=I++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=I++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=I++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=I++}getInverse(){const e=new x;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class M{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new M;let n="";for(const r of e.steps){const e=x.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof x?this.steps.push(t):this.steps.push(new x({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new M;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[M.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[M.cacheKey(e,t)];return void 0===r?null:r}}var C=n(21325),_=n(62815);let S=null,A=null,E=null,T={};const P=new l.I;function O(){return!!S&&(0,h.i)()}function R(){return!!O()||((0,s.gc)(P),j(),!1)}function N(e,t){return!e||!t||z(e,t)||R()}function F(e,t){return!z(e,t)&&!O()}function j(e){return null==E&&(E=Promise.all([(0,h.l)(),n.e(9930).then(n.bind(n,49930)).then(e=>e.g),n.e(2731).then(n.bind(n,12731))])),E.then(([,t,{hydratedAdapter:n}])=>{(0,i.Te)(e),A=n,S=t.default,S._enableProjection(h.p),P.notify()})}function L(e,t,n=null,r=null){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),Z(A,e,e[0].spatialReference,t,n,r)):((0,a.f)(e),Z(A,[e],e.spatialReference,t,n,r)[0])}function Z(e,t,n,r,i=null,s=null){if(null==n||null==r)return t;if(z(n,r,i))return t.map(e=>K(e,n,r));if(null==i&&(0,u.jA)(n))return t.map(e=>K(e,n,y.A.WGS84)).map(e=>V(e,r));if(null==i&&(0,u.jA)(r))return t.map(e=>V(e,y.A.WGS84)).map(e=>K(e,y.A.WGS84,r));if(null==i){const e=M.cacheKey(n,r);void 0!==T[e]?i=T[e]:(null==(i=G(n,r,void 0))&&(i=new M),T[e]=i)}if(null==S||null==e)throw new q;return null!=s?S._project(e,t,n,r,i,s):S._project(e,t,n,r,i)}function U(e,t){const n=k([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function k(e,t){if(!O())for(const n of e)if(null!=n&&!(0,C.aI)(n.spatialReference,t)&&(0,C.fn)(n.spatialReference)&&(0,C.fn)(t)&&!z(n.spatialReference,t))return(0,s.gc)(P),{pending:j(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?V(e,t):null)}}function G(e,t,n=null){if(null==e||null==t)return null;if(null==S||null==A)throw new q;const r=S._getTransformation(A,e,t,n,n?.spatialReference);return null!==r?M.fromGE(r):null}function $(e,t,n=null){if(null==S||null==A)throw new q;const r=S._getTransformationBySuitability(A,e,t,n,n?.spatialReference);if(null!==r){const e=[];for(const t of r)e.push(M.fromGE(t));return e}return[]}class q extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function H(){S=null,A=null,E=null,T={}}const B={get loadPromise(){return E}};function V(e,t){try{const n=L(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const r=(0,_.N)(n.type,e.spatialReference,t);return null!=r&&r(n),n}catch(e){if(!(e instanceof q))throw e;return null}}async function W(e,t,n){const r=e.spatialReference;return null!=r&&null!=t&&await J(r,t,null,n),V(e,t)}function z(e,t,n){return!n&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,v.jd)(e,t))}function D(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const n=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return n&&r}async function J(e,t,n,r){if(O())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:i}of e)if(t&&n&&!z(t,n,i))return j(r)}else if(e&&t&&!z(e,t,n))return j(r);return(0,i.NO)(r)}function K(e,t,n){return e?"x"in e?Q(e,t,new d.A,n,0):"xmin"in e?le(e,t,new c.A,n,0):"rings"in e?ie(e,t,new f.A,n,0):"paths"in e?ne(e,t,new m.A,n,0):"points"in e?ee(e,t,new p.A,n,0):null:null}function Y(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=Q(e,e.spatialReference,t,n,r)}function Q(e,t,n,r,i){ae[0]=e.x,ae[1]=e.y;const s=e.z;return ae[2]=void 0!==s?s:i,(0,g.projectBuffer)(ae,t,0,ae,r,0)?(n.x=ae[0],n.y=ae[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=ae[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,r)}function ee(e,t,n,r,i){const{points:s,hasZ:l,hasM:o}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],l?e[2]:i);if(!(0,g.projectBuffer)(p,t,0,p,r,0,c))return null;const h=l||(0,u.xP)(r);for(let e=0;e<c;++e){const t=3*e,n=p[t],r=p[t+1];h&&o?a.push([n,r,p[t+2],s[e][3]]):h?a.push([n,r,p[t+2]]):o?a.push([n,r,s[e][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=l,n.hasM=o,n}function te(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,r)}function ne(e,t,n,r,i){const{paths:s,hasZ:l,hasM:o}=e,a=[];if(!oe(s,l??!1,o??!1,t,a,r,i))return null;const c=l||(0,u.xP)(r);return n.paths=a,n.spatialReference=r,n.hasZ=c,n.hasM=o,n}function re(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,r)}function ie(e,t,n,r,i){const{rings:s,hasZ:l,hasM:o}=e,a=[];if(!oe(s,l??!1,o??!1,t,a,r,i))return null;const c=l||(0,u.xP)(r);return n.rings=a,n.spatialReference=r,n.hasZ=c,n.hasM=o,n}function se(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=le(e,e.spatialReference,t,n,r)}function le(e,t,n,r,i){const{xmin:s,ymin:l,xmax:o,ymax:a,hasZ:c,hasM:p}=e;if(!b(s,l,c?e.zmin:i,t,ae,r))return null;const h=c||(0,u.xP)(r);return n.xmin=ae[0],n.ymin=ae[1],h&&(n.zmin=ae[2]),b(o,a,c?e.zmax:i,t,ae,r)?(n.xmax=ae[0],n.ymax=ae[1],h&&(n.zmax=ae[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function oe(e,t,n,r,i,s,l=0){const o=new Array;for(const n of e)for(const e of n)o.push(e[0],e[1],t?e[2]:l);if(!(0,g.projectBuffer)(o,r,0,o,s,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const r of t)c&&n?e.push([o[a++],o[a++],o[a++],r[3]]):c?e.push([o[a++],o[a++],o[a++]]):n?(e.push([o[a++],o[a++],r[2]]),a++):(e.push([o[a++],o[a++]]),a++);i.push(e)}return!0}const ae=(0,o.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2847],{25036:(t,e,n)=>{n.d(e,{j:()=>u});var r=n(31635),a=n(10107),o=(n(44208),n(53966),n(87811),n(40608));const u=t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],n),n}},38954:(t,e,n)=>{n.d(e,{A:()=>m,B:()=>h,C:()=>l,D:()=>f,E:()=>P,F:()=>O,H:()=>L,a:()=>R,b:()=>y,c:()=>u,d:()=>s,e:()=>C,f:()=>i,g:()=>g,h:()=>S,i:()=>c,j:()=>v,k:()=>b,l:()=>o,m:()=>$,n:()=>A,o:()=>_,q:()=>q,r:()=>w,s:()=>M,t:()=>F,u:()=>x,v:()=>E,w:()=>p,x:()=>z,y:()=>T,z:()=>d});var r=n(51850),a=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function i(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function h(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function d(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const n=e[0],r=e[1],a=e[2];let o=n*n+r*r+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){const r=e[0],a=e[1],o=e[2],u=n[0],c=n[1],i=n[2];return t[0]=a*i-o*c,t[1]=o*u-r*i,t[2]=r*c-a*u,t}function $(t,e,n,r){const a=e[0],o=e[1],u=e[2];return t[0]=a+r*(n[0]-a),t[1]=o+r*(n[1]-o),t[2]=u+r*(n[2]-u),t}function F(t,e,n){const r=e[0],a=e[1],o=e[2];return t[0]=n[0]*r+n[4]*a+n[8]*o+n[12],t[1]=n[1]*r+n[5]*a+n[9]*o+n[13],t[2]=n[2]*r+n[6]*a+n[10]*o+n[14],t}function _(t,e,n){const r=e[0],a=e[1],o=e[2];return t[0]=r*n[0]+a*n[3]+o*n[6],t[1]=r*n[1]+a*n[4]+o*n[7],t[2]=r*n[2]+a*n[5]+o*n[8],t}function E(t,e,n){const r=n[0],a=n[1],o=n[2],u=n[3],c=e[0],i=e[1],s=e[2],l=a*s-o*i,f=o*c-r*s,p=r*i-a*c,h=a*p-o*f,m=o*l-r*p,d=r*f-a*l,g=2*u;return t[0]=c+l*g+2*h,t[1]=i+f*g+2*m,t[2]=s+p*g+2*d,t}const j=(0,r.vt)(),k=(0,r.vt)();function q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function P(t,e,n){const r=n[0]-e[0],a=n[1]-e[1],o=n[2]-e[2];let u=r*r+a*a+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=a*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const R=s,Z=l,N=f,O=v,z=M,L=o,T=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:i,angle:function(t,e){A(j,t),A(k,e);const n=C(j,k);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,a,o){const u=1-o,c=u*u,i=o*o,s=c*u,l=3*o*c,f=3*i*u,p=i*o;return t[0]=e[0]*s+n[0]*l+r[0]*f+a[0]*p,t[1]=e[1]*s+n[1]*l+r[1]*f+a[1]*p,t[2]=e[2]*s+n[2]*l+r[2]*f+a[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:S,crossAndNormalize:function(t,e,n){const r=e[0],a=e[1],o=e[2],u=n[0],c=n[1],i=n[2],s=a*i-o*c,l=o*u-r*i,f=r*c-a*u,p=Math.sqrt(s*s+l*l+f*f);return t[0]=s/p,t[1]=l/p,t[2]=f/p,t},direction:P,dist:O,distance:v,div:N,divide:f,dot:C,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],u=e[0],c=e[1],i=e[2],s=(0,a.FD)();return Math.abs(n-u)<=s*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=s*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(o-i)<=s*Math.max(1,Math.abs(o),Math.abs(i))},exactEquals:q,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,a,o){const u=o*o,c=u*(2*o-3)+1,i=u*(o-2)+o,s=u*(o-1),l=u*(3-2*o);return t[0]=e[0]*c+n[0]*i+r[0]*s+a[0]*l,t[1]=e[1]*c+n[1]*i+r[1]*s+a[1]*l,t[2]=e[2]*c+n[2]*i+r[2]*s+a[2]*l,t},inverse:w,len:L,length:o,lerp:$,max:d,min:m,mul:Z,multiply:l,negate:x,normalize:A,random:function(t,e=1){const n=a.Ov,r=2*n()*Math.PI,o=2*n()-1,u=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*e,t},rotateX:function(t,e,n,r){const a=[],o=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],o[0]=a[0],o[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),o[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const a=[],o=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],o[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),o[1]=a[1],o[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const a=[],o=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],o[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),o[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),o[2]=a[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:c,sign:h,sqrDist:z,sqrLen:T,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:R,subtract:s,transformMat3:_,transformMat4:F,transformQuat:E},Symbol.toStringTag,{value:"Module"}))},56560:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(31635),a=n(69540),o=n(10107),u=(n(44208),n(53966),n(87811),n(40608)),c=n(86738);let i=class extends a.Pw{constructor(t){super(t),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,o.MZ)()],i.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,o.MZ)({type:c.A})],i.prototype,"mapPoint",void 0),i=(0,r.Cg)([(0,u.$)("esri.layers.support.ControlPoint")],i)},60999:(t,e,n)=>{n.d(e,{DZ:()=>m,Ke:()=>h,Tj:()=>l,UT:()=>d,jJ:()=>s});var r=n(31635),a=n(65008),o=n(97768),u=n(74887),c=n(10107),i=n(40608);function s(t,e,n){return(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))}async function l(t,e,n){return(await(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))).map(t=>t.value)}function f(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function h(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return f(await t)}catch(t){return p(t)}}async function m(t){try{return f(await t)}catch(t){return(0,u.QP)(t),p(t)}}function d(t,e){return new g(t,e)}let g=class extends a.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=t(n),this.promise.then(t=>{this._result=f(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,u.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,c.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,c.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,c.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,c.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,c.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,i.$)("esri.core.asyncUtils.ReactiveTask")],g)},63074:(t,e,n)=>{n.d(e,{LF:()=>l,dM:()=>f,sU:()=>i});var r=n(31635),a=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),u=n(89317),c=n(76369);const i={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:u.K}},"portal-item":{read:!0,write:{layerContainerTypes:u.K}}}}},s={read:{reader:c.LF},write:{allowNull:!0,writer:c.M9,layerContainerTypes:u.K}},l={json:{read:!1,write:!1,origins:{"web-map":s,"portal-item":s}}},f=t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,a.MZ)(i)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,a.MZ)(l)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.BlendLayer")],n),n}},76369:(t,e,n)=>{n.d(e,{LF:()=>w,M9:()=>A});var r=n(49186),a=n(93637),o=n(40876),u=n(59247),c=n(27865);class i extends SyntaxError{constructor(t,e,n,r){super(t),this.expected=e,this.found=n,this.location=r,this.name="SyntaxError"}format(t){let e="Error: "+this.message;if(this.location){let n=null;const r=t.find(t=>t.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const a=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,u=this.location.source+":"+o.line+":"+o.column;if(n){const t=this.location.end,r="".padEnd(o.line.toString().length," "),c=n[a.line-1],i=(a.line===t.line?t.column:c.length+1)-a.column||1;e+="\n --\x3e "+u+"\n"+r+" |\n"+o.line+" | "+c+"\n"+r+" | "+"".padEnd(a.column-1," ")+"".padEnd(i,"^")}else e+="\n at "+u}return e}static buildMessage(t,e){function n(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function a(t){return r?t.replace(r,t=>"\\u{"+n(t)+"}"):t}function o(t){return a(t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}function u(t){return a(t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}const c={literal:t=>'"'+o(t.text)+'"',class(t){const e=t.parts.map(t=>Array.isArray(t)?u(t[0])+"-"+u(t[1]):u(t));return"["+(t.inverted?"^":"")+e.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function i(t){return c[t.type](t)}return"Expected "+function(t){const e=t.map(i);if(e.sort(),e.length>0){let t=1;for(let n=1;n<e.length;n++)e[n-1]!==e[n]&&(e[t]=e[n],t++);e.length=t}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."}}function s(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=l(t);return e&&0!==e.length?e:null}const e=t.map(t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:l(t.value)}});e.sort((t,e)=>e.effects.length-t.effects.length);for(let t=0;t<e.length-1;t++){if(!(0,c.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,c.O9)(e[t].effects,e[t+1].effects)}return e.sort((t,e)=>e.scale-t.scale),e}function l(t){let e;if(!t)return[];try{e=function(t,e){const n={},r=(e=void 0!==e?e:{}).grammarSource,a={start:xt};let o=xt;const u="none",c=")",s=",",l="(",f="%",p="px",h="cm",m="mm",d="in",g="pt",y="pc",v="deg",M="rad",b="grad",x="turn",w="#",A=".",C="e",S=/^[ \t\n\r]/,$=/^[a-z\-]/,F=/^[0-9a-fA-F]/,_=/^[+\-]/,E=/^[0-9]/,j=yt("none"),k=dt("none",!1),q=dt(")",!1),P=dt(",",!1),R=gt([" ","\t","\n","\r"],!1,!1,!1),Z=yt("function"),N=dt("(",!1),O=yt("identifier"),z=gt([["a","z"],"-"],!1,!1,!1),L=yt("percentage"),T=dt("%",!1),D=yt("length"),I=dt("px",!1),H=dt("cm",!1),K=dt("mm",!1),U=dt("in",!1),B=dt("pt",!1),J=dt("pc",!1),Q=yt("angle"),V=dt("deg",!1),G=dt("rad",!1),X=dt("grad",!1),Y=dt("turn",!1),W=yt("number"),tt=yt("color"),et=dt("#",!1),nt=gt([["0","9"],["a","f"],["A","F"]],!1,!1,!1),rt=gt(["+","-"],!1,!1,!1),at=gt([["0","9"]],!1,!1,!1),ot=dt(".",!1),ut=dt("e",!1);let ct=0|e.peg$currPos,it=ct;const st=[{line:1,column:1}];let lt,ft=ct,pt=e.peg$maxFailExpected||[],ht=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in a))throw new Error("Can't start parsing from rule \""+e.startRule+'".');o=a[e.startRule]}function mt(){return t.substring(it,ct)}function dt(t,e){return{type:"literal",text:t,ignoreCase:e}}function gt(t,e,n,r){return{type:"class",parts:t,inverted:e,ignoreCase:n,unicode:r}}function yt(t){return{type:"other",description:t}}function vt(e){let n,r=st[e];if(r)return r;if(e>=st.length)n=st.length-1;else for(n=e;!st[--n];);for(r=st[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return st[e]=r,r}function Mt(t,e,n){const a=vt(t),o=vt(e);return{source:r,start:{offset:t,line:a.line,column:a.column},end:{offset:e,line:o.line,column:o.column}}}function bt(t){ct<ft||(ct>ft&&(ft=ct,pt=[]),pt.push(t))}function xt(){let t;return t=wt(),t===n&&(t=function(){let t,e;if(t=[],e=At(),e!==n)for(;e!==n;)t.push(e),e=At();else t=n;return t}()),t}function wt(){let e,r;return ht++,e=ct,St(),t.substr(ct,4)===u?(r=u,ct+=4):(r=n,0===ht&&bt(k)),r!==n?(St(),it=e,e=[]):(ct=e,e=n),ht--,e===n&&0===ht&&bt(j),e}function At(){let e,r,a,o;return e=ct,St(),r=function(){let e,r,a;return ht++,e=ct,r=$t(),r!==n?(40===t.charCodeAt(ct)?(a=l,ct++):(a=n,0===ht&&bt(N)),a!==n?(it=e,e=r):(ct=e,e=n)):(ct=e,e=n),ht--,e===n&&(r=n,0===ht&&bt(Z)),e}(),r!==n?(St(),a=function(){let e,r,a,o,u,c,i,l;if(e=ct,r=Ct(),r!==n){for(a=[],o=ct,u=St(),44===t.charCodeAt(ct)?(c=s,ct++):(c=n,0===ht&&bt(P)),c===n&&(c=null),i=St(),l=Ct(),l!==n?(u=[u,c,i,l],o=u):(ct=o,o=n);o!==n;)a.push(o),o=ct,u=St(),44===t.charCodeAt(ct)?(c=s,ct++):(c=n,0===ht&&bt(P)),c===n&&(c=null),i=St(),l=Ct(),l!==n?(u=[u,c,i,l],o=u):(ct=o,o=n);it=e,e=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map(function(t){return t[3]})}(e))}(t,e):[t]}(r,a)}else ct=e,e=n;return e}(),a===n&&(a=null),St(),41===t.charCodeAt(ct)?(o=c,ct++):(o=n,0===ht&&bt(q)),o!==n?(St(),it=e,e=function(t,e){return{type:"function",name:t,parameters:e||[]}}(r,a)):(ct=e,e=n)):(ct=e,e=n),e}function Ct(){let t,e;return t=ct,e=Ft(),e===n&&(e=_t(),e===n&&(e=Et(),e===n&&(e=function(){let t,e;return ht++,t=ct,St(),e=kt(),e!==n?(it=t,t=function(t){return{value:t,unit:null}}(e)):(ct=t,t=n),ht--,t===n&&0===ht&&bt(W),t}()))),e!==n&&(it=t,e=function(t){return{type:"quantity",value:t.value,unit:t.unit}}(e)),t=e,t===n&&(t=ct,e=jt(),e!==n&&(it=t,e=function(t){return{type:"color",colorType:t.type,value:t.value}}(e)),t=e),t}function St(){let e,r;for(ht++,e=[],r=t.charAt(ct),S.test(r)?ct++:(r=n,0===ht&&bt(R));r!==n;)e.push(r),r=t.charAt(ct),S.test(r)?ct++:(r=n,0===ht&&bt(R));return ht--,e}function $t(){let e,r,a;if(ht++,e=ct,r=[],a=t.charAt(ct),$.test(a)?ct++:(a=n,0===ht&&bt(z)),a!==n)for(;a!==n;)r.push(a),a=t.charAt(ct),$.test(a)?ct++:(a=n,0===ht&&bt(z));else r=n;return r!==n&&(it=e,r=mt()),e=r,ht--,e===n&&(r=n,0===ht&&bt(O)),e}function Ft(){let e,r,a;return ht++,e=ct,St(),r=kt(),r!==n?(37===t.charCodeAt(ct)?(a=f,ct++):(a=n,0===ht&&bt(T)),a!==n?(it=e,e=function(t){return{value:t,unit:"%"}}(r)):(ct=e,e=n)):(ct=e,e=n),ht--,e===n&&0===ht&&bt(L),e}function _t(){let e,r,a;return ht++,e=ct,St(),r=kt(),r!==n?(t.substr(ct,2)===p?(a=p,ct+=2):(a=n,0===ht&&bt(I)),a!==n?(it=e,e=function(t){return{value:t,unit:"px"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,St(),r=kt(),r!==n?(t.substr(ct,2)===h?(a=h,ct+=2):(a=n,0===ht&&bt(H)),a!==n?(it=e,e=function(t){return{value:t,unit:"cm"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,St(),r=kt(),r!==n?(t.substr(ct,2)===m?(a=m,ct+=2):(a=n,0===ht&&bt(K)),a!==n?(it=e,e=function(t){return{value:t,unit:"mm"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,St(),r=kt(),r!==n?(t.substr(ct,2)===d?(a=d,ct+=2):(a=n,0===ht&&bt(U)),a!==n?(it=e,e=function(t){return{value:t,unit:"in"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,St(),r=kt(),r!==n?(t.substr(ct,2)===g?(a=g,ct+=2):(a=n,0===ht&&bt(B)),a!==n?(it=e,e=function(t){return{value:t,unit:"pt"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,St(),r=kt(),r!==n?(t.substr(ct,2)===y?(a=y,ct+=2):(a=n,0===ht&&bt(J)),a!==n?(it=e,e=function(t){return{value:t,unit:"pc"}}(r)):(ct=e,e=n)):(ct=e,e=n)))))),ht--,e===n&&0===ht&&bt(D),e}function Et(){let e,r,a;return ht++,e=ct,r=kt(),r!==n?(t.substr(ct,3)===v?(a=v,ct+=3):(a=n,0===ht&&bt(V)),a!==n?(it=e,e=function(t){return{value:t,unit:"deg"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,r=kt(),r!==n?(t.substr(ct,3)===M?(a=M,ct+=3):(a=n,0===ht&&bt(G)),a!==n?(it=e,e=function(t){return{value:t,unit:"rad"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,r=kt(),r!==n?(t.substr(ct,4)===b?(a=b,ct+=4):(a=n,0===ht&&bt(X)),a!==n?(it=e,e=function(t){return{value:t,unit:"grad"}}(r)):(ct=e,e=n)):(ct=e,e=n),e===n&&(e=ct,r=kt(),r!==n?(t.substr(ct,4)===x?(a=x,ct+=4):(a=n,0===ht&&bt(Y)),a!==n?(it=e,e=function(t){return{value:t,unit:"turn"}}(r)):(ct=e,e=n)):(ct=e,e=n)))),ht--,e===n&&(r=n,0===ht&&bt(Q)),e}function jt(){let e,r,a,o;if(ht++,e=ct,35===t.charCodeAt(ct)?(r=w,ct++):(r=n,0===ht&&bt(et)),r!==n){if(a=[],o=t.charAt(ct),F.test(o)?ct++:(o=n,0===ht&&bt(nt)),o!==n)for(;o!==n;)a.push(o),o=t.charAt(ct),F.test(o)?ct++:(o=n,0===ht&&bt(nt));else a=n;a!==n?(it=e,e={type:"hex",value:mt()}):(ct=e,e=n)}else ct=e,e=n;return e===n&&(e=ct,r=At(),r!==n&&(it=e,r=function(t){return{type:"function",value:t}}(r)),e=r,e===n&&(e=ct,r=$t(),r!==n&&(it=e,r={type:"named",value:mt()}),e=r)),ht--,e===n&&(r=n,0===ht&&bt(tt)),e}function kt(){let e,r,a,o,u,c,i,s;for(e=ct,r=t.charAt(ct),_.test(r)?ct++:(r=n,0===ht&&bt(rt)),r===n&&(r=null),a=ct,o=[],u=t.charAt(ct),E.test(u)?ct++:(u=n,0===ht&&bt(at));u!==n;)o.push(u),u=t.charAt(ct),E.test(u)?ct++:(u=n,0===ht&&bt(at));if(46===t.charCodeAt(ct)?(u=A,ct++):(u=n,0===ht&&bt(ot)),u!==n){if(c=[],i=t.charAt(ct),E.test(i)?ct++:(i=n,0===ht&&bt(at)),i!==n)for(;i!==n;)c.push(i),i=t.charAt(ct),E.test(i)?ct++:(i=n,0===ht&&bt(at));else c=n;c!==n?(o=[o,u,c],a=o):(ct=a,a=n)}else ct=a,a=n;if(a===n)if(a=[],o=t.charAt(ct),E.test(o)?ct++:(o=n,0===ht&&bt(at)),o!==n)for(;o!==n;)a.push(o),o=t.charAt(ct),E.test(o)?ct++:(o=n,0===ht&&bt(at));else a=n;if(a!==n){if(o=ct,101===t.charCodeAt(ct)?(u=C,ct++):(u=n,0===ht&&bt(ut)),u!==n){if(c=t.charAt(ct),_.test(c)?ct++:(c=n,0===ht&&bt(rt)),c===n&&(c=null),i=[],s=t.charAt(ct),E.test(s)?ct++:(s=n,0===ht&&bt(at)),s!==n)for(;s!==n;)i.push(s),s=t.charAt(ct),E.test(s)?ct++:(s=n,0===ht&&bt(at));else i=n;i!==n?(u=[u,c,i],o=u):(ct=o,o=n)}else ct=o,o=n;o===n&&(o=null),it=e,e=parseFloat(mt())}else ct=e,e=n;return e}lt=o();const qt=lt!==n&&ct===t.length;function Pt(){throw lt!==n&&ct<t.length&&bt({type:"end"}),function(t,e,n){return new i(i.buildMessage(t,e),t,e,n)}(pt,ft<t.length?function(e=ct){const n=t.codePointAt(e);return void 0===n?"":String.fromCodePoint(n)}(ft):null,ft<t.length?Mt(ft,ft+1):Mt(ft,ft))}return e.peg$library?{peg$result:lt,peg$currPos:ct,peg$FAILED:n,peg$maxFailExpected:pt,peg$maxFailPos:ft,peg$success:qt,peg$throw:qt?void 0:Pt}:qt?lt:void Pt()}(t)}catch(e){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map(t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(t)}`,{term:t})}(t),t.value*m[t.unit]||0}(t.parameters[0])),new u.Nd(e)}(t);case"blur":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=y(t.parameters[0]),h(e,t.parameters[0])),new u.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const a of t.parameters)if("color"===a.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(a)}else{const t=y(a);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&h(t,a)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new u.$b(e[0],e[1],e[2]||0,n||M("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return f(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=y(t.parameters[1]),h(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new u.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t))}function f(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function p(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in d)return"<length>";if(t.unit in m)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function h(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},d={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(t)}`,{term:t})}(t);const e=t.value;return h(e,t),"%"===t.unit?.01*e:e}function y(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=d[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(t)}`,{term:t})}(t),t.value*d[t.unit]||0}function v(t){switch(t.colorType){case"hex":return(0,o.j5)(t.value);case"named":return M(t.value);case"function":return function(t){if(f(t.parameters,4),b.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(x.test(t.name))return(0,o.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(t)}`,{term:t})}(t),h(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function M(t){if(!(0,o.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,o.c4)(t)}const b=/^rgba?/i,x=/^hsla?/i;function w(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:C(n.value)});return e}return C(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=s(t);return e?(0,c.dw)(e)?e.map(t=>t.toJSON()):e.map(({scale:t,effects:e})=>({scale:t,value:e.map(t=>t.toJSON())})):null}(t);(0,a.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function C(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[S(n,"amount")];break;case"blur":t=[S(n,"radius","pt")];break;case"hue-rotate":t=[S(n,"angle","deg")];break;case"drop-shadow":t=[S(n,"xoffset","pt"),S(n,"yoffset","pt"),S(n,"blurRadius","pt"),$(n,"color")];break;case"bloom":t=[S(n,"strength"),S(n,"radius","pt"),S(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;s(r),e.push(r)}return e.join(" ")}function S(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function $(t,e){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},78553:(t,e,n)=>{n.d(e,{D:()=>o,p:()=>a});var r=n(56507);function a(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7091],{37091:(e,r,t)=>{t.r(r),t.d(r,{GeographicTransformation:()=>a.G,create:()=>a.z,createFromPe:()=>a.A,createFromWKT:()=>a.B});var a=t(39117);t(83661),t(55537)}}]);