@arcgis/core 4.28.0-next.20231002 → 4.28.0-rc.0

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 (257) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02120d192eafd7612475.js +1 -0
  3. package/assets/esri/core/workers/chunks/{4d967e98d229f18d61f5.js → 09e8babe75407c2e64c4.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0beebbb0c6dad0e742d7.js +1 -0
  5. package/assets/esri/core/workers/chunks/0d8ca51043c7784aed96.js +1 -0
  6. package/assets/esri/core/workers/chunks/112e89da628bdea5355c.js +1 -0
  7. package/assets/esri/core/workers/chunks/{5e9edd06e624f385fa4b.js → 121a9e148509f2fe2210.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1856d16d738f44f58084.js +1 -0
  9. package/assets/esri/core/workers/chunks/{0526d623d0b4c12929bd.js → 18ab9cc85a1a7988fdfd.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{7c960a2694c4c3123acf.js → 1a36703ebe934749646e.js} +1 -1
  11. package/assets/esri/core/workers/chunks/24a0cf405195421c0d06.js +1 -0
  12. package/assets/esri/core/workers/chunks/24ff267cf253feac22de.js +1 -0
  13. package/assets/esri/core/workers/chunks/{3c8613596659801fd6ab.js → 29cab345819ec02ed60a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{169a61c6e128b8a16021.js → 2c560a075d9ef2069ed1.js} +1 -1
  15. package/assets/esri/core/workers/chunks/2f8e71dac98135bbc3e6.js +1 -0
  16. package/assets/esri/core/workers/chunks/341fb51b2165522963b3.js +1 -0
  17. package/assets/esri/core/workers/chunks/{ad8e0f82cb1feafa9e2f.js → 36ab90fb34b9716a9983.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{2688213bbff536da7917.js → 3ea0b872436fce84b927.js} +1 -1
  19. package/assets/esri/core/workers/chunks/40633064c290dc2af9ea.js +1 -0
  20. package/assets/esri/core/workers/chunks/42ec4c80b0c2944cd65c.js +1 -0
  21. package/assets/esri/core/workers/chunks/44b870cb53ba68b17c32.js +1 -0
  22. package/assets/esri/core/workers/chunks/{8a7fa4e8b0d14da7c9eb.js → 4cc680fe4c9c39d2f853.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{6730c9f0890191a95fdb.js → 4d81aa50d90f5701a343.js} +1 -1
  24. package/assets/esri/core/workers/chunks/4e0bf30da4281070e453.js +1 -0
  25. package/assets/esri/core/workers/chunks/4e6bf1efe3b0b474cbb4.js +1 -0
  26. package/assets/esri/core/workers/chunks/52cef7cd3aaaa4f45c94.js +1 -0
  27. package/assets/esri/core/workers/chunks/{4e04242e707c0eb3aa4a.js → 5a3ccc0a19ac8fa9e524.js} +1 -1
  28. package/assets/esri/core/workers/chunks/5e907ec0ee1565b5fbbc.js +1 -0
  29. package/assets/esri/core/workers/chunks/66ba749ab0a631bbfdec.js +1 -0
  30. package/assets/esri/core/workers/chunks/6b14d89d689a21014aec.js +1 -0
  31. package/assets/esri/core/workers/chunks/6b1856303d1562f05100.js +1 -0
  32. package/assets/esri/core/workers/chunks/{576269fd1f9049876aa1.js → 6b7b5544ed1f9a84623f.js} +1 -1
  33. package/assets/esri/core/workers/chunks/710a6268de62003af825.js +1 -0
  34. package/assets/esri/core/workers/chunks/77923afde29ae1ff10ca.js +1 -0
  35. package/assets/esri/core/workers/chunks/784ffd52315a4d55d683.js +1 -0
  36. package/assets/esri/core/workers/chunks/7cf7f2b991a7cbdad2ce.js +1 -0
  37. package/assets/esri/core/workers/chunks/{70dffbf49b0633b1a5f1.js → 8f3680fee85a05839489.js} +1 -1
  38. package/assets/esri/core/workers/chunks/97aecf210938015cc7a3.js +1 -0
  39. package/assets/esri/core/workers/chunks/{c7ebd5d431fb996bfcee.js → 9f8207c82a17508a87a8.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{557305b91f77569ce664.js → a01ffe03b1465c21b9e6.js} +1 -1
  41. package/assets/esri/core/workers/chunks/a298c9031962951e55a9.js +1 -0
  42. package/assets/esri/core/workers/chunks/{329669a9beda89b028dd.js → a5a7bbdd8298016535bc.js} +1 -1
  43. package/assets/esri/core/workers/chunks/a877a4826cd6a46ec99b.js +1 -0
  44. package/assets/esri/core/workers/chunks/ad38e456a7cee940a165.js +1 -0
  45. package/assets/esri/core/workers/chunks/adfbc168be8c49b51e1b.js +1 -0
  46. package/assets/esri/core/workers/chunks/b0526633a93ef69ec47b.js +1 -0
  47. package/assets/esri/core/workers/chunks/b99bc08a01e9250b0a31.js +1 -0
  48. package/assets/esri/core/workers/chunks/{36c4b4c3eca57417da2c.js → c260ad3434bb00ba64a7.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{39922ce232338de076ae.js → c459c8d8630eb4b955b1.js} +1 -1
  50. package/assets/esri/core/workers/chunks/c92e75b79aff7b505b31.js +1 -0
  51. package/assets/esri/core/workers/chunks/ca85e88dad30b5f2956b.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8e56d40691b6bf75d7cc.js → ce409944221a784ddb61.js} +1 -1
  53. package/assets/esri/core/workers/chunks/d13f75f233cf313e5a1d.js +1 -0
  54. package/assets/esri/core/workers/chunks/d60d5f006375f7fcc88c.js +1 -0
  55. package/assets/esri/core/workers/chunks/{77958089748dc31757cf.js → d6ded127949160103f69.js} +1 -1
  56. package/assets/esri/core/workers/chunks/d8c696da42f8f8919b83.js +1 -0
  57. package/assets/esri/core/workers/chunks/{304c81f6297ecba3a324.js → d95eed98316e59f8f35d.js} +1 -1
  58. package/assets/esri/core/workers/chunks/df7267892b6e0493e1d7.js +1 -0
  59. package/assets/esri/core/workers/chunks/{52dca349e1a45555954d.js → e52d5a48e83d8df36f92.js} +1 -1
  60. package/assets/esri/core/workers/chunks/e8688b6cc3b3c1010b43.js +1 -0
  61. package/assets/esri/core/workers/chunks/e8c7cc974420c0b92d0e.js +1 -0
  62. package/assets/esri/core/workers/chunks/{b7ef554b1213307499fc.js → e93442c6d92229f3a4b0.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{ef5772ca1848d6d01b88.js → eda86faa708cfe4c9f9a.js} +1 -1
  64. package/assets/esri/core/workers/chunks/f2718e260f594537f7fd.js +1 -0
  65. package/assets/esri/core/workers/chunks/f6b7036114b1d754fdd9.js +1 -0
  66. package/assets/esri/core/workers/chunks/{c4631241dc777ca77aaa.js → f6c0680c535c5a3c73ee.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{a0ea1d3e22d52b8a59a8.js → fa6103e3d4e857b0035b.js} +9 -9
  68. package/assets/esri/core/workers/chunks/fac3e57784d7f37053af.js +1 -0
  69. package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
  70. package/assets/esri/t9n/common.json +1 -1
  71. package/assets/esri/t9n/common_ar.json +1 -1
  72. package/assets/esri/t9n/common_bg.json +1 -1
  73. package/assets/esri/t9n/common_bs.json +1 -1
  74. package/assets/esri/t9n/common_ca.json +1 -1
  75. package/assets/esri/t9n/common_cs.json +1 -1
  76. package/assets/esri/t9n/common_da.json +1 -1
  77. package/assets/esri/t9n/common_de.json +1 -1
  78. package/assets/esri/t9n/common_el.json +1 -1
  79. package/assets/esri/t9n/common_en.json +1 -1
  80. package/assets/esri/t9n/common_es.json +1 -1
  81. package/assets/esri/t9n/common_et.json +1 -1
  82. package/assets/esri/t9n/common_fi.json +1 -1
  83. package/assets/esri/t9n/common_fr.json +1 -1
  84. package/assets/esri/t9n/common_he.json +1 -1
  85. package/assets/esri/t9n/common_hr.json +1 -1
  86. package/assets/esri/t9n/common_hu.json +1 -1
  87. package/assets/esri/t9n/common_id.json +1 -1
  88. package/assets/esri/t9n/common_it.json +1 -1
  89. package/assets/esri/t9n/common_ja.json +1 -1
  90. package/assets/esri/t9n/common_ko.json +1 -1
  91. package/assets/esri/t9n/common_lt.json +1 -1
  92. package/assets/esri/t9n/common_lv.json +1 -1
  93. package/assets/esri/t9n/common_nb.json +1 -1
  94. package/assets/esri/t9n/common_nl.json +1 -1
  95. package/assets/esri/t9n/common_pl.json +1 -1
  96. package/assets/esri/t9n/common_pt-BR.json +1 -1
  97. package/assets/esri/t9n/common_pt-PT.json +1 -1
  98. package/assets/esri/t9n/common_ro.json +1 -1
  99. package/assets/esri/t9n/common_ru.json +1 -1
  100. package/assets/esri/t9n/common_sk.json +1 -1
  101. package/assets/esri/t9n/common_sl.json +1 -1
  102. package/assets/esri/t9n/common_sr.json +1 -1
  103. package/assets/esri/t9n/common_sv.json +1 -1
  104. package/assets/esri/t9n/common_th.json +1 -1
  105. package/assets/esri/t9n/common_tr.json +1 -1
  106. package/assets/esri/t9n/common_uk.json +1 -1
  107. package/assets/esri/t9n/common_vi.json +1 -1
  108. package/assets/esri/t9n/common_zh-CN.json +1 -1
  109. package/assets/esri/t9n/common_zh-HK.json +1 -1
  110. package/assets/esri/t9n/common_zh-TW.json +1 -1
  111. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +2 -1
  112. package/assets/esri/themes/base/widgets/_FeatureForm.scss +0 -1
  113. package/assets/esri/themes/dark/main.css +1 -1
  114. package/assets/esri/themes/light/main.css +1 -1
  115. package/assets/esri/themes/light/view.css +1 -1
  116. package/chunks/pe-wasm.js +1 -1
  117. package/config.js +1 -1
  118. package/core/pbf.js +1 -1
  119. package/geometry/support/WKIDUnitConversion.js +1 -1
  120. package/geometry/support/plane.js +1 -1
  121. package/interfaces.d.ts +37 -39
  122. package/kernel.js +1 -1
  123. package/layers/GroupLayer.js +1 -1
  124. package/layers/SceneLayer.js +1 -1
  125. package/layers/graphics/data/QueryEngine.js +1 -1
  126. package/layers/graphics/data/QueryEngineResult.js +1 -1
  127. package/layers/graphics/editingSupport.js +1 -1
  128. package/layers/graphics/sources/WFSSourceWorker.js +1 -1
  129. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  130. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  131. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  132. package/layers/mixins/OperationalLayer.js +1 -1
  133. package/layers/save/featureLayerUtils.js +1 -1
  134. package/layers/save/groupLayerUtils.js +5 -0
  135. package/layers/save/utils.js +1 -1
  136. package/layers/support/LayerLoadContext.js +5 -0
  137. package/layers/support/featureLayerUtils.js +1 -1
  138. package/layers/support/labelFormatUtils.js +1 -1
  139. package/layers/support/layersCreator.js +1 -1
  140. package/layers/support/versionUtils.js +1 -1
  141. package/networks/UtilityNetwork.js +1 -1
  142. package/package.json +1 -1
  143. package/portal/schemas/definitions.js +1 -1
  144. package/portal/support/jsonContext.js +1 -1
  145. package/portal/support/layersLoader.js +1 -1
  146. package/portal/support/loadUtils.js +5 -0
  147. package/portal/support/portalItemUtils.js +1 -1
  148. package/portal/support/portalLayers.js +1 -1
  149. package/renderers/support/RasterSymbolizer.js +1 -1
  150. package/rest/print.js +1 -1
  151. package/support/basemapUtils.js +1 -1
  152. package/support/revision.js +1 -1
  153. package/symbols/PolygonSymbol3D.js +1 -1
  154. package/views/2d/engine/imagery/RasterBitmap.js +1 -1
  155. package/views/2d/engine/imagery/colorizer/shadedrelief.js +1 -1
  156. package/views/2d/engine/imagery/colorizer/stretch.js +1 -1
  157. package/views/2d/input/handlers/KeyPan.js +1 -1
  158. package/views/2d/input/handlers/KeyRotate.js +1 -1
  159. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  160. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  161. package/views/2d/layers/features/support/FeatureSetReaderPBFIndirect.js +1 -1
  162. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  163. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  164. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  165. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  166. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  167. package/views/3d/layers/i3s/featureEditing.js +1 -1
  168. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  169. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  170. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  171. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  172. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  173. package/views/DOMContainer.js +1 -1
  174. package/views/draw/DrawGraphicTool.js +1 -1
  175. package/views/draw/DrawOperation.js +1 -1
  176. package/views/draw/support/Box.js +1 -1
  177. package/views/draw/support/Reshape.js +1 -1
  178. package/views/input/VisibilityChange.js +5 -0
  179. package/views/interactive/sketch/constraints.js +1 -1
  180. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  181. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +5 -0
  182. package/views/interactive/snapping/SnappingContext.js +1 -1
  183. package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
  184. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  185. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  186. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +1 -1
  187. package/views/interactive/snapping/snappingUtils.js +1 -1
  188. package/webdoc/support/saveUtils.js +1 -1
  189. package/webdoc/webdocSaveUtils.js +1 -1
  190. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  191. package/widgets/DirectionalPad/constants.js +1 -1
  192. package/widgets/DirectionalPad.js +1 -1
  193. package/widgets/Editor/Upload.js +1 -1
  194. package/widgets/Editor/workflowUtils.js +1 -1
  195. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  196. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  197. package/widgets/FeatureForm/FieldInput.js +1 -1
  198. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  199. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  200. package/widgets/FeatureForm.js +1 -1
  201. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  202. package/widgets/FeatureTable/FieldColumn.js +1 -1
  203. package/widgets/FeatureTable/Grid/Column.js +1 -1
  204. package/widgets/FeatureTable.js +1 -1
  205. package/widgets/ScaleRangeSlider.js +1 -1
  206. package/widgets/support/DatePicker.js +1 -1
  207. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  208. package/widgets/support/Selector2D/SelectionOperation2D.js +1 -1
  209. package/widgets/support/Selector2D.js +1 -1
  210. package/widgets/support/TimePicker.js +1 -1
  211. package/widgets/support/dateUtils.js +1 -1
  212. package/assets/esri/core/workers/chunks/027f8b57565c65fbccda.js +0 -1
  213. package/assets/esri/core/workers/chunks/048265fb5953350e3e33.js +0 -1
  214. package/assets/esri/core/workers/chunks/0b9cf14f8aafb76c578b.js +0 -1
  215. package/assets/esri/core/workers/chunks/0ebf58c927bfc4c9d4fe.js +0 -1
  216. package/assets/esri/core/workers/chunks/10fd951bd296b2beeeba.js +0 -1
  217. package/assets/esri/core/workers/chunks/1224475f3eefdfd59c76.js +0 -1
  218. package/assets/esri/core/workers/chunks/162b0220e24e9ba72655.js +0 -1
  219. package/assets/esri/core/workers/chunks/1e611cad53b745ee146f.js +0 -1
  220. package/assets/esri/core/workers/chunks/24b1bf1a5d80f43a6c9a.js +0 -1
  221. package/assets/esri/core/workers/chunks/29ed31fd4f9d5cf53686.js +0 -1
  222. package/assets/esri/core/workers/chunks/2b6d1c8e4ed759767827.js +0 -1
  223. package/assets/esri/core/workers/chunks/34b44b0fab88f838885c.js +0 -1
  224. package/assets/esri/core/workers/chunks/364f55294a1d7bf163d7.js +0 -1
  225. package/assets/esri/core/workers/chunks/3714ab435dd5ccf9e694.js +0 -1
  226. package/assets/esri/core/workers/chunks/3788009a5ece453011f3.js +0 -1
  227. package/assets/esri/core/workers/chunks/3aafe8160b3bfbaa6935.js +0 -1
  228. package/assets/esri/core/workers/chunks/41c002e4c42c581cda8d.js +0 -1
  229. package/assets/esri/core/workers/chunks/47be4c75dd6372b96fe4.js +0 -1
  230. package/assets/esri/core/workers/chunks/4e8d1e6051f6654a5e83.js +0 -1
  231. package/assets/esri/core/workers/chunks/53746e9976758630159b.js +0 -1
  232. package/assets/esri/core/workers/chunks/5449fdd69e12e5cbd12a.js +0 -1
  233. package/assets/esri/core/workers/chunks/57ce4ece0147afb0d43c.js +0 -1
  234. package/assets/esri/core/workers/chunks/5e83d21400a5dec05c81.js +0 -1
  235. package/assets/esri/core/workers/chunks/6047f4487dcd37cca98e.js +0 -1
  236. package/assets/esri/core/workers/chunks/6967d2b3721678b38774.js +0 -1
  237. package/assets/esri/core/workers/chunks/6ac5ca7de651e3d672a1.js +0 -1
  238. package/assets/esri/core/workers/chunks/6b7ee9164149428edb9e.js +0 -1
  239. package/assets/esri/core/workers/chunks/6c495077cc79e1898927.js +0 -1
  240. package/assets/esri/core/workers/chunks/6d43648d5326e01b4474.js +0 -1
  241. package/assets/esri/core/workers/chunks/74fb07de0f990d45af89.js +0 -1
  242. package/assets/esri/core/workers/chunks/8e9a52062ce059153a89.js +0 -1
  243. package/assets/esri/core/workers/chunks/919a57d372419785cd5e.js +0 -1
  244. package/assets/esri/core/workers/chunks/939f0a1a7d605e389e45.js +0 -1
  245. package/assets/esri/core/workers/chunks/9932f23ba6589df14a3d.js +0 -1
  246. package/assets/esri/core/workers/chunks/a25a38c9f338e0beffef.js +0 -1
  247. package/assets/esri/core/workers/chunks/a97581e584336b46ede7.js +0 -1
  248. package/assets/esri/core/workers/chunks/b1cb932cfadc4dc3f1e4.js +0 -1
  249. package/assets/esri/core/workers/chunks/be3fb6113b0b27b94537.js +0 -1
  250. package/assets/esri/core/workers/chunks/c37119f5692e19aa1ce2.js +0 -1
  251. package/assets/esri/core/workers/chunks/c685f16435d9861bbbd0.js +0 -1
  252. package/assets/esri/core/workers/chunks/d5dfc03673aec8aa57e2.js +0 -1
  253. package/assets/esri/core/workers/chunks/e6416a2684866d677b3e.js +0 -1
  254. package/assets/esri/core/workers/chunks/eb01f4cdb9b918cc61e7.js +0 -1
  255. package/assets/esri/core/workers/chunks/eb4aed4fdb44495a4fe6.js +0 -1
  256. package/assets/esri/core/workers/chunks/ec8258c9dc1491e97fc8.js +0 -1
  257. package/assets/esri/core/workers/chunks/eeac53da496de4cd4182.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7374],{84552:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),s=r(2368),o=r(96674),n=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),d=r(52011),u=r(78981);let p=class extends((0,s.J)(o.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.j)("esri.TimeInterval")],p);const y=p},91040:(e,t,r)=>{r.d(t,{o2:()=>a,yZ:()=>n});var i=r(22021),s=r(67900);const o=96;function n(e,t){const r=t||e.extent,i=e.width,n=(0,s.c9)(r?.spatialReference);return r&&i?r.width/i*n*s.hd*o:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.W8)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.W8)(e,t)||e>t}(e,r)}},27374:(e,t,r)=>{r.r(t),r.d(t,{default:()=>A});var i=r(43697),s=r(3172),o=r(92835),n=r(20102),a=r(68668),l=r(16453),d=r(95330),u=r(5600),p=r(75215),y=(r(67676),r(80442),r(71715)),m=r(52011),c=r(30556),f=r(31263),h=r(6570),b=r(91040),v=r(8744),g=r(87085),w=r(54295),_=r(7944),x=r(17287),S=r(71612),I=r(17017),T=r(38009),C=r(16859),O=r(34760),E=r(72965),L=r(10343),N=r(28294),U=r(21506),F=r(92036),j=r(42033);function Z(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var D=r(32073);const M={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends F.Z{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=Z(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,D.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(M[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter((t=>null!=t.definitionExpression||e&&null!=t.floorInfo));return t.length?JSON.stringify(t.reduce(((e,t)=>{const r=Z(this.floors,t),i=(0,j._)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,b.o2)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t&&t.forEach(i);const s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some(((t,r)=>e[r]!==t))?e:s}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"floors",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"layer",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layers",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i._)([(0,u.Cb)({type:Number})],P.prototype,"scale",void 0),(0,i._)([(0,u.Cb)(U.qG)],P.prototype,"timeExtent",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"version",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i._)([(0,m.j)("esri.layers.mixins.ExportImageParameters")],P);var J=r(90082),R=r(49867),k=r(60199),V=r(25031);let q=class extends((0,S.h)((0,N.n)((0,E.M)((0,L.x)((0,_.O)((0,x.Y)((0,T.q)((0,C.I)((0,l.R)((0,O.Q)((0,w.V)((0,I.N)(g.Z))))))))))))){constructor(...e){super(...e),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let o=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap?.supportsDynamicLayers){const e=(0,f.M9)(i.origin);if(e===f.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;o=(0,D.QV)(s,e,f.s3.SERVICE)}else if(e>f.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");o=(0,D.QV)(s,e.sublayers,(0,f.M9)(e.origin))}}const n=[],a={writeSublayerStructure:o,...i};let l=o;s.forEach((e=>{const t=e.write({},a);n.push(t),l=l||"user"===e.originOf("visible")})),n.some((e=>Object.keys(e).length>1))&&(t.layers=n),l&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const o=new P({layer:this,floors:i?.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),n=o.toJSON();o.destroy();const a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},l=e?.spatialReference,d=(0,v.B9)(l);n.dpi*=s;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:d,imageSR:d,size:t+","+r,...n,...a,...u}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:o}=await this._fetchImage("blob",e,t,r,i);return(0,J.g)(s,o,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.Z)(this.url,t),{extent:i,fullExtent:n,timeExtent:a}=r,l=i||n;return{fullExtent:l&&h.Z.fromJSON(l),timeExtent:a&&o.Z.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,a.G)(this,(e=>{e(this.allSublayers)}))}serviceSupportsSpatialReference(e){return(0,k.D)(this,e)}async _fetchImage(e,t,r,i,o){const a={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new n.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,s.Z)(l,a);return{data:e,url:l}}catch(e){if((0,d.D_)(e))throw e;throw new n.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.Z)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,u.Cb)((0,V.mi)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,i._)([(0,u.Cb)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"dpi",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"gdbVersion",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageFormat",void 0),(0,i._)([(0,y.r)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageTransparency",void 0),(0,i._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)((0,V.mi)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,i._)([(0,c.c)("sublayers",{layers:{type:[R.Z]},visibleLayers:{type:[p.z8]}})],q.prototype,"writeSublayers",null),(0,i._)([(0,u.Cb)({type:["show","hide","hide-children"]})],q.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,i._)([(0,u.Cb)(U.HQ)],q.prototype,"url",void 0),q=(0,i._)([(0,m.j)("esri.layers.MapImageLayer")],q);const A=q},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var i=r(43697),s=r(92604),o=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,s.Z.getLogger(this)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>y});var i=r(43697),s=r(92835),o=r(84552),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),d=r(35671),u=r(76259),p=r(78981);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.v.fromJSON(r.timeOffsetUnits);return i&&s?new o.Z({value:i,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,n.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,n.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,n.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),s=r(92835),o=r(84552),n=r(2368),a=r(96674),l=r(5600),d=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),p=r(30556),y=r(25031);function m(e,t){return o.Z.fromJSON({value:e,unit:t})}let c=class extends((0,n.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.r)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.c)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i._)([(0,p.c)("interval")],c.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i._)([(0,l.Cb)((0,y.mi)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),c=(0,i._)([(0,u.j)("esri.layers.support.TimeInfo")],c);const f=c},60199:(e,t,r)=>{r.d(t,{D:()=>o});var i=r(66677);const s=[];function o(e,t){if((0,i.M8)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102901;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),s.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),s.push([10.61,()=>new Set([102497])]),s.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}]),s.push([10.51,()=>{const e=new Set([7683,7881,7886,7899,8888,9e3]);for(let t=8013;t<=8032;t++)e.add(t);for(let t=9053;t<=9057;t++)e.add(t);for(let t=104017;t<=104018;t++)e.add(t);for(let t=104971;t<=104974;t++)e.add(t);return e}]),s.push([10.5,()=>{const e=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);for(let t=4087;t<=4088;t++)e.add(t);for(let t=5896;t<=5899;t++)e.add(t);for(let t=7005;t<=7007;t++)e.add(t);for(let t=7057;t<=7070;t++)e.add(t);for(let t=7073;t<=7082;t++)e.add(t);for(let t=7109;t<=7128;t++)e.add(t);for(let t=7844;t<=7859;t++)e.add(t);return e}])},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7374],{84552:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),s=r(2368),o=r(96674),n=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),d=r(52011),u=r(78981);let p=class extends((0,s.J)(o.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.j)("esri.TimeInterval")],p);const y=p},91040:(e,t,r)=>{r.d(t,{o2:()=>a,yZ:()=>n});var i=r(22021),s=r(67900);const o=96;function n(e,t){const r=t||e.extent,i=e.width,n=(0,s.c9)(r?.spatialReference);return r&&i?r.width/i*n*s.hd*o:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.W8)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.W8)(e,t)||e>t}(e,r)}},27374:(e,t,r)=>{r.r(t),r.d(t,{default:()=>A});var i=r(43697),s=r(3172),o=r(92835),n=r(20102),a=r(68668),l=r(16453),d=r(95330),u=r(5600),p=r(75215),y=(r(67676),r(80442),r(71715)),m=r(52011),c=r(30556),h=r(31263),f=r(6570),b=r(91040),v=r(8744),g=r(87085),_=r(54295),w=r(7944),x=r(17287),S=r(71612),I=r(17017),T=r(38009),C=r(16859),O=r(34760),E=r(72965),L=r(10343),N=r(28294),U=r(21506),F=r(92036),j=r(42033);function Z(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var D=r(32073);const M={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends F.Z{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=Z(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,D.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(M[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter((t=>null!=t.definitionExpression||e&&null!=t.floorInfo));return t.length?JSON.stringify(t.reduce(((e,t)=>{const r=Z(this.floors,t),i=(0,j._)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,b.o2)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t&&t.forEach(i);const s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some(((t,r)=>e[r]!==t))?e:s}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"floors",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i._)([(0,u.Cb)()],P.prototype,"layer",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layers",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i._)([(0,u.Cb)({type:Number})],P.prototype,"scale",void 0),(0,i._)([(0,u.Cb)(U.qG)],P.prototype,"timeExtent",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"version",null),(0,i._)([(0,u.Cb)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i._)([(0,m.j)("esri.layers.mixins.ExportImageParameters")],P);var J=r(90082),R=r(49867),k=r(60199),V=r(25031);let q=class extends((0,S.h)((0,N.n)((0,E.M)((0,L.x)((0,w.O)((0,x.Y)((0,T.q)((0,C.I)((0,l.R)((0,O.Q)((0,_.V)((0,I.N)(g.Z))))))))))))){constructor(...e){super(...e),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let o=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap?.supportsDynamicLayers){const e=(0,h.M9)(i.origin);if(e===h.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("service").sublayers;o=(0,D.QV)(s,e,h.s3.SERVICE)}else if(e>h.s3.PORTAL_ITEM){const e=this.createSublayersForOrigin("portal-item");o=(0,D.QV)(s,e.sublayers,(0,h.M9)(e.origin))}}const n=[],a={writeSublayerStructure:o,...i};let l=o;s.forEach((e=>{const t=e.write({},a);n.push(t),l=l||"user"===e.originOf("visible")})),n.some((e=>Object.keys(e).length>1))&&(t.layers=n),l&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const o=new P({layer:this,floors:i?.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),n=o.toJSON();o.destroy();const a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},l=e?.spatialReference,d=(0,v.B9)(l);n.dpi*=s;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:d,imageSR:d,size:t+","+r,...n,...a,...u}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:o}=await this._fetchImage("blob",e,t,r,i);return(0,J.g)(s,o,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.Z)(this.url,t),{extent:i,fullExtent:n,timeExtent:a}=r,l=i||n;return{fullExtent:l&&f.Z.fromJSON(l),timeExtent:a&&o.Z.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,a.G)(this,(e=>{e(this.allSublayers)}))}serviceSupportsSpatialReference(e){return(0,k.D)(this,e)}async _fetchImage(e,t,r,i,o){const a={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new n.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,s.Z)(l,a);return{data:e,url:l}}catch(e){if((0,d.D_)(e))throw e;throw new n.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.Z)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,u.Cb)((0,V.mi)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,i._)([(0,u.Cb)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"dpi",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"gdbVersion",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageFormat",void 0),(0,i._)([(0,y.r)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,i._)([(0,u.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"imageTransparency",void 0),(0,i._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)((0,V.mi)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,i._)([(0,u.Cb)()],q.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,i._)([(0,c.c)("sublayers",{layers:{type:[R.Z]},visibleLayers:{type:[p.z8]}})],q.prototype,"writeSublayers",null),(0,i._)([(0,u.Cb)({type:["show","hide","hide-children"]})],q.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,i._)([(0,u.Cb)(U.HQ)],q.prototype,"url",void 0),q=(0,i._)([(0,m.j)("esri.layers.MapImageLayer")],q);const A=q},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var i=r(43697),s=r(92604),o=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,s.Z.getLogger(this)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>y});var i=r(43697),s=r(92835),o=r(84552),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),d=r(35671),u=r(76259),p=r(78981);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.v.fromJSON(r.timeOffsetUnits);return i&&s?new o.Z({value:i,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,n.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,n.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,n.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,r)=>{r.d(t,{Z:()=>h});var i=r(43697),s=r(92835),o=r(84552),n=r(2368),a=r(96674),l=r(5600),d=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),p=r(30556),y=r(25031);function m(e,t){return o.Z.fromJSON({value:e,unit:t})}let c=class extends((0,n.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.r)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.c)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i._)([(0,p.c)("interval")],c.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i._)([(0,l.Cb)((0,y.mi)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),c=(0,i._)([(0,u.j)("esri.layers.support.TimeInfo")],c);const h=c},60199:(e,t,r)=>{r.d(t,{D:()=>o});var i=r(66677);const s=[];function o(e,t){if((0,i.M8)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),s.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),s.push([10.61,()=>new Set([102497])]),s.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}])},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5949,661,5234],{46791:(t,e,s)=>{s.d(e,{Z:()=>C});var i,n=s(43697),r=s(3894),o=s(32448),h=s(50758),a=s(22974),l=s(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(i||(i={}));var c,u=s(1654),d=s(75215),f=s(58971),_=s(5600),m=s(52421),g=s(52011),p=s(10661);class y{constructor(t,e,s,i,n){this.target=t,this.added=e,this.removed=s,this.start=i,this.deleteCount=n}}const b=new l.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1}));function v(t){return t?t instanceof A?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function x(t){if(t?.length)return t[0]}function I(t,e,s,i){const n=Math.min(t.length-s,e.length-i);let r=0;for(;r<n&&t[s+r]===e[i+r];)r++;return r}function E(t,e,s,i){e&&e.forEach(((e,n,r)=>{t.push(e),E(t,s.call(i,e,n,r),s,i)}))}const M=new Set,B=new Set,S=new Set,w=new Map;let z=0,A=c=class extends o.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new p.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:z++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,f.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,v(t)),this._emitAfterChanges(i.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,h.kB)((()=>{s.removed=!0,t.splice(t.indexOf(s),1)}))}return this._emitter.on(t,e)}once(t,e){const s="deref"in e?()=>e.deref():()=>e,i=this.on(t,(t=>{s()?.call(null,t),i.remove()}));return i}add(t,e){if((0,f.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(i.ADD),this}addMany(t,e=this._items.length){if((0,f.it)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e);return this._splice(s,0,v(t)),this._emitAfterChanges(i.ADD),this}at(t){if((0,f.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const t=this._removeAllRaw();return this._emitAfterChanges(i.REMOVE),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...t){(0,f.it)(this._observable);const e=t.map(v);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const s=this._splice(0,this.length),n=s.length;for(let i=0;i<n;i++)t.call(e,s[i],i,s);this._emitAfterChanges(i.REMOVE)}every(t,e){return(0,f.it)(this._observable),this._items.every(t,e)}filter(t,e){let s;return(0,f.it)(this._observable),s=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:s})}find(t,e){return(0,f.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,f.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,f.it)(this._observable);const s=[];return E(s,this,t,e),new c(s)}forEach(t,e){return(0,f.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,f.it)(this._observable),this._items[t]}getNextIndex(t){(0,f.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,f.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,f.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,f.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,f.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,f.it)(this._observable);const s=this._items.map(t,e);return new c({items:s})}reorder(t,e=this.length-1){(0,f.it)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(i.MOVE))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(i.MOVE)}return t}}pop(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=x(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),t}push(...t){return(0,f.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(i.ADD)),this.length}reduce(t,e){(0,f.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,f.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,f.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,f.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(i.REMOVE))return;const e=x(this._splice(t,1));return this._emitAfterChanges(i.REMOVE),e}removeMany(t){if((0,f.it)(this._observable),!t?.length||this._emitBeforeChanges(i.REMOVE))return[];const e=t instanceof c?t.toArray():t,s=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=s.indexOf(i);if(r>-1){const i=1+I(e,s,t+1,r+1),o=this._splice(r,i);o&&o.length>0&&n.push.apply(n,o),t+=i-1}}return this._emitAfterChanges(i.REMOVE),n}reverse(){if((0,f.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=x(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),t}slice(t=0,e=this.length){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,f.it)(this._observable),this._items.some(t,e)}sort(t){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(i.MOVE),this}splice(t,e,...s){(0,f.it)(this._observable);const n=(e?i.REMOVE:0)|(s.length?i.ADD:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(t,e,s)||[];return this._emitAfterChanges(n),r}toArray(){return(0,f.it)(this._observable),this._items.slice()}toJSON(){return(0,f.it)(this._observable),this.toArray()}toLocaleString(){return(0,f.it)(this._observable),this._items.toLocaleString()}toString(){return(0,f.it)(this._observable),this._items.toString()}unshift(...t){return(0,f.it)(this._observable),!t.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,t),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const i=this._items,n=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),t<0&&(t+=this.length),e){if(o=i.splice(t,e),this.hasEventListener("before-remove")){const e=b.acquire();e.target=this,e.cancellable=!0;for(let s=0,n=o.length;s<n;s++)r=o[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(s,1),i.splice(t,0,r),t+=1,s-=1,n-=1);b.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=b.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let s=0;s<e;s++)t.reset(o[s]),this.emit("after-remove",t);b.release(t)}}if(s?.length){if(n){const t=[];for(const e of s){const s=n.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const n=b.acquire();n.target=this,n.cancellable=!0;const h=b.acquire();h.target=this,h.cancellable=!1;for(const a of s)e?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(o?i.push(a):i.splice(t++,0,a),this._set("length",i.length),r&&(h.reset(a),this.emit("after-add",h)))):(o?i.push(a):i.splice(t++,0,a),this._set("length",i.length),h.reset(a),this.emit("after-add",h));b.release(h),b.release(n)}else{if(o)for(const t of s)i.push(t);else i.splice(t,0,...s);this._set("length",i.length)}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const i=new y(this,s,o,t,e);this.emit("after-splice",i)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=b.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,b.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=b.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),b.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;M.clear(),B.clear(),S.clear();for(const{added:e,removed:s}of t){if(e)if(0===S.size&&0===B.size)for(const t of e)M.add(t);else for(const t of e)B.has(t)?(S.add(t),B.delete(t)):S.has(t)||M.add(t);if(s)if(0===S.size&&0===M.size)for(const t of s)B.add(t);else for(const t of s)M.has(t)?M.delete(t):(S.delete(t),B.add(t))}const s=r.Z.acquire();M.forEach((t=>{s.push(t)}));const i=r.Z.acquire();B.forEach((t=>{i.push(t)}));const n=this._items,o=e.items,h=r.Z.acquire();if(S.forEach((t=>{o.indexOf(t)!==n.indexOf(t)&&h.push(t)})),e.listeners&&(s.length||i.length||h.length)){const t={target:this,added:s,removed:i,moved:h},n=e.listeners.length;for(let s=0;s<n;s++){const i=e.listeners[s];i.removed||i.callback.call(this,t)}}r.Z.release(s),r.Z.release(i),r.Z.release(h)}M.clear(),B.clear(),S.clear()}};A.ofType=t=>{if(!t)return c;if(w.has(t))return w.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const i=t.typeMap[s].prototype.declaredClass;e?e+=` | ${i}`:e=i}let s=class extends c{};return(0,n._)([(0,m.c)({Type:t,ensureType:"function"==typeof t?(0,d.se)(t):(0,d.N7)(t)})],s.prototype,"itemType",void 0),s=(0,n._)([(0,g.j)(`esri.core.Collection<${e}>`)],s),w.set(t,s),s},(0,n._)([(0,_.Cb)()],A.prototype,"length",void 0),(0,n._)([(0,_.Cb)()],A.prototype,"items",null),A=c=(0,n._)([(0,g.j)("esri.core.Collection")],A);const C=A},32448:(t,e,s)=>{s.d(e,{Z:()=>a});var i=s(43697),n=s(92036),r=s(50758),o=s(52011);class h{constructor(){this._emitter=new h.EventEmitter(this)}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}}!function(t){class e{constructor(t=null){this._target=t,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(t,e){let s=this._listenersMap?.get(t);if(!s)return!1;const i=this._target||this;let n=!1;for(const t of s.slice()){const s="deref"in t?t.deref():t;s?s?.call(i,e):n=!0}return n&&(s=s.filter((t=>!("deref"in t)||null!=t.deref())),this._listenersMap.set(t,s)),s.length>0}on(t,e){if(Array.isArray(t)){const s=t.map((t=>this.on(t,e)));return(0,r.AL)(s)}if(t.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const s=this._listenersMap.get(t)||[];return s.push(e),this._listenersMap.set(t,s),(0,r.kB)((()=>{const s=this._listenersMap?.get(t),i=s?.indexOf(e)??-1;i>=0&&s.splice(i,1)}))}once(t,e){const s=this.on(t,(t=>{s.remove();const i="deref"in e?e.deref():e;i?.call(null,t)}));return s}hasEventListener(t){const e=this._listenersMap?.get(t);return null!=e&&e.length>0}}t.EventEmitter=e,t.EventedMixin=t=>{let s=class extends t{constructor(){super(...arguments),this._emitter=new e}destroy(){this._emitter.clear()}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}};return s=(0,i._)([(0,o.j)("esri.core.Evented")],s),s};let s=class extends n.Z{constructor(){super(...arguments),this._emitter=new h.EventEmitter(this)}destroy(){this._emitter.clear()}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}};s=(0,i._)([(0,o.j)("esri.core.Evented")],s),t.EventedAccessor=s}(h||(h={}));const a=h},13867:(t,e,s)=>{s.d(e,{z:()=>n});var i=s(69801);class n{constructor(t,e){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,s)=>{s.d(e,{WJ:()=>h,Xq:()=>o});var i,n,r=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,s,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn(`Refusing to cache entry with size ${n} for key ${e}`);const h=1+Math.max(r,-3)- -3;this._db.set(e,{entry:s,size:n,lifetime:h,lives:h}),this._size+=n,t.size+=n,this._checkSizeLimits()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,s]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,s,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0},52421:(t,e,s)=>{function i(t){return(e,s)=>{e[s]=t}}s.d(e,{c:()=>i})},10661:(t,e,s)=>{s.d(e,{s:()=>n});var i=s(42100);class n extends i.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},66643:(t,e,s)=>{s.d(e,{Ed:()=>l,UI:()=>c,mt:()=>_,q6:()=>f,vr:()=>m});var i=s(43697),n=s(92036),r=s(70586),o=s(95330),h=s(5600),a=s(52011);function l(t,e,s){return(0,o.as)(t.map(((t,i)=>e.apply(s,[t,i]))))}async function c(t,e,s){return(await(0,o.as)(t.map(((t,i)=>e.apply(s,[t,i]))))).map((t=>t.value))}function u(t){return{ok:!0,value:t}}function d(t){return{ok:!1,error:t}}async function f(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return u(await t)}catch(t){return d(t)}}async function _(t){try{return u(await t)}catch(t){return(0,o.r9)(t),d(t)}}function m(t,e){return new g(t,e)}let g=class extends n.Z{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=t(s),this.promise.then((t=>{this._result=u(t),this._cleanup()}),(t=>{this._result=d(t),this._cleanup()})),this._abortHandle=(0,o.fu)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.hw)(this._abortHandle),this._abortController=null}};(0,i._)([(0,h.Cb)()],g.prototype,"value",null),(0,i._)([(0,h.Cb)()],g.prototype,"error",null),(0,i._)([(0,h.Cb)()],g.prototype,"finished",null),(0,i._)([(0,h.Cb)()],g.prototype,"promise",void 0),(0,i._)([(0,h.Cb)()],g.prototype,"_result",void 0),g=(0,i._)([(0,a.j)("esri.core.asyncUtils.ReactiveTask")],g)},20188:(t,e,s)=>{function i(t){return null!=o(t)||null!=r(t)}function n(t){return o(t)??r(t)}function r(t){const e=new Date(t);return function(t,e){if(Number.isNaN(t.getTime()))return!1;let s=!0;if(l&&/\d+\W*$/.test(e)){const t=e.match(/[a-zA-Z]{2,}/);if(t){let e=!1,i=0;for(;!e&&i<=t.length;)e=!a.test(t[i]),i++;s=!e}}return s}(e,t)?Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset():null}function o(t){const e=h.exec(t);if(!e?.groups)return null;const s=e.groups,i=+s.year,n=+s.month-1,r=+s.day,o=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const c=s.ms??"0",u=c?+c.padEnd(3,"0").substring(0,3):0;let d;if(s.isUTC||!s.offsetSign)d=Date.UTC(i,n,r,o,a,l,u);else{const t=+s.offsetHours,e=+s.offsetMinutes;d=6e4*("+"===s.offsetSign?-1:1)*(60*t+e)+Date.UTC(i,n,r,o,a,l,u)}return Number.isNaN(d)?null:d}s.d(e,{o:()=>i,s:()=>n});const h=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,l=!Number.isNaN(new Date("technology 10").getTime())},24133:(t,e,s)=>{s.d(e,{Q:()=>o});var i=s(67676),n=s(44553),r=s(88764);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=u,this._toBBox=t=>t,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()}destroy(){this.clear(),b.prune(),v.prune(),x.prune(),I.prune()}all(t){this._all(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(p(t,s))for(b.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;p(t,o)&&(s.leaf?e(r):g(t,o)?this._all(r,e):b.push(r))}s=b.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!p(t,e))return!1;for(b.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(p(t,r)){if(e.leaf||g(t,r))return!0;b.push(n)}}e=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(t){if(!t)return this;let e,s=this._data,n=null,r=0,o=!1;const h=this._toBBox(t);for(x.clear(),I.clear();s||x.length>0;){if(s||(s=x.pop(),n=x.data[x.length-1],r=I.pop()??0,o=!0),s.leaf&&(e=(0,i.cq)(s.children,t,s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),x.push(s),this._condense(x),this;o||s.leaf||!g(s,h)?n?(r++,s=n.children[r],o=!1):s=null:(x.push(s),I.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let s=t;for(v.clear();s;){if(!0===s.leaf)for(const t of s.children)e(t);else v.pushArray(s.children);s=v.pop()??null}}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new B(t.slice(e,s+1));return h(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new S([]);o.height=i;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));y(t,e,s,l,this._compareMinX);for(let n=e;n<=s;n+=l){const e=Math.min(n+l-1,s);y(t,n,e,a,this._compareMinY);for(let s=n;s<=e;s+=a){const n=Math.min(s+a-1,e);o.children.push(this._build(t,s,n,i-1))}}return h(o,this._toBBox),o}_chooseSubtree(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=d(o),a=_(t,o)-h;a<n?(n=a,i=h<i?h:i,s=o):a===n&&h<i&&(i=h,s=o)}e=s||e.children[0]}return e}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);x.clear();const r=this._chooseSubtree(n,this._data,e,x);for(r.children.push(t),l(r,n);e>=0&&x.data[e].children.length>this._maxEntries;)this._split(x,e),e--;this._adjustParentBBoxes(n,x,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),a=s.leaf?new B(o):new S(o);a.height=s.height,h(s,this._toBBox),h(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(s,a)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=a(t,0,o,this._toBBox),h=a(t,o,s,this._toBBox),l=m(e,h),c=d(e)+d(h);l<i?(i=l,r=o,n=c<n?c:n):l===i&&c<n&&(n=c,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:c,n=t.leaf?this._compareMinY:u;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=a(t,0,e,n),o=a(t,s-e,s,n);let h=f(r)+f(o);for(let i=e;i<s-e;i++){const e=t.children[i];l(r,t.leaf?n(e):e),h+=f(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];l(o,t.leaf?n(e):e),h+=f(o)}return h}_adjustParentBBoxes(t,e,s){for(let i=s;i>=0;i--)l(e.data[i],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.cq)(r,s,r.length,n.indexHint),1)}else this.clear();else h(s,this._toBBox)}}_initFormat(t){const 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]+"};")}}function h(t,e){a(t,0,t.children.length,e,t)}function a(t,e,s,i,n){n||(n=new B([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],l(n,t.leaf?i(r):r);return n}function l(t,e){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)}function c(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(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 m(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,s,i,n){const o=[e,s];for(;o.length;){const e=o.pop(),s=o.pop();if(e-s<=i)continue;const h=s+Math.ceil((e-s)/i/2)*i;(0,r.q)(t,h,s,e,n),o.push(s,h,h,e)}}const b=new n.Z,v=new n.Z,x=new n.Z,I=new n.Z({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class B extends M{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends M{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,s)=>{s.d(e,{N1:()=>d,YP:()=>a,Z_:()=>m,gx:()=>l,nn:()=>g,on:()=>u,tX:()=>p}),s(66643),s(46791);var i=s(91460),n=s(50758),r=s(70586),o=s(95330),h=s(26258);function a(t,e,s={}){return c(t,e,s,f)}function l(t,e,s={}){return c(t,e,s,_)}function c(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.hw)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,h.aQ)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function u(t,e,s,o={}){let h=null,l=null,c=null;function u(){h&&l&&(l.remove(),o.onListenerRemove?.(h),h=null,l=null)}function d(t){o.once&&o.once&&(0,r.hw)(c),s(t)}const f=a(t,((t,s)=>{u(),(0,i.vT)(t)&&(h=t,l=(0,i.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,n.kB)((()=>{f.remove(),u()})),c}function d(t,e){return function(t,e,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let h=null;function a(){h=(0,r.hw)(h)}return new Promise(((i,r)=>{h=(0,n.AL)([(0,o.fu)(s,(()=>{a(),r((0,o.zE)())})),c(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,_,e)}function f(t){return!0}function _(t){return!!t}s(87538);const m={sync:!0},g={initial:!0},p={sync:!0,initial:!0}},16306:(t,e,s)=>{s.d(e,{aX:()=>I});var i=s(68773),n=s(20102),r=s(92604),o=s(38913),h=s(58901),a=s(73913),l=s(8744),c=s(40488),u=(s(66577),s(3172)),d=s(33955),f=s(11282),_=s(17452);async function m(t,e,s){const i="string"==typeof t?(0,_.mN)(t):t,n=e[0].spatialReference,r=(0,d.Ji)(e[0]),o={...s,query:{...i.query,f:"json",sr:(0,l.B9)(n),geometries:JSON.stringify((a=e,{geometryType:(0,d.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}},{data:h}=await(0,u.Z)(i.path+"/simplify",o);var a;return function(t,e,s){const i=(0,d.q9)(e);return t.map((t=>{const e=i.fromJSON(t);return e.spatialReference=s,e}))}(h.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function y(t){return"polyline"===t[0].type}function b(t,e,s){if(e){const e=function(t,e){if(!(t instanceof h.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new n.Z(t)}const s=(0,a.x3)(t),i=[];for(const t of s){const s=[];i.push(s),s.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const n=t[i][0],r=t[i][1],o=t[i+1][0],h=t[i+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),l=(h-r)/a,c=(o-n)/a,u=a/e;if(u>1){for(let t=1;t<=u-1;t++){const i=t*e,o=c*i+n,h=l*i+r;s.push([o,h])}const t=(a+Math.floor(u-1)*e)/2,i=c*t+n,o=l*t+r;s.push([i,o])}s.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:i,spatialReference:t.spatialReference}):new h.Z({paths:i,spatialReference:t.spatialReference})}(t,1e6);t=(0,c.Sx)(e,!0)}return s&&(t=(0,a.Sy)(t,s)),t}function v(t,e,s){if(Array.isArray(t)){const i=t[0];if(i>e){const s=(0,a.XZ)(i,e);t[0]=i+s*(-2*e)}else if(i<s){const e=(0,a.XZ)(i,s);t[0]=i+e*(-2*s)}}else{const i=t.x;if(i>e){const s=(0,a.XZ)(i,e);t=t.clone().offset(s*(-2*e),0)}else if(i<s){const e=(0,a.XZ)(i,s);t=t.clone().offset(e*(-2*s),0)}}return t}function x(t,e){let s=-1;for(let i=0;i<e.cutIndexes.length;i++){const n=e.cutIndexes[i],r=e.geometries[i],o=(0,a.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const i=e[t][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,a.XZ)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(i,0))}return!0}}))}if(n===s){if(p(t))for(const e of(0,a.x3)(r))t[n]=t[n].addRing(e);else if(y(t))for(const e of(0,a.x3)(r))t[n]=t[n].addPath(e)}else s=n,t[n]=r}return t}async function I(t,e,s){if(!Array.isArray(t))return I([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??i.default.geometryServiceUrl;let r,_,p,y,E,M,B,S,w=0;const z=[],A=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,_=(0,l.C5)(r),p=r.isWebMercator,M=p?102100:4326,y=a.UZ[M].maxX,E=a.UZ[M].minX,B=a.UZ[M].plus180Line,S=a.UZ[M].minus180Line),_)if("mesh"===e.type)A.push(e);else if("point"===e.type)A.push(v(e.clone(),y,E));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>v(t,y,E))),A.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,_);A.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,s=(0,a.XZ)(t.xmin,E)*(2*y);let i=0===s?e.clone():(0,a.Sy)(e.clone(),s);t.offset(s,0),t.intersects(B)&&t.xmax!==y?(w=t.xmax>w?t.xmax:w,i=b(i,p),z.push(i),A.push("cut")):t.intersects(S)&&t.xmin!==E?(w=t.xmax*(2*y)>w?t.xmax*(2*y):w,i=b(i,p,360),z.push(i),A.push("cut")):A.push(i)}else A.push(e.clone());else A.push(e);else A.push(e);let C=(0,a.XZ)(w,y),N=-90;const T=C,R=new h.Z;for(;C>0;){const t=360*C-180;R.addPath([[t,N],[t,-1*N]]),N*=-1,C--}if(z.length>0&&T>0){const e=x(z,await async function(t,e,s,i){const n=(0,f.en)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,l.B9)(r),target:JSON.stringify({geometryType:(0,d.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},h=await(0,u.Z)(n.path+"/cut",o),{cutIndexes:a,geometries:c=[]}=h.data;return{cutIndexes:a,geometries:c.map((t=>{const e=(0,d.im)(t);return e.spatialReference=r,e}))}}(n,z,R,s)),i=[],r=[];for(let s=0;s<A.length;s++){const n=A[s];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(p?(0,c.$)(n):n)}}if(!i.length)return r;const o=await m(n,i,s),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(p?(0,c.$)(o.shift()):o.shift())}return h}const O=[];for(let t=0;t<A.length;t++){const e=A[t];if("cut"!==e)O.push(e);else{const t=z.shift();O.push(!0===p?(0,c.$)(t):t)}}return O}},73913:(t,e,s)=>{s.d(e,{Sy:()=>a,UZ:()=>o,XZ:()=>h,x3:()=>l});var i=s(58901),n=s(82971),r=s(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function a(t,e){const s=l(t);for(const t of s)for(const s of t)s[0]+=e;return t}function l(t){return(0,r.oU)(t)?t.rings:t.paths}},37549:(t,e,s)=>{s.d(e,{H:()=>h});var i=s(80442),n=s(24133),r=s(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,i.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((s,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},28972:(t,e,s)=>{s.d(e,{Z:()=>M});var i=s(67676),n=s(20102),r=s(32448),o=s(92604),h=s(60437),a=s(24470),l=s(98732),c=s(37549);function u(t,e){return t?e?4:3:e?3:2}function d(t,e,s,i,n){if(!e?.lengths.length)return null;const r="upperLeft"===n?.originPosition?-1:1;t.lengths.length&&(t.lengths.length=0),t.coords.length&&(t.coords.length=0);const o=t.coords,h=[],a=s?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:l,coords:c}=e,d=u(s,i);let m=0;for(const t of l){const e=f(a,c,m,t,s,i,r);e&&h.push(e),m+=t*d}if(h.sort(((t,e)=>{let i=r*t[2]-r*e[2];return 0===i&&s&&(i=t[4]-e[4]),i})),h.length){let t=6*h[0][2];o[0]=h[0][0]/t,o[1]=h[0][1]/t,s&&(t=6*h[0][4],o[2]=0!==t?h[0][3]/t:0),(o[0]<a[0]||o[0]>a[1]||o[1]<a[2]||o[1]>a[3]||s&&(o[2]<a[4]||o[2]>a[5]))&&(o.length=0)}if(!o.length){const t=e.lengths[0]?_(c,0,l[0],s,i):null;if(!t)return null;o[0]=t[0],o[1]=t[1],s&&t.length>2&&(o[2]=t[2])}return t}function f(t,e,s,i,n,r,o=1){const h=u(n,r);let a=s,l=s+h,c=0,d=0,f=0,_=0,m=0;for(let s=0,r=i-1;s<r;s++,a+=h,l+=h){const s=e[a],i=e[a+1],r=e[a+2],o=e[l],h=e[l+1],u=e[l+2];let g=s*h-o*i;_+=g,c+=(s+o)*g,d+=(i+h)*g,n&&(g=s*u-o*r,f+=(r+u)*g,m+=g),s<t[0]&&(t[0]=s),s>t[1]&&(t[1]=s),i<t[2]&&(t[2]=i),i>t[3]&&(t[3]=i),n&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(_*o>0&&(_*=-1),m*o>0&&(m*=-1),!_)return null;const g=[c,d,.5*_];return n&&(g[3]=f,g[4]=.5*m),g}function _(t,e,s,i,n){const r=u(i,n);let o=e,h=e+r,a=0,l=0,c=0,d=0;for(let e=0,n=s-1;e<n;e++,o+=r,h+=r){const e=t[o],s=t[o+1],n=t[o+2],r=t[h],u=t[h+1],f=t[h+2],_=i?g(e,s,n,r,u,f):m(e,s,r,u);if(_)if(a+=_,i){const t=y(e,s,n,r,u,f);l+=_*t[0],c+=_*t[1],d+=_*t[2]}else{const t=p(e,s,r,u);l+=_*t[0],c+=_*t[1]}}return a>0?i?[l/a,c/a,d/a]:[l/a,c/a]:s>0?i?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function m(t,e,s,i){const n=s-t,r=i-e;return Math.sqrt(n*n+r*r)}function g(t,e,s,i,n,r){const o=i-t,h=n-e,a=r-s;return Math.sqrt(o*o+h*h+a*a)}function p(t,e,s,i){return[t+.5*(s-t),e+.5*(i-e)]}function y(t,e,s,i,n,r){return[t+.5*(i-t),e+.5*(n-e),s+.5*(r-s)]}var b=s(70272),v=s(5428);const x={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new b.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=d(new v.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)};var I=s(11490);const E=(0,h.Ue)();class M{constructor(t){this.geometryInfo=t,this._boundsStore=new c.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=x}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,I.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map((t=>this._upsert(t)));return this._emitChanged(),e.filter(i.pC)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,h.JR)(E,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,s)=>{this._markedIds.has(s)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let i;if(this._markedIds.add(e),s?(t.displayId=s.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,l.$)(null!=i?i:(0,a.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t)}_upsert(t){const e=t?.objectId;if(null==e)return o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const s=this._featuresById.get(e);if(!s)return this._add(t),t;this._markedIds.add(e);const{geometry:i,attributes:r}=t;for(const t in r)s.attributes[t]=r[t];return i&&(s.geometry=i,this._boundsStore.set(e,(0,l.$)((0,a.Ue)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},23095:(t,e,s)=>{s.d(e,{O0:()=>d,av:()=>a,b:()=>g,d1:()=>c,og:()=>m});var i=s(20188),n=s(8744),r=s(35671);class o{constructor(){this.code=null,this.description=null}}class h{constructor(t){this.error=new o,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=t}}function a(t){return new h(t)}class l{constructor(t){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=t}}function c(t){return new l(t)}const u=new Set;function d(t,e,s,i=!1){u.clear();for(const n in s){const o=t.get(n);if(!o)continue;const h=f(o,s[n]);if(u.add(o.name),o&&(i||o.editable)){const t=(0,r.Qc)(o,h);if(t)return a((0,r.vP)(t,o,h));e[o.name]=h}}for(const e of t?.requiredFields??[])if(!u.has(e.name))return a(`missing required field "${e.name}"`);return null}function f(t,e){let s=e;return(0,r.H7)(t)&&"string"==typeof e?s=parseFloat(e):(0,r.qN)(t)&&null!=e&&"string"!=typeof e?s=String(e):"date"!==t.type&&"esriFieldTypeDate"!==t.type||"string"!=typeof e||(s=(0,i.s)(e)),(0,r.Pz)(s)}let _;function m(t,e){if(!t||!(0,n.JY)(e))return t;if("rings"in t||"paths"in t){if(null==_)throw new TypeError("geometry engine not loaded");return _.simplify(e,t)}return t}async function g(t,e){!(0,n.JY)(t)||"esriGeometryPolygon"!==e&&"esriGeometryPolyline"!==e||await async function(){return null==_&&(_=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))),_}()}},86719:(t,e,s)=>{s.d(e,{v:()=>i});const i=new(s(35454).X)({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"})},11282:(t,e,s)=>{s.d(e,{cv:()=>h,en:()=>o,lA:()=>r}),s(68773),s(40330);var i=s(22974),n=s(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,n.mN)(t):(0,i.d9)(t)}function h(t,e,s){const i={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){i[n]=[];for(let t=0;t<r.length;t++)i[n][t]=h(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(s?.[n]);i[n]=e?t:JSON.stringify(t)}else i[n]=e?r:JSON.stringify(r);else i[n]=r}return i}s(71058)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6774,5732,2596],{5732:(e,t,_)=>{_.d(t,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},66774:(e,t,_)=>{_.r(t),_.d(t,{p:()=>s});var r,o,n,p=_(5732),i={exports:{}};r=i,o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(o=o||__filename),n=function(e={}){var t,_,r=e;r.ready=new Promise(((e,r)=>{t=e,_=r}));var n,p,i,c=Object.assign({},r),s="./this.program",P="object"==typeof window,a="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";if(g){var d=require("fs"),u=require("path");y=a?u.dirname(y)+"/":__dirname+"/",n=(e,t)=>(e=w(e)?new URL(e):u.normalize(e),d.readFileSync(e,t?void 0:"utf8")),i=e=>{var t=n(e,!0);return t.buffer||(t=new Uint8Array(t)),t},p=(e,t,_,r=!0)=>{e=w(e)?new URL(e):u.normalize(e),d.readFile(e,r?void 0:"utf8",((e,o)=>{e?_(e):t(r?o.buffer:o)}))},!r.thisProgram&&process.argv.length>1&&(s=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),r.inspect=()=>"[Emscripten Module object]"}else(P||a)&&(a?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),o&&(y=o),y=0!==y.indexOf("blob:")?y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),p=(e,t,_)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):_()},r.onerror=_,r.send(null)});var f,E,b=console.log.bind(console),m=console.error.bind(console);Object.assign(r,c),c=null,"object"!=typeof WebAssembly&&U("no native wasm support detected");var T,O,S,N,h,l,M,v=!1;function D(e,t){e||U(t)}function R(){var e=E.buffer;r.HEAP8=T=new Int8Array(e),r.HEAP16=S=new Int16Array(e),r.HEAPU8=O=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAP32=N=new Int32Array(e),r.HEAPU32=h=new Uint32Array(e),r.HEAPF32=l=new Float32Array(e),r.HEAPF64=M=new Float64Array(e)}var A=[],G=[],C=[],I=0,j=null;function U(e){m(e="Aborted("+e+")"),v=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw _(t),t}var L;function F(e){return e.startsWith("data:application/octet-stream;base64,")}function w(e){return e.startsWith("file://")}function Y(e){if(e==L&&f)return new Uint8Array(f);if(i)return i(e);throw"both async and sync fetching of the wasm failed"}function x(e,t,_){return function(e){if(P||a){if("function"==typeof fetch&&!w(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Y(e)));if(p)return new Promise(((t,_)=>{p(e,(e=>t(new Uint8Array(e))),_)}))}return Promise.resolve().then((()=>Y(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(_,(e=>{m(`failed to asynchronously prepare wasm: ${e}`),U(e)}))}F(L="pe-wasm.wasm")||(L=function(e){return r.locateFile?r.locateFile(e,y):y+e}(L));var H=e=>{for(;e.length>0;)e.shift()(r)},X="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,z=(e,t,_)=>{for(var r=t+_,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&X)return X.decode(e.subarray(t,o));for(var n="";t<o;){var p=e[t++];if(128&p){var i=63&e[t++];if(192!=(224&p)){var c=63&e[t++];if((p=224==(240&p)?(15&p)<<12|i<<6|c:(7&p)<<18|i<<12|c<<6|63&e[t++])<65536)n+=String.fromCharCode(p);else{var s=p-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&p)<<6|i)}else n+=String.fromCharCode(p)}return n},Z=(e,t)=>e?z(O,e,t):"",W=(e,t,_,r)=>{if(!(r>0))return 0;for(var o=_,n=_+r-1,p=0;p<e.length;++p){var i=e.charCodeAt(p);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++p)),i<=127){if(_>=n)break;t[_++]=i}else if(i<=2047){if(_+1>=n)break;t[_++]=192|i>>6,t[_++]=128|63&i}else if(i<=65535){if(_+2>=n)break;t[_++]=224|i>>12,t[_++]=128|i>>6&63,t[_++]=128|63&i}else{if(_+3>=n)break;t[_++]=240|i>>18,t[_++]=128|i>>12&63,t[_++]=128|i>>6&63,t[_++]=128|63&i}}return t[_]=0,_-o},B=[0,31,60,91,121,152,182,213,244,274,305,335],K=[0,31,59,90,120,151,181,212,243,273,304,334],V=e=>{for(var t=0,_=0;_<e.length;++_){var r=e.charCodeAt(_);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++_):t+=3}return t},k=e=>{var t=V(e)+1,_=oe(t);return _&&((e,t,_)=>{W(e,O,t,_)})(e,_,t),_},q=e=>{var t=(e-E.buffer.byteLength+65535)/65536;try{return E.grow(t),R(),1}catch(e){}},J={},$=()=>{if(!$.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var t in J)void 0===J[t]?delete e[t]:e[t]=J[t];var _=[];for(var t in e)_.push(`${t}=${e[t]}`);$.strings=_}return $.strings},Q=[null,[],[]],ee=(e,t)=>{var _=Q[e];0===t||10===t?((1===e?b:m)(z(_,0)),_.length=0):_.push(t)},te={c:function(e,t,_){return 0},r:(e,t,_)=>{},h:function(e,t,_){return 0},d:function(e,t,_,r){},p:e=>{},o:(e,t)=>{},q:(e,t,_)=>{},j:function(e,t,_){var r=((e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)(e,t),o=new Date(1e3*r);N[_>>2]=o.getSeconds(),N[_+4>>2]=o.getMinutes(),N[_+8>>2]=o.getHours(),N[_+12>>2]=o.getDate(),N[_+16>>2]=o.getMonth(),N[_+20>>2]=o.getFullYear()-1900,N[_+24>>2]=o.getDay();var n=0|(e=>((e=>e%4==0&&(e%100!=0||e%400==0))(e.getFullYear())?B:K)[e.getMonth()]+e.getDate()-1)(o);N[_+28>>2]=n,N[_+36>>2]=-60*o.getTimezoneOffset();var p=new Date(o.getFullYear(),0,1),i=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=p.getTimezoneOffset(),s=0|(i!=c&&o.getTimezoneOffset()==Math.min(c,i));N[_+32>>2]=s},n:(e,t,_)=>{var r=(new Date).getFullYear(),o=new Date(r,0,1),n=new Date(r,6,1),p=o.getTimezoneOffset(),i=n.getTimezoneOffset(),c=Math.max(p,i);function s(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}h[e>>2]=60*c,N[t>>2]=Number(p!=i);var P=s(o),a=s(n),g=k(P),y=k(a);i<p?(h[_>>2]=g,h[_+4>>2]=y):(h[_>>2]=y,h[_+4>>2]=g)},l:()=>{U("")},i:()=>Date.now(),s:(e,t,_)=>O.copyWithin(e,t,t+_),m:e=>{var t=O.length,_=2147483648;if((e>>>=0)>_)return!1;for(var r=(e,t)=>e+(t-e%t)%t,o=1;o<=4;o*=2){var n=t*(1+.2/o);n=Math.min(n,e+100663296);var p=Math.min(_,r(Math.max(e,n),65536));if(q(p))return!0}return!1},e:(e,t)=>{var _=0;return $().forEach(((r,o)=>{var n=t+_;h[e+4*o>>2]=n,((e,t)=>{for(var _=0;_<e.length;++_)T[t++>>0]=e.charCodeAt(_);T[t>>0]=0})(r,n),_+=r.length+1})),0},f:(e,t)=>{var _=$();h[e>>2]=_.length;var r=0;return _.forEach((e=>r+=e.length+1)),h[t>>2]=r,0},a:e=>52,g:(e,t,_,r)=>52,k:function(e,t,_,r,o){return 70},b:(e,t,_,r)=>{for(var o=0,n=0;n<_;n++){var p=h[t>>2],i=h[t+4>>2];t+=8;for(var c=0;c<i;c++)ee(e,O[p+c]);o+=i}return h[r>>2]=o,0}},_e=(I++,function(e,t,_,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||F(t)||w(t)||g||"function"!=typeof fetch?x(t,_,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,_).then(r,(function(e){return m(`wasm streaming compile failed: ${e}`),m("falling back to ArrayBuffer instantiation"),x(t,_,r)}))))}(f,L,{a:te},(function(e){!function(e,t){_e=e.exports,E=_e.t,R(),function(e){G.unshift(e)}(_e.u),function(e){if(0==--I&&j){var t=j;j=null,t()}}()}(e.instance)})).catch(_),{});r._webidl_free=e=>(r._webidl_free=_e.v)(e),r._webidl_malloc=e=>(r._webidl_malloc=_e.w)(e);var re,oe=e=>(oe=_e.x)(e),ne=r._emscripten_bind_PeObject_getCode_0=e=>(ne=r._emscripten_bind_PeObject_getCode_0=_e.y)(e),pe=r._emscripten_bind_PeObject_getName_1=(e,t)=>(pe=r._emscripten_bind_PeObject_getName_1=_e.z)(e,t),ie=r._emscripten_bind_PeObject_getType_0=e=>(ie=r._emscripten_bind_PeObject_getType_0=_e.A)(e),ce=r._emscripten_bind_PeCoordsys_getCode_0=e=>(ce=r._emscripten_bind_PeCoordsys_getCode_0=_e.B)(e),se=r._emscripten_bind_PeCoordsys_getName_1=(e,t)=>(se=r._emscripten_bind_PeCoordsys_getName_1=_e.C)(e,t),Pe=r._emscripten_bind_PeCoordsys_getType_0=e=>(Pe=r._emscripten_bind_PeCoordsys_getType_0=_e.D)(e),ae=r._emscripten_bind_VoidPtr___destroy___0=e=>(ae=r._emscripten_bind_VoidPtr___destroy___0=_e.E)(e),ge=r._emscripten_bind_PeDatum_getSpheroid_0=e=>(ge=r._emscripten_bind_PeDatum_getSpheroid_0=_e.F)(e),ye=r._emscripten_bind_PeDatum_getCode_0=e=>(ye=r._emscripten_bind_PeDatum_getCode_0=_e.G)(e),de=r._emscripten_bind_PeDatum_getName_1=(e,t)=>(de=r._emscripten_bind_PeDatum_getName_1=_e.H)(e,t),ue=r._emscripten_bind_PeDatum_getType_0=e=>(ue=r._emscripten_bind_PeDatum_getType_0=_e.I)(e),fe=r._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=e=>(fe=r._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=_e.J)(e),Ee=r._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=e=>(Ee=r._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=_e.K)(e),be=r._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=e=>(be=r._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=_e.L)(e),me=r._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=e=>(me=r._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=_e.M)(e),Te=r._emscripten_bind_PeDefs_get_PE_DD_MAX_0=e=>(Te=r._emscripten_bind_PeDefs_get_PE_DD_MAX_0=_e.N)(e),Oe=r._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=e=>(Oe=r._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=_e.O)(e),Se=r._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=e=>(Se=r._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=_e.P)(e),Ne=r._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=e=>(Ne=r._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=_e.Q)(e),he=r._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=e=>(he=r._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=_e.R)(e),le=r._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=e=>(le=r._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=_e.S)(e),Me=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=e=>(Me=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=_e.T)(e),ve=r._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=e=>(ve=r._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=_e.U)(e),De=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=e=>(De=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=_e.V)(e),Re=r._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=e=>(Re=r._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=_e.W)(e),Ae=r._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=e=>(Ae=r._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=_e.X)(e),Ge=r._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=e=>(Ge=r._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=_e.Y)(e),Ce=r._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=e=>(Ce=r._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=_e.Z)(e),Ie=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=e=>(Ie=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=_e._)(e),je=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=e=>(je=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=_e.$)(e),Ue=r._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=e=>(Ue=r._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=_e.aa)(e),Le=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=e=>(Le=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=_e.ba)(e),Fe=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=e=>(Fe=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=_e.ca)(e),we=r._emscripten_bind_PeDefs_get_PE_PARM_X0_0=e=>(we=r._emscripten_bind_PeDefs_get_PE_PARM_X0_0=_e.da)(e),Ye=r._emscripten_bind_PeDefs_get_PE_PARM_ND_0=e=>(Ye=r._emscripten_bind_PeDefs_get_PE_PARM_ND_0=_e.ea)(e),xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=e=>(xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=_e.fa)(e),He=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=e=>(He=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=_e.ga)(e),Xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=e=>(Xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=_e.ha)(e),ze=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=e=>(ze=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=_e.ia)(e),Ze=r._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=e=>(Ze=r._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=_e.ja)(e),We=r._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=e=>(We=r._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=_e.ka)(e),Be=r._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=e=>(Be=r._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=_e.la)(e),Ke=r._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=e=>(Ke=r._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=_e.ma)(e),Ve=r._emscripten_bind_PeFactory_initialize_1=(e,t)=>(Ve=r._emscripten_bind_PeFactory_initialize_1=_e.na)(e,t),ke=r._emscripten_bind_PeFactory_factoryByType_2=(e,t,_)=>(ke=r._emscripten_bind_PeFactory_factoryByType_2=_e.oa)(e,t,_),qe=r._emscripten_bind_PeFactory_fromString_2=(e,t,_)=>(qe=r._emscripten_bind_PeFactory_fromString_2=_e.pa)(e,t,_),Je=r._emscripten_bind_PeFactory_getCode_1=(e,t)=>(Je=r._emscripten_bind_PeFactory_getCode_1=_e.qa)(e,t),$e=r._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(e,t,_,o,n,p)=>($e=r._emscripten_bind_PeGCSExtent_PeGCSExtent_6=_e.ra)(e,t,_,o,n,p),Qe=r._emscripten_bind_PeGCSExtent_getLLon_0=e=>(Qe=r._emscripten_bind_PeGCSExtent_getLLon_0=_e.sa)(e),et=r._emscripten_bind_PeGCSExtent_getSLat_0=e=>(et=r._emscripten_bind_PeGCSExtent_getSLat_0=_e.ta)(e),tt=r._emscripten_bind_PeGCSExtent_getRLon_0=e=>(tt=r._emscripten_bind_PeGCSExtent_getRLon_0=_e.ua)(e),_t=r._emscripten_bind_PeGCSExtent_getNLat_0=e=>(_t=r._emscripten_bind_PeGCSExtent_getNLat_0=_e.va)(e),rt=r._emscripten_bind_PeGCSExtent___destroy___0=e=>(rt=r._emscripten_bind_PeGCSExtent___destroy___0=_e.wa)(e),ot=r._emscripten_bind_PeGeogcs_getDatum_0=e=>(ot=r._emscripten_bind_PeGeogcs_getDatum_0=_e.xa)(e),nt=r._emscripten_bind_PeGeogcs_getPrimem_0=e=>(nt=r._emscripten_bind_PeGeogcs_getPrimem_0=_e.ya)(e),pt=r._emscripten_bind_PeGeogcs_getUnit_0=e=>(pt=r._emscripten_bind_PeGeogcs_getUnit_0=_e.za)(e),it=r._emscripten_bind_PeGeogcs_getCode_0=e=>(it=r._emscripten_bind_PeGeogcs_getCode_0=_e.Aa)(e),ct=r._emscripten_bind_PeGeogcs_getName_1=(e,t)=>(ct=r._emscripten_bind_PeGeogcs_getName_1=_e.Ba)(e,t),st=r._emscripten_bind_PeGeogcs_getType_0=e=>(st=r._emscripten_bind_PeGeogcs_getType_0=_e.Ca)(e),Pt=r._emscripten_bind_PeGeogtran_isEqual_1=(e,t)=>(Pt=r._emscripten_bind_PeGeogtran_isEqual_1=_e.Da)(e,t),at=r._emscripten_bind_PeGeogtran_getGeogcs1_0=e=>(at=r._emscripten_bind_PeGeogtran_getGeogcs1_0=_e.Ea)(e),gt=r._emscripten_bind_PeGeogtran_getGeogcs2_0=e=>(gt=r._emscripten_bind_PeGeogtran_getGeogcs2_0=_e.Fa)(e),yt=r._emscripten_bind_PeGeogtran_getParameters_0=e=>(yt=r._emscripten_bind_PeGeogtran_getParameters_0=_e.Ga)(e),dt=r._emscripten_bind_PeGeogtran_loadConstants_0=e=>(dt=r._emscripten_bind_PeGeogtran_loadConstants_0=_e.Ha)(e),ut=r._emscripten_bind_PeGeogtran_getCode_0=e=>(ut=r._emscripten_bind_PeGeogtran_getCode_0=_e.Ia)(e),ft=r._emscripten_bind_PeGeogtran_getName_1=(e,t)=>(ft=r._emscripten_bind_PeGeogtran_getName_1=_e.Ja)(e,t),Et=r._emscripten_bind_PeGeogtran_getType_0=e=>(Et=r._emscripten_bind_PeGeogtran_getType_0=_e.Ka)(e),bt=r._emscripten_bind_PeGTlistExtended_getGTlist_6=(e,t,_,o,n,p,i)=>(bt=r._emscripten_bind_PeGTlistExtended_getGTlist_6=_e.La)(e,t,_,o,n,p,i),mt=r._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=e=>(mt=r._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=_e.Ma)(e),Tt=r._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=e=>(Tt=r._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=_e.Na)(e),Ot=r._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=e=>(Ot=r._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=_e.Oa)(e),St=r._emscripten_bind_PeGTlistExtendedEntry_Delete_1=(e,t)=>(St=r._emscripten_bind_PeGTlistExtendedEntry_Delete_1=_e.Pa)(e,t),Nt=r._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=e=>(Nt=r._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=_e.Qa)(e),ht=r._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=e=>(ht=r._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=_e.Ra)(e),lt=r._emscripten_bind_PeHorizon_getNump_0=e=>(lt=r._emscripten_bind_PeHorizon_getNump_0=_e.Sa)(e),Mt=r._emscripten_bind_PeHorizon_getKind_0=e=>(Mt=r._emscripten_bind_PeHorizon_getKind_0=_e.Ta)(e),vt=r._emscripten_bind_PeHorizon_getInclusive_0=e=>(vt=r._emscripten_bind_PeHorizon_getInclusive_0=_e.Ua)(e),Dt=r._emscripten_bind_PeHorizon_getSize_0=e=>(Dt=r._emscripten_bind_PeHorizon_getSize_0=_e.Va)(e),Rt=r._emscripten_bind_PeHorizon_getCoord_0=e=>(Rt=r._emscripten_bind_PeHorizon_getCoord_0=_e.Wa)(e),At=r._emscripten_bind_PeInteger_PeInteger_1=e=>(At=r._emscripten_bind_PeInteger_PeInteger_1=_e.Xa)(e),Gt=r._emscripten_bind_PeInteger_get_val_0=e=>(Gt=r._emscripten_bind_PeInteger_get_val_0=_e.Ya)(e),Ct=r._emscripten_bind_PeInteger_set_val_1=(e,t)=>(Ct=r._emscripten_bind_PeInteger_set_val_1=_e.Za)(e,t),It=r._emscripten_bind_PeInteger___destroy___0=e=>(It=r._emscripten_bind_PeInteger___destroy___0=_e._a)(e),jt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=e=>(jt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=_e.$a)(e),Ut=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=e=>(Ut=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=_e.ab)(e),Lt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=e=>(Lt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=_e.bb)(e),Ft=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=e=>(Ft=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=_e.cb)(e),wt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=e=>(wt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=_e.db)(e),Yt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=e=>(Yt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=_e.eb)(e),xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=e=>(xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=_e.fb)(e),Ht=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=e=>(Ht=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=_e.gb)(e),Xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=e=>(Xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=_e.hb)(e),zt=r._emscripten_bind_PeParameter_getValue_0=e=>(zt=r._emscripten_bind_PeParameter_getValue_0=_e.ib)(e),Zt=r._emscripten_bind_PeParameter_getCode_0=e=>(Zt=r._emscripten_bind_PeParameter_getCode_0=_e.jb)(e),Wt=r._emscripten_bind_PeParameter_getName_1=(e,t)=>(Wt=r._emscripten_bind_PeParameter_getName_1=_e.kb)(e,t),Bt=r._emscripten_bind_PeParameter_getType_0=e=>(Bt=r._emscripten_bind_PeParameter_getType_0=_e.lb)(e),Kt=r._emscripten_bind_PePCSInfo_getCentralMeridian_0=e=>(Kt=r._emscripten_bind_PePCSInfo_getCentralMeridian_0=_e.mb)(e),Vt=r._emscripten_bind_PePCSInfo_getDomainMinx_0=e=>(Vt=r._emscripten_bind_PePCSInfo_getDomainMinx_0=_e.nb)(e),kt=r._emscripten_bind_PePCSInfo_getDomainMiny_0=e=>(kt=r._emscripten_bind_PePCSInfo_getDomainMiny_0=_e.ob)(e),qt=r._emscripten_bind_PePCSInfo_getDomainMaxx_0=e=>(qt=r._emscripten_bind_PePCSInfo_getDomainMaxx_0=_e.pb)(e),Jt=r._emscripten_bind_PePCSInfo_getDomainMaxy_0=e=>(Jt=r._emscripten_bind_PePCSInfo_getDomainMaxy_0=_e.qb)(e),$t=r._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=e=>($t=r._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=_e.rb)(e),Qt=r._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=e=>(Qt=r._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=_e.sb)(e),e_=r._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=e=>(e_=r._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=_e.tb)(e),t_=r._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=e=>(t_=r._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=_e.ub)(e),__=r._emscripten_bind_PePCSInfo_isDensificationNeeded_0=e=>(__=r._emscripten_bind_PePCSInfo_isDensificationNeeded_0=_e.vb)(e),r_=r._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=e=>(r_=r._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=_e.wb)(e),o_=r._emscripten_bind_PePCSInfo_isPannableRectangle_0=e=>(o_=r._emscripten_bind_PePCSInfo_isPannableRectangle_0=_e.xb)(e),n_=r._emscripten_bind_PePCSInfo_generate_2=(e,t,_)=>(n_=r._emscripten_bind_PePCSInfo_generate_2=_e.yb)(e,t,_),p_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=e=>(p_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=_e.zb)(e),i_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=e=>(i_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=_e.Ab)(e),c_=r._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=e=>(c_=r._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=_e.Bb)(e),s_=r._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=e=>(s_=r._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=_e.Cb)(e),P_=r._emscripten_bind_PePrimem_getLongitude_0=e=>(P_=r._emscripten_bind_PePrimem_getLongitude_0=_e.Db)(e),a_=r._emscripten_bind_PePrimem_getCode_0=e=>(a_=r._emscripten_bind_PePrimem_getCode_0=_e.Eb)(e),g_=r._emscripten_bind_PePrimem_getName_1=(e,t)=>(g_=r._emscripten_bind_PePrimem_getName_1=_e.Fb)(e,t),y_=r._emscripten_bind_PePrimem_getType_0=e=>(y_=r._emscripten_bind_PePrimem_getType_0=_e.Gb)(e),d_=r._emscripten_bind_PeProjcs_getGeogcs_0=e=>(d_=r._emscripten_bind_PeProjcs_getGeogcs_0=_e.Hb)(e),u_=r._emscripten_bind_PeProjcs_getParameters_0=e=>(u_=r._emscripten_bind_PeProjcs_getParameters_0=_e.Ib)(e),f_=r._emscripten_bind_PeProjcs_getUnit_0=e=>(f_=r._emscripten_bind_PeProjcs_getUnit_0=_e.Jb)(e),E_=r._emscripten_bind_PeProjcs_loadConstants_0=e=>(E_=r._emscripten_bind_PeProjcs_loadConstants_0=_e.Kb)(e),b_=r._emscripten_bind_PeProjcs_horizonGcsGenerate_0=e=>(b_=r._emscripten_bind_PeProjcs_horizonGcsGenerate_0=_e.Lb)(e),m_=r._emscripten_bind_PeProjcs_horizonPcsGenerate_0=e=>(m_=r._emscripten_bind_PeProjcs_horizonPcsGenerate_0=_e.Mb)(e),T_=r._emscripten_bind_PeProjcs_getCode_0=e=>(T_=r._emscripten_bind_PeProjcs_getCode_0=_e.Nb)(e),O_=r._emscripten_bind_PeProjcs_getName_1=(e,t)=>(O_=r._emscripten_bind_PeProjcs_getName_1=_e.Ob)(e,t),S_=r._emscripten_bind_PeProjcs_getType_0=e=>(S_=r._emscripten_bind_PeProjcs_getType_0=_e.Pb)(e),N_=r._emscripten_bind_PeSpheroid_getAxis_0=e=>(N_=r._emscripten_bind_PeSpheroid_getAxis_0=_e.Qb)(e),h_=r._emscripten_bind_PeSpheroid_getFlattening_0=e=>(h_=r._emscripten_bind_PeSpheroid_getFlattening_0=_e.Rb)(e),l_=r._emscripten_bind_PeSpheroid_getCode_0=e=>(l_=r._emscripten_bind_PeSpheroid_getCode_0=_e.Sb)(e),M_=r._emscripten_bind_PeSpheroid_getName_1=(e,t)=>(M_=r._emscripten_bind_PeSpheroid_getName_1=_e.Tb)(e,t),v_=r._emscripten_bind_PeSpheroid_getType_0=e=>(v_=r._emscripten_bind_PeSpheroid_getType_0=_e.Ub)(e),D_=r._emscripten_bind_PeUnit_getUnitFactor_0=e=>(D_=r._emscripten_bind_PeUnit_getUnitFactor_0=_e.Vb)(e),R_=r._emscripten_bind_PeUnit_getCode_0=e=>(R_=r._emscripten_bind_PeUnit_getCode_0=_e.Wb)(e),A_=r._emscripten_bind_PeUnit_getName_1=(e,t)=>(A_=r._emscripten_bind_PeUnit_getName_1=_e.Xb)(e,t),G_=r._emscripten_bind_PeUnit_getType_0=e=>(G_=r._emscripten_bind_PeUnit_getType_0=_e.Yb)(e),C_=r._emscripten_bind_PeVersion_version_string_0=e=>(C_=r._emscripten_bind_PeVersion_version_string_0=_e.Zb)(e);function I_(){I>0||(H(A),I>0||re||(re=!0,r.calledRun=!0,v||(H(G),t(r),H(C))))}function j_(){}function U_(e){return(e||j_).__cache__}function L_(e,t){var _=U_(t),r=_[e];return r||((r=Object.create((t||j_).prototype)).ptr=e,_[e]=r)}r._pe_getPeGTlistExtendedEntrySize=()=>(r._pe_getPeGTlistExtendedEntrySize=_e._b)(),r._pe_getPeGTlistExtendedGTsSize=()=>(r._pe_getPeGTlistExtendedGTsSize=_e.$b)(),r._pe_getPeHorizonSize=()=>(r._pe_getPeHorizonSize=_e.ac)(),r._pe_geog_to_geog=(e,t,_,o,n)=>(r._pe_geog_to_geog=_e.cc)(e,t,_,o,n),r._pe_geog_to_proj=(e,t,_)=>(r._pe_geog_to_proj=_e.dc)(e,t,_),r._pe_geog_to_dd=(e,t,_,o,n)=>(r._pe_geog_to_dd=_e.ec)(e,t,_,o,n),r._pe_dd_to_geog=(e,t,_,o)=>(r._pe_dd_to_geog=_e.fc)(e,t,_,o),r._pe_geog_to_ddm=(e,t,_,o,n)=>(r._pe_geog_to_ddm=_e.gc)(e,t,_,o,n),r._pe_ddm_to_geog=(e,t,_,o)=>(r._pe_ddm_to_geog=_e.hc)(e,t,_,o),r._pe_geog_to_dms=(e,t,_,o,n)=>(r._pe_geog_to_dms=_e.ic)(e,t,_,o,n),r._pe_dms_to_geog=(e,t,_,o)=>(r._pe_dms_to_geog=_e.jc)(e,t,_,o),r._pe_geog_to_mgrs_extended=(e,t,_,o,n,p,i)=>(r._pe_geog_to_mgrs_extended=_e.kc)(e,t,_,o,n,p,i),r._pe_mgrs_to_geog_extended=(e,t,_,o,n)=>(r._pe_mgrs_to_geog_extended=_e.lc)(e,t,_,o,n),r._pe_geog_to_usng=(e,t,_,o,n,p,i)=>(r._pe_geog_to_usng=_e.mc)(e,t,_,o,n,p,i),r._pe_usng_to_geog=(e,t,_,o)=>(r._pe_usng_to_geog=_e.nc)(e,t,_,o),r._pe_geog_to_utm=(e,t,_,o,n)=>(r._pe_geog_to_utm=_e.oc)(e,t,_,o,n),r._pe_utm_to_geog=(e,t,_,o,n)=>(r._pe_utm_to_geog=_e.pc)(e,t,_,o,n),r._pe_object_to_string_ext=(e,t,_)=>(r._pe_object_to_string_ext=_e.qc)(e,t,_),r._pe_proj_to_geog_center=(e,t,_,o)=>(r._pe_proj_to_geog_center=_e.rc)(e,t,_,o),r.___start_em_js=2033306,r.___stop_em_js=2033404,r.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return T[e>>0];case"i16":return S[e>>1];case"i32":return N[e>>2];case"i64":U("to do getValue(i64) use WASM_BIGINT");case"float":return l[e>>2];case"double":return M[e>>3];case"*":return h[e>>2];default:U(`invalid type for getValue: ${t}`)}},r.UTF8ToString=Z,j=function e(){re||I_(),re||(j=e)},I_(),j_.prototype=Object.create(j_.prototype),j_.prototype.constructor=j_,j_.prototype.__class__=j_,j_.__cache__={},r.WrapperObject=j_,r.getCache=U_,r.wrapPointer=L_,r.castObject=function(e,t){return L_(e.ptr,t)},r.NULL=L_(0),r.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete U_(e.__class__)[e.ptr]},r.compare=function(e,t){return e.ptr===t.ptr},r.getPointer=function(e){return e.ptr},r.getClass=function(e){return e.__class__};var F_={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(F_.needed){for(var e=0;e<F_.temps.length;e++)r._webidl_free(F_.temps[e]);F_.temps.length=0,r._webidl_free(F_.buffer),F_.buffer=0,F_.size+=F_.needed,F_.needed=0}F_.buffer||(F_.size+=128,F_.buffer=r._webidl_malloc(F_.size),D(F_.buffer)),F_.pos=0},alloc(e,t){D(F_.buffer);var _,o=t.BYTES_PER_ELEMENT,n=e.length*o;return n=n+7&-8,F_.pos+n>=F_.size?(D(n>0),F_.needed+=n,_=r._webidl_malloc(n),F_.temps.push(_)):(_=F_.buffer+F_.pos,F_.pos+=n),_},copy(e,t,_){switch(_>>>=0,t.BYTES_PER_ELEMENT){case 2:_>>>=1;break;case 4:_>>>=2;break;case 8:_>>>=3}for(var r=0;r<e.length;r++)t[_+r]=e[r]}};function w_(e){if("string"==typeof e){var t=function(e,t,_){var r=V(e)+1,o=new Array(r);W(e,o,0,o.length);return o}(e),_=F_.alloc(t,T);return F_.copy(t,T,_),_}return e}function Y_(e){if("object"==typeof e){var t=F_.alloc(e,T);return F_.copy(e,T,t),t}return e}function x_(){throw"cannot construct a PeObject, no constructor in IDL"}function H_(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function X_(){throw"cannot construct a VoidPtr, no constructor in IDL"}function z_(){throw"cannot construct a PeDatum, no constructor in IDL"}function Z_(){throw"cannot construct a PeDefs, no constructor in IDL"}function W_(){throw"cannot construct a PeFactory, no constructor in IDL"}function B_(e,t,_,r,o,n){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),this.ptr=$e(e,t,_,r,o,n),U_(B_)[this.ptr]=this}function K_(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function V_(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function k_(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function q_(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function J_(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function $_(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Q_(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=At(e),U_(Q_)[this.ptr]=this}function er(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function tr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function _r(){throw"cannot construct a PeParameter, no constructor in IDL"}function rr(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function or(){throw"cannot construct a PePrimem, no constructor in IDL"}function nr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function pr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function ir(){throw"cannot construct a PeUnit, no constructor in IDL"}function cr(){throw"cannot construct a PeVersion, no constructor in IDL"}return x_.prototype=Object.create(j_.prototype),x_.prototype.constructor=x_,x_.prototype.__class__=x_,x_.__cache__={},r.PeObject=x_,x_.prototype.getCode=x_.prototype.getCode=function(){var e=this.ptr;return ne(e)},x_.prototype.getName=x_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(pe(t,e))},x_.prototype.getType=x_.prototype.getType=function(){var e=this.ptr;return ie(e)},H_.prototype=Object.create(x_.prototype),H_.prototype.constructor=H_,H_.prototype.__class__=H_,H_.__cache__={},r.PeCoordsys=H_,H_.prototype.getCode=H_.prototype.getCode=function(){var e=this.ptr;return ce(e)},H_.prototype.getName=H_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(se(t,e))},H_.prototype.getType=H_.prototype.getType=function(){var e=this.ptr;return Pe(e)},X_.prototype=Object.create(j_.prototype),X_.prototype.constructor=X_,X_.prototype.__class__=X_,X_.__cache__={},r.VoidPtr=X_,X_.prototype.__destroy__=X_.prototype.__destroy__=function(){var e=this.ptr;ae(e)},z_.prototype=Object.create(x_.prototype),z_.prototype.constructor=z_,z_.prototype.__class__=z_,z_.__cache__={},r.PeDatum=z_,z_.prototype.getSpheroid=z_.prototype.getSpheroid=function(){var e=this.ptr;return L_(ge(e),pr)},z_.prototype.getCode=z_.prototype.getCode=function(){var e=this.ptr;return ye(e)},z_.prototype.getName=z_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(de(t,e))},z_.prototype.getType=z_.prototype.getType=function(){var e=this.ptr;return ue(e)},Z_.prototype=Object.create(j_.prototype),Z_.prototype.constructor=Z_,Z_.prototype.__class__=Z_,Z_.__cache__={},r.PeDefs=Z_,Z_.prototype.get_PE_BUFFER_MAX=Z_.prototype.get_PE_BUFFER_MAX=function(){var e=this.ptr;return fe(e)},Object.defineProperty(Z_.prototype,"PE_BUFFER_MAX",{get:Z_.prototype.get_PE_BUFFER_MAX}),Z_.prototype.get_PE_NAME_MAX=Z_.prototype.get_PE_NAME_MAX=function(){var e=this.ptr;return Ee(e)},Object.defineProperty(Z_.prototype,"PE_NAME_MAX",{get:Z_.prototype.get_PE_NAME_MAX}),Z_.prototype.get_PE_MGRS_MAX=Z_.prototype.get_PE_MGRS_MAX=function(){var e=this.ptr;return be(e)},Object.defineProperty(Z_.prototype,"PE_MGRS_MAX",{get:Z_.prototype.get_PE_MGRS_MAX}),Z_.prototype.get_PE_USNG_MAX=Z_.prototype.get_PE_USNG_MAX=function(){var e=this.ptr;return me(e)},Object.defineProperty(Z_.prototype,"PE_USNG_MAX",{get:Z_.prototype.get_PE_USNG_MAX}),Z_.prototype.get_PE_DD_MAX=Z_.prototype.get_PE_DD_MAX=function(){var e=this.ptr;return Te(e)},Object.defineProperty(Z_.prototype,"PE_DD_MAX",{get:Z_.prototype.get_PE_DD_MAX}),Z_.prototype.get_PE_DMS_MAX=Z_.prototype.get_PE_DMS_MAX=function(){var e=this.ptr;return Oe(e)},Object.defineProperty(Z_.prototype,"PE_DMS_MAX",{get:Z_.prototype.get_PE_DMS_MAX}),Z_.prototype.get_PE_DDM_MAX=Z_.prototype.get_PE_DDM_MAX=function(){var e=this.ptr;return Se(e)},Object.defineProperty(Z_.prototype,"PE_DDM_MAX",{get:Z_.prototype.get_PE_DDM_MAX}),Z_.prototype.get_PE_UTM_MAX=Z_.prototype.get_PE_UTM_MAX=function(){var e=this.ptr;return Ne(e)},Object.defineProperty(Z_.prototype,"PE_UTM_MAX",{get:Z_.prototype.get_PE_UTM_MAX}),Z_.prototype.get_PE_PARM_MAX=Z_.prototype.get_PE_PARM_MAX=function(){var e=this.ptr;return he(e)},Object.defineProperty(Z_.prototype,"PE_PARM_MAX",{get:Z_.prototype.get_PE_PARM_MAX}),Z_.prototype.get_PE_TYPE_NONE=Z_.prototype.get_PE_TYPE_NONE=function(){var e=this.ptr;return le(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_NONE",{get:Z_.prototype.get_PE_TYPE_NONE}),Z_.prototype.get_PE_TYPE_GEOGCS=Z_.prototype.get_PE_TYPE_GEOGCS=function(){var e=this.ptr;return Me(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_GEOGCS",{get:Z_.prototype.get_PE_TYPE_GEOGCS}),Z_.prototype.get_PE_TYPE_PROJCS=Z_.prototype.get_PE_TYPE_PROJCS=function(){var e=this.ptr;return ve(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_PROJCS",{get:Z_.prototype.get_PE_TYPE_PROJCS}),Z_.prototype.get_PE_TYPE_GEOGTRAN=Z_.prototype.get_PE_TYPE_GEOGTRAN=function(){var e=this.ptr;return De(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_GEOGTRAN",{get:Z_.prototype.get_PE_TYPE_GEOGTRAN}),Z_.prototype.get_PE_TYPE_COORDSYS=Z_.prototype.get_PE_TYPE_COORDSYS=function(){var e=this.ptr;return Re(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_COORDSYS",{get:Z_.prototype.get_PE_TYPE_COORDSYS}),Z_.prototype.get_PE_TYPE_UNIT=Z_.prototype.get_PE_TYPE_UNIT=function(){var e=this.ptr;return Ae(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_UNIT",{get:Z_.prototype.get_PE_TYPE_UNIT}),Z_.prototype.get_PE_TYPE_LINUNIT=Z_.prototype.get_PE_TYPE_LINUNIT=function(){var e=this.ptr;return Ge(e)},Object.defineProperty(Z_.prototype,"PE_TYPE_LINUNIT",{get:Z_.prototype.get_PE_TYPE_LINUNIT}),Z_.prototype.get_PE_STR_OPTS_NONE=Z_.prototype.get_PE_STR_OPTS_NONE=function(){var e=this.ptr;return Ce(e)},Object.defineProperty(Z_.prototype,"PE_STR_OPTS_NONE",{get:Z_.prototype.get_PE_STR_OPTS_NONE}),Z_.prototype.get_PE_STR_AUTH_NONE=Z_.prototype.get_PE_STR_AUTH_NONE=function(){var e=this.ptr;return Ie(e)},Object.defineProperty(Z_.prototype,"PE_STR_AUTH_NONE",{get:Z_.prototype.get_PE_STR_AUTH_NONE}),Z_.prototype.get_PE_STR_AUTH_TOP=Z_.prototype.get_PE_STR_AUTH_TOP=function(){var e=this.ptr;return je(e)},Object.defineProperty(Z_.prototype,"PE_STR_AUTH_TOP",{get:Z_.prototype.get_PE_STR_AUTH_TOP}),Z_.prototype.get_PE_STR_NAME_CANON=Z_.prototype.get_PE_STR_NAME_CANON=function(){var e=this.ptr;return Ue(e)},Object.defineProperty(Z_.prototype,"PE_STR_NAME_CANON",{get:Z_.prototype.get_PE_STR_NAME_CANON}),Z_.prototype.get_PE_STR_FMT_WKT=Z_.prototype.get_PE_STR_FMT_WKT=function(){var e=this.ptr;return Le(e)},Object.defineProperty(Z_.prototype,"PE_STR_FMT_WKT",{get:Z_.prototype.get_PE_STR_FMT_WKT}),Z_.prototype.get_PE_STR_FMT_WKT2=Z_.prototype.get_PE_STR_FMT_WKT2=function(){var e=this.ptr;return Fe(e)},Object.defineProperty(Z_.prototype,"PE_STR_FMT_WKT2",{get:Z_.prototype.get_PE_STR_FMT_WKT2}),Z_.prototype.get_PE_PARM_X0=Z_.prototype.get_PE_PARM_X0=function(){var e=this.ptr;return we(e)},Object.defineProperty(Z_.prototype,"PE_PARM_X0",{get:Z_.prototype.get_PE_PARM_X0}),Z_.prototype.get_PE_PARM_ND=Z_.prototype.get_PE_PARM_ND=function(){var e=this.ptr;return Ye(e)},Object.defineProperty(Z_.prototype,"PE_PARM_ND",{get:Z_.prototype.get_PE_PARM_ND}),Z_.prototype.get_PE_TRANSFORM_1_TO_2=Z_.prototype.get_PE_TRANSFORM_1_TO_2=function(){var e=this.ptr;return xe(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_1_TO_2",{get:Z_.prototype.get_PE_TRANSFORM_1_TO_2}),Z_.prototype.get_PE_TRANSFORM_2_TO_1=Z_.prototype.get_PE_TRANSFORM_2_TO_1=function(){var e=this.ptr;return He(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_2_TO_1",{get:Z_.prototype.get_PE_TRANSFORM_2_TO_1}),Z_.prototype.get_PE_TRANSFORM_P_TO_G=Z_.prototype.get_PE_TRANSFORM_P_TO_G=function(){var e=this.ptr;return Xe(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_P_TO_G",{get:Z_.prototype.get_PE_TRANSFORM_P_TO_G}),Z_.prototype.get_PE_TRANSFORM_G_TO_P=Z_.prototype.get_PE_TRANSFORM_G_TO_P=function(){var e=this.ptr;return ze(e)},Object.defineProperty(Z_.prototype,"PE_TRANSFORM_G_TO_P",{get:Z_.prototype.get_PE_TRANSFORM_G_TO_P}),Z_.prototype.get_PE_HORIZON_RECT=Z_.prototype.get_PE_HORIZON_RECT=function(){var e=this.ptr;return Ze(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_RECT",{get:Z_.prototype.get_PE_HORIZON_RECT}),Z_.prototype.get_PE_HORIZON_POLY=Z_.prototype.get_PE_HORIZON_POLY=function(){var e=this.ptr;return We(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_POLY",{get:Z_.prototype.get_PE_HORIZON_POLY}),Z_.prototype.get_PE_HORIZON_LINE=Z_.prototype.get_PE_HORIZON_LINE=function(){var e=this.ptr;return Be(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_LINE",{get:Z_.prototype.get_PE_HORIZON_LINE}),Z_.prototype.get_PE_HORIZON_DELTA=Z_.prototype.get_PE_HORIZON_DELTA=function(){var e=this.ptr;return Ke(e)},Object.defineProperty(Z_.prototype,"PE_HORIZON_DELTA",{get:Z_.prototype.get_PE_HORIZON_DELTA}),W_.prototype=Object.create(j_.prototype),W_.prototype.constructor=W_,W_.prototype.__class__=W_,W_.__cache__={},r.PeFactory=W_,W_.prototype.initialize=W_.prototype.initialize=function(e){var t=this.ptr;F_.prepare(),e=e&&"object"==typeof e?e.ptr:w_(e),Ve(t,e)},W_.prototype.factoryByType=W_.prototype.factoryByType=function(e,t){var _=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),L_(ke(_,e,t),x_)},W_.prototype.fromString=W_.prototype.fromString=function(e,t){var _=this.ptr;return F_.prepare(),e&&"object"==typeof e&&(e=e.ptr),t=t&&"object"==typeof t?t.ptr:w_(t),L_(qe(_,e,t),x_)},W_.prototype.getCode=W_.prototype.getCode=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),Je(t,e)},B_.prototype=Object.create(j_.prototype),B_.prototype.constructor=B_,B_.prototype.__class__=B_,B_.__cache__={},r.PeGCSExtent=B_,B_.prototype.getLLon=B_.prototype.getLLon=function(){var e=this.ptr;return Qe(e)},B_.prototype.getSLat=B_.prototype.getSLat=function(){var e=this.ptr;return et(e)},B_.prototype.getRLon=B_.prototype.getRLon=function(){var e=this.ptr;return tt(e)},B_.prototype.getNLat=B_.prototype.getNLat=function(){var e=this.ptr;return _t(e)},B_.prototype.__destroy__=B_.prototype.__destroy__=function(){var e=this.ptr;rt(e)},K_.prototype=Object.create(H_.prototype),K_.prototype.constructor=K_,K_.prototype.__class__=K_,K_.__cache__={},r.PeGeogcs=K_,K_.prototype.getDatum=K_.prototype.getDatum=function(){var e=this.ptr;return L_(ot(e),z_)},K_.prototype.getPrimem=K_.prototype.getPrimem=function(){var e=this.ptr;return L_(nt(e),or)},K_.prototype.getUnit=K_.prototype.getUnit=function(){var e=this.ptr;return L_(pt(e),ir)},K_.prototype.getCode=K_.prototype.getCode=function(){var e=this.ptr;return it(e)},K_.prototype.getName=K_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(ct(t,e))},K_.prototype.getType=K_.prototype.getType=function(){var e=this.ptr;return st(e)},V_.prototype=Object.create(x_.prototype),V_.prototype.constructor=V_,V_.prototype.__class__=V_,V_.__cache__={},r.PeGeogtran=V_,V_.prototype.isEqual=V_.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!Pt(t,e)},V_.prototype.getGeogcs1=V_.prototype.getGeogcs1=function(){var e=this.ptr;return L_(at(e),K_)},V_.prototype.getGeogcs2=V_.prototype.getGeogcs2=function(){var e=this.ptr;return L_(gt(e),K_)},V_.prototype.getParameters=V_.prototype.getParameters=function(){var e=this.ptr;return yt(e)},V_.prototype.loadConstants=V_.prototype.loadConstants=function(){var e=this.ptr;return!!dt(e)},V_.prototype.getCode=V_.prototype.getCode=function(){var e=this.ptr;return ut(e)},V_.prototype.getName=V_.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(ft(t,e))},V_.prototype.getType=V_.prototype.getType=function(){var e=this.ptr;return Et(e)},k_.prototype=Object.create(j_.prototype),k_.prototype.constructor=k_,k_.prototype.__class__=k_,k_.__cache__={},r.PeGTlistExtended=k_,k_.prototype.getGTlist=k_.prototype.getGTlist=function(e,t,_,r,o,n){var p=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),L_(bt(p,e,t,_,r,o,n),q_)},k_.prototype.get_PE_GTLIST_OPTS_COMMON=k_.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var e=this.ptr;return mt(e)},Object.defineProperty(k_.prototype,"PE_GTLIST_OPTS_COMMON",{get:k_.prototype.get_PE_GTLIST_OPTS_COMMON}),q_.prototype=Object.create(j_.prototype),q_.prototype.constructor=q_,q_.prototype.__class__=q_,q_.__cache__={},r.PeGTlistExtendedEntry=q_,q_.prototype.getEntries=q_.prototype.getEntries=function(){var e=this.ptr;return L_(Tt(e),J_)},q_.prototype.getSteps=q_.prototype.getSteps=function(){var e=this.ptr;return Ot(e)},q_.prototype.Delete=q_.prototype.Delete=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),St(t,e)},J_.prototype=Object.create(j_.prototype),J_.prototype.constructor=J_,J_.prototype.__class__=J_,J_.__cache__={},r.PeGTlistExtendedGTs=J_,J_.prototype.getDirection=J_.prototype.getDirection=function(){var e=this.ptr;return Nt(e)},J_.prototype.getGeogtran=J_.prototype.getGeogtran=function(){var e=this.ptr;return L_(ht(e),V_)},$_.prototype=Object.create(j_.prototype),$_.prototype.constructor=$_,$_.prototype.__class__=$_,$_.__cache__={},r.PeHorizon=$_,$_.prototype.getNump=$_.prototype.getNump=function(){var e=this.ptr;return lt(e)},$_.prototype.getKind=$_.prototype.getKind=function(){var e=this.ptr;return Mt(e)},$_.prototype.getInclusive=$_.prototype.getInclusive=function(){var e=this.ptr;return vt(e)},$_.prototype.getSize=$_.prototype.getSize=function(){var e=this.ptr;return Dt(e)},$_.prototype.getCoord=$_.prototype.getCoord=function(){var e=this.ptr;return Rt(e)},Q_.prototype=Object.create(j_.prototype),Q_.prototype.constructor=Q_,Q_.prototype.__class__=Q_,Q_.__cache__={},r.PeInteger=Q_,Q_.prototype.get_val=Q_.prototype.get_val=function(){var e=this.ptr;return Gt(e)},Q_.prototype.set_val=Q_.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),Ct(t,e)},Object.defineProperty(Q_.prototype,"val",{get:Q_.prototype.get_val,set:Q_.prototype.set_val}),Q_.prototype.__destroy__=Q_.prototype.__destroy__=function(){var e=this.ptr;It(e)},er.prototype=Object.create(j_.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},r.PeNotationMgrs=er,er.prototype.get_PE_MGRS_STYLE_NEW=er.prototype.get_PE_MGRS_STYLE_NEW=function(){var e=this.ptr;return jt(e)},Object.defineProperty(er.prototype,"PE_MGRS_STYLE_NEW",{get:er.prototype.get_PE_MGRS_STYLE_NEW}),er.prototype.get_PE_MGRS_STYLE_OLD=er.prototype.get_PE_MGRS_STYLE_OLD=function(){var e=this.ptr;return Ut(e)},Object.defineProperty(er.prototype,"PE_MGRS_STYLE_OLD",{get:er.prototype.get_PE_MGRS_STYLE_OLD}),er.prototype.get_PE_MGRS_STYLE_AUTO=er.prototype.get_PE_MGRS_STYLE_AUTO=function(){var e=this.ptr;return Lt(e)},Object.defineProperty(er.prototype,"PE_MGRS_STYLE_AUTO",{get:er.prototype.get_PE_MGRS_STYLE_AUTO}),er.prototype.get_PE_MGRS_180_ZONE_1_PLUS=er.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var e=this.ptr;return Ft(e)},Object.defineProperty(er.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:er.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),er.prototype.get_PE_MGRS_ADD_SPACES=er.prototype.get_PE_MGRS_ADD_SPACES=function(){var e=this.ptr;return wt(e)},Object.defineProperty(er.prototype,"PE_MGRS_ADD_SPACES",{get:er.prototype.get_PE_MGRS_ADD_SPACES}),tr.prototype=Object.create(j_.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},r.PeNotationUtm=tr,tr.prototype.get_PE_UTM_OPTS_NONE=tr.prototype.get_PE_UTM_OPTS_NONE=function(){var e=this.ptr;return Yt(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_NONE",{get:tr.prototype.get_PE_UTM_OPTS_NONE}),tr.prototype.get_PE_UTM_OPTS_NS=tr.prototype.get_PE_UTM_OPTS_NS=function(){var e=this.ptr;return xt(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_NS",{get:tr.prototype.get_PE_UTM_OPTS_NS}),tr.prototype.get_PE_UTM_OPTS_NS_STRICT=tr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var e=this.ptr;return Ht(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:tr.prototype.get_PE_UTM_OPTS_NS_STRICT}),tr.prototype.get_PE_UTM_OPTS_ADD_SPACES=tr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var e=this.ptr;return Xt(e)},Object.defineProperty(tr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:tr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),_r.prototype=Object.create(x_.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},r.PeParameter=_r,_r.prototype.getValue=_r.prototype.getValue=function(){var e=this.ptr;return zt(e)},_r.prototype.getCode=_r.prototype.getCode=function(){var e=this.ptr;return Zt(e)},_r.prototype.getName=_r.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(Wt(t,e))},_r.prototype.getType=_r.prototype.getType=function(){var e=this.ptr;return Bt(e)},rr.prototype=Object.create(j_.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},r.PePCSInfo=rr,rr.prototype.getCentralMeridian=rr.prototype.getCentralMeridian=function(){var e=this.ptr;return Kt(e)},rr.prototype.getDomainMinx=rr.prototype.getDomainMinx=function(){var e=this.ptr;return Vt(e)},rr.prototype.getDomainMiny=rr.prototype.getDomainMiny=function(){var e=this.ptr;return kt(e)},rr.prototype.getDomainMaxx=rr.prototype.getDomainMaxx=function(){var e=this.ptr;return qt(e)},rr.prototype.getDomainMaxy=rr.prototype.getDomainMaxy=function(){var e=this.ptr;return Jt(e)},rr.prototype.getNorthPoleLocation=rr.prototype.getNorthPoleLocation=function(){var e=this.ptr;return $t(e)},rr.prototype.getNorthPoleGeometry=rr.prototype.getNorthPoleGeometry=function(){var e=this.ptr;return Qt(e)},rr.prototype.getSouthPoleLocation=rr.prototype.getSouthPoleLocation=function(){var e=this.ptr;return e_(e)},rr.prototype.getSouthPoleGeometry=rr.prototype.getSouthPoleGeometry=function(){var e=this.ptr;return t_(e)},rr.prototype.isDensificationNeeded=rr.prototype.isDensificationNeeded=function(){var e=this.ptr;return!!__(e)},rr.prototype.isGcsHorizonMultiOverlap=rr.prototype.isGcsHorizonMultiOverlap=function(){var e=this.ptr;return!!r_(e)},rr.prototype.isPannableRectangle=rr.prototype.isPannableRectangle=function(){var e=this.ptr;return!!o_(e)},rr.prototype.generate=rr.prototype.generate=function(e,t){var _=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),L_(n_(_,e,t),rr)},rr.prototype.get_PE_PCSINFO_OPTION_NONE=rr.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var e=this.ptr;return p_(e)},Object.defineProperty(rr.prototype,"PE_PCSINFO_OPTION_NONE",{get:rr.prototype.get_PE_PCSINFO_OPTION_NONE}),rr.prototype.get_PE_PCSINFO_OPTION_DOMAIN=rr.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var e=this.ptr;return i_(e)},Object.defineProperty(rr.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:rr.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),rr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=rr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var e=this.ptr;return c_(e)},Object.defineProperty(rr.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:rr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),rr.prototype.get_PE_POLE_POINT=rr.prototype.get_PE_POLE_POINT=function(){var e=this.ptr;return s_(e)},Object.defineProperty(rr.prototype,"PE_POLE_POINT",{get:rr.prototype.get_PE_POLE_POINT}),or.prototype=Object.create(x_.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},r.PePrimem=or,or.prototype.getLongitude=or.prototype.getLongitude=function(){var e=this.ptr;return P_(e)},or.prototype.getCode=or.prototype.getCode=function(){var e=this.ptr;return a_(e)},or.prototype.getName=or.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(g_(t,e))},or.prototype.getType=or.prototype.getType=function(){var e=this.ptr;return y_(e)},nr.prototype=Object.create(H_.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},r.PeProjcs=nr,nr.prototype.getGeogcs=nr.prototype.getGeogcs=function(){var e=this.ptr;return L_(d_(e),K_)},nr.prototype.getParameters=nr.prototype.getParameters=function(){var e=this.ptr;return u_(e)},nr.prototype.getUnit=nr.prototype.getUnit=function(){var e=this.ptr;return L_(f_(e),ir)},nr.prototype.loadConstants=nr.prototype.loadConstants=function(){var e=this.ptr;return!!E_(e)},nr.prototype.horizonGcsGenerate=nr.prototype.horizonGcsGenerate=function(){var e=this.ptr;return L_(b_(e),$_)},nr.prototype.horizonPcsGenerate=nr.prototype.horizonPcsGenerate=function(){var e=this.ptr;return L_(m_(e),$_)},nr.prototype.getCode=nr.prototype.getCode=function(){var e=this.ptr;return T_(e)},nr.prototype.getName=nr.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(O_(t,e))},nr.prototype.getType=nr.prototype.getType=function(){var e=this.ptr;return S_(e)},pr.prototype=Object.create(x_.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},r.PeSpheroid=pr,pr.prototype.getAxis=pr.prototype.getAxis=function(){var e=this.ptr;return N_(e)},pr.prototype.getFlattening=pr.prototype.getFlattening=function(){var e=this.ptr;return h_(e)},pr.prototype.getCode=pr.prototype.getCode=function(){var e=this.ptr;return l_(e)},pr.prototype.getName=pr.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(M_(t,e))},pr.prototype.getType=pr.prototype.getType=function(){var e=this.ptr;return v_(e)},ir.prototype=Object.create(x_.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},r.PeUnit=ir,ir.prototype.getUnitFactor=ir.prototype.getUnitFactor=function(){var e=this.ptr;return D_(e)},ir.prototype.getCode=ir.prototype.getCode=function(){var e=this.ptr;return R_(e)},ir.prototype.getName=ir.prototype.getName=function(e){var t=this.ptr;return F_.prepare(),"object"==typeof e&&(e=Y_(e)),Z(A_(t,e))},ir.prototype.getType=ir.prototype.getType=function(){var e=this.ptr;return G_(e)},cr.prototype=Object.create(j_.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},r.PeVersion=cr,cr.prototype.version_string=cr.prototype.version_string=function(){var e=this.ptr;return Z(C_(e))},r.ensureCache=F_,r.ensureString=w_,r.ensureInt8=Y_,r.ensureInt16=function(e){if("object"==typeof e){var t=F_.alloc(e,S);return F_.copy(e,S,t),t}return e},r.ensureInt32=function(e){if("object"==typeof e){var t=F_.alloc(e,N);return F_.copy(e,N,t),t}return e},r.ensureFloat32=function(e){if("object"==typeof e){var t=F_.alloc(e,l);return F_.copy(e,l,t),t}return e},r.ensureFloat64=function(e){if("object"==typeof e){var t=F_.alloc(e,M);return F_.copy(e,M,t),t}return e},e.ready},r.exports=n;var c=i.exports;const s=function(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,p.g)(c)},[c])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3597],{90578:(e,t,r)=>{r.d(t,{p:()=>l});var s=r(75215),n=r(7628);const i=Object.prototype.toString;function o(e){const t="__accessorMetadata__"in e?(0,s.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,s){(0,n.Oe)(e,t).cast=s}function l(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===i.call(e[0])?o(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,n.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},71715:(e,t,r)=>{r.d(t,{r:()=>n});var s=r(5600);function n(e,t,r){let n,i;return void 0===t||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const o=e.constructor.prototype;n.forEach((n=>{const a=(0,s.CJ)(e,n,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))}))}}},74085:(e,t,r)=>{function s(e){}r.d(t,{Bg:()=>s}),r(80442)},45091:(e,t,r)=>{r.d(t,{Z:()=>c});var s,n,i=r(80442),o=r(71143);(n=s||(s={}))[n.varint=0]="varint",n[n.fixed64=1]="fixed64",n[n.delimited=2]="delimited",n[n.fixed32=5]="fixed32",n[n.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,i.Z)("safari")||(0,i.Z)("ios")?6:(0,i.Z)("ff")?12:32;class c{constructor(e,t,r=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=s.unknown,this._init(e,t,r,n)}_init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case s.varint:this._decodeVarint();break;case s.fixed64:this._skip(8);break;case s.delimited:this._skip(this._getLength());break;case s.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,s=0;if(this._end-t>=10)do{if(s=e[t++],r|=127&s,0==(128&s))break;if(s=e[t++],r|=(127&s)<<7,0==(128&s))break;if(s=e[t++],r|=(127&s)<<14,0==(128&s))break;if(s=e[t++],r|=(127&s)<<21,0==(128&s))break;if(s=e[t++],r+=268435456*(127&s),0==(128&s))break;if(s=e[t++],r+=34359738368*(127&s),0==(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),0==(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),0==(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),0==(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),0==(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],0!=(128&s));)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,s=0;const n=1&e[this._pos];if(s=e[this._pos++],r|=127&s,0==(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<7,0==(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<14,0==(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<21,0==(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=268435456*(127&s),0==(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=34359738368*(127&s),0==(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=4398046511104*(127&s),0==(128&s))return n?-(r+1)/2:r/2;if(t=BigInt(r),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),0==(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),0==(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),0==(128&s))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==s.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const s=e.subarray(t,r);return l.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new o.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},9361:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),n=r(96674),i=r(5600),o=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),l=r(82971);let u=class extends n.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=l.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof l.Z)return e;if(null!=e){const r=new l.Z;return r.read(e,t),r}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,s._)([(0,i.Cb)()],u.prototype,"type",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,s._)([(0,i.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,s._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,s._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,s._)([(0,i.Cb)({type:l.Z,json:{write:!0},value:l.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,s._)([(0,o.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,s._)([(0,a.j)("esri.geometry.Geometry")],u);const c=u},94139:(e,t,r)=>{r.d(t,{Z:()=>b});var s,n=r(43697),i=r(92604),o=r(5600),a=r(90578),l=(r(67676),r(80442),r(71715)),u=r(52011),c=r(30556),h=r(75215),p=r(9361),d=r(82971),y=r(8744),f=r(40488);const g=[0,0];function m(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let _=s=class extends p.Z{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 r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.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,r,s,n){let o;if(Array.isArray(e))o=e,n=t,e=o[0],t=o[1],r=o[2],s=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,r=o.z,s=o.m,(n=o.spatialReference)&&"esri.geometry.SpatialReference"!==n.declaredClass&&(n=new d.Z(n)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)i.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)i.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&n&&n.isWebMercator){const r=(0,f.hG)(o.longitude,o.latitude,g);e=r[0],t=r[1]}}else m(r)?(n=r,r=null):m(s)&&(n=s,s=null);const a={x:e,y:t};return null==a.x&&null!=a.y?i.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&i.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=n&&(a.spatialReference=n),null!=r&&(a.z=r),null!=s&&(a.m=s),a}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(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return(0,f.R6)(t,r,g)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,f.hG)(r,e,g)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return(0,f.R6)(e,t,g)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,f.hG)(e,t,g)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new s;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 s.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:s,m:n,spatialReference:i}=this,{z:o,m:a}=e;let{x:l,y:u,spatialReference:c}=e;if(!i.equals(c))if(i.isWebMercator&&c.isWGS84)[l,u]=(0,f.hG)(l,u),c=i;else{if(!i.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,f.R6)(l,u),c=i}return t===l&&r===u&&s===o&&n===a&&i.wkid===c.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,y.C5)(this.spatialReference);if(!e)return this;let t=this.x;const[r,s]=e.valid,n=2*s;let i;return t>s?(i=Math.ceil(Math.abs(t-s)/n),t-=i*n):t<r&&(i=Math.ceil(Math.abs(t-r)/n),t+=i*n),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,s=e.y-t.y,n=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+s*s+n*n)}(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,n._)([(0,o.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],_.prototype,"hasM",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],_.prototype,"hasZ",null),(0,n._)([(0,o.Cb)({type:Number})],_.prototype,"latitude",null),(0,n._)([(0,o.Cb)({type:Number})],_.prototype,"longitude",null),(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((e=>isNaN(e)?e:(0,h.q9)(e)))],_.prototype,"x",void 0),(0,n._)([(0,c.c)("x")],_.prototype,"writeX",null),(0,n._)([(0,l.r)("x")],_.prototype,"readX",null),(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],_.prototype,"y",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],_.prototype,"z",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],_.prototype,"m",void 0),_=s=(0,n._)([(0,u.j)("esri.geometry.Point")],_),_.prototype.toJSON.isDefaultToJSON=!0;const b=_},62155:(e,t,r)=>{var s;r.d(t,{R:()=>s}),function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"}(s||(s={}))},33955:(e,t,r)=>{r.d(t,{Ji:()=>f,YX:()=>u,aW:()=>c,im:()=>y,l9:()=>p,oU:()=>d,q9:()=>m,wp:()=>h});var s=r(6570),n=r(9361),i=r(65091),o=r(94139),a=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function y(e){return null==e?null:e instanceof n.Z?e:h(e)?o.Z.fromJSON(e):p(e)?l.Z.fromJSON(e):d(e)?a.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):u(e)?s.Z.fromJSON(e):null}function f(e){return e?h(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:i.Z};function m(e){return e&&g[e]||null}},82397:(e,t,r)=>{r.d(t,{G6:()=>f,Ie:()=>y,J9:()=>p,RF:()=>h,U1:()=>d,vY:()=>o}),r(33955);const s=(e,t,r)=>[t,r],n=(e,t,r)=>[t,r,e[2]],i=(e,t,r)=>[t,r,e[2],e[3]];function o(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function l({scale:e,translate:t},r){return t[1]-r*e[1]}function u(e,t,r){const s=new Array(r.length);if(!r.length)return s;const[n,i]=e.scale;let o=a(e,r[0][0]),u=l(e,r[0][1]);s[0]=t(r[0],o,u);for(let e=1;e<r.length;e++){const a=r[e];o+=a[0]*n,u-=a[1]*i,s[e]=t(a,o,u)}return s}function c(e,t,r){const s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=u(e,t,r[n]);return s}function h(e,t,r,s,n){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(s&&(t.z=r.z),n&&(t.m=r.m)),t}function p(e,t,r,o,a){return null!=r&&(t.points=function(e,t,r,o){return u(e,r?o?i:n:o?n:s,t)}(e,r.points,o,a)),t}function d(e,t,r,s,n){return null==r||(t.x=a(e,r.x),t.y=l(e,r.y),t!==r&&(s&&(t.z=r.z),n&&(t.m=r.m))),t}function y(e,t,r,o,a){return null!=r&&(t.rings=function(e,t,r,o){return c(e,r?o?i:n:o?n:s,t)}(e,r.rings,o,a)),t}function f(e,t,r,o,a){return null!=r&&(t.paths=function(e,t,r,o){return c(e,r?o?i:n:o?n:s,t)}(e,r.paths,o,a)),t}},86973:(e,t,r)=>{r.d(t,{M:()=>n,P:()=>i});var s=r(35454);const n=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40488:(e,t,r)=>{r.d(t,{$:()=>b,Q8:()=>f,R6:()=>_,Sx:()=>w,hG:()=>m,iV:()=>g,mZ:()=>h});var s=r(22974),n=r(82971),i=r(68441),o=r(8744);const a=57.29577951308232,l=.017453292519943;function u(e){return e*a}function c(e){return e*l}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/i.sv.radius))}function p(e){return null!=e.wkid||null!=e.wkt}const d=[0,0];function y(e,t,r,s,n){const i=e,o=n;if(o.spatialReference=r,"x"in i&&"x"in o)[o.x,o.y]=t(i.x,i.y,d,s);else if("xmin"in i&&"xmin"in o)[o.xmin,o.ymin]=t(i.xmin,i.ymin,d,s),[o.xmax,o.ymax]=t(i.xmax,i.ymax,d,s);else if("paths"in i&&"paths"in o||"rings"in i&&"rings"in o){const e="paths"in i?i.paths:i.rings,r=[];let n;for(let i=0;i<e.length;i++){const o=e[i];n=[],r.push(n);for(let e=0;e<o.length;e++)n.push(t(o[e][0],o[e][1],[0,0],s)),o[e].length>2&&n[e].push(o[e][2]),o[e].length>3&&n[e].push(o[e][3])}"paths"in o?o.paths=r:o.rings=r}else if("points"in i&&"points"in o){const e=i.points,r=[];for(let n=0;n<e.length;n++)r[n]=t(e[n][0],e[n][1],[0,0],s),e[n].length>2&&r[n].push(e[n][2]),e[n].length>3&&r[n].push(e[n][3]);o.points=r}return n}function f(e,t){const r=e&&(p(e)?e:e.spatialReference),s=t&&(p(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!s)&&(!!(0,o.fS)(s,r)||(0,o.sS)(s)&&(0,o.oR)(r)||(0,o.sS)(r)&&(0,o.oR)(s))}function g(e,t){if(null==e)return null;const r=e.spatialReference,i=t&&(p(t)?t:t.spatialReference);return f(r,i)?(0,o.fS)(r,i)?(0,s.d9)(e):(0,o.sS)(i)?y(e,m,n.Z.WebMercator,!1,(0,s.d9)(e)):(0,o.oR)(i)?y(e,_,n.Z.WGS84,!1,(0,s.d9)(e)):null:null}function m(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const s=c(t);return r[0]=c(e)*i.sv.radius,r[1]=i.sv.halfSemiMajorAxis*Math.log((1+Math.sin(s))/(1-Math.sin(s))),r}function _(e,t,r=[0,0],s=!1){const n=u(e/i.sv.radius);return r[0]=s?n:n-360*Math.floor((n+180)/360),r[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/i.sv.radius))),r}function b(e,t=!1,r=(0,s.d9)(e)){return y(e,m,n.Z.WebMercator,t,r)}function w(e,t=!1,r=(0,s.d9)(e)){return y(e,_,n.Z.WGS84,t,r)}},69285:(e,t,r)=>{r.d(t,{k:()=>o});var s=r(67900),n=r(2109),i=r(8744);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,i.fS)(t,r)||(0,n.oe)(t)||(0,n.oe)(r))return null;const o=(0,s._R)(t)/(0,s._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var s,n=r(43697),i=r(35454),o=r(96674),a=r(5600),l=r(75215),u=(r(67676),r(80442),r(36030)),c=r(71715),h=r(52011),p=r(72729),d=r(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=s=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.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,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,c.r)("description")],f.prototype,"readDescription",null),(0,n._)([(0,a.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],f.prototype,"domain",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],f.prototype,"length",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n._)([(0,u.J)(d.v)],f.prototype,"type",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"valueType",void 0),(0,n._)([(0,c.r)("valueType",["description"])],f.prototype,"readValueType",null),(0,n._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=s=(0,n._)([(0,h.j)("esri.layers.support.Field")],f);const g=f},72729:(e,t,r)=>{r.d(t,{im:()=>T,V5:()=>x}),r(80442);var s,n=r(43697),i=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let c=s=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=s=(0,n._)([(0,l.j)("esri.layers.support.CodedValue")],c);const h=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,a.J)(h)],p.prototype,"type",void 0),p=(0,n._)([(0,l.j)("esri.layers.support.Domain")],p);const d=p;var y;let f=y=class extends d{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,o.Cb)({type:[c],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,n._)([(0,a.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=y=(0,n._)([(0,l.j)("esri.layers.support.CodedValueDomain")],f);const g=f;var m;r(92604),r(20102);let _=m=class extends d{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,n._)([(0,a.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,n._)([(0,l.j)("esri.layers.support.InheritedDomain")],_);const b=_;var w;let v=w=class extends d{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],v.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],v.prototype,"minValue",void 0),(0,n._)([(0,a.J)({range:"range"})],v.prototype,"type",void 0),v=w=(0,n._)([(0,l.j)("esri.layers.support.RangeDomain")],v);const k=v,x={key:"type",base:d,typeMap:{range:v,"coded-value":g,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return k.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>s});const s=new(r(35454).X)({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"})},77863:(e,t,r)=>{r.d(t,{G$:()=>x,K9:()=>R,wn:()=>_});var s=r(20102),n=r(45091),i=r(5428),o=r(78760);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function h(e){return e>=l.length?null:l[e]}function p(e){return e>=u.length?null:u[e]}function d(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const s=e.asUnsafe(),n=t.createPointGeometry(r);for(;s.next();)switch(s.tag()){case 3:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addCoordinatePoint(n,s.getSInt64(),i++);break}default:s.skip()}return n}function f(e,t,r){const s=e.asUnsafe(),n=t.createGeometry(r),i=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;s.next();)switch(s.tag()){case 2:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addLength(n,s.getUInt32(),i++);break}case 3:{const e=s.getUInt32(),r=s.pos()+e;let o=0;for(t.allocateCoordinates(n);s.pos()<r;)t.addCoordinate(n,s.getSInt64(),o),o++,o===i&&(o=0);break}default:s.skip()}return n}function g(e){const t=e.asUnsafe(),r=new i.Z;let s="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.coords.push(t.getSInt64());break}case 1:s=o.S[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:s}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:c(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(f,t,r);break;case 4:n.centroid=e.processMessageWithArgs(y,t,r);break;default:e.skip()}return n}function v(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function k(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function x(e){const t={originPosition:p(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=p(r.getEnum());break;case 2:t.scale=r.processMessage(v);break;case 3:t.translate=r.processMessage(k);break;default:r.skip()}return t}function T(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function S(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function C(e,t){const r=t.createFeatureResult(),s=e.asUnsafe();r.geometryType=d(t,0);let n=!1;for(;s.next();)switch(s.tag()){case 1:r.objectIdFieldName=s.getString();break;case 3:r.globalIdFieldName=s.getString();break;case 4:r.geohashFieldName=s.getString();break;case 5:r.geometryProperties=s.processMessage(T);break;case 7:r.geometryType=d(t,s.getEnum());break;case 8:r.spatialReference=s.processMessageWithArgs(S,t);break;case 10:r.hasZ=s.getBool();break;case 11:r.hasM=s.getBool();break;case 12:r.transform=s.processMessage(x);break;case 9:r.exceededTransferLimit=s.getBool();break;case 13:t.addField(r,s.processMessage(_));break;case 15:n||(t.prepareFeatures(r),n=!0),t.addFeature(r,s.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=s.processMessage(b);break;default:s.skip()}return t.finishFeatureResult(r),r}function G(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(g);break;case 1:r.featureResult=e.processMessageWithArgs(C,t);break;default:e.skip()}return null!=s&&r.featureResult&&t.addQueryGeometry(r,s),r}function R(e,t){try{const r=2,s=new n.Z(new Uint8Array(e),new DataView(e)),i={};for(;s.next();)s.tag()===r?i.queryResult=s.processMessageWithArgs(G,t):s.skip();return i}catch(e){throw new s.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,r)=>{r.d(t,{J:()=>u,S:()=>l});var s=r(67900),n=r(8744),i=r(70272),o=r(44876),a=r(5428);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.fS)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s._R)(this._options.sourceSpatialReference)/(0,s._R)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.S6)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.u_}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.Z}}},45178:(e,t,r)=>{r.d(t,{C:()=>n});var s=r(77863);function n(e,t){const r=(0,s.K9)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},61916:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var s=r(74085),n=r(99001),i=r(82971),o=r(69285),a=(r(80442),r(1533),r(60437),r(24470),r(82397),r(86973),r(1231));r(8744);class l{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var c=r(98732);function h(e,t){return t}function p(e,t,r,s){switch(r){case 0:return g(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?g(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function d(e,t,r,s){return 2===r?g(e,t,2):p(e,t,r,s)}function y(e,t,r,s){return 2===r?g(e,t,3):p(e,t,r,s)}function f(e,t,r,s){return 3===r?g(e,t,3):d(e,t,r,s)}function g({translate:e,scale:t},r,s){return e[s]+r*t[s]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return new u}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,o.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return new i.Z}addField(e,t){e.fields.push(a.Z.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength??0;if(r>0)for(const e in t.attributes){const s=t.attributes[e];"string"==typeof s&&s.length>r&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,n=(0,c.$g)(r.clone(),r,!1,!1,this._transform),i=(0,c.di)(n,s,!1,!1);let o=null;switch(s){case"esriGeometryPoint":o="point";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryMultipoint":o="multipoint"}i.type=o,e.queryGeometryType=s,e.queryGeometry=i}prepareFeatures(e){switch(this._transform=e.transform??null,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,s.Bg)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l((0,n.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=this._transform?this._applyTransform(this._transform,t,r,0):t;if(null!=s)switch(r){case 0:e.x=s;break;case 1:e.y=s;break;case 2:e.hasZ?e.z=s:e.m=s;break;case 3:e.m=s}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._transform?this._applyTransform(this._transform,e,t,r):e}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),n=e[e.length-1],i=this._coordinateBuffer;if(i){if(0===r){const e=this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT;n.push(new Float64Array(i.buffer,e,this._vertexDimension))}i[this._coordinateBufferPtr++]=s}}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?f:t?d:r?y:p}}var _=r(45178);class b{_parseFeatureQuery(e){const t=(0,_.C)(e.buffer,new m(e.options)),r={...t,spatialReference:t.spatialReference?.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(r)}}function w(){return new b}}}]);