@arcgis/core 4.27.0-next.20230521 → 4.27.0-next.20230523

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 (268) hide show
  1. package/Graphic.js +1 -1
  2. package/WebMap.js +1 -1
  3. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  4. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  5. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  6. package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
  7. package/arcade/functions/featuresetbase.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/030b43764f945cb1f8b0.js +1 -0
  10. package/assets/esri/core/workers/chunks/0d02856e55d20b99fc8b.js +1 -0
  11. package/assets/esri/core/workers/chunks/{69242c66492717c7388c.js → 0fcb8d408696075338e2.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{b91c155de9a89e4e6971.js → 187c3b971ed0fc4363ef.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{85c6ce93aa41e6b65997.js → 18db07d739a713cc0465.js} +1 -1
  14. package/assets/esri/core/workers/chunks/1b6177e23327be645c8c.js +1 -0
  15. package/assets/esri/core/workers/chunks/28286014a575042619ee.js +1 -0
  16. package/assets/esri/core/workers/chunks/{692dfeb2e255fdc0ade2.js → 39288fa69561d21f04f8.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2b9d3e60977934a6d471.js → 3bc6b5f0643364749ef8.js} +1 -1
  18. package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +1 -0
  19. package/assets/esri/core/workers/chunks/4d24efa01d1accc5a5f0.js +1 -0
  20. package/assets/esri/core/workers/chunks/{6312783626bacf52df7a.js → 55486c644e8b01326a0d.js} +1 -1
  21. package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +1 -0
  22. package/assets/esri/core/workers/chunks/{62d9d15f0d00a75da42c.js → 571dac507622948ac03e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/59063d6abf70f6598425.js +1 -0
  24. package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +1 -0
  25. package/assets/esri/core/workers/chunks/5bf04c32e0ac89dcbf9f.js +1 -0
  26. package/assets/esri/core/workers/chunks/6a3d611e8842afbb50ab.js +2 -0
  27. package/assets/esri/core/workers/chunks/{55ca6ba8b40921025181.js.LICENSE.txt → 6a3d611e8842afbb50ab.js.LICENSE.txt} +1 -1
  28. package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +1 -0
  29. package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +1 -0
  30. package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +1 -0
  31. package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +1 -0
  32. package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +1 -0
  33. package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +1 -0
  34. package/assets/esri/core/workers/chunks/{1edc5c06874cb12c5478.js → 924e4a18d8403d1caea3.js} +1 -1
  35. package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +1 -0
  36. package/assets/esri/core/workers/chunks/97cdbec7532cfcdf9ad2.js +1 -0
  37. package/assets/esri/core/workers/chunks/{f3f6035a17f7dcd19675.js → 9ab400a89dd701778d2c.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{1488b3d48232844b8bb4.js → 9fe349f43d5ff5a4ac2d.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{22396dd3717d17a5d235.js → a1c31bb8c12831539328.js} +1 -1
  40. package/assets/esri/core/workers/chunks/b0571b9e602218cdc7aa.js +1 -0
  41. package/assets/esri/core/workers/chunks/b1d88f8e528bf7092f35.js +1 -0
  42. package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +1 -0
  43. package/assets/esri/core/workers/chunks/{48abcb2d88f22e6e9fde.js → c2cb9fa18c77f0c5104e.js} +1 -1
  44. package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +1 -0
  45. package/assets/esri/core/workers/chunks/d08800a30b1227591986.js +1 -0
  46. package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +1 -0
  47. package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +1 -0
  48. package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +1 -0
  49. package/assets/esri/core/workers/chunks/{56fc7924b4fb30239c19.js → fdf58386a67e54c09bfb.js} +1 -1
  50. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  51. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  52. package/assets/esri/themes/base/_core.scss +2 -0
  53. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +86 -96
  54. package/assets/esri/themes/base/widgets/_FloorFilter.scss +6 -0
  55. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +40 -0
  56. package/assets/esri/themes/dark/main.css +1 -1
  57. package/assets/esri/themes/light/main.css +1 -1
  58. package/assets/esri/themes/light/view.css +1 -1
  59. package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
  60. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
  61. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  62. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  63. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  64. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  65. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  66. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  67. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  68. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  69. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  70. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  71. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  72. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  73. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  74. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  75. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  76. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  77. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  78. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  79. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  80. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  81. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  82. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  83. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  84. package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
  85. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  86. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  87. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  88. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  89. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  90. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  91. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  92. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  93. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  94. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  95. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  96. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  97. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  98. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  99. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  100. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  101. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  102. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
  103. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ar.json +1 -1
  104. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bg.json +1 -1
  105. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bs.json +1 -1
  106. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ca.json +1 -1
  107. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_cs.json +1 -1
  108. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_da.json +1 -1
  109. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_de.json +1 -1
  110. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_el.json +1 -1
  111. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
  112. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_es.json +1 -1
  113. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_et.json +1 -1
  114. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fi.json +1 -1
  115. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fr.json +1 -1
  116. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_he.json +1 -1
  117. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hr.json +1 -1
  118. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hu.json +1 -1
  119. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_id.json +1 -1
  120. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_it.json +1 -1
  121. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ja.json +1 -1
  122. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ko.json +1 -1
  123. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lt.json +1 -1
  124. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lv.json +1 -1
  125. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nb.json +1 -1
  126. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nl.json +1 -1
  127. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pl.json +1 -1
  128. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-BR.json +1 -1
  129. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-PT.json +1 -1
  130. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ro.json +1 -1
  131. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ru.json +1 -1
  132. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sk.json +1 -1
  133. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sl.json +1 -1
  134. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sr.json +1 -1
  135. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sv.json +1 -1
  136. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_th.json +1 -1
  137. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_tr.json +1 -1
  138. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_uk.json +1 -1
  139. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_vi.json +1 -1
  140. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-CN.json +1 -1
  141. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-HK.json +1 -1
  142. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-TW.json +1 -1
  143. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  144. package/chunks/arcgis-knowledge-client-core.js +1 -1
  145. package/chunks/mat4.js +1 -1
  146. package/core/accessorSupport/write.js +1 -1
  147. package/core/fontUtils.js +1 -1
  148. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  149. package/geometry/Mesh.js +1 -1
  150. package/geometry/support/MeshGeoreferencedRelativeVertexSpace.d.ts +4 -0
  151. package/geometry/support/MeshGeoreferencedRelativeVertexSpace.js +5 -0
  152. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +4 -0
  153. package/geometry/support/MeshGeoreferencedVertexSpace.js +5 -0
  154. package/geometry/support/MeshLocalVertexSpace.d.ts +4 -0
  155. package/geometry/support/MeshLocalVertexSpace.js +5 -0
  156. package/geometry/support/MeshTransform.d.ts +4 -0
  157. package/geometry/support/MeshTransform.js +1 -1
  158. package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
  159. package/geometry/support/meshUtils/centerAt.js +1 -1
  160. package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
  161. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  162. package/geometry/support/meshUtils/geographicUtils.js +1 -1
  163. package/geometry/support/meshUtils/georeference.js +1 -1
  164. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  165. package/geometry/support/meshUtils/merge.js +1 -1
  166. package/geometry/support/meshUtils/offset.js +1 -1
  167. package/geometry/support/meshUtils/primitives.js +1 -1
  168. package/geometry/support/meshUtils/rotate.js +1 -1
  169. package/geometry/support/meshUtils/scale.js +1 -1
  170. package/interfaces.d.ts +227 -25
  171. package/layers/LinkChartLayer.js +1 -1
  172. package/layers/VoxelWasmPerSceneView.js +1 -1
  173. package/layers/graphics/data/attributeSupport.js +1 -1
  174. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  175. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  176. package/layers/knowledgeGraph/SessionMemoryStorage.js +1 -1
  177. package/layers/support/SubtypeSublayer.js +1 -1
  178. package/layers/support/rasterFunctions/BandArithmeticFunction.js +1 -1
  179. package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
  180. package/layers/support/rasterFunctions/CompositeBandFunction.js +1 -1
  181. package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
  182. package/layers/support/rasterFunctions/ExtractBandFunctionArguments.js +1 -1
  183. package/layers/support/rasterFunctions/NDVIFunction.js +1 -1
  184. package/networks/support/TopologyValidationJobInfo.js +1 -1
  185. package/package.json +2 -2
  186. package/popup/FieldInfo.js +1 -1
  187. package/portal/Portal.js +1 -1
  188. package/rest/support/FeatureSet.js +1 -1
  189. package/rest/support/meshFeatureSet.js +1 -1
  190. package/smartMapping/symbology/color.js +1 -1
  191. package/smartMapping/symbology/support/colors.js +1 -1
  192. package/support/revision.js +1 -1
  193. package/symbols/cim/cimAnalyzer.js +1 -1
  194. package/symbols/support/utils.js +1 -1
  195. package/views/2d/layers/StreamLayerView2D.js +1 -1
  196. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  197. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  198. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  199. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  200. package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
  201. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  202. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  203. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  204. package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
  205. package/views/3d/layers/StreamLayerView3D.js +1 -1
  206. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  207. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  208. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  209. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  210. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  211. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  212. package/views/3d/state/utils/navigationUtils.js +1 -1
  213. package/views/3d/support/DisplayQualityProfile.js +1 -1
  214. package/views/3d/support/QualitySettings.js +1 -1
  215. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  216. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  217. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  218. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  219. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  220. package/views/draw/DrawOperation.js +1 -1
  221. package/views/draw/support/helpMessageUtils.js +1 -1
  222. package/views/interactive/dragEventPipeline.js +1 -1
  223. package/views/layers/StreamLayerView.js +1 -1
  224. package/widgets/BasemapGallery/css.js +1 -1
  225. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  226. package/widgets/BasemapGallery.js +1 -1
  227. package/widgets/CoordinateConversion.js +1 -1
  228. package/widgets/Editor/EditorViewModel.js +1 -1
  229. package/widgets/Editor/Edits.js +1 -1
  230. package/widgets/Editor/Upload.js +1 -1
  231. package/widgets/Editor/workflowUtils.js +1 -1
  232. package/widgets/Editor.js +1 -1
  233. package/widgets/Feature/support/featureUtils.js +1 -1
  234. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  235. package/widgets/FeatureTable/FieldColumn.js +1 -1
  236. package/widgets/LayerList.js +1 -1
  237. package/widgets/Locate.js +1 -1
  238. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  239. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +5 -0
  240. package/widgets/UtilityNetworkValidateTopology.js +5 -0
  241. package/widgets/support/widgetUtils.js +1 -1
  242. package/assets/esri/core/workers/chunks/163bf2e13abbdd298374.js +0 -1
  243. package/assets/esri/core/workers/chunks/23f73f81aea461c0c6e6.js +0 -1
  244. package/assets/esri/core/workers/chunks/2640204c4655aa535ccb.js +0 -1
  245. package/assets/esri/core/workers/chunks/2bf42d060f877566b989.js +0 -1
  246. package/assets/esri/core/workers/chunks/34ec9623a1bece86a82b.js +0 -1
  247. package/assets/esri/core/workers/chunks/3bf52139340827794c3b.js +0 -1
  248. package/assets/esri/core/workers/chunks/3cebdd77a8401495097f.js +0 -1
  249. package/assets/esri/core/workers/chunks/48cb634255e39711a720.js +0 -1
  250. package/assets/esri/core/workers/chunks/4d5f71d84c85f45c97ea.js +0 -1
  251. package/assets/esri/core/workers/chunks/52d02021e858820bc4fa.js +0 -1
  252. package/assets/esri/core/workers/chunks/55ca6ba8b40921025181.js +0 -2
  253. package/assets/esri/core/workers/chunks/64b8f65e2ef6cbf08380.js +0 -1
  254. package/assets/esri/core/workers/chunks/662e479c370c11bcb8a7.js +0 -1
  255. package/assets/esri/core/workers/chunks/78aede1e114deefacb54.js +0 -1
  256. package/assets/esri/core/workers/chunks/7ef100158ca28631fcaf.js +0 -1
  257. package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +0 -1
  258. package/assets/esri/core/workers/chunks/964795dfb57f0d0635d0.js +0 -1
  259. package/assets/esri/core/workers/chunks/99ce0a202dcd3d7dc290.js +0 -1
  260. package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +0 -1
  261. package/assets/esri/core/workers/chunks/c3bf44146fddfe8990f7.js +0 -1
  262. package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +0 -1
  263. package/assets/esri/core/workers/chunks/e15b5d7e46a834eacc57.js +0 -1
  264. package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +0 -1
  265. package/assets/esri/core/workers/chunks/e305d20e4424451cab5b.js +0 -1
  266. package/assets/esri/core/workers/chunks/e6836c84470fb6bd25bf.js +0 -1
  267. package/assets/esri/core/workers/chunks/f924732902703233655e.js +0 -1
  268. package/assets/esri/core/workers/chunks/ff1c005eede0cf964332.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4547],{52138:(t,e,n)=>{n.d(e,{A:()=>M,a:()=>a,d:()=>f,e:()=>P,f:()=>E,g:()=>h,h:()=>C,i:()=>i,j:()=>A,k:()=>c,m:()=>l,s:()=>s,t:()=>u,w:()=>_,y:()=>N,z:()=>O});var r=n(65617),o=n(46851);function s(t,e,n,r,o,s,i,u,a,l,_,c,P,E,f,M,S){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=u,t[7]=a,t[8]=l,t[9]=_,t[10]=c,t[11]=P,t[12]=E,t[13]=f,t[14]=M,t[15]=S,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],u=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=u}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],u=e[5],a=e[6],l=e[7],_=e[8],c=e[9],P=e[10],E=e[11],f=e[12],M=e[13],S=e[14],p=e[15],h=n*u-r*i,R=n*a-o*i,A=n*l-s*i,C=r*a-o*u,O=r*l-s*u,N=o*l-s*a,T=_*M-c*f,g=_*S-P*f,d=_*p-E*f,L=c*S-P*M,G=c*p-E*M,y=P*p-E*S;let m=h*y-R*G+A*L+C*d-O*g+N*T;return m?(m=1/m,t[0]=(u*y-a*G+l*L)*m,t[1]=(o*G-r*y-s*L)*m,t[2]=(M*N-S*O+p*C)*m,t[3]=(P*O-c*N-E*C)*m,t[4]=(a*d-i*y-l*g)*m,t[5]=(n*y-o*d+s*g)*m,t[6]=(S*A-f*N-p*R)*m,t[7]=(_*N-P*A+E*R)*m,t[8]=(i*G-u*d+l*T)*m,t[9]=(r*d-n*G-s*T)*m,t[10]=(f*O-M*A+p*h)*m,t[11]=(c*A-_*O-E*h)*m,t[12]=(u*g-i*L-a*T)*m,t[13]=(n*L-r*g+o*T)*m,t[14]=(M*R-f*C-S*h)*m,t[15]=(_*C-c*R+P*h)*m,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],u=e[4],a=e[5],l=e[6],_=e[7],c=e[8],P=e[9],E=e[10],f=e[11],M=e[12],S=e[13],p=e[14],h=e[15];let R=n[0],A=n[1],C=n[2],O=n[3];return t[0]=R*r+A*u+C*c+O*M,t[1]=R*o+A*a+C*P+O*S,t[2]=R*s+A*l+C*E+O*p,t[3]=R*i+A*_+C*f+O*h,R=n[4],A=n[5],C=n[6],O=n[7],t[4]=R*r+A*u+C*c+O*M,t[5]=R*o+A*a+C*P+O*S,t[6]=R*s+A*l+C*E+O*p,t[7]=R*i+A*_+C*f+O*h,R=n[8],A=n[9],C=n[10],O=n[11],t[8]=R*r+A*u+C*c+O*M,t[9]=R*o+A*a+C*P+O*S,t[10]=R*s+A*l+C*E+O*p,t[11]=R*i+A*_+C*f+O*h,R=n[12],A=n[13],C=n[14],O=n[15],t[12]=R*r+A*u+C*c+O*M,t[13]=R*o+A*a+C*P+O*S,t[14]=R*s+A*l+C*E+O*p,t[15]=R*i+A*_+C*f+O*h,t}function _(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],u=e[2],a=e[3],l=e[4],_=e[5],c=e[6],P=e[7],E=e[8],f=e[9],M=e[10],S=e[11];t[0]=n,t[1]=i,t[2]=u,t[3]=a,t[4]=l,t[5]=_,t[6]=c,t[7]=P,t[8]=E,t[9]=f,t[10]=M,t[11]=S,t[12]=n*r+l*o+E*s+e[12],t[13]=i*r+_*o+f*s+e[13],t[14]=u*r+c*o+M*s+e[14],t[15]=a*r+P*o+S*s+e[15]}return t}function c(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function P(t,e,n,r){let s,i,u,a,l,_,c,P,E,f,M,S,p,h,R,A,C,O,N,T,g,d,L,G,y=r[0],m=r[1],I=r[2],F=Math.sqrt(y*y+m*m+I*I);return F<(0,o.g)()?null:(F=1/F,y*=F,m*=F,I*=F,s=Math.sin(n),i=Math.cos(n),u=1-i,a=e[0],l=e[1],_=e[2],c=e[3],P=e[4],E=e[5],f=e[6],M=e[7],S=e[8],p=e[9],h=e[10],R=e[11],A=y*y*u+i,C=m*y*u+I*s,O=I*y*u-m*s,N=y*m*u-I*s,T=m*m*u+i,g=I*m*u+y*s,d=y*I*u+m*s,L=m*I*u-y*s,G=I*I*u+i,t[0]=a*A+P*C+S*O,t[1]=l*A+E*C+p*O,t[2]=_*A+f*C+h*O,t[3]=c*A+M*C+R*O,t[4]=a*N+P*T+S*g,t[5]=l*N+E*T+p*g,t[6]=_*N+f*T+h*g,t[7]=c*N+M*T+R*g,t[8]=a*d+P*L+S*G,t[9]=l*d+E*L+p*G,t[10]=_*d+f*L+h*G,t[11]=c*d+M*L+R*G,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function E(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function f(t,e,n){if(0===e)return i(t);let r,s,u,a=n[0],l=n[1],_=n[2],c=Math.sqrt(a*a+l*l+_*_);return c<(0,o.g)()?null:(c=1/c,a*=c,l*=c,_*=c,r=Math.sin(e),s=Math.cos(e),u=1-s,t[0]=a*a*u+s,t[1]=l*a*u+_*r,t[2]=_*a*u-l*r,t[3]=0,t[4]=a*l*u-_*r,t[5]=l*l*u+s,t[6]=_*l*u+a*r,t[7]=0,t[8]=a*_*u+l*r,t[9]=l*_*u-a*r,t[10]=_*_*u+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function S(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],u=r+r,a=o+o,l=s+s,_=r*u,c=r*a,P=r*l,E=o*a,f=o*l,M=s*l,S=i*u,p=i*a,h=i*l;return t[0]=1-(E+M),t[1]=c+h,t[2]=P-p,t[3]=0,t[4]=c-h,t[5]=1-(_+M),t[6]=f+S,t[7]=0,t[8]=P+p,t[9]=f-S,t[10]=1-(_+E),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const p=(0,r.c)();function h(t,e,n,r){const o=e[0],s=e[1],i=e[2],u=e[3],a=o+o,l=s+s,_=i+i,c=o*a,P=o*l,E=o*_,f=s*l,M=s*_,S=i*_,p=u*a,h=u*l,R=u*_,A=r[0],C=r[1],O=r[2];return t[0]=(1-(f+S))*A,t[1]=(P+R)*A,t[2]=(E-h)*A,t[3]=0,t[4]=(P-R)*C,t[5]=(1-(c+S))*C,t[6]=(M+p)*C,t[7]=0,t[8]=(E+h)*O,t[9]=(M-p)*O,t[10]=(1-(c+f))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function R(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function C(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],u=t[4],a=t[5],l=t[6],_=t[7],c=t[8],P=t[9],E=t[10],f=t[11],M=t[12],S=t[13],p=t[14],h=t[15],R=e[0],A=e[1],C=e[2],O=e[3],N=e[4],T=e[5],g=e[6],d=e[7],L=e[8],G=e[9],y=e[10],m=e[11],I=e[12],F=e[13],W=e[14],w=e[15],b=(0,o.g)();return Math.abs(n-R)<=b*Math.max(1,Math.abs(n),Math.abs(R))&&Math.abs(r-A)<=b*Math.max(1,Math.abs(r),Math.abs(A))&&Math.abs(s-C)<=b*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(i-O)<=b*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(u-N)<=b*Math.max(1,Math.abs(u),Math.abs(N))&&Math.abs(a-T)<=b*Math.max(1,Math.abs(a),Math.abs(T))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(_-d)<=b*Math.max(1,Math.abs(_),Math.abs(d))&&Math.abs(c-L)<=b*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(P-G)<=b*Math.max(1,Math.abs(P),Math.abs(G))&&Math.abs(E-y)<=b*Math.max(1,Math.abs(E),Math.abs(y))&&Math.abs(f-m)<=b*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(M-I)<=b*Math.max(1,Math.abs(M),Math.abs(I))&&Math.abs(S-F)<=b*Math.max(1,Math.abs(S),Math.abs(F))&&Math.abs(p-W)<=b*Math.max(1,Math.abs(p),Math.abs(W))&&Math.abs(h-w)<=b*Math.max(1,Math.abs(h),Math.abs(w))}function O(t){const e=(0,o.g)(),n=t[0],r=t[1],s=t[2],i=t[4],u=t[5],a=t[6],l=t[8],_=t[9],c=t[10];return Math.abs(1-(n*n+i*i+l*l))<=e&&Math.abs(1-(r*r+u*u+_*_))<=e&&Math.abs(1-(s*s+a*a+c*c))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const T=l,g=R;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],u=e[5],a=e[6],l=e[7],_=e[8],c=e[9],P=e[10],E=e[11],f=e[12],M=e[13],S=e[14],p=e[15];return t[0]=u*(P*p-E*S)-c*(a*p-l*S)+M*(a*E-l*P),t[1]=-(r*(P*p-E*S)-c*(o*p-s*S)+M*(o*E-s*P)),t[2]=r*(a*p-l*S)-u*(o*p-s*S)+M*(o*l-s*a),t[3]=-(r*(a*E-l*P)-u*(o*E-s*P)+c*(o*l-s*a)),t[4]=-(i*(P*p-E*S)-_*(a*p-l*S)+f*(a*E-l*P)),t[5]=n*(P*p-E*S)-_*(o*p-s*S)+f*(o*E-s*P),t[6]=-(n*(a*p-l*S)-i*(o*p-s*S)+f*(o*l-s*a)),t[7]=n*(a*E-l*P)-i*(o*E-s*P)+_*(o*l-s*a),t[8]=i*(c*p-E*M)-_*(u*p-l*M)+f*(u*E-l*c),t[9]=-(n*(c*p-E*M)-_*(r*p-s*M)+f*(r*E-s*c)),t[10]=n*(u*p-l*M)-i*(r*p-s*M)+f*(r*l-s*u),t[11]=-(n*(u*E-l*c)-i*(r*E-s*c)+_*(r*l-s*u)),t[12]=-(i*(c*S-P*M)-_*(u*S-a*M)+f*(u*P-a*c)),t[13]=n*(c*S-P*M)-_*(r*S-o*M)+f*(r*P-o*c),t[14]=-(n*(u*S-a*M)-i*(r*S-o*M)+f*(r*a-o*u)),t[15]=n*(u*P-a*c)-i*(r*P-o*c)+_*(r*a-o*u),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],u=t[6],a=t[7],l=t[8],_=t[9],c=t[10],P=t[11],E=t[12],f=t[13],M=t[14],S=t[15];return(e*i-n*s)*(c*S-P*M)-(e*u-r*s)*(_*S-P*f)+(e*a-o*s)*(_*M-c*f)+(n*u-r*i)*(l*S-P*E)-(n*a-o*i)*(l*M-c*E)+(r*a-o*u)*(l*f-_*E)},equals:C,exactEquals:A,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,u=r+r,a=o+o,l=n*i,_=r*i,c=r*u,P=o*i,E=o*u,f=o*a,M=s*i,S=s*u,p=s*a;return t[0]=1-c-f,t[1]=_+p,t[2]=P-S,t[3]=0,t[4]=_-p,t[5]=1-l-f,t[6]=E+M,t[7]=0,t[8]=P+S,t[9]=E-M,t[10]=1-l-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=p,r=-e[0],o=-e[1],s=-e[2],i=e[3],u=e[4],a=e[5],l=e[6],_=e[7],c=r*r+o*o+s*s+i*i;return c>0?(n[0]=2*(u*i+_*r+a*s-l*o)/c,n[1]=2*(a*i+_*o+l*r-u*s)/c,n[2]=2*(l*i+_*s+u*o-a*r)/c):(n[0]=2*(u*i+_*r+a*s-l*o),n[1]=2*(a*i+_*o+l*r-u*s),n[2]=2*(l*i+_*s+u*o-a*r)),S(t,e,n),t},fromRotation:f,fromRotationTranslation:S,fromRotationTranslationScale:h,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const s=e[0],i=e[1],u=e[2],a=e[3],l=s+s,_=i+i,c=u+u,P=s*l,E=s*_,f=s*c,M=i*_,S=i*c,p=u*c,h=a*l,R=a*_,A=a*c,C=r[0],O=r[1],N=r[2],T=o[0],g=o[1],d=o[2],L=(1-(M+p))*C,G=(E+A)*C,y=(f-R)*C,m=(E-A)*O,I=(1-(P+p))*O,F=(S+h)*O,W=(f+R)*N,w=(S-h)*N,b=(1-(P+M))*N;return t[0]=L,t[1]=G,t[2]=y,t[3]=0,t[4]=m,t[5]=I,t[6]=F,t[7]=0,t[8]=W,t[9]=w,t[10]=b,t[11]=0,t[12]=n[0]+T-(L*T+m*g+W*d),t[13]=n[1]+g-(G*T+I*g+w*d),t[14]=n[2]+d-(y*T+F*g+b*d),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:E,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,s,i){const u=1/(n-e),a=1/(o-r),l=1/(s-i);return t[0]=2*s*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*a,t[6]=0,t[7]=0,t[8]=(n+e)*u,t[9]=(o+r)*a,t[10]=(i+s)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*l,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],u=e[6],a=e[8],l=e[9],_=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+u*u),t[2]=Math.sqrt(a*a+l*l+_*_),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:N,identity:i,invert:a,invertOrIdentity:function(t,e){return a(t,e)||i(t),t},isOrthoNormal:O,lookAt:function(t,e,n,r){const s=e[0],u=e[1],a=e[2];let l=s-n[0],_=u-n[1],c=a-n[2];const P=(0,o.g)();if(Math.abs(l)<P&&Math.abs(_)<P&&Math.abs(c)<P)return void i(t);let E=1/Math.sqrt(l*l+_*_+c*c);l*=E,_*=E,c*=E;const f=r[0],M=r[1],S=r[2];let p=M*c-S*_,h=S*l-f*c,R=f*_-M*l;E=Math.sqrt(p*p+h*h+R*R),E?(E=1/E,p*=E,h*=E,R*=E):(p=0,h=0,R=0);let A=_*R-c*h,C=c*p-l*R,O=l*h-_*p;E=Math.sqrt(A*A+C*C+O*O),E?(E=1/E,A*=E,C*=E,O*=E):(A=0,C=0,O=0),t[0]=p,t[1]=A,t[2]=l,t[3]=0,t[4]=h,t[5]=C,t[6]=_,t[7]=0,t[8]=R,t[9]=O,t[10]=c,t[11]=0,t[12]=-(p*s+h*u+R*a),t[13]=-(A*s+C*u+O*a),t[14]=-(l*s+_*u+c*a),t[15]=1},mul:T,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,i){const u=1/(e-n),a=1/(r-o),l=1/(s-i);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*u,t[13]=(o+r)*a,t[14]=(i+s)*l,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),a=2/(i+u),l=2/(o+s);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(i-u)*a*.5,t[9]=(o-s)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:P,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],u=e[6],a=e[7],l=e[8],_=e[9],c=e[10],P=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+l*r,t[5]=i*o+_*r,t[6]=u*o+c*r,t[7]=a*o+P*r,t[8]=l*o-s*r,t[9]=_*o-i*r,t[10]=c*o-u*r,t[11]=P*o-a*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],u=e[2],a=e[3],l=e[8],_=e[9],c=e[10],P=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-l*r,t[1]=i*o-_*r,t[2]=u*o-c*r,t[3]=a*o-P*r,t[8]=s*r+l*o,t[9]=i*r+_*o,t[10]=u*r+c*o,t[11]=a*r+P*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],u=e[2],a=e[3],l=e[4],_=e[5],c=e[6],P=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+l*r,t[1]=i*o+_*r,t[2]=u*o+c*r,t[3]=a*o+P*r,t[4]=l*o-s*r,t[5]=_*o-i*r,t[6]=c*o-u*r,t[7]=P*o-a*r,t},scale:c,set:s,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:g,subtract:R,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],u=r[0],a=r[1],l=r[2];let _=o-n[0],c=s-n[1],P=i-n[2],E=_*_+c*c+P*P;E>0&&(E=1/Math.sqrt(E),_*=E,c*=E,P*=E);let f=a*P-l*c,M=l*_-u*P,S=u*c-a*_;return E=f*f+M*M+S*S,E>0&&(E=1/Math.sqrt(E),f*=E,M*=E,S*=E),t[0]=f,t[1]=M,t[2]=S,t[3]=0,t[4]=c*S-P*M,t[5]=P*f-_*S,t[6]=_*M-c*f,t[7]=0,t[8]=_,t[9]=c,t[10]=P,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:_,transpose:u},Symbol.toStringTag,{value:"Module"}))},83305:(t,e,n)=>{n.d(e,{e:()=>c,f:()=>_,g:()=>l,h:()=>S,i:()=>u,j:()=>C,l:()=>a,p:()=>G});var r=n(99880),o=n(80442);let s,i=null;function u(){return!!i}function a(){return s||(s=n.e(6774).then(n.bind(n,66774)).then((t=>t.p)).then((({default:t})=>t({locateFile:t=>(0,r.V)(`esri/geometry/support/${t}`)}))).then((t=>{N(t)})),s)}var l,_,c,P;!function(t){function e(t,e,n){i.ensureCache.prepare();const r=d(n),o=n===r,s=i.ensureFloat64(r),u=i._pe_geog_to_proj(i.getPointer(t),e,s);return u&&L(n,e,s,o),u}function n(t,e,n){return r(t,e,n,0)}function r(t,e,n,r){i.ensureCache.prepare();const o=d(n),s=n===o,u=i.ensureFloat64(o),a=i._pe_proj_to_geog_center(i.getPointer(t),e,u,r);return a&&L(n,e,u,s),a}t.geogToProj=e,t.projGeog=function(t,r,o,s){switch(s){case _.PE_TRANSFORM_P_TO_G:return n(t,r,o);case _.PE_TRANSFORM_G_TO_P:return e(t,r,o)}return 0},t.projToGeog=n,t.projToGeogCenter=r}(l||(l={})),(P=_||(_={})).init=function(){P.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,P.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,P.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,P.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,P.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,P.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,P.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,P.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,P.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,P.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,P.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,P.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,P.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,P.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,P.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,P.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,P.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,P.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,P.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,P.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,P.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,P.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,P.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,P.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,P.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,P.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,P.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,P.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,P.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,P.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(t){const e={},n={},r=t=>{if(t){const e=t.getType();switch(e){case _.PE_TYPE_GEOGCS:t=i.castObject(t,i.PeGeogcs);break;case _.PE_TYPE_PROJCS:t=i.castObject(t,i.PeProjcs);break;case _.PE_TYPE_GEOGTRAN:t=i.castObject(t,i.PeGeogtran);break;default:e&_.PE_TYPE_UNIT&&(t=i.castObject(t,i.PeUnit))}}return t};function o(t,n){let o=null,s=e[t];if(s||(s={},e[t]=s),s.hasOwnProperty(String(n)))o=s[n];else{const e=i.PeFactory.prototype.factoryByType(t,n);i.compare(e,i.NULL)||(o=e,s[n]=o)}return o=r(o),o}t.initialize=function(){i.PeFactory.prototype.initialize(null)},t.coordsys=function(t){return o(_.PE_TYPE_COORDSYS,t)},t.factoryByType=o,t.fromString=function(t,e){let o=null,s=n[t];if(s||(s={},n[t]=s),s.hasOwnProperty(e))o=s[e];else{const n=i.PeFactory.prototype.fromString(t,e);i.compare(n,i.NULL)||(o=n,s[e]=o)}return o=r(o),o},t.geogcs=function(t){return o(_.PE_TYPE_GEOGCS,t)},t.geogtran=function(t){return o(_.PE_TYPE_GEOGTRAN,t)},t.getCode=function(t){return i.PeFactory.prototype.getCode(t)},t.projcs=function(t){return o(_.PE_TYPE_PROJCS,t)},t.unit=function(t){return o(_.PE_TYPE_UNIT,t)}}(c||(c={}));let E=null;var f,M,S,p,h,R,A,C,O;function N(t){function e(t,e,n){t[e]=n(t[e])}i=t,_.init(),f.init(),h.init(),A.init(),C.init(),E=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const n=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const t of n)e(t.prototype,"getName",(t=>function(){return t.call(this,new Array(_.PE_NAME_MAX))}));for(const t of[i.PeGeogtran,i.PeProjcs])e(t.prototype,"getParameters",(t=>function(){const e=new Array(_.PE_PARM_MAX);let n=t.call(this);for(let t=0;t<e.length;t++){const r=i.getValue(n,"*");e[t]=r?i.wrapPointer(r,i.PeParameter):null,n+=Int32Array.BYTES_PER_ELEMENT}return e}));e(i.PeHorizon.prototype,"getCoord",(t=>function(){const e=this.getSize();if(!e)return null;const n=[];return L(n,e,t.call(this)),n})),e(i.PeGTlistExtendedEntry.prototype,"getEntries",(t=>{const e=i._pe_getPeGTlistExtendedGTsSize();return function(){let n=null;const r=t.call(this);if(!i.compare(r,i.NULL)){n=[r];const t=this.getSteps();if(t>1){const o=i.getPointer(r);for(let r=1;r<t;r++)n.push(i.wrapPointer(o+e*r,i.PeGTlistExtendedGTs))}}return n}}));const r=i._pe_getPeHorizonSize(),o=t=>function(){let e=this._cache;if(e||(e=new Map,this._cache=e),e.has(t))return e.get(t);let n=null;const o=t.call(this);if(!i.compare(o,i.NULL)){n=[o];const t=o.getNump();if(t>1){const e=i.getPointer(o);for(let o=1;o<t;o++)n.push(i.wrapPointer(e+r*o,i.PeHorizon))}}return e.set(t,n),n};e(i.PeProjcs.prototype,"horizonGcsGenerate",o),e(i.PeProjcs.prototype,"horizonPcsGenerate",o),i.PeObject.prototype.toString=function(t=_.PE_STR_OPTS_NONE){i.ensureCache.prepare();const e=i.getPointer(this),n=i.ensureInt8(new Array(_.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(e,t,n))}}function T(t){if(!t)return;const e=i.getClass(t);if(!e)return;const n=i.getCache(e);if(!n)return;const r=i.getPointer(t);r&&delete n[r]}function g(t,e){const n=[],r=new Array(e);for(let e=0;e<t;e++)n.push(i.ensureInt8(r));return n}function d(t){let e;return Array.isArray(t[0])?(e=[],t.forEach((t=>{e.push(t[0],t[1])}))):e=t,e}function L(t,e,n,r=!1){if(r)for(let r=0;r<2*e;r++)t[r]=i.getValue(n+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===t.length;for(let o=0;o<e;o++)r&&(t[o]=new Array(2)),t[o][0]=i.getValue(n,"double"),t[o][1]=i.getValue(n+Float64Array.BYTES_PER_ELEMENT,"double"),n+=2*Float64Array.BYTES_PER_ELEMENT}}!function(t){let e;t.init=function(){t.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=i._pe_getPeGTlistExtendedEntrySize()},t.getGTlist=function(t,n,r,o,s,u){let a=null;const l=new i.PeInteger(u);try{const _=i.PeGTlistExtended.prototype.getGTlist(t,n,r,o,s,l);if((u=l.val)&&(a=[_],u>1)){const t=i.getPointer(_);for(let n=1;n<u;n++)a.push(i.wrapPointer(t+e*n,i.PeGTlistExtendedEntry))}}finally{i.destroy(l)}return a}}(f||(f={})),function(t){t.destroy=function(t){if(t&&t.length){for(const e of t)T(e),e.getEntries().forEach((t=>{T(t);const e=t.getGeogtran();T(e),e.getParameters().forEach(T),[e.getGeogcs1(),e.getGeogcs2()].forEach((t=>{T(t);const e=t.getDatum();T(e),T(e.getSpheroid()),T(t.getPrimem()),T(t.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(t[0])}}}(M||(M={})),function(t){t.geogToGeog=function(t,e,n,r,o){i.ensureCache.prepare();const s=d(n),u=n===s,a=i.ensureFloat64(s);let l=0;r&&(l=i.ensureFloat64(r));const _=i._pe_geog_to_geog(i.getPointer(t),e,a,l,o);return _&&L(n,e,a,u),_}}(S||(S={})),function(t){const e=(t,e,n,r,o,s)=>{let u,a;switch(i.ensureCache.prepare(),t){case"dd":u=i._pe_geog_to_dd,a=_.PE_DD_MAX;break;case"ddm":u=i._pe_geog_to_ddm,a=_.PE_DDM_MAX;break;case"dms":u=i._pe_geog_to_dms,a=_.PE_DMS_MAX}let l=0;e&&(l=i.getPointer(e));const c=d(r),P=i.ensureFloat64(c),E=g(n,a),f=u(l,n,P,o,i.ensureInt32(E));if(f)for(let t=0;t<n;t++)s[t]=i.UTF8ToString(E[t]);return f},n=(t,e,n,r,o)=>{let s;switch(i.ensureCache.prepare(),t){case"dd":s=i._pe_dd_to_geog;break;case"ddm":s=i._pe_ddm_to_geog;break;case"dms":s=i._pe_dms_to_geog}let u=0;e&&(u=i.getPointer(e));const a=r.map((t=>i.ensureString(t))),l=i.ensureInt32(a),_=i.ensureFloat64(new Array(2*n)),c=s(u,n,l,_);return c&&L(o,n,_),c};t.geogToDms=function(t,n,r,o,s){return e("dms",t,n,r,o,s)},t.dmsToGeog=function(t,e,r,o){return n("dms",t,e,r,o)},t.geogToDdm=function(t,n,r,o,s){return e("ddm",t,n,r,o,s)},t.ddmToGeog=function(t,e,r,o){return n("ddm",t,e,r,o)},t.geogToDd=function(t,n,r,o,s){return e("dd",t,n,r,o,s)},t.ddToGeog=function(t,e,r,o){return n("dd",t,e,r,o)}}(p||(p={})),function(t){t.init=function(){t.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},t.geogToMgrsExtended=function(t,e,n,r,o,s,u){i.ensureCache.prepare();let a=0;t&&(a=i.getPointer(t));const l=d(n),c=i.ensureFloat64(l),P=g(e,_.PE_MGRS_MAX),E=i.ensureInt32(P),f=i._pe_geog_to_mgrs_extended(a,e,c,r,o,s,E);if(f)for(let t=0;t<e;t++)u[t]=i.UTF8ToString(P[t]);return f},t.mgrsToGeogExtended=function(t,e,n,r,o){i.ensureCache.prepare();let s=0;t&&(s=i.getPointer(t));const u=n.map((t=>i.ensureString(t))),a=i.ensureInt32(u),l=i.ensureFloat64(new Array(2*e)),_=i._pe_mgrs_to_geog_extended(s,e,a,r,l);return _&&L(o,e,l),_}}(h||(h={})),function(t){t.geogToUsng=function(t,e,n,r,o,s,u){i.ensureCache.prepare();let a=0;t&&(a=i.getPointer(t));const l=d(n),c=i.ensureFloat64(l),P=g(e,_.PE_MGRS_MAX),E=i.ensureInt32(P),f=i._pe_geog_to_usng(a,e,c,r,o,s,E);if(f)for(let t=0;t<e;t++)u[t]=i.UTF8ToString(P[t]);return f},t.usngToGeog=function(t,e,n,r){i.ensureCache.prepare();let o=0;t&&(o=i.getPointer(t));const s=n.map((t=>i.ensureString(t))),u=i.ensureInt32(s),a=i.ensureFloat64(new Array(2*e)),l=i._pe_usng_to_geog(o,e,u,a);return l&&L(r,e,a),l}}(R||(R={})),function(t){t.init=function(){t.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},t.geogToUtm=function(t,e,n,r,o){i.ensureCache.prepare();let s=0;t&&(s=i.getPointer(t));const u=d(n),a=i.ensureFloat64(u),l=g(e,_.PE_UTM_MAX),c=i.ensureInt32(l),P=i._pe_geog_to_utm(s,e,a,r,c);if(P)for(let t=0;t<e;t++)o[t]=i.UTF8ToString(l[t]);return P},t.utmToGeog=function(t,e,n,r,o){i.ensureCache.prepare();let s=0;t&&(s=i.getPointer(t));const u=n.map((t=>i.ensureString(t))),a=i.ensureInt32(u),l=i.ensureFloat64(new Array(2*e)),_=i._pe_utm_to_geog(s,e,a,r,l);return _&&L(o,e,l),_}}(A||(A={})),function(t){const e=new Map;t.init=function(){t.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},t.generate=function(n,r=t.PE_PCSINFO_OPTION_DOMAIN){let o=null,s=null;return e.has(n)&&(s=e.get(n),s[r]&&(o=s[r])),o||(o=i.PePCSInfo.prototype.generate(n,r),s||(s=[],e.set(n,s)),s[r]=o),o}}(C||(C={})),function(t){t.versionString=function(){return i.PeVersion.prototype.version_string()}}(O||(O={}));const G=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return l},get PeDefs(){return _},get PeFactory(){return c},get PeGCSExtent(){return E},get PeGTTransformations(){return S},get PeGTlistExtended(){return f},get PeGTlistExtendedEntry(){return M},get PeNotationDms(){return p},get PeNotationMgrs(){return h},get PeNotationUsng(){return R},get PeNotationUtm(){return A},get PePCSInfo(){return C},get PeVersion(){return O},_init:N,get _pe(){return i},isLoaded:u,isSupported:function(){return!!(0,o.Z)("esri-wasm")},load:a},Symbol.toStringTag,{value:"Module"}))},44547:(t,e,n)=>{n.d(e,{Up:()=>k,Bm:()=>K,iQ:()=>v,kR:()=>I,zD:()=>F,iV:()=>W,CM:()=>Z,oj:()=>w,dz:()=>b,JY:()=>D,KC:()=>B,Wt:()=>x});var r=n(20102),o=n(22021),s=n(95330),i=n(67900),u=n(58971),a=n(10661),l=n(52138),_=(n(17896),n(65617)),c=n(2109),P=n(6570),E=n(65091),f=n(83305),M=n(94139),S=n(38913),p=n(58901),h=(n(24470),n(68441));Math.PI;const R=h.sv.radius,A=h.sv.eccentricitySquared,C={a1:R*A,a2:R*A*R*A,a3:R*A*A/2,a4:R*A*R*A*2.5,a5:R*A+R*A*A/2,a6:1-A};h.sv.radius,h.sv.flattening,h.Z1.radius,h.Z1.flattening,h.yr.radius,h.yr.flattening,h.yr.radius;var O=n(18571),N=n(8744),T=n(56726),g=n(69285);let d=null,L=null,G=null,y={};const m=new a.s;function I(){return!!d&&(0,f.i)()}function F(t){return null==G&&(G=Promise.all([(0,f.l)(),Promise.all([n.e(5837),n.e(5732)]).then(n.bind(n,45837)).then((t=>t.g)),n.e(819).then(n.bind(n,80819))])),G.then((([,e,{hydratedAdapter:n}])=>{(0,s.k_)(t),L=n,d=e.default,d._enableProjection(f.p),m.notify()}))}function W(t,e,n=null,r=null){return Array.isArray(t)?0===t.length?[]:w(L,t,t[0].spatialReference,e,n,r):w(L,[t],t.spatialReference,e,n,r)[0]}function w(t,e,n,r,o=null,s=null){if(null==n||null==r)return e;if(k(n,r,o))return e.map((t=>function(t,e,n){return t?"x"in t?function(t,e,n,r,o){gt[0]=t.x,gt[1]=t.y;const s=t.z;return gt[2]=void 0!==s?s:o,Z(gt,e,0,gt,r,0,1)?(n.x=gt[0],n.y=gt[1],n.spatialReference=r,void 0===s?(n.z=void 0,n.hasZ=!1):(n.z=gt[2],n.hasZ=!0),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}(t,e,new M.Z,n,0):"xmin"in t?function(t,e,n,r,o){const{xmin:s,ymin:i,xmax:u,ymax:a,hasZ:l,hasM:_}=t;return j(s,i,l?t.zmin:o,e,gt,r)?(n.xmin=gt[0],n.ymin=gt[1],l&&(n.zmin=gt[2]),j(u,a,l?t.zmax:o,e,gt,r)?(n.xmax=gt[0],n.ymax=gt[1],l&&(n.zmax=gt[2]),_&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null):null}(t,e,new P.Z,n,0):"rings"in t?Y(t,e,new S.Z,n,0):"paths"in t?function(t,e,n,r,o){const{paths:s,hasZ:i,hasM:u}=t,a=[];return z(s,i??!1,u??!1,e,a,r,o)?(n.paths=a,n.spatialReference=r,n.hasZ=i,n.hasM=u,n):null}(t,e,new p.Z,n,0):"points"in t?function(t,e,n,r,o){const{points:s,hasZ:i,hasM:u}=t,a=[],l=s.length,_=[];for(const t of s)_.push(t[0],t[1],i?t[2]:o);if(!Z(_,e,0,_,r,0,l))return null;for(let t=0;t<l;++t){const e=3*t,n=_[e],r=_[e+1];i&&u?a.push([n,r,_[e+2],s[t][3]]):i?a.push([n,r,_[e+2]]):u?a.push([n,r,s[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=i,n.hasM=u,n}(t,e,new E.Z,n,0):null:null}(t,n,r)));if(null==o){const t=O.Z.cacheKey(n,r);void 0!==y[t]?o=y[t]:(null==(o=function(t,e,n=null){if(null==t||null==e)return null;if(null==d||null==L)throw new U;const r=d._getTransformation(L,t,e,n,n?.spatialReference);return null!==r?O.Z.fromGE(r):null}(n,r,void 0))&&(o=new O.Z),y[t]=o)}if(null==d||null==t)throw new U;return null!=s?d._project(t,e,n,r,o,s):d._project(t,e,n,r,o)}function b(t,e){const n=D([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function D(t,e){if(!I())for(const n of t)if(null!=n&&!(0,N.fS)(n.spatialReference,e)&&(0,N.JY)(n.spatialReference)&&(0,N.JY)(e)&&!k(n.spatialReference,e))return(0,u.it)(m),{pending:F(),geometries:null};return{pending:null,geometries:t.map((t=>null==t?null:(0,N.fS)(t.spatialReference,e)?t:(0,N.JY)(t.spatialReference)&&(0,N.JY)(e)?function(t,e){try{const n=W(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const r=(0,g.k)(n.type,t.spatialReference,e);return null!=r&&r(n),n}catch(t){if(!(t instanceof U))throw t;return null}}(t,e):null))}}class U extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var H;function k(t,e,n){return!n&&(!!(0,N.fS)(t,e)||(0,N.JY)(t)&&(0,N.JY)(e)&&!!Mt(t,e,Rt))}async function v(t,e,n,r){if(I())return(0,s.Yn)(r);if(Array.isArray(t)){for(const{source:e,dest:n,geographicTransformation:o}of t)if(!k(e,n,o))return F(r)}else if(!k(t,e,n))return F(r);return(0,s.Yn)(r)}function x(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,o){const{rings:s,hasZ:i,hasM:u}=t,a=[];return z(s,i??!1,u??!1,e,a,r,o)?(n.rings=a,n.spatialReference=r,n.hasZ=i,n.hasM=u,n):null}function B(t,e,n,r=0){gt[0]=t.x,gt[1]=t.y;const o=t.z;return gt[2]=void 0!==o?o:r,Z(gt,t.spatialReference,0,e,n,0,1)}function j(t,e,n,r,o,s){return Ot[0]=t,Ot[1]=e,Ot[2]=n,Z(Ot,r,0,o,s,0,1)}function Z(t,e,n,r,o,s,i=1){const u=Mt(e,o,Rt);if(null==u)return!1;if(u===V){if(t===r&&n===s)return!0;const e=n+3*i;for(let o=n,i=s;o<e;o++,i++)r[i]=t[o];return!0}const a=n+3*i;for(let e=n,o=s;e<a;e+=3,o+=3)u(t,e,r,o);return!0}function z(t,e,n,r,o,s,i=0){const u=new Array;for(const n of t)for(const t of n)u.push(t[0],t[1],e?t[2]:i);if(!Z(u,r,0,u,s,0,u.length/3))return!1;let a=0;o.length=0;for(const r of t){const t=new Array;for(const o of r)e&&n?t.push([u[a++],u[a++],u[a++],o[3]]):e?t.push([u[a++],u[a++],u[a++]]):n?(t.push([u[a++],u[a++],o[2]]),a++):(t.push([u[a++],u[a++]]),a++);o.push(t)}return!0}function K(t,e,n,r){if(null==t||null==r)return!1;const o=J(t,pt),s=J(r,ht);if(o===s&&!X(s)&&(o!==H.UNKNOWN||(0,N.fS)(t,r)))return(0,l.f)(n,e),!0;if(X(s)){const t=ft[o][H.LON_LAT],r=ft[H.LON_LAT][s];return null!=t&&null!=r&&(t(e,0,Nt,0),r(Nt,0,Tt,0),q(At*Nt[0],At*Nt[1],n),n[12]=Tt[0],n[13]=Tt[1],n[14]=Tt[2],!0)}if((s===H.WEB_MERCATOR||s===H.PLATE_CARREE)&&(o===H.WGS84||o===H.CGCS2000&&s===H.PLATE_CARREE||o===H.SPHERICAL_ECEF||o===H.WEB_MERCATOR)){const t=ft[o][H.LON_LAT],r=ft[H.LON_LAT][s];return null!=t&&null!=r&&(t(e,0,Nt,0),r(Nt,0,Tt,0),o===H.SPHERICAL_ECEF?function(t,e,n){q(t,e,n),(0,l.t)(n,n)}(At*Nt[0],At*Nt[1],n):(0,l.i)(n),n[12]=Tt[0],n[13]=Tt[1],n[14]=Tt[2],!0)}return!1}function X(t){return t===H.SPHERICAL_ECEF||t===H.SPHERICAL_MARS_PCPF||t===H.SPHERICAL_MOON_PCPF}function q(t,e,n){const r=Math.sin(t),o=Math.cos(t),s=Math.sin(e),i=Math.cos(e),u=n;return u[0]=-r,u[4]=-s*o,u[8]=i*o,u[12]=0,u[1]=o,u[5]=-s*r,u[9]=i*r,u[13]=0,u[2]=0,u[6]=i,u[10]=s,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}function J(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.c9)(t,1)),t.wkt===c.kU.wkt?e.spatialReferenceId=H.SPHERICAL_ECEF:(0,N.oR)(t)?e.spatialReferenceId=H.WGS84:(0,N.sS)(t)?e.spatialReferenceId=H.WEB_MERCATOR:(0,N.QM)(t)?e.spatialReferenceId=H.PLATE_CARREE:t.wkt===c.pn.wkt?e.spatialReferenceId=H.WGS84_ECEF:t.wkid===T.W.CGCS2000?e.spatialReferenceId=H.CGCS2000:t.wkt===c.JL.wkt?e.spatialReferenceId=H.SPHERICAL_MARS_PCPF:t.wkt===c.mM.wkt?e.spatialReferenceId=H.SPHERICAL_MOON_PCPF:(0,N.BZ)(t)?e.spatialReferenceId=H.GCSMARS2000:(0,N.V2)(t)?e.spatialReferenceId=H.GCSMOON2000:e.spatialReferenceId=H.UNKNOWN):H.UNKNOWN}function V(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function Q(t,e,n,r){n[r++]=Ct*(t[e++]/h.sv.radius),n[r++]=Ct*(Math.PI/2-2*Math.atan(Math.exp(-t[e++]/h.sv.radius))),n[r]=t[e]}function $(t,e,n,r){!function(t,e,n,r,s){const i=.4999999*Math.PI,u=(0,o.uZ)(At*t[e+1],-i,i),a=Math.sin(u);n[r++]=At*t[e]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=t[e+2]}(t,e,n,r,h.sv)}!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",t[t.WGS84=2]="WGS84",t[t.WEB_MERCATOR=3]="WEB_MERCATOR",t[t.WGS84_ECEF=4]="WGS84_ECEF",t[t.CGCS2000=5]="CGCS2000",t[t.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",t[t.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",t[t.GCSMARS2000=8]="GCSMARS2000",t[t.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",t[t.GCSMOON2000=10]="GCSMOON2000",t[t.LON_LAT=11]="LON_LAT",t[t.PLATE_CARREE=12]="PLATE_CARREE"}(H||(H={}));const tt=h.sv.radius*Math.PI/180,et=180/(h.sv.radius*Math.PI);function nt(t,e,n,r){n[r]=t[e]*tt,n[r+1]=t[e+1]*tt,n[r+2]=t[e+2]}function rt(t,e,n,r){n[r]=t[e]*et,n[r+1]=t[e+1]*et,n[r+2]=t[e+2]}function ot(t,e,n,r,o){const s=o+t[e+2],i=At*t[e+1],u=At*t[e],a=Math.cos(i);n[r++]=Math.cos(u)*a*s,n[r++]=Math.sin(u)*a*s,n[r]=Math.sin(i)*s}function st(t,e,n,r){ot(t,e,n,r,h.Z1.radius)}function it(t,e,n,r){ot(t,e,n,r,h.yr.radius)}function ut(t,e,n,r){ot(t,e,n,r,h.sv.radius)}function at(t,e,n,r,s){const i=t[e],u=t[e+1],a=t[e+2],l=Math.sqrt(i*i+u*u+a*a),_=(0,o.Kt)(a/(0===l?1:l)),c=Math.atan2(u,i);n[r++]=Ct*c,n[r++]=Ct*_,n[r]=l-s}function lt(t,e,n,r){at(t,e,n,r,h.Z1.radius)}function _t(t,e,n,r){at(t,e,n,r,h.yr.radius)}function ct(t,e,n,r){at(t,e,n,r,h.sv.radius)}function Pt(t,e,n,r){!function(t,e,n,r,o){const s=At*t[e],i=At*t[e+1],u=t[e+2],a=Math.sin(i),l=Math.cos(i),_=o.radius/Math.sqrt(1-o.eccentricitySquared*a*a);n[r++]=(_+u)*l*Math.cos(s),n[r++]=(_+u)*l*Math.sin(s),n[r++]=(_*(1-o.eccentricitySquared)+u)*a}(t,e,n,r,h.sv)}function Et(t,e,n,r){const o=C,s=t[e],i=t[e+1],u=t[e+2];let a,l,_,c,P,E,f,M,S,p,R,A,O,N,T,g,d,L,G,y,m;a=Math.abs(u),l=s*s+i*i,_=Math.sqrt(l),c=l+u*u,P=Math.sqrt(c),y=Math.atan2(i,s),E=u*u/c,f=l/c,N=o.a2/P,T=o.a3-o.a4/P,f>.3?(M=a/P*(1+f*(o.a1+N+E*T)/P),G=Math.asin(M),p=M*M,S=Math.sqrt(1-p)):(S=_/P*(1-E*(o.a5-N-f*T)/P),G=Math.acos(S),p=1-S*S,M=Math.sqrt(p)),R=1-h.sv.eccentricitySquared*p,A=h.sv.radius/Math.sqrt(R),O=o.a6*A,N=_-A*S,T=a-O*M,d=S*N+M*T,g=S*T-M*N,L=g/(O/R+d),G+=L,m=d+g*L/2,u<0&&(G=-G),n[r++]=Ct*y,n[r++]=Ct*G,n[r]=m}const ft={[H.WGS84]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:$,[H.PLATE_CARREE]:nt,[H.WGS84]:V,[H.WGS84_ECEF]:Pt},[H.CGCS2000]:{[H.CGCS2000]:V,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:nt,[H.WGS84]:null,[H.WGS84_ECEF]:Pt},[H.GCSMARS2000]:{[H.CGCS2000]:null,[H.GCSMARS2000]:V,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:it,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.GCSMOON2000]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:V,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:st,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.WEB_MERCATOR]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:Q,[H.WGS84_COMPARABLE_LON_LAT]:Q,[H.SPHERICAL_ECEF]:function(t,e,n,r){Q(t,e,n,r),ut(n,r,n,r)},[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:V,[H.PLATE_CARREE]:function(t,e,n,r){Q(t,e,n,r),nt(n,r,n,r)},[H.WGS84]:Q,[H.WGS84_ECEF]:function(t,e,n,r){Q(t,e,n,r),Pt(n,r,n,r)}},[H.WGS84_ECEF]:{[H.CGCS2000]:Et,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:Et,[H.WGS84_COMPARABLE_LON_LAT]:Et,[H.SPHERICAL_ECEF]:function(t,e,n,r){Et(t,e,n,r),ut(n,r,n,r)},[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:function(t,e,n,r){Et(t,e,n,r),$(n,r,n,r)},[H.PLATE_CARREE]:function(t,e,n,r){Et(t,e,n,r),nt(n,r,n,r)},[H.WGS84]:Et,[H.WGS84_ECEF]:V},[H.SPHERICAL_ECEF]:{[H.CGCS2000]:ct,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:ct,[H.WGS84_COMPARABLE_LON_LAT]:ct,[H.SPHERICAL_ECEF]:V,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:function(t,e,n,r){ct(t,e,n,r),$(n,r,n,r)},[H.PLATE_CARREE]:function(t,e,n,r){ct(t,e,n,r),nt(n,r,n,r)},[H.WGS84]:ct,[H.WGS84_ECEF]:function(t,e,n,r){ct(t,e,n,r),Pt(n,r,n,r)}},[H.SPHERICAL_MARS_PCPF]:{[H.CGCS2000]:null,[H.GCSMARS2000]:_t,[H.GCSMOON2000]:null,[H.LON_LAT]:_t,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:V,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.SPHERICAL_MOON_PCPF]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:lt,[H.LON_LAT]:lt,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:V,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.UNKNOWN]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:null,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:V,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.LON_LAT]:{[H.CGCS2000]:V,[H.GCSMARS2000]:V,[H.GCSMOON2000]:V,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:it,[H.SPHERICAL_MOON_PCPF]:st,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:$,[H.PLATE_CARREE]:nt,[H.WGS84]:V,[H.WGS84_ECEF]:Pt},[H.WGS84_COMPARABLE_LON_LAT]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:nt,[H.WGS84]:V,[H.WGS84_ECEF]:Pt},[H.PLATE_CARREE]:{[H.CGCS2000]:rt,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:rt,[H.WGS84_COMPARABLE_LON_LAT]:rt,[H.SPHERICAL_ECEF]:function(t,e,n,r){rt(t,e,n,r),ut(n,r,n,r)},[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:function(t,e,n,r){rt(t,e,n,r),$(n,r,n,r)},[H.PLATE_CARREE]:V,[H.WGS84]:rt,[H.WGS84_ECEF]:function(t,e,n,r){rt(t,e,n,r),Pt(n,r,n,r)}}};function Mt(t,e,n=St()){return null==t||null==e?null:function(t,e,n){if(null==t||null==e||n.source.spatialReference===t&&n.dest.spatialReference===e)return n;const r=J(t,n.source),o=J(e,n.dest);return r===H.UNKNOWN&&o===H.UNKNOWN?(0,N.fS)(t,e)?n.projector=V:n.projector=null:n.projector=ft[r][o],n}(t,e,n).projector}function St(){return{source:{spatialReference:null,spatialReferenceId:H.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:H.UNKNOWN,metersPerUnit:1},projector:V}}const pt={spatialReference:null,spatialReferenceId:H.UNKNOWN},ht={spatialReference:null,spatialReferenceId:H.UNKNOWN},Rt=St(),At=(St(),(0,o.Vl)(1)),Ct=(0,o.BV)(1),Ot=(0,_.c)(),Nt=(0,_.c)(),Tt=(0,_.c)(),gt=(0,_.c)();(0,_.c)()},18571:(t,e,n)=>{n.d(e,{Z:()=>s});let r=0;class o{static fromGE(t){const e=new o;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=r++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=r++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=r++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=r++}getInverse(){const t=new o;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class s{static cacheKey(t,e){return[void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():"",void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():""].join(",")}static fromGE(t){const e=new s;let n="";for(const r of t.steps){const t=o.fromGE(r);e.steps.push(t),n+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=n,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t&&t.steps)for(const e of t.steps)e instanceof o?this.steps.push(e):this.steps.push(new o({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new s;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,n){this._cachedProjection[s.cacheKey(t,e)]=n}getCachedGeTransformation(t,e){let n="";for(const t of this.steps)n+=t.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[s.cacheKey(t,e)];return void 0===r?null:r}}},69285:(t,e,n)=>{n.d(e,{k:()=>s});var r=n(67900),o=n(8744);function s(t,e,n){if(null==e||null==n||n.vcsWkid||(0,o.fS)(e,n))return null;const s=(0,r._R)(e)/(0,r._R)(n);if(1===s)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){t&&null!=t.z&&(t.z*=e)}(t,s);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,s);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,s);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,s);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,s);default:return null}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4547],{52138:(t,e,n)=>{n.d(e,{A:()=>M,a:()=>a,d:()=>f,e:()=>P,f:()=>E,g:()=>h,h:()=>A,i:()=>i,j:()=>C,k:()=>c,m:()=>l,s:()=>s,t:()=>u,w:()=>_,y:()=>N,z:()=>O});var r=n(65617),o=n(46851);function s(t,e,n,r,o,s,i,u,a,l,_,c,P,E,f,M,S){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=u,t[7]=a,t[8]=l,t[9]=_,t[10]=c,t[11]=P,t[12]=E,t[13]=f,t[14]=M,t[15]=S,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],u=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=u}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],u=e[5],a=e[6],l=e[7],_=e[8],c=e[9],P=e[10],E=e[11],f=e[12],M=e[13],S=e[14],p=e[15],h=n*u-r*i,R=n*a-o*i,A=n*l-s*i,C=r*a-o*u,O=r*l-s*u,N=o*l-s*a,T=_*M-c*f,g=_*S-P*f,d=_*p-E*f,L=c*S-P*M,G=c*p-E*M,y=P*p-E*S;let m=h*y-R*G+A*L+C*d-O*g+N*T;return m?(m=1/m,t[0]=(u*y-a*G+l*L)*m,t[1]=(o*G-r*y-s*L)*m,t[2]=(M*N-S*O+p*C)*m,t[3]=(P*O-c*N-E*C)*m,t[4]=(a*d-i*y-l*g)*m,t[5]=(n*y-o*d+s*g)*m,t[6]=(S*A-f*N-p*R)*m,t[7]=(_*N-P*A+E*R)*m,t[8]=(i*G-u*d+l*T)*m,t[9]=(r*d-n*G-s*T)*m,t[10]=(f*O-M*A+p*h)*m,t[11]=(c*A-_*O-E*h)*m,t[12]=(u*g-i*L-a*T)*m,t[13]=(n*L-r*g+o*T)*m,t[14]=(M*R-f*C-S*h)*m,t[15]=(_*C-c*R+P*h)*m,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],u=e[4],a=e[5],l=e[6],_=e[7],c=e[8],P=e[9],E=e[10],f=e[11],M=e[12],S=e[13],p=e[14],h=e[15];let R=n[0],A=n[1],C=n[2],O=n[3];return t[0]=R*r+A*u+C*c+O*M,t[1]=R*o+A*a+C*P+O*S,t[2]=R*s+A*l+C*E+O*p,t[3]=R*i+A*_+C*f+O*h,R=n[4],A=n[5],C=n[6],O=n[7],t[4]=R*r+A*u+C*c+O*M,t[5]=R*o+A*a+C*P+O*S,t[6]=R*s+A*l+C*E+O*p,t[7]=R*i+A*_+C*f+O*h,R=n[8],A=n[9],C=n[10],O=n[11],t[8]=R*r+A*u+C*c+O*M,t[9]=R*o+A*a+C*P+O*S,t[10]=R*s+A*l+C*E+O*p,t[11]=R*i+A*_+C*f+O*h,R=n[12],A=n[13],C=n[14],O=n[15],t[12]=R*r+A*u+C*c+O*M,t[13]=R*o+A*a+C*P+O*S,t[14]=R*s+A*l+C*E+O*p,t[15]=R*i+A*_+C*f+O*h,t}function _(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],u=e[2],a=e[3],l=e[4],_=e[5],c=e[6],P=e[7],E=e[8],f=e[9],M=e[10],S=e[11];t[0]=n,t[1]=i,t[2]=u,t[3]=a,t[4]=l,t[5]=_,t[6]=c,t[7]=P,t[8]=E,t[9]=f,t[10]=M,t[11]=S,t[12]=n*r+l*o+E*s+e[12],t[13]=i*r+_*o+f*s+e[13],t[14]=u*r+c*o+M*s+e[14],t[15]=a*r+P*o+S*s+e[15]}return t}function c(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function P(t,e,n,r){let s,i,u,a,l,_,c,P,E,f,M,S,p,h,R,A,C,O,N,T,g,d,L,G,y=r[0],m=r[1],I=r[2],F=Math.sqrt(y*y+m*m+I*I);return F<(0,o.g)()?null:(F=1/F,y*=F,m*=F,I*=F,s=Math.sin(n),i=Math.cos(n),u=1-i,a=e[0],l=e[1],_=e[2],c=e[3],P=e[4],E=e[5],f=e[6],M=e[7],S=e[8],p=e[9],h=e[10],R=e[11],A=y*y*u+i,C=m*y*u+I*s,O=I*y*u-m*s,N=y*m*u-I*s,T=m*m*u+i,g=I*m*u+y*s,d=y*I*u+m*s,L=m*I*u-y*s,G=I*I*u+i,t[0]=a*A+P*C+S*O,t[1]=l*A+E*C+p*O,t[2]=_*A+f*C+h*O,t[3]=c*A+M*C+R*O,t[4]=a*N+P*T+S*g,t[5]=l*N+E*T+p*g,t[6]=_*N+f*T+h*g,t[7]=c*N+M*T+R*g,t[8]=a*d+P*L+S*G,t[9]=l*d+E*L+p*G,t[10]=_*d+f*L+h*G,t[11]=c*d+M*L+R*G,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function E(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function f(t,e,n){if(0===e)return i(t);let r,s,u,a=n[0],l=n[1],_=n[2],c=Math.sqrt(a*a+l*l+_*_);return c<(0,o.g)()?null:(c=1/c,a*=c,l*=c,_*=c,r=Math.sin(e),s=Math.cos(e),u=1-s,t[0]=a*a*u+s,t[1]=l*a*u+_*r,t[2]=_*a*u-l*r,t[3]=0,t[4]=a*l*u-_*r,t[5]=l*l*u+s,t[6]=_*l*u+a*r,t[7]=0,t[8]=a*_*u+l*r,t[9]=l*_*u-a*r,t[10]=_*_*u+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function S(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],u=r+r,a=o+o,l=s+s,_=r*u,c=r*a,P=r*l,E=o*a,f=o*l,M=s*l,S=i*u,p=i*a,h=i*l;return t[0]=1-(E+M),t[1]=c+h,t[2]=P-p,t[3]=0,t[4]=c-h,t[5]=1-(_+M),t[6]=f+S,t[7]=0,t[8]=P+p,t[9]=f-S,t[10]=1-(_+E),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const p=(0,r.c)();function h(t,e,n,r){const o=e[0],s=e[1],i=e[2],u=e[3],a=o+o,l=s+s,_=i+i,c=o*a,P=o*l,E=o*_,f=s*l,M=s*_,S=i*_,p=u*a,h=u*l,R=u*_,A=r[0],C=r[1],O=r[2];return t[0]=(1-(f+S))*A,t[1]=(P+R)*A,t[2]=(E-h)*A,t[3]=0,t[4]=(P-R)*C,t[5]=(1-(c+S))*C,t[6]=(M+p)*C,t[7]=0,t[8]=(E+h)*O,t[9]=(M-p)*O,t[10]=(1-(c+f))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function R(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function C(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],u=t[4],a=t[5],l=t[6],_=t[7],c=t[8],P=t[9],E=t[10],f=t[11],M=t[12],S=t[13],p=t[14],h=t[15],R=e[0],A=e[1],C=e[2],O=e[3],N=e[4],T=e[5],g=e[6],d=e[7],L=e[8],G=e[9],y=e[10],m=e[11],I=e[12],F=e[13],W=e[14],w=e[15],b=(0,o.g)();return Math.abs(n-R)<=b*Math.max(1,Math.abs(n),Math.abs(R))&&Math.abs(r-A)<=b*Math.max(1,Math.abs(r),Math.abs(A))&&Math.abs(s-C)<=b*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(i-O)<=b*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(u-N)<=b*Math.max(1,Math.abs(u),Math.abs(N))&&Math.abs(a-T)<=b*Math.max(1,Math.abs(a),Math.abs(T))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(_-d)<=b*Math.max(1,Math.abs(_),Math.abs(d))&&Math.abs(c-L)<=b*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(P-G)<=b*Math.max(1,Math.abs(P),Math.abs(G))&&Math.abs(E-y)<=b*Math.max(1,Math.abs(E),Math.abs(y))&&Math.abs(f-m)<=b*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(M-I)<=b*Math.max(1,Math.abs(M),Math.abs(I))&&Math.abs(S-F)<=b*Math.max(1,Math.abs(S),Math.abs(F))&&Math.abs(p-W)<=b*Math.max(1,Math.abs(p),Math.abs(W))&&Math.abs(h-w)<=b*Math.max(1,Math.abs(h),Math.abs(w))}function O(t){const e=(0,o.g)(),n=t[0],r=t[1],s=t[2],i=t[4],u=t[5],a=t[6],l=t[8],_=t[9],c=t[10];return Math.abs(1-(n*n+i*i+l*l))<=e&&Math.abs(1-(r*r+u*u+_*_))<=e&&Math.abs(1-(s*s+a*a+c*c))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const T=l,g=R;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],u=e[5],a=e[6],l=e[7],_=e[8],c=e[9],P=e[10],E=e[11],f=e[12],M=e[13],S=e[14],p=e[15];return t[0]=u*(P*p-E*S)-c*(a*p-l*S)+M*(a*E-l*P),t[1]=-(r*(P*p-E*S)-c*(o*p-s*S)+M*(o*E-s*P)),t[2]=r*(a*p-l*S)-u*(o*p-s*S)+M*(o*l-s*a),t[3]=-(r*(a*E-l*P)-u*(o*E-s*P)+c*(o*l-s*a)),t[4]=-(i*(P*p-E*S)-_*(a*p-l*S)+f*(a*E-l*P)),t[5]=n*(P*p-E*S)-_*(o*p-s*S)+f*(o*E-s*P),t[6]=-(n*(a*p-l*S)-i*(o*p-s*S)+f*(o*l-s*a)),t[7]=n*(a*E-l*P)-i*(o*E-s*P)+_*(o*l-s*a),t[8]=i*(c*p-E*M)-_*(u*p-l*M)+f*(u*E-l*c),t[9]=-(n*(c*p-E*M)-_*(r*p-s*M)+f*(r*E-s*c)),t[10]=n*(u*p-l*M)-i*(r*p-s*M)+f*(r*l-s*u),t[11]=-(n*(u*E-l*c)-i*(r*E-s*c)+_*(r*l-s*u)),t[12]=-(i*(c*S-P*M)-_*(u*S-a*M)+f*(u*P-a*c)),t[13]=n*(c*S-P*M)-_*(r*S-o*M)+f*(r*P-o*c),t[14]=-(n*(u*S-a*M)-i*(r*S-o*M)+f*(r*a-o*u)),t[15]=n*(u*P-a*c)-i*(r*P-o*c)+_*(r*a-o*u),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],u=t[6],a=t[7],l=t[8],_=t[9],c=t[10],P=t[11],E=t[12],f=t[13],M=t[14],S=t[15];return(e*i-n*s)*(c*S-P*M)-(e*u-r*s)*(_*S-P*f)+(e*a-o*s)*(_*M-c*f)+(n*u-r*i)*(l*S-P*E)-(n*a-o*i)*(l*M-c*E)+(r*a-o*u)*(l*f-_*E)},equals:C,exactEquals:A,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,u=r+r,a=o+o,l=n*i,_=r*i,c=r*u,P=o*i,E=o*u,f=o*a,M=s*i,S=s*u,p=s*a;return t[0]=1-c-f,t[1]=_+p,t[2]=P-S,t[3]=0,t[4]=_-p,t[5]=1-l-f,t[6]=E+M,t[7]=0,t[8]=P+S,t[9]=E-M,t[10]=1-l-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=p,r=-e[0],o=-e[1],s=-e[2],i=e[3],u=e[4],a=e[5],l=e[6],_=e[7],c=r*r+o*o+s*s+i*i;return c>0?(n[0]=2*(u*i+_*r+a*s-l*o)/c,n[1]=2*(a*i+_*o+l*r-u*s)/c,n[2]=2*(l*i+_*s+u*o-a*r)/c):(n[0]=2*(u*i+_*r+a*s-l*o),n[1]=2*(a*i+_*o+l*r-u*s),n[2]=2*(l*i+_*s+u*o-a*r)),S(t,e,n),t},fromRotation:f,fromRotationTranslation:S,fromRotationTranslationScale:h,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const s=e[0],i=e[1],u=e[2],a=e[3],l=s+s,_=i+i,c=u+u,P=s*l,E=s*_,f=s*c,M=i*_,S=i*c,p=u*c,h=a*l,R=a*_,A=a*c,C=r[0],O=r[1],N=r[2],T=o[0],g=o[1],d=o[2],L=(1-(M+p))*C,G=(E+A)*C,y=(f-R)*C,m=(E-A)*O,I=(1-(P+p))*O,F=(S+h)*O,W=(f+R)*N,w=(S-h)*N,b=(1-(P+M))*N;return t[0]=L,t[1]=G,t[2]=y,t[3]=0,t[4]=m,t[5]=I,t[6]=F,t[7]=0,t[8]=W,t[9]=w,t[10]=b,t[11]=0,t[12]=n[0]+T-(L*T+m*g+W*d),t[13]=n[1]+g-(G*T+I*g+w*d),t[14]=n[2]+d-(y*T+F*g+b*d),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:E,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,s,i){const u=1/(n-e),a=1/(o-r),l=1/(s-i);return t[0]=2*s*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*a,t[6]=0,t[7]=0,t[8]=(n+e)*u,t[9]=(o+r)*a,t[10]=(i+s)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*l,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],u=e[6],a=e[8],l=e[9],_=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+u*u),t[2]=Math.sqrt(a*a+l*l+_*_),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:N,identity:i,invert:a,invertOrIdentity:function(t,e){return a(t,e)||i(t),t},isOrthoNormal:O,lookAt:function(t,e,n,r){const s=e[0],u=e[1],a=e[2];let l=s-n[0],_=u-n[1],c=a-n[2];const P=(0,o.g)();if(Math.abs(l)<P&&Math.abs(_)<P&&Math.abs(c)<P)return void i(t);let E=1/Math.sqrt(l*l+_*_+c*c);l*=E,_*=E,c*=E;const f=r[0],M=r[1],S=r[2];let p=M*c-S*_,h=S*l-f*c,R=f*_-M*l;E=Math.sqrt(p*p+h*h+R*R),E?(E=1/E,p*=E,h*=E,R*=E):(p=0,h=0,R=0);let A=_*R-c*h,C=c*p-l*R,O=l*h-_*p;E=Math.sqrt(A*A+C*C+O*O),E?(E=1/E,A*=E,C*=E,O*=E):(A=0,C=0,O=0),t[0]=p,t[1]=A,t[2]=l,t[3]=0,t[4]=h,t[5]=C,t[6]=_,t[7]=0,t[8]=R,t[9]=O,t[10]=c,t[11]=0,t[12]=-(p*s+h*u+R*a),t[13]=-(A*s+C*u+O*a),t[14]=-(l*s+_*u+c*a),t[15]=1},mul:T,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,i){const u=1/(e-n),a=1/(r-o),l=1/(s-i);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*u,t[13]=(o+r)*a,t[14]=(i+s)*l,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),a=2/(i+u),l=2/(o+s);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(i-u)*a*.5,t[9]=(o-s)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:P,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],u=e[6],a=e[7],l=e[8],_=e[9],c=e[10],P=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+l*r,t[5]=i*o+_*r,t[6]=u*o+c*r,t[7]=a*o+P*r,t[8]=l*o-s*r,t[9]=_*o-i*r,t[10]=c*o-u*r,t[11]=P*o-a*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],u=e[2],a=e[3],l=e[8],_=e[9],c=e[10],P=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-l*r,t[1]=i*o-_*r,t[2]=u*o-c*r,t[3]=a*o-P*r,t[8]=s*r+l*o,t[9]=i*r+_*o,t[10]=u*r+c*o,t[11]=a*r+P*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],u=e[2],a=e[3],l=e[4],_=e[5],c=e[6],P=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+l*r,t[1]=i*o+_*r,t[2]=u*o+c*r,t[3]=a*o+P*r,t[4]=l*o-s*r,t[5]=_*o-i*r,t[6]=c*o-u*r,t[7]=P*o-a*r,t},scale:c,set:s,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:g,subtract:R,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],u=r[0],a=r[1],l=r[2];let _=o-n[0],c=s-n[1],P=i-n[2],E=_*_+c*c+P*P;E>0&&(E=1/Math.sqrt(E),_*=E,c*=E,P*=E);let f=a*P-l*c,M=l*_-u*P,S=u*c-a*_;return E=f*f+M*M+S*S,E>0&&(E=1/Math.sqrt(E),f*=E,M*=E,S*=E),t[0]=f,t[1]=M,t[2]=S,t[3]=0,t[4]=c*S-P*M,t[5]=P*f-_*S,t[6]=_*M-c*f,t[7]=0,t[8]=_,t[9]=c,t[10]=P,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:_,transpose:u},Symbol.toStringTag,{value:"Module"}))},83305:(t,e,n)=>{n.d(e,{e:()=>c,f:()=>_,g:()=>l,h:()=>S,i:()=>u,j:()=>C,l:()=>a,p:()=>G});var r=n(99880),o=n(80442);let s,i=null;function u(){return!!i}function a(){return s||(s=n.e(6774).then(n.bind(n,66774)).then((t=>t.p)).then((({default:t})=>t({locateFile:t=>(0,r.V)(`esri/geometry/support/${t}`)}))).then((t=>{N(t)})),s)}var l,_,c,P;!function(t){function e(t,e,n){i.ensureCache.prepare();const r=d(n),o=n===r,s=i.ensureFloat64(r),u=i._pe_geog_to_proj(i.getPointer(t),e,s);return u&&L(n,e,s,o),u}function n(t,e,n){return r(t,e,n,0)}function r(t,e,n,r){i.ensureCache.prepare();const o=d(n),s=n===o,u=i.ensureFloat64(o),a=i._pe_proj_to_geog_center(i.getPointer(t),e,u,r);return a&&L(n,e,u,s),a}t.geogToProj=e,t.projGeog=function(t,r,o,s){switch(s){case _.PE_TRANSFORM_P_TO_G:return n(t,r,o);case _.PE_TRANSFORM_G_TO_P:return e(t,r,o)}return 0},t.projToGeog=n,t.projToGeogCenter=r}(l||(l={})),(P=_||(_={})).init=function(){P.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,P.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,P.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,P.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,P.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,P.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,P.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,P.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,P.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,P.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,P.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,P.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,P.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,P.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,P.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,P.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,P.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,P.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,P.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,P.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,P.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,P.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,P.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,P.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,P.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,P.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,P.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,P.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,P.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,P.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(t){const e={},n={},r=t=>{if(t){const e=t.getType();switch(e){case _.PE_TYPE_GEOGCS:t=i.castObject(t,i.PeGeogcs);break;case _.PE_TYPE_PROJCS:t=i.castObject(t,i.PeProjcs);break;case _.PE_TYPE_GEOGTRAN:t=i.castObject(t,i.PeGeogtran);break;default:e&_.PE_TYPE_UNIT&&(t=i.castObject(t,i.PeUnit))}}return t};function o(t,n){let o=null,s=e[t];if(s||(s={},e[t]=s),s.hasOwnProperty(String(n)))o=s[n];else{const e=i.PeFactory.prototype.factoryByType(t,n);i.compare(e,i.NULL)||(o=e,s[n]=o)}return o=r(o),o}t.initialize=function(){i.PeFactory.prototype.initialize(null)},t.coordsys=function(t){return o(_.PE_TYPE_COORDSYS,t)},t.factoryByType=o,t.fromString=function(t,e){let o=null,s=n[t];if(s||(s={},n[t]=s),s.hasOwnProperty(e))o=s[e];else{const n=i.PeFactory.prototype.fromString(t,e);i.compare(n,i.NULL)||(o=n,s[e]=o)}return o=r(o),o},t.geogcs=function(t){return o(_.PE_TYPE_GEOGCS,t)},t.geogtran=function(t){return o(_.PE_TYPE_GEOGTRAN,t)},t.getCode=function(t){return i.PeFactory.prototype.getCode(t)},t.projcs=function(t){return o(_.PE_TYPE_PROJCS,t)},t.unit=function(t){return o(_.PE_TYPE_UNIT,t)}}(c||(c={}));let E=null;var f,M,S,p,h,R,A,C,O;function N(t){function e(t,e,n){t[e]=n(t[e])}i=t,_.init(),f.init(),h.init(),A.init(),C.init(),E=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const n=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const t of n)e(t.prototype,"getName",(t=>function(){return t.call(this,new Array(_.PE_NAME_MAX))}));for(const t of[i.PeGeogtran,i.PeProjcs])e(t.prototype,"getParameters",(t=>function(){const e=new Array(_.PE_PARM_MAX);let n=t.call(this);for(let t=0;t<e.length;t++){const r=i.getValue(n,"*");e[t]=r?i.wrapPointer(r,i.PeParameter):null,n+=Int32Array.BYTES_PER_ELEMENT}return e}));e(i.PeHorizon.prototype,"getCoord",(t=>function(){const e=this.getSize();if(!e)return null;const n=[];return L(n,e,t.call(this)),n})),e(i.PeGTlistExtendedEntry.prototype,"getEntries",(t=>{const e=i._pe_getPeGTlistExtendedGTsSize();return function(){let n=null;const r=t.call(this);if(!i.compare(r,i.NULL)){n=[r];const t=this.getSteps();if(t>1){const o=i.getPointer(r);for(let r=1;r<t;r++)n.push(i.wrapPointer(o+e*r,i.PeGTlistExtendedGTs))}}return n}}));const r=i._pe_getPeHorizonSize(),o=t=>function(){let e=this._cache;if(e||(e=new Map,this._cache=e),e.has(t))return e.get(t);let n=null;const o=t.call(this);if(!i.compare(o,i.NULL)){n=[o];const t=o.getNump();if(t>1){const e=i.getPointer(o);for(let o=1;o<t;o++)n.push(i.wrapPointer(e+r*o,i.PeHorizon))}}return e.set(t,n),n};e(i.PeProjcs.prototype,"horizonGcsGenerate",o),e(i.PeProjcs.prototype,"horizonPcsGenerate",o),i.PeObject.prototype.toString=function(t=_.PE_STR_OPTS_NONE){i.ensureCache.prepare();const e=i.getPointer(this),n=i.ensureInt8(new Array(_.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(e,t,n))}}function T(t){if(!t)return;const e=i.getClass(t);if(!e)return;const n=i.getCache(e);if(!n)return;const r=i.getPointer(t);r&&delete n[r]}function g(t,e){const n=[],r=new Array(e);for(let e=0;e<t;e++)n.push(i.ensureInt8(r));return n}function d(t){let e;return Array.isArray(t[0])?(e=[],t.forEach((t=>{e.push(t[0],t[1])}))):e=t,e}function L(t,e,n,r=!1){if(r)for(let r=0;r<2*e;r++)t[r]=i.getValue(n+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===t.length;for(let o=0;o<e;o++)r&&(t[o]=new Array(2)),t[o][0]=i.getValue(n,"double"),t[o][1]=i.getValue(n+Float64Array.BYTES_PER_ELEMENT,"double"),n+=2*Float64Array.BYTES_PER_ELEMENT}}!function(t){let e;t.init=function(){t.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=i._pe_getPeGTlistExtendedEntrySize()},t.getGTlist=function(t,n,r,o,s,u){let a=null;const l=new i.PeInteger(u);try{const _=i.PeGTlistExtended.prototype.getGTlist(t,n,r,o,s,l);if((u=l.val)&&(a=[_],u>1)){const t=i.getPointer(_);for(let n=1;n<u;n++)a.push(i.wrapPointer(t+e*n,i.PeGTlistExtendedEntry))}}finally{i.destroy(l)}return a}}(f||(f={})),function(t){t.destroy=function(t){if(t&&t.length){for(const e of t)T(e),e.getEntries().forEach((t=>{T(t);const e=t.getGeogtran();T(e),e.getParameters().forEach(T),[e.getGeogcs1(),e.getGeogcs2()].forEach((t=>{T(t);const e=t.getDatum();T(e),T(e.getSpheroid()),T(t.getPrimem()),T(t.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(t[0])}}}(M||(M={})),function(t){t.geogToGeog=function(t,e,n,r,o){i.ensureCache.prepare();const s=d(n),u=n===s,a=i.ensureFloat64(s);let l=0;r&&(l=i.ensureFloat64(r));const _=i._pe_geog_to_geog(i.getPointer(t),e,a,l,o);return _&&L(n,e,a,u),_}}(S||(S={})),function(t){const e=(t,e,n,r,o,s)=>{let u,a;switch(i.ensureCache.prepare(),t){case"dd":u=i._pe_geog_to_dd,a=_.PE_DD_MAX;break;case"ddm":u=i._pe_geog_to_ddm,a=_.PE_DDM_MAX;break;case"dms":u=i._pe_geog_to_dms,a=_.PE_DMS_MAX}let l=0;e&&(l=i.getPointer(e));const c=d(r),P=i.ensureFloat64(c),E=g(n,a),f=u(l,n,P,o,i.ensureInt32(E));if(f)for(let t=0;t<n;t++)s[t]=i.UTF8ToString(E[t]);return f},n=(t,e,n,r,o)=>{let s;switch(i.ensureCache.prepare(),t){case"dd":s=i._pe_dd_to_geog;break;case"ddm":s=i._pe_ddm_to_geog;break;case"dms":s=i._pe_dms_to_geog}let u=0;e&&(u=i.getPointer(e));const a=r.map((t=>i.ensureString(t))),l=i.ensureInt32(a),_=i.ensureFloat64(new Array(2*n)),c=s(u,n,l,_);return c&&L(o,n,_),c};t.geogToDms=function(t,n,r,o,s){return e("dms",t,n,r,o,s)},t.dmsToGeog=function(t,e,r,o){return n("dms",t,e,r,o)},t.geogToDdm=function(t,n,r,o,s){return e("ddm",t,n,r,o,s)},t.ddmToGeog=function(t,e,r,o){return n("ddm",t,e,r,o)},t.geogToDd=function(t,n,r,o,s){return e("dd",t,n,r,o,s)},t.ddToGeog=function(t,e,r,o){return n("dd",t,e,r,o)}}(p||(p={})),function(t){t.init=function(){t.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},t.geogToMgrsExtended=function(t,e,n,r,o,s,u){i.ensureCache.prepare();let a=0;t&&(a=i.getPointer(t));const l=d(n),c=i.ensureFloat64(l),P=g(e,_.PE_MGRS_MAX),E=i.ensureInt32(P),f=i._pe_geog_to_mgrs_extended(a,e,c,r,o,s,E);if(f)for(let t=0;t<e;t++)u[t]=i.UTF8ToString(P[t]);return f},t.mgrsToGeogExtended=function(t,e,n,r,o){i.ensureCache.prepare();let s=0;t&&(s=i.getPointer(t));const u=n.map((t=>i.ensureString(t))),a=i.ensureInt32(u),l=i.ensureFloat64(new Array(2*e)),_=i._pe_mgrs_to_geog_extended(s,e,a,r,l);return _&&L(o,e,l),_}}(h||(h={})),function(t){t.geogToUsng=function(t,e,n,r,o,s,u){i.ensureCache.prepare();let a=0;t&&(a=i.getPointer(t));const l=d(n),c=i.ensureFloat64(l),P=g(e,_.PE_MGRS_MAX),E=i.ensureInt32(P),f=i._pe_geog_to_usng(a,e,c,r,o,s,E);if(f)for(let t=0;t<e;t++)u[t]=i.UTF8ToString(P[t]);return f},t.usngToGeog=function(t,e,n,r){i.ensureCache.prepare();let o=0;t&&(o=i.getPointer(t));const s=n.map((t=>i.ensureString(t))),u=i.ensureInt32(s),a=i.ensureFloat64(new Array(2*e)),l=i._pe_usng_to_geog(o,e,u,a);return l&&L(r,e,a),l}}(R||(R={})),function(t){t.init=function(){t.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},t.geogToUtm=function(t,e,n,r,o){i.ensureCache.prepare();let s=0;t&&(s=i.getPointer(t));const u=d(n),a=i.ensureFloat64(u),l=g(e,_.PE_UTM_MAX),c=i.ensureInt32(l),P=i._pe_geog_to_utm(s,e,a,r,c);if(P)for(let t=0;t<e;t++)o[t]=i.UTF8ToString(l[t]);return P},t.utmToGeog=function(t,e,n,r,o){i.ensureCache.prepare();let s=0;t&&(s=i.getPointer(t));const u=n.map((t=>i.ensureString(t))),a=i.ensureInt32(u),l=i.ensureFloat64(new Array(2*e)),_=i._pe_utm_to_geog(s,e,a,r,l);return _&&L(o,e,l),_}}(A||(A={})),function(t){const e=new Map;t.init=function(){t.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},t.generate=function(n,r=t.PE_PCSINFO_OPTION_DOMAIN){let o=null,s=null;return e.has(n)&&(s=e.get(n),s[r]&&(o=s[r])),o||(o=i.PePCSInfo.prototype.generate(n,r),s||(s=[],e.set(n,s)),s[r]=o),o}}(C||(C={})),function(t){t.versionString=function(){return i.PeVersion.prototype.version_string()}}(O||(O={}));const G=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return l},get PeDefs(){return _},get PeFactory(){return c},get PeGCSExtent(){return E},get PeGTTransformations(){return S},get PeGTlistExtended(){return f},get PeGTlistExtendedEntry(){return M},get PeNotationDms(){return p},get PeNotationMgrs(){return h},get PeNotationUsng(){return R},get PeNotationUtm(){return A},get PePCSInfo(){return C},get PeVersion(){return O},_init:N,get _pe(){return i},isLoaded:u,isSupported:function(){return!!(0,o.Z)("esri-wasm")},load:a},Symbol.toStringTag,{value:"Module"}))},44547:(t,e,n)=>{n.d(e,{Up:()=>k,Bm:()=>K,iQ:()=>v,kR:()=>I,zD:()=>F,iV:()=>W,CM:()=>Z,oj:()=>w,dz:()=>b,JY:()=>D,KC:()=>B,Wt:()=>x});var r=n(20102),o=n(22021),s=n(95330),i=n(67900),u=n(58971),a=n(10661),l=n(52138),_=(n(17896),n(65617)),c=n(2109),P=n(6570),E=n(65091),f=n(83305),M=n(94139),S=n(38913),p=n(58901),h=(n(24470),n(68441));Math.PI;const R=h.sv.radius,A=h.sv.eccentricitySquared,C={a1:R*A,a2:R*A*R*A,a3:R*A*A/2,a4:R*A*R*A*2.5,a5:R*A+R*A*A/2,a6:1-A};h.sv.radius,h.sv.flattening,h.Z1.radius,h.Z1.flattening,h.yr.radius,h.yr.flattening,h.yr.radius;var O=n(18571),N=n(8744),T=n(56726),g=n(69285);let d=null,L=null,G=null,y={};const m=new a.s;function I(){return!!d&&(0,f.i)()}function F(t){return null==G&&(G=Promise.all([(0,f.l)(),Promise.all([n.e(5837),n.e(5732)]).then(n.bind(n,45837)).then((t=>t.g)),n.e(819).then(n.bind(n,80819))])),G.then((([,e,{hydratedAdapter:n}])=>{(0,s.k_)(t),L=n,d=e.default,d._enableProjection(f.p),m.notify()}))}function W(t,e,n=null,r=null){return Array.isArray(t)?0===t.length?[]:w(L,t,t[0].spatialReference,e,n,r):w(L,[t],t.spatialReference,e,n,r)[0]}function w(t,e,n,r,o=null,s=null){if(null==n||null==r)return e;if(k(n,r,o))return e.map((t=>function(t,e,n){return t?"x"in t?function(t,e,n,r,o){gt[0]=t.x,gt[1]=t.y;const s=t.z;return gt[2]=void 0!==s?s:o,Z(gt,e,0,gt,r,0,1)?(n.x=gt[0],n.y=gt[1],n.spatialReference=r,void 0===s?(n.z=void 0,n.hasZ=!1):(n.z=gt[2],n.hasZ=!0),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}(t,e,new M.Z,n,0):"xmin"in t?function(t,e,n,r,o){const{xmin:s,ymin:i,xmax:u,ymax:a,hasZ:l,hasM:_}=t;return j(s,i,l?t.zmin:o,e,gt,r)?(n.xmin=gt[0],n.ymin=gt[1],l&&(n.zmin=gt[2]),j(u,a,l?t.zmax:o,e,gt,r)?(n.xmax=gt[0],n.ymax=gt[1],l&&(n.zmax=gt[2]),_&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null):null}(t,e,new P.Z,n,0):"rings"in t?Y(t,e,new S.Z,n,0):"paths"in t?function(t,e,n,r,o){const{paths:s,hasZ:i,hasM:u}=t,a=[];return z(s,i??!1,u??!1,e,a,r,o)?(n.paths=a,n.spatialReference=r,n.hasZ=i,n.hasM=u,n):null}(t,e,new p.Z,n,0):"points"in t?function(t,e,n,r,o){const{points:s,hasZ:i,hasM:u}=t,a=[],l=s.length,_=[];for(const t of s)_.push(t[0],t[1],i?t[2]:o);if(!Z(_,e,0,_,r,0,l))return null;for(let t=0;t<l;++t){const e=3*t,n=_[e],r=_[e+1];i&&u?a.push([n,r,_[e+2],s[t][3]]):i?a.push([n,r,_[e+2]]):u?a.push([n,r,s[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=i,n.hasM=u,n}(t,e,new E.Z,n,0):null:null}(t,n,r)));if(null==o){const t=O.Z.cacheKey(n,r);void 0!==y[t]?o=y[t]:(null==(o=function(t,e,n=null){if(null==t||null==e)return null;if(null==d||null==L)throw new U;const r=d._getTransformation(L,t,e,n,n?.spatialReference);return null!==r?O.Z.fromGE(r):null}(n,r,void 0))&&(o=new O.Z),y[t]=o)}if(null==d||null==t)throw new U;return null!=s?d._project(t,e,n,r,o,s):d._project(t,e,n,r,o)}function b(t,e){const n=D([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function D(t,e){if(!I())for(const n of t)if(null!=n&&!(0,N.fS)(n.spatialReference,e)&&(0,N.JY)(n.spatialReference)&&(0,N.JY)(e)&&!k(n.spatialReference,e))return(0,u.it)(m),{pending:F(),geometries:null};return{pending:null,geometries:t.map((t=>null==t?null:(0,N.fS)(t.spatialReference,e)?t:(0,N.JY)(t.spatialReference)&&(0,N.JY)(e)?function(t,e){try{const n=W(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const r=(0,g.k)(n.type,t.spatialReference,e);return null!=r&&r(n),n}catch(t){if(!(t instanceof U))throw t;return null}}(t,e):null))}}class U extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var H;function k(t,e,n){return!n&&(!!(0,N.fS)(t,e)||(0,N.JY)(t)&&(0,N.JY)(e)&&!!Mt(t,e,Rt))}async function v(t,e,n,r){if(I())return(0,s.Yn)(r);if(Array.isArray(t)){for(const{source:e,dest:n,geographicTransformation:o}of t)if(!k(e,n,o))return F(r)}else if(!k(t,e,n))return F(r);return(0,s.Yn)(r)}function x(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,o){const{rings:s,hasZ:i,hasM:u}=t,a=[];return z(s,i??!1,u??!1,e,a,r,o)?(n.rings=a,n.spatialReference=r,n.hasZ=i,n.hasM=u,n):null}function B(t,e,n,r=0){gt[0]=t.x,gt[1]=t.y;const o=t.z;return gt[2]=void 0!==o?o:r,Z(gt,t.spatialReference,0,e,n,0,1)}function j(t,e,n,r,o,s){return Ot[0]=t,Ot[1]=e,Ot[2]=n,Z(Ot,r,0,o,s,0,1)}function Z(t,e,n,r,o,s,i=1){const u=Mt(e,o,Rt);if(null==u)return!1;if(u===V){if(t===r&&n===s)return!0;const e=n+3*i;for(let o=n,i=s;o<e;o++,i++)r[i]=t[o];return!0}const a=n+3*i;for(let e=n,o=s;e<a;e+=3,o+=3)u(t,e,r,o);return!0}function z(t,e,n,r,o,s,i=0){const u=new Array;for(const n of t)for(const t of n)u.push(t[0],t[1],e?t[2]:i);if(!Z(u,r,0,u,s,0,u.length/3))return!1;let a=0;o.length=0;for(const r of t){const t=new Array;for(const o of r)e&&n?t.push([u[a++],u[a++],u[a++],o[3]]):e?t.push([u[a++],u[a++],u[a++]]):n?(t.push([u[a++],u[a++],o[2]]),a++):(t.push([u[a++],u[a++]]),a++);o.push(t)}return!0}function K(t,e,n,r){if(null==t||null==r)return!1;const o=J(t,pt),s=J(r,ht);if(o===s&&!X(s)&&(o!==H.UNKNOWN||(0,N.fS)(t,r)))return(0,l.f)(n,e),!0;if(X(s)){const t=ft[o][H.LON_LAT],r=ft[H.LON_LAT][s];return null!=t&&null!=r&&(t(e,0,Nt,0),r(Nt,0,Tt,0),q(At*Nt[0],At*Nt[1],n),n[12]=Tt[0],n[13]=Tt[1],n[14]=Tt[2],!0)}if((s===H.WEB_MERCATOR||s===H.PLATE_CARREE)&&(o===H.WGS84||o===H.CGCS2000&&s===H.PLATE_CARREE||o===H.SPHERICAL_ECEF||o===H.WEB_MERCATOR)){const t=ft[o][H.LON_LAT],r=ft[H.LON_LAT][s];return null!=t&&null!=r&&(t(e,0,Nt,0),r(Nt,0,Tt,0),o===H.SPHERICAL_ECEF?function(t,e,n){q(t,e,n),(0,l.t)(n,n)}(At*Nt[0],At*Nt[1],n):(0,l.i)(n),n[12]=Tt[0],n[13]=Tt[1],n[14]=Tt[2],!0)}return!1}function X(t){return t===H.SPHERICAL_ECEF||t===H.SPHERICAL_MARS_PCPF||t===H.SPHERICAL_MOON_PCPF}function q(t,e,n){const r=Math.sin(t),o=Math.cos(t),s=Math.sin(e),i=Math.cos(e),u=n;return u[0]=-r,u[4]=-s*o,u[8]=i*o,u[12]=0,u[1]=o,u[5]=-s*r,u[9]=i*r,u[13]=0,u[2]=0,u[6]=i,u[10]=s,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}function J(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.c9)(t,1)),t.wkt===c.kU.wkt?e.spatialReferenceId=H.SPHERICAL_ECEF:(0,N.oR)(t)?e.spatialReferenceId=H.WGS84:(0,N.sS)(t)?e.spatialReferenceId=H.WEB_MERCATOR:(0,N.QM)(t)?e.spatialReferenceId=H.PLATE_CARREE:t.wkt===c.pn.wkt?e.spatialReferenceId=H.WGS84_ECEF:t.wkid===T.W.CGCS2000?e.spatialReferenceId=H.CGCS2000:t.wkt===c.JL.wkt?e.spatialReferenceId=H.SPHERICAL_MARS_PCPF:t.wkt===c.mM.wkt?e.spatialReferenceId=H.SPHERICAL_MOON_PCPF:(0,N.BZ)(t)?e.spatialReferenceId=H.GCSMARS2000:(0,N.V2)(t)?e.spatialReferenceId=H.GCSMOON2000:e.spatialReferenceId=H.UNKNOWN):H.UNKNOWN}function V(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function Q(t,e,n,r){n[r++]=Ct*(t[e++]/h.sv.radius),n[r++]=Ct*(Math.PI/2-2*Math.atan(Math.exp(-t[e++]/h.sv.radius))),n[r]=t[e]}function $(t,e,n,r){!function(t,e,n,r,s){const i=.4999999*Math.PI,u=(0,o.uZ)(At*t[e+1],-i,i),a=Math.sin(u);n[r++]=At*t[e]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=t[e+2]}(t,e,n,r,h.sv)}!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",t[t.WGS84=2]="WGS84",t[t.WEB_MERCATOR=3]="WEB_MERCATOR",t[t.WGS84_ECEF=4]="WGS84_ECEF",t[t.CGCS2000=5]="CGCS2000",t[t.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",t[t.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",t[t.GCSMARS2000=8]="GCSMARS2000",t[t.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",t[t.GCSMOON2000=10]="GCSMOON2000",t[t.LON_LAT=11]="LON_LAT",t[t.PLATE_CARREE=12]="PLATE_CARREE"}(H||(H={}));const tt=h.sv.radius*Math.PI/180,et=180/(h.sv.radius*Math.PI);function nt(t,e,n,r){n[r]=t[e]*tt,n[r+1]=t[e+1]*tt,n[r+2]=t[e+2]}function rt(t,e,n,r){n[r]=t[e]*et,n[r+1]=t[e+1]*et,n[r+2]=t[e+2]}function ot(t,e,n,r,o){const s=o+t[e+2],i=At*t[e+1],u=At*t[e],a=Math.cos(i);n[r++]=Math.cos(u)*a*s,n[r++]=Math.sin(u)*a*s,n[r]=Math.sin(i)*s}function st(t,e,n,r){ot(t,e,n,r,h.Z1.radius)}function it(t,e,n,r){ot(t,e,n,r,h.yr.radius)}function ut(t,e,n,r){ot(t,e,n,r,h.sv.radius)}function at(t,e,n,r,s){const i=t[e],u=t[e+1],a=t[e+2],l=Math.sqrt(i*i+u*u+a*a),_=(0,o.Kt)(a/(0===l?1:l)),c=Math.atan2(u,i);n[r++]=Ct*c,n[r++]=Ct*_,n[r]=l-s}function lt(t,e,n,r){at(t,e,n,r,h.Z1.radius)}function _t(t,e,n,r){at(t,e,n,r,h.yr.radius)}function ct(t,e,n,r){at(t,e,n,r,h.sv.radius)}function Pt(t,e,n,r){!function(t,e,n,r,o){const s=At*t[e],i=At*t[e+1],u=t[e+2],a=Math.sin(i),l=Math.cos(i),_=o.radius/Math.sqrt(1-o.eccentricitySquared*a*a);n[r++]=(_+u)*l*Math.cos(s),n[r++]=(_+u)*l*Math.sin(s),n[r++]=(_*(1-o.eccentricitySquared)+u)*a}(t,e,n,r,h.sv)}function Et(t,e,n,r){const o=C,s=t[e],i=t[e+1],u=t[e+2];let a,l,_,c,P,E,f,M,S,p,R,A,O,N,T,g,d,L,G,y,m;a=Math.abs(u),l=s*s+i*i,_=Math.sqrt(l),c=l+u*u,P=Math.sqrt(c),y=Math.atan2(i,s),E=u*u/c,f=l/c,N=o.a2/P,T=o.a3-o.a4/P,f>.3?(M=a/P*(1+f*(o.a1+N+E*T)/P),G=Math.asin(M),p=M*M,S=Math.sqrt(1-p)):(S=_/P*(1-E*(o.a5-N-f*T)/P),G=Math.acos(S),p=1-S*S,M=Math.sqrt(p)),R=1-h.sv.eccentricitySquared*p,A=h.sv.radius/Math.sqrt(R),O=o.a6*A,N=_-A*S,T=a-O*M,d=S*N+M*T,g=S*T-M*N,L=g/(O/R+d),G+=L,m=d+g*L/2,u<0&&(G=-G),n[r++]=Ct*y,n[r++]=Ct*G,n[r]=m}const ft={[H.WGS84]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:$,[H.PLATE_CARREE]:nt,[H.WGS84]:V,[H.WGS84_ECEF]:Pt},[H.CGCS2000]:{[H.CGCS2000]:V,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:nt,[H.WGS84]:null,[H.WGS84_ECEF]:Pt},[H.GCSMARS2000]:{[H.CGCS2000]:null,[H.GCSMARS2000]:V,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:it,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.GCSMOON2000]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:V,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:st,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.WEB_MERCATOR]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:Q,[H.WGS84_COMPARABLE_LON_LAT]:Q,[H.SPHERICAL_ECEF]:function(t,e,n,r){Q(t,e,n,r),ut(n,r,n,r)},[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:V,[H.PLATE_CARREE]:function(t,e,n,r){Q(t,e,n,r),nt(n,r,n,r)},[H.WGS84]:Q,[H.WGS84_ECEF]:function(t,e,n,r){Q(t,e,n,r),Pt(n,r,n,r)}},[H.WGS84_ECEF]:{[H.CGCS2000]:Et,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:Et,[H.WGS84_COMPARABLE_LON_LAT]:Et,[H.SPHERICAL_ECEF]:function(t,e,n,r){Et(t,e,n,r),ut(n,r,n,r)},[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:function(t,e,n,r){Et(t,e,n,r),$(n,r,n,r)},[H.PLATE_CARREE]:function(t,e,n,r){Et(t,e,n,r),nt(n,r,n,r)},[H.WGS84]:Et,[H.WGS84_ECEF]:V},[H.SPHERICAL_ECEF]:{[H.CGCS2000]:ct,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:ct,[H.WGS84_COMPARABLE_LON_LAT]:ct,[H.SPHERICAL_ECEF]:V,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:function(t,e,n,r){ct(t,e,n,r),$(n,r,n,r)},[H.PLATE_CARREE]:function(t,e,n,r){ct(t,e,n,r),nt(n,r,n,r)},[H.WGS84]:ct,[H.WGS84_ECEF]:function(t,e,n,r){ct(t,e,n,r),Pt(n,r,n,r)}},[H.SPHERICAL_MARS_PCPF]:{[H.CGCS2000]:null,[H.GCSMARS2000]:_t,[H.GCSMOON2000]:null,[H.LON_LAT]:_t,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:V,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.SPHERICAL_MOON_PCPF]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:lt,[H.LON_LAT]:lt,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:V,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.UNKNOWN]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:null,[H.WGS84_COMPARABLE_LON_LAT]:null,[H.SPHERICAL_ECEF]:null,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:V,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:null,[H.WGS84]:null,[H.WGS84_ECEF]:null},[H.LON_LAT]:{[H.CGCS2000]:V,[H.GCSMARS2000]:V,[H.GCSMOON2000]:V,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:it,[H.SPHERICAL_MOON_PCPF]:st,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:$,[H.PLATE_CARREE]:nt,[H.WGS84]:V,[H.WGS84_ECEF]:Pt},[H.WGS84_COMPARABLE_LON_LAT]:{[H.CGCS2000]:null,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:V,[H.WGS84_COMPARABLE_LON_LAT]:V,[H.SPHERICAL_ECEF]:ut,[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:null,[H.PLATE_CARREE]:nt,[H.WGS84]:V,[H.WGS84_ECEF]:Pt},[H.PLATE_CARREE]:{[H.CGCS2000]:rt,[H.GCSMARS2000]:null,[H.GCSMOON2000]:null,[H.LON_LAT]:rt,[H.WGS84_COMPARABLE_LON_LAT]:rt,[H.SPHERICAL_ECEF]:function(t,e,n,r){rt(t,e,n,r),ut(n,r,n,r)},[H.SPHERICAL_MARS_PCPF]:null,[H.SPHERICAL_MOON_PCPF]:null,[H.UNKNOWN]:null,[H.WEB_MERCATOR]:function(t,e,n,r){rt(t,e,n,r),$(n,r,n,r)},[H.PLATE_CARREE]:V,[H.WGS84]:rt,[H.WGS84_ECEF]:function(t,e,n,r){rt(t,e,n,r),Pt(n,r,n,r)}}};function Mt(t,e,n=St()){return null==t||null==e?null:function(t,e,n){if(null==t||null==e||n.source.spatialReference===t&&n.dest.spatialReference===e)return n;const r=J(t,n.source),o=J(e,n.dest);return r===H.UNKNOWN&&o===H.UNKNOWN?(0,N.fS)(t,e)?n.projector=V:n.projector=null:n.projector=ft[r][o],n}(t,e,n).projector}function St(){return{source:{spatialReference:null,spatialReferenceId:H.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:H.UNKNOWN,metersPerUnit:1},projector:V}}const pt={spatialReference:null,spatialReferenceId:H.UNKNOWN},ht={spatialReference:null,spatialReferenceId:H.UNKNOWN},Rt=St(),At=(St(),(0,o.Vl)(1)),Ct=(0,o.BV)(1),Ot=(0,_.c)(),Nt=(0,_.c)(),Tt=(0,_.c)(),gt=(0,_.c)();(0,_.c)()},18571:(t,e,n)=>{n.d(e,{Z:()=>s});let r=0;class o{static fromGE(t){const e=new o;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=r++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=r++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=r++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=r++}getInverse(){const t=new o;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class s{static cacheKey(t,e){return[void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():"",void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():""].join(",")}static fromGE(t){const e=new s;let n="";for(const r of t.steps){const t=o.fromGE(r);e.steps.push(t),n+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=n,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t&&t.steps)for(const e of t.steps)e instanceof o?this.steps.push(e):this.steps.push(new o({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new s;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,n){this._cachedProjection[s.cacheKey(t,e)]=n}getCachedGeTransformation(t,e){let n="";for(const t of this.steps)n+=t.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[s.cacheKey(t,e)];return void 0===r?null:r}}},69285:(t,e,n)=>{n.d(e,{k:()=>s});var r=n(67900),o=n(8744);function s(t,e,n){if(null==e||null==n||n.vcsWkid||(0,o.fS)(e,n))return null;const s=(0,r._R)(e)/(0,r._R)(n);if(1===s)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){t&&null!=t.z&&(t.z*=e)}(t,s);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,s);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,s);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,s);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,s);default:return null}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6502],{41123:(e,t,r)=>{r.d(t,{D:()=>a,z:()=>n});const s="randomUUID"in crypto;function a(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${a()}}`}},84470:(e,t,r)=>{r.d(t,{CP:()=>o,JG:()=>y,LL:()=>u,NZ:()=>l,fV:()=>f,vj:()=>g,yT:()=>F,zE:()=>b});var s=r(3172),a=r(67676),n=r(95330),i=r(2981);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,a.fS)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.k_)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,s.default)(this.partUrl,{responseType:"blob"});return(0,n.k_)(e),t}}function l(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function d(e){return!!Array.isArray(e)&&e.every((e=>e instanceof o))}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function y(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){return Array.isArray(e)?e.every((e=>m(e,t))):m(e,t)}(r,t)}function f(e,t){if(e===t)return!0;const{source:r}=e,{source:s}=t;if(r===s)return!0;if(d(r)&&d(s)){if(r.length!==s.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),a=[...s].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(a[e]))return!1;return!0}return!1}function m(e,t){return e instanceof o&&e.isOnService(t)}function g(e,t){return e instanceof File?(0,i.Ow)(e.name,t)??(0,i.S0)(e.type,t):(0,i.S0)(e.assetMimeType,t)??(0,i.Ow)(e.assetName,t)}function b(e){return Array.isArray(e)?e:[e]}function F(e){return!!e.original}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>g,applyEdits:()=>b,aw:()=>f,uploadAssets:()=>A});var s=r(38171),a=r(46791),n=r(20102),i=r(22974),o=r(95330),u=r(81271),l=r(16306),d=r(66361),p=r(2981),c=r(84230);function h(e){return e&&null!=e.applyEdits}function y(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function f(e){return e.every(y)}function m(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function g(e){return e.every(m)}async function b(e,t,r,s={}){let u;if((0,d.lQ)(e)&&e.url)u=(0,d.jF)(e.url,e.layerId,"original-and-current-features"===s.returnServiceEditsOption);else{u=(0,o.hh)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:o,edits:l}=await async function(e,t,r,s){if(await e.load(),!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,c.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:o}=await async function(e,t,r){const s=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),o=null!=e.infoFor3D;if(!t||!s&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const u=(0,c.S1)(e);if(!u.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!u.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!u.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!u.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const l={...r};if(null!=l.rollbackOnFailureEnabled||u.editing.supportsRollbackOnFailure||(l.rollbackOnFailureEnabled=!0),!1===l.rollbackOnFailureEnabled&&"original-and-current-features"===l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!u.editing.supportsReturnServiceEditsInSourceSpatialReference&&l.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(l.returnServiceEditsInSourceSR&&"original-and-current-features"!==l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const d={...t};if(d.addFeatures=t&&a.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():d.addFeatures||[],d.updateFeatures=t&&a.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():d.updateFeatures||[],d.deleteFeatures=t&&a.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():d.deleteFeatures||[],d.addFeatures.length&&!u.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(d.updateFeatures.length&&!u.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(d.deleteFeatures.length&&!u.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");d.addAttachments=d.addAttachments||[],d.updateAttachments=d.updateAttachments||[],d.deleteAttachments=d.deleteAttachments||[],d.addFeatures=d.addFeatures.map(_),d.updateFeatures=d.updateFeatures.map(_),d.addAssetFeatures=[];const h=r?.globalIdUsed||o;return d.addFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.updateFeatures.forEach((t=>function(e,t,r){F(e,t,r);const s=(0,c.S1)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h))),d.deleteFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.addAttachments.forEach((t=>w(t,e))),d.updateAttachments.forEach((t=>w(t,e))),o&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,s=(0,p.S0)("model/gltf-binary",r.supportedFormats)??(0,p.Ow)("glb",r.supportedFormats);if(!s||!r.editFormats.includes(s))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])R(t)&&a.push(t);for(const t of e.updateFeatures??[])R(t)&&a.push(t)}(d,e),{edits:await S(d),options:l}}(e,r,s);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,o)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,s),d=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:l,addedFeatures:d(o.addFeatureResults),updatedFeatures:d(o.updateFeatureResults),deletedFeatures:d(o.deleteFeatureResults),addedAttachments:d(o.addAttachmentResults),updatedAttachments:d(o.updateAttachmentResults),deletedAttachments:d(o.deleteAttachmentResults),exceededTransferLimit:!1};return o.editedFeatureResults?.length&&(y.editedFeatures=o.editedFeatureResults),u.resolve(y),o}catch(e){throw u.reject(e),e}}function F(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function w(e,t){const{feature:r,attachment:s}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!s.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!s.data&&!s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(s.data instanceof File&&s.data.name||s.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof s.data){const e=(0,u.sJ)(s.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function S(e){const t=e.addFeatures??[],r=e.updateFeatures??[],s=t.concat(r).map((e=>e.geometry)),a=await(0,l.aX)(s),n=t.length,i=r.length;return a.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),a.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function _(e){const t=new s.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function R(e){return"mesh"===e?.geometry?.type}function A(e,t,r,s){if(!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,s)}},6502:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var s=r(43697),a=(r(66577),r(38171)),n=r(40330),i=r(3172),o=r(92835),u=r(67676),l=r(20102),d=r(80442),p=r(35454),c=r(83379),h=r(92604),y=r(78286),f=r(95330),m=r(81271),g=r(41123),b=r(5600),F=(r(75215),r(52011)),w=r(6570),S=r(44547),_=r(33955),R=r(84470),A=r(14720),I=r(25278),O=r(74654),v=r(66677),E=r(2981),q=r(4967),C=r(59431),Z=r(14165),x=r(82971);const T=new p.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),D=new Set(["Feature Layer","Table"]),P=new p.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let N=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,f.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=null!=e?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,d.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==s,u=e?.operations?.supportsQueryAttachments??!1;return new O.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:n,queryAttachmentsSupported:u})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,a.query);try{const e=await(0,i.default)(s,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),o=this._getFormDataForAttachment(r,n.query);try{const e=await(0,i.default)(a,{body:o});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this,s=r.infoFor3D,a=null!=s,o=a||(t?.globalIdUsed??!1),l=e.addFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],d=(await Promise.all(l)).filter(u.pC),p=e.updateFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],c=(await Promise.all(p)).filter(u.pC),h=this._getFeatureIds(e.deleteFeatures,o);(0,C.P)(d,c,r.spatialReference);const y=await this._getAttachmentEditsJSON(e),f=a?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,m=r.capabilities.editing.supportsAsyncApplyEdits&&null!=f&&(0!==f.adds.length||0!==f.updates.length),g={gdbVersion:t?.gdbVersion||r.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:o,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId,async:m};t?.returnServiceEditsOption?(g.edits=JSON.stringify([{id:r.layerId,adds:d,updates:c,deletes:h,attachments:y,assetMaps:f}]),g.returnServiceEditsOption=T.toJSON(t?.returnServiceEditsOption),g.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(g.adds=d.length?JSON.stringify(d):null,g.updates=c.length?JSON.stringify(c):null,g.deletes=h.length?o?JSON.stringify(h):h.join(","):null,g.attachments=y&&JSON.stringify(y),g.assetMaps=null!=f?JSON.stringify(f):void 0);const b=this._getLayerRequestOptions({method:"post",query:g}),F=t?.returnServiceEditsOption?r.url:r.parsedUrl.path,w=m?await this._asyncApplyEdits(F+"/applyEdits",b):await(0,i.default)(F+"/applyEdits",b);if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=n.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(w)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,i.default)(`${s}/${r}`,t),{id:n,extent:u,fullExtent:l,timeExtent:d}=a,p=u||l;return{id:n,fullExtent:p&&w.Z.fromJSON(p),timeExtent:d&&o.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,v.M8)(this.layer.url))return"unavailable";const e=(0,m.v_)(this.layer.url,"status"),t=await(0,i.default)(e,{query:{f:"json"}});return P.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:s}=await r.e(6946).then(r.bind(r,36946));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,i.default)(e,t)).data.statusUrl;for(;;){const e=(await(0,i.default)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,i.default)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,f.e4)(M)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,i.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,d.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!D.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,I.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}async _getFeatureJSON(e,t){const{geometry:r}=e,s={...e.attributes};if(null!=t&&null!=e.geometry&&"mesh"===e.geometry.type){const{transformFieldRoles:r}=t,{origin:a,spatialReference:n,transform:i}=e.geometry,o=this.layer.spatialReference;await(0,S.iQ)(n,o);const u=(0,S.iV)(a,o);if(s[r.originX]=u.x,s[r.originY]=u.y,s[r.originZ]=u.z,null!=i){const{translation:e,scale:t,rotation:a}=i;s[r.translationX]=e[0],s[r.translationY]=-e[2],s[r.translationZ]=e[1],s[r.scaleX]=t[0],s[r.scaleY]=t[1],s[r.scaleZ]=t[2],s[r.rotationX]=a[0],s[r.rotationY]=a[2],s[r.rotationZ]=a[1],s[r.rotationDeg]=a[3]}return{geometry:null,attributes:s}}return null==r?{attributes:s}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:s}}async _getAttachmentEditsJSON(e){const t=await Promise.all((e.addAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),r=await Promise.all((e.updateAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),s=e.deleteAttachments??[];return t.length||r.length||s.length?{adds:t,updates:r,deletes:[...s]}:null}async _getAttachmentEditJSON(e){const{feature:t,attachment:r}=e,{globalId:s,name:a,contentType:n,data:i,uploadId:o}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),o)u.uploadId=o;else if(i){const e=await(0,m.IR)(i);e&&(u.contentType=e.mediaType,u.data=e.data),i instanceof File&&(u.name=i.name)}return a&&(u.name=a),n&&(u.contentType=n),u}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const s=r.map((e=>e.geometry));return await this.uploadAssets(s),{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const a of e){const e=a.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(s),o=a.getAttribute(r);if(0===i.length){h.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i.find(R.yT)??i[0],{transform:l}=e,d=l&&l.geographic?[]:["PROJECT_VERTICES"];for(const e of u)1===e.parts.length?t.push({globalId:(0,g.z)(),parentGlobalId:o,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:d}):h.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_getFeatureIds(e,t){if(!e||0===e.length)return[];if(t&&(0,A.Ey)(e))return e.map((e=>e.globalId));if((0,A.aw)(e))return e.map((e=>e.objectId));const{layer:r}=this,s=t?r.globalIdField:r.objectIdField;return s?e.map((e=>e.getAttribute(s))):[]}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const n=a?.assetMaps;if(n){for(const e of n.addResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of n.updateResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const i=a?.attachments,o={addFeatureResults:a?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:a?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:a?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(a?.editMoment&&(o.editMoment=a.editMoment),s.length>0){o.editedFeatureResults=[];for(const e of s){const{editedFeatures:t}=e,r=t?.spatialReference?new x.Z(t.spatialReference):null;o.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.adds?.map((e=>this._createEditedFeature(e,r)))||[],updates:t?.updates?.map((e=>({original:this._createEditedFeature(e[0],r),current:this._createEditedFeature(e[1],r)})))||[],deletes:t?.deletes?.map((e=>this._createEditedFeature(e,r)))||[],spatialReference:r}})}}return o}_createEditedFeature(e,t){return new a.Z({attributes:e.attributes,geometry:(0,_.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:s,parsedUrl:a}=t;if(null==s||null==r)return e;const n=(0,E.$6)(s);if(null==n)return e;const i=(0,m.v_)(a.path,`../${n.id}`),o=e.map((e=>e.getAttribute(r))).filter(u.pC);if(0===o.length)return e;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:d}}=s,p=new Z.Z;p.where=`${l} IN (${o.map((e=>`'${e}'`))})`,p.outFields=[d,l],p.returnGeometry=!1;const c=await(0,q.e)(i,p),{features:h}=c;return 0===h.length?e:e.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:s}=e.geometry,n=h.filter((e=>e.getAttribute(l)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(d)));return s.getExternalSourcesOnService(a).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))}};(0,s._)([(0,b.Cb)()],N.prototype,"type",void 0),(0,s._)([(0,b.Cb)({constructOnly:!0})],N.prototype,"layer",void 0),(0,s._)([(0,b.Cb)({readOnly:!0})],N.prototype,"queryTask",null),N=(0,s._)([(0,F.j)("esri.layers.graphics.sources.FeatureLayerSource")],N);const M=1e3,$=N},74654:(e,t,r)=>{r.d(t,{Z:()=>x});var s=r(43697),a=r(92036),n=r(20102),i=r(80442),o=r(95330),u=r(81271),l=r(5600),d=(r(75215),r(67676),r(52011)),p=r(2981),c=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),b=r(5396),F=r(4967),w=r(70586),S=r(69285),_=r(98732);function R(e,t){return t}function A(e,t,r,s){switch(r){case 0:return E(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?E(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function I(e,t,r,s){return 2===r?E(e,t,2):A(e,t,r,s)}function O(e,t,r,s){return 2===r?E(e,t,3):A(e,t,r,s)}function v(e,t,r,s){return 3===r?E(e,t,3):I(e,t,r,s)}function E({translate:e,scale:t},r,s){return e[s]+r*t[s]}class q{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=R,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}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,S.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,w.O3)(r),r.push(t);const s=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of s)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,a=(0,_.$g)(r.clone(),r,!1,!1,this._transform),n=(0,_.di)(a,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...n}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=(0,w.s3)(this._transform,"transform");switch(t=this._applyTransform(s,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const s=(0,w.s3)(this._transform,"transform");return this._applyTransform(s,e,t,r)}_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{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{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),a=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),a.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?v:t?I:r?O:A}}var C=r(74889);let Z=class extends a.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],a=(0,i.Z)("featurelayer-pbf-statistics"),n=!s||a;let o;if(this.pbfSupported&&n)try{o=await async function(e,t,r){const s=(0,h.en)(e),a={...r},n=m.Z.from(t),i=!n.quantizationParameters,{data:o}=await(0,f.qp)(s,n,new q({sourceSpatialReference:n.sourceSpatialReference,applyTransform:i}),a);return o}(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&n||(o=await(0,F.F)(this.url,r,t)),this._normalizeFields(o.fields),o}async featureSetFromJSON(e,t,s){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return C.Z.fromJSON(t);const{meshFeatureSetFromJSON:a}=await(0,o.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(7697)]).then(r.bind(r,87697)),s);return a(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const s=(0,h.en)(e);return(0,f.Vr)(s,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:s},{executeRelationshipQuery:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:s},{executeRelationshipQueryForCount:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:s,fetchAttachments:a,processAttachmentQueryResult:n}=await(0,o.Hl)(r.e(540).then(r.bind(r,30540)),t),i=(0,h.en)(this.url);return n(i,await(this.queryAttachmentsSupported?s(i,e,t):a(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:s}=await(0,o.Hl)(r.e(1158).then(r.bind(r,71158)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:s}=await(0,o.Hl)(r.e(3992).then(r.bind(r,33992)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:s}=await(0,o.Hl)(r.e(1790).then(r.bind(r,21790)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:s}=await(0,o.Hl)(r.e(4371).then(r.bind(r,14371)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?c.n.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:s,queryFormats:a}=r,i=(0,p.S0)("model/gltf-binary",s)??(0,p.Ow)("glb",s),o=(0,p.S0)("model/gltf+json",s)??(0,p.Ow)("gtlf",s);for(const e of a){if(e===i){t.formatOf3DObjects=e;break}e!==o||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new n.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:s,originY:a,originZ:n,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:d,scaleZ:p,rotationX:c,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,a,n,i,o,u,l,d,p,c,h,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,l.Cb)({type:c.n})],Z.prototype,"dynamicDataSource",void 0),(0,s._)([(0,l.Cb)()],Z.prototype,"fieldsIndex",void 0),(0,s._)([(0,l.Cb)()],Z.prototype,"gdbVersion",void 0),(0,s._)([(0,l.Cb)()],Z.prototype,"infoFor3D",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],Z.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)()],Z.prototype,"pbfSupported",void 0),(0,s._)([(0,l.Cb)()],Z.prototype,"queryAttachmentsSupported",void 0),(0,s._)([(0,l.Cb)()],Z.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,l.Cb)({type:String})],Z.prototype,"url",void 0),Z=(0,s._)([(0,d.j)("esri.tasks.QueryTask")],Z);const x=Z},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>p,MS:()=>c,bU:()=>o});var s=r(80442),a=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},2981:(e,t,r)=>{r.d(t,{$6:()=>d,Ow:()=>n,S0:()=>a,d1:()=>i});const s=[["binary","application/octet-stream","bin",""]];function a(e,t){return u(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function n(e,t){return u(function(e,t){const r=e.toLowerCase();return o(t).find((e=>function(e){return e?.[2].split(",")??[]}(e).some((e=>r.endsWith(e)))))}(e,t))}function i(e,t){return l(function(e,t){return o(t).find((t=>u(t)===e))}(e,t))}function o(e){return[...s,...e]}function u(e){return e?.[0]}function l(e){return e?.[1]}function d(e){return e.tables?.find((e=>"assetMaps"===e.role))}},41818:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.hH)(i,n.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.Ev)(i,n.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>o});var s=r(11282),a=r(34599),n=r(74889),i=r(14165);async function o(e,t,r){const s=await u(e,t,r);return n.Z.fromJSON(s)}async function u(e,t,r){const n=(0,s.en)(e),o={...r},u=i.Z.from(t),{data:l}=await(0,a.JT)(n,u,u.sourceSpatialReference,o);return l}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6502],{41123:(e,t,r)=>{r.d(t,{D:()=>a,z:()=>n});const s="randomUUID"in crypto;function a(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${a()}}`}},84470:(e,t,r)=>{r.d(t,{CP:()=>o,JG:()=>y,LL:()=>u,NZ:()=>l,fV:()=>f,vj:()=>g,yT:()=>F,zE:()=>b});var s=r(3172),a=r(67676),n=r(95330),i=r(2981);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,a.fS)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.k_)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,s.default)(this.partUrl,{responseType:"blob"});return(0,n.k_)(e),t}}function l(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function d(e){return!!Array.isArray(e)&&e.every((e=>e instanceof o))}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function y(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){return Array.isArray(e)?e.every((e=>m(e,t))):m(e,t)}(r,t)}function f(e,t){if(e===t)return!0;const{source:r}=e,{source:s}=t;if(r===s)return!0;if(d(r)&&d(s)){if(r.length!==s.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),a=[...s].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(a[e]))return!1;return!0}return!1}function m(e,t){return e instanceof o&&e.isOnService(t)}function g(e,t){return e instanceof File?(0,i.Ow)(e.name,t)??(0,i.S0)(e.type,t):(0,i.S0)(e.assetMimeType,t)??(0,i.Ow)(e.assetName,t)}function b(e){return Array.isArray(e)?e:[e]}function F(e){return!!e.original}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>g,applyEdits:()=>b,aw:()=>f,uploadAssets:()=>A});var s=r(38171),a=r(46791),n=r(20102),i=r(22974),o=r(95330),u=r(81271),l=r(16306),d=r(66361),p=r(2981),c=r(84230);function h(e){return e&&null!=e.applyEdits}function y(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function f(e){return e.every(y)}function m(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function g(e){return e.every(m)}async function b(e,t,r,s={}){let u;if((0,d.lQ)(e)&&e.url)u=(0,d.jF)(e.url,e.layerId,"original-and-current-features"===s.returnServiceEditsOption);else{u=(0,o.hh)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:o,edits:l}=await async function(e,t,r,s){if(await e.load(),!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,c.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:o}=await async function(e,t,r){const s=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),o=null!=e.infoFor3D;if(!t||!s&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const u=(0,c.S1)(e);if(!u.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!u.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!u.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!u.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const l={...r};if(null!=l.rollbackOnFailureEnabled||u.editing.supportsRollbackOnFailure||(l.rollbackOnFailureEnabled=!0),!1===l.rollbackOnFailureEnabled&&"original-and-current-features"===l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!u.editing.supportsReturnServiceEditsInSourceSpatialReference&&l.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(l.returnServiceEditsInSourceSR&&"original-and-current-features"!==l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const d={...t};if(d.addFeatures=t&&a.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():d.addFeatures||[],d.updateFeatures=t&&a.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():d.updateFeatures||[],d.deleteFeatures=t&&a.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():d.deleteFeatures||[],d.addFeatures.length&&!u.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(d.updateFeatures.length&&!u.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(d.deleteFeatures.length&&!u.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");d.addAttachments=d.addAttachments||[],d.updateAttachments=d.updateAttachments||[],d.deleteAttachments=d.deleteAttachments||[],d.addFeatures=d.addFeatures.map(_),d.updateFeatures=d.updateFeatures.map(_),d.addAssetFeatures=[];const h=r?.globalIdUsed||o;return d.addFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.updateFeatures.forEach((t=>function(e,t,r){F(e,t,r);const s=(0,c.S1)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h))),d.deleteFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.addAttachments.forEach((t=>w(t,e))),d.updateAttachments.forEach((t=>w(t,e))),o&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,s=(0,p.S0)("model/gltf-binary",r.supportedFormats)??(0,p.Ow)("glb",r.supportedFormats);if(!s||!r.editFormats.includes(s))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])R(t)&&a.push(t);for(const t of e.updateFeatures??[])R(t)&&a.push(t)}(d,e),{edits:await S(d),options:l}}(e,r,s);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,o)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,s),d=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:l,addedFeatures:d(o.addFeatureResults),updatedFeatures:d(o.updateFeatureResults),deletedFeatures:d(o.deleteFeatureResults),addedAttachments:d(o.addAttachmentResults),updatedAttachments:d(o.updateAttachmentResults),deletedAttachments:d(o.deleteAttachmentResults),exceededTransferLimit:!1};return o.editedFeatureResults?.length&&(y.editedFeatures=o.editedFeatureResults),u.resolve(y),o}catch(e){throw u.reject(e),e}}function F(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function w(e,t){const{feature:r,attachment:s}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!s.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!s.data&&!s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(s.data instanceof File&&s.data.name||s.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof s.data){const e=(0,u.sJ)(s.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function S(e){const t=e.addFeatures??[],r=e.updateFeatures??[],s=t.concat(r).map((e=>e.geometry)),a=await(0,l.aX)(s),n=t.length,i=r.length;return a.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),a.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function _(e){const t=new s.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function R(e){return"mesh"===e?.geometry?.type}function A(e,t,r,s){if(!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,s)}},6502:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var s=r(43697),a=(r(66577),r(38171)),n=r(40330),i=r(3172),o=r(92835),u=r(67676),l=r(20102),d=r(80442),p=r(35454),c=r(83379),h=r(92604),y=r(78286),f=r(95330),m=r(81271),g=r(41123),b=r(5600),F=(r(75215),r(52011)),w=r(6570),S=r(44547),_=r(33955),R=r(84470),A=r(14720),I=r(25278),v=r(49735),O=r(66677),E=r(2981),q=r(4967),C=r(59431),x=r(14165),Z=r(82971);const T=new p.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),D=new Set(["Feature Layer","Table"]),P=new p.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let N=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,f.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=null!=e?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,d.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==s,u=e?.operations?.supportsQueryAttachments??!1;return new v.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:n,queryAttachmentsSupported:u})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,a.query);try{const e=await(0,i.default)(s,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),o=this._getFormDataForAttachment(r,n.query);try{const e=await(0,i.default)(a,{body:o});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this,s=r.infoFor3D,a=null!=s,o=a||(t?.globalIdUsed??!1),l=e.addFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],d=(await Promise.all(l)).filter(u.pC),p=e.updateFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],c=(await Promise.all(p)).filter(u.pC),h=this._getFeatureIds(e.deleteFeatures,o);(0,C.P)(d,c,r.spatialReference);const y=await this._getAttachmentEditsJSON(e),f=a?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,m=r.capabilities.editing.supportsAsyncApplyEdits&&null!=f&&(0!==f.adds.length||0!==f.updates.length),g={gdbVersion:t?.gdbVersion||r.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:o,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId,async:m};t?.returnServiceEditsOption?(g.edits=JSON.stringify([{id:r.layerId,adds:d,updates:c,deletes:h,attachments:y,assetMaps:f}]),g.returnServiceEditsOption=T.toJSON(t?.returnServiceEditsOption),g.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(g.adds=d.length?JSON.stringify(d):null,g.updates=c.length?JSON.stringify(c):null,g.deletes=h.length?o?JSON.stringify(h):h.join(","):null,g.attachments=y&&JSON.stringify(y),g.assetMaps=null!=f?JSON.stringify(f):void 0);const b=this._getLayerRequestOptions({method:"post",query:g}),F=t?.returnServiceEditsOption?r.url:r.parsedUrl.path,w=m?await this._asyncApplyEdits(F+"/applyEdits",b):await(0,i.default)(F+"/applyEdits",b);if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=n.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(w)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,i.default)(`${s}/${r}`,t),{id:n,extent:u,fullExtent:l,timeExtent:d}=a,p=u||l;return{id:n,fullExtent:p&&w.Z.fromJSON(p),timeExtent:d&&o.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,O.M8)(this.layer.url))return"unavailable";const e=(0,m.v_)(this.layer.url,"status"),t=await(0,i.default)(e,{query:{f:"json"}});return P.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:s}=await r.e(6946).then(r.bind(r,36946));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,i.default)(e,t)).data.statusUrl;for(;;){const e=(await(0,i.default)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,i.default)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,f.e4)(M)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,i.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,d.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!D.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,I.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}async _getFeatureJSON(e,t){const{geometry:r}=e,s={...e.attributes};if(null!=t&&null!=e.geometry&&"mesh"===e.geometry.type){const{transformFieldRoles:r}=t,{origin:a,spatialReference:n,transform:i}=e.geometry,o=this.layer.spatialReference;await(0,S.iQ)(n,o);const u=(0,S.iV)(a,o);if(s[r.originX]=u.x,s[r.originY]=u.y,s[r.originZ]=u.z??0,null!=i){const{translation:e,scale:t,rotation:a}=i;s[r.translationX]=e[0],s[r.translationY]=-e[2],s[r.translationZ]=e[1],s[r.scaleX]=t[0],s[r.scaleY]=t[1],s[r.scaleZ]=t[2],s[r.rotationX]=a[0],s[r.rotationY]=a[2],s[r.rotationZ]=a[1],s[r.rotationDeg]=a[3]}return{geometry:null,attributes:s}}return null==r?{attributes:s}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:s}}async _getAttachmentEditsJSON(e){const t=await Promise.all((e.addAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),r=await Promise.all((e.updateAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),s=e.deleteAttachments??[];return t.length||r.length||s.length?{adds:t,updates:r,deletes:[...s]}:null}async _getAttachmentEditJSON(e){const{feature:t,attachment:r}=e,{globalId:s,name:a,contentType:n,data:i,uploadId:o}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),o)u.uploadId=o;else if(i){const e=await(0,m.IR)(i);e&&(u.contentType=e.mediaType,u.data=e.data),i instanceof File&&(u.name=i.name)}return a&&(u.name=a),n&&(u.contentType=n),u}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const s=r.map((e=>e.geometry));return await this.uploadAssets(s),{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const a of e){const e=a.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(s),o=a.getAttribute(r);if(0===i.length){h.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i.find(R.yT)??i[0],{vertexSpace:l}=e,d=l.isGeoreferenced?["PROJECT_VERTICES"]:[];for(const e of u)1===e.parts.length?t.push({globalId:(0,g.z)(),parentGlobalId:o,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:d}):h.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_getFeatureIds(e,t){if(!e||0===e.length)return[];if(t&&(0,A.Ey)(e))return e.map((e=>e.globalId));if((0,A.aw)(e))return e.map((e=>e.objectId));const{layer:r}=this,s=t?r.globalIdField:r.objectIdField;return s?e.map((e=>e.getAttribute(s))):[]}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const n=a?.assetMaps;if(n){for(const e of n.addResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of n.updateResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const i=a?.attachments,o={addFeatureResults:a?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:a?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:a?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(a?.editMoment&&(o.editMoment=a.editMoment),s.length>0){o.editedFeatureResults=[];for(const e of s){const{editedFeatures:t}=e,r=t?.spatialReference?new Z.Z(t.spatialReference):null;o.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.adds?.map((e=>this._createEditedFeature(e,r)))||[],updates:t?.updates?.map((e=>({original:this._createEditedFeature(e[0],r),current:this._createEditedFeature(e[1],r)})))||[],deletes:t?.deletes?.map((e=>this._createEditedFeature(e,r)))||[],spatialReference:r}})}}return o}_createEditedFeature(e,t){return new a.Z({attributes:e.attributes,geometry:(0,_.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:s,parsedUrl:a}=t;if(null==s||null==r)return e;const n=(0,E.$6)(s);if(null==n)return e;const i=(0,m.v_)(a.path,`../${n.id}`),o=e.map((e=>e.getAttribute(r))).filter(u.pC);if(0===o.length)return e;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:d}}=s,p=new x.Z;p.where=`${l} IN (${o.map((e=>`'${e}'`))})`,p.outFields=[d,l],p.returnGeometry=!1;const c=await(0,q.e)(i,p),{features:h}=c;return 0===h.length?e:e.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:s}=e.geometry,n=h.filter((e=>e.getAttribute(l)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(d)));return s.getExternalSourcesOnService(a).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))}};(0,s._)([(0,b.Cb)()],N.prototype,"type",void 0),(0,s._)([(0,b.Cb)({constructOnly:!0})],N.prototype,"layer",void 0),(0,s._)([(0,b.Cb)({readOnly:!0})],N.prototype,"queryTask",null),N=(0,s._)([(0,F.j)("esri.layers.graphics.sources.FeatureLayerSource")],N);const M=1e3,$=N},49735:(e,t,r)=>{r.d(t,{Z:()=>R});var s=r(43697),a=r(92036),n=r(20102),i=r(80442),o=r(95330),u=r(81271),l=r(5600),d=(r(75215),r(67676),r(52011)),p=r(2981),c=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),b=r(5396),F=r(4967),w=r(53261),S=r(74889);let _=class extends a.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],a=(0,i.Z)("featurelayer-pbf-statistics"),n=!s||a;let o;if(this.pbfSupported&&n)try{o=await(0,w.t)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&n||(o=await(0,F.F)(this.url,r,t)),this._normalizeFields(o.fields),o}async featureSetFromJSON(e,t,s){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return S.Z.fromJSON(t);const{meshFeatureSetFromJSON:a}=await(0,o.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(7697)]).then(r.bind(r,87697)),s);return a(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const s=(0,h.en)(e);return(0,f.Vr)(s,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:s},{executeRelationshipQuery:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:s},{executeRelationshipQueryForCount:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:s,fetchAttachments:a,processAttachmentQueryResult:n}=await(0,o.Hl)(r.e(540).then(r.bind(r,30540)),t),i=(0,h.en)(this.url);return n(i,await(this.queryAttachmentsSupported?s(i,e,t):a(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:s}=await(0,o.Hl)(r.e(1158).then(r.bind(r,71158)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:s}=await(0,o.Hl)(r.e(3992).then(r.bind(r,33992)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:s}=await(0,o.Hl)(r.e(1790).then(r.bind(r,21790)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:s}=await(0,o.Hl)(r.e(4371).then(r.bind(r,14371)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?c.n.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:s,queryFormats:a}=r,i=(0,p.S0)("model/gltf-binary",s)??(0,p.Ow)("glb",s),o=(0,p.S0)("model/gltf+json",s)??(0,p.Ow)("gtlf",s);for(const e of a){if(e===i){t.formatOf3DObjects=e;break}e!==o||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new n.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:s,originY:a,originZ:n,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:d,scaleZ:p,rotationX:c,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,a,n,i,o,u,l,d,p,c,h,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,l.Cb)({type:c.n})],_.prototype,"dynamicDataSource",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"fieldsIndex",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"gdbVersion",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"infoFor3D",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)()],_.prototype,"pbfSupported",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"queryAttachmentsSupported",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,l.Cb)({type:String})],_.prototype,"url",void 0),_=(0,s._)([(0,d.j)("esri.tasks.QueryTask")],_);const R=_},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>p,MS:()=>c,bU:()=>o});var s=r(80442),a=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},2981:(e,t,r)=>{r.d(t,{$6:()=>d,Ow:()=>n,S0:()=>a,d1:()=>i});const s=[["binary","application/octet-stream","bin",""]];function a(e,t){return u(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function n(e,t){return u(function(e,t){const r=e.toLowerCase();return o(t).find((e=>function(e){return e?.[2].split(",")??[]}(e).some((e=>r.endsWith(e)))))}(e,t))}function i(e,t){return l(function(e,t){return o(t).find((t=>u(t)===e))}(e,t))}function o(e){return[...s,...e]}function u(e){return e?.[0]}function l(e){return e?.[1]}function d(e){return e.tables?.find((e=>"assetMaps"===e.role))}},41818:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.hH)(i,n.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.Ev)(i,n.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>o});var s=r(11282),a=r(34599),n=r(74889),i=r(14165);async function o(e,t,r){const s=await u(e,t,r);return n.Z.fromJSON(s)}async function u(e,t,r){const n=(0,s.en)(e),o={...r},u=i.Z.from(t),{data:l}=await(0,a.JT)(n,u,u.sourceSpatialReference,o);return l}},53261:(e,t,r)=>{r.d(t,{t:()=>m});var s=r(11282),a=r(70586),n=r(69285),i=r(98732);function o(e,t){return t}function u(e,t,r,s){switch(r){case 0:return c(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?c(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function l(e,t,r,s){return 2===r?c(e,t,2):u(e,t,r,s)}function d(e,t,r,s){return 2===r?c(e,t,3):u(e,t,r,s)}function p(e,t,r,s){return 3===r?c(e,t,3):l(e,t,r,s)}function c({translate:e,scale:t},r,s){return e[s]+r*t[s]}class h{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=o,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}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,n.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,a.O3)(r),r.push(t);const s=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of s)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,a=(0,i.$g)(r.clone(),r,!1,!1,this._transform),n=(0,i.di)(a,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...n}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=(0,a.s3)(this._transform,"transform");switch(t=this._applyTransform(s,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const s=(0,a.s3)(this._transform,"transform");return this._applyTransform(s,e,t,r)}_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{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{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),a=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),a.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?p:t?l:r?d:u}}var y=r(34599),f=(r(74889),r(14165));async function m(e,t,r){const a=(0,s.en)(e),n={...r},i=f.Z.from(t),o=!i.quantizationParameters,{data:u}=await(0,y.qp)(a,i,new h({sourceSpatialReference:i.sourceSpatialReference,applyTransform:o}),n);return u}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[694],{17017:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(43697),a=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,a.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>f});var i=r(43697),a=r(20102),s=r(81271),o=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),l=r(30556),p=r(50549),y=r(76169);const u={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},c={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},d={ArcGISFeatureLayer:!0},h={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":u,"web-map/basemap":c,"web-map/tables":d,"link-chart/operational-layers":{...u,LinkChartLayer:!0},"link-chart/basemap":c,"link-chart/tables":d,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,OrientedImageryLayer:!0}};var m=r(21506);const f=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,y.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e??"Layer"}read(e,t){t&&(t.layer=this),(0,p.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=h[e];let i=!!r?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new a.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof a.Z&&"web-document-write:property-required"===e.name)).length;return(0,s.jc)(r?.url)?(t?.messages?.push(new a.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,o.Cb)(m.rT)],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,o.Cb)(m.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)("title"),(0,l.c)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,n.j)("esri.layers.mixins.OperationalLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>b});var i=r(43697),a=r(68773),s=r(40330),o=r(3172),n=r(66643),l=r(20102),p=r(92604),y=r(70586),u=r(95330),c=r(81271),d=r(5600),h=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),v=r(48522),S=r(15235),w=r(86082),I=r(14661);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,y.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new S.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,u.D_)(e)||p.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!a.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:a}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",a)}catch(e){(0,u.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,I.Ss)(r);let a,o;if(i)a=r.portal.url;else try{a=await(0,g.oP)(this.url,t)}catch(e){(0,u.r9)(e)}if(!a||!(0,c.Zo)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,u.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new S.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return(0,I.Ss)(r)}catch(e){(0,u.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,u.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=L.credential===t?L.user:await this._fetchEditingUser(e);return L.credential=t,L.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=v.Z.getDefault();if(a&&a.loaded&&(0,c.Fv)(a.restUrl)===(0,c.Fv)(i))return a.user;const l=`${i}/community/self`,p=null!=e?e.signal:null,y=await(0,n.q6)((0,o.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:p}));return y.ok?w.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&i&&!(0,c.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,d.Cb)({type:S.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,d.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},L={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var i=r(43697),a=r(92604),s=r(95330),o=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),l=r(46791),p=(r(20102),r(26258),r(87538));const y=new l.Z,u=new WeakMap;function c(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let h=0,m=0;function f(){const e=Date.now();for(const t of y)t.refreshInterval&&e-(u.get(t)??0)+5>=6e4*t.refreshInterval&&(u.set(t,e),t.refresh(e))}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of y)t=d(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?u.get(r)||u.set(r,e):u.delete(r);if(t!==m){if(m=t,clearInterval(h),0===m)return void(h=0);h=setInterval(f,m)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){c(e)&&y.push(e)}(this)}),(()=>{}))}destroy(){c(this)&&y.includes(this)&&y.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{a.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.RefreshableLayer")],t),t}},16451:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),a=r(2368),s=r(96674),o=r(5600),n=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),p=r(30556),y=r(72729),u=r(70082);let c=class extends((0,a.J)(s.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,y.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,n.r)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.c)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,o.Cb)({type:[u.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.j)("esri.layers.support.FeatureType")],c);const d=c},74889:(e,t,r)=>{r.d(t,{Z:()=>S});var i,a=r(43697),s=r(66577),o=r(38171),n=r(35454),l=r(96674),p=r(22974),y=r(5600),u=(r(75215),r(71715)),c=r(52011),d=r(30556),h=r(82971),m=r(33955),f=r(1231);const g=new n.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const a=e[t],s=o.Z.fromJSON(a),n=a.geometry&&a.geometry.spatialReference;null==s.geometry||n||(s.geometry.spatialReference=r);const l=a.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],i=l[e],a=i?.spatialReference;null==t||a||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:a}=this;if(a)for(const e of a)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,a]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((a-e)/r)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,a],scale:[s,o]}=r,n=this._getHydrationFunction(e,(e=>e*s+i),(e=>a-e*o));for(const{geometry:e}of t)null!=e&&n&&n(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,a;const s=[];for(let o=0,n=e.length;o<n;o++){const n=e[o];if(o>0){const e=t(n[0]),o=r(n[1]);e===i&&o===a||(s.push([e-i,o-a]),i=e,a=o)}else i=t(n[0]),a=r(n[1]),s.push([i,a])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.oU)(e)?e.rings:e.paths,a=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&a.push(o)}return a.length>0?((0,m.oU)(e)?e.rings=a:e.paths=a,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,m.oU)(e)?e.rings:e.paths;let a,s;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(a+=i[0],s+=i[1]):(a=i[0],s=i[1]),i[0]=t(a),i[1]=r(s)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let a,s;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(a+=o[0],s+=o[1]):(a=o[0],s=o[1]),o[0]=t(a),o[1]=r(s)}}:null}};(0,a._)([(0,y.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,a._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,a._)([(0,y.Cb)({type:[o.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,a._)([(0,u.r)("features")],v.prototype,"readFeatures",null),(0,a._)([(0,y.Cb)({type:[f.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,a._)([(0,y.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,a._)([(0,d.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,a._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,a._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,a._)([(0,y.Cb)({types:s.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,a._)([(0,u.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,a._)([(0,y.Cb)({type:h.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,a._)([(0,d.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,a._)([(0,y.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,a._)([(0,c.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const S=v}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[694],{17017:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(43697),s=r(5600),a=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>f});var i=r(43697),s=r(20102),a=r(81271),n=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(30556),p=r(50549),y=r(76169);const c={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},u={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},d={ArcGISFeatureLayer:!0},h={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":c,"web-map/basemap":u,"web-map/tables":d,"link-chart/operational-layers":{...c,LinkChartLayer:!0},"link-chart/basemap":u,"link-chart/tables":d,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,OrientedImageryLayer:!0}};var m=r(21506);const f=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,y.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e??"Layer"}read(e,t){t&&(t.layer=this),(0,p.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=h[e];let i=!!r?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new s.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof s.Z&&"web-document-write:property-required"===e.name)).length;return(0,a.jc)(r?.url)?(t?.messages?.push(new s.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,n.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,n.Cb)(m.rT)],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,n.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,n.Cb)(m.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)("title"),(0,l.c)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.OperationalLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>b});var i=r(43697),s=r(68773),a=r(40330),n=r(3172),o=r(66643),l=r(20102),p=r(92604),y=r(70586),c=r(95330),u=r(81271),d=r(5600),h=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),v=r(48522),S=r(15235),w=r(86082),I=r(14661);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,y.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new S.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||p.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!s.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,I.Ss)(r);let s,n;if(i)s=r.portal.url;else try{s=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!s||!(0,u.Zo)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(a.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!n)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new S.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return(0,I.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?a.id?.findCredential(this.url):null;if(!t)return!0;const r=L.credential===t?L.user:await this._fetchEditingUser(e);return L.credential=t,L.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=a.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.Z.getDefault();if(s&&s.loaded&&(0,u.Fv)(s.restUrl)===(0,u.Fv)(i))return s.user;const l=`${i}/community/self`,p=null!=e?e.signal:null,y=await(0,o.q6)((0,n.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:p}));return y.ok?w.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&i&&!(0,u.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,d.Cb)({type:S.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,d.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,d.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},L={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var i=r(43697),s=r(92604),a=r(95330),n=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(46791),p=(r(20102),r(26258),r(87538));const y=new l.Z,c=new WeakMap;function u(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let h=0,m=0;function f(){const e=Date.now();for(const t of y)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of y)t=d(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==m){if(m=t,clearInterval(h),0===m)return void(h=0);h=setInterval(f,m)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,a.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){u(e)&&y.push(e)}(this)}),(()=>{}))}destroy(){u(this)&&y.includes(this)&&y.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,a.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,n.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,n.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},16451:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),s=r(2368),a=r(96674),n=r(5600),o=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),p=r(30556),y=r(72729),c=r(70082);let u=class extends((0,s.J)(a.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,y.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"id",void 0),(0,i._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,i._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"domains",void 0),(0,i._)([(0,o.r)("domains")],u.prototype,"readDomains",null),(0,i._)([(0,p.c)("domains")],u.prototype,"writeDomains",null),(0,i._)([(0,n.Cb)({type:[c.Z],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,i._)([(0,l.j)("esri.layers.support.FeatureType")],u);const d=u},74889:(e,t,r)=>{r.d(t,{Z:()=>S});var i,s=r(43697),a=r(66577),n=r(38171),o=r(35454),l=r(96674),p=r(22974),y=r(5600),c=(r(75215),r(71715)),u=r(52011),d=r(30556),h=r(82971),m=r(33955),f=r(1231);const g=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],a=n.Z.fromJSON(s),o=s.geometry&&s.geometry.spatialReference;null==a.geometry||o||(a.geometry.spatialReference=r);const l=s.aggregateGeometries,p=a.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],i=l[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(a)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,a=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=a.length;e<t;e++)n?.(a[e].geometry)||(a.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[a,n]}=r;let o=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;o=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*a+i),(e=>s-e*n),o,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const a=[];for(let n=0,o=e.length;n<o;n++){const o=e[n];if(n>0){const e=t(o[0]),n=r(o[1]);e===i&&n===s||(a.push([e-i,n-s]),i=e,s=n)}else i=t(o[0]),s=r(o[1]),a.push([i,s])}return a.length>0?a:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.oU)(e)?e.rings:e.paths,s=[];for(let e=0,a=i.length;e<a;e++){const a=i[e],n=this._quantizePoints(a,t,r);n&&s.push(n)}return s.length>0?((0,m.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const a=(0,m.oU)(e)?e.rings:e.paths;let n,o;for(let e=0,i=a.length;e<i;e++){const i=a[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],o+=s[1]):(n=s[0],o=s[1]),s[0]=t(n),s[1]=r(o)}}if(i&&s)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const a=e.points;let n,o;for(let e=0,i=a.length;e<i;e++){const i=a[e];e>0?(n+=i[0],o+=i[1]):(n=i[0],o=i[1]),i[0]=t(n),i[1]=r(o)}if(i&&s)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=i(t[2])}else if(s)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,y.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,y.Cb)({type:[n.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,c.r)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,y.Cb)({type:[f.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,y.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,d.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,y.Cb)({types:a.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,c.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,y.Cb)({type:h.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,d.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,y.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s._)([(0,u.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const S=v}}]);