@arcgis/core 5.0.0-next.49 → 5.0.0-next.50

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 (558) hide show
  1. package/applications/Components/baUtils.js +1 -1
  2. package/arcade.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/0000781c850b1b4828b3.js +1 -0
  5. package/assets/esri/core/workers/chunks/00f044370bf3bb6b24d7.js +1 -0
  6. package/assets/esri/core/workers/chunks/0136cd1a5da204b6daeb.js +1 -0
  7. package/assets/esri/core/workers/chunks/044a0ccd89741c1ae770.js +1 -0
  8. package/assets/esri/core/workers/chunks/090dad5579f0148d6486.js +1 -0
  9. package/assets/esri/core/workers/chunks/09bd9bd37a339802907a.js +1 -0
  10. package/assets/esri/core/workers/chunks/0bc01d71ed1ab8c3af3c.js +1 -0
  11. package/assets/esri/core/workers/chunks/0d9904ba62558686c289.js +1 -0
  12. package/assets/esri/core/workers/chunks/0fcb40204db8ee5571c3.js +1 -0
  13. package/assets/esri/core/workers/chunks/1065fd655bb7cee243fd.js +1 -0
  14. package/assets/esri/core/workers/chunks/11ab10668632648b2ba7.js +1 -0
  15. package/assets/esri/core/workers/chunks/13167bdd486b41163147.js +1 -0
  16. package/assets/esri/core/workers/chunks/{d8db2c51b2fb42f37b2a.js → 1363345f31f4f5051132.js} +1 -1
  17. package/assets/esri/core/workers/chunks/13be94357dcf5afc4fcb.js +1 -0
  18. package/assets/esri/core/workers/chunks/{e66bcdfd75e0113d1cec.js → 13ce8e8d45779b11ee12.js} +1 -1
  19. package/assets/esri/core/workers/chunks/1693f19f1c37e0a2087e.js +1 -0
  20. package/assets/esri/core/workers/chunks/18ab5959ebf8689f8fe8.js +1 -0
  21. package/assets/esri/core/workers/chunks/18c4cd160a4052b05831.js +1 -0
  22. package/assets/esri/core/workers/chunks/1bf4b5e5402790ccb450.js +1 -0
  23. package/assets/esri/core/workers/chunks/1db058f91a8e17b24db6.js +1 -0
  24. package/assets/esri/core/workers/chunks/1dc3ab52fcde7bff0f23.js +1 -0
  25. package/assets/esri/core/workers/chunks/{a7cd795042ebb8585906.js → 1f0c7ab33e466a37c7f9.js} +1 -1
  26. package/assets/esri/core/workers/chunks/224f01b11fdba9250b1e.js +1 -0
  27. package/assets/esri/core/workers/chunks/{a1a7b0e7ca488c895cb7.js → 22c115ec003351c7d8ee.js} +1 -1
  28. package/assets/esri/core/workers/chunks/24c35a46cf8ed11b774d.js +1 -0
  29. package/assets/esri/core/workers/chunks/27794d48c04a5875fd22.js +1 -0
  30. package/assets/esri/core/workers/chunks/294acaaebfedb05fe81e.js +1 -0
  31. package/assets/esri/core/workers/chunks/2a66841243975cac3e3c.js +1 -0
  32. package/assets/esri/core/workers/chunks/2c12848e4934e9bb2bd0.js +1 -0
  33. package/assets/esri/core/workers/chunks/2d61b6efa17e8c5832da.js +1 -0
  34. package/assets/esri/core/workers/chunks/2d6fa00273a73d44297d.js +1 -0
  35. package/assets/esri/core/workers/chunks/2da13c2269ab90281143.js +1 -0
  36. package/assets/esri/core/workers/chunks/2dfaead2ec6434513d45.js +1 -0
  37. package/assets/esri/core/workers/chunks/2fae37f34b28a46841e3.js +1 -0
  38. package/assets/esri/core/workers/chunks/{3298e96d3f2e49e338d2.js → 308fb48d080e01499a26.js} +1 -1
  39. package/assets/esri/core/workers/chunks/30dd4a7c93b33988a270.js +1 -0
  40. package/assets/esri/core/workers/chunks/355c8d0eadfff9f62dfb.js +1 -0
  41. package/assets/esri/core/workers/chunks/35961e71f69ae1d24b9e.js +1 -0
  42. package/assets/esri/core/workers/chunks/36a04be40369111a633d.js +1 -0
  43. package/assets/esri/core/workers/chunks/36d9208895abd1ba4ff1.js +1 -0
  44. package/assets/esri/core/workers/chunks/395a0773ccafd1f24c4d.js +1 -0
  45. package/assets/esri/core/workers/chunks/{81a60dfa600b690098f9.js → 3a612f873e29348370b2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/3b1471f908fdecec2815.js +1 -0
  47. package/assets/esri/core/workers/chunks/{da1e61f355fb943085dc.js → 3c66dd52ad156711a6a2.js} +1 -1
  48. package/assets/esri/core/workers/chunks/3dd0db77a05263000bd8.js +1 -0
  49. package/assets/esri/core/workers/chunks/{08c1ea29678da27136f3.js → 44fb1184eeed0636704a.js} +1 -1
  50. package/assets/esri/core/workers/chunks/46d430a6983b81ba7556.js +1 -0
  51. package/assets/esri/core/workers/chunks/472d290f8eb1c1a85724.js +1 -0
  52. package/assets/esri/core/workers/chunks/47338472f5a8e004a671.js +1 -0
  53. package/assets/esri/core/workers/chunks/48b3906ac3ec57253d90.js +1 -0
  54. package/assets/esri/core/workers/chunks/{2a41283bba2361afa1fd.js → 495af366ec1defd89a72.js} +1 -1
  55. package/assets/esri/core/workers/chunks/49b581782f63abb6dd9f.js +1 -0
  56. package/assets/esri/core/workers/chunks/49df576f0215618aa651.js +1 -0
  57. package/assets/esri/core/workers/chunks/4abe2c56aecc9e9b8e86.js +1 -0
  58. package/assets/esri/core/workers/chunks/4e01e509a761a9d00b52.js +1 -0
  59. package/assets/esri/core/workers/chunks/{9d0f0d055ec25af037e0.js → 51093e552e31344cefa5.js} +1 -1
  60. package/assets/esri/core/workers/chunks/521aac8a665e98e4ca78.js +1 -0
  61. package/assets/esri/core/workers/chunks/54666586754949bfa584.js +1 -0
  62. package/assets/esri/core/workers/chunks/549f4ab9e285deaf04fb.js +1 -0
  63. package/assets/esri/core/workers/chunks/553ca1e55e9f1359839c.js +1 -0
  64. package/assets/esri/core/workers/chunks/{6f3943bebe2d5f4994f7.js → 58242447b72cc60a5040.js} +1 -1
  65. package/assets/esri/core/workers/chunks/58419d362f24b35003c1.js +1 -0
  66. package/assets/esri/core/workers/chunks/5aa354854219361f722b.js +1 -0
  67. package/assets/esri/core/workers/chunks/{aab93e885b6c7c6aa76e.js → 5ce524e0060053f35592.js} +19 -19
  68. package/assets/esri/core/workers/chunks/5d244fcf5c075afccdc6.js +1 -0
  69. package/assets/esri/core/workers/chunks/5e9fdd4eff7189f45932.js +1 -0
  70. package/assets/esri/core/workers/chunks/60954ab810dbbf36e5e1.js +1 -0
  71. package/assets/esri/core/workers/chunks/62ed6b45482e39d67785.js +1 -0
  72. package/assets/esri/core/workers/chunks/63b8193ad90b2ebe6884.js +1 -0
  73. package/assets/esri/core/workers/chunks/63c91421a71ae3b3599e.js +1 -0
  74. package/assets/esri/core/workers/chunks/63cf702cde83692126be.js +1 -0
  75. package/assets/esri/core/workers/chunks/687d2b761dc5b5cf0c31.js +1 -0
  76. package/assets/esri/core/workers/chunks/6cfcfebe9a4c491e453a.js +1 -0
  77. package/assets/esri/core/workers/chunks/{88aa71f02f43bb069345.js → 7033fa18b7dd7bd3e49c.js} +1 -1
  78. package/assets/esri/core/workers/chunks/710b29729f252f11115d.js +1 -0
  79. package/assets/esri/core/workers/chunks/72a520802b8accfd4512.js +1 -0
  80. package/assets/esri/core/workers/chunks/{72fbee59d5d909615408.js → 73892ac79b24b05e6863.js} +1 -1
  81. package/assets/esri/core/workers/chunks/73c3ee2697265b0f7208.js +1 -0
  82. package/assets/esri/core/workers/chunks/73f9cbf0f919b6adc2d5.js +1 -0
  83. package/assets/esri/core/workers/chunks/75e9759290f0f67b2128.js +1 -0
  84. package/assets/esri/core/workers/chunks/7737e69da604d2521da8.js +1 -0
  85. package/assets/esri/core/workers/chunks/{8e8d5422f57269d8c8d2.js → 7891825d5cdca03d2db0.js} +1 -1
  86. package/assets/esri/core/workers/chunks/7cd0ab01933bfb2c6e43.js +1 -0
  87. package/assets/esri/core/workers/chunks/81c2cc77c275a5b555c0.js +1 -0
  88. package/assets/esri/core/workers/chunks/82ace0195b63790b22c9.js +1 -0
  89. package/assets/esri/core/workers/chunks/8892bf3d2367e35de001.js +1 -0
  90. package/assets/esri/core/workers/chunks/8a132d91077ecf849248.js +1 -0
  91. package/assets/esri/core/workers/chunks/8a6e50d95539b46f629c.js +1 -0
  92. package/assets/esri/core/workers/chunks/8d941204425571b656ec.js +1 -0
  93. package/assets/esri/core/workers/chunks/914746077017fa50933f.js +1 -0
  94. package/assets/esri/core/workers/chunks/{004c2a1a37b99a184b13.js → 91fba3bebd78cb956941.js} +1 -1
  95. package/assets/esri/core/workers/chunks/92ec96aa743cabc9475d.js +1 -0
  96. package/assets/esri/core/workers/chunks/{5b290d18de61789417f9.js → 9361834d2c3064eb41fc.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{44f036cc21e3a2308f69.js → 93b139be6488a1b4ba19.js} +1 -1
  98. package/assets/esri/core/workers/chunks/95057105f1b3bf805140.js +1 -0
  99. package/assets/esri/core/workers/chunks/968335b28b895e19913b.js +1 -0
  100. package/assets/esri/core/workers/chunks/973bf2ed34d57f299472.js +1 -0
  101. package/assets/esri/core/workers/chunks/9b6e2099aabf67b9f9f2.js +1 -0
  102. package/assets/esri/core/workers/chunks/{97b01803d0c38541aa08.js → 9c93eadbd19bef1191b4.js} +1 -1
  103. package/assets/esri/core/workers/chunks/a1594486177015e8a6c3.js +1 -0
  104. package/assets/esri/core/workers/chunks/{df458ad51be27df3d79d.js → a1f264abbd6354c333bf.js} +1 -1
  105. package/assets/esri/core/workers/chunks/a3407ca77b0ff62c0e75.js +1 -0
  106. package/assets/esri/core/workers/chunks/{8be61e13530fd0dc2fd1.js → a4f89568205d78d91cfe.js} +1 -1
  107. package/assets/esri/core/workers/chunks/a5e7c9517939f762c518.js +1 -0
  108. package/assets/esri/core/workers/chunks/a63ff3e9a9f3853d12f3.js +1 -0
  109. package/assets/esri/core/workers/chunks/a81a7cba815adb575c36.js +1 -0
  110. package/assets/esri/core/workers/chunks/{fe6fa1f2c2d54d41645e.js → a8dfd246c797f3b979f5.js} +1 -1
  111. package/assets/esri/core/workers/chunks/a8f7e44657083f6aa3fd.js +1 -0
  112. package/assets/esri/core/workers/chunks/a8fd635d1165db8616ab.js +1 -0
  113. package/assets/esri/core/workers/chunks/a92c1171314a68504c1b.js +1 -0
  114. package/assets/esri/core/workers/chunks/aa297e0931213341f51b.js +1 -0
  115. package/assets/esri/core/workers/chunks/aa7a1705266eec353cb6.js +1 -0
  116. package/assets/esri/core/workers/chunks/ab5e2f823960c33cefe4.js +1 -0
  117. package/assets/esri/core/workers/chunks/{f11453f24c0b728669d2.js → ac6f002cfad42e60de8f.js} +1 -1
  118. package/assets/esri/core/workers/chunks/b11c0e80e583f2b7c5de.js +1 -0
  119. package/assets/esri/core/workers/chunks/b14f9a46e583e1625a2b.js +1 -0
  120. package/assets/esri/core/workers/chunks/{8c271e9272e4eaf1325a.js → b1d3d2c93c189e215f67.js} +1 -1
  121. package/assets/esri/core/workers/chunks/b2425f6af7df6902dfc4.js +1 -0
  122. package/assets/esri/core/workers/chunks/b638ce18b93d3cfb9967.js +1 -0
  123. package/assets/esri/core/workers/chunks/b648a1e641cf5c772d67.js +1 -0
  124. package/assets/esri/core/workers/chunks/{1c58064ea80e6a4a4a3b.js → b907d16e82ac908bb896.js} +1 -1
  125. package/assets/esri/core/workers/chunks/b91c13f44f4d1bac5799.js +1 -0
  126. package/assets/esri/core/workers/chunks/ba7e97b1e324118b8156.js +1 -0
  127. package/assets/esri/core/workers/chunks/bb4aefaf9b0327dda738.js +1 -0
  128. package/assets/esri/core/workers/chunks/{9664d9e679abc41f6c42.js → bce81df760f5e34c01d7.js} +1 -1
  129. package/assets/esri/core/workers/chunks/be6a05d5375e80968877.js +1 -0
  130. package/assets/esri/core/workers/chunks/c02b09f16241db233103.js +1 -0
  131. package/assets/esri/core/workers/chunks/c09cba77ee60a3d765e2.js +1 -0
  132. package/assets/esri/core/workers/chunks/c0d6336c10b4081c4e32.js +1 -0
  133. package/assets/esri/core/workers/chunks/c27842a34e73ccb46116.js +1 -0
  134. package/assets/esri/core/workers/chunks/c7802c144959d60e774a.js +1 -0
  135. package/assets/esri/core/workers/chunks/c91201b37d1cb3875fb4.js +1 -0
  136. package/assets/esri/core/workers/chunks/cc4ae105e727d9211d82.js +1 -0
  137. package/assets/esri/core/workers/chunks/cd39a53ef74f47604977.js +1 -0
  138. package/assets/esri/core/workers/chunks/d22e0d733bfe821c0510.js +1 -0
  139. package/assets/esri/core/workers/chunks/{d7878fba02814adaf19f.js → d57577c02fb2932e8305.js} +1 -1
  140. package/assets/esri/core/workers/chunks/d62193323c67b379dee3.js +1 -0
  141. package/assets/esri/core/workers/chunks/d7a62504e00989202c45.js +1 -0
  142. package/assets/esri/core/workers/chunks/{adfe28c1c1619cdd3ca1.js → d8511e71c5108a0ba9eb.js} +2 -2
  143. package/assets/esri/core/workers/chunks/da922e861d5845ae0979.js +1 -0
  144. package/assets/esri/core/workers/chunks/dbe55d4731227d6e9571.js +1 -0
  145. package/assets/esri/core/workers/chunks/de05c59da6d67716795d.js +1 -0
  146. package/assets/esri/core/workers/chunks/de60421029fbcebe2950.js +1 -0
  147. package/assets/esri/core/workers/chunks/e00d56ae5e68267fe269.js +1 -0
  148. package/assets/esri/core/workers/chunks/{fecae7495e53bb05f282.js → e25be3b6b67ce6b03011.js} +1 -1
  149. package/assets/esri/core/workers/chunks/e2973e5626e5039209f9.js +1 -0
  150. package/assets/esri/core/workers/chunks/e2c7c269be93c552dc5b.js +1 -0
  151. package/assets/esri/core/workers/chunks/e4d593ddcbcf06010ab0.js +1 -0
  152. package/assets/esri/core/workers/chunks/e5ac9b048b16fef9840c.js +1 -0
  153. package/assets/esri/core/workers/chunks/{f7163048146ddaedfc36.js → e668ddc7332e5e560e78.js} +1 -1
  154. package/assets/esri/core/workers/chunks/e6bab7b739bfbb39f6cd.js +1 -0
  155. package/assets/esri/core/workers/chunks/{8b578ffc3a83089aa782.js → e7c08a03772f7fccd949.js} +1 -1
  156. package/assets/esri/core/workers/chunks/e8e4d48ab4024e17108d.js +1 -0
  157. package/assets/esri/core/workers/chunks/e9e0f1c355f963cbea74.js +1 -0
  158. package/assets/esri/core/workers/chunks/ec7e6427d99cf3148a61.js +1 -0
  159. package/assets/esri/core/workers/chunks/edd3cf415955309b4ca4.js +1 -0
  160. package/assets/esri/core/workers/chunks/ee361690b456c12c30d8.js +1 -0
  161. package/assets/esri/core/workers/chunks/efa95c50d1ed8e74219f.js +1 -0
  162. package/assets/esri/core/workers/chunks/f142c5cbdd16f1768275.js +1 -0
  163. package/assets/esri/core/workers/chunks/f286f13686f003c5eec5.js +1 -0
  164. package/assets/esri/core/workers/chunks/f379fd459a103f42d447.js +1 -0
  165. package/assets/esri/core/workers/chunks/{f2ba50eb29f93df885d6.js → f3d8d5fe15501220792d.js} +1 -1
  166. package/assets/esri/core/workers/chunks/f56906c443ce8ff68a27.js +1 -0
  167. package/assets/esri/core/workers/chunks/fb6670a929b7333f1764.js +1 -0
  168. package/assets/esri/core/workers/chunks/fbdf553253cf8f22c022.js +1 -0
  169. package/assets/esri/core/workers/chunks/fc10c738bae304721ab2.js +1 -0
  170. package/assets/esri/core/workers/chunks/ff79c2cb28db7e0a1fc4.js +1 -0
  171. package/assets/esri/core/workers/chunks/ffdf1cbc1e54414d0f96.js +1 -0
  172. package/assets/esri/themes/base/widgets/_Attribution.scss +7 -4
  173. package/assets/esri/themes/dark/main.css +1 -1
  174. package/assets/esri/themes/light/main.css +1 -1
  175. package/assets/esri/themes/light/view.css +1 -1
  176. package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
  177. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  178. package/chunks/Envelope.js +1 -1
  179. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  180. package/chunks/GeodeticUtils.js +1 -1
  181. package/chunks/Geometry.js +1 -1
  182. package/chunks/MultiPathImpl.js +1 -1
  183. package/chunks/OperatorCrosses.js +1 -1
  184. package/chunks/OperatorCut.js +1 -1
  185. package/chunks/OperatorGeodesicBuffer.js +1 -1
  186. package/chunks/OperatorGeodeticArea.js +1 -1
  187. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  188. package/chunks/OperatorGeodeticLength.js +1 -1
  189. package/chunks/OperatorIntersects.js +1 -1
  190. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  191. package/chunks/OperatorOverlaps.js +1 -1
  192. package/chunks/OperatorProject.js +1 -1
  193. package/chunks/OperatorProximity.js +1 -1
  194. package/chunks/OperatorProximityGeodesic.js +1 -1
  195. package/chunks/OperatorShapePreservingLength.js +1 -1
  196. package/chunks/OperatorShapePreservingProject.js +1 -1
  197. package/chunks/OperatorSimplifyOGC.js +1 -1
  198. package/chunks/OperatorTouches.js +1 -1
  199. package/chunks/OperatorWithin.js +1 -1
  200. package/chunks/Point2D.js +1 -1
  201. package/chunks/ProjectionTransformation.js +1 -1
  202. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  203. package/chunks/SpatialReference.js +1 -1
  204. package/chunks/boundedPlane.js +1 -1
  205. package/chunks/containsOperator.js +1 -1
  206. package/chunks/disjointOperator.js +1 -1
  207. package/chunks/equalsOperator.js +1 -1
  208. package/chunks/pe.js +1 -1
  209. package/chunks/relateOperator.js +1 -1
  210. package/config.js +1 -1
  211. package/core/units.js +1 -1
  212. package/core/workers/workerFactory.js +1 -1
  213. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  214. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  215. package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
  216. package/geometry/FlatGeometry.js +1 -1
  217. package/geometry/GeometryCursor.js +1 -1
  218. package/geometry/operators/containsOperator.js +1 -1
  219. package/geometry/operators/disjointOperator.js +1 -1
  220. package/geometry/operators/gx/geodeticUtils.js +1 -1
  221. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  222. package/geometry/operators/gx/operatorBuffer.js +1 -1
  223. package/geometry/operators/gx/operatorDifference.js +1 -1
  224. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  225. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  226. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  227. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  228. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  229. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  230. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  231. package/geometry/operators/gx/operatorIntersection.js +1 -1
  232. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  233. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  234. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  235. package/geometry/operators/gx/operatorProject.js +1 -1
  236. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  237. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  238. package/geometry/operators/gx/operatorSimplify.js +1 -1
  239. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  240. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  241. package/geometry/operators/gx/operatorUnion.js +1 -1
  242. package/geometry/operators/json/containsOperator.js +1 -1
  243. package/geometry/operators/json/disjointOperator.js +1 -1
  244. package/geometry/operators/json/projectOperator.js +1 -1
  245. package/geometry/operators/projectOperator.js +1 -1
  246. package/geometry/operators/reshapeOperator.js +1 -1
  247. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  248. package/geometry/operators/support/initNoPeFactory.js +1 -1
  249. package/geometry/operators/support/jsonConverter.js +1 -1
  250. package/geometry/operators/support/projectionTransformation.js +1 -1
  251. package/geometry/operators/support/projectionZScaling.js +5 -0
  252. package/geometry/projection/projectPointToVector.js +1 -1
  253. package/geometry/projectionUtils.js +1 -1
  254. package/geometry/support/boundedPlane.js +1 -1
  255. package/geometry/support/jsonTypeUtils.js +5 -0
  256. package/geometry/support/jsonUtils.js +1 -1
  257. package/geometry/support/normalizeUtilsCommon.js +1 -1
  258. package/geometry/support/normalizeUtilsSync.js +1 -1
  259. package/geometry/support/quantizationUtils.js +1 -1
  260. package/geometry/support/zscale.js +1 -1
  261. package/interfaces.d.ts +84 -17
  262. package/kernel.js +1 -1
  263. package/layers/SceneLayer.js +1 -1
  264. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  265. package/layers/graphics/data/QueryEngine.js +1 -1
  266. package/layers/graphics/data/queryUtils.js +1 -1
  267. package/layers/graphics/data/spatialQuerySupport.js +1 -1
  268. package/layers/graphics/featureConversionUtils.js +1 -1
  269. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  270. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  271. package/layers/graphics/sources/support/uploadAssets.js +1 -1
  272. package/layers/mixins/ArcGISMapService.js +1 -1
  273. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  274. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  275. package/layers/orientedImagery/transformations/utils.js +1 -1
  276. package/layers/support/ControlPointsGeoreference.js +1 -1
  277. package/layers/support/Sublayer.js +1 -1
  278. package/package.json +4 -4
  279. package/renderers/support/DictionaryLoader.js +1 -1
  280. package/renderers/support/pointCloud/PointSizeFixedSizeAlgorithm.js +1 -1
  281. package/renderers/support/pointCloud/PointSizeSplatAlgorithm.js +1 -1
  282. package/rest/geometryService/cut.js +1 -1
  283. package/rest/geometryService/difference.js +1 -1
  284. package/rest/geometryService/intersect.js +1 -1
  285. package/rest/geometryService/project.js +1 -1
  286. package/rest/geometryService/reshape.js +1 -1
  287. package/rest/geometryService/simplify.js +1 -1
  288. package/rest/geometryService/utils.js +1 -1
  289. package/rest/knowledgeGraph/DataModel.js +1 -1
  290. package/rest/operations/generalize.js +1 -1
  291. package/rest/operations/identify.js +1 -1
  292. package/rest/operations/offset.js +1 -1
  293. package/rest/operations/relation.js +1 -1
  294. package/rest/query/operations/queryAttributeBins.js +1 -1
  295. package/rest/query/operations/queryTopFeatures.js +1 -1
  296. package/rest/query/operations/queryUtils.js +1 -1
  297. package/rest/support/BaseImageMeasureResultValue.js +1 -1
  298. package/rest/support/BufferParameters.js +1 -1
  299. package/rest/support/DensifyParameters.js +1 -1
  300. package/rest/support/DistanceParameters.js +1 -1
  301. package/rest/support/FeatureSet.js +1 -1
  302. package/rest/support/IdentifyParameters.js +1 -1
  303. package/rest/support/ImageAreaParameters.js +1 -1
  304. package/rest/support/ImageDistanceParameters.js +1 -1
  305. package/rest/support/ImageGPSInfoParameters.js +1 -1
  306. package/rest/support/ImageHeightParameters.js +1 -1
  307. package/rest/support/ImageHistogramParameters.js +1 -1
  308. package/rest/support/ImageIdentifyParameters.js +1 -1
  309. package/rest/support/ImageMeasureResultAngleValue.js +1 -1
  310. package/rest/support/ImageMeasureResultAreaValue.js +1 -1
  311. package/rest/support/ImageMeasureResultLengthValue.js +1 -1
  312. package/rest/support/ImagePointParameters.js +1 -1
  313. package/rest/support/ImageSampleParameters.js +1 -1
  314. package/rest/support/ImageToMapMultirayParameters.js +1 -1
  315. package/rest/support/ImageToMapParameters.js +1 -1
  316. package/rest/support/ImageVolumeParameters.js +1 -1
  317. package/rest/support/MapToImageParameters.js +1 -1
  318. package/rest/support/MeasureFromImageParameters.js +1 -1
  319. package/rest/support/ProjectParameters.js +1 -1
  320. package/support/modeUtils.js +1 -1
  321. package/support/revision.js +1 -1
  322. package/support/tests/serviceMockDependencies.js +1 -1
  323. package/symbols/MarkerSymbol.js +1 -1
  324. package/symbols/PictureMarkerSymbol.js +1 -1
  325. package/symbols/SimpleFillSymbol.js +1 -1
  326. package/symbols/SimpleMarkerSymbol.js +1 -1
  327. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  328. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  329. package/symbols/cim/SDFHelper.js +1 -1
  330. package/symbols/cim/effects/EffectOffset.js +1 -1
  331. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  332. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  333. package/views/2d/analysis/ElevationProfile/ElevationProfileVisualization2D.js +1 -1
  334. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  335. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  336. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  337. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  338. package/views/2d/layers/MediaLayerView2D.js +1 -1
  339. package/views/2d/layers/TileLayerView2D.js +1 -1
  340. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  341. package/views/2d/layers/graphics/GraphicStoreItem.js +1 -1
  342. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  343. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  344. package/views/3d/analysis/ShadowCast/analysisViewRegister.js +5 -0
  345. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  346. package/views/3d/analysis/Slice/SliceController.js +1 -1
  347. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  348. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  349. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  350. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  351. package/views/3d/analysis/support/projectionUtils.js +1 -1
  352. package/views/3d/interactive/editingTools/media/MediaElementControllerShape.js +1 -1
  353. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  354. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  355. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  356. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  357. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  358. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  359. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  360. package/views/3d/layers/RouteLayerView3D.js +1 -1
  361. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  362. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  363. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  364. package/views/3d/layers/support/featureReference.js +1 -1
  365. package/views/3d/state/ScreenSizePerspective.js +1 -1
  366. package/views/3d/support/ViewSlice.js +1 -1
  367. package/views/3d/support/cameraUtils.js +1 -1
  368. package/views/3d/support/viewpointUtils.js +1 -1
  369. package/views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js +1 -1
  370. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  371. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  372. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  373. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  374. package/views/Attribution.js +1 -1
  375. package/views/DOMContainer.js +1 -1
  376. package/views/PopupView.js +1 -1
  377. package/views/SceneView.js +1 -1
  378. package/views/VideoView.js +1 -1
  379. package/views/View.js +1 -1
  380. package/views/View2D.js +1 -1
  381. package/views/analysis/ElevationProfile/ElevationProfileLineGroundComputation.js +1 -1
  382. package/views/draw/DrawAction.js +1 -1
  383. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  384. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  385. package/views/layers/CatalogFootprintLayerView.js +1 -1
  386. package/views/layers/LayerView.js +1 -1
  387. package/views/support/attributionUtils.js +1 -1
  388. package/views/support/projectionUtils.js +1 -1
  389. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  390. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  391. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  392. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  393. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  394. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  395. package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
  396. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  397. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  398. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  399. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  400. package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +5 -0
  401. package/widgets/OrientedImageryViewer/support/NonPanoramicMediaCollection.js +5 -0
  402. package/widgets/OrientedImageryViewer/support/urlUtils.js +5 -0
  403. package/widgets/OrientedImageryViewer/utils.js +1 -1
  404. package/widgets/OrientedImageryViewer.js +1 -1
  405. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  406. package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
  407. package/widgets/PanoramicViewer/utils.js +1 -1
  408. package/widgets/PanoramicViewer.js +1 -1
  409. package/widgets/Slice.js +1 -1
  410. package/widgets/Swipe/SwipeViewModel.js +1 -1
  411. package/widgets/TimeSlider.js +1 -1
  412. package/widgets/Track.js +1 -1
  413. package/widgets/UtilityNetworkAssociations.js +1 -1
  414. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  415. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  416. package/widgets/Weather.js +1 -1
  417. package/widgets/support/GridControls.js +1 -1
  418. package/widgets/support/SnappingControls.js +1 -1
  419. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  420. package/assets/esri/core/workers/chunks/00ff4ca88c9d291d82c3.js +0 -1
  421. package/assets/esri/core/workers/chunks/0271a2ca4e9b1e4fd284.js +0 -1
  422. package/assets/esri/core/workers/chunks/02a65563779b4c64b2cf.js +0 -1
  423. package/assets/esri/core/workers/chunks/02d1c48e874dfd985bc4.js +0 -1
  424. package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +0 -1
  425. package/assets/esri/core/workers/chunks/061def9163a09c804b5c.js +0 -1
  426. package/assets/esri/core/workers/chunks/06221ebadab32111e2c6.js +0 -1
  427. package/assets/esri/core/workers/chunks/063045ac5553e91c0c4c.js +0 -1
  428. package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +0 -1
  429. package/assets/esri/core/workers/chunks/0a58b57e1777a8b0ea23.js +0 -1
  430. package/assets/esri/core/workers/chunks/0e4d0213d568f50c231f.js +0 -1
  431. package/assets/esri/core/workers/chunks/103153951ba312dc5e9e.js +0 -1
  432. package/assets/esri/core/workers/chunks/169be08394c5e7703628.js +0 -1
  433. package/assets/esri/core/workers/chunks/1a6f3531ef3d671e0289.js +0 -1
  434. package/assets/esri/core/workers/chunks/1c816aff8613d1e4bf38.js +0 -1
  435. package/assets/esri/core/workers/chunks/1e2d42e9984ed3437ba2.js +0 -1
  436. package/assets/esri/core/workers/chunks/2008b22f76071a2dde4e.js +0 -1
  437. package/assets/esri/core/workers/chunks/20e4243ea563d05a5256.js +0 -1
  438. package/assets/esri/core/workers/chunks/2107c93d1fe87f3b8dfa.js +0 -1
  439. package/assets/esri/core/workers/chunks/21f37a4b8d1857369203.js +0 -1
  440. package/assets/esri/core/workers/chunks/229e1ed4282005aa0b83.js +0 -1
  441. package/assets/esri/core/workers/chunks/22b8eaa6afab0e5ffc47.js +0 -1
  442. package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +0 -1
  443. package/assets/esri/core/workers/chunks/233f9eb617f3d72995b5.js +0 -1
  444. package/assets/esri/core/workers/chunks/2463cebf904a3c46c639.js +0 -1
  445. package/assets/esri/core/workers/chunks/249504f7d356be80d214.js +0 -1
  446. package/assets/esri/core/workers/chunks/2550d2ba935cfdf30236.js +0 -1
  447. package/assets/esri/core/workers/chunks/273ac1066095d63d6a6f.js +0 -1
  448. package/assets/esri/core/workers/chunks/28db329528def851efd7.js +0 -1
  449. package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +0 -1
  450. package/assets/esri/core/workers/chunks/2e2867bc66c94aba7dc7.js +0 -1
  451. package/assets/esri/core/workers/chunks/30c4af16e3a2acc25589.js +0 -1
  452. package/assets/esri/core/workers/chunks/32d32d3c3b38a215d20d.js +0 -1
  453. package/assets/esri/core/workers/chunks/3386d4392f465b807b94.js +0 -1
  454. package/assets/esri/core/workers/chunks/34613b288cf174983f8b.js +0 -1
  455. package/assets/esri/core/workers/chunks/35f086a2ae0585348ae6.js +0 -1
  456. package/assets/esri/core/workers/chunks/37ea150dec5e491f691e.js +0 -1
  457. package/assets/esri/core/workers/chunks/3ac8de121a07c70bae0f.js +0 -1
  458. package/assets/esri/core/workers/chunks/3c94db7ecdcd38eeb1b1.js +0 -1
  459. package/assets/esri/core/workers/chunks/3f7749f06ae54a4437d9.js +0 -1
  460. package/assets/esri/core/workers/chunks/40a722933af28823953b.js +0 -1
  461. package/assets/esri/core/workers/chunks/444026d1938c1078ca97.js +0 -1
  462. package/assets/esri/core/workers/chunks/44f759d723ae05bb1b19.js +0 -1
  463. package/assets/esri/core/workers/chunks/456684b1c1417ed0e611.js +0 -1
  464. package/assets/esri/core/workers/chunks/48e2737182c75005fb8f.js +0 -1
  465. package/assets/esri/core/workers/chunks/48f805929fe6241952f5.js +0 -1
  466. package/assets/esri/core/workers/chunks/4a48b8ec5f3f2fd139b5.js +0 -1
  467. package/assets/esri/core/workers/chunks/4b084f985bc4100e7aec.js +0 -1
  468. package/assets/esri/core/workers/chunks/4b1de1fcd13677b615a8.js +0 -1
  469. package/assets/esri/core/workers/chunks/4d933de84afb2e3b7d18.js +0 -1
  470. package/assets/esri/core/workers/chunks/4f0de45a0a295d66d446.js +0 -1
  471. package/assets/esri/core/workers/chunks/4ff771942531fb2755c4.js +0 -1
  472. package/assets/esri/core/workers/chunks/513a4ef960e27500f986.js +0 -1
  473. package/assets/esri/core/workers/chunks/56b693baa376bb990925.js +0 -1
  474. package/assets/esri/core/workers/chunks/57fd5e1260269002d18a.js +0 -1
  475. package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +0 -1
  476. package/assets/esri/core/workers/chunks/5fe40bb0e9ab333f6854.js +0 -1
  477. package/assets/esri/core/workers/chunks/61373d2fa7e7638d3395.js +0 -1
  478. package/assets/esri/core/workers/chunks/6202922b1c2637e9aaa5.js +0 -1
  479. package/assets/esri/core/workers/chunks/633368ae6fbb46373328.js +0 -1
  480. package/assets/esri/core/workers/chunks/6d0fe4db6b94f3d2c53a.js +0 -1
  481. package/assets/esri/core/workers/chunks/6d702cb26cef46a76963.js +0 -1
  482. package/assets/esri/core/workers/chunks/6e8925412fb90f88d688.js +0 -1
  483. package/assets/esri/core/workers/chunks/6e8c20ff1d28ef2fe72c.js +0 -1
  484. package/assets/esri/core/workers/chunks/708aba69a1870ea41a61.js +0 -1
  485. package/assets/esri/core/workers/chunks/74b1028e95f7cfff387b.js +0 -1
  486. package/assets/esri/core/workers/chunks/755ce019c97f5d527772.js +0 -1
  487. package/assets/esri/core/workers/chunks/780f60210878a8286633.js +0 -1
  488. package/assets/esri/core/workers/chunks/78fccea3445fb2f9120a.js +0 -1
  489. package/assets/esri/core/workers/chunks/7d3c2a063598bdd015e2.js +0 -1
  490. package/assets/esri/core/workers/chunks/7eab0bb42f9f062522ef.js +0 -1
  491. package/assets/esri/core/workers/chunks/804958f3f4ff47a4eff5.js +0 -1
  492. package/assets/esri/core/workers/chunks/82ba4140e30f083fbc87.js +0 -1
  493. package/assets/esri/core/workers/chunks/833fd2bc42c5cb459084.js +0 -1
  494. package/assets/esri/core/workers/chunks/83c8e5a92d8d6193cb32.js +0 -1
  495. package/assets/esri/core/workers/chunks/83da9ee6544ee9d3c124.js +0 -1
  496. package/assets/esri/core/workers/chunks/870022661376442411e4.js +0 -1
  497. package/assets/esri/core/workers/chunks/897ce6fc9cefb1e14a64.js +0 -1
  498. package/assets/esri/core/workers/chunks/898ab7db220e81e921c6.js +0 -1
  499. package/assets/esri/core/workers/chunks/8b75861196d1ce5cba63.js +0 -1
  500. package/assets/esri/core/workers/chunks/8c07396e9ea3007d6404.js +0 -1
  501. package/assets/esri/core/workers/chunks/8e26831f71634288f834.js +0 -1
  502. package/assets/esri/core/workers/chunks/8ec238b5b59ef18a1713.js +0 -1
  503. package/assets/esri/core/workers/chunks/90b8ccee883738917a6d.js +0 -1
  504. package/assets/esri/core/workers/chunks/90bc9c299ae0e8b8b5e5.js +0 -1
  505. package/assets/esri/core/workers/chunks/9100330ed4b4437c819d.js +0 -1
  506. package/assets/esri/core/workers/chunks/933dce4d4ff8b90219c8.js +0 -1
  507. package/assets/esri/core/workers/chunks/934bc1028b287f8df4aa.js +0 -1
  508. package/assets/esri/core/workers/chunks/94dc8b0fa129f1e168c4.js +0 -1
  509. package/assets/esri/core/workers/chunks/96055de47831e59a28bf.js +0 -1
  510. package/assets/esri/core/workers/chunks/963ba863e0f87abfca25.js +0 -1
  511. package/assets/esri/core/workers/chunks/987e19af8a525e77883f.js +0 -1
  512. package/assets/esri/core/workers/chunks/992e9bbdf9d3787ddb0e.js +0 -1
  513. package/assets/esri/core/workers/chunks/9aa8d60483ad905fe13b.js +0 -1
  514. package/assets/esri/core/workers/chunks/9c0efd06c9000ccbd62d.js +0 -1
  515. package/assets/esri/core/workers/chunks/9f1d3c0b53bef07e39bf.js +0 -1
  516. package/assets/esri/core/workers/chunks/9fed9946241bb2a5cfa4.js +0 -1
  517. package/assets/esri/core/workers/chunks/a2662e98857f0abf8e82.js +0 -1
  518. package/assets/esri/core/workers/chunks/a59dab47a58695c639da.js +0 -1
  519. package/assets/esri/core/workers/chunks/a5a9b0a35849b9f2e86d.js +0 -1
  520. package/assets/esri/core/workers/chunks/a60006c9ccf6817fc0d2.js +0 -1
  521. package/assets/esri/core/workers/chunks/a627b7eb94b7fca33210.js +0 -1
  522. package/assets/esri/core/workers/chunks/a651dc3b8f1fc1ab34cc.js +0 -1
  523. package/assets/esri/core/workers/chunks/a96742e678a506c461ab.js +0 -1
  524. package/assets/esri/core/workers/chunks/af663e81c851bcf142f1.js +0 -1
  525. package/assets/esri/core/workers/chunks/af8d6e6949930d0e6c7b.js +0 -1
  526. package/assets/esri/core/workers/chunks/b59be95949445ff5afab.js +0 -1
  527. package/assets/esri/core/workers/chunks/b6dec5dfdeca54bae88d.js +0 -1
  528. package/assets/esri/core/workers/chunks/b88dc7d8ae105747e6a4.js +0 -1
  529. package/assets/esri/core/workers/chunks/b90c786dd474ea1a409c.js +0 -1
  530. package/assets/esri/core/workers/chunks/b92e9e5df8154a128982.js +0 -1
  531. package/assets/esri/core/workers/chunks/bbdfa8ffcf084cbd9938.js +0 -1
  532. package/assets/esri/core/workers/chunks/bff814d34b38ec80c44d.js +0 -1
  533. package/assets/esri/core/workers/chunks/c36d699a75b6e8fb93eb.js +0 -1
  534. package/assets/esri/core/workers/chunks/c50fdf723f2d4316862e.js +0 -1
  535. package/assets/esri/core/workers/chunks/c5e8ff4721b15ac3c6eb.js +0 -1
  536. package/assets/esri/core/workers/chunks/ca61077e0a598654f33f.js +0 -1
  537. package/assets/esri/core/workers/chunks/ca81be5bdb88ef557bf3.js +0 -1
  538. package/assets/esri/core/workers/chunks/ced12ad98f8f48d0dc00.js +0 -1
  539. package/assets/esri/core/workers/chunks/d0320ca67abca4f8b0d2.js +0 -1
  540. package/assets/esri/core/workers/chunks/d561624ddb9388732b25.js +0 -1
  541. package/assets/esri/core/workers/chunks/d5fd6d0eaf96edfab123.js +0 -1
  542. package/assets/esri/core/workers/chunks/d705410c369bd03b1875.js +0 -1
  543. package/assets/esri/core/workers/chunks/d82e17522ed946c2d809.js +0 -1
  544. package/assets/esri/core/workers/chunks/dc29cb16704e2e4d0a46.js +0 -1
  545. package/assets/esri/core/workers/chunks/dc5075b2326c79130baa.js +0 -1
  546. package/assets/esri/core/workers/chunks/dd105d6e0fcedee32644.js +0 -1
  547. package/assets/esri/core/workers/chunks/defc6b50df5018bd9e86.js +0 -1
  548. package/assets/esri/core/workers/chunks/e1148067ceae7d9eaaf8.js +0 -1
  549. package/assets/esri/core/workers/chunks/e5a6a646f27715152714.js +0 -1
  550. package/assets/esri/core/workers/chunks/e8c2e2fbe9cef4c8a8c6.js +0 -1
  551. package/assets/esri/core/workers/chunks/efc293c8bbc12156096d.js +0 -1
  552. package/assets/esri/core/workers/chunks/f693a4d97b2762d0e6ff.js +0 -1
  553. package/assets/esri/core/workers/chunks/f7f53567b0c5b35d6aea.js +0 -1
  554. package/assets/esri/core/workers/chunks/f92a78ce5510e0d0d0f7.js +0 -1
  555. package/assets/esri/core/workers/chunks/fb76b43181077c55a207.js +0 -1
  556. package/assets/esri/core/workers/chunks/fc61443546f21869f8ba.js +0 -1
  557. package/assets/esri/core/workers/chunks/fdaa10a588db394e2f65.js +0 -1
  558. package/chunks/UnitFactory.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1075],{2272:(t,e,r)=>{r.d(e,{Dl:()=>u,gf:()=>l,jV:()=>h,lF:()=>d});var s=r(92602),i=r(70333),n=r(4718),o=r(84952),a=r(926);function h(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function u(t){return"string"==typeof t?(0,o.An)(t):(0,n.o8)(t)}function d(t,e,r){const s={};for(const i in t){if("declaredClass"===i)continue;const n=t[i];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))s[i]=n.map(t=>d(t));else if("object"==typeof n)if(n.toJSON){const t=n.toJSON(r?.[i]);s[i]=e?t:JSON.stringify(t)}else s[i]=e?n:JSON.stringify(n);else s[i]=n}return s}async function l(t,e,n){const o=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.CG)(t)??i.id?.findCredential(t)?.token:null}(t,e);if(o)return o;!i.id&&s.A.request.useIdentity&&await Promise.all([r.e(7330),r.e(168),r.e(148)]).then(r.bind(r,50148));const h=await i.id.getCredential(t,n);return h?.token}},5162:(t,e,r)=>{r.d(e,{HJ:()=>o,Im:()=>d,KN:()=>h});var s=r(39516),i=r(70300),n=r(8446);class o{static async create(t){const{metadata:e,definitionExpression:r}=t,i=r?await(0,s.GP)(r,e.fieldsIndex):null;return new o(e,i,r)}constructor(t,e,r){this.metadata=t,this._clause=e,this._definitionExpression=r}get hash(){return this._definitionExpression}testFeature(t){return null==this._clause||this._clause.testFeature(t)}}class a{constructor(){this.modified=new Map,this.removed=new Set}modify(t){this.modified.set(t.objectId,t),this.removed.has(t.objectId)&&this.removed.delete(t.objectId)}remove(t){this.modified.delete(t),this.removed.add(t)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(t){const e=new a;for(const[r,s]of this.modified)t.testFeature(s)?e.modified.set(r,s):e.removed.add(s.objectId);for(const t of this.removed)e.removed.add(t);return e}}class h extends i.K{constructor(t){super(),this._reader=t,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(t,e){const r=n.K.fromOptimizedFeatures(t,e);return new h(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(t){if(!this._reader.getSize())return null;const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}class u{constructor(t,e){this.inner=t,this.isWeak=e,this.lastWeak=null}get isStrong(){return!this.isWeak}}class d{constructor(t){this._parameters=t,this._overrides=new Map,this._update=new a,this._lastCleanup=0}update(t){this._parameters=t}hasOverride(t){return this._overrides.has(t)}onChunkInsert(t){if(this._overrides.size){const e=t.reader.getCursor();for(;e.next();){const t=e.getObjectId(),r=this._overrides.get(t);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){const t=e.readOptimizedFeatureWorldSpace(),s=r.inner?.attributes??{};t.attributes={...s,...t.attributes},r.inner=t,this._update.modify(t),this.invalidate()}}}t.registerOverrides(this)}apply(t,e){const{updateWeak:r,removeWeak:s,update:i,remove:n,release:o}=t.commands;this.invalidate();for(const t of r){const e=new u(t,!0),r=this._overrides.get(t.objectId);r?.isStrong?r.lastWeak=e:(this._overrides.set(t.objectId,e),this._update.modify(t))}for(const t of i){const e=new u(t,!1),r=this._overrides.get(t.objectId);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t.objectId,e),this._update.modify(t)}for(const t of s){const e=new u(null,!0),r=this._overrides.get(t);r?.isStrong?r.lastWeak=e:(this._overrides.set(t,e),this._update.remove(t))}for(const t of n){const e=new u(null,!1),r=this._overrides.get(t);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t,e),this._update.remove(t)}if(o.length){const t=new Set;for(const e of o){const r=this._overrides.get(e);r?.lastWeak?(this._overrides.set(e,r.lastWeak),null==r.lastWeak.inner?this._update.remove(e):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(e),t.add(e))}e.forEachUnsafe(e=>{const r=e.getObjectId();t.has(r)&&(this._update.modify(e.readOptimizedFeatureWorldSpace()),t.delete(r))});for(const e of t.values())this._update.remove(e)}}clearWeakOverrides(){for(const[t,e]of this._overrides.entries())e.isWeak&&this._overrides.delete(t);this.invalidate()}cleanup(t){if(this._overrides.size<1e4)return;const e=performance.now();if(e-this._lastCleanup<1e3)return;this._lastCleanup=e;const r=this._getWeakDeletions();if(!(r.size<1e4)){for(const e of t){const t=e.reader.withoutOverrides().getCursor();for(;t.next();){const e=t.getObjectId();r.delete(e)}}for(const t of r)this._overrides.delete(t);r.size&&this.invalidate()}}takeOverrideUpdate(){const t=this._update;return t.isEmpty?null:(this._update=new a,t.applyWhereClause(this._parameters))}asChunk(){const t=this._parameters;if(this._lastOverrideParametersHash!==t.hash&&(this._lastOverrideParametersHash=t.hash,this._chunk=null),!this._chunk){const e=[];for(const r of this._overrides.values())null!=r.inner&&t.testFeature(r.inner)&&e.push(r.inner);this._chunk=h.fromFeatures(e,t.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(t,e,r){for(const[s,i]of this._overrides.entries()){if(i.isWeak&&null!=i.inner){const n=i.inner.attributes[r];n&&e.has(n)&&!t.has(n)&&t.set(n,s);continue}if(null!=i.lastWeak&&null!=i.lastWeak.inner){const n=i.lastWeak.inner.attributes[r];n&&e.has(n)&&!t.has(n)&&t.set(n,s)}}}_getWeakDeletions(){const t=new Set;for(const[e,r]of this._overrides.entries())r.isWeak&&null==r.inner&&t.add(e);return t}}},8446:(t,e,r)=>{r.d(e,{K:()=>a});var s=r(90708),i=r(43334),n=r(95466),o=r(99996);class a extends o.Y{static fromFeatures(t,e){const{geometryType:r}=e,i=(0,s.Di)([],t,r,!1,!1,e.featureIdInfo);for(let e=0;e<i.length;e++)i[e].displayId=t[e].displayId;return a.fromOptimizedFeatures(i,e)}static fromFeatureSet(t,e){const r=(0,s.q3)(t,e.featureIdInfo);return a.fromOptimizedFeatureSet(r,e)}static fromOptimizedFeatureSet(t,e){const r=a.fromOptimizedFeatures(t.features,e);return r._exceededTransferLimit=t.exceededTransferLimit,r._transform=t.transform,r._fieldsIndex=new n.A(t.fields),r}static fromOptimizedFeatures(t,e,r){const s=new a(t,e);return s._fieldsIndex=e.fieldsIndex,s._transform=r,s}static empty(t){return new a([],t)}constructor(t,e){super(e),this._exceededTransferLimit=!1,this._featureIndex=-1,this._fieldsIndex=null,this._geometryType=e.geometryType,this._features=t}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return!1}get hasM(){return!1}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let t="";for(const e in this._current.attributes)t+=this._current.attributes[e];return t}getIndex(){return this._featureIndex}setIndex(t){this._featureIndex=t}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(t){this._current.displayId=t}copy(){const t=new a(this._features,this.metadata);return this.copyInto(t),t}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,i.N3)(this._current)?(0,s.Rk)(this._current.geometry,2):0}_readX(){return(0,i.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,i.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,i.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(t,e){if(!this._fieldsIndex){const e=this._current.attributes[t];if(void 0!==e)return e;const r=t.toLowerCase();for(const t in this._current.attributes)if(t.toLowerCase()===r)return this._current.attributes[t];return}const r=this._fieldsIndex.get(t);if(!r)return;const s=this._current.attributes[r.name];return null==s?s:e&&this.fields.isDateField(t)?new Date(s):s}_readAttributes(){return this._current.attributes}copyInto(t){super.copyInto(t),t._featureIndex=this._featureIndex,t._transform=this._transform,t._fieldsIndex=this._fieldsIndex}}},8631:(t,e,r)=>{r.d(e,{rS:()=>c,gK:()=>l}),r(44208);var s,i=r(53177),n=r(76357),o=r(31635),a=r(91429),h=r(93223);let u=class extends n.A{static{s=this}constructor(t){super(t),this.type="inherited"}clone(){return new s}};(0,o.Cg)([(0,h.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=s=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var d=r(41628);const l={key:"type",base:n.A,typeMap:{range:d.A,"coded-value":i.A,inherited:u}};function c(t){if(!t?.type)return null;switch(t.type){case"range":return d.A.fromJSON(t);case"codedValue":return i.A.fromJSON(t);case"inherited":return u.fromJSON(t)}return null}},9012:(t,e,r)=>{function s(t,{timeZone:e,timeExtent:r}){return{$view:{scale:t,timeZone:e,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(e,{N:()=>s})},9775:(t,e,r)=>{r.d(e,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,s.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},16630:(t,e,r)=>{r.d(e,{s:()=>h}),r(44208);var s=r(69397),i=r(92722),n=r(57733),o=r(99996);let a;class h extends o.Y{constructor(t,e,r,i,n,o=new Uint32Array(r.size())){super(t),this._fields=e,this._inner=r,this._chunkId=i,this._fileIndex=n,this._displayIds=o,this._index=-1,this.usedMemory=s.qK,this._size=this._inner.size(),t.featureIdInfo.type,this._chunkId>65535&&console.error("Exceeded max allowed parquet reader size")}destroy(){super.destroy(),this._inner.free()}get fields(){return this._fields}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let t="";for(const e of this.fields.fields)t+=this._readAttribute(e.name,!1)+".";return t}getObjectId(){return this._fileIndex<<24|this._inner.rowId(this._index)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(t){this._displayIds[this._index]=t}setIndex(t){this._index=t}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(t){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const t=new h(this.metadata,this._fields,this._inner,this._chunkId,this._fileIndex,this._displayIds);return this.copyInto(t),t}copyInto(t){super.copyInto(t),t._index=this._index}readGeometryForDisplayTransformed(t){const[e,r]=t.translate,[s,o]=t.scale;return a||(a=n.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(a,e,r,s,o,this._index)?new i.A(a.readLengthsUnsafe(),a.readCoordsUnsafe(),this.hasZ,this.hasM):null}_readGeometry(t){const e=this._inner.readCoords(this._index),r=this._inner.readLengths(this._index);return e&&r?new i.A(r,e,this.hasZ,this.hasM):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(t,e){const r=this.fields.get(t);if(!r)return;if(null==r.column)return this.getObjectId();const s=this._inner.readAttribute(this._index,r.column);if(null==s)return s;const i=this.fields.isDateField(r.name);return e?null==s?s:i?new Date(s):s:s}_readAttributes(){const t={};for(const e of this._fields.fields)null!=e.column&&(this._inner.isEmpty(e.column)||(t[e.name]=this._readAttribute(e.name,!1)));return t.__OBJECTID=this.getObjectId(),t}}},20437:(t,e,r)=>{r.d(e,{A:()=>p});var s,i=r(31635),n=r(66552),o=r(25482),a=r(91429),h=r(56507),u=r(8631),d=r(98453),l=r(36005),c=r(93223);const _=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let p=class extends o.o{static{s=this}constructor(t){super(t),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(t,{description:e}){let r=null;try{r=e?JSON.parse(e):null}catch(t){}return r?.value??null}readValueType(t,{description:e}){let r=null;try{r=e?JSON.parse(e):null}catch(t){}return r?_.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],p.prototype,"description",void 0),(0,i.Cg)([(0,l.w)("description")],p.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.gK,json:{read:{reader:u.rS},write:!0}})],p.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:h.jz,json:{write:{overridePolicy:t=>({enabled:Number.isFinite(t)})}}})],p.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(d.m)],p.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],p.prototype,"valueType",void 0),(0,i.Cg)([(0,l.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],p)},28923:(t,e,r)=>{r.d(e,{j:()=>i});var s=r(70300);class i extends s.K{constructor(t,e,r,s,i=0){super(),this._reader=t,this._queryJSON=e,this._page=r,this._end=s,this._fileIndex=i,this.chunkId=`${this._fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(t){const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}},30661:(t,e,r)=>{r.d(e,{Z:()=>n});var s=r(43334),i=r(8446);class n{static{this.Shared=new n}getObjectId(t){return t.getObjectId()}getAttributes(t){return t.readAttributes()}getAttribute(t,e){return t.readAttribute(e)}getAttributeAsTimestamp(t,e){return t.readAttributeAsTimestamp(e)}cloneWithGeometry(t,e){const r=t.readAttributes(),n=new s.Om(e,r,null,t.getObjectId(),t.getDisplayId()),o=i.K.fromOptimizedFeatures([n],t.metadata);return o.setIndex(0),o}getGeometry(t){return t.readGeometryWorldSpace()}getCentroid(t,e){return t.readCentroidForDisplay()}}},32011:(t,e,r)=>{r.d(e,{d:()=>u});var s=r(19419),i=r(537),n=r(12359),o=r(95108),a=r(12176);const h=222045e-19;function u(t){if(0===t.totalSize)return null;const e=(0,i.z8)(t);if(!e)return null;const r=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*h;let o=0,a=0;t.reset();for(let e=0;t.nextPath();e++){const r=t.getCurrentRingArea();r>a&&(a=r,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const u=(0,i.B$)(t);if(Math.abs(a)<=2*r*r)return[(u[0]+u[2])/2,(u[1]+u[3])/2];t.seekPathStart();const _=(0,n.w2)(t,(0,s.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const p=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN];let y=!1,g=l(_,t,!0);0===g.distance&&(y=!0,p[0][0]=_[0],p[0][1]=_[1],g=l(_,t,!1)),f[0]=g.distance,m[0]=0;const x=[NaN,NaN];let T=!1,w=.25,M=-1,S=NaN;do{if(S=NaN,p[1]=c(t,I(u[0],u[2],w),0,e),isNaN(p[1][0])||isNaN(p[1][1])||(g=l(p[1],t,!1),S=g.distance),!isNaN(S)&&S>r&&d(p[1],t))T=!0,f[1]=S,m[1]=v(p[1],_);else if(!isNaN(S)&&S>M&&(M=S,x[0]=p[1][0],x[1]=p[1][1]),w-=.01,w<.1){if(!(M>=0))break;T=!0,f[1]=M,p[1][0]=x[0],p[1][1]=x[1],m[1]=v(p[1],_)}}while(!T);T=!1,w=.5,M=-1;let F=.01,A=1;do{if(S=NaN,p[2]=c(t,I(u[0],u[2],w),0,e),isNaN(p[2][0])||isNaN(p[2][1])||(g=l(p[2],t,!1),S=g.distance),!isNaN(S)&&S>r&&d(p[2],t))T=!0,f[2]=S,m[2]=v(p[2],_);else if(!isNaN(S)&&S>M)M=S,x[0]=p[2][0],x[1]=p[2][1];else if(S>M&&(M=S,x[0]=p[2][0],x[1]=p[2][1]),w=.5+F*A,F+=.01,A*=-1,w<.3||w>.7){if(!(M>=0))break;T=!0,f[2]=M,p[2][0]=x[0],p[2][1]=x[1],m[2]=v(p[2],_)}}while(!T);T=!1,w=.75,M=-1;do{if(S=NaN,p[3]=c(t,I(u[0],u[2],w),0,e),isNaN(p[3][0])||isNaN(p[3][1])||(g=l(p[3],t,!1),S=g.distance),!isNaN(S)&&S>r&&d(p[3],t))T=!0,f[3]=S,m[3]=v(p[3],_);else if(S>M&&(M=S,x[0]=p[3][0],x[1]=p[3][1]),w+=.01,w>.9){if(!(M>=0))break;T=!0,f[3]=M,p[3][0]=x[0],p[3][1]=x[1],m[3]=v(p[3],_)}}while(!T);const C=[0,1,2,3],P=y?0:1;let O;for(let t=P;t<4;t++)for(let t=P;t<3;t++){const e=m[t],r=m[t+1];b(e,r)>0&&(O=C[t],C[t]=C[t+1],C[t+1]=O,m[t]=r,m[t+1]=e)}let N=P,k=0,z=0;for(let t=P;t<4;t++){switch(t){case 0:z=2*f[C[t]];break;case 1:z=1.66666666*f[C[t]];break;case 2:z=1.33333333*f[C[t]];break;case 3:z=f[C[t]]}z>k&&(k=z,N=C[t])}return p[N]}function d(t,e){let r,s,i,n,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(r=e.x,s=e.y;e.nextPoint();r=i,s=n)i=e.x,n=e.y,s>t[1]!=n>t[1]&&((i-r)*(t[1]-s)-(n-s)*(t[0]-r)>0?o++:o--);return 0!==o}function l(t,e,r){if(r&&d(t,e))return{coord:t,distance:0};let s=1/0,i=0,n=0,a=[0,0],h=[0,0];const u=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=h){h=[e.x,e.y],(0,o.gR)(u,t,a,h);const r=v(t,u);r<s&&(s=r,i=u[0],n=u[1])}return{coord:[i,n],distance:Math.sqrt(s)}}function c(t,e,r,i){const n=[e,0];let o=1/0,h=1/0,u=!1,d=!1;const l=[[e,i[1]-1],[e,i[3]+1]],c=[0,0],p=[0,0],f=[0,0],m=[[0,0],[0,0]],y=(0,s.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(m[0][0]=t.x,m[0][1]=t.y;t.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=t.x,m[1][1]=t.y,null===_(y,m))continue;if(p[0]=l[0][0],p[1]=l[0][1],f[0]=l[1][0],f[1]=l[1][1],0===g(y,p,f))continue;if(!(0,a.Ql)(l[0],l[1],m[0],m[1],c))continue;const e=c[1];o>h?e<o&&(o=e,u=!0):e<h&&(h=e,d=!0)}return u&&d?n[1]=(o+h)/2:n[0]=n[1]=NaN,n}function _(t,e){if(e.length<2)return null;t||(t=(0,s.vt)());const[r,i]=e[0],[n,o]=e[1];return t[0]=Math.min(r,n),t[1]=Math.min(i,o),t[2]=Math.max(r,n),t[3]=Math.max(i,o),t}const p=1,f=4,m=3,y=12;function g(t,e,r){let s=x(e,t),i=x(r,t);const n=t[0],o=t[1],a=t[2],h=t[3];if(s&i)return 0;if(!(s|i))return 4;const u=(s?1:0)|(i?2:0);do{const u=r[0]-e[0],d=r[1]-e[1];if(u>d)s&m?(s&p?(e[1]+=d*(n-e[0])/u,e[0]=n):(e[1]+=d*(a-e[0])/u,e[0]=a),s=x(e,t)):i&m?(i&p?(r[1]+=d*(n-r[0])/u,r[0]=n):(r[1]+=d*(a-r[0])/u,r[0]=a),i=x(r,t)):s?(s&f?(e[0]+=u*(o-e[1])/d,e[1]=o):(e[0]+=u*(h-e[1])/d,e[1]=h),s=x(e,t)):(i&f?(r[0]+=u*(o-r[1])/d,r[1]=o):(r[0]+=u*(h-r[1])/d,r[1]=h),i=x(r,t));else if(s&y?(s&f?(e[0]+=u*(o-e[1])/d,e[1]=o):(e[0]+=u*(h-e[1])/d,e[1]=h),s=x(e,t)):i&y?(i&f?(r[0]+=u*(o-r[1])/d,r[1]=o):(r[0]+=u*(h-r[1])/d,r[1]=h),i=x(r,t)):s?(s&p?(e[1]+=d*(n-e[0])/u,e[0]=n):(e[1]+=d*(a-e[0])/u,e[0]=a),s=x(e,t)):(i&p?(r[1]+=d*(n-r[0])/u,r[0]=n):(r[1]+=d*(a-r[0])/u,r[0]=a),i=x(r,t)),s&i)return 0}while(s|i);return u}function x(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function I(t,e,r){return t+(e-t)*r}function v(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function b(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const r=isNaN(t),s=isNaN(e);return r<s?-1:r>s?1:0}},35258:(t,e,r)=>{r.d(e,{i:()=>n});var s=r(16930),i=r(95466);class n{static minimal(t,e,r=[]){return new n({geometryType:t,fieldsIndex:new i.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:e},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(t){return new n(t)}constructor(t){let e;this._options=t,this._fieldsIndex=i.A.fromJSON(t.fieldsIndex),t.spatialReference&&(t.spatialReference instanceof s.A?this._spatialReference=t.spatialReference:this._spatialReference=s.A.fromJSON(t.spatialReference)),t.outSpatialReference&&(t.outSpatialReference instanceof s.A?this._outSpatialReference=t.outSpatialReference:this._outSpatialReference=s.A.fromJSON(t.outSpatialReference)),"object-id"===t.featureIdInfo.type&&(e=t.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:e,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(t){return new n({fieldsIndex:{fields:[...this._fieldsIndex.fields,...t],timeZoneByFieldName:null},geometryType:this.geometryType,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},36708:(t,e,r)=>{r.d(e,{C_:()=>c,OH:()=>f,Vh:()=>m,on:()=>l,pc:()=>y,wB:()=>h,z7:()=>u});var s=r(37955),i=r(36563),n=r(97768),o=r(74887),a=r(14012);function h(t,e,r={}){return d(t,e,r,_)}function u(t,e,r={}){return d(t,e,r,p)}function d(t,e,r={},s){let i=null;const o=r.once?(t,r)=>{s(t)&&((0,n.xt)(i),e(t,r))}:(t,r)=>{s(t)&&e(t,r)};if(i=(0,a.Cn)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return i}function l(t,e,r,o={}){let a=null,u=null,d=null;function l(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(t){o.once&&o.once&&(0,n.xt)(d),r(t)}const _=h(t,(t,r)=>{l(),(0,s.wb)(t)&&(a=t,u=(0,s.on)(t,e,c),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return d=(0,i.hA)(()=>{_.remove(),l()}),d}function c(t,e){return function(t,e,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function h(){a=(0,n.xt)(a)}return new Promise((s,n)=>{a=(0,i.vE)([(0,o.u7)(r,()=>{h(),n((0,o.NK)())}),d(t,t=>{h(),s(t)},{sync:!1,once:!0},e??_)])})}(t,p,e)}function _(t){return!0}function p(t){return!!t}r(80559);const f={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},36745:(t,e,r)=>{r.d(e,{z:()=>a});var s=r(4718),i=r(51118),n=r(65864),o=r(92722);class a{static fromOptimized(t,e,r=1){return(new h).initialize(t,e,r)}static fromJSON(t){const[e,r]=d(t),s=(0,n.Pv)(t),i=(0,n.W0)(t);return(new l).initialize(e,r,s,i,1)}static fromOptimizedCIM(t,e,r=1){return(new c).initialize(t,e,r)}static fromJSONCIM(t,e=1){const[r,s]=d(t),i=(0,n.Pv)(t),o=(0,n.W0)(t);return(new _).initialize(r,s,i,o,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimized(e,r):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimizedCIM(e,r):null}static createEmptyOptimized(t,e=!1,r=!1,s=1){return(new c).initialize(new o.A([],[],e,r),t,s)}static createEmptyJSON(t,e=!1,r=!1){return(new l).initialize([],t,e,r,1)}static createEmptyOptimizedCIM(t,e=!1,r=!1,s=1){return(new c).initialize(new o.A([],[],e,r),t,s)}static createEmptyJSONCIM(t,e=!1,r=!1,s=1){return(new _).initialize([],t,e,r,s)}asJSON(){const t=(0,i.x)(this),{hasZ:e,hasM:r}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:r}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:r?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:r}:{paths:t,hasZ:e,hasM:r}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const s=t,i=e;for(;this.nextPoint();)r+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return r+=(t-s)*(e+i),-.5*r}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,r){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=r,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,r=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],e.slice(r,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,r=this._geometry.coords;let s=0;for(let i=this._pathOffset+e;i<t;i+=e){const t=r[i-e],n=r[i-e+1],o=r[i]-t,a=r[i+1]-n;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,r=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[r+s])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function u(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function d(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[u(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class l extends a{initialize(t,e,r,s,i){return this._paths=t,this.geometryType=e,this.hasZ=r,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=i,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let r=0;for(let s=1;s<t;s++){const t=e[s-1],i=e[s],n=t[0],o=t[1],a=i[0]-n,h=i[1]-o;r+=Math.sqrt(a*a+h*h)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new l).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,i.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,r=new o.A([],[],t,e),{coords:s,lengths:i}=r;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),i.length=0;else for(const r of this._paths){for(const i of r)s.push(i[0]),s.push(i[1]*this.yFactor),t&&s.push(i[2]),e&&s.push(i[this._mIndex]);i.push(r.length)}return r}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}clone(){return(new l).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class c extends h{initialize(t,e,r){return super.initialize(t,e,r),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new c).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class _ extends l{initialize(t,e,r,s,i){return super.initialize(t,e,r,s,i)}clone(){return(new _).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},38976:(t,e,r)=>{r.d(e,{n:()=>n});var s=r(76213),i=r(9012);class n{constructor(t){this._options=t}insert(t,e){const r=t.getCursor(),{arcadeContextInfo:s,scale:n}=this._options,o=(0,i.N)(n,s);for(;r.next();)this._insertFeature(r,o,this._options.sqlOptions,e)}_insertFeature(t,e,r,i){const{featureFilter:n}=this._options;if(null!==n&&!n.check(t,r))return;let o=0,a=0;if("esriGeometryPoint"===t.geometryType)o=t.readXWorldSpace(),a=t.readYWorldSpace();else{if(i){const e=t.readCentroidForDisplay();if(null==e)return;const[r,i]=e.coords;if(r<0||r>s.CQ||i<0||i>s.CQ)return}const e=t.readCentroidWorldSpace();if(null==e)return;o=e.coords[0],a=e.coords[1]}this._insert(t,o,a,e)}}},39357:(t,e,r)=>{r.d(e,{H:()=>a});var s,i=r(31635),n=r(25482),o=r(91429);let a=s=class extends n.o{constructor(t){super(t),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628:(t,e,r)=>{r.d(e,{A:()=>h});var s,i=r(31635),n=r(91429),o=r(76357),a=r(93223);let h=class extends o.A{static{s=this}constructor(t){super(t),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new s({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(t,e)=>e.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(t,e,r){e[r]=[this.minValue||0,t]},isRequired:!0}}})],h.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(t,e)=>e.range?.[0]},write:{target:"range",writer(t,e,r){e[r]=[t,this.maxValue||0]},isRequired:!0}}})],h.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],h.prototype,"type",void 0),h=s=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],h)},44320:(t,e,r)=>{r.d(e,{I:()=>h});var s=r(65529),i=r(44208),n=r(70328),o=r(30661),a=r(5162);class h{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new s.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const t of this._chunks.values())this._chunksToRemove.push(t);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let t=0;for(const e of this._chunks.values())t+=e.usedMemory;return t}async update(t){if(this._overrides){const e=await a.HJ.create(t);this._overrides.update(e)}this._schema=t}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insert(t){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(t),this._chunks.set(t.chunkId,t),this.events.emit("changed")}remove(t){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.remove`),this._chunks.delete(t.chunkId),this._chunksToRemove.push(t)}removeById(t){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t}] SourceChunkStore.remove`);const e=this._chunks.get(t);this._chunks.delete(t),e&&this._chunksToRemove.push(e)}cleanup(){const t=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),t}async applyOverride(t){if(null==this._overrides){const t=await a.HJ.create(this._schema);this._overrides=new a.Im(t);for(const t of this._chunks.values())this._overrides.onChunkInsert(t)}this._overrides.apply(t,this),this.events.emit("changed");for(const t of this._chunks.values())t.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(t){const e=new Set;for(const r of this.chunks()){const s=r.reader.getCursor();for(;s.next();){const r=s.getObjectId();e.has(r)||(t(s.copy()),e.add(r))}}}forEachUnsafe(t){const e=new Set;for(const r of this.chunks()){const s=r.reader.getCursor();for(;s.next();){const r=s.getObjectId();e.has(r)||(t(s),e.add(r))}}}mapObjectIdsFromGlobalIds(t,e){const r=new Map,s=new Set(t);return this._overrides?.putWeakObjectIdsFromGlobalIds(r,s,e),this._forEachUnsafeIgnoreOverrides(t=>{const i=t.readAttribute(e);if(i&&s.has(i)&&!r.has(i)){const e=t.getObjectId();r.set(i,e)}}),r}forEachInBounds(t,e){const r=new Set;for(const s of this.chunks()){const i=s.queryFeaturesInBounds(t);for(;i.next();){const t=i.getObjectId();r.has(t)||(e(i.copy()),r.add(t))}}}forEachBounds(t,e){const r=(0,n.vt)();for(const s of t)s.getBounds(r)&&e(r)}_forEachUnsafeIgnoreOverrides(t){const e=new Set;for(const r of this._chunks.values()){const s=r.reader.withoutOverrides().getCursor();for(;s.next();){const r=s.getObjectId();e.has(r)||(t(s),e.add(r))}}}}},48163:(t,e,r)=>{function s(){return[0,0]}function i(t){return[t[0],t[1]]}function n(t,e){return[t,e]}function o(){return n(1,1)}function a(){return n(1,0)}function h(){return n(0,1)}r.d(e,{Un:()=>u,fA:()=>n,o8:()=>i,vt:()=>s});const u=o(),d=a(),l=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:d,UNIT_Y:l,ZEROS:[0,0],clone:i,create:s,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let s=0;s<r;++s)e[s]=t[s];return e},fromValues:n,ones:o,unitX:a,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},50115:(t,e,r)=>{r.d(e,{OP:()=>o,V4:()=>i,rZ:()=>n}),r(44208);var s=r(53966);function i(t,e,r){if(null==t)return null;const i=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;try{return t.evaluate(i,r)}catch(t){return s.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}function n(t){return null==t||t===1/0||t===-1/0||"number"==typeof t&&isNaN(t)}function o(t,e,r,s){if(null==t)return null!=s?s:null;const i=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;const o=t.evaluate(i,r);return n(o)?null!=s?s:null:o}},52350:(t,e,r)=>{r.d(e,{e:()=>a});var s=r(69397),i=r(62577),n=r(90708),o=r(99996);class a extends o.Y{static from(t,e){if(t instanceof this){const r=new Set(e),s=t._indices.filter(t=>r.has(t));return new a(t._reader,s)}return new a(t.copy(),e)}constructor(t,e){super(t.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=t,this._indices=e}setTransformForDisplay(t){const e=this._reader.getInTransform();if(null==e)return void(this._displayTransform=(0,i.Q1)(t));const r=(0,i.Q1)(e),s=(0,i.Q1)(t),[n,o]=r.scale,[a,h]=r.translate,[u,d]=s.scale,[l,c]=s.translate,_=n/u,p=o/d,f=(a-l)/u,m=(h-c)/d;this._displayTransform={originPosition:"lowerLeft",scale:[1/_,1/p,1,1],translate:[-f/_,-m/p,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const t=new a(this._reader.copy(),this._indices);return t._currentIndex=this._currentIndex,t._displayTransform=this._displayTransform,t._processorAttributes=this._processorAttributes,t}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(t){this._reader.contextTimeZone=t}get usedMemory(){return s.qK+this._reader.usedMemory}setProcessorAttributes(t){this._processorAttributes=Object.assign(this._processorAttributes??{},t)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,i.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,i.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const t=this._reader.readCentroidForDisplay()?.clone();if(t){const[e,r]=t.coords;this._displayTransform&&(t.coords[0]=(0,i.IE)(this._displayTransform,e),t.coords[1]=(0,i.B2)(this._displayTransform,r))}return t}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(t,e=!1){const r=this._reader.readAttribute(t,e);return null==r&&this._processorAttributes?this._processorAttributes[t]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(t){return this._reader.joinAttributes(t)}getBounds(t){return this._reader.getBounds(t)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(t){return this._reader.setDisplayId(t)}setIndex(t){return this._reader.setIndex(t)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,n.zv)(t,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(t,e){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(t){return this._reader.field(t)}hasField(t){return this._reader.hasField(t)}setField(t,e){return this._reader.setField(t,e)}keys(){return this._reader.keys()}castToText(t=!1){return this._reader.castToText(t)}}},53177:(t,e,r)=>{r.d(e,{A:()=>d});var s,i=r(31635),n=r(4718),o=r(91429),a=r(39357),h=r(76357),u=r(93223);let d=class extends h.A{static{s=this}constructor(t){super(t),this.codedValues=null,this.type="coded-value"}getName(t){let e=null;if(this.codedValues){const r=String(t);this.codedValues.some(t=>(String(t.code)===r&&(e=t.name),!!e))}return e}clone(){return new s({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],d)},63664:(t,e,r)=>{r.d(e,{B:()=>s});class s{constructor(t){this._statistics=t}get statistics(){return this._statistics}}},64714:(t,e,r)=>{r.d(e,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>_});var s=r(44208),i=r(4718),n=r(99352),o=r(93470);function a(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?o.Cb:"esriGeometryPolyline"===t?o.yM:o.WR}}}const h=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let r=`this${l(e)} = null;`;for(const e in t)r+=`this${l(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[e]:null,...t})}}function l(t){return h.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function c(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(t)}}]}function _(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:n.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},68974:(t,e,r)=>{r.d(e,{H:()=>u,p:()=>h});var s=r(69397),i=r(86211),n=r(38976),o=r(75538);const a=96;function h(t,e){return(0,i.GA)(t)*i.dy*a/e}class u extends n.n{constructor(t){super(t),this._cells=new Map,this._pixelsPerMapUnit=h(t.spatialReference,t.scale)}get usedMemory(){const t=this._cells.values().next().value;return t?(s.RS+t.usedMemory)*this._cells.size:0}put(t){for(const e of this._cells.values()){const r=t.get(e.id);r?r.merge(e):t.set(e.id,e.clone())}}putBounded(t,e,r){const s=[e.xmin,e.ymin,e.xmax,e.ymax],[i,n,o,a]=s,h=Math.floor(i*this._pixelsPerMapUnit/this._options.cellSize),u=Math.floor(n*this._pixelsPerMapUnit/this._options.cellSize),d=Math.ceil(o*this._pixelsPerMapUnit/this._options.cellSize),l=Math.ceil(a*this._pixelsPerMapUnit/this._options.cellSize);for(let e=u;e<=l;e++)for(let r=h;r<=d;r++){const s=`${r}.${e}`,i=this._cells.get(s);if(!i)continue;const n=t.get(i.id);n?i&&!t.has(i.id)&&n.merge(i):t.set(i.id,i.clone())}}_insert(t,e,r,s){const i=e*this._pixelsPerMapUnit,n=r*this._pixelsPerMapUnit,o=Math.floor(i/this._options.cellSize),a=Math.floor(n/this._options.cellSize);this._getCellOrCreate(o,a).insert(t,s,e,r)}_getCellOrCreate(t,e){const r=o.L.createId(t,e);let s=this._cells.get(r);if(!s){const i=1*this._options.cellSize/this._pixelsPerMapUnit;s=o.L.create(t,e,this._options.fields,i),this._cells.set(r,s)}return s}}},70300:(t,e,r)=>{r.d(e,{K:()=>j});var s=r(69397),i=r(11006);function n(t,e){if(!(this instanceof n))return new n(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this.toBBox=e:this._initFormat(e)),this.clear()}function o(t,e,r){if(!r)return e.indexOf(t);for(var s=0;s<e.length;s++)if(r(t,e[s]))return s;return-1}function a(t,e){h(t,0,t.children.length,e,t)}function h(t,e,r,s,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,o=e;o<r;o++)n=t.children[o],u(i,t.leaf?s(n):n);return i}function u(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function d(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function _(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){var r=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),n=Math.min(t.maxY,e.maxY);return Math.max(0,i-r)*Math.max(0,n-s)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,r,s,n){for(var o,a=[e,r];a.length;)(r=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((r-e)/s/2)*s,(0,i.q)(t,o,e,r,n),a.push(e,o,o,r))}n.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,r=[],s=this.toBBox;if(!y(t,e))return r;for(var i,n,o,a,h=[];e;){for(i=0,n=e.children.length;i<n;i++)o=e.children[i],y(t,a=e.leaf?s(o):o)&&(e.leaf?r.push(o):m(t,a)?this._all(o,r):h.push(o));e=h.pop()}return r},collides:function(t){var e=this.data,r=this.toBBox;if(!y(t,e))return!1;for(var s,i,n,o,a=[];e;){for(s=0,i=e.children.length;s<i;s++)if(n=e.children[s],y(t,o=e.leaf?r(n):n)){if(e.leaf||m(t,o))return!0;a.push(n)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}var s=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===s.height)this._splitRoot(this.data,s);else{if(this.data.height<s.height){var i=this.data;this.data=s,s=i}this._insert(s,this.data.height-s.height-1,!0)}else this.data=s;return this},insert:function(t){return null!=t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,e){if(null==t)return this;for(var r,s,i,n,a=this.data,h=this.toBBox(t),u=[],d=[];a||u.length;){if(a||(a=u.pop(),s=u[u.length-1],r=d.pop(),n=!0),a.leaf&&-1!==(i=o(t,a.children,e)))return a.children.splice(i,1),u.push(a),this._condense(u),this;n||a.leaf||!m(a,h)?s?(r++,a=s.children[r],n=!1):a=null:(u.push(a),d.push(r),r=0,s=a,a=a.children[0])}return this},toBBox:function(t){return t},compareMinX:d,compareMinY:l,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},_build:function(t,e,r,s){var i,n=r-e+1,o=this._maxEntries;if(n<=o)return a(i=g(t.slice(e,r+1)),this.toBBox),i;s||(s=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/Math.pow(o,s-1))),(i=g([])).leaf=!1,i.height=s;var h,u,d,l,c=Math.ceil(n/o),_=c*Math.ceil(Math.sqrt(o));for(x(t,e,r,_,this.compareMinX),h=e;h<=r;h+=_)for(x(t,h,d=Math.min(h+_-1,r),c,this.compareMinY),u=h;u<=d;u+=c)l=Math.min(u+c-1,d),i.children.push(this._build(t,u,l,s-1));return a(i,this.toBBox),i},_chooseSubtree:function(t,e,r,s){for(var i,n,o,a,h,u,d,l;s.push(e),!e.leaf&&s.length-1!==r;){for(d=l=1/0,i=0,n=e.children.length;i<n;i++)h=c(o=e.children[i]),(u=p(t,o)-h)<l?(l=u,d=h<d?h:d,a=o):u===l&&h<d&&(d=h,a=o);e=a||e.children[0]}return e},_insert:function(t,e,r){var s=this.toBBox,i=r?t:s(t),n=[],o=this._chooseSubtree(i,this.data,e,n);for(o.children.push(t),u(o,i);e>=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(i,n,e)},_split:function(t,e){var r=t[e],s=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,s);var n=this._chooseSplitIndex(r,i,s),o=g(r.children.splice(n,r.children.length-n));o.height=r.height,o.leaf=r.leaf,a(r,this.toBBox),a(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var s,i,n,o,a,u,d,l;for(u=d=1/0,s=e;s<=r-e;s++)o=f(i=h(t,0,s,this.toBBox),n=h(t,s,r,this.toBBox)),a=c(i)+c(n),o<u?(u=o,l=s,d=a<d?a:d):o===u&&a<d&&(d=a,l=s);return l},_chooseSplitAxis:function(t,e,r){var s=t.leaf?this.compareMinX:d,i=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,r,s)<this._allDistMargin(t,e,r,i)&&t.children.sort(s)},_allDistMargin:function(t,e,r,s){t.children.sort(s);var i,n,o=this.toBBox,a=h(t,0,e,o),d=h(t,r-e,r,o),l=_(a)+_(d);for(i=e;i<r-e;i++)n=t.children[i],u(a,t.leaf?o(n):n),l+=_(a);for(i=r-e-1;i>=e;i--)n=t.children[i],u(d,t.leaf?o(n):n),l+=_(d);return l},_adjustParentBBoxes:function(t,e,r){for(var s=r;s>=0;s--)u(e[s],t)},_condense:function(t){for(var e,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}};var I=r(70328);class v{static fromReader(t){const e=[],r=t.copy(),s=(0,I.vt)();for(;r.next();)r.getBounds(s)&&e.push(r.getIndex());const i=n(9,t=>(r.setIndex(t),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return i.load(e),new v(i,e.length)}constructor(t,e){this._index=t,this._size=e}get usedMemory(){return this._size*s.RS}search(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this._index.search(e)}}r(44208);var b=r(34727),T=(r(37585),r(48163)),w=r(39829),M=r(16930),S=r(19419),F=r(79258),A=r(90708),C=r(31464);function P(t,e,r,s){if(s.isWebMercator){const s=(0,b.KJ)(t/F.$O.radius),i=s-360*Math.floor((s+180)/360),n=[0,0];return O(n,0,(0,b.KJ)(Math.PI/2-2*Math.atan(Math.exp(-e/F.$O.radius))),i,r),n}const i=(0,C.Cv)({x:t,y:e},s,M.A.WGS84);if(!i)return null;const n=[0,0];return O(n,0,i.y,i.x,r),n}function O(t,e,r,s,i){i%2&&(i+=1);let n=0,o=0,a=-90,h=90,u=-180,d=180;for(let t=0;t<i/2;t++){for(let e=0;e<5;e++){const r=(u+d)/2,i=s>r?1:0;n|=i<<29-(e+5*t),u=(1-i)*u+i*r,d=(1-i)*r+i*d}for(let e=0;e<5;e++){const s=(a+h)/2,i=r>s?1:0;o|=i<<29-(e+5*t),a=(1-i)*a+i*s,h=(1-i)*s+i*h}}t[2*e]=n,t[2*e+1]=o}(0,T.vt)(),(0,T.vt)();var N=r(63664),k=r(92029);class z extends N.B{static create(t,e,r,s){const i=k.o.create(t),n=new Array(32);for(let t=0;t<n.length;t++)n[t]=null;return new z(i,e,r,s,n)}constructor(t,e,r,s,i){super(t),this.xNode=e,this.yNode=r,this.depth=s,this.children=i,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let t=0;return t+=2*s.qK,t+=32*s.RS,t+=k.o.estimatedMemory,t}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const t=new z(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._xGeohashTotal=this._xGeohashTotal,t._yGeohashTotal=this._yGeohashTotal,t.next=this.next,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,s,i,n){this._count+=1,this._xWorldTotal+=e,this._yWorldTotal+=r,this._xGeohashTotal+=s,this._yGeohashTotal+=i,this._statistics.insert(t,n),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._xGeohashTotal+=t._xWorldTotal,this._yGeohashTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroid(t){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(t,e){const r=this._getLngLatBounds(),[s,i,n,o]=r,a=(0,C.Cv)({rings:[[[s,i],[s,o],[n,o],[n,i],[s,i]]]},M.A.WGS84,t),h=(0,A.Ye)(a);return null!=e?(0,A.Nl)(h,"esriGeometryPolygon",e,!1,!1):h}getGeometricCentroid(t,e){const r=this._getLngLatBounds(),[s,i,n,o]=r,a=(0,C.Cv)({x:(s+n)/2,y:(i+o)/2},M.A.WGS84,t),h=(0,A.qN)(a);return null!=e?(0,A.Nl)(h,"esriGeometryPoint",e,!1,!1):h}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return t.aggregateCount=this._count,t}find(t,e,r,s,i,n){if(s>=r)return this;const o=1-s%2,a=3*o+2*(1-o),h=2*o+3*(1-o),u=30-i-a,d=30-n-h,l=((t&7*o+3*(1-o)<<u)>>u)+((e&3*o+7*(1-o)<<d)>>d)*(8*o+4*(1-o)),c=this.children[l];return null==c?null:c.find(t,e,r,s+1,i+a,n+h)}_getLngLatBounds(){const t=this.depth,e=Math.ceil(t/2),r=Math.floor(t/2),s=30-(3*e+2*r),i=30-(2*e+3*r);return function(t,e){let r=-90,s=90,i=-180,n=180;for(let o=0;o<e;o++){const e=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),h=1-o%2,u=30-(3*e+2*a),d=30-(2*e+3*a),l=2*h+3*(1-h),c=(7*h+3*(1-h)<<u&t.geohashX)>>u,_=(3*h+7*(1-h)<<d&t.geohashY)>>d;for(let t=3*h+2*(1-h)-1;t>=0;t--){const e=(i+n)/2,r=c&1<<t?1:0;i=(1-r)*i+r*e,n=(1-r)*e+r*n}for(let t=l-1;t>=0;t--){const e=(r+s)/2,i=_&1<<t?1:0;r=(1-i)*r+i*e,s=(1-i)*e+i*s}}return[i,r,n,s]}({geohashX:this.xNode<<s,geohashY:this.yNode<<i},this.depth)}}class B{constructor(t){this._fields=t,this._size=0,this._depth=0,this._root=z.create(this._fields,0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*z.estimatedMemory}find(t,e,r){return this._root.find(t,e,r,0,0,0)}insert(t,e,r,s,i,n,o){let a=this._root,h=0,u=0,d=0;for(;null!==a;){if(a.insert(t,e,r,s,i,o),h>=n)return;const l=Math.ceil((h+1)/2),c=Math.floor((h+1)/2),_=1-h%2,p=30-(3*l+2*c),f=30-(2*l+3*c),m=(s&7*_+3*(1-_)<<p)>>p,y=(i&3*_+7*(1-_)<<f)>>f,g=m+y*(8*_+4*(1-_));u=u<<3*_+2*(1-_)|m,d=d<<2*_+3*(1-_)|y,null==a.children[g]&&(a.children[g]=z.create(this._fields,u,d,h+1),this._depth=Math.max(this._depth,h+1),this._size+=1),h+=1,a=a.children[g]}}putBins(t,e){for(const r of this.getNodes(e)){const e=t.get(r.id);e?e.merge(r):t.set(r.id,r.clone())}}getNodes(t){const e=[],{geohashBounds:r,level:s}=t;let i=this._root;for(;null!==i;){const t=i.depth,n=i.xNode,o=i.yNode;if(t>=s){e.push(i),i=i.next;continue}const a=Math.ceil((t+1)/2),h=Math.floor((t+1)/2),u=1-t%2,d=30-(3*a+2*h),l=30-(2*a+3*h),c=~((1<<d)-1),_=~((1<<l)-1),p=(r.xLL&c)>>d,f=(r.yLL&_)>>l,m=(r.xTR&c)>>d,y=(r.yTR&_)>>l,g=n<<3*u+2*(1-u),x=o<<2*u+3*(1-u),I=g+8*u+4*(1-u),v=x+4*u+8*(1-u),b=Math.max(g,p),T=Math.max(x,f),w=Math.min(I,m),M=Math.min(v,y);let S=null,F=null;for(let t=T;t<=M;t++)for(let e=b;e<=w;e++){const r=e-g+(t-x)*(8*u+4*(1-u)),s=i.children[r];s&&(S||(S=s,S.next=i.next),F&&(F.next=s),F=s,s.next=i.next)}i=S||i.next}return e}}var D=r(38976);class G extends D.n{constructor(t){super(t),this._tree=new B(this._options.fields)}get usedMemory(){return this._tree.usedMemory}put(t){throw new Error("Geohash tree does not support put")}putBounded(t,e,r){const{geohashLevel:s,spatialReference:i}=this._options,n=function(t,e,r,s){const i=[t.xmin,t.ymin,t.xmax,t.ymax],n=w.A.fromExtent((0,S.w1)(i,s)),o=(0,C.Cv)(n,s,M.A.WGS84,{extendedParams:{densificationStep:64*e}});if(!o)return null;const a=(0,A.Ye)(o,!1,!1),h=a.coords.filter((t,e)=>!(e%2)),u=a.coords.filter((t,e)=>e%2),d=Math.min(...h),l=Math.min(...u),c=Math.max(...h),_=Math.max(...u),p=P(d,l,r,M.A.WGS84),f=P(c,_,r,M.A.WGS84);return p&&f?{bounds:i,geohashBounds:{xLL:p[0],yLL:p[1],xTR:f[0],yTR:f[1]},level:r}:null}(e,r,s,i);null!=n&&this._tree.putBins(t,n)}_insert(t,e,r,s){const{geohashLevel:i,spatialReference:n}=this._options,o=P(e,r,i,n);o&&this._tree.insert(t,e,r,o[0],o[1],i,s)}}var W=r(68974),Y=r(52350);class j{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._aggregateIndex=null,this._aggregateIndexHash=null,this._spatialIndex=null}get usedMemory(){let t=0;return t+=this.reader.underlyingMemory,this._aggregateIndex&&(t+=this._aggregateIndex.usedMemory),this._spatialIndex&&(t+=this._spatialIndex.usedMemory),t}registerOverrides(t){this.reader.registerOverrides(t),this.invalidate()}queryFeaturesInBounds(t){const e=this._getSpatialIndex().search(t);return Y.e.from(this.reader,e)}getAggregateIndex(t){const e=JSON.stringify(t);if(e!==this._aggregateIndexHash){switch(this._aggregateIndexHash=e,t.type){case"grid":this._aggregateIndex=new W.H(t);break;case"geohash":this._aggregateIndex=new G(t)}this._aggregateIndex.insert(this.reader,this.isTiled)}return this._aggregateIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=v.fromReader(this.reader)),this._spatialIndex}}},73250:(t,e,r)=>{r.d(e,{y:()=>i});var s=r(69397);class i{static fromBuffer(t,e){return new i(t,e)}static create(t,e=4294967295){const r=new Uint32Array(Math.ceil(t/32));return new i(r,e)}constructor(t,e){this._mask=0,this._buf=t,this._mask=e}_getIndex(t){return Math.floor(t/32)}get usedMemory(){return(0,s.Qf)(this._buf)}has(t){const e=this._mask&t;return!!(this._buf[this._getIndex(e)]&1<<e%32)}hasRange(t,e){let r=t,s=e;for(;r%32&&r!==s;){if(this.has(r))return!0;r++}for(;s%32&&r!==s;){if(this.has(r))return!0;s--}if(r===s)return!1;for(let t=r/32;t!==s/32;t++)if(this._buf[t])return!0;return!1}set(t){const e=this._mask&t,r=this._getIndex(e),s=1<<e%32;this._buf[r]|=s}setRange(t,e){let r=t,s=e;for(;r%32&&r!==s;)this.set(r++);for(;s%32&&r!==s;)this.set(s--);if(r!==s)for(let t=r/32;t!==s/32;t++)this._buf[t]=4294967295}unset(t){const e=this._mask&t,r=this._getIndex(e),s=1<<e%32;this._buf[r]&=4294967295^s}resize(t){const e=this._buf,r=new Uint32Array(Math.ceil(t/32));r.set(e),this._buf=r}or(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=t._buf[e];return this}and(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=t._buf[e];return this}xor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=t._buf[e];return this}ior(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=~t._buf[e];return this}iand(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=~t._buf[e];return this}ixor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=~t._buf[e];return this}any(){for(let t=0;t<this._buf.length;t++)if(this._buf[t])return!0;return!1}copy(t){for(let e=0;e<this._buf.length;e++)this._buf[e]=t._buf[e];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let t=0;t<this._buf.length;t++)this._buf[t]=0;return this}forEachSet(t){for(let e=0;e<this._buf.length;e++){let r=this._buf[e],s=32*e;if(r)for(;r;)1&r&&t(s),r>>>=1,s++}}countSet(){let t=0;return this.forEachSet(e=>{t++}),t}}},75538:(t,e,r)=>{r.d(e,{L:()=>a});var s=r(90708),i=r(92722),n=r(63664),o=r(92029);class a extends n.B{static createId(t,e){return`${t}.${e}`}static create(t,e,r,s){return new a(t,e,o.o.create(r),s)}constructor(t,e,r,s){super(r),this.gridX=t,this.gridY=e,this._worldUnitsPerCell=s,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){const t=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._firstFeatureAttributes=this._firstFeatureAttributes,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,s){0===this._count?this._firstFeatureAttributes=t.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=s,this._statistics.insert(t,e),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._firstFeatureAttributes=t._firstFeatureAttributes,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroidX(t){return null==t?this.centroidXWorld:(0,s.IE)(t,this.centroidXWorld)}getCentroidY(t){return null==t?this.centroidYWorld:(0,s.B2)(t,this.centroidYWorld)}getGeometry(t,e){const r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,o=new i.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null!=e?(0,s.Nl)(o,"esriGeometryPolygon",e):o}getCentroid(t){const e=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null!=t?(0,s.Nl)(e,"esriGeometryPoint",t):e}getGeometricCentroid(t,e){const r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new i.A([],[r,n]);return null!=e?(0,s.Nl)(o,"esriGeometryPoint",e):o}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return null!=this._firstFeatureAttributes?{...t,...this._firstFeatureAttributes}:t}}},76213:(t,e,r)=>{r.d(e,{C2:()=>o,CQ:()=>s,DY:()=>i,GR:()=>f,Gh:()=>h,MZ:()=>c,TB:()=>p,U5:()=>a,_M:()=>u,cp:()=>m,eG:()=>n,fq:()=>_,hM:()=>l,ie:()=>d});const s=512,i=29,n=24,o=4,a=6,h=1.05,u=3,d=3,l=4,c=1,_=10,p=256,f=32,m=512},76357:(t,e,r)=>{r.d(e,{A:()=>u});var s=r(31635),i=r(66552),n=r(25482),o=r(91429),a=r(93223);const h=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends n.o{constructor(t){super(t),this.name=null,this.type=null}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,s.Cg)([(0,a.e)(h),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,s.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},92029:(t,e,r)=>{r.d(e,{o:()=>o});var s=r(69397),i=r(50115);const n=Math.PI/180;class o{static create(t){return new o(t.map(t=>function(t){switch(t.statisticType){case"min":return new h(t);case"max":return new u(t);case"avg":return new l(t);case"avg_angle":return new c(t);case"sum":case"count":return new d(t);case"mode":return new _(t)}}(t)))}constructor(t){this._statistics=t}static get estimatedMemory(){return s.qK+4*s.qK}values(){return this._statistics.values()}insert(t,e){for(const r of this._statistics)r.insert(t,e)}merge(t){for(let e=0;e<this._statistics.length;e++){const r=this._statistics[e],s=t._statistics[e];if(r.field.name!==s.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");r.merge(s)}}clone(){return new o(this._statistics.map(t=>t.clone()))}}class a{constructor(t){this.field=t}insert(t,e){if(!this.field.computed)return;const r=this.field.computed.read(t,e);(0,i.rZ)(r)||this._insertValue(r)}}class h extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(t){this.value=Math.min(this.value,t)}merge(t){this.value=Math.min(this.value,t.value)}clone(){const t=new h(this.field);return t.value=this.value,t}}class u extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(t){this.value=Math.max(this.value,t)}merge(t){this.value=Math.max(this.value,t.value)}clone(){const t=new u(this.field);return t.value=this.value,t}}class d extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(t){this.value+=t}merge(t){this.value+=t.value}clone(){const t=new d(this.field);return t.value=this.value,t}}class l extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(t){this._total+=t,this._count+=1}merge(t){this._total+=t._total,this._count+=t._count}clone(){const t=new l(this.field);return t._total=this._total,t._count=this._count,t}}class c extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const t=this._x/this._count,e=this._y/this._count,r=180/Math.PI;return Math.atan2(e,t)*r}_insertValue(t){this._x=this._x+Math.cos(t*n),this._y=this._y+Math.sin(t*n),this._count+=1}merge(t){this._x+=t._x,this._y+=t._y,this._count+=t._count}clone(){const t=new c(this.field);return t._x=this._x,t._y=this._y,t._count=this._count,t}}class _ extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let t,e=0;for(const[r,s]of this._frequencies.entries())s>e&&(e=s,t=r);return t}_insertValue(t){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+1):this._frequencies.set(t,1)}merge(t){for(const[e,r]of t._frequencies.entries()){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+r):this._frequencies.set(e,r)}}clone(){const t=new _(this.field);return t._frequencies=new Map(this._frequencies),t}}},97633:(t,e,r)=>{r.d(e,{P:()=>n});var s=r(69397),i=r(73250);class n{constructor(t){this._valid=i.y.create(t),this._data=new Array(t)}get usedMemory(){let t=this._valid.usedMemory;if(this._data.length>0){const e="string"==typeof this._data[0]?64:s.RS;t+=this._data.length*e}return t}has(t){return this._valid.has(t)}set(t,e){this._valid.set(t),this._data[t]=e}get(t){return this._data[t]}}},98453:(t,e,r)=>{r.d(e,{m:()=>s});const s=new(r(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"})},99996:(t,e,r)=>{r.d(e,{Y:()=>O});var s=r(66131),i=r(44208),n=r(69397),o=r(44729),a=r(15032),h=r(36745),u=r(70328),d=r(65864),l=r(32011),c=r(62577),_=r(27647),p=r(90708),f=r(43334),m=r(92722),y=r(98623),g=r(97633);const x=(0,i.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],I=x[0],v=x[1],b=x[2],T=x[3],w=(0,i.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],M=w[0],S=w[1],F=w[2],A=(0,i.A)("featurelayer-simplify-mobile-factor")??2,C=(0,i.A)("esri-mobile"),P=4294967295;class O{constructor(t){this.metadata=t,this.type="FeatureSetReader",this._overrides=null,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(t,e){let r=1;const s=C?A:1;e>4e6?r=F*s:e>1e6?r=S*s:e>5e5?r=M*s:e>1e5&&(r=s);let i=0;return t>4e3?i=T*r:t>2e3?i=b*r:t>100?i=v:t>15&&(i=I),i}getBounds(t){!function(t,e){if(!(t.length>e))for(;t.length<=e;)t.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const e=this.getBoundsXMin();if(e===P||!isFinite(e))return!1;if(0===this.getBoundsXMin()){const e=this.readGeometryWorldSpace();if(e?.isPoint&&0===e.coords[0]&&0===e.coords[1])return(0,u.BI)(t,0,0,0,0),!0;if(!e)return this.setBoundsXMin(P),!1;let r=1/0,s=1/0,i=-1/0,n=-1/0;return e.forEachVertex((t,e)=>{r=Math.min(r,t),s=Math.min(s,e),i=Math.max(i,t),n=Math.max(n,e)}),this.setBoundsXMin(r),this.setBoundsYMin(s),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,u.BI)(t,r,s,i,n),!0}const r=this.getBoundsXMin(),s=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,u.BI)(t,r,s,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(t){this._boundsBuffer[4*this.getIndex()]=t}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(t){this._boundsBuffer[4*this.getIndex()+1]=t}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(t){this._boundsBuffer[4*this.getIndex()+2]=t}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(t){this._boundsBuffer[4*this.getIndex()+3]=t}readAttributeAsTimestamp(t){const e=this.readAttribute(t);return"string"==typeof e?new Date(e).getTime():"number"==typeof e||null==e?e:null}readAttribute(t,e=!1){const r=this._readAttribute(t,e);if(void 0!==r)return r;for(const r of this._joined){r.setIndex(this.getIndex());const s=r._readAttribute(t,e);if(void 0!==s)return s}}readAttributes(){const t=this._readAttributes();for(const e of this._joined){e.setIndex(this.getIndex());const r=e._readAttributes();for(const e of Object.keys(r))t[e]=r[e]}return t}joinAttributes(t){this._joined.push(t)}registerOverrides(t){this._overrides=t}withoutOverrides(){const t=this.copy();return t._overrides=null,t}readOptimizedFeatureWorldSpace(){const t=this.readGeometryWorldSpace(),e=this.readAttributes(),r=this.readCentroidWorldSpace();return new f.Om(t,e,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyFeatureWorldSpace(){const t=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,p.zv)(t,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const t=this._readX(),e=this.getInTransform();return null==e?t:t*e.scale[0]+e.translate[0]}readYWorldSpace(){const t=this._readY(),e=this.getInTransform();return null==e?t:e.translate[1]-t*e.scale[1]}readGeometryForDisplay(){const t=this._readGeometryDeltaDecoded(!0);if(!t){const t=this._createDeltaQuantizedGeometryFromServerCentroid();return t?t.deltaDecode():null}return t}readGeometryForDisplayTransformed(t){let e=this.readGeometryForDisplay();if(e&&"esriGeometryPolyline"===this.metadata.geometryType&&(e=(0,p.kz)(e,this.metadata.geometryType,t.scale[0])),e&&(e=(0,p.hK)(e,t,this.metadata.geometryType)),!e){const e=this.readCentroidForDisplay();if(!e)return null;const r=(0,c.IE)(t,e.coords[0]),s=(0,c.B2)(t,e.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,s).deltaDecode()}return e}readGeometryWorldSpace(){let t=this._readGeometry();if(t||(t=this._createDeltaQuantizedGeometryFromServerCentroid()),!t)return null;const e=t.clone(),r=this.getInTransform();return null!=r&&(0,p.aQ)(e,r),e}readCentroidForDisplay(){const t=this.readGeometryForDisplay();return t?this._computeDisplayCentroid(t):this._readServerCentroid()}readCentroidWorldSpace(){const t=this.readGeometryForDisplay(),e=t?this._computeDisplayCentroid(t):this._readServerCentroid();if(!e)return null;const r=e.clone(),s=this.getInTransform();return null!=s&&(0,p.aQ)(r,s),r}setCache(t){let e=this._caches.get(t);null==e&&(e=new g.P(this.getSize()),this._caches.set(t,e)),this._activeCache=e}setCachedValue(t){this._activeCache.set(this.getIndex(),t)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}get underlyingMemory(){let t=0;t+=(0,n.Qf)(this._boundsBuffer);for(const e of this._caches.values())t+=e.usedMemory;return t}_readGeometryDeltaDecoded(t){const e=this._readGeometry(t);return"esriGeometryPoint"!==this.geometryType&&e&&this.getInTransform()?e.deltaDecode():e}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(t){this._contextTimeZone=t}readArcadeFeature(){return this}hasField(t){return this.fields.has(t)||this._joined.some(e=>e.hasField(t))}geometry(){const t=this.readGeometryWorldSpace(),e=(0,p.zv)(t,this.geometryType,this.hasZ,this.hasM),r=(0,d.rS)(e);if(r){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");r.spatialReference=this.metadata.outSpatialReference}return r}autocastArcadeDate(t,e){return e&&e instanceof Date?this.isUnknownDateTimeField(t)?s.lY.unknownDateJSToArcadeDate(e):s.lY.dateJSAndZoneToArcadeDate(e,this.contextTimeZone??y.qU):e}isUnknownDateTimeField(t){return this.metadata.fieldsIndex.getTimeZone(t)===y.L5}field(t){let e=this.fields.get(t);if(e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this.readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(this.readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(this.readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,this.readAttribute(t,!0));default:return this.readAttribute(t,!1)}for(const r of this._joined)if(r.setIndex(this.getIndex()),e=r.fields.get(t),e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(r._readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(r._readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(r._readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,r._readAttribute(t,!0));default:return this.readAttribute(t,!1)}throw new Error(`Field ${t} does not exist`)}setField(t,e){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(t=>t.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(t=!1){if(!t)return JSON.stringify(this.readLegacyFeatureForDisplay());const e=this.readLegacyFeatureForDisplay();if(!e)return JSON.stringify(null);const r={geometry:e.geometry,attributes:{...e.attributes}};for(const t in r.attributes){const e=r.attributes[t];e instanceof Date&&(r.attributes[t]=e.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(t=null){return{attributes:this._readAttributes(),geometry:!0===t?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(t=null,e=null){return Promise.resolve(this.castAsJson(e))}_getExists(){if(this._overrides){const t=this.getObjectId();return!this._overrides.hasOverride(t)}return!0}_computeDisplayCentroid(t){if(null==this.getInTransform())return(0,_.Q)(t);const e=h.z.fromOptimized(t,this.geometryType);e.yFactor*=-1;const r=(0,l.d)(e);return r?(r[1]*=-1,new m.A([],r)):null}copyInto(t){t._joined=this._joined,t._overrides=this._overrides,t._objectIdToIndex=this._objectIdToIndex,t._boundsBuffer=this._boundsBuffer,t._activeCache=this._activeCache,t._caches=this._caches,t._contextTimeZone=this._contextTimeZone}_readLegacyGeometryWorldSpace(){const t=this.readGeometryWorldSpace();return(0,p.zv)(t,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const t=this._readServerCentroid();if(!t)return null;const[e,r]=t.coords;return this._createDeltaQuantizedExtrudedGeometry(e,r)}_createDeltaQuantizedExtrudedGeometry(t,e){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(t,e):this._createDeltaQuantizedExtrudedQuad(t,e)}_createDeltaQuantizedExtrudedQuad(t,e){return new m.A([5],[t-1,e,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(t,e){return new m.A([2],[t-1,e+1,1,-1])}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1075],{2272:(t,e,r)=>{r.d(e,{Dl:()=>u,gf:()=>l,jV:()=>h,lF:()=>d});var s=r(92602),i=r(70333),n=r(4718),o=r(84952),a=r(926);function h(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function u(t){return"string"==typeof t?(0,o.An)(t):(0,n.o8)(t)}function d(t,e,r){const s={};for(const i in t){if("declaredClass"===i)continue;const n=t[i];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))s[i]=n.map(t=>d(t));else if("object"==typeof n)if(n.toJSON){const t=n.toJSON(r?.[i]);s[i]=e?t:JSON.stringify(t)}else s[i]=e?n:JSON.stringify(n);else s[i]=n}return s}async function l(t,e,n){const o=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.CG)(t)??i.id?.findCredential(t)?.token:null}(t,e);if(o)return o;!i.id&&s.A.request.useIdentity&&await Promise.all([r.e(7330),r.e(168),r.e(148)]).then(r.bind(r,50148));const h=await i.id.getCredential(t,n);return h?.token}},5162:(t,e,r)=>{r.d(e,{HJ:()=>o,Im:()=>d,KN:()=>h});var s=r(39516),i=r(70300),n=r(8446);class o{static async create(t){const{metadata:e,definitionExpression:r}=t,i=r?await(0,s.GP)(r,e.fieldsIndex):null;return new o(e,i,r)}constructor(t,e,r){this.metadata=t,this._clause=e,this._definitionExpression=r}get hash(){return this._definitionExpression}testFeature(t){return null==this._clause||this._clause.testFeature(t)}}class a{constructor(){this.modified=new Map,this.removed=new Set}modify(t){this.modified.set(t.objectId,t),this.removed.has(t.objectId)&&this.removed.delete(t.objectId)}remove(t){this.modified.delete(t),this.removed.add(t)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(t){const e=new a;for(const[r,s]of this.modified)t.testFeature(s)?e.modified.set(r,s):e.removed.add(s.objectId);for(const t of this.removed)e.removed.add(t);return e}}class h extends i.K{constructor(t){super(),this._reader=t,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(t,e){const r=n.K.fromOptimizedFeatures(t,e);return new h(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(t){if(!this._reader.getSize())return null;const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}class u{constructor(t,e){this.inner=t,this.isWeak=e,this.lastWeak=null}get isStrong(){return!this.isWeak}}class d{constructor(t){this._parameters=t,this._overrides=new Map,this._update=new a,this._lastCleanup=0}update(t){this._parameters=t}hasOverride(t){return this._overrides.has(t)}onChunkInsert(t){if(this._overrides.size){const e=t.reader.getCursor();for(;e.next();){const t=e.getObjectId(),r=this._overrides.get(t);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){const t=e.readOptimizedFeatureWorldSpace(),s=r.inner?.attributes??{};t.attributes={...s,...t.attributes},r.inner=t,this._update.modify(t),this.invalidate()}}}t.registerOverrides(this)}apply(t,e){const{updateWeak:r,removeWeak:s,update:i,remove:n,release:o}=t.commands;this.invalidate();for(const t of r){const e=new u(t,!0),r=this._overrides.get(t.objectId);r?.isStrong?r.lastWeak=e:(this._overrides.set(t.objectId,e),this._update.modify(t))}for(const t of i){const e=new u(t,!1),r=this._overrides.get(t.objectId);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t.objectId,e),this._update.modify(t)}for(const t of s){const e=new u(null,!0),r=this._overrides.get(t);r?.isStrong?r.lastWeak=e:(this._overrides.set(t,e),this._update.remove(t))}for(const t of n){const e=new u(null,!1),r=this._overrides.get(t);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t,e),this._update.remove(t)}if(o.length){const t=new Set;for(const e of o){const r=this._overrides.get(e);r?.lastWeak?(this._overrides.set(e,r.lastWeak),null==r.lastWeak.inner?this._update.remove(e):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(e),t.add(e))}e.forEachUnsafe(e=>{const r=e.getObjectId();t.has(r)&&(this._update.modify(e.readOptimizedFeatureWorldSpace()),t.delete(r))});for(const e of t.values())this._update.remove(e)}}clearWeakOverrides(){for(const[t,e]of this._overrides.entries())e.isWeak&&this._overrides.delete(t);this.invalidate()}cleanup(t){if(this._overrides.size<1e4)return;const e=performance.now();if(e-this._lastCleanup<1e3)return;this._lastCleanup=e;const r=this._getWeakDeletions();if(!(r.size<1e4)){for(const e of t){const t=e.reader.withoutOverrides().getCursor();for(;t.next();){const e=t.getObjectId();r.delete(e)}}for(const t of r)this._overrides.delete(t);r.size&&this.invalidate()}}takeOverrideUpdate(){const t=this._update;return t.isEmpty?null:(this._update=new a,t.applyWhereClause(this._parameters))}asChunk(){const t=this._parameters;if(this._lastOverrideParametersHash!==t.hash&&(this._lastOverrideParametersHash=t.hash,this._chunk=null),!this._chunk){const e=[];for(const r of this._overrides.values())null!=r.inner&&t.testFeature(r.inner)&&e.push(r.inner);this._chunk=h.fromFeatures(e,t.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(t,e,r){for(const[s,i]of this._overrides.entries()){if(i.isWeak&&null!=i.inner){const n=i.inner.attributes[r];n&&e.has(n)&&!t.has(n)&&t.set(n,s);continue}if(null!=i.lastWeak&&null!=i.lastWeak.inner){const n=i.lastWeak.inner.attributes[r];n&&e.has(n)&&!t.has(n)&&t.set(n,s)}}}_getWeakDeletions(){const t=new Set;for(const[e,r]of this._overrides.entries())r.isWeak&&null==r.inner&&t.add(e);return t}}},8446:(t,e,r)=>{r.d(e,{K:()=>a});var s=r(90708),i=r(43334),n=r(95466),o=r(99996);class a extends o.Y{static fromFeatures(t,e){const{geometryType:r}=e,i=(0,s.Di)([],t,r,!1,!1,e.featureIdInfo);for(let e=0;e<i.length;e++)i[e].displayId=t[e].displayId;return a.fromOptimizedFeatures(i,e)}static fromFeatureSet(t,e){const r=(0,s.q3)(t,e.featureIdInfo);return a.fromOptimizedFeatureSet(r,e)}static fromOptimizedFeatureSet(t,e){const r=a.fromOptimizedFeatures(t.features,e);return r._exceededTransferLimit=t.exceededTransferLimit,r._transform=t.transform,r._fieldsIndex=new n.A(t.fields),r}static fromOptimizedFeatures(t,e,r){const s=new a(t,e);return s._fieldsIndex=e.fieldsIndex,s._transform=r,s}static empty(t){return new a([],t)}constructor(t,e){super(e),this._exceededTransferLimit=!1,this._featureIndex=-1,this._fieldsIndex=null,this._geometryType=e.geometryType,this._features=t}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return!1}get hasM(){return!1}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let t="";for(const e in this._current.attributes)t+=this._current.attributes[e];return t}getIndex(){return this._featureIndex}setIndex(t){this._featureIndex=t}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(t){this._current.displayId=t}copy(){const t=new a(this._features,this.metadata);return this.copyInto(t),t}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,i.N3)(this._current)?(0,s.Rk)(this._current.geometry,2):0}_readX(){return(0,i.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,i.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,i.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(t,e){if(!this._fieldsIndex){const e=this._current.attributes[t];if(void 0!==e)return e;const r=t.toLowerCase();for(const t in this._current.attributes)if(t.toLowerCase()===r)return this._current.attributes[t];return}const r=this._fieldsIndex.get(t);if(!r)return;const s=this._current.attributes[r.name];return null==s?s:e&&this.fields.isDateField(t)?new Date(s):s}_readAttributes(){return this._current.attributes}copyInto(t){super.copyInto(t),t._featureIndex=this._featureIndex,t._transform=this._transform,t._fieldsIndex=this._fieldsIndex}}},8631:(t,e,r)=>{r.d(e,{rS:()=>c,gK:()=>l}),r(44208);var s,i=r(53177),n=r(76357),o=r(31635),a=r(91429),h=r(93223);let u=class extends n.A{static{s=this}constructor(t){super(t),this.type="inherited"}clone(){return new s}};(0,o.Cg)([(0,h.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=s=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var d=r(41628);const l={key:"type",base:n.A,typeMap:{range:d.A,"coded-value":i.A,inherited:u}};function c(t){if(!t?.type)return null;switch(t.type){case"range":return d.A.fromJSON(t);case"codedValue":return i.A.fromJSON(t);case"inherited":return u.fromJSON(t)}return null}},9012:(t,e,r)=>{function s(t,{timeZone:e,timeExtent:r}){return{$view:{scale:t,timeZone:e,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(e,{N:()=>s})},9775:(t,e,r)=>{r.d(e,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,s.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},16630:(t,e,r)=>{r.d(e,{s:()=>h}),r(44208);var s=r(69397),i=r(92722),n=r(57733),o=r(99996);let a;class h extends o.Y{constructor(t,e,r,i,n,o=new Uint32Array(r.size())){super(t),this._fields=e,this._inner=r,this._chunkId=i,this._fileIndex=n,this._displayIds=o,this._index=-1,this.usedMemory=s.qK,this._size=this._inner.size(),t.featureIdInfo.type,this._chunkId>65535&&console.error("Exceeded max allowed parquet reader size")}destroy(){super.destroy(),this._inner.free()}get fields(){return this._fields}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let t="";for(const e of this.fields.fields)t+=this._readAttribute(e.name,!1)+".";return t}getObjectId(){return this._fileIndex<<24|this._inner.rowId(this._index)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(t){this._displayIds[this._index]=t}setIndex(t){this._index=t}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(t){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const t=new h(this.metadata,this._fields,this._inner,this._chunkId,this._fileIndex,this._displayIds);return this.copyInto(t),t}copyInto(t){super.copyInto(t),t._index=this._index}readGeometryForDisplayTransformed(t){const[e,r]=t.translate,[s,o]=t.scale;return a||(a=n.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(a,e,r,s,o,this._index)?new i.A(a.readLengthsUnsafe(),a.readCoordsUnsafe(),this.hasZ,this.hasM):null}_readGeometry(t){const e=this._inner.readCoords(this._index),r=this._inner.readLengths(this._index);return e&&r?new i.A(r,e,this.hasZ,this.hasM):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(t,e){const r=this.fields.get(t);if(!r)return;if(null==r.column)return this.getObjectId();const s=this._inner.readAttribute(this._index,r.column);if(null==s)return s;const i=this.fields.isDateField(r.name);return e?null==s?s:i?new Date(s):s:s}_readAttributes(){const t={};for(const e of this._fields.fields)null!=e.column&&(this._inner.isEmpty(e.column)||(t[e.name]=this._readAttribute(e.name,!1)));return t.__OBJECTID=this.getObjectId(),t}}},20437:(t,e,r)=>{r.d(e,{A:()=>f});var s,i=r(31635),n=r(66552),o=r(25482),a=r(91429),h=r(56507),u=r(8631),d=r(98453),l=r(36005),c=r(93223);const _=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=class extends o.o{static{s=this}constructor(t){super(t),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(t,{description:e}){let r=null;try{r=e?JSON.parse(e):null}catch(t){}return r?.value??null}readValueType(t,{description:e}){let r=null;try{r=e?JSON.parse(e):null}catch(t){}return r?_.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,i.Cg)([(0,l.w)("description")],f.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.gK,json:{read:{reader:u.rS},write:!0}})],f.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:h.jz,json:{write:{overridePolicy:t=>({enabled:Number.isFinite(t)})}}})],f.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(d.m)],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,i.Cg)([(0,l.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},28923:(t,e,r)=>{r.d(e,{j:()=>i});var s=r(70300);class i extends s.K{constructor(t,e,r,s,i=0){super(),this._reader=t,this._queryJSON=e,this._page=r,this._end=s,this._fileIndex=i,this.chunkId=`${this._fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(t){const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}},30661:(t,e,r)=>{r.d(e,{Z:()=>n});var s=r(43334),i=r(8446);class n{static{this.Shared=new n}getObjectId(t){return t.getObjectId()}getAttributes(t){return t.readAttributes()}getAttribute(t,e){return t.readAttribute(e)}getAttributeAsTimestamp(t,e){return t.readAttributeAsTimestamp(e)}cloneWithGeometry(t,e){const r=t.readAttributes(),n=new s.Om(e,r,null,t.getObjectId(),t.getDisplayId()),o=i.K.fromOptimizedFeatures([n],t.metadata);return o.setIndex(0),o}getGeometry(t){return t.readGeometryWorldSpace()}getCentroid(t,e){return t.readCentroidForDisplay()}}},32011:(t,e,r)=>{r.d(e,{d:()=>u});var s=r(19419),i=r(537),n=r(12359),o=r(95108),a=r(12176);const h=222045e-19;function u(t){if(0===t.totalSize)return null;const e=(0,i.z8)(t);if(!e)return null;const r=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*h;let o=0,a=0;t.reset();for(let e=0;t.nextPath();e++){const r=t.getCurrentRingArea();r>a&&(a=r,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const u=(0,i.B$)(t);if(Math.abs(a)<=2*r*r)return[(u[0]+u[2])/2,(u[1]+u[3])/2];t.seekPathStart();const _=(0,n.w2)(t,(0,s.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const f=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],p=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN];let y=!1,g=l(_,t,!0);0===g.distance&&(y=!0,f[0][0]=_[0],f[0][1]=_[1],g=l(_,t,!1)),p[0]=g.distance,m[0]=0;const x=[NaN,NaN];let T=!1,M=.25,w=-1,S=NaN;do{if(S=NaN,f[1]=c(t,I(u[0],u[2],M),0,e),isNaN(f[1][0])||isNaN(f[1][1])||(g=l(f[1],t,!1),S=g.distance),!isNaN(S)&&S>r&&d(f[1],t))T=!0,p[1]=S,m[1]=v(f[1],_);else if(!isNaN(S)&&S>w&&(w=S,x[0]=f[1][0],x[1]=f[1][1]),M-=.01,M<.1){if(!(w>=0))break;T=!0,p[1]=w,f[1][0]=x[0],f[1][1]=x[1],m[1]=v(f[1],_)}}while(!T);T=!1,M=.5,w=-1;let A=.01,F=1;do{if(S=NaN,f[2]=c(t,I(u[0],u[2],M),0,e),isNaN(f[2][0])||isNaN(f[2][1])||(g=l(f[2],t,!1),S=g.distance),!isNaN(S)&&S>r&&d(f[2],t))T=!0,p[2]=S,m[2]=v(f[2],_);else if(!isNaN(S)&&S>w)w=S,x[0]=f[2][0],x[1]=f[2][1];else if(S>w&&(w=S,x[0]=f[2][0],x[1]=f[2][1]),M=.5+A*F,A+=.01,F*=-1,M<.3||M>.7){if(!(w>=0))break;T=!0,p[2]=w,f[2][0]=x[0],f[2][1]=x[1],m[2]=v(f[2],_)}}while(!T);T=!1,M=.75,w=-1;do{if(S=NaN,f[3]=c(t,I(u[0],u[2],M),0,e),isNaN(f[3][0])||isNaN(f[3][1])||(g=l(f[3],t,!1),S=g.distance),!isNaN(S)&&S>r&&d(f[3],t))T=!0,p[3]=S,m[3]=v(f[3],_);else if(S>w&&(w=S,x[0]=f[3][0],x[1]=f[3][1]),M+=.01,M>.9){if(!(w>=0))break;T=!0,p[3]=w,f[3][0]=x[0],f[3][1]=x[1],m[3]=v(f[3],_)}}while(!T);const C=[0,1,2,3],P=y?0:1;let O;for(let t=P;t<4;t++)for(let t=P;t<3;t++){const e=m[t],r=m[t+1];b(e,r)>0&&(O=C[t],C[t]=C[t+1],C[t+1]=O,m[t]=r,m[t+1]=e)}let N=P,k=0,z=0;for(let t=P;t<4;t++){switch(t){case 0:z=2*p[C[t]];break;case 1:z=1.66666666*p[C[t]];break;case 2:z=1.33333333*p[C[t]];break;case 3:z=p[C[t]]}z>k&&(k=z,N=C[t])}return f[N]}function d(t,e){let r,s,i,n,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(r=e.x,s=e.y;e.nextPoint();r=i,s=n)i=e.x,n=e.y,s>t[1]!=n>t[1]&&((i-r)*(t[1]-s)-(n-s)*(t[0]-r)>0?o++:o--);return 0!==o}function l(t,e,r){if(r&&d(t,e))return{coord:t,distance:0};let s=1/0,i=0,n=0,a=[0,0],h=[0,0];const u=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=h){h=[e.x,e.y],(0,o.gR)(u,t,a,h);const r=v(t,u);r<s&&(s=r,i=u[0],n=u[1])}return{coord:[i,n],distance:Math.sqrt(s)}}function c(t,e,r,i){const n=[e,0];let o=1/0,h=1/0,u=!1,d=!1;const l=[[e,i[1]-1],[e,i[3]+1]],c=[0,0],f=[0,0],p=[0,0],m=[[0,0],[0,0]],y=(0,s.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(m[0][0]=t.x,m[0][1]=t.y;t.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=t.x,m[1][1]=t.y,null===_(y,m))continue;if(f[0]=l[0][0],f[1]=l[0][1],p[0]=l[1][0],p[1]=l[1][1],0===g(y,f,p))continue;if(!(0,a.Ql)(l[0],l[1],m[0],m[1],c))continue;const e=c[1];o>h?e<o&&(o=e,u=!0):e<h&&(h=e,d=!0)}return u&&d?n[1]=(o+h)/2:n[0]=n[1]=NaN,n}function _(t,e){if(e.length<2)return null;t||(t=(0,s.vt)());const[r,i]=e[0],[n,o]=e[1];return t[0]=Math.min(r,n),t[1]=Math.min(i,o),t[2]=Math.max(r,n),t[3]=Math.max(i,o),t}const f=1,p=4,m=3,y=12;function g(t,e,r){let s=x(e,t),i=x(r,t);const n=t[0],o=t[1],a=t[2],h=t[3];if(s&i)return 0;if(!(s|i))return 4;const u=(s?1:0)|(i?2:0);do{const u=r[0]-e[0],d=r[1]-e[1];if(u>d)s&m?(s&f?(e[1]+=d*(n-e[0])/u,e[0]=n):(e[1]+=d*(a-e[0])/u,e[0]=a),s=x(e,t)):i&m?(i&f?(r[1]+=d*(n-r[0])/u,r[0]=n):(r[1]+=d*(a-r[0])/u,r[0]=a),i=x(r,t)):s?(s&p?(e[0]+=u*(o-e[1])/d,e[1]=o):(e[0]+=u*(h-e[1])/d,e[1]=h),s=x(e,t)):(i&p?(r[0]+=u*(o-r[1])/d,r[1]=o):(r[0]+=u*(h-r[1])/d,r[1]=h),i=x(r,t));else if(s&y?(s&p?(e[0]+=u*(o-e[1])/d,e[1]=o):(e[0]+=u*(h-e[1])/d,e[1]=h),s=x(e,t)):i&y?(i&p?(r[0]+=u*(o-r[1])/d,r[1]=o):(r[0]+=u*(h-r[1])/d,r[1]=h),i=x(r,t)):s?(s&f?(e[1]+=d*(n-e[0])/u,e[0]=n):(e[1]+=d*(a-e[0])/u,e[0]=a),s=x(e,t)):(i&f?(r[1]+=d*(n-r[0])/u,r[0]=n):(r[1]+=d*(a-r[0])/u,r[0]=a),i=x(r,t)),s&i)return 0}while(s|i);return u}function x(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function I(t,e,r){return t+(e-t)*r}function v(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function b(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const r=isNaN(t),s=isNaN(e);return r<s?-1:r>s?1:0}},35258:(t,e,r)=>{r.d(e,{i:()=>n});var s=r(16930),i=r(95466);class n{static minimal(t,e,r=[]){return new n({geometryType:t,fieldsIndex:new i.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:e},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(t){return new n(t)}constructor(t){let e;this._options=t,this._fieldsIndex=i.A.fromJSON(t.fieldsIndex),t.spatialReference&&(t.spatialReference instanceof s.A?this._spatialReference=t.spatialReference:this._spatialReference=s.A.fromJSON(t.spatialReference)),t.outSpatialReference&&(t.outSpatialReference instanceof s.A?this._outSpatialReference=t.outSpatialReference:this._outSpatialReference=s.A.fromJSON(t.outSpatialReference)),"object-id"===t.featureIdInfo.type&&(e=t.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:e,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(t){return new n({fieldsIndex:{fields:[...this._fieldsIndex.fields,...t],timeZoneByFieldName:null},geometryType:this.geometryType,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},36708:(t,e,r)=>{r.d(e,{C_:()=>c,OH:()=>p,Vh:()=>m,on:()=>l,pc:()=>y,wB:()=>h,z7:()=>u});var s=r(37955),i=r(36563),n=r(97768),o=r(74887),a=r(14012);function h(t,e,r={}){return d(t,e,r,_)}function u(t,e,r={}){return d(t,e,r,f)}function d(t,e,r={},s){let i=null;const o=r.once?(t,r)=>{s(t)&&((0,n.xt)(i),e(t,r))}:(t,r)=>{s(t)&&e(t,r)};if(i=(0,a.Cn)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return i}function l(t,e,r,o={}){let a=null,u=null,d=null;function l(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(t){o.once&&o.once&&(0,n.xt)(d),r(t)}const _=h(t,(t,r)=>{l(),(0,s.wb)(t)&&(a=t,u=(0,s.on)(t,e,c),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return d=(0,i.hA)(()=>{_.remove(),l()}),d}function c(t,e){return function(t,e,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function h(){a=(0,n.xt)(a)}return new Promise((s,n)=>{a=(0,i.vE)([(0,o.u7)(r,()=>{h(),n((0,o.NK)())}),d(t,t=>{h(),s(t)},{sync:!1,once:!0},e??_)])})}(t,f,e)}function _(t){return!0}function f(t){return!!t}r(80559);const p={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},36745:(t,e,r)=>{r.d(e,{z:()=>a});var s=r(4718),i=r(51118),n=r(60408),o=r(92722);class a{static fromOptimized(t,e,r=1){return(new h).initialize(t,e,r)}static fromJSON(t){const[e,r]=d(t),s=(0,n.Pv)(t),i=(0,n.W0)(t);return(new l).initialize(e,r,s,i,1)}static fromOptimizedCIM(t,e,r=1){return(new c).initialize(t,e,r)}static fromJSONCIM(t,e=1){const[r,s]=d(t),i=(0,n.Pv)(t),o=(0,n.W0)(t);return(new _).initialize(r,s,i,o,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimized(e,r):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimizedCIM(e,r):null}static createEmptyOptimized(t,e=!1,r=!1,s=1){return(new c).initialize(new o.A([],[],e,r),t,s)}static createEmptyJSON(t,e=!1,r=!1){return(new l).initialize([],t,e,r,1)}static createEmptyOptimizedCIM(t,e=!1,r=!1,s=1){return(new c).initialize(new o.A([],[],e,r),t,s)}static createEmptyJSONCIM(t,e=!1,r=!1,s=1){return(new _).initialize([],t,e,r,s)}asJSON(){const t=(0,i.x)(this),{hasZ:e,hasM:r}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:r}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:r?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:r}:{paths:t,hasZ:e,hasM:r}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const s=t,i=e;for(;this.nextPoint();)r+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return r+=(t-s)*(e+i),-.5*r}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,r){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=r,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,r=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],e.slice(r,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,r=this._geometry.coords;let s=0;for(let i=this._pathOffset+e;i<t;i+=e){const t=r[i-e],n=r[i-e+1],o=r[i]-t,a=r[i+1]-n;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,r=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[r+s])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function u(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function d(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[u(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class l extends a{initialize(t,e,r,s,i){return this._paths=t,this.geometryType=e,this.hasZ=r,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=i,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let r=0;for(let s=1;s<t;s++){const t=e[s-1],i=e[s],n=t[0],o=t[1],a=i[0]-n,h=i[1]-o;r+=Math.sqrt(a*a+h*h)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new l).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,i.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,r=new o.A([],[],t,e),{coords:s,lengths:i}=r;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),i.length=0;else for(const r of this._paths){for(const i of r)s.push(i[0]),s.push(i[1]*this.yFactor),t&&s.push(i[2]),e&&s.push(i[this._mIndex]);i.push(r.length)}return r}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}clone(){return(new l).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class c extends h{initialize(t,e,r){return super.initialize(t,e,r),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new c).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class _ extends l{initialize(t,e,r,s,i){return super.initialize(t,e,r,s,i)}clone(){return(new _).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},38976:(t,e,r)=>{r.d(e,{n:()=>n});var s=r(76213),i=r(9012);class n{constructor(t){this._options=t}insert(t,e){const r=t.getCursor(),{arcadeContextInfo:s,scale:n}=this._options,o=(0,i.N)(n,s);for(;r.next();)this._insertFeature(r,o,this._options.sqlOptions,e)}_insertFeature(t,e,r,i){const{featureFilter:n}=this._options;if(null!==n&&!n.check(t,r))return;let o=0,a=0;if("esriGeometryPoint"===t.geometryType)o=t.readXWorldSpace(),a=t.readYWorldSpace();else{if(i){const e=t.readCentroidForDisplay();if(null==e)return;const[r,i]=e.coords;if(r<0||r>s.CQ||i<0||i>s.CQ)return}const e=t.readCentroidWorldSpace();if(null==e)return;o=e.coords[0],a=e.coords[1]}this._insert(t,o,a,e)}}},39357:(t,e,r)=>{r.d(e,{H:()=>a});var s,i=r(31635),n=r(25482),o=r(91429);let a=s=class extends n.o{constructor(t){super(t),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628:(t,e,r)=>{r.d(e,{A:()=>h});var s,i=r(31635),n=r(91429),o=r(76357),a=r(93223);let h=class extends o.A{static{s=this}constructor(t){super(t),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new s({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(t,e)=>e.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(t,e,r){e[r]=[this.minValue||0,t]},isRequired:!0}}})],h.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(t,e)=>e.range?.[0]},write:{target:"range",writer(t,e,r){e[r]=[t,this.maxValue||0]},isRequired:!0}}})],h.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],h.prototype,"type",void 0),h=s=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],h)},44320:(t,e,r)=>{r.d(e,{I:()=>h});var s=r(65529),i=r(44208),n=r(70328),o=r(30661),a=r(5162);class h{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new s.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const t of this._chunks.values())this._chunksToRemove.push(t);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let t=0;for(const e of this._chunks.values())t+=e.usedMemory;return t}async update(t){if(this._overrides){const e=await a.HJ.create(t);this._overrides.update(e)}this._schema=t}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insert(t){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(t),this._chunks.set(t.chunkId,t),this.events.emit("changed")}remove(t){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.remove`),this._chunks.delete(t.chunkId),this._chunksToRemove.push(t)}removeById(t){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t}] SourceChunkStore.remove`);const e=this._chunks.get(t);this._chunks.delete(t),e&&this._chunksToRemove.push(e)}cleanup(){const t=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),t}async applyOverride(t){if(null==this._overrides){const t=await a.HJ.create(this._schema);this._overrides=new a.Im(t);for(const t of this._chunks.values())this._overrides.onChunkInsert(t)}this._overrides.apply(t,this),this.events.emit("changed");for(const t of this._chunks.values())t.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(t){const e=new Set;for(const r of this.chunks()){const s=r.reader.getCursor();for(;s.next();){const r=s.getObjectId();e.has(r)||(t(s.copy()),e.add(r))}}}forEachUnsafe(t){const e=new Set;for(const r of this.chunks()){const s=r.reader.getCursor();for(;s.next();){const r=s.getObjectId();e.has(r)||(t(s),e.add(r))}}}mapObjectIdsFromGlobalIds(t,e){const r=new Map,s=new Set(t);return this._overrides?.putWeakObjectIdsFromGlobalIds(r,s,e),this._forEachUnsafeIgnoreOverrides(t=>{const i=t.readAttribute(e);if(i&&s.has(i)&&!r.has(i)){const e=t.getObjectId();r.set(i,e)}}),r}forEachInBounds(t,e){const r=new Set;for(const s of this.chunks()){const i=s.queryFeaturesInBounds(t);for(;i.next();){const t=i.getObjectId();r.has(t)||(e(i.copy()),r.add(t))}}}forEachBounds(t,e){const r=(0,n.vt)();for(const s of t)s.getBounds(r)&&e(r)}_forEachUnsafeIgnoreOverrides(t){const e=new Set;for(const r of this._chunks.values()){const s=r.reader.withoutOverrides().getCursor();for(;s.next();){const r=s.getObjectId();e.has(r)||(t(s),e.add(r))}}}}},48163:(t,e,r)=>{function s(){return[0,0]}function i(t){return[t[0],t[1]]}function n(t,e){return[t,e]}function o(){return n(1,1)}function a(){return n(1,0)}function h(){return n(0,1)}r.d(e,{Un:()=>u,fA:()=>n,o8:()=>i,vt:()=>s});const u=o(),d=a(),l=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:d,UNIT_Y:l,ZEROS:[0,0],clone:i,create:s,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let s=0;s<r;++s)e[s]=t[s];return e},fromValues:n,ones:o,unitX:a,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},50115:(t,e,r)=>{r.d(e,{OP:()=>o,V4:()=>i,rZ:()=>n}),r(44208);var s=r(53966);function i(t,e,r){if(null==t)return null;const i=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;try{return t.evaluate(i,r)}catch(t){return s.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}function n(t){return null==t||t===1/0||t===-1/0||"number"==typeof t&&isNaN(t)}function o(t,e,r,s){if(null==t)return null!=s?s:null;const i=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;const o=t.evaluate(i,r);return n(o)?null!=s?s:null:o}},52350:(t,e,r)=>{r.d(e,{e:()=>a});var s=r(69397),i=r(62577),n=r(90708),o=r(99996);class a extends o.Y{static from(t,e){if(t instanceof this){const r=new Set(e),s=t._indices.filter(t=>r.has(t));return new a(t._reader,s)}return new a(t.copy(),e)}constructor(t,e){super(t.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=t,this._indices=e}setTransformForDisplay(t){const e=this._reader.getInTransform();if(null==e)return void(this._displayTransform=(0,i.Q1)(t));const r=(0,i.Q1)(e),s=(0,i.Q1)(t),[n,o]=r.scale,[a,h]=r.translate,[u,d]=s.scale,[l,c]=s.translate,_=n/u,f=o/d,p=(a-l)/u,m=(h-c)/d;this._displayTransform={originPosition:"lowerLeft",scale:[1/_,1/f,1,1],translate:[-p/_,-m/f,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const t=new a(this._reader.copy(),this._indices);return t._currentIndex=this._currentIndex,t._displayTransform=this._displayTransform,t._processorAttributes=this._processorAttributes,t}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(t){this._reader.contextTimeZone=t}get usedMemory(){return s.qK+this._reader.usedMemory}setProcessorAttributes(t){this._processorAttributes=Object.assign(this._processorAttributes??{},t)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,i.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,i.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const t=this._reader.readCentroidForDisplay()?.clone();if(t){const[e,r]=t.coords;this._displayTransform&&(t.coords[0]=(0,i.IE)(this._displayTransform,e),t.coords[1]=(0,i.B2)(this._displayTransform,r))}return t}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(t,e=!1){const r=this._reader.readAttribute(t,e);return null==r&&this._processorAttributes?this._processorAttributes[t]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(t){return this._reader.joinAttributes(t)}getBounds(t){return this._reader.getBounds(t)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(t){return this._reader.setDisplayId(t)}setIndex(t){return this._reader.setIndex(t)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,n.zv)(t,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(t,e){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(t){return this._reader.field(t)}hasField(t){return this._reader.hasField(t)}setField(t,e){return this._reader.setField(t,e)}keys(){return this._reader.keys()}castToText(t=!1){return this._reader.castToText(t)}}},53177:(t,e,r)=>{r.d(e,{A:()=>d});var s,i=r(31635),n=r(4718),o=r(91429),a=r(39357),h=r(76357),u=r(93223);let d=class extends h.A{static{s=this}constructor(t){super(t),this.codedValues=null,this.type="coded-value"}getName(t){let e=null;if(this.codedValues){const r=String(t);this.codedValues.some(t=>(String(t.code)===r&&(e=t.name),!!e))}return e}clone(){return new s({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],d)},60408:(t,e,r)=>{function s(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function n(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?n(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":s(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function d(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>a,Pv:()=>d,Rg:()=>o,U9:()=>i,W0:()=>l,ZC:()=>s,fT:()=>n,uW:()=>h})},63664:(t,e,r)=>{r.d(e,{B:()=>s});class s{constructor(t){this._statistics=t}get statistics(){return this._statistics}}},64714:(t,e,r)=>{r.d(e,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>_});var s=r(44208),i=r(4718),n=r(99352),o=r(93470);function a(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?o.Cb:"esriGeometryPolyline"===t?o.yM:o.WR}}}const h=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let r=`this${l(e)} = null;`;for(const e in t)r+=`this${l(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[e]:null,...t})}}function l(t){return h.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function c(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(t)}}]}function _(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:n.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},65864:(t,e,r)=>{r.d(e,{rS:()=>d,xD:()=>c});var s=r(5443),i=r(91075),n=r(48526),o=r(86738),a=r(39829),h=r(82799),u=r(60408);function d(t){return null==t?null:t instanceof i.A?t:(0,u.fT)(t)?o.A.fromJSON(t):(0,u.Rg)(t)?h.A.fromJSON(t):(0,u.Bi)(t)?a.A.fromJSON(t):(0,u.U9)(t)?n.A.fromJSON(t):(0,u.ZC)(t)?s.A.fromJSON(t):null}const l={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:a.A};function c(t){return t&&l[t]||null}},68974:(t,e,r)=>{r.d(e,{H:()=>u,p:()=>h});var s=r(69397),i=r(86211),n=r(38976),o=r(75538);const a=96;function h(t,e){return(0,i.GA)(t)*i.dy*a/e}class u extends n.n{constructor(t){super(t),this._cells=new Map,this._pixelsPerMapUnit=h(t.spatialReference,t.scale)}get usedMemory(){const t=this._cells.values().next().value;return t?(s.RS+t.usedMemory)*this._cells.size:0}put(t){for(const e of this._cells.values()){const r=t.get(e.id);r?r.merge(e):t.set(e.id,e.clone())}}putBounded(t,e,r){const s=[e.xmin,e.ymin,e.xmax,e.ymax],[i,n,o,a]=s,h=Math.floor(i*this._pixelsPerMapUnit/this._options.cellSize),u=Math.floor(n*this._pixelsPerMapUnit/this._options.cellSize),d=Math.ceil(o*this._pixelsPerMapUnit/this._options.cellSize),l=Math.ceil(a*this._pixelsPerMapUnit/this._options.cellSize);for(let e=u;e<=l;e++)for(let r=h;r<=d;r++){const s=`${r}.${e}`,i=this._cells.get(s);if(!i)continue;const n=t.get(i.id);n?i&&!t.has(i.id)&&n.merge(i):t.set(i.id,i.clone())}}_insert(t,e,r,s){const i=e*this._pixelsPerMapUnit,n=r*this._pixelsPerMapUnit,o=Math.floor(i/this._options.cellSize),a=Math.floor(n/this._options.cellSize);this._getCellOrCreate(o,a).insert(t,s,e,r)}_getCellOrCreate(t,e){const r=o.L.createId(t,e);let s=this._cells.get(r);if(!s){const i=1*this._options.cellSize/this._pixelsPerMapUnit;s=o.L.create(t,e,this._options.fields,i),this._cells.set(r,s)}return s}}},70300:(t,e,r)=>{r.d(e,{K:()=>j});var s=r(69397),i=r(11006);function n(t,e){if(!(this instanceof n))return new n(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this.toBBox=e:this._initFormat(e)),this.clear()}function o(t,e,r){if(!r)return e.indexOf(t);for(var s=0;s<e.length;s++)if(r(t,e[s]))return s;return-1}function a(t,e){h(t,0,t.children.length,e,t)}function h(t,e,r,s,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,o=e;o<r;o++)n=t.children[o],u(i,t.leaf?s(n):n);return i}function u(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function d(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function _(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){var r=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),n=Math.min(t.maxY,e.maxY);return Math.max(0,i-r)*Math.max(0,n-s)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,r,s,n){for(var o,a=[e,r];a.length;)(r=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((r-e)/s/2)*s,(0,i.q)(t,o,e,r,n),a.push(e,o,o,r))}n.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,r=[],s=this.toBBox;if(!y(t,e))return r;for(var i,n,o,a,h=[];e;){for(i=0,n=e.children.length;i<n;i++)o=e.children[i],y(t,a=e.leaf?s(o):o)&&(e.leaf?r.push(o):m(t,a)?this._all(o,r):h.push(o));e=h.pop()}return r},collides:function(t){var e=this.data,r=this.toBBox;if(!y(t,e))return!1;for(var s,i,n,o,a=[];e;){for(s=0,i=e.children.length;s<i;s++)if(n=e.children[s],y(t,o=e.leaf?r(n):n)){if(e.leaf||m(t,o))return!0;a.push(n)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}var s=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===s.height)this._splitRoot(this.data,s);else{if(this.data.height<s.height){var i=this.data;this.data=s,s=i}this._insert(s,this.data.height-s.height-1,!0)}else this.data=s;return this},insert:function(t){return null!=t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,e){if(null==t)return this;for(var r,s,i,n,a=this.data,h=this.toBBox(t),u=[],d=[];a||u.length;){if(a||(a=u.pop(),s=u[u.length-1],r=d.pop(),n=!0),a.leaf&&-1!==(i=o(t,a.children,e)))return a.children.splice(i,1),u.push(a),this._condense(u),this;n||a.leaf||!m(a,h)?s?(r++,a=s.children[r],n=!1):a=null:(u.push(a),d.push(r),r=0,s=a,a=a.children[0])}return this},toBBox:function(t){return t},compareMinX:d,compareMinY:l,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},_build:function(t,e,r,s){var i,n=r-e+1,o=this._maxEntries;if(n<=o)return a(i=g(t.slice(e,r+1)),this.toBBox),i;s||(s=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/Math.pow(o,s-1))),(i=g([])).leaf=!1,i.height=s;var h,u,d,l,c=Math.ceil(n/o),_=c*Math.ceil(Math.sqrt(o));for(x(t,e,r,_,this.compareMinX),h=e;h<=r;h+=_)for(x(t,h,d=Math.min(h+_-1,r),c,this.compareMinY),u=h;u<=d;u+=c)l=Math.min(u+c-1,d),i.children.push(this._build(t,u,l,s-1));return a(i,this.toBBox),i},_chooseSubtree:function(t,e,r,s){for(var i,n,o,a,h,u,d,l;s.push(e),!e.leaf&&s.length-1!==r;){for(d=l=1/0,i=0,n=e.children.length;i<n;i++)h=c(o=e.children[i]),(u=f(t,o)-h)<l?(l=u,d=h<d?h:d,a=o):u===l&&h<d&&(d=h,a=o);e=a||e.children[0]}return e},_insert:function(t,e,r){var s=this.toBBox,i=r?t:s(t),n=[],o=this._chooseSubtree(i,this.data,e,n);for(o.children.push(t),u(o,i);e>=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(i,n,e)},_split:function(t,e){var r=t[e],s=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,s);var n=this._chooseSplitIndex(r,i,s),o=g(r.children.splice(n,r.children.length-n));o.height=r.height,o.leaf=r.leaf,a(r,this.toBBox),a(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var s,i,n,o,a,u,d,l;for(u=d=1/0,s=e;s<=r-e;s++)o=p(i=h(t,0,s,this.toBBox),n=h(t,s,r,this.toBBox)),a=c(i)+c(n),o<u?(u=o,l=s,d=a<d?a:d):o===u&&a<d&&(d=a,l=s);return l},_chooseSplitAxis:function(t,e,r){var s=t.leaf?this.compareMinX:d,i=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,r,s)<this._allDistMargin(t,e,r,i)&&t.children.sort(s)},_allDistMargin:function(t,e,r,s){t.children.sort(s);var i,n,o=this.toBBox,a=h(t,0,e,o),d=h(t,r-e,r,o),l=_(a)+_(d);for(i=e;i<r-e;i++)n=t.children[i],u(a,t.leaf?o(n):n),l+=_(a);for(i=r-e-1;i>=e;i--)n=t.children[i],u(d,t.leaf?o(n):n),l+=_(d);return l},_adjustParentBBoxes:function(t,e,r){for(var s=r;s>=0;s--)u(e[s],t)},_condense:function(t){for(var e,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}};var I=r(70328);class v{static fromReader(t){const e=[],r=t.copy(),s=(0,I.vt)();for(;r.next();)r.getBounds(s)&&e.push(r.getIndex());const i=n(9,t=>(r.setIndex(t),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return i.load(e),new v(i,e.length)}constructor(t,e){this._index=t,this._size=e}get usedMemory(){return this._size*s.RS}search(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this._index.search(e)}}r(44208);var b=r(34727),T=(r(37585),r(48163)),M=r(39829),w=r(16930),S=r(19419),A=r(79258),F=r(90708),C=r(31464);function P(t,e,r,s){if(s.isWebMercator){const s=(0,b.KJ)(t/A.$O.radius),i=s-360*Math.floor((s+180)/360),n=[0,0];return O(n,0,(0,b.KJ)(Math.PI/2-2*Math.atan(Math.exp(-e/A.$O.radius))),i,r),n}const i=(0,C.Cv)({x:t,y:e},s,w.A.WGS84);if(!i)return null;const n=[0,0];return O(n,0,i.y,i.x,r),n}function O(t,e,r,s,i){i%2&&(i+=1);let n=0,o=0,a=-90,h=90,u=-180,d=180;for(let t=0;t<i/2;t++){for(let e=0;e<5;e++){const r=(u+d)/2,i=s>r?1:0;n|=i<<29-(e+5*t),u=(1-i)*u+i*r,d=(1-i)*r+i*d}for(let e=0;e<5;e++){const s=(a+h)/2,i=r>s?1:0;o|=i<<29-(e+5*t),a=(1-i)*a+i*s,h=(1-i)*s+i*h}}t[2*e]=n,t[2*e+1]=o}(0,T.vt)(),(0,T.vt)();var N=r(63664),k=r(92029);class z extends N.B{static create(t,e,r,s){const i=k.o.create(t),n=new Array(32);for(let t=0;t<n.length;t++)n[t]=null;return new z(i,e,r,s,n)}constructor(t,e,r,s,i){super(t),this.xNode=e,this.yNode=r,this.depth=s,this.children=i,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let t=0;return t+=2*s.qK,t+=32*s.RS,t+=k.o.estimatedMemory,t}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const t=new z(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._xGeohashTotal=this._xGeohashTotal,t._yGeohashTotal=this._yGeohashTotal,t.next=this.next,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,s,i,n){this._count+=1,this._xWorldTotal+=e,this._yWorldTotal+=r,this._xGeohashTotal+=s,this._yGeohashTotal+=i,this._statistics.insert(t,n),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._xGeohashTotal+=t._xWorldTotal,this._yGeohashTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroid(t){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(t,e){const r=this._getLngLatBounds(),[s,i,n,o]=r,a=(0,C.Cv)({rings:[[[s,i],[s,o],[n,o],[n,i],[s,i]]]},w.A.WGS84,t),h=(0,F.Ye)(a);return null!=e?(0,F.Nl)(h,"esriGeometryPolygon",e,!1,!1):h}getGeometricCentroid(t,e){const r=this._getLngLatBounds(),[s,i,n,o]=r,a=(0,C.Cv)({x:(s+n)/2,y:(i+o)/2},w.A.WGS84,t),h=(0,F.qN)(a);return null!=e?(0,F.Nl)(h,"esriGeometryPoint",e,!1,!1):h}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return t.aggregateCount=this._count,t}find(t,e,r,s,i,n){if(s>=r)return this;const o=1-s%2,a=3*o+2*(1-o),h=2*o+3*(1-o),u=30-i-a,d=30-n-h,l=((t&7*o+3*(1-o)<<u)>>u)+((e&3*o+7*(1-o)<<d)>>d)*(8*o+4*(1-o)),c=this.children[l];return null==c?null:c.find(t,e,r,s+1,i+a,n+h)}_getLngLatBounds(){const t=this.depth,e=Math.ceil(t/2),r=Math.floor(t/2),s=30-(3*e+2*r),i=30-(2*e+3*r);return function(t,e){let r=-90,s=90,i=-180,n=180;for(let o=0;o<e;o++){const e=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),h=1-o%2,u=30-(3*e+2*a),d=30-(2*e+3*a),l=2*h+3*(1-h),c=(7*h+3*(1-h)<<u&t.geohashX)>>u,_=(3*h+7*(1-h)<<d&t.geohashY)>>d;for(let t=3*h+2*(1-h)-1;t>=0;t--){const e=(i+n)/2,r=c&1<<t?1:0;i=(1-r)*i+r*e,n=(1-r)*e+r*n}for(let t=l-1;t>=0;t--){const e=(r+s)/2,i=_&1<<t?1:0;r=(1-i)*r+i*e,s=(1-i)*e+i*s}}return[i,r,n,s]}({geohashX:this.xNode<<s,geohashY:this.yNode<<i},this.depth)}}class B{constructor(t){this._fields=t,this._size=0,this._depth=0,this._root=z.create(this._fields,0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*z.estimatedMemory}find(t,e,r){return this._root.find(t,e,r,0,0,0)}insert(t,e,r,s,i,n,o){let a=this._root,h=0,u=0,d=0;for(;null!==a;){if(a.insert(t,e,r,s,i,o),h>=n)return;const l=Math.ceil((h+1)/2),c=Math.floor((h+1)/2),_=1-h%2,f=30-(3*l+2*c),p=30-(2*l+3*c),m=(s&7*_+3*(1-_)<<f)>>f,y=(i&3*_+7*(1-_)<<p)>>p,g=m+y*(8*_+4*(1-_));u=u<<3*_+2*(1-_)|m,d=d<<2*_+3*(1-_)|y,null==a.children[g]&&(a.children[g]=z.create(this._fields,u,d,h+1),this._depth=Math.max(this._depth,h+1),this._size+=1),h+=1,a=a.children[g]}}putBins(t,e){for(const r of this.getNodes(e)){const e=t.get(r.id);e?e.merge(r):t.set(r.id,r.clone())}}getNodes(t){const e=[],{geohashBounds:r,level:s}=t;let i=this._root;for(;null!==i;){const t=i.depth,n=i.xNode,o=i.yNode;if(t>=s){e.push(i),i=i.next;continue}const a=Math.ceil((t+1)/2),h=Math.floor((t+1)/2),u=1-t%2,d=30-(3*a+2*h),l=30-(2*a+3*h),c=~((1<<d)-1),_=~((1<<l)-1),f=(r.xLL&c)>>d,p=(r.yLL&_)>>l,m=(r.xTR&c)>>d,y=(r.yTR&_)>>l,g=n<<3*u+2*(1-u),x=o<<2*u+3*(1-u),I=g+8*u+4*(1-u),v=x+4*u+8*(1-u),b=Math.max(g,f),T=Math.max(x,p),M=Math.min(I,m),w=Math.min(v,y);let S=null,A=null;for(let t=T;t<=w;t++)for(let e=b;e<=M;e++){const r=e-g+(t-x)*(8*u+4*(1-u)),s=i.children[r];s&&(S||(S=s,S.next=i.next),A&&(A.next=s),A=s,s.next=i.next)}i=S||i.next}return e}}var G=r(38976);class D extends G.n{constructor(t){super(t),this._tree=new B(this._options.fields)}get usedMemory(){return this._tree.usedMemory}put(t){throw new Error("Geohash tree does not support put")}putBounded(t,e,r){const{geohashLevel:s,spatialReference:i}=this._options,n=function(t,e,r,s){const i=[t.xmin,t.ymin,t.xmax,t.ymax],n=M.A.fromExtent((0,S.w1)(i,s)),o=(0,C.Cv)(n,s,w.A.WGS84,{extendedParams:{densificationStep:64*e}});if(!o)return null;const a=(0,F.Ye)(o,!1,!1),h=a.coords.filter((t,e)=>!(e%2)),u=a.coords.filter((t,e)=>e%2),d=Math.min(...h),l=Math.min(...u),c=Math.max(...h),_=Math.max(...u),f=P(d,l,r,w.A.WGS84),p=P(c,_,r,w.A.WGS84);return f&&p?{bounds:i,geohashBounds:{xLL:f[0],yLL:f[1],xTR:p[0],yTR:p[1]},level:r}:null}(e,r,s,i);null!=n&&this._tree.putBins(t,n)}_insert(t,e,r,s){const{geohashLevel:i,spatialReference:n}=this._options,o=P(e,r,i,n);o&&this._tree.insert(t,e,r,o[0],o[1],i,s)}}var W=r(68974),Y=r(52350);class j{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._aggregateIndex=null,this._aggregateIndexHash=null,this._spatialIndex=null}get usedMemory(){let t=0;return t+=this.reader.underlyingMemory,this._aggregateIndex&&(t+=this._aggregateIndex.usedMemory),this._spatialIndex&&(t+=this._spatialIndex.usedMemory),t}registerOverrides(t){this.reader.registerOverrides(t),this.invalidate()}queryFeaturesInBounds(t){const e=this._getSpatialIndex().search(t);return Y.e.from(this.reader,e)}getAggregateIndex(t){const e=JSON.stringify(t);if(e!==this._aggregateIndexHash){switch(this._aggregateIndexHash=e,t.type){case"grid":this._aggregateIndex=new W.H(t);break;case"geohash":this._aggregateIndex=new D(t)}this._aggregateIndex.insert(this.reader,this.isTiled)}return this._aggregateIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=v.fromReader(this.reader)),this._spatialIndex}}},73250:(t,e,r)=>{r.d(e,{y:()=>i});var s=r(69397);class i{static fromBuffer(t,e){return new i(t,e)}static create(t,e=4294967295){const r=new Uint32Array(Math.ceil(t/32));return new i(r,e)}constructor(t,e){this._mask=0,this._buf=t,this._mask=e}_getIndex(t){return Math.floor(t/32)}get usedMemory(){return(0,s.Qf)(this._buf)}has(t){const e=this._mask&t;return!!(this._buf[this._getIndex(e)]&1<<e%32)}hasRange(t,e){let r=t,s=e;for(;r%32&&r!==s;){if(this.has(r))return!0;r++}for(;s%32&&r!==s;){if(this.has(r))return!0;s--}if(r===s)return!1;for(let t=r/32;t!==s/32;t++)if(this._buf[t])return!0;return!1}set(t){const e=this._mask&t,r=this._getIndex(e),s=1<<e%32;this._buf[r]|=s}setRange(t,e){let r=t,s=e;for(;r%32&&r!==s;)this.set(r++);for(;s%32&&r!==s;)this.set(s--);if(r!==s)for(let t=r/32;t!==s/32;t++)this._buf[t]=4294967295}unset(t){const e=this._mask&t,r=this._getIndex(e),s=1<<e%32;this._buf[r]&=4294967295^s}resize(t){const e=this._buf,r=new Uint32Array(Math.ceil(t/32));r.set(e),this._buf=r}or(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=t._buf[e];return this}and(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=t._buf[e];return this}xor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=t._buf[e];return this}ior(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=~t._buf[e];return this}iand(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=~t._buf[e];return this}ixor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=~t._buf[e];return this}any(){for(let t=0;t<this._buf.length;t++)if(this._buf[t])return!0;return!1}copy(t){for(let e=0;e<this._buf.length;e++)this._buf[e]=t._buf[e];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let t=0;t<this._buf.length;t++)this._buf[t]=0;return this}forEachSet(t){for(let e=0;e<this._buf.length;e++){let r=this._buf[e],s=32*e;if(r)for(;r;)1&r&&t(s),r>>>=1,s++}}countSet(){let t=0;return this.forEachSet(e=>{t++}),t}}},75538:(t,e,r)=>{r.d(e,{L:()=>a});var s=r(90708),i=r(92722),n=r(63664),o=r(92029);class a extends n.B{static createId(t,e){return`${t}.${e}`}static create(t,e,r,s){return new a(t,e,o.o.create(r),s)}constructor(t,e,r,s){super(r),this.gridX=t,this.gridY=e,this._worldUnitsPerCell=s,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){const t=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._firstFeatureAttributes=this._firstFeatureAttributes,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,s){0===this._count?this._firstFeatureAttributes=t.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=s,this._statistics.insert(t,e),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._firstFeatureAttributes=t._firstFeatureAttributes,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroidX(t){return null==t?this.centroidXWorld:(0,s.IE)(t,this.centroidXWorld)}getCentroidY(t){return null==t?this.centroidYWorld:(0,s.B2)(t,this.centroidYWorld)}getGeometry(t,e){const r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,o=new i.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null!=e?(0,s.Nl)(o,"esriGeometryPolygon",e):o}getCentroid(t){const e=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null!=t?(0,s.Nl)(e,"esriGeometryPoint",t):e}getGeometricCentroid(t,e){const r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new i.A([],[r,n]);return null!=e?(0,s.Nl)(o,"esriGeometryPoint",e):o}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return null!=this._firstFeatureAttributes?{...t,...this._firstFeatureAttributes}:t}}},76213:(t,e,r)=>{r.d(e,{C2:()=>o,CQ:()=>s,DY:()=>i,GR:()=>p,Gh:()=>h,MZ:()=>c,TB:()=>f,U5:()=>a,_M:()=>u,cp:()=>m,eG:()=>n,fq:()=>_,hM:()=>l,ie:()=>d});const s=512,i=29,n=24,o=4,a=6,h=1.05,u=3,d=3,l=4,c=1,_=10,f=256,p=32,m=512},76357:(t,e,r)=>{r.d(e,{A:()=>u});var s=r(31635),i=r(66552),n=r(25482),o=r(91429),a=r(93223);const h=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends n.o{constructor(t){super(t),this.name=null,this.type=null}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,s.Cg)([(0,a.e)(h),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,s.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},92029:(t,e,r)=>{r.d(e,{o:()=>o});var s=r(69397),i=r(50115);const n=Math.PI/180;class o{static create(t){return new o(t.map(t=>function(t){switch(t.statisticType){case"min":return new h(t);case"max":return new u(t);case"avg":return new l(t);case"avg_angle":return new c(t);case"sum":case"count":return new d(t);case"mode":return new _(t)}}(t)))}constructor(t){this._statistics=t}static get estimatedMemory(){return s.qK+4*s.qK}values(){return this._statistics.values()}insert(t,e){for(const r of this._statistics)r.insert(t,e)}merge(t){for(let e=0;e<this._statistics.length;e++){const r=this._statistics[e],s=t._statistics[e];if(r.field.name!==s.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");r.merge(s)}}clone(){return new o(this._statistics.map(t=>t.clone()))}}class a{constructor(t){this.field=t}insert(t,e){if(!this.field.computed)return;const r=this.field.computed.read(t,e);(0,i.rZ)(r)||this._insertValue(r)}}class h extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(t){this.value=Math.min(this.value,t)}merge(t){this.value=Math.min(this.value,t.value)}clone(){const t=new h(this.field);return t.value=this.value,t}}class u extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(t){this.value=Math.max(this.value,t)}merge(t){this.value=Math.max(this.value,t.value)}clone(){const t=new u(this.field);return t.value=this.value,t}}class d extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(t){this.value+=t}merge(t){this.value+=t.value}clone(){const t=new d(this.field);return t.value=this.value,t}}class l extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(t){this._total+=t,this._count+=1}merge(t){this._total+=t._total,this._count+=t._count}clone(){const t=new l(this.field);return t._total=this._total,t._count=this._count,t}}class c extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const t=this._x/this._count,e=this._y/this._count,r=180/Math.PI;return Math.atan2(e,t)*r}_insertValue(t){this._x=this._x+Math.cos(t*n),this._y=this._y+Math.sin(t*n),this._count+=1}merge(t){this._x+=t._x,this._y+=t._y,this._count+=t._count}clone(){const t=new c(this.field);return t._x=this._x,t._y=this._y,t._count=this._count,t}}class _ extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let t,e=0;for(const[r,s]of this._frequencies.entries())s>e&&(e=s,t=r);return t}_insertValue(t){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+1):this._frequencies.set(t,1)}merge(t){for(const[e,r]of t._frequencies.entries()){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+r):this._frequencies.set(e,r)}}clone(){const t=new _(this.field);return t._frequencies=new Map(this._frequencies),t}}},97633:(t,e,r)=>{r.d(e,{P:()=>n});var s=r(69397),i=r(73250);class n{constructor(t){this._valid=i.y.create(t),this._data=new Array(t)}get usedMemory(){let t=this._valid.usedMemory;if(this._data.length>0){const e="string"==typeof this._data[0]?64:s.RS;t+=this._data.length*e}return t}has(t){return this._valid.has(t)}set(t,e){this._valid.set(t),this._data[t]=e}get(t){return this._data[t]}}},98453:(t,e,r)=>{r.d(e,{m:()=>s});const s=new(r(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"})},99996:(t,e,r)=>{r.d(e,{Y:()=>O});var s=r(66131),i=r(44208),n=r(69397),o=r(44729),a=r(15032),h=r(36745),u=r(70328),d=r(65864),l=r(32011),c=r(62577),_=r(27647),f=r(90708),p=r(43334),m=r(92722),y=r(98623),g=r(97633);const x=(0,i.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],I=x[0],v=x[1],b=x[2],T=x[3],M=(0,i.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],w=M[0],S=M[1],A=M[2],F=(0,i.A)("featurelayer-simplify-mobile-factor")??2,C=(0,i.A)("esri-mobile"),P=4294967295;class O{constructor(t){this.metadata=t,this.type="FeatureSetReader",this._overrides=null,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(t,e){let r=1;const s=C?F:1;e>4e6?r=A*s:e>1e6?r=S*s:e>5e5?r=w*s:e>1e5&&(r=s);let i=0;return t>4e3?i=T*r:t>2e3?i=b*r:t>100?i=v:t>15&&(i=I),i}getBounds(t){!function(t,e){if(!(t.length>e))for(;t.length<=e;)t.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const e=this.getBoundsXMin();if(e===P||!isFinite(e))return!1;if(0===this.getBoundsXMin()){const e=this.readGeometryWorldSpace();if(e?.isPoint&&0===e.coords[0]&&0===e.coords[1])return(0,u.BI)(t,0,0,0,0),!0;if(!e)return this.setBoundsXMin(P),!1;let r=1/0,s=1/0,i=-1/0,n=-1/0;return e.forEachVertex((t,e)=>{r=Math.min(r,t),s=Math.min(s,e),i=Math.max(i,t),n=Math.max(n,e)}),this.setBoundsXMin(r),this.setBoundsYMin(s),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,u.BI)(t,r,s,i,n),!0}const r=this.getBoundsXMin(),s=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,u.BI)(t,r,s,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(t){this._boundsBuffer[4*this.getIndex()]=t}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(t){this._boundsBuffer[4*this.getIndex()+1]=t}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(t){this._boundsBuffer[4*this.getIndex()+2]=t}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(t){this._boundsBuffer[4*this.getIndex()+3]=t}readAttributeAsTimestamp(t){const e=this.readAttribute(t);return"string"==typeof e?new Date(e).getTime():"number"==typeof e||null==e?e:null}readAttribute(t,e=!1){const r=this._readAttribute(t,e);if(void 0!==r)return r;for(const r of this._joined){r.setIndex(this.getIndex());const s=r._readAttribute(t,e);if(void 0!==s)return s}}readAttributes(){const t=this._readAttributes();for(const e of this._joined){e.setIndex(this.getIndex());const r=e._readAttributes();for(const e of Object.keys(r))t[e]=r[e]}return t}joinAttributes(t){this._joined.push(t)}registerOverrides(t){this._overrides=t}withoutOverrides(){const t=this.copy();return t._overrides=null,t}readOptimizedFeatureWorldSpace(){const t=this.readGeometryWorldSpace(),e=this.readAttributes(),r=this.readCentroidWorldSpace();return new p.Om(t,e,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyFeatureWorldSpace(){const t=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,f.zv)(t,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const t=this._readX(),e=this.getInTransform();return null==e?t:t*e.scale[0]+e.translate[0]}readYWorldSpace(){const t=this._readY(),e=this.getInTransform();return null==e?t:e.translate[1]-t*e.scale[1]}readGeometryForDisplay(){const t=this._readGeometryDeltaDecoded(!0);if(!t){const t=this._createDeltaQuantizedGeometryFromServerCentroid();return t?t.deltaDecode():null}return t}readGeometryForDisplayTransformed(t){let e=this.readGeometryForDisplay();if(e&&"esriGeometryPolyline"===this.metadata.geometryType&&(e=(0,f.kz)(e,this.metadata.geometryType,t.scale[0])),e&&(e=(0,f.hK)(e,t,this.metadata.geometryType)),!e){const e=this.readCentroidForDisplay();if(!e)return null;const r=(0,c.IE)(t,e.coords[0]),s=(0,c.B2)(t,e.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,s).deltaDecode()}return e}readGeometryWorldSpace(){let t=this._readGeometry();if(t||(t=this._createDeltaQuantizedGeometryFromServerCentroid()),!t)return null;const e=t.clone(),r=this.getInTransform();return null!=r&&(0,f.aQ)(e,r),e}readCentroidForDisplay(){const t=this.readGeometryForDisplay();return t?this._computeDisplayCentroid(t):this._readServerCentroid()}readCentroidWorldSpace(){const t=this.readGeometryForDisplay(),e=t?this._computeDisplayCentroid(t):this._readServerCentroid();if(!e)return null;const r=e.clone(),s=this.getInTransform();return null!=s&&(0,f.aQ)(r,s),r}setCache(t){let e=this._caches.get(t);null==e&&(e=new g.P(this.getSize()),this._caches.set(t,e)),this._activeCache=e}setCachedValue(t){this._activeCache.set(this.getIndex(),t)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}get underlyingMemory(){let t=0;t+=(0,n.Qf)(this._boundsBuffer);for(const e of this._caches.values())t+=e.usedMemory;return t}_readGeometryDeltaDecoded(t){const e=this._readGeometry(t);return"esriGeometryPoint"!==this.geometryType&&e&&this.getInTransform()?e.deltaDecode():e}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(t){this._contextTimeZone=t}readArcadeFeature(){return this}hasField(t){return this.fields.has(t)||this._joined.some(e=>e.hasField(t))}geometry(){const t=this.readGeometryWorldSpace(),e=(0,f.zv)(t,this.geometryType,this.hasZ,this.hasM),r=(0,d.rS)(e);if(r){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");r.spatialReference=this.metadata.outSpatialReference}return r}autocastArcadeDate(t,e){return e&&e instanceof Date?this.isUnknownDateTimeField(t)?s.lY.unknownDateJSToArcadeDate(e):s.lY.dateJSAndZoneToArcadeDate(e,this.contextTimeZone??y.qU):e}isUnknownDateTimeField(t){return this.metadata.fieldsIndex.getTimeZone(t)===y.L5}field(t){let e=this.fields.get(t);if(e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this.readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(this.readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(this.readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,this.readAttribute(t,!0));default:return this.readAttribute(t,!1)}for(const r of this._joined)if(r.setIndex(this.getIndex()),e=r.fields.get(t),e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(r._readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(r._readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(r._readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,r._readAttribute(t,!0));default:return this.readAttribute(t,!1)}throw new Error(`Field ${t} does not exist`)}setField(t,e){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(t=>t.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(t=!1){if(!t)return JSON.stringify(this.readLegacyFeatureForDisplay());const e=this.readLegacyFeatureForDisplay();if(!e)return JSON.stringify(null);const r={geometry:e.geometry,attributes:{...e.attributes}};for(const t in r.attributes){const e=r.attributes[t];e instanceof Date&&(r.attributes[t]=e.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(t=null){return{attributes:this._readAttributes(),geometry:!0===t?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(t=null,e=null){return Promise.resolve(this.castAsJson(e))}_getExists(){if(this._overrides){const t=this.getObjectId();return!this._overrides.hasOverride(t)}return!0}_computeDisplayCentroid(t){if(null==this.getInTransform())return(0,_.Q)(t);const e=h.z.fromOptimized(t,this.geometryType);e.yFactor*=-1;const r=(0,l.d)(e);return r?(r[1]*=-1,new m.A([],r)):null}copyInto(t){t._joined=this._joined,t._overrides=this._overrides,t._objectIdToIndex=this._objectIdToIndex,t._boundsBuffer=this._boundsBuffer,t._activeCache=this._activeCache,t._caches=this._caches,t._contextTimeZone=this._contextTimeZone}_readLegacyGeometryWorldSpace(){const t=this.readGeometryWorldSpace();return(0,f.zv)(t,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const t=this._readServerCentroid();if(!t)return null;const[e,r]=t.coords;return this._createDeltaQuantizedExtrudedGeometry(e,r)}_createDeltaQuantizedExtrudedGeometry(t,e){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(t,e):this._createDeltaQuantizedExtrudedQuad(t,e)}_createDeltaQuantizedExtrudedQuad(t,e){return new m.A([5],[t-1,e,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(t,e){return new m.A([2],[t-1,e+1,1,-1])}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[11],{159:(e,t,n)=>{n.d(t,{A:()=>l});var r,a=n(31635),i=n(69622),o=n(91429),s=n(99157);let l=r=class extends i.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,a.Cg)([(0,o.MZ)({type:[s.A],nonNullable:!0})],l.prototype,"steps",void 0),l=r=(0,a.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],l)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>l,jh:()=>i,l5:()=>s,xm:()=>o});var r=n(34275),a=n(9093);function i(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e){return[...e]}function u(e){const t=(0,a.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>a,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(e,t,n,r,a,i,o,s,l,u,c,d,h,f,m,p){return[e,t,n,r,a,i,o,s,l,u,c,d,h,f,m,p]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>a});var r=n(37539);function a(e,t,n,a,i,o,s=Math.floor(e.length/3)){const l=(0,r.jd)(t,i);if(null==l)return!1;if(l===r.pO){if(e===a&&n===o)return!0;const t=n+3*s;for(let r=n,i=o;r<t;r++,i++)a[i]=e[r]??0;return!0}const u=n+3*s;for(let t=n,r=o;t<u;t+=3,r+=3)l(e,t,a,r);return!0}},10838:(e,t,n)=>{n.d(t,{ao:()=>h,ud:()=>f,xO:()=>m});var r=n(49186),a=n(36563),i=n(74887),o=n(73444);const s={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){if(function(e){return e in s}(e)){const t=s[e];return!0===t?e:t}return null}const u=[],c=new Map;function d(e){for(const t of c.keys())p(e.pattern,t)&&c.delete(t)}function h(e){return u.includes(e)||(d(e),u.unshift(e)),(0,a.hA)(()=>{const t=u.indexOf(e);t>-1&&(u.splice(t,1),d(e))})}async function f(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const n=[];for(const r of u)if(p(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=c.get(e);return n&&await g.add(n),n}function m(e){const t=(0,o.lR)(e);return t?l(e)??l(t):null}function p(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{c.clear()});const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18251:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),a=n(69540),i=n(25482),o=n(91429),s=n(51850),l=n(93223);let u=class extends((0,a.OU)(i.o)){constructor(e){super(e),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},21276:(e,t,n)=>{n.d(t,{H:()=>i,f:()=>a});var r=n(49186);function a(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function i(e){e.forEach(a)}},27993:(e,t,n)=>{n.d(t,{F:()=>s});var r=n(91218),a=n(16930),i=n(9762),o=n(65806);function s(e,t,n,a){return!(null==t||null==a||e.length<2)&&((0,r.canProjectWithoutEngine)(t,a)?(0,i.projectBuffer)(e,t,0,n,a,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,o.g)(l,n,a)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:a.A.WGS84,type:"point"}},28735:(e,t,n)=>{n.d(t,{Cv:()=>y,Gh:()=>A,ci:()=>M,je:()=>T,jg:()=>h,tD:()=>S,y7:()=>g});var r=n(4718),a=n(21276),i=n(16930),o=n(79258),s=n(21325);const l=57.29577951308232,u=.017453292519943;function c(e){return e*l}function d(e){return e*u}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function f(e){return null!=e.wkid||null!=e.wkt}const m=[0,0];function p(e,t,n,r,a){const i=e,o=a;if(o.spatialReference=n,"x"in i&&"x"in o)[o.x,o.y]=t(i.x,i.y,m,r);else if("xmin"in i&&"xmin"in o)[o.xmin,o.ymin]=t(i.xmin,i.ymin,m,r),[o.xmax,o.ymax]=t(i.xmax,i.ymax,m,r);else if("paths"in i&&"paths"in o||"rings"in i&&"rings"in o){const e="paths"in i?i.paths:i.rings,n=[];let a;for(let i=0;i<e.length;i++){const o=e[i];a=[],n.push(a);for(let e=0;e<o.length;e++)a.push(t(o[e][0],o[e][1],[0,0],r)),o[e].length>2&&a[e].push(o[e][2]),o[e].length>3&&a[e].push(o[e][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in i&&"points"in o){const e=i.points,n=[];for(let a=0;a<e.length;a++)n[a]=t(e[a][0],e[a][1],[0,0],r),e[a].length>2&&n[a].push(e[a][2]),e[a].length>3&&n[a].push(e[a][3]);o.points=n}return a}function g(e,t){const n=e&&(f(e)?e:e.spatialReference),r=t&&(f(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,s.aI)(r,n)||(0,s.K8)(r)&&(0,s.oT)(n)||(0,s.K8)(n)&&(0,s.oT)(r))}function y(e,t){if(null==e)return null;const n=e.spatialReference,a=t&&(f(t)?t:t.spatialReference);return g(n,a)?(0,s.aI)(n,a)?(0,r.o8)(e):(0,s.K8)(a)?p(e,T,i.A.WebMercator,!1,(0,r.o8)(e)):(0,s.oT)(a)?p(e,S,i.A.WGS84,!1,(0,r.o8)(e)):null:null}function T(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=d(t);return n[0]=d(e)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function S(e,t,n=[0,0],r=!1){if(e===s.Mc[0])n[0]=-180;else if(e===s.Mc[1])n[0]=180;else{const t=c(e/o.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=c(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),n}function A(e,t=!1,n=(0,r.o8)(e)){return(0,a.f)(e),(0,a.f)(n),p(e,T,i.A.WebMercator,t,n)}function M(e,t=!1,n=(0,r.o8)(e)){return(0,a.f)(e),(0,a.f)(n),p(e,S,i.A.WGS84,t,n)}},29030:(e,t,n)=>{n.r(t),n.d(t,{destroyContext:()=>b,dracoDecompressPointCloudData:()=>y,filterObbsForModifications:()=>T,filterObbsForModificationsSync:()=>E,initialize:()=>j,interpretObbModificationResults:()=>_,process:()=>g,project:()=>M,setLegacySchema:()=>A,setModifications:()=>S,setModificationsSync:()=>x,test:()=>I,transformNormals:()=>w});var r=n(34727),a=n(16930),i=n(4197),o=n(95696),s=n(18251),l=n(73354),u=n(2741);let c;n(53966);var d=n(15142),h=n(51850),f=n(35982);n(91218),n(27993);class m{constructor(e,t,n,r,a,i){this.layout=e,this.interleavedVertexData=t,this.indices=n,this.hasColors=r,this.hasModifications=a,this.positionData=i}}class p{constructor(e,t,n,r,a,i,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=n,this.anchors=r,this.transformedGeometry=a,this.globalTrafo=i,this.obb=o}}async function g(e){C=await L();const t=[e.geometryBuffer];return{result:k(C,e,t),transferList:t}}async function y(e){C=await L();const t=[e.geometryBuffer],{geometryBuffer:n}=e,r=n.byteLength,a=C._malloc(r),i=new Uint8Array(C.HEAPU8.buffer,a,r);i.set(new Uint8Array(n));const o=C.dracoDecompressPointCloudData(a,i.byteLength);if(C._free(a),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function T(e){await L(),E(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function S(e){await L(),x(e)}async function A(e){C=await L(),C.setLegacySchema(e.context,e.jsonSchema)}async function M(e){const{localMatrix:t,origin:r,positions:l,vertexSpace:u}=e,c=a.A.fromJSON(e.inSpatialReference),d=a.A.fromJSON(e.outSpatialReference),h=t?(0,i.Vj)(t):void 0,f=(0,i.cj)(r);let m;const[{projectBuffer:p},{initializeProjection:g}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,91218))]);await g(c,d);const y=[0,0,0];if(!p(f,c,0,y,d,0))throw new Error("Failed to project");if("georeferenced"===u.type&&null==u.origin){if(m=new Float64Array(l.length),!p(l,c,0,m,d,0,m.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===u.type?o.A.fromJSON(u):s.A.fromJSON(u),{projectMeshVertexPositions:t}=await Promise.all([n.e(2603),n.e(8487),n.e(7836)]).then(n.bind(n,74594)),r=t({vertexAttributes:{position:l},transform:h?{localMatrix:h}:void 0,vertexSpace:e,spatialReference:c},d);if(!r)throw new Error("Failed to project");m=r}const T=m.length,[S,A,M]=y;for(let e=0;e<T;e+=3)m[e]-=S,m[e+1]-=A,m[e+2]-=M;return{result:{projected:m,original:l,projectedOrigin:y},transferList:[m.buffer,l.buffer]}}async function w({normalMatrix:e,normals:t}){const n=new Float32Array(t.length);return(0,l.b)(n,t,e),(0,r.or)(e)&&(0,l.n)(n,n),{result:{transformed:n,original:t},transferList:[n.buffer,t.buffer]}}function b(e){R(e)}let v,C;function x(e){if(!C)return;const t=e.modifications,n=C._malloc(8*t.length),r=new Float64Array(C.HEAPU8.buffer,n,t.length);for(let e=0;e<t.length;++e)r[e]=t[e];C.setModifications(e.context,n,t.length,e.isGeodetic),C._free(n)}function k(e,t,n){const{context:r,globalTrafo:a,mbs:i,obbData:o,elevationOffset:s,geometryBuffer:l,geometryDescriptor:u,indexToVertexProjector:c,vertexToRenderProjector:d}=t,h=e._malloc(l.byteLength),f=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),g=new Uint8Array(e.HEAPU8.buffer,h,l.byteLength);g.set(new Uint8Array(l));const y=new Float64Array(e.HEAPU8.buffer,f,33);P(y,[NaN,NaN,NaN],0);let T=3;P(y,a,T),T+=16,P(y,i.center,T),T+=3,y[T++]=i.radius,o&&P(y,o,T++);const S=u,A={isDraco:!1,isLegacy:!1,color:t.layouts.some(e=>e.some(e=>"color"===e.name)),normal:t.needNormals&&t.layouts.some(e=>e.some(e=>"normalCompressed"===e.name)),uv0:t.layouts.some(e=>e.some(e=>"uv0"===e.name)),uvRegion:t.layouts.some(e=>e.some(e=>"uvRegion"===e.name)),featureIndex:S.featureIndex},M=e.process(r,!!t.obbData,h,g.byteLength,S,A,f,s,c,d,t.normalReferenceFrame);if(e._free(f),e._free(h),M.error.length>0)throw new Error(`i3s.wasm: ${M.error}`);if(M.discarded)return null;const w=M.componentOffsets.length>0?M.componentOffsets.slice():null,b=M.featureIds.length>0?M.featureIds.slice():null,v=M.anchorIds.length>0?Array.from(M.anchorIds):null,C=M.anchors.length>0?Array.from(M.anchors):null,x=M.interleavedVertedData.slice().buffer,k=1===M.indicesType?new Uint16Array(M.indices.buffer,M.indices.byteOffset,M.indices.byteLength/2).slice():new Uint32Array(M.indices.buffer,M.indices.byteOffset,M.indices.byteLength/4).slice(),_=M.positions.slice(),{buffer:E,byteOffset:R,byteLength:j}=M.positionIndices,L=1===M.positionIndicesType?new Uint16Array(E,R,j/2).slice():new Uint32Array(E,R,j/4).slice(),I=new m(t.layouts[0],x,k,M.hasColors,M.hasModifications,{data:_,indices:L});return b&&n.push(b.buffer),w&&n.push(w.buffer),n.push(x),n.push(k.buffer),n.push(_.buffer),n.push(L.buffer),new p(w,b,v,C,I,a,M.obb)}function _(e){return 0===e?0:1===e?1:2===e?2:3}function E(e){if(!C)return;const{context:t,buffer:n}=e,r=C._malloc(n.byteLength),a=n.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(C.HEAPU8.buffer,r,a),o=new Float64Array(n);i.set(o),C.filterOBBs(t,r,a),o.set(i),C._free(r)}function R(e){C&&0===C.destroy(e)&&(C=null,v=null,c=null)}function P(e,t,n){for(let r=0;r<t.length;++r)e[r+n]=t[r]}async function j(){C||await L()}async function L(){return C||(C=await(v??=(c??=(async()=>{const e=await n.e(2980).then(n.bind(n,82980));return await e.default({locateFile:e=>(0,u.s)(`esri/libs/i3s/${e}`)})})(),c))),C}f.B,new d.A({deallocator:null}),(0,h.vt)();const I={transform:(e,t)=>C&&k(C,e,t),destroy:R}},34304:(e,t,n)=>{n.d(t,{DF:()=>l,FD:()=>a,Ov:()=>i,ct:()=>u});let r=1e-6;function a(){return r}const i=Math.random,o=Math.PI/180,s=180/Math.PI;function l(e){return e*o}function u(e){return e*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:a,setEpsilon:function(e){r=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},35982:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(4576),a=n(36563),i=n(53966),o=n(74887),s=n(83027);class l{constructor(e,t,n,r,a={}){this._mainMethod=t,this._transferLists=n,this._listeners=[],this._promise=(0,s.h)(e,{...a,schedule:r}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,a.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const n={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(n),this._connectListener(n),(0,a.hA)(()=>{n.removed=!0,(0,r.TF)(this._listeners,n),this._thread&&null!=n.threadHandle&&n.threadHandle.remove()})}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,n){return this.invokeMethod(this._mainMethod,e,t,n)}invokeMethod(e,t,n,r){if(this._thread){const a=this._transferLists[e],i=a?a(t):[];return this._thread.invoke(e,t,{transferList:i,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,o.Te)(n),this.invokeMethod(e,t,n))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(u):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function u(){}},37539:(e,t,n)=>{n.d(t,{pO:()=>p,jd:()=>h,Tp:()=>f,w5:()=>d});var r=n(34727),a=n(86211),i=n(73941),o=n(79258);Math.PI;const s=o.$O.radius,l=o.$O.eccentricitySquared,u={a1:s*l,a2:s*l*s*l,a3:s*l*l/2,a4:s*l*s*l*2.5,a5:s*l+s*l*l/2,a6:1-l};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const d={2:{5:p,7:null,9:null,10:p,1:b,6:null,8:null,0:null,3:y,11:T,2:p,4:_},5:{5:p,7:null,9:null,10:p,1:b,6:null,8:null,0:null,3:y,11:T,2:p,4:_},7:{5:null,7:p,9:null,10:p,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,n,r){const a=e[t]/I,i=L-2*Math.atan(Math.exp(-e[t+1]/I)),o=I+(e[t+2]??0),s=Math.cos(i)*o;n[r]=Math.cos(a)*s,n[r+1]=Math.sin(a)*s,n[r+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(e,t,n,r){g(e,t,n,r),T(n,r,n,r)},2:g,4:function(e,t,n,r){g(e,t,n,r),_(n,r,n,r)}},4:{5:E,7:null,9:null,10:E,1:function(e,t,n,r){E(e,t,n,r),b(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){E(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){E(e,t,n,r),T(n,r,n,r)},2:E,4:p},1:{5:k,7:null,9:null,10:k,1:p,6:null,8:null,0:null,3:function(e,t,n,r){k(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){k(e,t,n,r),T(n,r,n,r)},2:k,4:function(e,t,n,r){k(e,t,n,r),_(n,r,n,r)}},6:{5:null,7:x,9:null,10:x,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:b,6:w,8:M,0:null,3:y,11:T,2:p,4:_},11:{5:S,7:null,9:null,10:S,1:function(e,t,n,r){S(e,t,n,r),b(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),y(n,r,n,r)},11:p,2:S,4:function(e,t,n,r){S(e,t,n,r),_(n,r,n,r)}}};function h(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(R.source.spatialReference===e&&R.dest.spatialReference===t)return R;const n=m(e,R.source),r=m(t,R.dest);return 0===n&&0===r?(0,c.aI)(e,t)?R.projector=p:R.projector=null:R.projector=d[n][r],R}function m(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,a.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function g(e,t,n,r){n[r]=j*(e[t]/I),n[r+1]=j*(L-2*Math.atan(Math.exp(-e[t+1]/I))),n[r+2]=e[t+2]??0}function y(e,t,n,a){!function(e,t,n,a,i){const o=.4999999*Math.PI,s=(0,r.qE)(P*e[t+1],-o,o),l=Math.sin(s);n[a++]=P*e[t]*i.radius,n[a++]=i.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[a]=e[t+2]??0}(e,t,n,a,o.$O)}function T(e,t,n,r){n[r]=e[t]*N,n[r+1]=e[t+1]*N,n[r+2]=e[t+2]??0}function S(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]??0}function A(e,t,n,r,a){const i=a+(e[t+2]??0),o=P*e[t],s=P*e[t+1],l=Math.cos(s)*i;n[r]=Math.cos(o)*l,n[r+1]=Math.sin(o)*l,n[r+2]=Math.sin(s)*i}function M(e,t,n,r){A(e,t,n,r,o.Sw.radius)}function w(e,t,n,r){A(e,t,n,r,o.sH.radius)}function b(e,t,n,r){A(e,t,n,r,o.$O.radius)}function v(e,t,n,a,i){const o=e[t],s=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+s*s+l*l),c=(0,r.YN)(l/(0===u?1:u)),d=Math.atan2(s,o);n[a++]=j*d,n[a++]=j*c,n[a]=u-i}function C(e,t,n,r){v(e,t,n,r,o.Sw.radius)}function x(e,t,n,r){v(e,t,n,r,o.sH.radius)}function k(e,t,n,r){v(e,t,n,r,o.$O.radius)}function _(e,t,n,r){!function(e,t,n,r,a){const i=P*e[t],o=P*e[t+1],s=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=a.radius/Math.sqrt(1-a.eccentricitySquared*l*l);n[r++]=(c+s)*u*Math.cos(i),n[r++]=(c+s)*u*Math.sin(i),n[r++]=(c*(1-a.eccentricitySquared)+s)*l}(e,t,n,r,o.$O)}function E(e,t,n,r){const a=u,i=e[t],s=e[t+1],l=e[t+2]??0;let c,d,h,f,m,p,g,y,T,S,A,M,w,b,v,C,x,k,_,E,R;c=Math.abs(l),d=i*i+s*s,h=Math.sqrt(d),f=d+l*l,m=Math.sqrt(f),E=Math.atan2(s,i),p=l*l/f,g=d/f,b=a.a2/m,v=a.a3-a.a4/m,g>.3?(y=c/m*(1+g*(a.a1+b+p*v)/m),_=Math.asin(y),S=y*y,T=Math.sqrt(1-S)):(T=h/m*(1-p*(a.a5-b-g*v)/m),_=Math.acos(T),S=1-T*T,y=Math.sqrt(S)),A=1-o.$O.eccentricitySquared*S,M=o.$O.radius/Math.sqrt(A),w=a.a6*M,b=h-M*T,v=c-w*y,x=T*b+y*v,C=T*v-y*b,k=C/(w/A+x),_+=k,R=x+C*k/2,l<0&&(_=-_),n[r++]=j*E,n[r++]=j*_,n[r]=R}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},P=(0,r.kU)(1),j=(0,r.KJ)(1),L=.5*Math.PI,I=o.$O.radius,N=I*Math.PI/180,O=180/(I*Math.PI)},40876:(e,t,n)=>{n.d(t,{Eq:()=>f,G1:()=>p,TS:()=>i,Tf:()=>T,V6:()=>a,Vm:()=>m,ay:()=>l,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>d,oW:()=>c,xV:()=>A});const r={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 a(e){return!!r[e]||!!r[e.toLowerCase()]}function i(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const a=(e%360+360)%360/360,i=n<=.5?n*(t+1):n+t-n*t,o=2*n-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,a=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&r,o>>=n,s[3]=a*l/255),l=o&r,o>>=n,s[2]=a*l,l=o&r,o>>=n,s[1]=a*l,l=o&r,o>>=n,s[0]=a*l,s}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),a=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(a+16*a)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?p(e[3]):1,e}function f(e){let t=a(e)?i(e):null;return t??=d(e),t??=c(e),t}function m(e){const t=f(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function p(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const T=2.2,S=1/T;function A(e){return e**S}},51850:(e,t,n)=>{function r(){return[0,0,0]}function a(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function s(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function d(){return i(0,0,1)}n.d(t,{CN:()=>o,Cb:()=>g,Cw:()=>m,JP:()=>p,Un:()=>f,ci:()=>s,fA:()=>i,o8:()=>a,uY:()=>h,vt:()=>r});const h=[0,0,0],f=l(),m=u(),p=c(),g=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:m,UNIT_Y:p,UNIT_Z:g,ZEROS:h,clone:a,create:r,freeze:o,fromArray:s,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:d,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},56400:(e,t,n)=>{n.d(t,{ZS:()=>l,hv:()=>u,wr:()=>c,P6:()=>s});var r=n(98623);const a=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=n(28097);const o="shortOffset";function s(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?l(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function l(e,t=r.qU){return e?"timeZoneIANA"in e?e.timeZoneIANA:function(e,t=r.qU){if(!e||!a.has(e.timeZone))return t;const n=a.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=i.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${i.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function u(e,t,n,a,i){if(t&&"date"===i)return{timeZone:r.n$,timeZoneName:void 0};const s=a.hour,l=n===r.L5;return{timeZone:l?"timestamp-offset"===i?void 0:e??r.n$:n,timeZoneName:l&&s?o:void 0}}function c(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return e===r.qU||e===r.L5||t.has(e.toLowerCase())||n.has(e.toLowerCase())}},65806:(e,t,n)=>{n.d(t,{g:()=>o});var r=n(51850),a=n(91218),i=n(9762);function o(e,t,n){if((0,a.canProjectWithoutEngine)(e.spatialReference,n))return s[0]=e.x,s[1]=e.y,s[2]=e.z??0,(0,i.projectBuffer)(s,e.spatialReference,0,t,n,0);const r=(0,a.tryProject)(e,n);return!!r&&(t[0]=r.x,t[1]=r.y,t[2]=r.z??0,!0)}const s=(0,r.vt)()},69540:(e,t,n)=>{n.d(t,{OU:()=>c,Pw:()=>d});var r=n(31635),a=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),s=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let a=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,s.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,a={},l=new Map;for(const t in n){const o=n[t],s=r?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==s&&0!==s&&5!==s&&4!==s)continue;const c=this[t];let d=null;if("function"==typeof u)d=u(c,e);else if("reference"===u)d=c;else if(d=(0,i.TU)(c,e),null!=c&&null==d)continue;0===s?l.set(t,d):a[t]=d}const u=new(0,Object.getPrototypeOf(this).constructor)(a);if(l.size){const e=(0,s.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return a=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],a),a},d=c(a.A)},73354:(e,t,n)=>{n.d(t,{a:()=>d,b:()=>s,c:()=>o,d:()=>a,e:()=>h,f:()=>c,l:()=>u,n:()=>f,t:()=>i});var r=n(40876);function a(e,t,n){i(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function i(e,t,n,r=3,a=r){if(e.length/r!==Math.ceil(t.length/a))return e;const i=e.length/r,o=n[0],s=n[1],l=n[2],u=n[4],c=n[5],d=n[6],h=n[8],f=n[9],m=n[10],p=n[12],g=n[13],y=n[14];let T=0,S=0;for(let n=0;n<i;n++){const n=t[T],i=t[T+1],A=t[T+2];e[S]=o*n+u*i+h*A+p,e[S+1]=s*n+c*i+f*A+g,e[S+2]=l*n+d*i+m*A+y,T+=a,S+=r}return e}function o(e,t,n){s(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function s(e,t,n,r=3,a=r){if(e.length/r!==Math.ceil(t.length/a))return;const i=e.length/r,o=n[0],s=n[1],l=n[2],u=n[3],c=n[4],d=n[5],h=n[6],f=n[7],m=n[8];let p=0,g=0;for(let n=0;n<i;n++){const n=t[p],i=t[p+1],y=t[p+2];e[g]=o*n+u*i+h*y,e[g+1]=s*n+c*i+f*y,e[g+2]=l*n+d*i+m*y,p+=a,g+=r}}function l(e,t,n,r=3,a=r){const i=Math.min(e.length/r,t.length/a);let o=0,s=0;for(let l=0;l<i;l++)e[s]=n*t[o],e[s+1]=n*t[o+1],e[s+2]=n*t[o+2],o+=a,s+=r;return e}function u(e,t,n,r){c(e.typedBuffer,t.typedBuffer,n,r,e.typedBufferStride,t.typedBufferStride)}function c(e,t,n,a,i=3,o=i){const s=Math.min(e.length/i,t.length/o);let l=0,u=0;const c=1/r.Tf;for(let r=0;r<s;r++)e[u]=a*(n*t[l])**c,e[u+1]=a*(n*t[l+1])**c,e[u+2]=a*(n*t[l+2])**c,l+=o,u+=i}function d(e,t,n,r=3,a=r){const i=e.length/r;if(i!==Math.ceil(t.length/a))return e;let o=0,s=0;for(let l=0;l<i;l++)e[s]=t[o]+n[0],e[s+1]=t[o+1]+n[1],e[s+2]=t[o+2]+n[2],o+=a,s+=r;return e}function h(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,n=3,r=n){const a=Math.min(e.length/n,t.length/r);let i=0,o=0;for(let s=0;s<a;s++){const a=t[i],s=t[i+1],l=t[i+2],u=a*a+s*s+l*l;if(u>0){const t=1/Math.sqrt(u);e[o]=t*a,e[o+1]=t*s,e[o+2]=t*l}i+=r,o+=n}}n(44208),n(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:f,normalizeView:h,scale:l,scaleView:function(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,n){const r=Math.min(e.count,t.count),a=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,u=0;for(let e=0;e<r;e++)a[u]=o[l]>>n,a[u+1]=o[l+1]>>n,a[u+2]=o[l+2]>>n,l+=s,u+=i},transformMat3:s,transformMat3View:o,transformMat4:i,transformMat4View:a,translate:d},Symbol.toStringTag,{value:"Module"}))},73444:(e,t,n)=>{n.d(t,{JK:()=>l,Ml:()=>g,QC:()=>d,lR:()=>c,oQ:()=>m});var r=n(36563);let a;n(44208);const i=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??e??t??"en"}function l(){return void 0===a&&(a=s()),a}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return h(e)?.language}function d(e=l()){const t=h(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function h(e=l()){return u.exec(e)?.groups}const f=[];function m(e){return f.push(e),(0,r.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const p=[];function g(e){return p.push(e),(0,r.hA)(()=>p.splice(p.indexOf(e),1))}function y(){const e=s();a!==e&&([...p].forEach(t=>t(e)),a=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},83027:(e,t,n)=>{n.d(t,{h:()=>r});const r=n(29953).ho},86738:(e,t,n)=>{n.d(t,{A:()=>S});var r=n(31635),a=n(69622),i=n(53966),o=n(91429),s=n(56507),l=n(91075),u=n(16930),c=n(21325),d=n(28735);function h({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,c.K8)(n))return(0,d.tD)(e,t,r);if((0,c.EA)(n))return r[0]=e,r[1]=t,r}return null}const f=[0,0];var m,p=n(43937),g=n(36005);const y=[0,0];function T(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let S=m=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",a.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,a){let o;if(Array.isArray(e))o=e,a=t,e=o[0],t=o[1],n=o[2],r=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,n=o.z,r=o.m,(a=o.spatialReference)&&"esri.geometry.SpatialReference"!==a.declaredClass&&(a=new u.A(a)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)i.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)i.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&a?.isWebMercator){const n=(0,d.je)(o.longitude,o.latitude,y);e=n[0],t=n[1]}}else T(n)?(a=n,n=null):T(r)&&(a=r,r=null);const s={x:e,y:t};return null==s.x&&null!=s.y?i.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==s.y&&null!=s.x&&i.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=a&&(s.spatialReference=a),null!=n&&(s.z=n),null!=r&&(s.m=r),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return h(this,f)?.[1]??null}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,d.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return h(this,f)?.[0]??null}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,d.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new m;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return m.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:a,spatialReference:i}=this,{z:o,m:s}=e;let{x:l,y:u,spatialReference:c}=e;if(!i.equals(c))if(i.isWebMercator&&c.isWGS84)[l,u]=(0,d.je)(l,u),c=i;else{if(!i.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,d.tD)(l,u),c=i}return t===l&&n===u&&r===o&&a===s&&i.wkid===c.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,c.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,a=2*r;let i;return t>r?(i=Math.ceil(Math.abs(t-r)/a),t-=i*a):t<n&&(i=Math.ceil(Math.abs(t-n)/a),t+=i*a),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,a=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+a*a)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],S.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasM",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasZ",null),(0,r.Cg)([(0,o.MZ)({type:Number})],S.prototype,"latitude",null),(0,r.Cg)([(0,o.MZ)({type:Number})],S.prototype,"longitude",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,s.GB)(e))],S.prototype,"x",void 0),(0,r.Cg)([(0,p.K)("x")],S.prototype,"writeX",null),(0,r.Cg)([(0,g.w)("x")],S.prototype,"readX",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],S.prototype,"y",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],S.prototype,"z",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],S.prototype,"m",void 0),S=m=(0,r.Cg)([(0,o.$K)("esri.geometry.Point")],S),S.prototype.toJSON.isDefaultToJSON=!0},91075:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(31635),a=n(25482),i=n(91429),o=n(16930),s=n(36005);let l=class extends a.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const n=new o.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,i.MZ)()],l.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],l.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,r.Cg)([(0,i.$K)("esri.geometry.Geometry")],l)},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>q,isEqualBaseGCS:()=>F,isLoaded:()=>E,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>P,load:()=>L,project:()=>I,projectAsync:()=>D,projectExtent:()=>te,projectMany:()=>N,projectMultipoint:()=>V,projectOrLoad:()=>z,projectOrLoadMany:()=>B,projectPoint:()=>K,projectPolygon:()=>Q,projectPolyline:()=>J,projectWithoutEngine:()=>$,requiresLoad:()=>j,test:()=>G,tryProject:()=>O,unload:()=>U});var r=n(49186),a=n(74887),i=n(62788),o=n(95488),s=n(51850),l=n(21276),u=n(73941),c=n(5443),d=n(91075),h=n(48526),f=n(86738),m=n(39829),p=n(82799),g=n(16930),y=n(159),T=n(9762),S=n(37539);function A(e,t,n,r,a,i){return M[0]=e,M[1]=t,M[2]=n,(0,T.projectBuffer)(M,r,0,a,i,0)}const M=(0,s.vt)();var w=n(21325);let b=null,v=null,C=null,x=null,k={};const _=new o.I;function E(){return!!(v?.isLoaded()&&C?.isLoaded()&&x?.isLoaded())}function R(){return!!E()||((0,i.gc)(_),L(),!1)}function P(e,t){return!e||!t||W(e,t)||R()}function j(e,t){return!W(e,t)&&!E()}async function L(e){null==b&&(b=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(v=e,v.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(x=e,x.load()))])),await b,(0,a.Te)(e),_.notify()}function I(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),N(e,e[0].spatialReference,t,n)):((0,l.f)(e),N([e],e.spatialReference,t,n)[0])}function N(e,t,n,r){if(null==t||null==n)return e;if(W(t,n,r))return e.map(e=>$(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return N(e.map(e=>$(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return N(e,t,g.A.WGS84).map(e=>$(e,g.A.WGS84,n));if(!E())throw new Z;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:x.getTransformation(t,n,r.areaOfInterestExtent)||new y.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let a=k[e];a||(a=x.getTransformation(t,n)||new y.A,k[e]=a),r={geographicTransformation:a,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?v.executeMany(e,n,r):C.executeMany(e,n,r)}function O(e,t,n){try{return I(e,t,n)}catch(e){if(e instanceof Z)return null;throw e}}function z(e,t){const n=B([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function B(e,t,n){if(!E())for(const n of e)if(null!=n&&!(0,w.aI)(n.spatialReference,t)&&(0,w.fn)(n.spatialReference)&&(0,w.fn)(t)&&!W(n.spatialReference,t))return(0,i.gc)(_),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,w.aI)(e.spatialReference,t)?e:(0,w.fn)(e.spatialReference)&&(0,w.fn)(t)?I(e,t,n):null)}}class Z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){b=null,v=null,C=null,x=null,k={}}const G={get loadPromise(){return b}};async function D(e,t,n){if((0,a.Te)(n),!e)return e;const r=B(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,a.Te)(n),D(e,t,n);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,w.aI)(e,t)||(0,w.fn)(e)&&(0,w.fn)(t)&&!!(0,S.jd)(e,t))}function F(e,t){if((0,w.aI)(e,t))return!0;if(!(0,w.fn)(e)||!(0,w.fn)(t))return!1;const n=(0,w.oT)(e)||(0,w.K8)(e)||(0,w.x1)(e),r=(0,w.oT)(t)||(0,w.K8)(t)||(0,w.x1)(t);return n&&r}async function q(e,t,n,r){if(E())return(0,a.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:a}of e)if(t&&n&&!W(t,n,a))return L(r)}else if(e&&t&&!W(e,t,n))return L(r);return(0,a.NO)(r)}function $(e,t,n){return e?"x"in e?Y(e,t,new f.A,n,0):"xmin"in e?ne(e,t,new c.A,n,0):"rings"in e?ee(e,t,new m.A,n,0):"paths"in e?X(e,t,new p.A,n,0):"points"in e?H(e,t,new h.A,n,0):null:null}function K(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,r)}function Y(e,t,n,r,a){ae[0]=e.x,ae[1]=e.y;const i=e.z;return ae[2]=void 0!==i?i:a,(0,T.projectBuffer)(ae,t,0,ae,r,0)?(n.x=ae[0],n.y=ae[1],n.spatialReference=r,void 0!==i||(0,u.xP)(r)?(n.z=ae[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function V(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,r)}function H(e,t,n,r,a){const{points:i,hasZ:o,hasM:s}=e,l=[],c=i.length,d=[];for(const e of i)d.push(e[0],e[1],o?e[2]:a);if(!(0,T.projectBuffer)(d,t,0,d,r,0,c))return null;const h=o||(0,u.xP)(r);for(let e=0;e<c;++e){const t=3*e,n=d[t],r=d[t+1];h&&s?l.push([n,r,d[t+2],i[e][3]]):h?l.push([n,r,d[t+2]]):s?l.push([n,r,i[e][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=o,n.hasM=s,n}function J(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,a){const{paths:i,hasZ:o,hasM:s}=e,l=[];if(!re(i,o??!1,s??!1,t,l,r,a))return null;const c=o||(0,u.xP)(r);return n.paths=l,n.spatialReference=r,n.hasZ=c,n.hasM=s,n}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,r)}function ee(e,t,n,r,a){const{rings:i,hasZ:o,hasM:s}=e,l=[];if(!re(i,o??!1,s??!1,t,l,r,a))return null;const c=o||(0,u.xP)(r);return n.rings=l,n.spatialReference=r,n.hasZ=c,n.hasM=s,n}function te(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,r)}function ne(e,t,n,r,a){const{xmin:i,ymin:o,xmax:s,ymax:l,hasZ:c,hasM:d}=e;if(!A(i,o,c?e.zmin:a,t,ae,r))return null;const h=c||(0,u.xP)(r);return n.xmin=ae[0],n.ymin=ae[1],h&&(n.zmin=ae[2]),A(s,l,c?e.zmax:a,t,ae,r)?(n.xmax=ae[0],n.ymax=ae[1],h&&(n.zmax=ae[2]),d&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function re(e,t,n,r,a,i,o=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:o);if(!(0,T.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;a.length=0;const c=t||(0,u.xP)(i);for(const t of e){const e=new Array;for(const r of t)c&&n?e.push([s[l++],s[l++],s[l++],r[3]]):c?e.push([s[l++],s[l++],s[l++]]):n?(e.push([s[l++],s[l++],r[2]]),l++):(e.push([s[l++],s[l++]]),l++);a.push(e)}return!0}const ae=(0,s.vt)()},95488:(e,t,n)=>{n.d(t,{I:()=>a});var r=n(11406);class a extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},95696:(e,t,n)=>{n.d(t,{A:()=>u});var r,a=n(31635),i=n(69540),o=n(25482),s=n(91429),l=n(93223);let u=class extends((0,i.OU)(o.o)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,a.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,a.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,a.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},97770:(e,t,n)=>{n.d(t,{Ey:()=>j,F8:()=>P,J2:()=>k,Yq:()=>E,_m:()=>_,_v:()=>A,iS:()=>R,wj:()=>L});var r=n(66552),a=n(73444),i=n(98623),o=(n(56400),n(28097));const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:i.n$},c={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},h={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},g={hourCycle:"h23"},y={...m,...g},T={...p,...g},S={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...p},"short-date-long-time-24":{...c,...T},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...p},"short-date-le-long-time-24":{...c,...T},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,...y},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,...T},"day-short-month-year":h,"day-short-month-year-short-time":{...h,...m},"day-short-month-year-short-time-24":{...h,...y},"day-short-month-year-long-time":{...h,...p},"day-short-month-year-long-time-24":{...h,...T},"long-date":f,"long-date-short-time":{...f,...m},"long-date-short-time-24":{...f,...y},"long-date-long-time":{...f,...p},"long-date-long-time-24":{...f,...T},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},A=(0,r.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"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),b=w.find(({type:e})=>"month"===e)?.value.toLowerCase();function v(){const e=(0,a.lR)();return(e&&M[e])??(0,a.QC)()}"mart"!==b&&(M.bs="sr-Latn-CS");let C=new WeakMap;const x=S["short-date-short-time"];function k(e){return S[e]}function _(e){const{dateStyle:t,timeStyle:n,hour12:r,year:a,month:i}=e,o={};return t?o.dateStyle=t:a&&(o.year=a,o.month=i||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function E(e,t=x){return function(e){let t=C.get(e);if(!t){const n=v(),r=L(e.timeZone??i.qU),a={...e,timeZone:r};t=new Intl.DateTimeFormat(n,a),C.set(e,t)}return t}(t).format(e)}function R(e,t=x){return E(new Date(e),{...t,...u,...l})}function P(e,t=x){return E(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function j(e,t=x){if(t.timeZone)return E(new Date(e),t);const n=o.c9.fromISO(e,{setZone:!0}),r=0===n.offset?i.n$:t.timeZone,a={...t,timeZone:r};return n.toLocaleString(a,{locale:v()})}function L(e){switch(e){case i.qU:return i.N5;case i.L5:return i.n$;default:return e}}S["short-date"],(0,a.Ml)(()=>{C=new WeakMap})},98623:(e,t,n)=>{n.d(t,{L5:()=>a,N5:()=>o,n$:()=>i,qU:()=>r});const r="system",a="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone},99157:(e,t,n)=>{n.d(t,{A:()=>s});var r,a=n(31635),i=n(69622),o=n(91429);let s=r=class extends i.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,a.Cg)([(0,o.MZ)()],s.prototype,"isInverse",void 0),(0,a.Cg)([(0,o.MZ)()],s.prototype,"wkt",void 0),(0,a.Cg)([(0,o.MZ)()],s.prototype,"wkid",void 0),s=r=(0,a.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],s)}}]);