@arcgis/core 5.2.0-next.80 → 5.2.0-next.82

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 (495) hide show
  1. package/applications/Components/imageryUtils.d.ts +5 -3
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/004966b5bf60a8a80b8c.js +1 -0
  4. package/assets/esri/core/workers/chunks/027af54888befb209aaa.js +1 -0
  5. package/assets/esri/core/workers/chunks/03cf74b2e488eb144ad5.js +1 -0
  6. package/assets/esri/core/workers/chunks/{913fb883455aeac8582b.js → 04f5ff688785a4bd3b03.js} +1 -1
  7. package/assets/esri/core/workers/chunks/055802283f7e01ee87fb.js +1 -0
  8. package/assets/esri/core/workers/chunks/06df9ce870360cda06c7.js +1 -0
  9. package/assets/esri/core/workers/chunks/{08ec5461af74356e7570.js → 075eb62465edb9cbf907.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{5fe9eea35ddb428efd8b.js → 0b26c01a1190e8fd63fb.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{24729603dcdbd95fd01e.js → 0d982abff7c9496f7890.js} +1 -1
  12. package/assets/esri/core/workers/chunks/0fd7590e545864f5fff4.js +1 -0
  13. package/assets/esri/core/workers/chunks/{b9d1bb106737a05290e1.js → 104d74bc36c28c519396.js} +1 -1
  14. package/assets/esri/core/workers/chunks/10ac92dcd3738ec23dfb.js +1 -0
  15. package/assets/esri/core/workers/chunks/11d911f70bf0ca252c19.js +1 -0
  16. package/assets/esri/core/workers/chunks/1352b5c6767e5421bc02.js +1 -0
  17. package/assets/esri/core/workers/chunks/1354b8442c2c501238f1.js +1 -0
  18. package/assets/esri/core/workers/chunks/1438f571f738e83b4d1c.js +1 -0
  19. package/assets/esri/core/workers/chunks/14469f664fd5ede469fc.js +1 -0
  20. package/assets/esri/core/workers/chunks/14511c92cbbc26d80c86.js +1 -0
  21. package/assets/esri/core/workers/chunks/14be79c4cc6137c7db95.js +1 -0
  22. package/assets/esri/core/workers/chunks/{ef47a5da641cb0d33fdf.js → 197a6d561f77ac74283a.js} +1 -1
  23. package/assets/esri/core/workers/chunks/19dac19122eeeb5e36b2.js +1 -0
  24. package/assets/esri/core/workers/chunks/{e4e5a171a4874c5af4a4.js → 1a7d2912c8eac8c83c70.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{b9c61b20bbc91cb63036.js → 1c3861297f65ee1ca5d0.js} +1 -1
  26. package/assets/esri/core/workers/chunks/1d1cfe0bee506d34268e.js +1 -0
  27. package/assets/esri/core/workers/chunks/20db27d9828397d0b37a.js +1 -0
  28. package/assets/esri/core/workers/chunks/2161cf64601f28bbe72d.js +1 -0
  29. package/assets/esri/core/workers/chunks/218ddad849745d652a28.js +1 -0
  30. package/assets/esri/core/workers/chunks/{5b70295da76d9227f64b.js → 22c477147421e68f7f00.js} +1 -1
  31. package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +1 -0
  32. package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +1 -0
  33. package/assets/esri/core/workers/chunks/25f6d5604a7959afd5a5.js +1 -0
  34. package/assets/esri/core/workers/chunks/26c12804a0d801df29bf.js +1 -0
  35. package/assets/esri/core/workers/chunks/{67ebde34377f98d17cda.js → 26c8ed0aef59ed6d5267.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{c1e5ffe9a251be5a0744.js → 278760d194203dd27fc3.js} +1 -1
  37. package/assets/esri/core/workers/chunks/28b576663ed4570ec825.js +1 -0
  38. package/assets/esri/core/workers/chunks/{841c81c280114412c95b.js → 2a4c91b006de1ceba539.js} +1 -1
  39. package/assets/esri/core/workers/chunks/2b299aec2a758bcd9731.js +1 -0
  40. package/assets/esri/core/workers/chunks/2d1c0d80a9843567df8d.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b084829a3fd709dc47a8.js → 2d683ac4a993ec5fd6f6.js} +1 -1
  42. package/assets/esri/core/workers/chunks/2d6e1bf7c1981bed4357.js +1 -0
  43. package/assets/esri/core/workers/chunks/{a8ec5b85c2fa6fb4f391.js → 30b40ee875d46e6fde02.js} +1 -1
  44. package/assets/esri/core/workers/chunks/31b3744f71750e512d4e.js +1 -0
  45. package/assets/esri/core/workers/chunks/3239c7994019f15e261d.js +1 -0
  46. package/assets/esri/core/workers/chunks/{d520d407043bc52e5410.js → 3336ad383c184dd07bb3.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{c29df43817278f674707.js → 33aaa5a49e396a0aca47.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{7529c0fcfb83998e63db.js → 34f6093d2c00e3584037.js} +1 -1
  49. package/assets/esri/core/workers/chunks/36265e5f6d396eadf0be.js +1 -0
  50. package/assets/esri/core/workers/chunks/{0ae0483b72f5e8d00d55.js → 3715d6b295016eeb5031.js} +1 -1
  51. package/assets/esri/core/workers/chunks/3851ebf3548e2763b24f.js +1 -0
  52. package/assets/esri/core/workers/chunks/3a4b117af89dab5153eb.js +1 -0
  53. package/assets/esri/core/workers/chunks/3a9ef47122e10cecd3a4.js +1 -0
  54. package/assets/esri/core/workers/chunks/3f0625c31dd46b563160.js +1 -0
  55. package/assets/esri/core/workers/chunks/40b842d055b87e442156.js +1 -0
  56. package/assets/esri/core/workers/chunks/{c37b28f200b704ae6002.js → 4239d64f067417e0643c.js} +1 -1
  57. package/assets/esri/core/workers/chunks/43122c435497228a7583.js +1 -0
  58. package/assets/esri/core/workers/chunks/44d13f65465646e5f6e9.js +1 -0
  59. package/assets/esri/core/workers/chunks/463b7952a4825541eb13.js +1 -0
  60. package/assets/esri/core/workers/chunks/{345510a95e893fa8040a.js → 469e72ab6cd44272f474.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{bd88228f781a0399d8bd.js → 49e37f653b81f9e4f7cc.js} +1 -1
  62. package/assets/esri/core/workers/chunks/4c5200e22b8a723f53f9.js +1 -0
  63. package/assets/esri/core/workers/chunks/4cf2c33494cb75942511.js +1 -0
  64. package/assets/esri/core/workers/chunks/{2bcb7e43578124538c3c.js → 4d672110aee304692f60.js} +1 -1
  65. package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +1 -0
  66. package/assets/esri/core/workers/chunks/50e6e43ea98cb0d05d91.js +1 -0
  67. package/assets/esri/core/workers/chunks/{8e374ce47256a567ae11.js → 519745cf844c76452a46.js} +1 -1
  68. package/assets/esri/core/workers/chunks/52042fd36f4a572938f0.js +1 -0
  69. package/assets/esri/core/workers/chunks/{3b14ed3184743df336a6.js → 53d80202b5f43542d45b.js} +1 -1
  70. package/assets/esri/core/workers/chunks/54524cc4328f31d8c25d.js +1 -0
  71. package/assets/esri/core/workers/chunks/5515005e8893bd551aaf.js +1 -0
  72. package/assets/esri/core/workers/chunks/563a4d6788ad66b676e4.js +1 -0
  73. package/assets/esri/core/workers/chunks/{eee1fd629619021ea279.js → 56a6c7abfb4d88ea1bb5.js} +1 -1
  74. package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +1 -0
  75. package/assets/esri/core/workers/chunks/598221c7054415b84904.js +1 -0
  76. package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +1 -0
  77. package/assets/esri/core/workers/chunks/{38660a8cc3623c854d88.js → 5a006ff759fad9fc25cb.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{087bd698b80ca0cea71e.js → 5aadfd11df6618883c5d.js} +1 -1
  79. package/assets/esri/core/workers/chunks/5b60fc95757b2a53558a.js +1 -0
  80. package/assets/esri/core/workers/chunks/5c634b3e6dc76299b1df.js +1 -0
  81. package/assets/esri/core/workers/chunks/5d30accf1dcda0c70f95.js +1 -0
  82. package/assets/esri/core/workers/chunks/605da92d28e067f4a4c6.js +1 -0
  83. package/assets/esri/core/workers/chunks/61f230e50787abbfc8ba.js +1 -0
  84. package/assets/esri/core/workers/chunks/6270acb7545be2c5126f.js +1 -0
  85. package/assets/esri/core/workers/chunks/{f3bbebedad51f776bb98.js → 62992c3d98c20f611b7b.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{ac87be2210f868524996.js → 629f60ee49e0dcfb7165.js} +1 -1
  87. package/assets/esri/core/workers/chunks/645d5db85f84b1f19b59.js +1 -0
  88. package/assets/esri/core/workers/chunks/{1f888f026b004447772c.js → 657528eb6a3d3b3cb631.js} +1 -1
  89. package/assets/esri/core/workers/chunks/66292e98b4111ea3658d.js +1 -0
  90. package/assets/esri/core/workers/chunks/680496660b2aaa710099.js +1 -0
  91. package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js → 6c389e9646a48c26da20.js} +2 -2
  92. package/assets/esri/core/workers/chunks/{2d1ae18a28491b00091d.js → 6db4a4f9a9ce7cc738d0.js} +1 -1
  93. package/assets/esri/core/workers/chunks/6eb28086dc28f6d144ec.js +1 -0
  94. package/assets/esri/core/workers/chunks/{702b2381acf4d1f90094.js → 6f08c8a1e8e3ffd0a96a.js} +1 -1
  95. package/assets/esri/core/workers/chunks/6f4ee60e89d154e7b1c4.js +1 -0
  96. package/assets/esri/core/workers/chunks/7230d74ef720431cc75e.js +1 -0
  97. package/assets/esri/core/workers/chunks/73a8a3baf0fed803ef4f.js +1 -0
  98. package/assets/esri/core/workers/chunks/{4d7a3b3aaf876da0891b.js → 76e6d894c33221369895.js} +1 -1
  99. package/assets/esri/core/workers/chunks/7833a82d5bac2aed565e.js +1 -0
  100. package/assets/esri/core/workers/chunks/7a05f5b0848dd11d2f4f.js +1 -0
  101. package/assets/esri/core/workers/chunks/{4c82f5f23004f905a18f.js → 7b605ed92e65083da35f.js} +1 -1
  102. package/assets/esri/core/workers/chunks/7bd8ebb321ecf1f06496.js +1 -0
  103. package/assets/esri/core/workers/chunks/7d5877eede2f552dea9f.js +1 -0
  104. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
  105. package/assets/esri/core/workers/chunks/809349086117f199b7a5.js +1 -0
  106. package/assets/esri/core/workers/chunks/82e62a54b350e7a325f7.js +1 -0
  107. package/assets/esri/core/workers/chunks/836c458a7eb96391cfda.js +1 -0
  108. package/assets/esri/core/workers/chunks/83a77d3f45c8c21cec45.js +1 -0
  109. package/assets/esri/core/workers/chunks/851a5a0262dc8dcb67eb.js +1 -0
  110. package/assets/esri/core/workers/chunks/865f9adc591056458b6b.js +1 -0
  111. package/assets/esri/core/workers/chunks/88771a75adcbd54c4fac.js +1 -0
  112. package/assets/esri/core/workers/chunks/8c6a60d96c73982febd2.js +1 -0
  113. package/assets/esri/core/workers/chunks/{619aa1381296172ff47b.js → 8e19b2ce9868a9a08da0.js} +1 -1
  114. package/assets/esri/core/workers/chunks/8ea28a4b1afe8bb2d313.js +1 -0
  115. package/assets/esri/core/workers/chunks/911f3a1b8dd4bc5c9782.js +1 -0
  116. package/assets/esri/core/workers/chunks/{40693ee558a1eb1e93f4.js → 918577ea025f67ebe372.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{fe71a0604f0928113419.js → 958e161634b5bfd50625.js} +1 -1
  118. package/assets/esri/core/workers/chunks/95ff342e5c29bf91a765.js +1 -0
  119. package/assets/esri/core/workers/chunks/97162bbbedb02e42d0b8.js +1 -0
  120. package/assets/esri/core/workers/chunks/{680dd7b7638465eb33de.js → 98739b6e7904045edbab.js} +1 -1
  121. package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +1 -0
  122. package/assets/esri/core/workers/chunks/9aa41d098eeda01ded3a.js +1 -0
  123. package/assets/esri/core/workers/chunks/{315031323e11a18154e3.js → 9c04233d18a9585b5bfe.js} +1 -1
  124. package/assets/esri/core/workers/chunks/9c7afe90495766bba37f.js +1 -0
  125. package/assets/esri/core/workers/chunks/{69b9a327f23e052fced7.js → 9d5d7289a9e23efc7f73.js} +1 -1
  126. package/assets/esri/core/workers/chunks/9e49a6ce4a133476092f.js +1 -0
  127. package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +1 -0
  128. package/assets/esri/core/workers/chunks/a1bf2111fee455b16e6a.js +29 -0
  129. package/assets/esri/core/workers/chunks/{910c93bbbf8113a4a51f.js → a2a231a671ff578b7b01.js} +1 -1
  130. package/assets/esri/core/workers/chunks/a2fd945659ce052f99d2.js +1 -0
  131. package/assets/esri/core/workers/chunks/{16929524565a677db4dc.js → a406a41a2f117247f1ef.js} +1 -1
  132. package/assets/esri/core/workers/chunks/a4b63162615a485b08dc.js +1 -0
  133. package/assets/esri/core/workers/chunks/a9a1061cdf82b372835f.js +1 -0
  134. package/assets/esri/core/workers/chunks/ab10388dcc17a665ac3b.js +2 -0
  135. package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +2 -0
  136. package/assets/esri/core/workers/chunks/af88f8dd1a53e4740aa6.js +1 -0
  137. package/assets/esri/core/workers/chunks/{2b3f76e03b7a28fc4453.js → b09e9ac5fd928e69b053.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{6c982779d6d47ec99899.js → b0a9a770b735440846cd.js} +1 -1
  139. package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +1 -0
  140. package/assets/esri/core/workers/chunks/b3034fbcbe77ef9e7c20.js +1 -0
  141. package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +1 -0
  142. package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +1 -0
  143. package/assets/esri/core/workers/chunks/b7bcc2d0b0fa8e703c83.js +1 -0
  144. package/assets/esri/core/workers/chunks/{75fc0b1db8e2e3fd2458.js → b8548eb7680abeaf3cd1.js} +1 -1
  145. package/assets/esri/core/workers/chunks/b9db8d059c2ea39518e7.js +1 -0
  146. package/assets/esri/core/workers/chunks/ba67aaa08e4f11e1140a.js +1 -0
  147. package/assets/esri/core/workers/chunks/ba8777844fef6ed3ac2b.js +1 -0
  148. package/assets/esri/core/workers/chunks/ba99a650ea64f5024185.js +1 -0
  149. package/assets/esri/core/workers/chunks/{e421dee5d8b030e79ffb.js → bbeb61d9302323bae9fb.js} +1 -1
  150. package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +1 -0
  151. package/assets/esri/core/workers/chunks/{cada52d719c35d40958a.js → bd1c870694edd25bf8aa.js} +1 -1
  152. package/assets/esri/core/workers/chunks/c1f125594e684c1b4ffc.js +1 -0
  153. package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +1 -0
  154. package/assets/esri/core/workers/chunks/c456abf5ee2a1ad5cc5b.js +1 -0
  155. package/assets/esri/core/workers/chunks/c61e94806b37ca3dd549.js +2 -0
  156. package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +1 -0
  157. package/assets/esri/core/workers/chunks/c899457f19b749516275.js +1 -0
  158. package/assets/esri/core/workers/chunks/c8d83f71326222b98608.js +1 -0
  159. package/assets/esri/core/workers/chunks/c9653a15324ca53d50e7.js +1 -0
  160. package/assets/esri/core/workers/chunks/{9937920e7993814d0b2c.js → ca695ab000a1e8765d69.js} +1 -1
  161. package/assets/esri/core/workers/chunks/cc1a00694cc9f7c606d6.js +1 -0
  162. package/assets/esri/core/workers/chunks/{b792857a178da2dd77d6.js → cc419e1c5c1dee7ec972.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{2ce845c990bb4d701362.js → cc817c9d3f8e8f8c56e4.js} +1 -1
  164. package/assets/esri/core/workers/chunks/cdd4aeaa3f30bc4ea93a.js +1 -0
  165. package/assets/esri/core/workers/chunks/cf6799fd008d0d7016f7.js +1 -0
  166. package/assets/esri/core/workers/chunks/cfcb258b7e464f219434.js +1 -0
  167. package/assets/esri/core/workers/chunks/d0c8630177d3a4e316f1.js +2 -0
  168. package/assets/esri/core/workers/chunks/{ac59218847e5ef4c4160.js → d0e00f0bb7b9435e170d.js} +1 -1
  169. package/assets/esri/core/workers/chunks/{33e293836f5d28dc5d62.js → d13eeff678972a245d5d.js} +1 -1
  170. package/assets/esri/core/workers/chunks/d1aa87d846a884492b47.js +1 -0
  171. package/assets/esri/core/workers/chunks/{0179949495c87466b428.js → d3a183d90f1ccc8da2bb.js} +10 -10
  172. package/assets/esri/core/workers/chunks/d433bfa2abf2ca8239ba.js +1 -0
  173. package/assets/esri/core/workers/chunks/d4cc8eef64b8c84217a5.js +1 -0
  174. package/assets/esri/core/workers/chunks/{2740f755c3a322cbd477.js → d672c2a1c8eddd235171.js} +1 -1
  175. package/assets/esri/core/workers/chunks/{24006cea112d657f053a.js → da233362b06b6db375f1.js} +1 -1
  176. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
  177. package/assets/esri/core/workers/chunks/dbc36b85413fae52b56d.js +1 -0
  178. package/assets/esri/core/workers/chunks/dd91824692bec809909c.js +1 -0
  179. package/assets/esri/core/workers/chunks/dd9af4ddefa0b998aa4b.js +1 -0
  180. package/assets/esri/core/workers/chunks/e2ceddd6bcdabec77cc7.js +1 -0
  181. package/assets/esri/core/workers/chunks/e3eab61815ef1c521a6c.js +1 -0
  182. package/assets/esri/core/workers/chunks/e706c37b44e98fbcb5f7.js +1 -0
  183. package/assets/esri/core/workers/chunks/ead4143d811aab610e00.js +2 -0
  184. package/assets/esri/core/workers/chunks/ef269dd559c1c79957e5.js +1 -0
  185. package/assets/esri/core/workers/chunks/efaa455beeefbf97a4c5.js +1 -0
  186. package/assets/esri/core/workers/chunks/f0692e10af5983f6ad93.js +1 -0
  187. package/assets/esri/core/workers/chunks/f16b6cd6b325eb600e82.js +1 -0
  188. package/assets/esri/core/workers/chunks/f1d0208c6b09c1c4b248.js +1 -0
  189. package/assets/esri/core/workers/chunks/f1fa377e8fa53b02876f.js +1 -0
  190. package/assets/esri/core/workers/chunks/{ebb722118a220c92efc3.js → f248131df4eaa5291623.js} +1 -1
  191. package/assets/esri/core/workers/chunks/f762f0f6c83748d8e328.js +1 -0
  192. package/assets/esri/core/workers/chunks/{b9bdb1f05e904c3655e4.js → f834aa732c3f06525089.js} +1 -1
  193. package/assets/esri/core/workers/chunks/{fb12d3c63fcac8391e06.js → fa29b5064d6626cfc019.js} +1 -1
  194. package/assets/esri/core/workers/chunks/fa7a6906598d1002abfd.js +1 -0
  195. package/assets/esri/core/workers/chunks/{e9e4b27ba06a29e6340c.js → faf14281a74a06fa1f30.js} +1 -1
  196. package/assets/esri/core/workers/chunks/fb86b334bfca4670dcfa.js +1 -0
  197. package/assets/esri/core/workers/chunks/{1ef28d4457c8c943ad19.js → fbede01a363895b6381f.js} +1 -1
  198. package/assets/esri/core/workers/chunks/{073f1d5f89875c6aefb1.js → fc1aeea22f8c9d63864a.js} +1 -1
  199. package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +1 -0
  200. package/assets/esri/core/workers/chunks/{9230ad807020fc2bbf8e.js → fe06cc2f90b2d551e4c1.js} +1 -1
  201. package/assets/esri/core/workers/chunks/{8a3289e15e0ce92e3813.js → fe335441ea233cb0fad5.js} +1 -1
  202. package/assets/esri/core/workers/chunks/{d7b6985984071e78c764.js → ffad5fd9c5e98f4fe2c3.js} +1 -1
  203. package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +1 -0
  204. package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
  205. package/chunks/Bufferer-CclWhXVb.js +1 -1
  206. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  207. package/chunks/EmissionComposite.glsl.js +7 -1
  208. package/chunks/Envelope.js +1 -1
  209. package/chunks/GaussianSplat.glsl.js +8 -8
  210. package/chunks/GaussianSplatDepth.glsl.js +4 -4
  211. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  212. package/chunks/GeodeticUtils.js +1 -1
  213. package/chunks/GeographicTransformation.js +2 -0
  214. package/chunks/Geometry.js +1 -1
  215. package/chunks/MultiPathImpl.js +1 -1
  216. package/chunks/OperatorCrosses.js +1 -1
  217. package/chunks/OperatorCut.js +1 -1
  218. package/chunks/OperatorGeodesicBuffer.js +1 -1
  219. package/chunks/OperatorGeodeticArea.js +1 -1
  220. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  221. package/chunks/OperatorGeodeticLength.js +1 -1
  222. package/chunks/OperatorGraphicBuffer.js +1 -1
  223. package/chunks/OperatorIntegrate.js +1 -1
  224. package/chunks/OperatorIntersects.js +1 -1
  225. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  226. package/chunks/OperatorOverlaps.js +1 -1
  227. package/chunks/OperatorProject.js +1 -1
  228. package/chunks/OperatorProximity.js +1 -1
  229. package/chunks/OperatorProximityGeodesic.js +1 -1
  230. package/chunks/OperatorShapePreservingLength.js +1 -1
  231. package/chunks/OperatorShapePreservingProject.js +1 -1
  232. package/chunks/OperatorSimplifyOGC.js +1 -1
  233. package/chunks/OperatorTouches.js +1 -1
  234. package/chunks/OperatorWithin.js +1 -1
  235. package/chunks/Point2D.js +1 -1
  236. package/chunks/ProjectionTransformation.js +1 -1
  237. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  238. package/chunks/SpatialReference.js +1 -1
  239. package/chunks/UnitFactory.js +2 -0
  240. package/chunks/containsOperator.js +1 -1
  241. package/chunks/disjointOperator.js +1 -1
  242. package/chunks/equalsOperator.js +1 -1
  243. package/chunks/pe-wasm.js +1 -1
  244. package/chunks/relateOperator.js +1 -1
  245. package/config.js +1 -1
  246. package/geometry/operators/containsOperator.js +1 -1
  247. package/geometry/operators/disjointOperator.js +1 -1
  248. package/geometry/operators/gx/geodeticUtils.js +1 -1
  249. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  250. package/geometry/operators/gx/operatorBuffer.js +1 -1
  251. package/geometry/operators/gx/operatorDifference.js +1 -1
  252. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  253. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  254. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  255. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  256. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  257. package/geometry/operators/gx/operatorIntersection.js +1 -1
  258. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  259. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  260. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  261. package/geometry/operators/gx/operatorProject.js +1 -1
  262. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  263. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  264. package/geometry/operators/gx/operatorSimplify.js +1 -1
  265. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  266. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  267. package/geometry/operators/gx/operatorUnion.js +1 -1
  268. package/geometry/operators/json/containsOperator.js +1 -1
  269. package/geometry/operators/json/disjointOperator.js +1 -1
  270. package/geometry/operators/projectOperator.js +1 -1
  271. package/geometry/operators/reshapeOperator.js +1 -1
  272. package/geometry/operators/support/GeographicTransformation.d.ts +7 -0
  273. package/geometry/operators/support/GeographicTransformation.js +1 -1
  274. package/geometry/operators/support/GeographicTransformationStep.d.ts +7 -1
  275. package/geometry/operators/support/GeographicTransformationStep.js +1 -1
  276. package/geometry/operators/support/geographicTransformationUtils.d.ts +13 -2
  277. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  278. package/geometry/operators/support/initNoPeFactory.js +1 -1
  279. package/geometry/operators/support/jsonConverter.js +1 -1
  280. package/geometry/operators/support/projectionTransformation.js +1 -1
  281. package/geometry/projection/projectionUtilsState.js +2 -0
  282. package/geometry/projectionUtils.js +1 -1
  283. package/geometry/support/geometryUtils.js +1 -1
  284. package/kernel.js +1 -1
  285. package/layers/raster/datasets/MRFRaster.js +1 -1
  286. package/layers/raster/formats/JpgPlus.js +1 -1
  287. package/layers/raster/formats/RasterCodec.js +1 -1
  288. package/layers/raster/types.d.ts +65 -0
  289. package/layers/support/AggregateField.d.ts +9 -3
  290. package/layers/support/FeatureReductionCluster.d.ts +16 -6
  291. package/layers/support/I3SExtractChanges.js +2 -0
  292. package/package.json +3 -3
  293. package/renderers/support/AuthoringInfo.d.ts +8 -3
  294. package/support/revision.js +1 -1
  295. package/symbols/cim/cimAnalyzer.js +1 -1
  296. package/symbols/cim/effects/EffectRadial.js +1 -1
  297. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  298. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  299. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
  300. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  301. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  302. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  303. package/views/2d/layers/MediaLayerView2D.js +1 -1
  304. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  305. package/views/3d/GroundView3D.js +1 -1
  306. package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +1 -1
  307. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  308. package/views/3d/analysis/LineOfSight/LineOfSightInteractionVisuals.js +1 -1
  309. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  310. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  311. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  312. package/views/3d/layers/I3SMeshView3D.js +1 -1
  313. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  314. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  315. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  316. package/views/3d/layers/SceneLayerView3D.js +1 -1
  317. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  318. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  319. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  320. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  321. package/views/3d/state/controllers/RotateController.js +1 -1
  322. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  323. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  324. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  325. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  326. package/views/3d/support/PBFDecoder.js +1 -1
  327. package/views/3d/support/QualityProfile.js +1 -1
  328. package/views/3d/support/QualitySettings.js +1 -1
  329. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  330. package/views/3d/terrain/PlanarPatch.js +1 -1
  331. package/views/3d/terrain/Tile.js +1 -1
  332. package/views/3d/webgl-engine/Stage.js +1 -1
  333. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  334. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  335. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  336. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  337. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  338. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  339. package/views/3d/webgl-engine/shaders/GaussianSplatDepthPolicy.js +1 -1
  340. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +50 -22
  341. package/views/MapView.d.ts +0 -60
  342. package/views/View2D.d.ts +59 -1
  343. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  344. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  345. package/views/support/GroundElevationSampler.js +1 -1
  346. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  347. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  348. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  349. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  350. package/widgets/Legend/support/utils.js +1 -1
  351. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  352. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  353. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  354. package/widgets/OrientedImageryViewer.js +1 -1
  355. package/assets/esri/core/workers/chunks/04105d83556409489835.js +0 -1
  356. package/assets/esri/core/workers/chunks/05b6b2c0b76afb100e33.js +0 -1
  357. package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +0 -1
  358. package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +0 -1
  359. package/assets/esri/core/workers/chunks/0b18de5147d76b68896f.js +0 -1
  360. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +0 -1
  361. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +0 -1
  362. package/assets/esri/core/workers/chunks/0da5b27b070ab780f8b3.js +0 -1
  363. package/assets/esri/core/workers/chunks/0e333aced8b23aa49a0e.js +0 -1
  364. package/assets/esri/core/workers/chunks/0eaa8265a4cd64297545.js +0 -1
  365. package/assets/esri/core/workers/chunks/1142f8e9c80207d6bdae.js +0 -1
  366. package/assets/esri/core/workers/chunks/118ccfa2d685764752ee.js +0 -1
  367. package/assets/esri/core/workers/chunks/12a64eca4c571926d9d4.js +0 -1
  368. package/assets/esri/core/workers/chunks/1642fa1263d8f4a45101.js +0 -1
  369. package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +0 -1
  370. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +0 -1
  371. package/assets/esri/core/workers/chunks/19233d0016e5b154c5ce.js +0 -1
  372. package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +0 -1
  373. package/assets/esri/core/workers/chunks/1ac8a7a129ba33e05a24.js +0 -1
  374. package/assets/esri/core/workers/chunks/1d92d53186debd52e753.js +0 -1
  375. package/assets/esri/core/workers/chunks/1dba93abe84d30f05d8d.js +0 -1
  376. package/assets/esri/core/workers/chunks/2033e6d42453e4e67048.js +0 -1
  377. package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +0 -1
  378. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +0 -1
  379. package/assets/esri/core/workers/chunks/253c231b5a52f1d2d3a5.js +0 -1
  380. package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +0 -1
  381. package/assets/esri/core/workers/chunks/28924f31f5ba8ebdc60a.js +0 -1
  382. package/assets/esri/core/workers/chunks/28b09fe50b855a1d8a3f.js +0 -1
  383. package/assets/esri/core/workers/chunks/2b0558c1716425974563.js +0 -2
  384. package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +0 -1
  385. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +0 -1
  386. package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +0 -1
  387. package/assets/esri/core/workers/chunks/3958d92c737b3a2a3bc2.js +0 -1
  388. package/assets/esri/core/workers/chunks/3978f00a03e97645b276.js +0 -1
  389. package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +0 -1
  390. package/assets/esri/core/workers/chunks/40e48b720d89cd067892.js +0 -1
  391. package/assets/esri/core/workers/chunks/436d51b9f1b1b5abc4bc.js +0 -1
  392. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +0 -1
  393. package/assets/esri/core/workers/chunks/463747a822499dd933ef.js +0 -1
  394. package/assets/esri/core/workers/chunks/484b251fbcbffcb58323.js +0 -1
  395. package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +0 -1
  396. package/assets/esri/core/workers/chunks/49a3888bf9e2481642ac.js +0 -1
  397. package/assets/esri/core/workers/chunks/4ce57dd39075e8fb357c.js +0 -1
  398. package/assets/esri/core/workers/chunks/5459ba8fdeb2370bb52b.js +0 -1
  399. package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +0 -1
  400. package/assets/esri/core/workers/chunks/55dda957c79fb285185f.js +0 -1
  401. package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +0 -1
  402. package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +0 -1
  403. package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +0 -1
  404. package/assets/esri/core/workers/chunks/5eb29f0068f1c839d05e.js +0 -1
  405. package/assets/esri/core/workers/chunks/5f553da48d0ccbbfcd3c.js +0 -2
  406. package/assets/esri/core/workers/chunks/5fb76575575fe8cfb1f0.js +0 -1
  407. package/assets/esri/core/workers/chunks/6072c63a5da4366e9942.js +0 -1
  408. package/assets/esri/core/workers/chunks/626a715fdec93e188e0c.js +0 -1
  409. package/assets/esri/core/workers/chunks/6525c925bb91facb3575.js +0 -1
  410. package/assets/esri/core/workers/chunks/6529b5cc3ac6baa29fff.js +0 -2
  411. package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +0 -1
  412. package/assets/esri/core/workers/chunks/66e60351aacbd162775f.js +0 -1
  413. package/assets/esri/core/workers/chunks/694371f51c52a7a94da4.js +0 -1
  414. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +0 -1
  415. package/assets/esri/core/workers/chunks/7260e63252fa5452dc22.js +0 -1
  416. package/assets/esri/core/workers/chunks/72eb0ac55026a4f5d6a7.js +0 -1
  417. package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +0 -1
  418. package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +0 -1
  419. package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +0 -1
  420. package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +0 -1
  421. package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +0 -1
  422. package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +0 -1
  423. package/assets/esri/core/workers/chunks/7ddf9b2718dd047f15e6.js +0 -1
  424. package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +0 -1
  425. package/assets/esri/core/workers/chunks/8566449c39eba55147f5.js +0 -1
  426. package/assets/esri/core/workers/chunks/864691186c449ca2c3db.js +0 -1
  427. package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +0 -1
  428. package/assets/esri/core/workers/chunks/88fd698b940dadcc6dc5.js +0 -1
  429. package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +0 -1
  430. package/assets/esri/core/workers/chunks/8be707044d992ef5f1d8.js +0 -1
  431. package/assets/esri/core/workers/chunks/8c1bddc88cc5f4251021.js +0 -1
  432. package/assets/esri/core/workers/chunks/8eecc6df6511c8830f5d.js +0 -1
  433. package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +0 -1
  434. package/assets/esri/core/workers/chunks/8fea514aada1195c8f30.js +0 -1
  435. package/assets/esri/core/workers/chunks/9234a293d61e134f121f.js +0 -1
  436. package/assets/esri/core/workers/chunks/94bf7f0da6ad3f7ea277.js +0 -1
  437. package/assets/esri/core/workers/chunks/987594539981483a7c5e.js +0 -1
  438. package/assets/esri/core/workers/chunks/995a433936fc90d41634.js +0 -2
  439. package/assets/esri/core/workers/chunks/9bbff8237540409610b3.js +0 -1
  440. package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +0 -1
  441. package/assets/esri/core/workers/chunks/9f1211d2267fb7673c4d.js +0 -1
  442. package/assets/esri/core/workers/chunks/a486d99f9879f94151ba.js +0 -1
  443. package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +0 -1
  444. package/assets/esri/core/workers/chunks/a5c115fc53edb52ce1de.js +0 -1
  445. package/assets/esri/core/workers/chunks/a739e617fc461014ad1f.js +0 -1
  446. package/assets/esri/core/workers/chunks/aa21031c8f12ca438eaa.js +0 -1
  447. package/assets/esri/core/workers/chunks/ad27689b231e282b7620.js +0 -1
  448. package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +0 -1
  449. package/assets/esri/core/workers/chunks/af6e8c961fd768fa7be3.js +0 -1
  450. package/assets/esri/core/workers/chunks/b3a1a93c6dc9247cb048.js +0 -1
  451. package/assets/esri/core/workers/chunks/b4abf82b8ac974a55ae1.js +0 -1
  452. package/assets/esri/core/workers/chunks/b8cd81d8fcc78d272130.js +0 -1
  453. package/assets/esri/core/workers/chunks/b9a1046ca2cd0cca5da5.js +0 -1
  454. package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +0 -1
  455. package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +0 -1
  456. package/assets/esri/core/workers/chunks/c02b3b8b71205f6ce290.js +0 -1
  457. package/assets/esri/core/workers/chunks/c17dda6fadb8bfad0d51.js +0 -1
  458. package/assets/esri/core/workers/chunks/c21212c356f65244e34e.js +0 -1
  459. package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +0 -1
  460. package/assets/esri/core/workers/chunks/c6bf17b5ff6ec4b980a1.js +0 -1
  461. package/assets/esri/core/workers/chunks/c99dcc17fbd7acd2ad2e.js +0 -1
  462. package/assets/esri/core/workers/chunks/ce481eeb27ea9c1782ae.js +0 -1
  463. package/assets/esri/core/workers/chunks/cec1c87eb3749276ced4.js +0 -1
  464. package/assets/esri/core/workers/chunks/cef02ed3942c010da2e8.js +0 -29
  465. package/assets/esri/core/workers/chunks/cfdbc48f58433a3d5fc3.js +0 -1
  466. package/assets/esri/core/workers/chunks/d456520e4b119a2816b6.js +0 -1
  467. package/assets/esri/core/workers/chunks/d8da31bfe2bc4174e5aa.js +0 -1
  468. package/assets/esri/core/workers/chunks/da1c9257793c2817f40f.js +0 -1
  469. package/assets/esri/core/workers/chunks/dc0c3109b7558b4fe016.js +0 -1
  470. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +0 -1
  471. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +0 -1
  472. package/assets/esri/core/workers/chunks/e227eb44cd139fe2bc1b.js +0 -1
  473. package/assets/esri/core/workers/chunks/e2ddfc96ddba92302e0c.js +0 -1
  474. package/assets/esri/core/workers/chunks/e61ab8ef30bbe788b9d7.js +0 -1
  475. package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +0 -1
  476. package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +0 -1
  477. package/assets/esri/core/workers/chunks/eb95464bd017fb839510.js +0 -1
  478. package/assets/esri/core/workers/chunks/ed4ac5568dc2815b066d.js +0 -1
  479. package/assets/esri/core/workers/chunks/ed564358cc7b3ee463a3.js +0 -1
  480. package/assets/esri/core/workers/chunks/ef2e0a014c982d9c7ca4.js +0 -1
  481. package/assets/esri/core/workers/chunks/ef9489d1dccb817460bb.js +0 -2
  482. package/assets/esri/core/workers/chunks/f086c6d229fb34a9d7f9.js +0 -1
  483. package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +0 -1
  484. package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +0 -1
  485. package/assets/esri/core/workers/chunks/f6150b51a9430691a040.js +0 -1
  486. package/assets/esri/core/workers/chunks/f6f7d885b4d6080e3f58.js +0 -1
  487. package/assets/esri/core/workers/chunks/f95870bb4d8e4e13e69e.js +0 -1
  488. package/assets/esri/core/workers/chunks/fa59f10ed0f182a2a7f3.js +0 -1
  489. package/assets/esri/core/workers/chunks/fc9065d0cd6285fe0f0d.js +0 -1
  490. /package/assets/esri/core/workers/chunks/{2b0558c1716425974563.js.LICENSE.txt → 6c389e9646a48c26da20.js.LICENSE.txt} +0 -0
  491. /package/assets/esri/core/workers/chunks/{995a433936fc90d41634.js.LICENSE.txt → ab10388dcc17a665ac3b.js.LICENSE.txt} +0 -0
  492. /package/assets/esri/core/workers/chunks/{ef9489d1dccb817460bb.js.LICENSE.txt → ac9a3dfd02160e43fc8a.js.LICENSE.txt} +0 -0
  493. /package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js.LICENSE.txt → c61e94806b37ca3dd549.js.LICENSE.txt} +0 -0
  494. /package/assets/esri/core/workers/chunks/{5f553da48d0ccbbfcd3c.js.LICENSE.txt → d0c8630177d3a4e316f1.js.LICENSE.txt} +0 -0
  495. /package/assets/esri/core/workers/chunks/{6529b5cc3ac6baa29fff.js.LICENSE.txt → ead4143d811aab610e00.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,7992,8125,9358],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},98783(t,e,r){r.d(e,{O:()=>o});var s=r(61691),n=r(55537),i=r(76061),a=r(39117);class o{getOperatorType(){return 10104}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}isSimple(t,e,r,s,n){return 5===(0,a.$)(t,e,r,s,n)}executeMany(t,e,r,s){return new u(t,e,r,s)}execute(t,e,r,s){const a=new i.S([t]),o=this.executeMany(a,e,r,s).next();return o||(0,n.d)("null output"),o}}class u extends s.G{m_inputGeometryCursor;m_spatialReference;m_progressTracker;m_index;m_bForceSimplify;constructor(t,e,r,s){super(),t||(0,n.a)(""),this.m_progressTracker=s,this.m_bForceSimplify=r,this.m_index=-1,this.m_inputGeometryCursor=t,this.m_spatialReference=e}next(){const t=this.m_inputGeometryCursor.next();return t?((0,n.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(t)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(t){return t||(0,n.a)(""),(0,a.a0)(t,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=c;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?u(e,16):0:0),0)}function u(t,e){return c+t.length*e}const h=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>_,ME:()=>M,MY:()=>S,NO:()=>C,Nh:()=>P,V2:()=>A,_s:()=>O,e6:()=>b,gh:()=>E,tr:()=>I,uX:()=>p});var s=r(5482),n=r(16930),i=r(19419),a=r(60408),o=r(21325),u=r(513),h=r(50954),c=r(79567),l=r(52006),f=r(49663),m=r(46068),g=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=A(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,u],l,f,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new V(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,u=Z(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new V(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,l.yP)(r)}const[a,o,h,f]=n;e={xmin:a,ymin:o,xmax:h,ymax:f,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,R(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=A(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=n;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return n}for(const t of r[0])f(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of r){if(x[y++]=g,0===t.length)continue;let e=t.length;if(p&&R(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*g]=e,u[2*g+1]=s,++g}}return x[y]=g,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*F;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=g-1;(0,l.wY)(s)?(d(10),++n.segmentCountArc,v=O(r,s,n,i,v),r=s.a[0]):(0,l.DA)(s)?(d(10),++n.segmentCountArc,v=G(r,s,n,i,v),r=s.a[0]):(0,l.aO)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.c[0]):(0,l.n1)(s)?(d(4),++n.segmentCountBezier,v=I(0,s,n,i,v),r=s.b[0]):r=s}p&&R(e,r)||f(r)}return n.partOffsets[y]=g,n}function E(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=Z(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=A(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(s)+Number(n);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],s&&(h.vertexZ[t]=r[l++]),n&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function _({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new g.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class V{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function Z({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function R(t,e){return t.every((t,r)=>t===e[r])}function A(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function O(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],c,l,f,g,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,m.SW)(t,e),[d,v]=(0,m.Uk)(y,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=f,n[a++]=u,n[a++]=h,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function G(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return Y(o,4,...(0,u.mq)(o,.5),n,a)}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,Y((0,h.pM)(t,e),0,...e.c[1],n,a)}function Y(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function I(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=s,u[c++]=n,u[c++]=i,c}const F=1.61803,X=-1},5095(t,e,r){r.d(e,{fz:()=>u,g7:()=>i,pn:()=>o,zo:()=>a});var s=r(76061);const n=new(r(98783).O);function i(t,e,r){return n.execute(t,e,r,null)}function a(t,e,r){const i=n.executeMany(new s.S(t),e,r,null);return Array.from(i)}function o(t,e,r,s){return n.isSimple(t,e,r,s,null)}function u(){return n.supportsCurves()}},12499(t,e,r){r.d(e,{isSimple:()=>i});var s=r(5095),n=r(78125);function i(t,e){return(0,s.pn)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)((0,n.getSpatialReference)(t)),null!=e,e??null)}(0,s.fz)()},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>_,toGeometry:()=>P,toMultipoint:()=>S,toPoint:()=>V,toPolygon:()=>Z,toPolyline:()=>w});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return V(t,e);case n.G.enumEnvelope:return _(t,e);case n.G.enumMultiPoint:return S(t,e);case n.G.enumPolyline:return w(t,e);case n.G.enumPolygon:return Z(t,e)}return null}function _(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(m,t),r}function S(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:s,hasZ:n,points:a,spatialReference:e});return h.setCacheValue(m,t),h}function V(t,e){if(t instanceof s.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(m,t),r}function Z(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}function w(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-n)*(u+i),n=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8268],{69540(e,t,n){var s=n(5482),i=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),h=e=>{var t;const n=e;let i=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,s=t.store,i={},u=new Map;for(const t in n){const o=n[t],a=s?.originOf(t),l=o.clonable;if(o.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let d=null;if("function"==typeof l)d=l(h,e);else if("reference"===l)d=h;else if(d=(0,r.TU)(h,e),null!=h&&null==d)continue;0===a?u.set(t,d):i[t]=d}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){const e=(0,a.oY)(l)?.store;if(e)for(const[t,n]of u)e.set(t,n,0)}return l}};return i=(0,s.Cg)([(0,u.$)("esri.core.Clonable")],i),i},d=h(i.A);n.d(t,["OU",0,h,"Pw",0,d])},67482(e,t,n){function s(e){return null!==i(e)}function i(e){return function(e){const t=r.exec(e);if(!t?.groups)return null;const n=t.groups,s=+n.year,i=+n.month-1,o=+n.day,a=+(n.hours??"0"),u=+(n.minutes??"0"),l=+(n.seconds??"0");if(a>23)return null;if(u>59)return null;if(l>59)return null;const h=n.ms??"0",d=h?+h.padEnd(3,"0").slice(0,3):0;let c;if(n.isUTC||!n.offsetSign)c=Date.UTC(s,i,o,a,u,l,d);else{const e=+n.offsetHours,t=+n.offsetMinutes;c=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,i,o,a,u,l,d)}return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>s,_:()=>i});const r=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},75503(e,t,n){n.d(t,{wq:()=>a});var s=n(4576),i=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),v.prune(),M.prune()}all(e){u(this._data,e)}search(e,t){let n=this._data;const s=this._toBBox;if(I(e,n))for(x.clear();n;){for(let i=0,r=n.children.length;i<r;i++){const r=n.children[i],o=n.leaf?s(r):r;I(e,o)&&(n.leaf?t(r):_(e,o)?u(r,t):x.push(r))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!I(e,t))return!1;for(x.clear();t;){for(let s=0,i=t.children.length;s<i;s++){const i=t.children[s],r=t.leaf?n(i):i;if(I(e,r)){if(t.leaf||_(e,r))return!0;x.push(i)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const u=this._toBBox(e);for(v.clear(),M.clear();n||v.length>0;){if(n||(n=v.pop(),r=v.data[v.length-1],o=M.pop()??0,a=!0),n.leaf&&(t=(0,s.qh)(n.children,(0,i.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),v.push(n),this._condense(v),this;a||n.leaf||!_(n,u)?r?(o++,n=r.children[o],a=!1):n=null:(v.push(n),M.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,s){const i=n-t+1;let r=this._maxEntries;if(i<=r){const s=new B(e.slice(t,n+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(i)/Math.log(r)),r=Math.ceil(i/r**(s-1)));const o=new F([]);o.height=s;const a=Math.ceil(i/r),u=a*Math.ceil(Math.sqrt(r));b(e,t,n,u,this._compareMinX);for(let i=t;i<=n;i+=u){const t=Math.min(i+u-1,n);b(e,i,t,a,this._compareMinY);for(let n=i;n<=t;n+=a){const i=Math.min(n+a-1,t);o.children.push(this._build(e,n,i,s-1))}}return l(o,this._toBBox),o}_insert(e,t,n){const s=this._toBBox,i=n?e:s(e);v.clear();const r=function(e,t,n,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==n;){let n,s=1/0,i=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=p(o),u=y(e,o)-a;u<i?(i=u,s=a<s?a:s,n=o):u===i&&a<s&&(s=a,n=o)}t=n||t.children[0]}return t}(i,this._data,t,v);for(r.children.push(e),d(r,i);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,n){for(let s=n;s>=0;s--)d(t.data[s],e)}(i,v,t)}_split(e,t){const n=e.data[t],s=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,s);const r=this._chooseSplitIndex(n,i,s);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new B(o):new F(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new F([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let s,i,r;s=i=1/0;for(let o=t;o<=n-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,n,this._toBBox),u=g(t,a),l=p(t)+p(a);u<s?(s=u,r=o,i=l<i?l:i):u===s&&l<i&&(i=l,r=o)}return r}_chooseSplitAxis(e,t,n){const s=e.leaf?this._compareMinX:c,i=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,n,s)<this._allDistMargin(e,t,n,i)&&e.children.sort(s)}_allDistMargin(e,t,n,s){e.children.sort(s);const i=this._toBBox,r=h(e,0,t,i),o=h(e,n-t,n,i);let a=f(r)+f(o);for(let s=t;s<n-t;s++){const t=e.children[s];d(r,e.leaf?i(t):t),a+=f(r)}for(let s=n-t-1;s>=t;s--){const t=e.children[s];d(o,e.leaf?i(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const i=e.data[t-1],r=i.children;r.splice((0,s.qh)(r,n,r.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function u(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,i.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function l(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,s,i){i||(i=new B([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],d(i,e.leaf?s(r):r);return i}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function I(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,n,s,i){const r=[t,n];for(;r.length;){const t=r.pop(),n=r.pop();if(t-n<=s)continue;const a=n+Math.ceil((t-n)/s/2)*s;(0,o.q)(e,a,n,t,i),r.push(n,a,a,t)}}const x=new r.A,S=new r.A,v=new r.A,M=new r.A({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class T extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class B extends T{constructor(e){super(),this.children=e,this.leaf=!0}}class F extends T{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>r,lM:()=>i});var s=n(34275);function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function r(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?r(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+d:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,d=145},36708(e,t,n){n.d(t,{C_:()=>c,on:()=>d,wB:()=>u,z7:()=>l});var s=n(37955),i=n(36563),r=n(97768),o=n(17676),a=n(14012);function u(e,t,n={}){return h(e,t,n,m)}function l(e,t,n={}){return h(e,t,n,p)}function h(e,t,n={},s){let i=null;const o=n.once?(e,n)=>{s(e)&&((0,r.xt)(i),t(e,n))}:(e,n)=>{s(e)&&t(e,n)};if(i=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return i}function d(e,t,n,o={}){let a=null,l=null,h=null;function d(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function c(e){o.once&&o.once&&(0,r.xt)(h),n(e)}const m=u(e,(e,n)=>{d(),(0,s.wb)(e)&&(a=e,l=(0,s.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,i.hA)(()=>{m.remove(),d()}),h}function c(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function u(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,i.vE)([(0,o.u7)(n,()=>{u(),r((0,o.NK)())}),h(e,e=>{u(),s(e)},{sync:!1,once:!0},t??m)])})}(e,p,t)}function m(e){return!0}function p(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,n){n.d(t,{S1:()=>a,lL:()=>l,mi:()=>u,rb:()=>h,t:()=>d});var s=n(97770),i=(n(98623),n(92647));const r=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,r="system"){if("unknown"===n)return e;const o=new i.oh((0,s.wj)(r)),a=i.c9.fromJSDate(e,{zone:o}),u="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[u]:t}).toJSDate()}function u(e,t,n="milliseconds"){const s=e.getTime(),i=d(t,n,"milliseconds");return new Date(s+i)}function l(e,t,n="system"){const{unit:r}=t,o=Math.max(1,Math.trunc(t.value)),a=new i.oh((0,s.wj)(n)),u=i.c9.fromJSDate(e,{zone:a}),l=e=>e-e%o;switch(r){case"milliseconds":return u.startOf("second").plus({millisecond:l(u.millisecond)}).toJSDate();case"seconds":return u.startOf("minute").plus({second:l(u.second)}).toJSDate();case"minutes":return u.startOf("hour").plus({minute:l(u.minute)}).toJSDate();case"hours":return u.startOf("day").plus({hour:l(u.hour)}).toJSDate();case"days":return u.startOf("month").plus({day:l(u.day-1)}).toJSDate();case"weeks":{const e=u.startOf("year").startOf("week"),t=Math.floor(u.diff(e,"weeks").weeks);return e.plus({week:l(t)}).toJSDate()}case"months":return u.startOf("year").plus({month:l(u.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=u.startOf("year"),t=("decades"===r?10:"centuries"===r?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){const t=r.exec(e);if(!t)return null;const{hh:n,mm:s,ss:i,ms:a}=t.groups;return Number(n)*o.hours+Number(s)*o.minutes+Number(i||0)*o.seconds+Number(a||0)}function d(e,t,n){return 0===e?0:e*o[t]/o[n]}},48526(e,t,n){n.d(t,{A:()=>y});var s,i=n(5482),r=n(4576),o=n(4718),a=n(91429),u=n(5443),l=n(91075),h=n(86738),d=n(16930),c=n(90634),m=n(47610),p=n(56993),f=n(43937);let y=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:s,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return i??=d.A.WGS84,{...e,hasM:n,hasZ:s,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,c.ge)(this);return e?new u.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new s({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,r.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(n.z=t[2],s=3),this.hasM&&(n.m=t[s]),new h.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,f.K)("points")],y.prototype,"writePoints",null),y=s=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>p});var s,i=n(5482),r=n(4718),o=n(91429),a=n(5443),u=n(91075),l=n(86738),h=n(16930),d=n(90634),c=n(56993),m=n(43937);let p=s=class extends u.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:s,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return i??=h.A.WGS84,{...e,hasM:n,hasZ:s,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,r.o8)(e)}get extent(){const e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,r.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,n=e.length;t<n;t++)s[t]=e[t].toArray();t[n]=s}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,r.o8)(this.paths),e.curvePaths=(0,r.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],s=this.hasZ,i=this.hasM;return s&&!i?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!s?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):s&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,s=t.map(e=>new l.A(e,n));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(n&&(t<0||t>s.length))return!1;if(!n&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],p.prototype,"writePaths",null),p=s=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>R,J2:()=>B,Yq:()=>A,_m:()=>F,iS:()=>C,wj:()=>E});var s=n(66552),i=n(73444),r=n(98623),o=n(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},u={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={hourCycle:"h23"},g={...p,...y},_={...f,...y},I={"short-date":h,"short-date-short-time":{...h,...p},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...f},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...p},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...f},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...p},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...f},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...p},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...f},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},b=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},S=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),v=S.find(({type:e})=>"month"===e)?.value.toLowerCase();function M(){const e=(0,i.lR)();return(e&&x[e])??(0,i.QC)()}"mart"!==v&&(x.bs="sr-Latn-CS");let w=new WeakMap;const T=I["short-date-short-time"];function B(e){return I[e]}function F(e){const{dateStyle:t,timeStyle:n,hour12:s,year:i,month:r}=e,o={};return t?o.dateStyle=t:i&&(o.year=i,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===s?void 0:"always"===s),o}function A(e,t=T){return function(e){let t=w.get(e);if(!t){const n=M(),s=E(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(n,i),w.set(e,t)}return t}(t).format(e)}function C(e,t=T){return A(new Date(e),{...t,...l,...u})}function R(e,t=T){return A(new Date(`1970-01-01T${e}Z`),{...t,...l,...a})}function D(e,t=T){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return A(n.toJSDate(),t);const s=0===n.offset?"UTC":t.timeZone,i={...t,timeZone:s};return n.toLocaleString(i,{locale:M()})}function E(e){switch(e){case"system":return r.N;case r.L:return"UTC";default:return e}}(0,i.Ml)(()=>{w=new WeakMap}),n.d(t,["_v",0,b])},73444(e,t,n){n.d(t,{JK:()=>u,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>p});var s=n(36563);let i;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function u(){return void 0===i&&(i=a()),i}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=u()){return c(e)?.language}function d(e=u()){const t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=u()){return l.exec(e)?.groups}const m=[];function p(e){return m.push(e),(0,s.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const f=[];function y(e){return f.push(e),(0,s.hA)(()=>f.splice(f.indexOf(e),1))}function g(){const e=a();i!==e&&([...f].forEach(t=>t(e)),i=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,n){n.d(t,{F:()=>a});var s=n(44208),i=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>p});var s=n(4576),i=n(49186),r=n(65529),o=n(53966),a=n(70328),u=n(19419),l=n(90708),h=n(6518),d=n(51441),c=n(37730);const m=(0,a.vt)();class p{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,s,i]=this.fullBounds;return{xmin:t,ymin:n,xmax:s,ymax:i,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(m,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let s;if(n?(e.displayId=n.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,l.jQ)(null!=s?s:(0,u.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:s,attributes:r}=e;for(const e in r)n.attributes[e]=r[e];return s&&(n.geometry=s,this._boundsStore.set(t,(0,l.jQ)((0,u.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var s=n(43334);const i={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,i])},33032(e,t,n){function s(e,t){let n=0;for(const s of t){const t=s.attributes?.[e];"number"==typeof t&&isFinite(t)&&(n=Math.max(n,t))}return n}n.d(t,{H:()=>s})},29432(e,t,n){n.r(t),n.d(t,{default:()=>v});var s=n(4576),i=n(49186),r=n(60408),o=n(21325),a=n(90708),u=n(33032),l=n(83221),h=n(31464),d=n(56390),c=n(64714),m=n(82832),p=n(95466),f=n(98453),y=n(30524);n(98623);const g=o.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:o.KK},I={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:m.PC};function b(e){return(0,r.fT)(e)?null!=e.z:!!e.hasZ}function x(e){return(0,r.fT)(e)?null!=e.m:!!e.hasM}function S(e,t){let n;const s=[];if("unique-id-composite"===t.type){const i=[];for(const n of t.fieldNames)e.attributes[n]?i.push(e.attributes[n]):s.push(n);n=0===s.length?JSON.stringify(i):null}else n=e.attributes[t.fieldName],n||s.push(t.fieldName);return{objectId:n,missingFields:s}}class v{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:n}=e,s=this._inferLayerProperties(n,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!s.hasM,a=null!=e.hasZ?e.hasZ:!!s.hasZ,m=!e.spatialReference&&!s.spatialReference,b=m?g:e.spatialReference||s.spatialReference,x=m?_:null,S=e.geometryType||s.geometryType,v=!S,M=e.uniqueIdInfo;let w=e.objectIdField??s.objectIdField,T=e.timeInfo;const B=new p.A(r);if(!v&&(m&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!S))throw new i.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(M){const e=new Set(r.map(({name:e})=>e));if(!M.fields.every(t=>e.has(t))){const t=M.fields.filter(t=>!e.has(t));throw new i.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}w=null}else if(!w)throw new i.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(s.objectIdField&&w!==s.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${w}" doesn't match the field name "${s.objectIdField}", found in the provided fields`}),w=s.objectIdField),w&&!s.objectIdField){const e=B.get(w);e?(w=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:w,name:w,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new i.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===w&&(e.type="esriFieldTypeOID"),!f.m.jsonValues.includes(e.type))throw new i.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,y._b)(e))}const F={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,y.lD)(e);void 0!==t&&(F[e.name]=t)}if(T){if(T.startTimeField){const e=B.get(T.startTimeField);e?(T.startTimeField=e.name,e.type="esriFieldTypeDate"):T.startTimeField=null}if(T.endTimeField){const e=B.get(T.endTimeField);e?(T.endTimeField=e.name,e.type="esriFieldTypeDate"):T.endTimeField=null}if(T.trackIdField){const e=B.get(T.trackIdField);e?T.trackIdField=e.name:(T.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:T}}))}T.startTimeField||T.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:T}}),T=null)}const A=B.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??"UTC"}:null;this._createDefaultAttributes=(0,c.Vx)(F,w),this._uniqueIdInfo=e.uniqueIdInfo??void 0;const C={warnings:t,featureErrors:[],layerDefinition:{...I,drawingInfo:(0,c.F0)(S),templates:(0,c.e2)(F),extent:x,geometryType:S,objectIdField:w,fields:r,hasZ:a,hasM:o,timeInfo:T,dateFieldsTimeReference:A,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:w};if(this._queryEngine=new d.do({fieldsIndex:p.A.fromLayerJSON({fields:r,timeInfo:T,dateFieldsTimeReference:A}),geometryType:S,hasM:o,hasZ:a,featureIdInfo:R,spatialReference:b,featureStore:new l.A({geometryType:S,hasM:o,hasZ:a}),timeInfo:T}),!n?.length)return this._nextObjectId=1,C;if(w){const e=(0,u.H)(w,n);this._nextObjectId=e+1}return await(0,h.Nk)(n,b),this._loadInitialFeatures(C,n)}async applyEdits(e){const{spatialReference:t,geometryType:n}=this._queryEngine;return await Promise.all([(0,m.$1)(t,n),(0,h.Nk)(e.adds,t),(0,h.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let n,s,i=null,o=null,a=null;for(const t of e){const e=t.geometry;if(null!=e&&(i||(i=(0,r.$B)(e)),o||(o=e.spatialReference),null==n&&(n=b(e)),null==s&&(s=x(e)),i&&o&&null!=n&&null!=s))break}if(t&&t.length){let e=null;t.some(t=>{const n="esriFieldTypeOID"===t.type,s=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,n||s})&&(a=e.name)}return{geometryType:i,spatialReference:o,objectIdField:a,hasM:s,hasZ:n}}async _loadInitialFeatures(e,t){const{geometryType:n,hasM:s,hasZ:i,spatialReference:o,featureStore:u,fieldsIndex:l,featureIdInfo:d}=this._queryEngine,c=[];for(const s of t){if(null!=s.uid&&(e.assignedObjectIds[s.uid]=-1),s.geometry&&n!==(0,r.$B)(s.geometry)){e.featureErrors.push((0,m.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),i=(0,m.MB)(l,t,s.attributes,!0);i?e.featureErrors.push(i):(this._assignObjectId(t,s.attributes,!0),s.attributes=t,s.uid&&(e.assignedObjectIds[s.uid]=S(s,d).objectId),null!=s.geometry&&(s.geometry=(0,h.Cv)(s.geometry,s.geometry.spatialReference,o)),c.push(s))}u.addMany((0,a.Di)([],c,n,i,s,d));const{fullExtent:p,timeExtent:f}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=p,f){const{start:t,end:n}=f;e.layerDefinition.timeInfo.timeExtent=[t,n]}return e}async _applyEdits(e){const{adds:t,updates:n,deletes:s}=e,i={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(i,t),n?.length&&this._applyUpdateEdits(i,n),s?.length){for(const e of s)i.deleteResults.push((0,m.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:i}}_applyAddEdits(e,t){const{addResults:n,updateResults:i}=e,{geometryType:o,hasM:u,hasZ:l,spatialReference:d,featureStore:c,featureIdInfo:p,fieldsIndex:f}=this._queryEngine,y=[],g=new Map;for(const a of t){if(a.geometry&&o!==(0,r.$B)(a.geometry)){n.push((0,m.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),u=(0,m.MB)(f,t,a.attributes);if(u){n.push(u);continue}this._assignObjectId(t,a.attributes),a.attributes=t;const{objectId:l,missingFields:_}=S(a,p);if(l){if(null!=a.uid&&(e.uidToObjectId[a.uid]=l),null!=a.geometry){const e=a.geometry.spatialReference??d;a.geometry=(0,h.Cv)((0,m.CR)(a.geometry,e),e,d)}y.push(a);const t=(0,m.bP)(l);g.has(l)?(0,s.TF)(y,g.get(l)):c.has(l)?i.push(t):n.push(t),g.set(l,a)}else n.push((0,m.Yx)(`Missing unique id field value for fields: ${_.join()}`))}c.addMany((0,a.Di)([],y,o,l,u,p))}_applyUpdateEdits({updateResults:e},t){const{geometryType:n,hasM:s,hasZ:i,spatialReference:o,featureStore:u,fieldsIndex:l,featureIdInfo:d}=this._queryEngine;for(const c of t){const{attributes:t,geometry:p}=c,{objectId:f,missingFields:y}=S(c,d);if(null==f){const t="unique-id-composite"===d.type?y:d.fieldName;e.push((0,m.Yx)(`Identifier fields: ${t} missing`));continue}if(!u.has(f)){e.push((0,m.Yx)(`Feature with object id ${f} missing`));continue}const g=(0,a.oN)(u.getFeature(f),n,i,s);if(null!=p){if(n!==(0,r.$B)(p)){e.push((0,m.Yx)("Incorrect geometry type."));continue}const t=p.spatialReference??o;g.geometry=(0,h.Cv)((0,m.CR)(p,t),t,o)}if(t){const n=(0,m.MB)(l,g.attributes,t);if(n){e.push(n);continue}}u.add((0,a.E2)(g,n,i,s,d)),e.push((0,m.bP)(f))}}_assignObjectId(e,t,n=!1){if("object-id"===this._queryEngine.featureIdInfo.type){const s=this._queryEngine.featureIdInfo.fieldName;n&&t&&isFinite(t[s])?e[s]=t[s]:e[s]=this._nextObjectId++}}}},64714(e,t,n){n.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>m});var s=n(44208),i=n(4718),r=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function h(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let n="";t&&(n+=`this${d(t)} = null;`);for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new s}catch(n){return()=>t?{[t]:null,...e}:{...e}}}function d(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function m(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,n){n.d(t,{$1:()=>_,CR:()=>g,MB:()=>p,Yx:()=>h,bP:()=>c});var s=n(67482),i=n(93146),r=n(60408),o=n(21325),a=n(30524);class u{constructor(e){this.description=e,this.code=null}}class l{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new u(e)}}function h(e){return new l(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const m=new Set;function p(e,t,n,s=!1){m.clear();for(const i in n){const r=e.get(i);if(!r)continue;const o=f(r,n[i]);if(m.add(r.name),r&&(s||r.editable)){const e=(0,a.CJ)(r,o);if(e)return h((0,a.uo)(e,r,o));t[r.name]=o}}for(const t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function f(e,t){let n=t;return(0,a.WA)(e)&&"string"==typeof t?n=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,a.vE)(e)&&"string"==typeof t&&(n=(0,s._)(t)),(0,a.WX)(n)}const y=(0,i.z)(()=>Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(1075)]).then(n.bind(n,3637)));function g(e,t){if(!(0,r.Bi)(e)&&!(0,r.Rg)(e))return e;if(!(0,o.fn)(t))return e;const n=y.module;if(null==n)throw new TypeError("simplify operator not loaded");return n.execute({...e,spatialReference:t})??e}async function _(e,t){!(0,o.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await y.getImportPromise()}n.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},98453(e,t,n){const s=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,s])},93470(e,t,n){const s=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};n.d(t,["Cb",0,i,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,r])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8268],{69540(e,t,n){var s=n(5482),i=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),h=e=>{var t;const n=e;let i=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,s=t.store,i={},u=new Map;for(const t in n){const o=n[t],a=s?.originOf(t),l=o.clonable;if(o.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let d=null;if("function"==typeof l)d=l(h,e);else if("reference"===l)d=h;else if(d=(0,r.TU)(h,e),null!=h&&null==d)continue;0===a?u.set(t,d):i[t]=d}const l=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){const e=(0,a.oY)(l)?.store;if(e)for(const[t,n]of u)e.set(t,n,0)}return l}};return i=(0,s.Cg)([(0,u.$)("esri.core.Clonable")],i),i},d=h(i.A);n.d(t,["OU",0,h,"Pw",0,d])},67482(e,t,n){function s(e){return null!==i(e)}function i(e){return function(e){const t=r.exec(e);if(!t?.groups)return null;const n=t.groups,s=+n.year,i=+n.month-1,o=+n.day,a=+(n.hours??"0"),u=+(n.minutes??"0"),l=+(n.seconds??"0");if(a>23)return null;if(u>59)return null;if(l>59)return null;const h=n.ms??"0",d=h?+h.padEnd(3,"0").slice(0,3):0;let c;if(n.isUTC||!n.offsetSign)c=Date.UTC(s,i,o,a,u,l,d);else{const e=+n.offsetHours,t=+n.offsetMinutes;c=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,i,o,a,u,l,d)}return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>s,_:()=>i});const r=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},75503(e,t,n){n.d(t,{wq:()=>a});var s=n(4576),i=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),v.prune(),M.prune()}all(e){u(this._data,e)}search(e,t){let n=this._data;const s=this._toBBox;if(I(e,n))for(x.clear();n;){for(let i=0,r=n.children.length;i<r;i++){const r=n.children[i],o=n.leaf?s(r):r;I(e,o)&&(n.leaf?t(r):_(e,o)?u(r,t):x.push(r))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!I(e,t))return!1;for(x.clear();t;){for(let s=0,i=t.children.length;s<i;s++){const i=t.children[s],r=t.leaf?n(i):i;if(I(e,r)){if(t.leaf||_(e,r))return!0;x.push(i)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const u=this._toBBox(e);for(v.clear(),M.clear();n||v.length>0;){if(n||(n=v.pop(),r=v.data[v.length-1],o=M.pop()??0,a=!0),n.leaf&&(t=(0,s.qh)(n.children,(0,i.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),v.push(n),this._condense(v),this;a||n.leaf||!_(n,u)?r?(o++,n=r.children[o],a=!1):n=null:(v.push(n),M.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,s){const i=n-t+1;let r=this._maxEntries;if(i<=r){const s=new B(e.slice(t,n+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(i)/Math.log(r)),r=Math.ceil(i/r**(s-1)));const o=new F([]);o.height=s;const a=Math.ceil(i/r),u=a*Math.ceil(Math.sqrt(r));b(e,t,n,u,this._compareMinX);for(let i=t;i<=n;i+=u){const t=Math.min(i+u-1,n);b(e,i,t,a,this._compareMinY);for(let n=i;n<=t;n+=a){const i=Math.min(n+a-1,t);o.children.push(this._build(e,n,i,s-1))}}return l(o,this._toBBox),o}_insert(e,t,n){const s=this._toBBox,i=n?e:s(e);v.clear();const r=function(e,t,n,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==n;){let n,s=1/0,i=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=p(o),u=y(e,o)-a;u<i?(i=u,s=a<s?a:s,n=o):u===i&&a<s&&(s=a,n=o)}t=n||t.children[0]}return t}(i,this._data,t,v);for(r.children.push(e),d(r,i);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,n){for(let s=n;s>=0;s--)d(t.data[s],e)}(i,v,t)}_split(e,t){const n=e.data[t],s=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,s);const r=this._chooseSplitIndex(n,i,s);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new B(o):new F(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new F([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let s,i,r;s=i=1/0;for(let o=t;o<=n-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,n,this._toBBox),u=g(t,a),l=p(t)+p(a);u<s?(s=u,r=o,i=l<i?l:i):u===s&&l<i&&(i=l,r=o)}return r}_chooseSplitAxis(e,t,n){const s=e.leaf?this._compareMinX:c,i=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,n,s)<this._allDistMargin(e,t,n,i)&&e.children.sort(s)}_allDistMargin(e,t,n,s){e.children.sort(s);const i=this._toBBox,r=h(e,0,t,i),o=h(e,n-t,n,i);let a=f(r)+f(o);for(let s=t;s<n-t;s++){const t=e.children[s];d(r,e.leaf?i(t):t),a+=f(r)}for(let s=n-t-1;s>=t;s--){const t=e.children[s];d(o,e.leaf?i(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const i=e.data[t-1],r=i.children;r.splice((0,s.qh)(r,n,r.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function u(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,i.z)(e));else S.pushArray(n.children);n=S.pop()??null}}function l(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,s,i){i||(i=new B([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],d(i,e.leaf?s(r):r);return i}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function I(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,n,s,i){const r=[t,n];for(;r.length;){const t=r.pop(),n=r.pop();if(t-n<=s)continue;const a=n+Math.ceil((t-n)/s/2)*s;(0,o.q)(e,a,n,t,i),r.push(n,a,a,t)}}const x=new r.A,S=new r.A,v=new r.A,M=new r.A({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class T extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class B extends T{constructor(e){super(),this.children=e,this.leaf=!0}}class F extends T{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>r,lM:()=>i});var s=n(34275);function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function r(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let s=0;s<t;s++)n+=o(e[s]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?r(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+d:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,d=145},36708(e,t,n){n.d(t,{C_:()=>c,on:()=>d,wB:()=>u,z7:()=>l});var s=n(37955),i=n(36563),r=n(97768),o=n(17676),a=n(14012);function u(e,t,n={}){return h(e,t,n,m)}function l(e,t,n={}){return h(e,t,n,p)}function h(e,t,n={},s){let i=null;const o=n.once?(e,n)=>{s(e)&&((0,r.xt)(i),t(e,n))}:(e,n)=>{s(e)&&t(e,n)};if(i=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return i}function d(e,t,n,o={}){let a=null,l=null,h=null;function d(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function c(e){o.once&&o.once&&(0,r.xt)(h),n(e)}const m=u(e,(e,n)=>{d(),(0,s.wb)(e)&&(a=e,l=(0,s.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,i.hA)(()=>{m.remove(),d()}),h}function c(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function u(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,i.vE)([(0,o.u7)(n,()=>{u(),r((0,o.NK)())}),h(e,e=>{u(),s(e)},{sync:!1,once:!0},t??m)])})}(e,p,t)}function m(e){return!0}function p(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,n){n.d(t,{S1:()=>a,lL:()=>l,mi:()=>u,rb:()=>h,t:()=>d});var s=n(97770),i=(n(98623),n(92647));const r=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,r="system"){if("unknown"===n)return e;const o=new i.oh((0,s.wj)(r)),a=i.c9.fromJSDate(e,{zone:o}),u="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[u]:t}).toJSDate()}function u(e,t,n="milliseconds"){const s=e.getTime(),i=d(t,n,"milliseconds");return new Date(s+i)}function l(e,t,n="system"){const{unit:r}=t,o=Math.max(1,Math.trunc(t.value)),a=new i.oh((0,s.wj)(n)),u=i.c9.fromJSDate(e,{zone:a}),l=e=>e-e%o;switch(r){case"milliseconds":return u.startOf("second").plus({millisecond:l(u.millisecond)}).toJSDate();case"seconds":return u.startOf("minute").plus({second:l(u.second)}).toJSDate();case"minutes":return u.startOf("hour").plus({minute:l(u.minute)}).toJSDate();case"hours":return u.startOf("day").plus({hour:l(u.hour)}).toJSDate();case"days":return u.startOf("month").plus({day:l(u.day-1)}).toJSDate();case"weeks":{const e=u.startOf("year").startOf("week"),t=Math.floor(u.diff(e,"weeks").weeks);return e.plus({week:l(t)}).toJSDate()}case"months":return u.startOf("year").plus({month:l(u.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=u.startOf("year"),t=("decades"===r?10:"centuries"===r?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){const t=r.exec(e);if(!t)return null;const{hh:n,mm:s,ss:i,ms:a}=t.groups;return Number(n)*o.hours+Number(s)*o.minutes+Number(i||0)*o.seconds+Number(a||0)}function d(e,t,n){return 0===e?0:e*o[t]/o[n]}},48526(e,t,n){n.d(t,{A:()=>y});var s,i=n(5482),r=n(4576),o=n(4718),a=n(91429),u=n(5443),l=n(91075),h=n(86738),d=n(16930),c=n(90634),m=n(47610),p=n(56993),f=n(43937);let y=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:s,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return i??=d.A.WGS84,{...e,hasM:n,hasZ:s,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,c.ge)(this);return e?new u.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new s({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,r.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(n.z=t[2],s=3),this.hasM&&(n.m=t[s]),new h.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,f.K)("points")],y.prototype,"writePoints",null),y=s=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>p});var s,i=n(5482),r=n(4718),o=n(91429),a=n(5443),u=n(91075),l=n(86738),h=n(16930),d=n(90634),c=n(56993),m=n(43937);let p=s=class extends u.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:s,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,n??=!0;break;case 3:s??=!0!==n,n??=!s;break;default:s??=!1,n??=!1}return i??=h.A.WGS84,{...e,hasM:n,hasZ:s,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,r.o8)(e)}get extent(){const e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,r.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,n=e.length;t<n;t++)s[t]=e[t].toArray();t[n]=s}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,r.o8)(this.paths),e.curvePaths=(0,r.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],s=this.hasZ,i=this.hasM;return s&&!i?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!s?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):s&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,s=t.map(e=>new l.A(e,n));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(n&&(t<0||t>s.length))return!1;if(!n&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],p.prototype,"writePaths",null),p=s=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>R,J2:()=>B,Yq:()=>A,_m:()=>F,iS:()=>C,wj:()=>E});var s=n(66552),i=n(73444),r=n(98623),o=n(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},u={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={hourCycle:"h23"},g={...p,...y},_={...f,...y},I={"short-date":h,"short-date-short-time":{...h,...p},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...f},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...p},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...f},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...p},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...f},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...p},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...f},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},b=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},S=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),v=S.find(({type:e})=>"month"===e)?.value.toLowerCase();function M(){const e=(0,i.lR)();return(e&&x[e])??(0,i.QC)()}"mart"!==v&&(x.bs="sr-Latn-CS");let w=new WeakMap;const T=I["short-date-short-time"];function B(e){return I[e]}function F(e){const{dateStyle:t,timeStyle:n,hour12:s,year:i,month:r}=e,o={};return t?o.dateStyle=t:i&&(o.year=i,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===s?void 0:"always"===s),o}function A(e,t=T){return function(e){let t=w.get(e);if(!t){const n=M(),s=E(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(n,i),w.set(e,t)}return t}(t).format(e)}function C(e,t=T){return A(new Date(e),{...t,...l,...u})}function R(e,t=T){return A(new Date(`1970-01-01T${e}Z`),{...t,...l,...a})}function D(e,t=T){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return A(n.toJSDate(),t);const s=0===n.offset?"UTC":t.timeZone,i={...t,timeZone:s};return n.toLocaleString(i,{locale:M()})}function E(e){switch(e){case"system":return r.N;case r.L:return"UTC";default:return e}}(0,i.Ml)(()=>{w=new WeakMap}),n.d(t,["_v",0,b])},73444(e,t,n){n.d(t,{JK:()=>u,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>p});var s=n(36563);let i;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function u(){return void 0===i&&(i=a()),i}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=u()){return c(e)?.language}function d(e=u()){const t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=u()){return l.exec(e)?.groups}const m=[];function p(e){return m.push(e),(0,s.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const f=[];function y(e){return f.push(e),(0,s.hA)(()=>f.splice(f.indexOf(e),1))}function g(){const e=a();i!==e&&([...f].forEach(t=>t(e)),i=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,n){n.d(t,{F:()=>a});var s=n(44208),i=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>p});var s=n(4576),i=n(49186),r=n(65529),o=n(53966),a=n(70328),u=n(19419),l=n(90708),h=n(6518),d=n(51441),c=n(37730);const m=(0,a.vt)();class p{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,s,i]=this.fullBounds;return{xmin:t,ymin:n,xmax:s,ymax:i,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(m,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let s;if(n?(e.displayId=n.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,l.jQ)(null!=s?s:(0,u.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:s,attributes:r}=e;for(const e in r)n.attributes[e]=r[e];return s&&(n.geometry=s,this._boundsStore.set(t,(0,l.jQ)((0,u.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var s=n(43334);const i={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,i])},33032(e,t,n){function s(e,t){let n=0;for(const s of t){const t=s.attributes?.[e];"number"==typeof t&&isFinite(t)&&(n=Math.max(n,t))}return n}n.d(t,{H:()=>s})},29432(e,t,n){n.r(t),n.d(t,{default:()=>v});var s=n(4576),i=n(49186),r=n(60408),o=n(21325),a=n(90708),u=n(33032),l=n(83221),h=n(31464),d=n(56390),c=n(64714),m=n(82832),p=n(95466),f=n(98453),y=n(30524);n(98623);const g=o.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:o.KK},I={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:m.PC};function b(e){return(0,r.fT)(e)?null!=e.z:!!e.hasZ}function x(e){return(0,r.fT)(e)?null!=e.m:!!e.hasM}function S(e,t){let n;const s=[];if("unique-id-composite"===t.type){const i=[];for(const n of t.fieldNames)e.attributes[n]?i.push(e.attributes[n]):s.push(n);n=0===s.length?JSON.stringify(i):null}else n=e.attributes[t.fieldName],n||s.push(t.fieldName);return{objectId:n,missingFields:s}}class v{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:n}=e,s=this._inferLayerProperties(n,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!s.hasM,a=null!=e.hasZ?e.hasZ:!!s.hasZ,m=!e.spatialReference&&!s.spatialReference,b=m?g:e.spatialReference||s.spatialReference,x=m?_:null,S=e.geometryType||s.geometryType,v=!S,M=e.uniqueIdInfo;let w=e.objectIdField??s.objectIdField,T=e.timeInfo;const B=new p.A(r);if(!v&&(m&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!S))throw new i.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(M){const e=new Set(r.map(({name:e})=>e));if(!M.fields.every(t=>e.has(t))){const t=M.fields.filter(t=>!e.has(t));throw new i.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}w=null}else if(!w)throw new i.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(s.objectIdField&&w!==s.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${w}" doesn't match the field name "${s.objectIdField}", found in the provided fields`}),w=s.objectIdField),w&&!s.objectIdField){const e=B.get(w);e?(w=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:w,name:w,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new i.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===w&&(e.type="esriFieldTypeOID"),!f.m.jsonValues.includes(e.type))throw new i.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,y._b)(e))}const F={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,y.lD)(e);void 0!==t&&(F[e.name]=t)}if(T){if(T.startTimeField){const e=B.get(T.startTimeField);e?(T.startTimeField=e.name,e.type="esriFieldTypeDate"):T.startTimeField=null}if(T.endTimeField){const e=B.get(T.endTimeField);e?(T.endTimeField=e.name,e.type="esriFieldTypeDate"):T.endTimeField=null}if(T.trackIdField){const e=B.get(T.trackIdField);e?T.trackIdField=e.name:(T.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:T}}))}T.startTimeField||T.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:T}}),T=null)}const A=B.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??"UTC"}:null;this._createDefaultAttributes=(0,c.Vx)(F,w),this._uniqueIdInfo=e.uniqueIdInfo??void 0;const C={warnings:t,featureErrors:[],layerDefinition:{...I,drawingInfo:(0,c.F0)(S),templates:(0,c.e2)(F),extent:x,geometryType:S,objectIdField:w,fields:r,hasZ:a,hasM:o,timeInfo:T,dateFieldsTimeReference:A,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:w};if(this._queryEngine=new d.do({fieldsIndex:p.A.fromLayerJSON({fields:r,timeInfo:T,dateFieldsTimeReference:A}),geometryType:S,hasM:o,hasZ:a,featureIdInfo:R,spatialReference:b,featureStore:new l.A({geometryType:S,hasM:o,hasZ:a}),timeInfo:T}),!n?.length)return this._nextObjectId=1,C;if(w){const e=(0,u.H)(w,n);this._nextObjectId=e+1}return await(0,h.Nk)(n,b),this._loadInitialFeatures(C,n)}async applyEdits(e){const{spatialReference:t,geometryType:n}=this._queryEngine;return await Promise.all([(0,m.$1)(t,n),(0,h.Nk)(e.adds,t),(0,h.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let n,s,i=null,o=null,a=null;for(const t of e){const e=t.geometry;if(null!=e&&(i||(i=(0,r.$B)(e)),o||(o=e.spatialReference),null==n&&(n=b(e)),null==s&&(s=x(e)),i&&o&&null!=n&&null!=s))break}if(t&&t.length){let e=null;t.some(t=>{const n="esriFieldTypeOID"===t.type,s=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,n||s})&&(a=e.name)}return{geometryType:i,spatialReference:o,objectIdField:a,hasM:s,hasZ:n}}async _loadInitialFeatures(e,t){const{geometryType:n,hasM:s,hasZ:i,spatialReference:o,featureStore:u,fieldsIndex:l,featureIdInfo:d}=this._queryEngine,c=[];for(const s of t){if(null!=s.uid&&(e.assignedObjectIds[s.uid]=-1),s.geometry&&n!==(0,r.$B)(s.geometry)){e.featureErrors.push((0,m.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),i=(0,m.MB)(l,t,s.attributes,!0);i?e.featureErrors.push(i):(this._assignObjectId(t,s.attributes,!0),s.attributes=t,s.uid&&(e.assignedObjectIds[s.uid]=S(s,d).objectId),null!=s.geometry&&(s.geometry=(0,h.Cv)(s.geometry,s.geometry.spatialReference,o)),c.push(s))}u.addMany((0,a.Di)([],c,n,i,s,d));const{fullExtent:p,timeExtent:f}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=p,f){const{start:t,end:n}=f;e.layerDefinition.timeInfo.timeExtent=[t,n]}return e}async _applyEdits(e){const{adds:t,updates:n,deletes:s}=e,i={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(i,t),n?.length&&this._applyUpdateEdits(i,n),s?.length){for(const e of s)i.deleteResults.push((0,m.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:i}}_applyAddEdits(e,t){const{addResults:n,updateResults:i}=e,{geometryType:o,hasM:u,hasZ:l,spatialReference:d,featureStore:c,featureIdInfo:p,fieldsIndex:f}=this._queryEngine,y=[],g=new Map;for(const a of t){if(a.geometry&&o!==(0,r.$B)(a.geometry)){n.push((0,m.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),u=(0,m.MB)(f,t,a.attributes);if(u){n.push(u);continue}this._assignObjectId(t,a.attributes),a.attributes=t;const{objectId:l,missingFields:_}=S(a,p);if(l){if(null!=a.uid&&(e.uidToObjectId[a.uid]=l),null!=a.geometry){const e=a.geometry.spatialReference??d;a.geometry=(0,h.Cv)((0,m.CR)(a.geometry,e),e,d)}y.push(a);const t=(0,m.bP)(l);g.has(l)?(0,s.TF)(y,g.get(l)):c.has(l)?i.push(t):n.push(t),g.set(l,a)}else n.push((0,m.Yx)(`Missing unique id field value for fields: ${_.join()}`))}c.addMany((0,a.Di)([],y,o,l,u,p))}_applyUpdateEdits({updateResults:e},t){const{geometryType:n,hasM:s,hasZ:i,spatialReference:o,featureStore:u,fieldsIndex:l,featureIdInfo:d}=this._queryEngine;for(const c of t){const{attributes:t,geometry:p}=c,{objectId:f,missingFields:y}=S(c,d);if(null==f){const t="unique-id-composite"===d.type?y:d.fieldName;e.push((0,m.Yx)(`Identifier fields: ${t} missing`));continue}if(!u.has(f)){e.push((0,m.Yx)(`Feature with object id ${f} missing`));continue}const g=(0,a.oN)(u.getFeature(f),n,i,s);if(null!=p){if(n!==(0,r.$B)(p)){e.push((0,m.Yx)("Incorrect geometry type."));continue}const t=p.spatialReference??o;g.geometry=(0,h.Cv)((0,m.CR)(p,t),t,o)}if(t){const n=(0,m.MB)(l,g.attributes,t);if(n){e.push(n);continue}}u.add((0,a.E2)(g,n,i,s,d)),e.push((0,m.bP)(f))}}_assignObjectId(e,t,n=!1){if("object-id"===this._queryEngine.featureIdInfo.type){const s=this._queryEngine.featureIdInfo.fieldName;n&&t&&isFinite(t[s])?e[s]=t[s]:e[s]=this._nextObjectId++}}}},64714(e,t,n){n.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>m});var s=n(44208),i=n(4718),r=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function h(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let n="";t&&(n+=`this${d(t)} = null;`);for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new s}catch(n){return()=>t?{[t]:null,...e}:{...e}}}function d(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function m(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,n){n.d(t,{$1:()=>_,CR:()=>g,MB:()=>p,Yx:()=>h,bP:()=>c});var s=n(67482),i=n(93146),r=n(60408),o=n(21325),a=n(30524);class u{constructor(e){this.description=e,this.code=null}}class l{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new u(e)}}function h(e){return new l(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const m=new Set;function p(e,t,n,s=!1){m.clear();for(const i in n){const r=e.get(i);if(!r)continue;const o=f(r,n[i]);if(m.add(r.name),r&&(s||r.editable)){const e=(0,a.CJ)(r,o);if(e)return h((0,a.uo)(e,r,o));t[r.name]=o}}for(const t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function f(e,t){let n=t;return(0,a.WA)(e)&&"string"==typeof t?n=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,a.vE)(e)&&"string"==typeof t&&(n=(0,s._)(t)),(0,a.WX)(n)}const y=(0,i.z)(()=>Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1075)]).then(n.bind(n,3637)));function g(e,t){if(!(0,r.Bi)(e)&&!(0,r.Rg)(e))return e;if(!(0,o.fn)(t))return e;const n=y.module;if(null==n)throw new TypeError("simplify operator not loaded");return n.execute({...e,spatialReference:t})??e}async function _(e,t){!(0,o.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await y.getImportPromise()}n.d(t,["PC",0,{supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}])},98453(e,t,n){const s=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,s])},93470(e,t,n){const s=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};n.d(t,["Cb",0,i,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,r])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,2465,7992,8125],{64064(e,t,r){r.d(t,{executeNearestVertex:()=>u});var n=r(95213),s=r(88194),i=r(78125);function o(e,t,r){if(e.getPointCount()<=0)return"left";const n=e.querySegmentIteratorAtVertex(r),s=n.hasPreviousSegment()?n.previousSegment():n.nextSegment();return function(e,t,r){const n=(t.x-e.x)*(r.y-e.y)-(r.x-e.x)*(t.y-e.y);return n>0?"left":n<0?"right":"straddle"}(s.getStartXY(),s.getEndXY(),t)}const a=new s.O;function u(e,t){const r=(0,i.fromGeometry)(e),s=(0,i.fromPoint)(t).getXY(),u=a.getNearestVertex(r,s);if(u.isEmpty())return null;switch(e.type){case"point":return{coordinate:e,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"};case"multipoint":{const t=new n.P;return r.getPointByVal(u.m_vertexIndex,t),{coordinate:(0,i.toPoint)(t,(0,i.getSpatialReference)(e)),distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"}}case"polyline":case"polygon":{const t=new n.P;return r.getPointByVal(u.m_vertexIndex,t),{coordinate:(0,i.toPoint)(t,(0,i.getSpatialReference)(e)),distance:u.m_distance,sideOfLine:o(r,s,u.m_vertexIndex)}}default:throw new Error(`Unsupported geometry type: ${e.type}`)}}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},88194(e,t,r){r.d(t,{O:()=>g});var n=r(55537),s=r(79187),i=r(83661),o=r(39117);function a(){return u(new i.P,-1,Number.NaN)}function u(e,t,r){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:r,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function h(e,t,r=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,n.h)(u))return function(e,t,r,s){if(r>=0||s>=0)return(0,n.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const r=i.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return r<0?1:r>0?0:2}const o=e.getClosestCoordinate(t,!1),a=e.getTangent(o),u=e.getCoord2D(o),c=i.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,r,a);if(u===n.G.enumPolygon)return function(e,t,r,i){(r>=0||i>=0)&&(0,n.a)("");const a=new s.Envelope2D;e.queryEnvelope(a);const u=(0,o.I)(e,t,0);return 0===u?0:1===u?1:2}(e,t,r,a);if(u===n.G.enumPolyline)return function(e,t,r,s){(r<0&&s>=0||r>=0&&s<0)&&(0,n.a)("");const o=e.querySegmentIterator();if(r<0){let e=Number.MAX_VALUE,n=0;for(;o.nextPath();)for(;o.hasNextSegment();){const a=o.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),h=i.P.sqrDistance(c,t);h<e?(n=1,r=o.getStartPointIndex(),s=o.getPathIndex(),e=h):h===e&&n++}if(0===n)return 3;if(1===n)return o.resetToVertex(r,s),h(o.nextSegment(),t)}const a=function(e,t,r,n){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,r){for(e.resetToVertex(t,r);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,r);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,r,n),-1!==s.i1){t.resetToVertex(s.i1,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n),a=i.P.sqrDistance(o,e);{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight1=t.crossProduct(n)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n);if(i.P.sqrDistance(o,e)>a)s.i2=-1;else{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight2=t.crossProduct(n)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n);if(i.P.sqrDistance(o,e)>a)s.i2=-1;else{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight2=t.crossProduct(n)<0;const i=s.i1;s.i1=s.i2,s.i2=i;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,o,r,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{o.resetToVertex(a.i1,-1);const e=o.nextSegment().getTangent(1);o.resetToVertex(a.i2,-1);const t=o.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return o.resetToVertex(r,s),h(o.nextSegment(),t)}(e,t,r,a);if(u===n.G.enumEnvelope){const r=new s.Envelope2D;return e.queryEnvelope(r),r.contains(t)?r.containsExclusive(t)?1:2:0}return 3}var l=r(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,r,s){if(t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case n.G.enumPolyline:case n.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,r,s);default:(0,n.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,n.t)("")}}getNearestVertices(e,t,r,s){if(0===s&&(0,n.a)(""),t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertices(e,t,r,s);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,r,s);default:(0,n.t)("")}}multiPathGetNearestCoordinate(e,t,r,a){if(e.getGeometryType()===n.G.enumPolygon&&r){const r=new s.Envelope2D;e.queryEnvelope(r);const n=(0,l.d)(null,r,!1);let i;if(i=(0,o.I)(e,t,a?0:n),0!==i){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new i.P;let f=-1,m=-1,x=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),r=e.getClosestCoordinate(t,!1),n=e.getCoord2D(r),s=i.P.sqrDistance(n,t);s<x?(d=1,g.assign(n),f=c.getStartPointIndex(),m=c.getPathIndex(),x=s):s===x&&d++}-1===f&&(0,n.a)("");const p=u(g,f,Math.sqrt(x));if(a)if(e.getGeometryType()!==n.G.enumPolygon){let r=!1;if(d>1){const n=h(e,t,f,m);r=0!==n&&3!==n}else c.resetToVertex(f,m),r=0!==h(c.nextSegment(),t);p.m_bRightSide=r}else r||0!==(0,o.I)(e,t,0)&&(p.m_bRightSide=!0);return p}pointGetNearestVertex(e,t){const r=e.getXY();return u(r,0,i.P.distance(r,t))}multiVertexGetNearestVertex(e,t){const r=e.getAttributeStreamRef(0),n=e.getPointCount();let s=-1;const o=new i.P;let a=Number.MAX_VALUE;const c=new i.P;for(let e=0;e<n;e++){r.queryPoint2D(2*e,c);const n=i.P.sqrDistance(c,t);n<a&&(o.assign(c),s=e,a=n)}return u(o,s,Math.sqrt(a))}pointGetNearestVertices(e,t,r,n){const s=[];if(0!==n){const n=r*r,o=e.getXY(),a=i.P.sqrDistance(o,t);a<=n&&s.push(u(o,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(e,t,r,n){const s=[];if(0!==n){const o=e.getAttributeStreamRef(0),a=e.getPointCount();s.length=n+1;const c=r*r;for(let e=0;e<a;e++){const r=o.read(2*e),n=o.read(2*e+1),a=t.x-r,h=t.y-n,l=a*a+h*h;l<=c&&s.push(u(i.P.construct(r,n),e,Math.sqrt(l)))}s.sort((e,t)=>e.m_distance-t.m_distance)}return s.slice(0,n)}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=h;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+l:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return h+e.length*t}const c=32,h=16,l=145},87992(e,t,r){r.d(t,{JR:()=>V,ME:()=>C,MY:()=>E,NO:()=>P,Nh:()=>S,V2:()=>_,_s:()=>A,e6:()=>Z,gh:()=>M,tr:()=>I,uX:()=>x});var n=r(5482),s=r(16930),i=r(19419),o=r(60408),a=r(21325),u=r(513),c=r(50954),h=r(79567),l=r(52006),g=r(49663),f=r(46068),m=r(92722);class x{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:g,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=g,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=_(e,t,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new d(this):[][Symbol.iterator]()}}class d{constructor(e){this.geometry=e,this.value=new p(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(e){this.geometry=e,this.index=-1,this._readVertex=b(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new v(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],n=t[r++],s=t[r++],i=t[r++];return{b:[this.end,[e,n],[s,i]]}}const n=t[r++],s=t[r++],i=t[r++],o=t[r++],a=t[r++],u=t[r++];r++,r++;const c=t[r++],h=t[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[c,h]]};const l=2&n?0:1,g=1&n?0:1;return{a:[this.end,[a,u],l,g,o,s,i]}}}function P(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,n.mS)(r,new R(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:s,vertexZ:o,vertexM:a}=e,u=w(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new R(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,h.e)(s,e,r),e=(0,l.yP)(r)}const[o,a,c,g]=s;t={xmin:o,ymin:a,xmax:c,ymax:g,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,i,o;e=n=1/0,i=o=-1/0;for(let t=0;t<r;++t){const r=s[2*t],a=s[2*t+1];e=Math.min(e,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}t={xmin:e,ymin:n,xmax:i,ymax:o,spatialReference:u}}if(o){let e=1/0,r=-1/0;for(const t of o)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(const t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function C(e){let t,r,n;if((0,o.fT)(e)){n="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],t=1}else(0,o.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,G(t[0],(0,l.yP)(t.at(-1)))&&--e),e),0));const s=_(n,t,n.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,l.Ed)(e)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:c,vertexM:h}=s;function g(e){u[2*m]=e[0],u[2*m+1]=e[1],i&&(c[m]=e[2]),a&&(h[m]=e[f]),++m}s.spatialReference=e.spatialReference??void 0;const f=s.hasZ?3:2;let m=0;if(!s.isMultipart()){if(!i&&!a){for(const[e,t]of r[0])u[2*m]=e,u[2*m+1]=t,++m;return s}for(const e of r[0])g(e);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!(0,l.Ed)(e)){for(const e of r){if(d[p++]=m,0===e.length)continue;let t=e.length;if(x&&G(e[0],e.at(-1))&&--t,i||a)for(let r=0;r<t;++r)g(e[r]);else for(let r=0;r<t;++r){const[t,n]=e[r];u[2*m]=t,u[2*m+1]=n,++m}}return d[p]=m,s}function y(e){const t=v+e;if(t<=(s.segmentParams?.length??0))return;let r=t*Y;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const e of r){if(s.partOffsets[p++]=m,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const n=e[t];g(r);const i=m-1;(0,l.wY)(n)?(y(10),++s.segmentCountArc,v=A(r,n,s,i,v),r=n.a[0]):(0,l.DA)(n)?(y(10),++s.segmentCountArc,v=N(r,n,s,i,v),r=n.a[0]):(0,l.aO)(n)?(y(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.c[0]):(0,l.n1)(n)?(y(4),++s.segmentCountBezier,v=I(0,n,s,i,v),r=n.b[0]):r=n}x&&G(t,r)||g(r)}return s.partOffsets[p]=m,s}function M(e){const t=b(e),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=e,o=w(e);if("point"===e.type){const[t,r]=e.vertexXY,n=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<r;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=e.partOffsets[s+1],i=new Array;for(;a<n;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function S(e,{lengths:t,coords:r,hasZ:n,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);n??=!1,s??=!1;const c=_(e,u,o,n,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=r[t++],c.vertexXY[2*e+1]=r[t++],n&&(c.vertexZ[e]=r[t++]),s&&(c.vertexM[e]=r[t++]);return c}const h=2+Number(n)+Number(s);let l=0,g=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[g],i=t+e-Number(a);c.partOffsets[++g]=i;for(let e=t;e<i;++e)c.vertexXY[2*e]=r[l++],c.vertexXY[2*e+1]=r[l++],n&&(c.vertexZ[e]=r[l++]),s&&(c.vertexM[e]=r[l++]);a&&(l+=h)}return c}function V({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new m.A([],[],a,u);i=Math.max(i,1);const h="polygon"===e;let l=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,g=c.coords.length;for(let e=l;e<i;++e)c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e]);if(h){const e=l;c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-g)/c.stride),l=i}return"point"===e&&(c.lengths.length=0),c}function E(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);const s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new x({...e.toFlatGeometry(),spatialReference:t})}class R{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function w({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function b({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function G(e,t){return e.every((e,r)=>e===t[r])}function _(e,t,r,n,s,i,o,a){o??=0,a??=0;const u=new x({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(r+1)*Int32Array.BYTES_PER_ELEMENT,c+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*t),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(h,l,t),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,t),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,t),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,t),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,c],h,l,g,m,x]=t.a;let d=4;l||(d|=1),h||(d|=2);const p=(0,f.SW)(e,t),[y,v]=(0,f.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=g,s[o++]=u,s[o++]=c,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=y,s[o++]=v,o}function N(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,g.io)(e,t);return O(a,4,...(0,u.mq)(a,.5),s,o)}function Z(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,O((0,c.pM)(e,t),0,...t.c[1],s,o)}function O(e,t,r,n,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function I(e,{b:[t,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=r,u[h++]=n,u[h++]=s,u[h++]=i,h}const Y=1.61803,X=-1},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>d,fromGeometry:()=>x,fromMultipoint:()=>p,fromPoint:()=>y,fromPolygon:()=>v,fromPolyline:()=>P,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>M,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>S,toMultipoint:()=>E,toPoint:()=>R,toPolygon:()=>w,toPolyline:()=>b});var n=r(83661),s=r(55537),i=r(95213),o=r(88885),a=r(5443),u=r(48526),c=r(86738),h=r(39829),l=r(82799),g=(r(90293),r(83299));const f="_gxVersion";function m(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return y(e);case"multipoint":return p(e);case"polyline":return P(e);case"polygon":return v(e);case"extent":return d(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function d(e){if(!e.getCacheValue(f)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function p(e){if(!e.getCacheValue(f)){const t=new o.M,r=new i.P,n=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=n.length;e<i;e++){const i=n[e];r.setXYCoords(i[0],i[1]),a&&r.setZ(i[2]??0),s&&r.setM(i[u]??NaN),t.add(r)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function y(e){if(!e.getCacheValue(f)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:r,hasZ:n,rings:s}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:n,rings:s});e.setCacheValue(f,i)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:r,hasZ:n,paths:s}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:n,paths:s});e.setCacheValue(f,i)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:r,hasZ:n,paths:s}=e,i=(0,g.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:n,paths:s});e.setCacheValue(f,i)}return e.getCacheValue(f)}function M(e){return e.cache?(e.cache[f]??=(0,g.fromSpatialReference)(e),e.cache[f]):(0,g.fromSpatialReference)(e)}function S(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return R(e,t);case s.G.enumEnvelope:return V(e,t);case s.G.enumMultiPoint:return E(e,t);case s.G.enumPolyline:return b(e,t);case s.G.enumPolygon:return w(e,t)}return null}function V(e,t){if(e.isEmpty())return null;const r=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),n=e.getDescription();if(n.hasM()){const t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(n.hasZ()){const t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(f,e),r}function E(e,t){if(e.isEmpty())return null;const r=e.getDescription(),n=r.hasM(),s=r.hasZ(),o=[],a=new i.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,a);const r=[a.getX(),a.getY()];s&&r.push(a.getZ()),n&&r.push(a.getM()),o.push(r)}const c=new u.A({hasM:n,hasZ:s,points:o,spatialReference:t});return c.setCacheValue(f,e),c}function R(e,t){if(e instanceof n.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const r=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(r.m=e.getM()),s.hasZ()&&(r.z=e.getZ()),r.setCacheValue(f,e),r}function w(e,t){if(e.isEmpty())return null;const r=h.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(f,e),r}function b(e,t){if(e.isEmpty())return null;const r=l.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(f,e),r}},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){const i=r-e,o=n-t;return new s([5],[e,t,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*t],i=this.coords[n*t+1];for(let o=1;o<r;o+=1){const r=n*(t+o),a=this.coords[r],u=this.coords[r+1];e+=-.5*(a-s)*(u+i),s=a,i=u}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;const{stride:s}=this;for(const e of r){for(let r=1;r<e;r++){const e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return e?(e.set(i),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91],{90091(e,t,n){n.d(t,{createSampler:()=>C,query:()=>V});var i=n(60999),a=n(49186),s=n(97768),l=n(17676),o=n(86211),r=n(91218),c=n(19419),u=n(4576),h=n(72802);class p{constructor(e,t){this.layer=e,this.parameters=t}}class f extends p{constructor(e,t,n){super(e,n),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:n}=this.layer,i=y(t,n)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const n=t.tile?.id;t.tile=n?e[n]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends p{constructor(e,t,n,i){super(e,n),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const n=this._maximumLodForRequests(t),i=Math.min(n,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:n}=this.layer,i=y(t,n);if(!e)return i.length-1;const a=this.extent;if(null==a)return-1;for(let n=i.length-1;n>=0;n--){const s=i[n],l=s.resolution*t.size[0],o=s.resolution*t.size[1];if(Math.ceil(a.width/l)*Math.ceil(a.height/o)<=e)return n}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const n=t.id&&e[t.id];n&&(this._fetchedCandidates.add(t),this.elevationTiles.push(n))}}remapTiles(e){this._candidateTiles=x(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const n=this._candidateTiles;this._candidateTiles=[],n.forEach(n=>{if(this._fetchedCandidates.has(n))return void t?.(n);let i=!1;e(n,()=>i=!0),i?t?.(n):this._candidateTiles.push(n)}),this._candidateTiles=x(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:n,tilemapCache:i}=this.layer,a=y(n,i)[e],s=n.tileAt(a.level,t.xmin,t.ymin),l=s.extent,o=a.resolution*n.size[0],r=a.resolution*n.size[1],c=Math.ceil((t.xmax-l[0])/o),u=Math.ceil((t.ymax-l[1])/r);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const i=new h.U(s.level,s.row-e,s.col+t);n.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function d(e){return null!=e?.tileInfo}function y(e,t){const n=e.lods;if(d(t)){const{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return n.filter(t=>t.level>=e&&t.level<=i)}return n}function x(e,t){const n={},i=[];for(const a of e){const e=a.id;e&&!n[e]?(n[e]=a,i.push(a)):t?.(a)}const a=i.sort((e,t)=>e.level-t.level);return a.filter((e,n)=>{for(let i=0;i<n;i++){const n=a[i].extent;if(n&&(0,c.gR)(n,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const n=e.extent;this._samplerData=new v(t,n)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:n,data:i,dx:a,dy:s,y1:l,x0:o}=this._samplerData,{width:r,values:c,noDataValue:u}=i,h=g(s*(l-t),0,n),p=g(a*(e-o),0,n),f=Math.floor(h),m=Math.floor(p),d=f*r+m,y=d+r,x=c[d],v=c[y],w=c[d+1],T=c[y+1];if(x!==u&&v!==u&&w!==u&&T!==u){const e=p-m,t=x+(w-x)*e;return t+(v+(T-v)*e-t)*(h-f)}}}function g(e,t,n){return e<t?t:e>n?n:e}var T=n(87378),R=n(48526),A=n(86738),D=n(82799);class E{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new E(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,r.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const n=new R.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,r.project)(n,e);if(!i)return null;const a=this.coordinates.map((e,t)=>{const n=e.clone(),a=i.points[t];return n.x=a[0],n.y=a[1],n}),s=this.clone(a);return s.spatialReference=e,s}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new R.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,r.project)(t,e);if(!n)return null;const i=this.coordinates.map((e,t)=>{const i=e.clone(),a=n.points[t];return i.x=a[0],i.y=a[1],i}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){const t=new E(e);if(e instanceof E)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,n)=>{const i=e.clone(t);return i.spatialReference=n,i},t;switch(e.type){case"point":{const n=e,{hasZ:i,hasM:a}=n;return t.coordinates=i&&a?[new _(n.x,n.y,n.z,n.m)]:i?[new _(n.x,n.y,n.z)]:a?[new _(n.x,n.y,null,n.m)]:[new _(n.x,n.y)],t._exporter=(t,n)=>e.hasM?new A.A(t[0].x,t[0].y,t[0].z,t[0].m,n):new A.A(t[0].x,t[0].y,t[0].z,n),t}case"multipoint":{const n=e,{hasZ:i,hasM:a}=n;return t.coordinates=i&&a?n.points.map(e=>new _(e[0],e[1],e[2],e[3])):i?n.points.map(e=>new _(e[0],e[1],e[2])):a?n.points.map(e=>new _(e[0],e[1],null,e[2])):n.points.map(e=>new _(e[0],e[1])),t._exporter=(t,n)=>e.hasM?new R.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:n}):new R.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:n}),t}case"polyline":{const n=e,i=[],a=[],{hasZ:s,hasM:l}=e;let o=0;for(const e of n.paths)if(a.push([o,o+e.length]),o+=e.length,s&&l)for(const t of e)i.push(new _(t[0],t[1],t[2],t[3]));else if(s)for(const t of e)i.push(new _(t[0],t[1],t[2]));else if(l)for(const t of e)i.push(new _(t[0],t[1],null,t[2]));else for(const t of e)i.push(new _(t[0],t[1]));return t.coordinates=i,t._exporter=(t,n)=>{const i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=a.map(e=>i.slice(e[0],e[1]));return new D.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:n})},t}}}}class _{constructor(e,t,n=null,i=null,a=null,s=null){this.x=e,this.y=t,this.z=n,this.m=i,this.tile=a,this.elevationTile=s}clone(){return new _(this.x,this.y,this.z,this.m)}}var I=n(57984);async function V(e,t,n){if(!e)throw new a.A(F,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof E)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new a.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const i={...L,...n},l=i.signal;if("integrated-mesh-3dtiles"===e.type){const a=E.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const s=12.9*(n?.minDemResolution||0)+.71,o=await e.queryElevationCallback(a,{signal:l,maxGeometricError:s}),r=a.coordinates.map(()=>({demResolution:1,source:e})),c=await o.project(t.spatialReference,l);if(c){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);return{geometry:c.export(),noDataValue:i.noDataValue??Number.MAX_VALUE,sampleInfo:r}}}const s=a.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:a.export(),noDataValue:Number.MAX_VALUE,sampleInfo:s}}const c=new f(e,t.spatialReference,i);return await e.load({signal:l}),await async function(e,t,n){let i;const s=e.layer.tileInfo.spatialReference;if(t instanceof E?i=await t.project(s,n):(await(0,r.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:n}),i=(0,r.project)(t,s)),!i)throw new a.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=E.fromGeometry(i)}(c,t,l),await z(c,l),await S(c,l),function(e){e.geometry.coordinates.forEach(t=>{const n=t.elevationTile;let i=e.parameters.noDataValue;if(n){const e=n.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(c),async function(e,t){const n=await e.geometry.project(e.outSpatialReference,t);(0,s.Lw)(n);const i={geometry:n.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){const t=e.layer.tileInfo,n=(0,o.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let a=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(a=t.lodAt(i.elevationTile.key.level).resolution*n),{demResolution:a,source:-1===a?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(c,l)}async function C(e,t,n){if(e=Array.isArray(e)?e:[e],0===(e=n?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new a.A(F,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new a.A("elevation-query:invalid-extent","Invalid or undefined extent");const i={...L,...n,returnSampleInfo:!0},s=M(e[e.length-1],t,i);return 1===e.length?s:q(e,t,await s,i)}async function M(e,t,n,i){const a=n.signal;await e.load({signal:a});const s=t.spatialReference,l=e.tileInfo.spatialReference;s.equals(l)||(await(0,r.initializeProjection)([{source:s,dest:l}],{signal:a}),t=(0,r.project)(t,l));const o=new m(e,t,n,i);await z(o,a),await S(o,a);const c=o.elevationTiles,u=o.layer.tileInfo,h=o.parameters.noDataValue;return new I.C({noDataValue:h,tiles:c,tileInfo:u})}async function q(e,t,n,i){if(e.pop(),!e.length)return n;const a=n.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),s=await M(e[e.length-1],t,i,a);if(0===s.samplers.length)return n;const l=n.samplers.concat(s.samplers),o=i.noDataValue;return q(e,t,new I.C({samplers:l,noDataValue:o}),i)}async function z(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const n=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const i=e.x,a=e.y;(i<n.xmin||i>n.xmax||a<n.ymin||a>n.ymax)&&(e.elevationTile=t)})}(e);const n=e.parameters.demResolution;if("number"==typeof n)!function(e,t){const n=function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,a=t/(0,o.GA)(n.spatialReference),s=y(n,i);let l=s[0],r=0;for(let e=1;e<s.length;e++){const t=s[e];Math.abs(t.resolution-a)<Math.abs(l.resolution-a)&&(l=t,r=e)}return r}(e,t);e.selectTilesAtLOD(n)}(e,n);else if("finest-contiguous"===n)await async function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,a=j(n,i,e.parameters.minDemResolution);await k(e,a,t)}(e,t);else{if("auto"!==n)throw new a.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:n}=e.layer,i=j(t,n,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let n=0;const i={},a=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,n++))},s=e=>{if(null==e.id)return;const t=i[e.id];1===t?(delete i[e.id],n--):i[e.id]=t-1};e.forEachTileToFetch(a,s);let l=!0;for(;l&&(l=!1,e.forEachTileToFetch(i=>{n<=e.parameters.maximumAutoTileRequests||(s(i),t.upsampleTile(i)&&(l=!0),a(i))},s),l););}(e);const n=e.layer.tilemapCache;if(!n||d(n))return b(e,t);const a=e.getTilesToFetch(),s={},o=a.map(async e=>{const a=new h.U(0,0,0),o=await(0,i.Ke)(n.fetchAvailabilityUpsample(e.level,e.row,e.col,a,{signal:t}));!1!==o.ok?null!=e.id&&(s[e.id]=a):(0,l.QP)(o.error)});await(0,l.qr)(Promise.all(o),t),e.remapTiles(s)}(e,t)}}async function k(e,t,n){const i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const s=i.tilemapCache,o=e.getTilesToFetch();try{if(s&&!d(s))await(0,l.qr)(Promise.all(o.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:n}))),n);else if(await S(e,n),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new a.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,l.QP)(i),await k(e,t-1,n)}}async function b(e,t){const n=e.layer.tileInfo;await S(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{n.upsampleTile(e)?i=!0:t()}),i&&await b(e,t)}function j(e,t,n=0){const i=y(e,t);let a=i.length-1;if(n>0){const t=n/(0,o.GA)(e.spatialReference),s=i.findIndex(e=>e.resolution<t);0===s?a=0:s>0&&(a=s-1)}return a}const L={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function S(e,t){const n=e.getTilesToFetch(),i={},a=e.parameters.cache,s=e.parameters.noDataValue,o={noDataValue:s,signal:t},r=n.map(async t=>{if(null==t.id)return;const n=`${e.layer.uid}:${t.id}:${s}`,l=a?.get(n),r=l??T.A.from(await e.layer.fetchTile(t.level,t.row,t.col,o));a?.put(n,r),i[t.id]=new w(t,r)});await(0,l.qr)(Promise.allSettled(r),t),e.populateElevationTiles(i)}const F="elevation-query:invalid-layer"},7236(e,t,n){n.d(t,{A:()=>c});var i=n(5482),a=n(65529),s=n(53966),l=n(91429),o=n(86738),r=n(28735);let c=class extends a.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,n){return e.hasZ=!0,e.z=n.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let a=0;a<e.paths.length;a++){const s=e.paths[a],l=t.paths[a];for(let e=0;e<s.length;e++){const t=s[e],a=l[e];u.x=a[0],u.y=a[1],i&&(t[3]=t[2]),t[2]=n.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let a=0;a<e.points.length;a++){const s=e.points[a],l=t.points[a];u.x=l[0],u.y=l[1],i&&(s[3]=s[2]),s[2]=n.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const n=e.spatialReference;if(n.equals(t))return e;const i=(0,r.Cv)(e,t);return i||s.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};c=(0,i.Cg)([(0,l.$K)("esri.layers.support.ElevationSampler")],c);const u=new o.A},57984(e,t,n){n.d(t,{C:()=>u});var i=n(5482),a=n(53966),s=n(86211),l=n(91429),o=n(16930),r=n(19419),c=n(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,n="tiles"in e?e.tiles.map(n=>new h({tile:n,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:n});const i=n[0];if(i){this.extent=i.extent.clone();const{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<n.length;e++){const t=n[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,r.w1)((0,r.vt)(),t?.spatialReference??o.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let n;for(const i of this.samplers)if(i.containsAt(e,t)&&(n=i.elevationAt(e,t),n!==i.noDataValue))return n;return null!=n?n:(a.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,r.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const n=(0,s.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*n;this.demResolution={min:i,max:i}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,r.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,i.Cg)([(0,l.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91],{90091(e,t,n){n.d(t,{createSampler:()=>C,query:()=>V});var i=n(60999),a=n(49186),s=n(97768),l=n(17676),o=n(86211),r=n(99917),c=n(19419),u=n(4576),h=n(72802);class p{constructor(e,t){this.layer=e,this.parameters=t}}class f extends p{constructor(e,t,n){super(e,n),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:n}=this.layer,i=y(t,n)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const n=t.tile?.id;t.tile=n?e[n]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends p{constructor(e,t,n,i){super(e,n),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const n=this._maximumLodForRequests(t),i=Math.min(n,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:n}=this.layer,i=y(t,n);if(!e)return i.length-1;const a=this.extent;if(null==a)return-1;for(let n=i.length-1;n>=0;n--){const s=i[n],l=s.resolution*t.size[0],o=s.resolution*t.size[1];if(Math.ceil(a.width/l)*Math.ceil(a.height/o)<=e)return n}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const n=t.id&&e[t.id];n&&(this._fetchedCandidates.add(t),this.elevationTiles.push(n))}}remapTiles(e){this._candidateTiles=x(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const n=this._candidateTiles;this._candidateTiles=[],n.forEach(n=>{if(this._fetchedCandidates.has(n))return void t?.(n);let i=!1;e(n,()=>i=!0),i?t?.(n):this._candidateTiles.push(n)}),this._candidateTiles=x(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:n,tilemapCache:i}=this.layer,a=y(n,i)[e],s=n.tileAt(a.level,t.xmin,t.ymin),l=s.extent,o=a.resolution*n.size[0],r=a.resolution*n.size[1],c=Math.ceil((t.xmax-l[0])/o),u=Math.ceil((t.ymax-l[1])/r);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const i=new h.U(s.level,s.row-e,s.col+t);n.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function d(e){return null!=e?.tileInfo}function y(e,t){const n=e.lods;if(d(t)){const{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return n.filter(t=>t.level>=e&&t.level<=i)}return n}function x(e,t){const n={},i=[];for(const a of e){const e=a.id;e&&!n[e]?(n[e]=a,i.push(a)):t?.(a)}const a=i.sort((e,t)=>e.level-t.level);return a.filter((e,n)=>{for(let i=0;i<n;i++){const n=a[i].extent;if(n&&(0,c.gR)(n,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const n=e.extent;this._samplerData=new v(t,n)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:n,data:i,dx:a,dy:s,y1:l,x0:o}=this._samplerData,{width:r,values:c,noDataValue:u}=i,h=g(s*(l-t),0,n),p=g(a*(e-o),0,n),f=Math.floor(h),m=Math.floor(p),d=f*r+m,y=d+r,x=c[d],v=c[y],w=c[d+1],T=c[y+1];if(x!==u&&v!==u&&w!==u&&T!==u){const e=p-m,t=x+(w-x)*e;return t+(v+(T-v)*e-t)*(h-f)}}}function g(e,t,n){return e<t?t:e>n?n:e}var T=n(87378),R=n(48526),A=n(86738),D=n(82799);class E{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new E(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,r.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const n=new R.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,r.project)(n,e);if(!i)return null;const a=this.coordinates.map((e,t)=>{const n=e.clone(),a=i.points[t];return n.x=a[0],n.y=a[1],n}),s=this.clone(a);return s.spatialReference=e,s}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new R.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,r.project)(t,e);if(!n)return null;const i=this.coordinates.map((e,t)=>{const i=e.clone(),a=n.points[t];return i.x=a[0],i.y=a[1],i}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){const t=new E(e);if(e instanceof E)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,n)=>{const i=e.clone(t);return i.spatialReference=n,i},t;switch(e.type){case"point":{const n=e,{hasZ:i,hasM:a}=n;return t.coordinates=i&&a?[new _(n.x,n.y,n.z,n.m)]:i?[new _(n.x,n.y,n.z)]:a?[new _(n.x,n.y,null,n.m)]:[new _(n.x,n.y)],t._exporter=(t,n)=>e.hasM?new A.A(t[0].x,t[0].y,t[0].z,t[0].m,n):new A.A(t[0].x,t[0].y,t[0].z,n),t}case"multipoint":{const n=e,{hasZ:i,hasM:a}=n;return t.coordinates=i&&a?n.points.map(e=>new _(e[0],e[1],e[2],e[3])):i?n.points.map(e=>new _(e[0],e[1],e[2])):a?n.points.map(e=>new _(e[0],e[1],null,e[2])):n.points.map(e=>new _(e[0],e[1])),t._exporter=(t,n)=>e.hasM?new R.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:n}):new R.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:n}),t}case"polyline":{const n=e,i=[],a=[],{hasZ:s,hasM:l}=e;let o=0;for(const e of n.paths)if(a.push([o,o+e.length]),o+=e.length,s&&l)for(const t of e)i.push(new _(t[0],t[1],t[2],t[3]));else if(s)for(const t of e)i.push(new _(t[0],t[1],t[2]));else if(l)for(const t of e)i.push(new _(t[0],t[1],null,t[2]));else for(const t of e)i.push(new _(t[0],t[1]));return t.coordinates=i,t._exporter=(t,n)=>{const i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=a.map(e=>i.slice(e[0],e[1]));return new D.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:n})},t}}}}class _{constructor(e,t,n=null,i=null,a=null,s=null){this.x=e,this.y=t,this.z=n,this.m=i,this.tile=a,this.elevationTile=s}clone(){return new _(this.x,this.y,this.z,this.m)}}var I=n(57984);async function V(e,t,n){if(!e)throw new a.A(F,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof E)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new a.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const i={...L,...n},l=i.signal;if("integrated-mesh-3dtiles"===e.type){const a=E.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const s=12.9*(n?.minDemResolution||0)+.71,o=await e.queryElevationCallback(a,{signal:l,maxGeometricError:s}),r=a.coordinates.map(()=>({demResolution:1,source:e})),c=await o.project(t.spatialReference,l);if(c){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);return{geometry:c.export(),noDataValue:i.noDataValue??Number.MAX_VALUE,sampleInfo:r}}}const s=a.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:a.export(),noDataValue:Number.MAX_VALUE,sampleInfo:s}}const c=new f(e,t.spatialReference,i);return await e.load({signal:l}),await async function(e,t,n){let i;const s=e.layer.tileInfo.spatialReference;if(t instanceof E?i=await t.project(s,n):(await(0,r.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:n}),i=(0,r.project)(t,s)),!i)throw new a.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=E.fromGeometry(i)}(c,t,l),await z(c,l),await S(c,l),function(e){e.geometry.coordinates.forEach(t=>{const n=t.elevationTile;let i=e.parameters.noDataValue;if(n){const e=n.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(c),async function(e,t){const n=await e.geometry.project(e.outSpatialReference,t);(0,s.Lw)(n);const i={geometry:n.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){const t=e.layer.tileInfo,n=(0,o.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let a=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(a=t.lodAt(i.elevationTile.key.level).resolution*n),{demResolution:a,source:-1===a?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(c,l)}async function C(e,t,n){if(e=Array.isArray(e)?e:[e],0===(e=n?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new a.A(F,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new a.A("elevation-query:invalid-extent","Invalid or undefined extent");const i={...L,...n,returnSampleInfo:!0},s=M(e[e.length-1],t,i);return 1===e.length?s:q(e,t,await s,i)}async function M(e,t,n,i){const a=n.signal;await e.load({signal:a});const s=t.spatialReference,l=e.tileInfo.spatialReference;s.equals(l)||(await(0,r.initializeProjection)([{source:s,dest:l}],{signal:a}),t=(0,r.project)(t,l));const o=new m(e,t,n,i);await z(o,a),await S(o,a);const c=o.elevationTiles,u=o.layer.tileInfo,h=o.parameters.noDataValue;return new I.C({noDataValue:h,tiles:c,tileInfo:u})}async function q(e,t,n,i){if(e.pop(),!e.length)return n;const a=n.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),s=await M(e[e.length-1],t,i,a);if(0===s.samplers.length)return n;const l=n.samplers.concat(s.samplers),o=i.noDataValue;return q(e,t,new I.C({samplers:l,noDataValue:o}),i)}async function z(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const n=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const i=e.x,a=e.y;(i<n.xmin||i>n.xmax||a<n.ymin||a>n.ymax)&&(e.elevationTile=t)})}(e);const n=e.parameters.demResolution;if("number"==typeof n)!function(e,t){const n=function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,a=t/(0,o.GA)(n.spatialReference),s=y(n,i);let l=s[0],r=0;for(let e=1;e<s.length;e++){const t=s[e];Math.abs(t.resolution-a)<Math.abs(l.resolution-a)&&(l=t,r=e)}return r}(e,t);e.selectTilesAtLOD(n)}(e,n);else if("finest-contiguous"===n)await async function(e,t){const{tileInfo:n,tilemapCache:i}=e.layer,a=j(n,i,e.parameters.minDemResolution);await k(e,a,t)}(e,t);else{if("auto"!==n)throw new a.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:n}=e.layer,i=j(t,n,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let n=0;const i={},a=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,n++))},s=e=>{if(null==e.id)return;const t=i[e.id];1===t?(delete i[e.id],n--):i[e.id]=t-1};e.forEachTileToFetch(a,s);let l=!0;for(;l&&(l=!1,e.forEachTileToFetch(i=>{n<=e.parameters.maximumAutoTileRequests||(s(i),t.upsampleTile(i)&&(l=!0),a(i))},s),l););}(e);const n=e.layer.tilemapCache;if(!n||d(n))return b(e,t);const a=e.getTilesToFetch(),s={},o=a.map(async e=>{const a=new h.U(0,0,0),o=await(0,i.Ke)(n.fetchAvailabilityUpsample(e.level,e.row,e.col,a,{signal:t}));!1!==o.ok?null!=e.id&&(s[e.id]=a):(0,l.QP)(o.error)});await(0,l.qr)(Promise.all(o),t),e.remapTiles(s)}(e,t)}}async function k(e,t,n){const i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const s=i.tilemapCache,o=e.getTilesToFetch();try{if(s&&!d(s))await(0,l.qr)(Promise.all(o.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:n}))),n);else if(await S(e,n),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new a.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,l.QP)(i),await k(e,t-1,n)}}async function b(e,t){const n=e.layer.tileInfo;await S(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{n.upsampleTile(e)?i=!0:t()}),i&&await b(e,t)}function j(e,t,n=0){const i=y(e,t);let a=i.length-1;if(n>0){const t=n/(0,o.GA)(e.spatialReference),s=i.findIndex(e=>e.resolution<t);0===s?a=0:s>0&&(a=s-1)}return a}const L={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function S(e,t){const n=e.getTilesToFetch(),i={},a=e.parameters.cache,s=e.parameters.noDataValue,o={noDataValue:s,signal:t},r=n.map(async t=>{if(null==t.id)return;const n=`${e.layer.uid}:${t.id}:${s}`,l=a?.get(n),r=l??T.A.from(await e.layer.fetchTile(t.level,t.row,t.col,o));a?.put(n,r),i[t.id]=new w(t,r)});await(0,l.qr)(Promise.allSettled(r),t),e.populateElevationTiles(i)}const F="elevation-query:invalid-layer"},7236(e,t,n){n.d(t,{A:()=>c});var i=n(5482),a=n(65529),s=n(53966),l=n(91429),o=n(86738),r=n(28735);let c=class extends a.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,n){return e.hasZ=!0,e.z=n.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let a=0;a<e.paths.length;a++){const s=e.paths[a],l=t.paths[a];for(let e=0;e<s.length;e++){const t=s[e],a=l[e];u.x=a[0],u.y=a[1],i&&(t[3]=t[2]),t[2]=n.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,n){u.spatialReference=t.spatialReference;const i=e.hasM&&!e.hasZ;for(let a=0;a<e.points.length;a++){const s=e.points[a],l=t.points[a];u.x=l[0],u.y=l[1],i&&(s[3]=s[2]),s[2]=n.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const n=e.spatialReference;if(n.equals(t))return e;const i=(0,r.Cv)(e,t);return i||s.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};c=(0,i.Cg)([(0,l.$K)("esri.layers.support.ElevationSampler")],c);const u=new o.A},57984(e,t,n){n.d(t,{C:()=>u});var i=n(5482),a=n(53966),s=n(86211),l=n(91429),o=n(16930),r=n(19419),c=n(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,n="tiles"in e?e.tiles.map(n=>new h({tile:n,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:n});const i=n[0];if(i){this.extent=i.extent.clone();const{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<n.length;e++){const t=n[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,r.w1)((0,r.vt)(),t?.spatialReference??o.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let n;for(const i of this.samplers)if(i.containsAt(e,t)&&(n=i.elevationAt(e,t),n!==i.noDataValue))return n;return null!=n?n:(a.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,r.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const n=(0,s.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*n;this.demResolution={min:i,max:i}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,r.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,i.Cg)([(0,l.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2932],{68197(t,e,i){i.d(e,{A:()=>l});var n=i(40876),r=i(4576),s=i(34727),o=i(56507);function a(t){return(0,s.qE)((0,o.Vr)(t),0,255)}function h(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class l{static blendColors(t,e,i,n=new l){return n.r=Math.round(t.r+(e.r-t.r)*i),n.g=Math.round(t.g+(e.g-t.g)*i),n.b=Math.round(t.b+(e.b-t.b)*i),n.a=t.a+(e.a-t.a)*i,n._sanitize()}static fromRgb(t,e){const i=(0,n.lT)(t);return i?l.fromArray(i,e):null}static fromHex(t,e=new l){const i=(0,n.oW)(t);return i?l.fromArray(i,e):null}static fromArray(t,e=new l){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 i=(0,n.Eq)(t);return i?l.fromArray(i,e):null}static fromJSON(t){return null!=t?new l([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}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){if("string"==typeof t)l.fromString(t,this);else if((0,r.yc)(t))l.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof l||this._sanitize()}return 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,i=t?.digits??6,n=3===i||4===i,r=4===i||8===i,s=`#${h(this.r,n)}${h(this.g,n)}${h(this.b,n)}${r?h(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=a(this.r),i=a(this.g),n=a(this.b);return 0===t||1!==this.a?[e,i,n,a(255*this.a)]:[e,i,n]}clone(){return new l(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,i,n){this.r=t,this.g=e,this.b=i,this.a=n}}l.prototype.declaredClass="esri.Color"},40876(t,e,i){i.d(e,{Eq:()=>f,G1:()=>d,TS:()=>s,V6:()=>r,Vm:()=>g,ay:()=>h,c1:()=>_,c4:()=>o,j5:()=>l,lT:()=>u,oW:()=>c,xV:()=>p});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(t){return!!n[t]||!!n[t.toLowerCase()]}function s(t){return n[t]??n[t.toLowerCase()]}function o(t){return[...s(t)]}function a(t,e,i){i<0&&++i,i>1&&--i;const n=6*i;return n<1?t+(e-t)*n:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function h(t,e,i,n=1){const r=(t%360+360)%360/360,s=i<=.5?i*(e+1):i+e-i*e,o=2*i-s;return[Math.round(255*a(o,s,r+1/3)),Math.round(255*a(o,s,r)),Math.round(255*a(o,s,r-1/3)),n]}function l(t){const e=t.length>5,i=e?8:4,n=(1<<i)-1,r=e?1:17,s=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let h;return s&&(h=o&n,o>>=i,a[3]=r*h/255),h=o&n,o>>=i,a[2]=r*h,h=o&n,o>>=i,a[1]=r*h,h=o&n,o>>=i,a[0]=r*h,a}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),i=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),r=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,i+16*i,n+16*n,(r+16*r)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function u(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),i=e[1];if("rgb"===i&&3===t.length||"rgba"===i&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),m(e)}return m(t.map(t=>parseFloat(t)))}if("hsl"===i&&3===t.length||"hsla"===i&&4===t.length)return h(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function m(t){return t[0]=_(t[0]),t[1]=_(t[1]),t[2]=_(t[2]),t[3]=4===t.length?d(t[3]):1,t}function f(t){let e=r(t)?s(t):null;return e??=u(t),e??=c(t),e}function g(t){const e=f(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function d(t){return y(t,0,1)}function _(t){return Math.round(y(t,0,255))}function y(t,e,i){return t=Number(t),isNaN(t)?i:t<e?e:t>i?i:t}const b=1/2.2;function p(t){return t**b}i.d(e,["iw",0,b])},7762(t,e,i){var n,r=i(5482),s=i(98291),o=i(4576),a=i(65529),h=i(36563),l=i(4718),c=i(53966),u=i(93687),m=i(76030),f=i(56507),g=i(62788),d=i(10107),_=i(7695),y=i(64108),b=i(95488),p=i(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class M{constructor(t,e,i,n,r){this.target=t,this.added=e,this.removed=i,this.start=n,this.deleteCount=r}}const z=new u.A(()=>new v,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function w(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function x(t){return t?t instanceof E?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function S(t){if(t?.length)return t[0]}function C(t,e,i,n){const r=Math.min(t.length-i,e.length-n);let s=0;for(;s<r&&t[i+s]===e[n+s];)s++;return s}function A(t,e,i,n){e&&e.forEach((e,r,s)=>{t.push(e),A(t,i.call(n,e,r,s),i,n)})}const I=new Set,L=new Set,k=new Set,T=new Map;let N=0,E=n=class extends a.nJ{static ofType(t){if(!t)return n;if(T.has(t))return T.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const i in t.typeMap){const n=t.typeMap[i].prototype.declaredClass;e?e+=` | ${n}`:e=n}let i=class extends n{};return(0,r.Cg)([(0,_.u)({Type:t,ensureType:"function"==typeof t?(0,f.dp)(t):(0,f.aq)(t)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${e}>`)],i),T.set(t,i),i}static isCollection(t){return null!=t&&t instanceof n}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:N++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof n?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,g.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,h.hA)();if("change"===t){const t=this._chgListeners,i={removed:!1,callback:e};return t.push(i),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,h.hA)(()=>{i.removed=!0,t.splice(t.indexOf(i),1)})}return super.on(t,e)}once(t,e){const i="deref"in e?()=>e.deref():()=>e,n=this.on(t,t=>{i()?.call(null,t),n.remove()});return n}add(t,e){if((0,g.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(e??null);return this._splice(i,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,g.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(e);return this._splice(i,0,x(t)),this._emitAfterChanges(1),this}at(t){if((0,g.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,g.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,g.gc)(this._observable),this._createNewInstance({items:this._items.map(l.o8)})}concat(...t){(0,g.gc)(this._observable);const e=t.map(x);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,g.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)t.call(e,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(w)}destroyMany(t){const e=this.removeMany(t);return e.forEach(w),e}every(t,e){return(0,g.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,g.gc)(this._observable);const i=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:i})}find(t,e){return(0,g.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,g.gc)(this._observable),this._items.findIndex(t,e)}findLast(t,e){return(0,g.gc)(this._observable),this._items.findLast(t,e)}findLastIndex(t,e){return(0,g.gc)(this._observable),this._items.findLastIndex(t,e)}flatten(t,e){(0,g.gc)(this._observable);const i=[];return A(i,this,t,e),new n(i)}forEach(t,e){return(0,g.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,g.gc)(this._observable),this._items[t]}getNextIndex(t){(0,g.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,g.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,g.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,g.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,g.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,g.gc)(this._observable);const i=this._items.map(t,e);return new n({items:i})}reorder(t,e=this.length-1){(0,g.gc)(this._observable);const i=this.indexOf(t);if(-1!==i){if(e<0?e=0:e>=this.length&&(e=this.length-1),i!==e){if(this._emitBeforeChanges(4))return t;this._splice(i,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,g.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=S(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,g.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,g.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(t,e):i.reduce(t)}reduceRight(t,e){(0,g.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(t,e):i.reduceRight(t)}remove(t){return(0,g.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,g.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=S(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,g.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof n?t.toArray():t,i=this._items,r=[],s=e.length;for(let t=0;t<s;t++){const n=e[t],s=i.indexOf(n);if(s>-1){const n=1+C(e,i,t+1,s+1),o=this._splice(s,n);o&&o.length>0&&r.push.apply(r,o),t+=n-1}}return this._emitAfterChanges(2),r}reverse(){if((0,g.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,g.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=S(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,g.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,g.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,g.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let i=0;i<e;i++)if(t(this.items[i],this.items[i+1])>0)return!0;return!1}splice(t,e,...i){(0,g.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const n=(e?2:0)|(i.length?1:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(t,e,i)||[];return this._emitAfterChanges(n),r}toArray(){return(0,g.gc)(this._observable),this._items.slice()}toJSON(t){return(0,g.gc)(this._observable),this.toArray().map(e=>(0,p.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,g.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,g.gc)(this._observable),this._items.toString()}unshift(...t){return(0,g.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,i){const n=this._items,r=this.itemType;let s,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,m._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=n.splice(t,e),this.hasEventListener("before-remove")){const e=z.acquire();e.target=this,e.cancellable=!0;for(let i=0,r=o.length;i<r;i++)s=o[i],e.reset(s),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(i,1),n.splice(t,0,s),t+=1,i-=1,r-=1);z.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=z.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let i=0;i<e;i++)t.reset(o[i]),this.emit("after-remove",t);z.release(t)}}if(i?.length){if(r){const t=[];for(const e of i){const i=r.ensureType(e);null==i&&null!=e||t.push(i)}i=t}const e=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),o=t===this.length;if(e||s){const r=z.acquire();r.target=this,r.cancellable=!0;const a=z.acquire();a.target=this,a.cancellable=!1;for(const h of i)e?(r.reset(h),this.emit("before-add",r),r.defaultPrevented||(o?n.push(h):n.splice(t++,0,h),this._length=n.length,s&&(a.reset(h),this.emit("after-add",a)))):(o?n.push(h):n.splice(t++,0,h),this._length=n.length,a.reset(h),this.emit("after-add",a));z.release(a),z.release(r)}else{if(o)for(const t of i)n.push(t);else n.splice(t,0,...i);this._length=n.length}}if((i?.length||o?.length)&&this._notifyChangeEvent(i,o),this.hasEventListener("after-splice")){const n=new M(this,i,o,t,e);this.emit("after-splice",n)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const i=z.acquire();i.target=this,i.cancellable=!0,i.type=t,this.emit("before-changes",i),e=i.defaultPrevented,z.release(i)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=z.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),z.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;I.clear(),L.clear(),k.clear();for(const{added:e,removed:i}of t){if(e)if(0===k.size&&0===L.size)for(const t of e)I.add(t);else for(const t of e)L.has(t)?(k.add(t),L.delete(t)):k.has(t)||I.add(t);if(i)if(0===k.size&&0===I.size)for(const t of i)L.add(t);else for(const t of i)I.has(t)?I.delete(t):(k.delete(t),L.add(t))}const i=s.A.acquire();I.forEach(t=>{i.push(t)});const n=s.A.acquire();L.forEach(t=>{n.push(t)});const r=this._items,o=e.items,a=s.A.acquire();if(k.forEach(t=>{o.indexOf(t)!==r.indexOf(t)&&a.push(t)}),e.listeners&&(i.length||n.length||a.length)){const t={target:this,added:i,removed:n,moved:a},r=e.listeners.length;for(let i=0;i<r;i++){const n=e.listeners[i];n.removed||n.callback.call(this,t)}}s.A.release(i),s.A.release(n),s.A.release(a)}I.clear(),L.clear(),k.clear()}};(0,r.Cg)([(0,d.MZ)()],E.prototype,"_updating",void 0),(0,r.Cg)([(0,d.MZ)()],E.prototype,"_length",void 0),(0,r.Cg)([(0,d.MZ)()],E.prototype,"length",null),(0,r.Cg)([(0,d.MZ)()],E.prototype,"items",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],E.prototype,"updating",null),E=n=(0,r.Cg)([(0,y.$)("esri.core.Collection")],E);const q=E;i.d(e,["A",0,q])},69052(t,e,i){i.d(e,{hr:()=>r});var n=i(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,i=!1){return s(this.range,this.min,this.max,t,e,i)}clamp(t,e=0){return(0,n.qE)(t-e,this.min,this.max)+e}monotonic(t,e,i){return t<e?e:e+o(this.range,t-e,i)}minimalMonotonic(t,e,i){return s(this.range,t,t+this.range,e,i)}center(t,e,i){return e=this.monotonic(t,e,i),this.normalize((t+e)/2,i)}diff(t,e,i){return this.monotonic(t,e,i)-t}shortestSignedDiff(t,e){t=this.normalize(t);const i=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(i)<Math.abs(n)?i:n}contains(t,e,i){return e=this.minimalMonotonic(t,e),(i=this.minimalMonotonic(t,i))>t&&i<e}}function s(t,e,i,n,r=0,s=!1){return(n-=r)<e?n+=o(t,e-n):n>i&&(n-=o(t,n-i)),s&&n===i&&(n=e),n+r}function o(t,e,i=0){return Math.ceil((e-i)/t)*t+i}const a=new r(0,2*Math.PI),h=(new r(-Math.PI,Math.PI),new r(0,360));i.d(e,["ie",0,h,"uC",0,a])},4902(t,e,i){var n=i(5482),r=i(64108);let s=0;const o=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return i=(0,n.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};o(class{}),i.d(e,["s",0,o])},66344(t,e,i){i.d(e,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,r,o){e=t.id+e;const a=this._db.get(e);if(a&&(this._size-=a.size,t.size-=a.size,this._db.delete(e),a.entry!==i&&this._notifyRemove(e,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(e,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${e}`),void this._notifyRemove(e,i,0,0);const h=1+Math.max(o,-4)- -3;this._db.set(e,new s(i,r,h)),this._size+=r,t.size+=r,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){const t=this._notifyRemove(e,i.entry,n,1);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}i.size=n,this._size+=n,t.size+=n,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,n)=>{const r=t.lifetime;i[r]=(i[r]||0)+t.size,this._clients.forEach(i=>{const{id:r,name:s}=i;if(n.startsWith(r)){const i=e[s]||0;e[s]=i+t.size}})});const n={};this._clients.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[i]||0;e[i]=r,n[i]=Math.round(100*t.hitRate)+"%"}else n[i]="0%"});const r=Object.keys(e);r.sort((t,i)=>e[i]-e[t]),r.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+n[i]);for(let e=i.length-1;e>=0;--e){const n=i[e];n&&(t["Priority "+(e+-3-1)]=Math.round(n/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,n){const r=this._clients.get(t.split(o)[0])?.removeFunc,s=r?.(e,n,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const n=e?.id;let r=!0;for(;r;){r=!1;for(const[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){const n=e??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*t)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!n||r.startsWith(n)){const n=e??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const n=this._notifyRemove(t,e.entry,e.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new r(0);class s{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new r(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},7695(t,e,i){function n(t){return(e,i)=>{e[i]=t}}i.d(e,{u:()=>n})},9093(t,e,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>r,vt:()=>n});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:r,create:n,fromValues:function(t,e,i,n,r,s,o,a,h,l,c,u,m,f,g,d){return[t,e,i,n,r,s,o,a,h,l,c,u,m,f,g,d]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>S,Bw:()=>s,C:()=>o,Cc:()=>C,DI:()=>z,Io:()=>b,Ln:()=>y,Om:()=>x,Qr:()=>u,Re:()=>l,S8:()=>w,T9:()=>d,WQ:()=>h,Z0:()=>A,_S:()=>f,aI:()=>q,ei:()=>I,fw:()=>k,gL:()=>L,hG:()=>p,hZ:()=>a,hs:()=>_,jk:()=>g,lw:()=>c,m3:()=>v,oW:()=>R,t2:()=>E,tn:()=>m,ze:()=>M});var n=i(51850),r=i(34304);function s(t){const e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t}function h(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function l(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function c(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function u(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function m(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function d(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function _(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function y(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function b(t,e){const i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(i*i+n*n+r*r)}function p(t,e){const i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return i*i+n*n+r*r}function v(t){const e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function z(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e){const i=e[0],n=e[1],r=e[2];let s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function x(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,i){const n=e[0],r=e[1],s=e[2],o=i[0],a=i[1],h=i[2];return t[0]=r*h-s*a,t[1]=s*o-n*h,t[2]=n*a-r*o,t}function C(t,e,i,n){const r=e[0],s=e[1],o=e[2];return t[0]=r+n*(i[0]-r),t[1]=s+n*(i[1]-s),t[2]=o+n*(i[2]-o),t}function A(t,e,i){const n=e[0],r=e[1],s=e[2];return t[0]=i[0]*n+i[4]*r+i[8]*s+i[12],t[1]=i[1]*n+i[5]*r+i[9]*s+i[13],t[2]=i[2]*n+i[6]*r+i[10]*s+i[14],t}function I(t,e,i){const n=e[0],r=e[1],s=e[2];return t[0]=n*i[0]+r*i[3]+s*i[6],t[1]=n*i[1]+r*i[4]+s*i[7],t[2]=n*i[2]+r*i[5]+s*i[8],t}function L(t,e,i){return k(t,e,i[0],i[1],i[2],i[3])}function k(t,e,i,n,r,s){const o=e[0],a=e[1],h=e[2],l=n*h-r*a,c=r*o-i*h,u=i*a-n*o,m=n*u-r*c,f=r*l-i*u,g=i*c-n*l,d=2*s;return t[0]=o+l*d+2*m,t[1]=a+c*d+2*f,t[2]=h+u*d+2*g,t}const T=(0,n.vt)(),N=(0,n.vt)();function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;const i=t[0],n=t[1],s=t[2],o=e[0],a=e[1],h=e[2],l=(0,r.FD)();return Math.abs(i-o)<=l*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=l*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-h)<=l*Math.max(1,Math.abs(s),Math.abs(h))}function R(t,e,i){const n=i[0]-e[0],r=i[1]-e[1],s=i[2]-e[2];let o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=l,P=c,O=u,F=b,j=p,B=s,G=v;Object.freeze(Object.defineProperty({__proto__:null,abs:m,add:h,angle:function(t,e){w(T,t),w(N,e);const i=x(T,N);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(t,e,i,n,r,s){const o=1-s,a=o*o,h=s*s,l=a*o,c=3*s*a,u=3*h*o,m=h*s;return t[0]=e[0]*l+i[0]*c+n[0]*u+r[0]*m,t[1]=e[1]*l+i[1]*c+n[1]*u+r[1]*m,t[2]=e[2]*l+i[2]*c+n[2]*u+r[2]*m,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,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:o,cross:S,crossAndNormalize:function(t,e,i){const n=e[0],r=e[1],s=e[2],o=i[0],a=i[1],h=i[2],l=r*h-s*a,c=s*o-n*h,u=n*a-r*o,m=Math.sqrt(l*l+c*c+u*u);return t[0]=l/m,t[1]=c/m,t[2]=u/m,t},direction:R,dist:F,distance:b,div:O,divide:u,dot:x,equals:q,exactEquals:E,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,i,n,r,s){const o=s*s,a=o*(2*s-3)+1,h=o*(s-2)+s,l=o*(s-1),c=o*(3-2*s);return t[0]=e[0]*a+i[0]*h+n[0]*l+r[0]*c,t[1]=e[1]*a+i[1]*h+n[1]*l+r[1]*c,t[2]=e[2]*a+i[2]*h+n[2]*l+r[2]*c,t},inverse:z,len:B,length:s,lerp:C,max:d,min:g,mul:P,multiply:c,negate:M,normalize:w,random:function(t,e=1){const i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=s*e,t},rotateX:function(t,e,i,n){const r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,n){const r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,n){const r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[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:_,scaleAndAdd:y,set:a,sign:f,sqrDist:j,sqrLen:G,squaredDistance:p,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:l,transformMat3:I,transformMat4:A,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:L,transformQuatValues:k},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,B,"jb",0,D,"lo",0,j,"uE",0,G,"xg",0,F])},36708(t,e,i){i.d(e,{C_:()=>m,on:()=>u,wB:()=>h,z7:()=>l});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function h(t,e,i={}){return c(t,e,i,f)}function l(t,e,i={}){return c(t,e,i,g)}function c(t,e,i={},n){let r=null;const o=i.once?(t,i)=>{n(t)&&((0,s.xt)(r),e(t,i))}:(t,i)=>{n(t)&&e(t,i)};if(r=(0,a.Cn)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return r}function u(t,e,i,o={}){let a=null,l=null,c=null;function u(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function m(t){o.once&&o.once&&(0,s.xt)(c),i(t)}const f=h(t,(t,i)=>{u(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,m),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return c=(0,r.hA)(()=>{f.remove(),u()}),c}function m(t,e){return function(t,e,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function h(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{h(),s((0,o.NK)())}),c(t,t=>{h(),n(t)},{sync:!1,once:!0},e??f)])})}(t,g,e)}function f(t){return!0}function g(t){return!!t}i(80559),i.d(e,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},90629(t,e,i){i.d(e,{Lz:()=>r,PN:()=>s,cr:()=>o,gs:()=>h,r_:()=>l,tc:()=>a}),i(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(t){return t?t/72*96:0}function s(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(n);if(e){const i=Number(e[1]),n=e[3]&&e[3].toLowerCase(),r=t.startsWith("-"),o="px"===n?s(i):i;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function a(t=0,e=0){return{x:t,y:e}}function h(t=0,e=0){return[t,e]}function l(t=0,e=0,i=0){return[t,e,i]}},93146(t,e,i){i.d(e,{z:()=>r});class n{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function r(t){return new n(async()=>{const e=await t();return!1===e.isLoaded?.()&&await e.load(),e})}},4197(t,e,i){i.d(e,{Vj:()=>c,cj:()=>l,jh:()=>s,l5:()=>a,yH:()=>h});var n=i(34275),r=i(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,i){return Array.isArray(t)?t.slice(e,e+i):t.subarray(e,e+i)}function h(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);const i=s(t.length+e.length);for(let e=0;e<t.length;++e)i[e]=t[e];for(let n=0;n<e.length;++n)i[t.length+n]=e[n];return i}function l(t){return[...t]}function c(t){const e=(0,r.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},70328(t,e,i){i.d(e,{BI:()=>A,C:()=>o,DC:()=>m,Ej:()=>p,Ie:()=>S,Jt:()=>C,Lu:()=>M,Ne:()=>z,RF:()=>u,TF:()=>y,VL:()=>g,aI:()=>L,fA:()=>a,gE:()=>l,gX:()=>b,hZ:()=>x,iT:()=>f,is:()=>I,pg:()=>v,uJ:()=>_,vI:()=>w,vY:()=>h,vt:()=>s,w1:()=>c,yr:()=>d}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(t=T){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function a(t,e,i,n,r,o,a=s()){return a[0]=t,a[1]=e,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function h(t,e=s()){return function(t,e,i,n=s()){return x(n,k),function(t,e,i=0,n=e.length/3){let r=t[0],s=t[1],o=t[2],a=t[3],h=t[4],l=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),o=Math.min(o,e[i+3*t+2]),a=Math.max(a,e[i+3*t]),h=Math.max(h,e[i+3*t+1]),l=Math.max(l,e[i+3*t+2]);t[0]=r,t[1]=s,t[2]=o,t[3]=a,t[4]=h,t[5]=l}(n,t,e,i),n}(t,0,t.length/3,e)}function l(t,e=(0,r.jh)(24)){const[i,n,s,o,a,h]=t;return e[0]=i,e[1]=n,e[2]=s,e[3]=i,e[4]=n,e[5]=h,e[6]=i,e[7]=a,e[8]=s,e[9]=i,e[10]=a,e[11]=h,e[12]=o,e[13]=n,e[14]=s,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=a,e[20]=s,e[21]=o,e[22]=a,e[23]=h,e}function c(t,e){const i=isFinite(t[2])||isFinite(t[5]);return new n.A(i?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function u(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,[e,i,n]){!function(t,e,i,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],n)}(t,e,i,n)}function g(t){return t[0]>=t[3]?0:t[3]-t[0]}function d(t){return t[1]>=t[4]?0:t[4]-t[1]}function _(t){return t[2]>=t[5]?0:t[5]-t[2]}function y(t){const e=g(t),i=_(t),n=d(t);return e*e+i*i+n*n}function b(t,e=[0,0,0]){return e[0]=t[0]+g(t)/2,e[1]=t[1]+d(t)/2,e[2]=t[2]+_(t)/2,e}function p(t,e=[0,0,0]){return e[0]=g(t),e[1]=d(t),e[2]=_(t),e}function v(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function M(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function z(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function w(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function S(t){return t?x(t,k):s(k)}function C(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function A(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=r,t[5]=Number.POSITIVE_INFINITY,t}function I(t){return 6===t.length}function L(t,e,i){if(null==t||null==e)return t===e;if(!I(t)||!I(e))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const k=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s(),i.d(e,["qv",0,k,"v_",0,T])},52039(t,e,i){i.d(e,{O7:()=>u,el:()=>h});var n=i(69052),r=(i(49186),i(17676)),s=(i(5443),i(39829),i(82799),i(16930)),o=i(93146),a=(i(80754),i(21325));async function h(t,e,i){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(i=e);let n=null;for(const e of t)n??=e?.spatialReference;if(!n)return t;const s=(0,a.Vp)(n);if(!s)return t;const[o,h]=s.valid;let u=!1;for(const e of t){if(!e)continue;if("point"===e.type){u||=e.x>=h,u||=e.x<=o;continue}const{extent:t}=e;if(null==t){u=!0;break}u||=t.xmin>=h,u||=t.xmin<=o,u||=t.xmax>=h,u||=t.xmax<=o}if(!u)return t;const[{foldInto360Range:m},f]=await(0,r.qr)(Promise.all([l.getImportPromise(),c.getImportPromise()]),i),g=f.fromSpatialReference(n);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=f.fromGeometry(t),i=f.toGeometry(m(e,g),n);return"extent"===t.type&&1===i?.rings.length?i.extent:i})}const l=(0,o.z)(()=>i.e(4144).then(i.bind(i,4144))),c=(0,o.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(i.bind(i,78125)));function u(t,e,i){const n=(0,a.Vp)(i);if(null==n)return t;const[r,s]=n.valid,o=2*s;let h=0,l=0;e>s?h=Math.ceil(Math.abs(e-s)/o):e<r&&(h=-Math.ceil(Math.abs(e-r)/o)),t>s?l=Math.ceil(Math.abs(t-s)/o):t<r&&(l=-Math.ceil(Math.abs(t-r)/o));let c=t+(h-l)*o;const u=c-e;return u>s?c-=o:u<r&&(c+=o),c}function m(t){const e=(0,a.Vp)(t);if(null==e)return null;const[i,r]=e.valid;return new n.hr(i,r)}const f=m(s.A.WGS84);m(s.A.WebMercator),i.d(e,["Y_",0,f])},80754(t,e,i){i.d(e,{kS:()=>l,kd:()=>h});var n=i(82799),r=i(16930),s=i(60408),o=i(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const i of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of i){if((0,o.aO)(t)){const[i,n]=t.c;i[0]+=e,n[0]+=e;continue}if((0,o.FG)(t)){const[i,n]=t.a;i[0]+=e,n[0]+=e;continue}if((0,o.n1)(t)){const[i,n,r]=t.b;i[0]+=e,n[0]+=e,r[0]+=e;continue}t[0]+=e}for(const i of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of i)t[0]+=e;return t}i.d(e,["j7",0,a])},50498(t,e,i){var n=i(66552),r=i(5443),s=i(91075),o=i(48526),a=i(86738),h=i(39829),l=i(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:h.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});i.d(e,["Ye",0,u,"gy",0,c,"iI",0,f,"yR",0,m])},97770(t,e,i){i.d(e,{Ey:()=>N,F8:()=>T,J2:()=>A,Yq:()=>L,_m:()=>I,iS:()=>k,wj:()=>E});var n=i(66552),r=i(73444),s=i(98623),o=i(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},d={...g,second:"numeric"},_={hourCycle:"h23"},y={...g,..._},b={...d,..._},p={"short-date":c,"short-date-short-time":{...c,...g},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...d},"short-date-long-time-24":{...c,...b},"short-date-le":c,"short-date-le-short-time":{...c,...g},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...d},"short-date-le-long-time-24":{...c,...b},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...g},"long-month-day-year-short-time-24":{...u,...y},"long-month-day-year-long-time":{...u,...d},"long-month-day-year-long-time-24":{...u,...b},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...g},"day-short-month-year-short-time-24":{...m,...y},"day-short-month-year-long-time":{...m,...d},"day-short-month-year-long-time-24":{...m,...b},"long-date":f,"long-date-short-time":{...f,...g},"long-date-short-time-24":{...f,...y},"long-date-long-time":{...f,...d},"long-date-long-time-24":{...f,...b},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":d},v=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},z=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=z.find(({type:t})=>"month"===t)?.value.toLowerCase();function x(){const t=(0,r.lR)();return(t&&M[t])??(0,r.QC)()}"mart"!==w&&(M.bs="sr-Latn-CS");let S=new WeakMap;const C=p["short-date-short-time"];function A(t){return p[t]}function I(t){const{dateStyle:e,timeStyle:i,hour12:n,year:r,month:s}=t,o={};return e?o.dateStyle=e:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function L(t,e=C){return function(t){let e=S.get(t);if(!e){const i=x(),n=E(t.timeZone??"system"),r={...t,timeZone:n};e=new Intl.DateTimeFormat(i,r),S.set(t,e)}return e}(e).format(t)}function k(t,e=C){return L(new Date(t),{...e,...l,...h})}function T(t,e=C){return L(new Date(`1970-01-01T${t}Z`),{...e,...l,...a})}function N(t,e=C){const i=o.c9.fromISO(t,{setZone:!0});if(!i.isValid)return t;if(e.timeZone)return L(i.toJSDate(),e);const n=0===i.offset?"UTC":e.timeZone,r={...e,timeZone:n};return i.toLocaleString(r,{locale:x()})}function E(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,r.Ml)(()=>{S=new WeakMap}),i.d(e,["_v",0,v])},54339(t,e,i){function n(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const i=[];for(const n of e.fieldNames)i.push(t.attributes[n]??null);return JSON.stringify(i)}}}function r(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const i=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(i)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}i.d(e,{W:()=>n,r:()=>r})},73133(t,e,i){const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(e,["j",0,n])}}]);