@arcgis/core 4.22.0-next.20211031 → 4.22.0-next.20211104

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 (459) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/analysis/Analysis.js +5 -0
  3. package/analysis/AreaMeasurement.js +5 -0
  4. package/analysis/DirectLineMeasurement.js +5 -0
  5. package/analysis/LineOfSight.js +5 -0
  6. package/analysis/Slice.js +5 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{1ef684455fd7054f6d71.js → 08c12d62f01d327f80f6.js} +1 -1
  9. package/assets/esri/core/workers/chunks/091d09de7311b28443f5.js +1 -0
  10. package/assets/esri/core/workers/chunks/{842ef6a68abd95971c3f.js → 0a429e9f333815d0f302.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0c9d254c546f7ea3c6d9.js +1 -0
  12. package/assets/esri/core/workers/chunks/{a5316c220b38eef1e8bd.js → 14f82f0b5ab8bfa06497.js} +1 -1
  13. package/assets/esri/core/workers/chunks/1816bd566863cc362f84.js +1 -0
  14. package/assets/esri/core/workers/chunks/{7a5066bef32f22ad85cb.js → 1dc0c54cfc68b199030c.js} +1 -1
  15. package/assets/esri/core/workers/chunks/2210d50a4f73bb30717c.js +1 -0
  16. package/assets/esri/core/workers/chunks/{dc91bb8e59a44db4388e.js → 2c50f3bac3061d12f78d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2f8949e7d2c726840f42.js +1 -0
  18. package/assets/esri/core/workers/chunks/323611e86deb05ca3b07.js +1 -0
  19. package/assets/esri/core/workers/chunks/335b441f4263947cb748.js +1 -0
  20. package/assets/esri/core/workers/chunks/{44170d71c7b1abfd8a27.js → 33726add2ef8aeab25ff.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{ee370bfeeefc1b58d81d.js → 3584880300141f78493e.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{1550d6d104c283e2f7ad.js → 402268ca2b326e60fddb.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{9e52510bd9e9408583de.js → 420c6b14c4acf41205db.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{e133dfa8c66c6bee9251.js → 4280f88a46ce710a4102.js} +1 -1
  25. package/assets/esri/core/workers/chunks/42a1c381948932f667a4.js +1 -0
  26. package/assets/esri/core/workers/chunks/{d26fc253f26c3a2bca4a.js → 42c67e6579b54844ec06.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{447bd7c504965ae05973.js → 43291305879d8078d04d.js} +1 -1
  28. package/assets/esri/core/workers/chunks/440f8101402a4c0d7019.js +1 -0
  29. package/assets/esri/core/workers/chunks/532d8977a95c06889da3.js +1 -0
  30. package/assets/esri/core/workers/chunks/{4e6178bdd453000ea5f3.js → 56c34f60fdc752ca8371.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{f46f4daaaf79ecc428d8.js → 5d2dc79815bf01bd3faa.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{1ac9c3f22385098a0112.js → 62c683f44c297d239ab8.js} +1 -1
  33. package/assets/esri/core/workers/chunks/761e8254d99a2b275349.js +1 -0
  34. package/assets/esri/core/workers/chunks/76b931486a028bacceb2.js +1 -0
  35. package/assets/esri/core/workers/chunks/7cb55211b8b9105d5cfd.js +1 -0
  36. package/assets/esri/core/workers/chunks/7d5f9bdfd3588e26477c.js +1 -0
  37. package/assets/esri/core/workers/chunks/7eb32a67b4477d997b57.js +1 -0
  38. package/assets/esri/core/workers/chunks/{aa2acf85afff14af2093.js → 7fa2d758a24bbaaab0bf.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{4d8606b334e39827316b.js → 7fa4546630a6a4eee428.js} +1 -1
  40. package/assets/esri/core/workers/chunks/80f112e52beddfa98d6d.js +1 -0
  41. package/assets/esri/core/workers/chunks/8624004989b4f9b7f529.js +1 -0
  42. package/assets/esri/core/workers/chunks/8dd92ac37c35bcde14bd.js +1 -0
  43. package/assets/esri/core/workers/chunks/935764d13ddab80c0b6d.js +1 -0
  44. package/assets/esri/core/workers/chunks/{90e14687ff00f8df32c3.js → 93d70e07b1da163ecfe7.js} +1 -1
  45. package/assets/esri/core/workers/chunks/9533c751eecb8022a450.js +1 -0
  46. package/assets/esri/core/workers/chunks/{8eaab757369dc7811d2f.js → a397b2db74570cb720d1.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{0ce682bec084b1b154ed.js → a3a442ae592aa2528c69.js} +1 -1
  48. package/assets/esri/core/workers/chunks/a4f1b833e8068885708d.js +1 -0
  49. package/assets/esri/core/workers/chunks/{d10c72e4502e56c6988d.js → a7478a5f050036833f63.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a7830af3eec3a1354517.js +1 -0
  51. package/assets/esri/core/workers/chunks/{29ca38829de88e62ba2b.js → a82866c4f78b6d54646c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/abd25a2bbe871f981fe0.js +1 -0
  53. package/assets/esri/core/workers/chunks/ad3282aad54afde368bd.js +971 -0
  54. package/assets/esri/core/workers/chunks/afbe7591236298096ff3.js +1 -0
  55. package/assets/esri/core/workers/chunks/b857126936727679ad89.js +1 -0
  56. package/assets/esri/core/workers/chunks/{faad6822fda6874a191b.js → b912eb424a9882cffc99.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{3372869dc67877713f23.js → bda18d1a2e3f6aed84de.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{522d8e864f39e03c3fc8.js → c2ab38a469b09fcec4d5.js} +1 -1
  59. package/assets/esri/core/workers/chunks/c3b2d5112d6cbceeb066.js +1 -0
  60. package/assets/esri/core/workers/chunks/c709a68b054851c6a910.js +1 -0
  61. package/assets/esri/core/workers/chunks/c8a1b361fb0b8e939197.js +1 -0
  62. package/assets/esri/core/workers/chunks/{492c325c1f59d6d398d3.js → ca4596c80f250218b094.js} +1 -1
  63. package/assets/esri/core/workers/chunks/cc8ce1420da655d4d8e5.js +1 -0
  64. package/assets/esri/core/workers/chunks/ce743ad8cf32d1f2a5a7.js +1 -0
  65. package/assets/esri/core/workers/chunks/cefacc43ab8561f86e9a.js +1 -0
  66. package/assets/esri/core/workers/chunks/{9c04134791311fd9e2c0.js → d302ecd597f466b253e8.js} +1 -1
  67. package/assets/esri/core/workers/chunks/d3b03b555d795fdc33f6.js +1 -0
  68. package/assets/esri/core/workers/chunks/{03e0722f05446e5926e5.js → da80ed65d430ced1931e.js} +1 -1
  69. package/assets/esri/core/workers/chunks/daed8c0f1f33b1256f62.js +1 -0
  70. package/assets/esri/core/workers/chunks/{5afbeefbf7961a112668.js → e0bed73f28c08b415cfa.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{99e36fec3216d01895f7.js → e4da7de999b3e1502e14.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{5f3d826340a7a57f988d.js → f1f086f9524a957a2cd9.js} +1 -1
  73. package/assets/esri/core/workers/chunks/f390eb338bb8e5925dba.js +1 -0
  74. package/assets/esri/core/workers/chunks/f4a2b5ed98965a028342.js +1 -0
  75. package/assets/esri/core/workers/chunks/f621db836009fce93e62.js +1 -0
  76. package/assets/esri/core/workers/chunks/f8864cc145a2fb1e0c62.js +1 -0
  77. package/assets/esri/core/workers/chunks/{9b1ad2e62cfa4c090e50.js → f968fa6e5547f8e60e20.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{ca44cbe1a6c6b08a8e55.js → f977977564b2b75332a9.js} +1 -1
  79. package/assets/esri/core/workers/chunks/f98f64bbcb1b24d0d290.js +1 -0
  80. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ar.json +1 -1
  81. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_bs.json +1 -1
  82. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ca.json +1 -1
  83. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_cs.json +1 -1
  84. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_da.json +1 -1
  85. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_de.json +1 -1
  86. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_el.json +1 -1
  87. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_es.json +1 -1
  88. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_et.json +1 -1
  89. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_fi.json +1 -1
  90. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_fr.json +1 -1
  91. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_he.json +1 -1
  92. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_hr.json +1 -1
  93. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_hu.json +1 -1
  94. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_id.json +1 -1
  95. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_it.json +1 -1
  96. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ja.json +1 -1
  97. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ko.json +1 -1
  98. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_lt.json +1 -1
  99. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_lv.json +1 -1
  100. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_nb.json +1 -1
  101. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_nl.json +1 -1
  102. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pl.json +1 -1
  103. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pt-BR.json +1 -1
  104. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_pt-PT.json +1 -1
  105. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ro.json +1 -1
  106. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_ru.json +1 -1
  107. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sk.json +1 -1
  108. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sl.json +1 -1
  109. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sr.json +1 -1
  110. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_sv.json +1 -1
  111. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_th.json +1 -1
  112. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_tr.json +1 -1
  113. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_uk.json +1 -1
  114. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_vi.json +1 -1
  115. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-CN.json +1 -1
  116. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-HK.json +1 -1
  117. package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_zh-TW.json +1 -1
  118. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_bg.json +1 -1
  119. package/chunks/Fog.glsl.js +53 -0
  120. package/chunks/NativeLine.glsl.js +16 -12
  121. package/chunks/RibbonLine.glsl.js +70 -49
  122. package/chunks/ar.js +1 -1
  123. package/chunks/basis_transcoder.js +1 -1
  124. package/chunks/boundedPlane.js +1 -1
  125. package/chunks/bs_BA.js +1 -1
  126. package/chunks/ca_ES.js +1 -1
  127. package/chunks/color.js +1 -1
  128. package/chunks/cs_CZ.js +1 -1
  129. package/chunks/da_DK.js +1 -1
  130. package/chunks/de_CH.js +1 -1
  131. package/chunks/de_DE.js +1 -1
  132. package/chunks/el_GR.js +1 -1
  133. package/chunks/en_CA.js +1 -1
  134. package/chunks/en_US.js +1 -1
  135. package/chunks/es_ES.js +1 -1
  136. package/chunks/et_EE.js +1 -1
  137. package/chunks/fi_FI.js +1 -1
  138. package/chunks/fr_FR.js +1 -1
  139. package/chunks/geometryEngineBase.js +1 -1
  140. package/chunks/he_IL.js +1 -1
  141. package/chunks/hr_HR.js +1 -1
  142. package/chunks/hu_HU.js +1 -1
  143. package/chunks/i3s.js +1 -1
  144. package/chunks/id_ID.js +1 -1
  145. package/chunks/index.js +1 -1
  146. package/chunks/it_IT.js +1 -1
  147. package/chunks/ja_JP.js +1 -1
  148. package/chunks/ko_KR.js +1 -1
  149. package/chunks/lclayout.js +1 -1
  150. package/chunks/libtess-asm.js +1 -1
  151. package/chunks/libtess.js +1 -1
  152. package/chunks/lt_LT.js +1 -1
  153. package/chunks/lv_LV.js +1 -1
  154. package/chunks/mat4.js +1 -1
  155. package/chunks/nb_NO.js +1 -1
  156. package/chunks/nl_NL.js +1 -1
  157. package/chunks/pe-wasm.js +1 -1
  158. package/chunks/pl_PL.js +1 -1
  159. package/chunks/predominance.js +1 -1
  160. package/chunks/pt_BR.js +1 -1
  161. package/chunks/pt_PT.js +1 -1
  162. package/chunks/ro_RO.js +1 -1
  163. package/chunks/ru_RU.js +1 -1
  164. package/chunks/sk_SK.js +1 -1
  165. package/chunks/sl_SL.js +1 -1
  166. package/chunks/sphere.js +1 -1
  167. package/chunks/sr_RS.js +1 -1
  168. package/chunks/sv_SE.js +1 -1
  169. package/chunks/th_TH.js +1 -1
  170. package/chunks/tr_TR.js +1 -1
  171. package/chunks/type.js +1 -1
  172. package/chunks/uk_UA.js +1 -1
  173. package/chunks/vec2.js +1 -1
  174. package/chunks/vec3.js +1 -1
  175. package/chunks/vec4f64.js +1 -1
  176. package/chunks/vi_VN.js +1 -1
  177. package/chunks/vxlLayer.js +1 -1
  178. package/chunks/zh_Hans.js +1 -1
  179. package/chunks/zh_Hant.js +1 -1
  180. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  181. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  182. package/core/libs/gl-matrix-2/math/vec2.js +1 -1
  183. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  184. package/core/maybe.js +1 -1
  185. package/geometry/Polygon.js +1 -1
  186. package/geometry/support/MeshTransform.js +1 -1
  187. package/geometry/support/axisAngleDegrees.js +1 -1
  188. package/geometry/support/boundedPlane.js +1 -1
  189. package/geometry/support/coordinateSystem.js +1 -1
  190. package/geometry/support/meshUtils/georeference.js +1 -1
  191. package/geometry/support/ray.js +1 -1
  192. package/geometry/support/sphere.js +1 -1
  193. package/identity/IdentityManagerBase.js +1 -1
  194. package/interfaces.d.ts +132 -201
  195. package/layers/VectorTileLayer.js +1 -1
  196. package/layers/VoxelLayer.js +1 -1
  197. package/layers/VoxelWasmPerScene.js +1 -1
  198. package/layers/effects/colorMatrixFunctions.js +1 -1
  199. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  200. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  201. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  202. package/layers/mixins/SceneService.js +1 -1
  203. package/layers/support/FeatureEffect.js +1 -1
  204. package/layers/support/TilemapCache.js +1 -1
  205. package/layers/support/vectorTileLayerLoader.js +1 -1
  206. package/package.json +1 -1
  207. package/popup/content/AttachmentsContent.js +1 -1
  208. package/portal/PortalQueryParams.js +1 -1
  209. package/portal/schemas/definitions.js +1 -1
  210. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  211. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  212. package/rest/query/operations/queryZScale.js +1 -1
  213. package/smartMapping/renderers/color.js +1 -1
  214. package/smartMapping/symbology/support/colors.js +1 -1
  215. package/support/featureFlags.js +1 -1
  216. package/support/revision.js +1 -1
  217. package/symbols/cim/CIMSymbolHelper.js +1 -1
  218. package/symbols/cim/cimAnalyzer.js +1 -1
  219. package/views/2d/PaddedViewState.js +1 -1
  220. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  221. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  222. package/views/2d/engine/vectorTiles/TilemapIndex.js +5 -0
  223. package/views/2d/engine/vectorTiles/TilemapRequest.js +5 -0
  224. package/views/2d/engine/vectorTiles/style/VectorTileSource.js +1 -1
  225. package/views/2d/engine/webgl/mesh/templates/WGLDynamicLineTemplate.js +1 -1
  226. package/views/2d/engine/webgl/mesh/templates/WGLDynamicMarkerTemplate.js +1 -1
  227. package/views/2d/engine/webgl/mesh/templates/WGLLineTemplate.js +1 -1
  228. package/views/2d/engine/webgl/mesh/templates/WGLMarkerTemplate.js +1 -1
  229. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  230. package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
  231. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  232. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  233. package/views/2d/layers/features/processors/SymbolProcessor.js +1 -1
  234. package/views/2d/navigation/actions/Pinch.js +1 -1
  235. package/views/2d/tiling/TileCache.js +1 -1
  236. package/views/2d/viewpointUtils.js +1 -1
  237. package/views/3d/analysis/AnalysisView3D.js +5 -0
  238. package/views/3d/analysis/AreaMeasurement/AreaMeasurementView3D.js +5 -0
  239. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +5 -0
  240. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +5 -0
  241. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementView3DData.js +5 -0
  242. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +5 -0
  243. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +5 -0
  244. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +5 -0
  245. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementView3D.js +5 -0
  246. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +5 -0
  247. package/views/3d/analysis/LineOfSight/LineOfSightAnalysis.js +5 -0
  248. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +5 -0
  249. package/views/3d/analysis/LineOfSight/LineOfSightController.js +5 -0
  250. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +5 -0
  251. package/views/3d/analysis/LineOfSight/LineOfSightLayerViewData.js +5 -0
  252. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +5 -0
  253. package/views/3d/analysis/LineOfSight/LineOfSightResult.js +5 -0
  254. package/views/3d/analysis/LineOfSight/LineOfSightTarget.js +5 -0
  255. package/views/3d/analysis/LineOfSight/LineOfSightView.js +5 -0
  256. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +5 -0
  257. package/views/3d/analysis/Slice/SliceAnalysisViewData.js +5 -0
  258. package/views/3d/analysis/Slice/SliceView.js +5 -0
  259. package/views/3d/analysis/support/LabelSegment.js +5 -0
  260. package/views/3d/analysis/support/PathSegmentInterpolator.js +5 -0
  261. package/views/3d/analysis/support/UnitNormalizer.js +5 -0
  262. package/views/3d/analysis/support/measurementUtils.js +5 -0
  263. package/views/3d/analysis/support/viewUtils.js +5 -0
  264. package/views/3d/camera/constraintUtils/distance.js +1 -1
  265. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  266. package/views/3d/environment/CloudsComposition.js +1 -1
  267. package/views/3d/environment/CloudsGenerator.js +1 -1
  268. package/views/3d/environment/CloudyWeather.js +5 -0
  269. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  270. package/views/3d/environment/Fog.glsl.js +5 -0
  271. package/views/3d/environment/Fog.js +5 -0
  272. package/views/3d/environment/FogTechnique.js +5 -0
  273. package/views/3d/environment/FoggyWeather.js +5 -0
  274. package/views/3d/environment/RainyWeather.js +5 -0
  275. package/views/3d/environment/SceneViewEnvironment.js +1 -1
  276. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  277. package/views/3d/environment/Stars.js +1 -1
  278. package/views/3d/environment/SunnyWeather.js +5 -0
  279. package/views/3d/environment/weatherTypes.js +5 -0
  280. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  281. package/views/3d/glTF/internal/Resource.js +1 -1
  282. package/views/3d/interactive/Manipulator3D.js +1 -1
  283. package/views/3d/interactive/analysisTools/lineOfSight/LineOfSightTool.js +1 -1
  284. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  285. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  286. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  287. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  288. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  289. package/views/3d/interactive/editingTools/settings.js +1 -1
  290. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  291. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  292. package/views/3d/interactive/graphics/Slice/SliceController.js +1 -1
  293. package/views/3d/interactive/graphics/Slice/SliceVisualization.js +1 -1
  294. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  295. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  296. package/views/3d/interactive/measurementTools/support/viewUtils.js +1 -1
  297. package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
  298. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  299. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  300. package/views/3d/layers/AnalysisLayerView3D.js +1 -1
  301. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  302. package/views/3d/layers/I3SMeshView3D.js +1 -1
  303. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  304. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  305. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  306. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  307. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  308. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  309. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  310. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  311. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  312. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  313. package/views/3d/layers/i3s/BuildingFilterUtil.js +1 -1
  314. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  315. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  316. package/views/3d/layers/i3s/I3SNode.js +1 -1
  317. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  318. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  319. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  320. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  321. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  322. package/views/3d/layers/support/edgeUtils.js +1 -1
  323. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  324. package/views/3d/state/utils/navigationUtils.js +1 -1
  325. package/views/3d/support/LaserLineRenderer.js +1 -1
  326. package/views/3d/support/RenderCoordsHelper.js +1 -1
  327. package/views/3d/support/extentUtils.js +1 -1
  328. package/views/3d/support/geometryUtils/sphere.js +1 -1
  329. package/views/3d/support/orientedBoundingBox.js +1 -1
  330. package/views/3d/terrain/OverlayManager.js +1 -1
  331. package/views/3d/terrain/OverlayRenderer.js +1 -1
  332. package/views/3d/terrain/TerrainRenderer.js +1 -1
  333. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  334. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  335. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  336. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +16 -12
  337. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -6
  338. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  339. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  340. package/views/3d/webgl-engine/lib/GLMaterialTexture.js +1 -1
  341. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  342. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  343. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  344. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  345. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  346. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  347. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  348. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  349. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  350. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  351. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  352. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  353. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  354. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  355. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  356. package/views/SceneView.js +1 -1
  357. package/views/interactive/GraphicManipulator.js +1 -1
  358. package/views/interactive/coordinateHelper.js +1 -1
  359. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  360. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  361. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  362. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  363. package/views/interactive/snapping/SnappingConstraint.js +1 -1
  364. package/views/interactive/snapping/SnappingManager.js +1 -1
  365. package/views/interactive/snapping/candidates/LineSnappingCandidate.js +1 -1
  366. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  367. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  368. package/views/interactive/snapping/snappingUtils.js +1 -1
  369. package/views/layers/ImageryTileLayerView.js +1 -1
  370. package/views/support/geometry2dUtils.js +1 -1
  371. package/views/ui/UI.js +1 -1
  372. package/views/webgl/RenderingContext.js +1 -1
  373. package/views/webgl/Texture.js +1 -1
  374. package/webscene/Slide.js +1 -1
  375. package/webscene/support/SlideEnvironment.js +1 -1
  376. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  377. package/widgets/Daylight/support/SliderWithDropdown.js +1 -1
  378. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  379. package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
  380. package/widgets/ElevationProfile/support/constants.js +1 -1
  381. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  382. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  383. package/widgets/Print/PrintViewModel.js +1 -1
  384. package/widgets/Print.js +1 -1
  385. package/widgets/Slice/SlicePlane.js +1 -1
  386. package/widgets/Slice/SliceViewModel.js +1 -1
  387. package/widgets/Slider.js +1 -1
  388. package/assets/esri/core/workers/chunks/00bf9858abb8373e8d68.js +0 -1
  389. package/assets/esri/core/workers/chunks/081b90873ef847797c89.js +0 -1
  390. package/assets/esri/core/workers/chunks/0cfa3de704541aa8cea2.js +0 -1
  391. package/assets/esri/core/workers/chunks/11975aae96ecec7f0dd9.js +0 -1
  392. package/assets/esri/core/workers/chunks/11a34379d41692ca919f.js +0 -1
  393. package/assets/esri/core/workers/chunks/158e4549992401e5cbc0.js +0 -1
  394. package/assets/esri/core/workers/chunks/1b0ad088785fe641df2d.js +0 -1
  395. package/assets/esri/core/workers/chunks/24847b073a1a4afef88c.js +0 -1
  396. package/assets/esri/core/workers/chunks/4247258a985917cd2211.js +0 -1
  397. package/assets/esri/core/workers/chunks/5da8be2bf60328d81ca6.js +0 -1
  398. package/assets/esri/core/workers/chunks/637437cbdae969b83350.js +0 -1
  399. package/assets/esri/core/workers/chunks/6cc2078b77543a5c5964.js +0 -1
  400. package/assets/esri/core/workers/chunks/7fe87300651fef54c06d.js +0 -1
  401. package/assets/esri/core/workers/chunks/806cf0cf051a3d8e5658.js +0 -1
  402. package/assets/esri/core/workers/chunks/89b4983de872780e9aa1.js +0 -1
  403. package/assets/esri/core/workers/chunks/8a21ccf806816ef653db.js +0 -1
  404. package/assets/esri/core/workers/chunks/8ae25993e2e1e2e48eea.js +0 -1
  405. package/assets/esri/core/workers/chunks/913ee5abf51a44cc363c.js +0 -1
  406. package/assets/esri/core/workers/chunks/955ab28ee39fc95d4de5.js +0 -1
  407. package/assets/esri/core/workers/chunks/977b805b47cb102ac991.js +0 -1
  408. package/assets/esri/core/workers/chunks/9f7df729bd97a0379583.js +0 -1
  409. package/assets/esri/core/workers/chunks/a27df5a645ce73714bed.js +0 -1
  410. package/assets/esri/core/workers/chunks/a56facfd4cb910e6c23b.js +0 -1
  411. package/assets/esri/core/workers/chunks/a884e173d8ce31a3fb1d.js +0 -1
  412. package/assets/esri/core/workers/chunks/ad56c80411821b7b17c0.js +0 -1
  413. package/assets/esri/core/workers/chunks/ae426b913eaaeee223f7.js +0 -971
  414. package/assets/esri/core/workers/chunks/b03f50a3d241534a5fe9.js +0 -1
  415. package/assets/esri/core/workers/chunks/b72c8ed0fc7b6566fd31.js +0 -1
  416. package/assets/esri/core/workers/chunks/b7e979282ff4350cd70c.js +0 -1
  417. package/assets/esri/core/workers/chunks/bcdc2a6081126973b4a2.js +0 -1
  418. package/assets/esri/core/workers/chunks/c389ce157346aec746f0.js +0 -1
  419. package/assets/esri/core/workers/chunks/d73de81d3871975fec2a.js +0 -1
  420. package/assets/esri/core/workers/chunks/e3287d75191ceca8081e.js +0 -1
  421. package/assets/esri/core/workers/chunks/ed448bb6bc3f87536c0c.js +0 -1
  422. package/assets/esri/core/workers/chunks/f01133a5834f64dba932.js +0 -1
  423. package/assets/esri/core/workers/chunks/f2f727faa425375a8fae.js +0 -1
  424. package/assets/esri/core/workers/chunks/f635dbe9863d45f51e81.js +0 -1
  425. package/assets/esri/core/workers/chunks/f8de4ffc5d341d7d4722.js +0 -1
  426. package/assets/esri/core/workers/chunks/fb7d9d9f7395db343880.js +0 -1
  427. package/layers/LineOfSightTarget.js +0 -5
  428. package/layers/analyses/Analysis.js +0 -5
  429. package/layers/analyses/AreaMeasurement.js +0 -5
  430. package/layers/analyses/DirectLineMeasurement.js +0 -5
  431. package/layers/analyses/LineOfSight.js +0 -5
  432. package/layers/analyses/Slice.js +0 -5
  433. package/views/2d/engine/vectorTiles/TileIndex.js +0 -5
  434. package/views/3d/environment/Weather.js +0 -5
  435. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DModel.js +0 -5
  436. package/views/3d/layers/analyses/AreaMeasurement/AreaMeasurementView3D.js +0 -5
  437. package/views/3d/layers/analyses/AreaMeasurement/support/AreaMeasurementController.js +0 -5
  438. package/views/3d/layers/analyses/AreaMeasurement/support/AreaMeasurementPathHelper.js +0 -5
  439. package/views/3d/layers/analyses/AreaMeasurement/support/AreaMeasurementView3DData.js +0 -5
  440. package/views/3d/layers/analyses/AreaMeasurement/support/AreaMeasurementVisualization.js +0 -5
  441. package/views/3d/layers/analyses/AreaMeasurement/support/MeasurementData.js +0 -5
  442. package/views/3d/layers/analyses/DirectLineMeasurement/DirectLineMeasurementView3D.js +0 -5
  443. package/views/3d/layers/analyses/LineOfSight/LineOfSightView.js +0 -5
  444. package/views/3d/layers/analyses/Slice/SliceView.js +0 -5
  445. package/views/3d/layers/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +0 -5
  446. package/views/3d/layers/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +0 -5
  447. package/views/3d/layers/analysis/LineOfSight/LineOfSightAnalysis.js +0 -5
  448. package/views/3d/layers/analysis/LineOfSight/LineOfSightConfiguration.js +0 -5
  449. package/views/3d/layers/analysis/LineOfSight/LineOfSightController.js +0 -5
  450. package/views/3d/layers/analysis/LineOfSight/LineOfSightLayerViewData.js +0 -5
  451. package/views/3d/layers/analysis/LineOfSight/LineOfSightRayIntersector.js +0 -5
  452. package/views/3d/layers/analysis/LineOfSight/LineOfSightResult.js +0 -5
  453. package/views/3d/layers/analysis/LineOfSight/LineOfSightVisualization.js +0 -5
  454. package/views/3d/layers/analysis/Slice/SliceAnalysisViewData.js +0 -5
  455. package/views/3d/layers/analysis/support/LabelSegment.js +0 -5
  456. package/views/3d/layers/analysis/support/PathSegmentInterpolator.js +0 -5
  457. package/views/3d/layers/analysis/support/UnitNormalizer.js +0 -5
  458. package/views/3d/layers/analysis/support/measurementUtils.js +0 -5
  459. package/views/3d/layers/analysis/support/viewUtils.js +0 -5
package/PopupTemplate.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.22/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"./chunks/tslib.es6.js";import e from"./core/Collection.js";import{JSONSupport as o}from"./core/JSONSupport.js";import{clone as s}from"./core/lang.js";import i from"./core/Logger.js";import{isPromiseLike as r}from"./core/promiseUtils.js";import{property as n}from"./core/accessorSupport/decorators/property.js";import{cast as p}from"./core/accessorSupport/decorators/cast.js";import{reader as l}from"./core/accessorSupport/decorators/reader.js";import{subclass as a}from"./core/accessorSupport/decorators/subclass.js";import{writer as d}from"./core/accessorSupport/decorators/writer.js";import{ensureOneOfType as f}from"./core/accessorSupport/ensureType.js";import{collectFields as c,collectArcadeFieldNames as m}from"./layers/support/fieldUtils.js";import{persistableTypes as u}from"./popup/content.js";import y from"./popup/ExpressionInfo.js";import h from"./popup/FieldInfo.js";import I from"./popup/LayerOptions.js";import A from"./popup/RelatedRecordsInfo.js";import F from"./popup/content/AttachmentsContent.js";import g from"./popup/content/Content.js";import x from"./popup/content/CustomContent.js";import w from"./popup/content/FieldsContent.js";import _ from"./popup/content/MediaContent.js";import j from"./popup/content/TextContent.js";import{types as v}from"./popup/content/support/mediaInfoTypes.js";import C from"./support/actions/ActionBase.js";import E from"./support/actions/ActionButton.js";import N from"./support/actions/ActionToggle.js";var O;const S=e.ofType({key:"type",defaultKeyValue:"button",base:C,typeMap:{button:E,toggle:N}}),T={base:g,key:"type",typeMap:{media:_,custom:x,text:j,attachments:F,fields:w}},b="esri.PopupTemplate",R=i.getLogger(b),L=["attachments","fields","media","text"];let J=O=class extends o{constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title="",this.relatedRecordsInfo=null}castContent(t){return Array.isArray(t)?t.map((t=>f(T,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||r(t)?t:(R.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e):this._readPopupInfo(e)}writeContent(t,e,o,s){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>-1!==L.indexOf(t.type))).map((t=>t&&t.toJSON(s))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type&&this._writeTextContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,s){const{content:i}=this,r=Array.isArray(i)?i:null;if(t){const o=r?r.filter((t=>"fields"===t.type)):[],i=o.length&&o.every((t=>{var e;return null==(e=t.fieldInfos)?void 0:e.length}));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(s);return i&&(e.visible=!1),e}))}if(r)for(const n of r)"fields"===n.type&&this._writeFieldsContent(n,e)}writeLayerOptions(t,e,o,s){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(s)}writeTitle(t,e){e.title=t||""}clone(){const{actions:t}=this,e=t?s(t.toArray()):[];return new O({actions:e,content:Array.isArray(this.content)?s(this.content):this.content,expressionInfos:Array.isArray(this.expressionInfos)?s(this.expressionInfos):null,fieldInfos:Array.isArray(this.fieldInfos)?s(this.fieldInfos):null,layerOptions:this.layerOptions?s(this.layerOptions):null,lastEditInfoEnabled:this.lastEditInfoEnabled,outFields:Array.isArray(this.outFields)?s(this.outFields):null,overwriteActions:this.overwriteActions,returnGeometry:this.returnGeometry,title:this.title,relatedRecordsInfo:this.relatedRecordsInfo?s(this.relatedRecordsInfo):null})}async collectRequiredFields(t,e){await this._collectExpressionInfoFields(t,e,this.expressionInfos),c(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=s(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=s(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements({description:t,mediaInfos:e,popupElements:o}){const s={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||s.mediaInfos||(o.mediaInfos=e,s.mediaInfos=!0),_.fromJSON(o)):"text"===o.type?(o.text||!t||s.description||(o.text=t,s.description=!0),j.fromJSON(o)):"attachments"===o.type?F.fromJSON(o):"fields"===o.type?w.fromJSON(o):void 0)).filter(Boolean)}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o}){const s=[];return t?s.push(new j({text:t})):s.push(new w),Array.isArray(e)&&e.length&&s.push(_.fromJSON({mediaInfos:e})),o&&s.push(F.fromJSON({displayType:"list"})),s.length?s:t}_getContentElementFields(t){if(!t||"attachments"===t.type)return[];if("custom"===t.type)return t.outFields||[];if("fields"===t.type)return this._getFieldInfoFields(t.fieldInfos||this.fieldInfos);if("media"===t.type){return(t.mediaInfos||[]).reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])}return"text"===t.type?this._extractFieldNames(t.text):void 0}_getMediaInfoFields(t){const{caption:e,title:o,value:s}=t,i=s||{},{fields:r=[],normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=i,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r];return n&&d.push(n),p&&d.push(p),d}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>m(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>-1===t.indexOf("relationships/")&&-1===t.indexOf("expression/"))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:s}=t,i="button"===s||"toggle"===s?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(i)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=/{[^}]*}/g,o=t.match(e);if(!o)return[];const s=/\{(\w+):.+\}/,i=o.filter((t=>!(0===t.indexOf("{relationships/")||0===t.indexOf("{expression/")))).map((t=>t.replace(s,"{$1}")));return i?i.map((t=>t.slice(1,-1))):[]}};t([n({type:S})],J.prototype,"actions",void 0),t([n()],J.prototype,"content",void 0),t([p("content")],J.prototype,"castContent",null),t([l("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments"])],J.prototype,"readContent",null),t([d("content",{popupElements:{type:e.ofType(u)},showAttachments:{type:Boolean},mediaInfos:{type:e.ofType(v)},description:{type:String}})],J.prototype,"writeContent",null),t([n({type:[y],json:{write:!0}})],J.prototype,"expressionInfos",void 0),t([n({type:[h]})],J.prototype,"fieldInfos",void 0),t([d("fieldInfos")],J.prototype,"writeFieldInfos",null),t([n({type:I})],J.prototype,"layerOptions",void 0),t([d("layerOptions")],J.prototype,"writeLayerOptions",null),t([n({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],J.prototype,"lastEditInfoEnabled",void 0),t([n()],J.prototype,"outFields",void 0),t([n()],J.prototype,"overwriteActions",void 0),t([n()],J.prototype,"returnGeometry",void 0),t([n({json:{type:String}})],J.prototype,"title",void 0),t([d("title")],J.prototype,"writeTitle",null),t([n({type:A,json:{write:!0}})],J.prototype,"relatedRecordsInfo",void 0),J=O=t([a(b)],J);const M=J;export{M as default};
5
+ import{_ as t}from"./chunks/tslib.es6.js";import e from"./core/Collection.js";import{JSONSupport as o}from"./core/JSONSupport.js";import{clone as s}from"./core/lang.js";import i from"./core/Logger.js";import{isPromiseLike as r}from"./core/promiseUtils.js";import{property as n}from"./core/accessorSupport/decorators/property.js";import{cast as p}from"./core/accessorSupport/decorators/cast.js";import{reader as l}from"./core/accessorSupport/decorators/reader.js";import{subclass as a}from"./core/accessorSupport/decorators/subclass.js";import{writer as d}from"./core/accessorSupport/decorators/writer.js";import{ensureOneOfType as f}from"./core/accessorSupport/ensureType.js";import{collectFields as c,collectArcadeFieldNames as m}from"./layers/support/fieldUtils.js";import{persistableTypes as u}from"./popup/content.js";import y from"./popup/ExpressionInfo.js";import h from"./popup/FieldInfo.js";import I from"./popup/LayerOptions.js";import A from"./popup/RelatedRecordsInfo.js";import F from"./popup/content/AttachmentsContent.js";import g from"./popup/content/Content.js";import x from"./popup/content/CustomContent.js";import w from"./popup/content/FieldsContent.js";import _ from"./popup/content/MediaContent.js";import j from"./popup/content/TextContent.js";import{types as v}from"./popup/content/support/mediaInfoTypes.js";import C from"./support/actions/ActionBase.js";import E from"./support/actions/ActionButton.js";import N from"./support/actions/ActionToggle.js";var O;const S=e.ofType({key:"type",defaultKeyValue:"button",base:C,typeMap:{button:E,toggle:N}}),T={base:g,key:"type",typeMap:{media:_,custom:x,text:j,attachments:F,fields:w}},b="esri.PopupTemplate",R=i.getLogger(b),L=["attachments","fields","media","text"];let J=O=class extends o{constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title="",this.relatedRecordsInfo=null}castContent(t){return Array.isArray(t)?t.map((t=>f(T,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||r(t)?t:(R.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e):this._readPopupInfo(e)}writeContent(t,e,o,s){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>-1!==L.indexOf(t.type))).map((t=>t&&t.toJSON(s))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type&&this._writeTextContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,s){const{content:i}=this,r=Array.isArray(i)?i:null;if(t){const o=r?r.filter((t=>"fields"===t.type)):[],i=o.length&&o.every((t=>{var e;return null==(e=t.fieldInfos)?void 0:e.length}));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(s);return i&&(e.visible=!1),e}))}if(r)for(const n of r)"fields"===n.type&&this._writeFieldsContent(n,e)}writeLayerOptions(t,e,o,s){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(s)}writeTitle(t,e){e.title=t||""}clone(){const{actions:t}=this,e=t?s(t.toArray()):[];return new O({actions:e,content:Array.isArray(this.content)?s(this.content):this.content,expressionInfos:Array.isArray(this.expressionInfos)?s(this.expressionInfos):null,fieldInfos:Array.isArray(this.fieldInfos)?s(this.fieldInfos):null,layerOptions:this.layerOptions?s(this.layerOptions):null,lastEditInfoEnabled:this.lastEditInfoEnabled,outFields:Array.isArray(this.outFields)?s(this.outFields):null,overwriteActions:this.overwriteActions,returnGeometry:this.returnGeometry,title:this.title,relatedRecordsInfo:this.relatedRecordsInfo?s(this.relatedRecordsInfo):null})}async collectRequiredFields(t,e){await this._collectExpressionInfoFields(t,e,this.expressionInfos),c(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=s(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=s(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements({description:t,mediaInfos:e,popupElements:o}){const s={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||s.mediaInfos||(o.mediaInfos=e,s.mediaInfos=!0),_.fromJSON(o)):"text"===o.type?(o.text||!t||s.description||(o.text=t,s.description=!0),j.fromJSON(o)):"attachments"===o.type?F.fromJSON(o):"fields"===o.type?w.fromJSON(o):void 0)).filter(Boolean)}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o}){const s=[];return t?s.push(new j({text:t})):s.push(new w),Array.isArray(e)&&e.length&&s.push(_.fromJSON({mediaInfos:e})),o&&s.push(F.fromJSON({displayType:"auto"})),s.length?s:t}_getContentElementFields(t){if(!t||"attachments"===t.type)return[];if("custom"===t.type)return t.outFields||[];if("fields"===t.type)return this._getFieldInfoFields(t.fieldInfos||this.fieldInfos);if("media"===t.type){return(t.mediaInfos||[]).reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])}return"text"===t.type?this._extractFieldNames(t.text):void 0}_getMediaInfoFields(t){const{caption:e,title:o,value:s}=t,i=s||{},{fields:r=[],normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=i,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r];return n&&d.push(n),p&&d.push(p),d}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>m(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>-1===t.indexOf("relationships/")&&-1===t.indexOf("expression/"))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:s}=t,i="button"===s||"toggle"===s?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(i)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=/{[^}]*}/g,o=t.match(e);if(!o)return[];const s=/\{(\w+):.+\}/,i=o.filter((t=>!(0===t.indexOf("{relationships/")||0===t.indexOf("{expression/")))).map((t=>t.replace(s,"{$1}")));return i?i.map((t=>t.slice(1,-1))):[]}};t([n({type:S})],J.prototype,"actions",void 0),t([n()],J.prototype,"content",void 0),t([p("content")],J.prototype,"castContent",null),t([l("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments"])],J.prototype,"readContent",null),t([d("content",{popupElements:{type:e.ofType(u)},showAttachments:{type:Boolean},mediaInfos:{type:e.ofType(v)},description:{type:String}})],J.prototype,"writeContent",null),t([n({type:[y],json:{write:!0}})],J.prototype,"expressionInfos",void 0),t([n({type:[h]})],J.prototype,"fieldInfos",void 0),t([d("fieldInfos")],J.prototype,"writeFieldInfos",null),t([n({type:I})],J.prototype,"layerOptions",void 0),t([d("layerOptions")],J.prototype,"writeLayerOptions",null),t([n({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],J.prototype,"lastEditInfoEnabled",void 0),t([n()],J.prototype,"outFields",void 0),t([n()],J.prototype,"overwriteActions",void 0),t([n()],J.prototype,"returnGeometry",void 0),t([n({json:{type:String}})],J.prototype,"title",void 0),t([d("title")],J.prototype,"writeTitle",null),t([n({type:A,json:{write:!0}})],J.prototype,"relatedRecordsInfo",void 0),J=O=t([a(b)],J);const M=J;export{M as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.22/esri/copyright.txt for details.
4
+ */
5
+ import{_ as t}from"../chunks/tslib.es6.js";import o from"../core/Accessor.js";import{IdentifiableMixin as e}from"../core/Identifiable.js";import{property as r}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as s}from"../core/accessorSupport/decorators/subclass.js";let i=0,p=class extends(e(o)){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${i++}`,this.title=null,this.parent=null,this.visible=!0}cloneBaseAnalysisProperties(){return{title:this.title,visible:this.visible}}};t([r({type:String,constructOnly:!0})],p.prototype,"id",void 0),t([r({type:String})],p.prototype,"title",void 0),t([r({readOnly:!0})],p.prototype,"type",void 0),t([r()],p.prototype,"parent",void 0),t([r({readOnly:!0})],p.prototype,"extent",void 0),t([r({type:Boolean})],p.prototype,"visible",void 0),p=t([s("esri.layers.analyses.Analysis")],p);const l=p;export{l as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.22/esri/copyright.txt for details.
4
+ */
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"./Analysis.js";import{clone as r}from"../core/lang.js";import{applySome as o,isSome as s}from"../core/maybe.js";import{measurementAreaUnits as n}from"../core/unitUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{subclass as i}from"../core/accessorSupport/decorators/subclass.js";import l from"../geometry/Polygon.js";var a;let m=a=class extends t{constructor(e){super(e),this.type="area-measurement",this.extent=null,this.unit=null}set geometry(e){this._set("geometry",o(e,(e=>e.clone()))),this._set("extent",s(e)?e.extent:null)}clone(){return new a({geometry:r(this.geometry),unit:this.unit,...this.cloneBaseAnalysisProperties()})}};e([p({readOnly:!0})],m.prototype,"type",void 0),e([p({value:null,type:l})],m.prototype,"geometry",null),e([p({readOnly:!0})],m.prototype,"extent",void 0),e([p({type:n,value:null})],m.prototype,"unit",void 0),m=a=e([i("esri.layers.analyses.AreaMeasurement")],m);const u=m;export{u as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.22/esri/copyright.txt for details.
4
+ */
5
+ import{_ as t}from"../chunks/tslib.es6.js";import e from"./Analysis.js";import{clone as o}from"../core/lang.js";import{isNone as s,isSome as r}from"../core/maybe.js";import{measurementLengthUnits as i}from"../core/unitUtils.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import a from"../geometry/Extent.js";import c from"../geometry/Point.js";var l;let m=l=class extends e{constructor(t){super(t),this.type="direct-line-measurement",this.geodesicDistanceThreshold=1e5,this.startPoint=null,this.endPoint=null,this.unit=null}get extent(){if(s(this.startPoint))return null;const t=a.fromPoint(this.startPoint);return r(this.endPoint)&&t.union(a.fromPoint(this.endPoint)),t}clone(){return new l({geodesicDistanceThreshold:this.geodesicDistanceThreshold,startPoint:o(this.startPoint),endPoint:o(this.endPoint),unit:this.unit,...this.cloneBaseAnalysisProperties()})}};t([n({readOnly:!0})],m.prototype,"type",void 0),t([n()],m.prototype,"geodesicDistanceThreshold",void 0),t([n({type:c})],m.prototype,"startPoint",void 0),t([n({type:c})],m.prototype,"endPoint",void 0),t([n()],m.prototype,"extent",null),t([n({type:i,value:null})],m.prototype,"unit",void 0),m=l=t([p("esri.layers.analyses.DirectLineMeasurement")],m);const u=m;export{u as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.22/esri/copyright.txt for details.
4
+ */
5
+ import{_ as t}from"../chunks/tslib.es6.js";import e from"./Analysis.js";import r from"../core/Collection.js";import{castForReferenceSetter as o,referenceSetter as s}from"../core/collectionUtils.js";import{clone as i}from"../core/lang.js";import{isNone as n,isSome as p}from"../core/maybe.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import l from"../geometry/Extent.js";import m from"../geometry/Point.js";import{fromValues as f,expand as u}from"../geometry/support/aaBoundingRect.js";import y from"../views/3d/analysis/LineOfSight/LineOfSightTarget.js";var g;let h=g=class extends e{constructor(t){super(t),this.type="line-of-sight",this.observer=null}get targets(){return this._get("targets")||new r}set targets(t){this._set("targets",s(t,this.targets))}get extent(){if(n(this.observer))return null;const t=f(this.observer.x,this.observer.y,this.observer.x,this.observer.y);for(const e of this.targets)p(e.location)&&u(t,e.location,t);return l.fromBounds(t,this.observer.spatialReference)}clone(){return new g({intersection:i(this.intersection),observer:i(this.observer),targets:i(this.targets),...this.cloneBaseAnalysisProperties()})}};t([a()],h.prototype,"type",void 0),t([a()],h.prototype,"intersection",void 0),t([a({type:m})],h.prototype,"observer",void 0),t([a({cast:o,type:r.ofType(y),nonNullable:!0})],h.prototype,"targets",null),t([a({value:null})],h.prototype,"extent",null),h=g=t([c("esri.layers.analyses.LineOfSight")],h);const v=h;export{v as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.22/esri/copyright.txt for details.
4
+ */
5
+ import{_ as e}from"../chunks/tslib.es6.js";import s from"./Analysis.js";import t from"../core/Collection.js";import{castForReferenceSetter as r,referenceSetter as o}from"../core/collectionUtils.js";import{clone as l}from"../core/lang.js";import{isNone as i}from"../core/maybe.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import{renderSRFromMapSR as c}from"../geometry/support/coordinateSystem.js";import{shapeToPlane as n,planeToExtent as d}from"../views/3d/interactive/analysisTools/slice/sliceToolUtils.js";import{RenderCoordsHelper as u}from"../views/3d/support/RenderCoordsHelper.js";import y from"../widgets/Slice/SlicePlane.js";var m;let h=m=class extends s{constructor(e){super(e),this.type="slice",this.tiltEnabled=!1,this.shape=null,this.excludeGroundSurface=!1}get extent(){if(i(this.shape)||i(this.shape.position))return null;const e=this.shape.position.spatialReference,s=u.create(2,c(!1,e)),t=u.create(1,c(!0,e)),r=n(this.shape,s),o=n(this.shape,t),l=d(r,s,e),a=d(o,t,e);return i(l)||i(a)?null:l.union(a)}clone(){return new m({tiltEnabled:this.tiltEnabled,shape:l(this.shape),excludedLayers:this.excludedLayers.slice(),excludeGroundSurface:this.excludeGroundSurface,...this.cloneBaseAnalysisProperties()})}get excludedLayers(){return this._get("excludedLayers")||new t}set excludedLayers(e){this._set("excludedLayers",o(e,this._get("excludedLayers")))}};e([a({readOnly:!0})],h.prototype,"type",void 0),e([a({readOnly:!0})],h.prototype,"extent",null),e([a()],h.prototype,"tiltEnabled",void 0),e([a({types:{key:"type",base:null,typeMap:{plane:y},defaultKeyValue:"plane"}})],h.prototype,"shape",void 0),e([a({cast:r})],h.prototype,"excludedLayers",null),e([a({type:Boolean,nonNullable:!0})],h.prototype,"excludeGroundSurface",void 0),h=m=e([p("esri.layers.analyses.Slice")],h);const f=h;export{f as default};
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(16358),o=(r(80442),r(78286)),s=r(17202);const i={apiKey:void 0,applicationUrl:n.Z.location&&n.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(n.Z.esriConfig&&((0,o.RH)(i,n.Z.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.22.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>l,a9:()=>a,fS:()=>s,cq:()=>u,w6:()=>c,Od:()=>b,e$:()=>d,FY:()=>p});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const i=!!Array.prototype.fill;function a(e,t){if(i)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function c(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class l{constructor(){this.last=0}}const f=new l;function u(e,t,r,n){n=n||f;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,n){const o=null==r?e.length:r,s=u(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const h=new Set;function p(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;h.clear();for(let e=0;e<n;++e)h.add(t[e]);o=o||f;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;for(let t=0;t<i;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;return h.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},16358:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,s=r(16358);let i;var a,c;function l(e){return"function"==typeof i[e]?i[e]=i[e](s.Z):i[e]}i=null!=(n=s.Z.dojoConfig)&&n.has||null!=(o=s.Z.esriConfig)&&o.has?{...null==(a=s.Z.dojoConfig)?void 0:a.has,...null==(c=s.Z.esriConfig)?void 0:c.has}:{},l.add=(e,t,r,n)=>((n||void 0===i[e])&&(i[e]=t),r&&l(e)),l.cache=i,l.add("esri-deprecation-warnings",!0),(()=>{l.add("host-webworker",void 0!==s.Z.WorkerGlobalScope&&self instanceof s.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(l.add("host-browser",e),l.add("host-node","object"==typeof s.Z.process&&s.Z.process.versions&&s.Z.process.versions.node&&s.Z.process.versions.v8),l.add("dom",e),l("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(l.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),l.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),l.add("khtml",r.includes("Konqueror")?n:void 0),l.add("edge",parseFloat(t.split("Edge/")[1])||void 0),l.add("opr",parseFloat(t.split("OPR/")[1])||void 0),l.add("webkit",!l("wp")&&!l("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),l.add("chrome",!l("edge")&&!l("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),l.add("android",!l("wp")&&parseFloat(t.split("Android ")[1])||void 0),l.add("safari",!r.includes("Safari")||l("wp")||l("chrome")||l("android")||l("edge")||l("opr")?void 0:parseFloat(r.split("Version/")[1])),l.add("mac",r.includes("Macintosh")),!l("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));l.add(e,n),l.add("ios",n)}l.add("trident",parseFloat(r.split("Trident/")[1])||void 0),l("webkit")||(!t.includes("Gecko")||l("wp")||l("khtml")||l("trident")||l("edge")||l.add("mozilla",n),l("mozilla")&&l.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(s.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&l.add("esri-mobile",t),r&&l.add("esri-iPhone",r),l.add("esri-geolocation",!!navigator.geolocation)}l.add("esri-canvas-svg-support",!l("trident")),l.add("esri-wasm","WebAssembly"in s.Z),l.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in s.Z,t=!1===s.Z.crossOriginIsolated;return e&&!t})),l.add("esri-atomics","Atomics"in s.Z),l.add("esri-workers","Worker"in s.Z),l.add("esri-text-decoder","TextDecoder"in s.Z),l.add("esri-text-encoder","TextEncoder"in s.Z),l.add("web-feat:cache","caches"in s.Z),l.add("esri-workers-arraybuffer-transfer",!l("safari")||Number(l("safari"))>=12),l.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),l.add("featurelayer-simplify-payload-size-factors",[1,1,4]),l.add("featurelayer-snapshot-enabled",!0),l.add("featurelayer-snapshot-point-min-threshold",8e4),l.add("featurelayer-snapshot-point-max-threshold",4e5),l.add("featurelayer-snapshot-point-coverage",.1),l.add("featurelayer-advanced-symbols",!1),l.add("featurelayer-pbf",!0),l.add("featurelayer-pbf-statistics",!1),l.add("feature-layers-workers",!0),l.add("mapview-transitions-duration",200),l.add("mapserver-pbf-enabled",!1),l("host-webworker")||l("host-browser")&&(l.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),l.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{l.add("esri-image-decode",!0,!0,!0)})).catch((()=>{l.add("esri-image-decode",!1,!0,!0)}))}return!1})),l.add("esri-url-encodes-apostrophe",(()=>{const e=s.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),l.add("vectortilelayer-max-buffers",l("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>s,fS:()=>i,yd:()=>o}),r(67676),r(80442);var n=r(1533);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,n.W0)(e)||(0,n.lq)(e)||(0,n.KZ)(e)||(0,n.z3)(e)||(0,n.Uc)(e)||(0,n.Hx)(e)||(0,n.ZY)(e)||(0,n.xZ)(e)||(0,n.fS)(e))return(0,n.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,s(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(s(e))})),t}let t;const r=e;if("function"==typeof r.clone)t=r.clone();else if("function"==typeof r.map&&"function"==typeof r.forEach)t=r.map(s);else if("function"==typeof r.notifyChange&&"function"==typeof r.watch)t=r.clone();else{t={};for(const r of Object.getOwnPropertyNames(e))t[r]=s(e[r])}return t}function i(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function f(e){return n(e)&&e.destroy(),null}function u(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)m(r,null,t)}function m(e,t,r){return n(e)?r(e):t}function y(e,t){return n(e)?t(e):null}function v(e){return e.filter((e=>n(e)))}function w(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function _(e){return e}r.d(t,{Po:()=>y,yw:()=>i,j0:()=>_,SC:()=>f,O3:()=>u,lV:()=>v,JR:()=>g,U2:()=>w,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>C,$6:()=>c,Ue:()=>l,zE:()=>f,dD:()=>_,hh:()=>j,vr:()=>$,Ds:()=>M,as:()=>O,WW:()=>P,R8:()=>w,D_:()=>v,Hc:()=>h,tI:()=>A,y8:()=>E,fu:()=>g,$F:()=>m,d1:()=>k,DB:()=>S,r9:()=>p,k_:()=>u,H9:()=>b,gx:()=>x,Hl:()=>y});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function f(e="Aborted"){return new s.Z("AbortError",e)}function u(e,t="Aborted"){if(h(e))throw f(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function p(e){if(v(e))throw e}function b(e){if(!v(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function m(e,t){const r=d(e);if(!(0,a.Wi)(r))return u(r),(0,i.IH)(r,"abort",(()=>t(f())))}function y(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=g(t,(()=>n(f())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!v(e))throw e}))}function _(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function P(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function k(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function C(e,t,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);g(n,(()=>{s&&(clearTimeout(s),o(f()))}))}))}function E(e){return e&&"function"==typeof e.then}function x(e){return A(e)?e:Promise.resolve(e)}function A(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function M(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(f()),s=_();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||_(),s=null,t>0){const n=new AbortController;r=x(e(...l,n.signal));const o=r;C(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=x(e(...l));const u=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},d=r,h=o;return d.then(u,u),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return c}function j(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function $(e){let t=new AbortController;const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function f(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function u(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>u,W0:()=>i,Uc:()=>f,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>E,tD:()=>j,ZN:()=>le,fl:()=>fe,AX:()=>_,Gd:()=>v,Ie:()=>ie,sJ:()=>Q,AH:()=>K,vt:()=>oe,oh:()=>N,P$:()=>F,Ml:()=>ue,ed:()=>$,b7:()=>C,D6:()=>Z,tm:()=>I,YP:()=>B,jc:()=>D,HK:()=>H,$U:()=>X,oC:()=>G,kl:()=>R,v_:()=>q,hF:()=>U,_l:()=>V,PF:()=>L,Fv:()=>J,B7:()=>S,u0:()=>P,Yd:()=>ne,Hu:()=>ce,Qj:()=>se,hO:()=>ee,mN:()=>O});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",f=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,u=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new y(n.Z.applicationUrl),w={},_=(()=>{const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function O(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>k(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):k(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=X(e);const n=$(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&te()&&(r=ee(r)),O(r)}function E(e){const t=$(e);let r,n;if(t){const e=A(t.proxyUrl);r=e.path,n=e.query?P(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function $(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=J(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function N(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function Z(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function R(e){if("string"==typeof e){if(!B(e))return!0;e=ae(e)}if(Z(e,v))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=W(t[r]);for(let t=0;t<n.length;t++)if(Z(e,n[t]))return!0}return!1}function W(e){return w[e]||(Y(e)||G(e)?w[e]=[new y(U(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function U(e,t=_,r){return G(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,i.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!B(e))return e;const n=J(e),o=n.toLowerCase(),s=J(t).toLowerCase().replace(/\/+$/,""),i=r?J(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const f=s.slice(l-1).replace(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function J(e){return function(e){const t=c.httpsDomains;if(!function(e){return u.test(e)||"http"===v.scheme&&G(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!b.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!$(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=U(e=e.trim()))))}function q(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(B(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function F(e,t=!1){if(D(e)||H(e))return null;let r=e.indexOf("://");if(-1===r&&G(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function B(e){return G(e)||Y(e)}function D(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function K(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const z=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(z);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function V(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function G(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return f.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&G(e)}function ee(e){return G(e)?`https:${e}`:e.replace(u,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return G(e)?e.slice(2):(e=e.replace(f,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(B(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&B(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new y(U(e)):(e.scheme||(e.scheme=v.scheme),e)}function ce(e,t){const r=O(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function le(e,t,r){const n=O(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function fe(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function ue(e){if((0,i.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const f={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(1418),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(5590),r.e(7793)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(411),r.e(6481),r.e(6459),r.e(5951)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(1418),r.e(4588),r.e(411),r.e(1534),r.e(3485),r.e(3551),r.e(8961),r.e(7054),r.e(5590),r.e(991)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(1418),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(5590),r.e(327),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(1418),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(5590),r.e(327),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8961),r.e(147)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(1418),r.e(7394),r.e(4588),r.e(411),r.e(1534),r.e(3485),r.e(3551),r.e(8961),r.e(7054),r.e(2730),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(411),r.e(9294),r.e(5446)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(411),r.e(5284),r.e(6200)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2303),r.e(1418),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(5590),r.e(327),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(2303),r.e(2508),r.e(6810),r.e(9872)]).then(r.bind(r,56456))},{CLOSE:u,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case u:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,f=this._client,u=f[t];try{if(!u&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],u=f[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);l=u.call(f,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>f,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=u(o),t.data=r):(s=u(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function f(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20211031",o="0948d3fdf901d1a91fd38255e9544d493df4a905"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"977b805b47cb102ac991",36:"457dd64964cf7f404943",102:"a5316c220b38eef1e8bd",147:"5f3d826340a7a57f988d",223:"59640d78295e2e363f18",247:"a0450fbf01de854f5c97",280:"ea05f870dda27bca4fe8",291:"b7e979282ff4350cd70c",327:"11a34379d41692ca919f",331:"be38d0ede63de53801e3",402:"3551b8cef914d3bc155b",411:"327196d77f0c0c957f7f",511:"a53d7c54f46408d2db42",519:"c389ce157346aec746f0",565:"5fd6f37ebdf9884c3526",576:"38e792e037e88a74995a",635:"ad56c80411821b7b17c0",639:"b935d0c8d5951298cc53",755:"7e0b4f9a847bb2a52338",819:"6280c69d87b2a3a18780",941:"ca5a2883d8dc2f38c2ee",991:"b72c8ed0fc7b6566fd31",1074:"071a418f1f190d2ece24",1387:"99f78f38c25e45aef5ba",1418:"a56facfd4cb910e6c23b",1421:"aa2acf85afff14af2093",1433:"1def8845714ea745fd24",1534:"09141e5539e652edfc6c",1762:"faad6822fda6874a191b",1773:"7a5066bef32f22ad85cb",2134:"d59007da9e065e30a7d0",2303:"dc91bb8e59a44db4388e",2399:"133a5b21b13661d55c45",2508:"b03f50a3d241534a5fe9",2515:"dbaa5fb466d6c0214f24",2594:"20dd68d1187c7681be83",2730:"594029863881481feacf",2921:"081b90873ef847797c89",2986:"5da8be2bf60328d81ca6",3027:"522d8e864f39e03c3fc8",3081:"e3287d75191ceca8081e",3142:"1b0ad088785fe641df2d",3172:"29646bb5f44b1ec31534",3230:"2c8f1a6ca81d3b897623",3394:"f635dbe9863d45f51e81",3396:"1ef684455fd7054f6d71",3471:"36c4bc3d84e9c3148776",3485:"844b564d1a422a17f6ac",3495:"d73de81d3871975fec2a",3529:"5afbeefbf7961a112668",3551:"cfdbbb5b3720c9c60684",3668:"c88887cbeca54a71bd61",3749:"0ce682bec084b1b154ed",3792:"9b1ad2e62cfa4c090e50",3852:"1ac9c3f22385098a0112",3942:"e3cdb46868af383f75f3",4067:"8ae25993e2e1e2e48eea",4166:"353eb518f3c9b027642c",4351:"ae426b913eaaeee223f7",4358:"ca44cbe1a6c6b08a8e55",4369:"cb5c42f598064c0c4eaa",4470:"2d38ee3ef3ebe32a1194",4499:"88de68d9d1d6d2882b55",4588:"e14b4af7eefcbc2c46a0",4599:"29ca38829de88e62ba2b",4695:"dca79a567d98d98f3d8f",4720:"fe42716651b39518453c",4816:"44170d71c7b1abfd8a27",4859:"0cfa3de704541aa8cea2",4889:"0ca1ce6856620fc88011",5051:"26116a93d60020950565",5265:"cc703ea692ba83715f63",5284:"8a21ccf806816ef653db",5446:"f46f4daaaf79ecc428d8",5590:"11975aae96ecec7f0dd9",5732:"469ba1b24cdeea0758ec",5823:"e27b9913f00f4b4c2895",5837:"d26fc253f26c3a2bca4a",5951:"9f7df729bd97a0379583",6104:"fb7d9d9f7395db343880",6200:"f2f727faa425375a8fae",6237:"c544df83e86a9d36b68c",6401:"9c04134791311fd9e2c0",6459:"8eaab757369dc7811d2f",6481:"e3aed0a5b64180bdb6c3",6550:"1550d6d104c283e2f7ad",6570:"5628b989ba13ca2c427d",6619:"d2848874cec36a24aaa5",6690:"90e14687ff00f8df32c3",6710:"d10c72e4502e56c6988d",6740:"7eca3800807b2cd3fda0",6748:"a27df5a645ce73714bed",6774:"ee370bfeeefc1b58d81d",6810:"bd29ea967877fc6d7c53",6841:"d9a1212cdaf2d5493538",6919:"49b71a8f676f82685504",6923:"913ee5abf51a44cc363c",6968:"e133dfa8c66c6bee9251",7039:"30d7685fc6dc1787df44",7049:"0d87589f3f3947d7ed67",7054:"f0b92d01caea641a4a7a",7055:"be1ca1154ec28d186311",7091:"806cf0cf051a3d8e5658",7277:"f183da283af0836421ab",7284:"055eb4c457b52408da25",7319:"3e7a0a81a1f07bce3b30",7394:"f01133a5834f64dba932",7494:"24847b073a1a4afef88c",7572:"842ef6a68abd95971c3f",7698:"637437cbdae969b83350",7779:"a646a11673d513c00e7a",7793:"ed448bb6bc3f87536c0c",7845:"db075f5e0827991efcfd",7873:"93eb468381bfcf0e47d7",8008:"158e4549992401e5cbc0",8014:"7f75920b962c1276aa51",8062:"a884e173d8ce31a3fb1d",8121:"da6041fdb1e2013fc18e",8216:"6cc2078b77543a5c5964",8227:"1f394b20410fddb30a96",8325:"bcdc2a6081126973b4a2",8422:"4e6178bdd453000ea5f3",8511:"f8de4ffc5d341d7d4722",8625:"caa5d1b9680a822f2070",8659:"9e52510bd9e9408583de",8683:"492c325c1f59d6d398d3",8758:"d1a71b58ef62e71979c5",8778:"e0e761650344efdc7517",8828:"2a9a5b51603a07061f9c",8835:"7922cb56bea42d538d06",8936:"99e36fec3216d01895f7",8961:"9796d54ff12b6429164a",9070:"4b0ffef8ba88b5523930",9101:"de8e7a71642591b53313",9151:"03e0722f05446e5926e5",9169:"f7ae0344257e6e08469b",9201:"4d8606b334e39827316b",9254:"ccaaefa20dfb940e8cc0",9291:"6e172b435a55bc72baef",9294:"5315be9b4ef8fe6aaac8",9296:"83707a91e5dd257973a5",9489:"06a9cdf71330bf9cc774",9490:"45c2f2a8789268e84fa6",9625:"447bd7c504965ae05973",9664:"7411f0bbce1cc96ded36",9767:"addbd572aab0a3a0fb7e",9872:"89b4983de872780e9aa1",9884:"3a04496f43de689cc63b",9928:"955ab28ee39fc95d4de5",9930:"3372869dc67877713f23",9932:"00bf9858abb8373e8d68",9938:"4247258a985917cd2211",9966:"7fe87300651fef54c06d"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,102:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(16358),o=(r(80442),r(78286)),s=r(17202);const i={apiKey:void 0,applicationUrl:n.Z.location&&n.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(n.Z.esriConfig&&((0,o.RH)(i,n.Z.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.22.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>l,a9:()=>a,fS:()=>s,cq:()=>f,w6:()=>c,Od:()=>b,e$:()=>d,FY:()=>p});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const i=!!Array.prototype.fill;function a(e,t){if(i)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function c(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class l{constructor(){this.last=0}}const u=new l;function f(e,t,r,n){n=n||u;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,n){const o=null==r?e.length:r,s=f(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const h=new Set;function p(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;h.clear();for(let e=0;e<n;++e)h.add(t[e]);o=o||u;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;for(let t=0;t<i;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;return h.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},16358:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,s=r(16358);let i;var a,c;function l(e){return"function"==typeof i[e]?i[e]=i[e](s.Z):i[e]}i=null!=(n=s.Z.dojoConfig)&&n.has||null!=(o=s.Z.esriConfig)&&o.has?{...null==(a=s.Z.dojoConfig)?void 0:a.has,...null==(c=s.Z.esriConfig)?void 0:c.has}:{},l.add=(e,t,r,n)=>((n||void 0===i[e])&&(i[e]=t),r&&l(e)),l.cache=i,l.add("esri-deprecation-warnings",!0),(()=>{l.add("host-webworker",void 0!==s.Z.WorkerGlobalScope&&self instanceof s.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(l.add("host-browser",e),l.add("host-node","object"==typeof s.Z.process&&s.Z.process.versions&&s.Z.process.versions.node&&s.Z.process.versions.v8),l.add("dom",e),l("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(l.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),l.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),l.add("khtml",r.includes("Konqueror")?n:void 0),l.add("edge",parseFloat(t.split("Edge/")[1])||void 0),l.add("opr",parseFloat(t.split("OPR/")[1])||void 0),l.add("webkit",!l("wp")&&!l("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),l.add("chrome",!l("edge")&&!l("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),l.add("android",!l("wp")&&parseFloat(t.split("Android ")[1])||void 0),l.add("safari",!r.includes("Safari")||l("wp")||l("chrome")||l("android")||l("edge")||l("opr")?void 0:parseFloat(r.split("Version/")[1])),l.add("mac",r.includes("Macintosh")),!l("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));l.add(e,n),l.add("ios",n)}l.add("trident",parseFloat(r.split("Trident/")[1])||void 0),l("webkit")||(!t.includes("Gecko")||l("wp")||l("khtml")||l("trident")||l("edge")||l.add("mozilla",n),l("mozilla")&&l.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(s.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&l.add("esri-mobile",t),r&&l.add("esri-iPhone",r),l.add("esri-geolocation",!!navigator.geolocation)}l.add("esri-canvas-svg-support",!l("trident")),l.add("esri-wasm","WebAssembly"in s.Z),l.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in s.Z,t=!1===s.Z.crossOriginIsolated;return e&&!t})),l.add("esri-atomics","Atomics"in s.Z),l.add("esri-workers","Worker"in s.Z),l.add("esri-text-decoder","TextDecoder"in s.Z),l.add("esri-text-encoder","TextEncoder"in s.Z),l.add("web-feat:cache","caches"in s.Z),l.add("esri-workers-arraybuffer-transfer",!l("safari")||Number(l("safari"))>=12),l.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),l.add("featurelayer-simplify-payload-size-factors",[1,1,4]),l.add("featurelayer-snapshot-enabled",!0),l.add("featurelayer-snapshot-point-min-threshold",8e4),l.add("featurelayer-snapshot-point-max-threshold",4e5),l.add("featurelayer-snapshot-point-coverage",.1),l.add("featurelayer-advanced-symbols",!1),l.add("featurelayer-pbf",!0),l.add("featurelayer-pbf-statistics",!1),l.add("feature-layers-workers",!0),l.add("mapview-transitions-duration",200),l.add("mapserver-pbf-enabled",!1),l("host-webworker")||l("host-browser")&&(l.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),l.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{l.add("esri-image-decode",!0,!0,!0)})).catch((()=>{l.add("esri-image-decode",!1,!0,!0)}))}return!1})),l.add("esri-url-encodes-apostrophe",(()=>{const e=s.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),l.add("vectortilelayer-max-buffers",l("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>s,fS:()=>i,yd:()=>o}),r(67676),r(80442);var n=r(1533);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,n.W0)(e)||(0,n.lq)(e)||(0,n.KZ)(e)||(0,n.z3)(e)||(0,n.Uc)(e)||(0,n.Hx)(e)||(0,n.ZY)(e)||(0,n.xZ)(e)||(0,n.fS)(e))return(0,n.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,s(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(s(e))})),t}let t;const r=e;if("function"==typeof r.clone)t=r.clone();else if("function"==typeof r.map&&"function"==typeof r.forEach)t=r.map(s);else if("function"==typeof r.notifyChange&&"function"==typeof r.watch)t=r.clone();else{t={};for(const r of Object.getOwnPropertyNames(e))t[r]=s(e[r])}return t}function i(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)m(r,null,t)}function m(e,t,r){return n(e)?r(e):t}function y(e,t){return n(e)?t(e):null}function v(e){return e.filter((e=>n(e)))}function w(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function _(e){return e}r.d(t,{Po:()=>y,yw:()=>i,j0:()=>_,SC:()=>u,O3:()=>f,lV:()=>v,JR:()=>g,U2:()=>w,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>C,$6:()=>c,Ue:()=>l,zE:()=>u,dD:()=>_,hh:()=>j,vr:()=>$,Ds:()=>M,as:()=>O,WW:()=>P,R8:()=>w,D_:()=>v,Hc:()=>h,tI:()=>A,y8:()=>E,fu:()=>g,$F:()=>m,d1:()=>k,DB:()=>S,r9:()=>p,k_:()=>f,H9:()=>b,gx:()=>x,Hl:()=>y});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(e,t="Aborted"){if(h(e))throw u(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function p(e){if(v(e))throw e}function b(e){if(!v(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function m(e,t){const r=d(e);if(!(0,a.Wi)(r))return f(r),(0,i.IH)(r,"abort",(()=>t(u())))}function y(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=g(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!v(e))throw e}))}function _(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function P(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function k(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function C(e,t,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);g(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function E(e){return e&&"function"==typeof e.then}function x(e){return A(e)?e:Promise.resolve(e)}function A(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function M(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=_();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||_(),s=null,t>0){const n=new AbortController;r=x(e(...l,n.signal));const o=r;C(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=x(e(...l));const f=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return c}function j(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function $(e){let t=new AbortController;const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>E,tD:()=>j,ZN:()=>le,fl:()=>ue,AX:()=>_,Gd:()=>v,Ie:()=>ie,sJ:()=>Q,AH:()=>K,vt:()=>oe,oh:()=>N,P$:()=>F,Ml:()=>fe,ed:()=>$,b7:()=>C,D6:()=>Z,tm:()=>I,YP:()=>B,jc:()=>D,HK:()=>H,$U:()=>X,oC:()=>G,kl:()=>R,v_:()=>q,hF:()=>U,_l:()=>V,PF:()=>L,Fv:()=>J,B7:()=>S,u0:()=>P,Yd:()=>ne,Hu:()=>ce,Qj:()=>se,hO:()=>ee,mN:()=>O});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new y(n.Z.applicationUrl),w={},_=(()=>{const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function O(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>k(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):k(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=X(e);const n=$(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&te()&&(r=ee(r)),O(r)}function E(e){const t=$(e);let r,n;if(t){const e=A(t.proxyUrl);r=e.path,n=e.query?P(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function $(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=J(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function N(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function Z(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function R(e){if("string"==typeof e){if(!B(e))return!0;e=ae(e)}if(Z(e,v))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=W(t[r]);for(let t=0;t<n.length;t++)if(Z(e,n[t]))return!0}return!1}function W(e){return w[e]||(Y(e)||G(e)?w[e]=[new y(U(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function U(e,t=_,r){return G(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,i.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!B(e))return e;const n=J(e),o=n.toLowerCase(),s=J(t).toLowerCase().replace(/\/+$/,""),i=r?J(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function J(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&G(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!b.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!$(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=U(e=e.trim()))))}function q(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(B(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function F(e,t=!1){if(D(e)||H(e))return null;let r=e.indexOf("://");if(-1===r&&G(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function B(e){return G(e)||Y(e)}function D(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function K(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const z=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(z);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function V(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function G(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return u.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&G(e)}function ee(e){return G(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return G(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(B(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&B(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new y(U(e)):(e.scheme||(e.scheme=v.scheme),e)}function ce(e,t){const r=O(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function le(e,t,r){const n=O(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function ue(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function fe(e){if((0,i.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(7668),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(2781),r.e(966)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(411),r.e(2781),r.e(6481),r.e(6459),r.e(821)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(7668),r.e(4588),r.e(411),r.e(1534),r.e(3485),r.e(3551),r.e(8961),r.e(7054),r.e(2781),r.e(5158)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(7668),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(7668),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(8961),r.e(147)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(7668),r.e(5638),r.e(4588),r.e(411),r.e(1534),r.e(3485),r.e(3551),r.e(8961),r.e(7054),r.e(2730),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(411),r.e(9294),r.e(5446)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(411),r.e(7303),r.e(807)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(8316),r.e(2303),r.e(7668),r.e(411),r.e(1534),r.e(3551),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(2303),r.e(1785),r.e(6810),r.e(9872)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20211104",o="f56ab3008fdaea1ce910515531b6ddb258d83e4f"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"a4f1b833e8068885708d",36:"457dd64964cf7f404943",102:"14f82f0b5ab8bfa06497",147:"f1f086f9524a957a2cd9",223:"59640d78295e2e363f18",247:"a0450fbf01de854f5c97",280:"ea05f870dda27bca4fe8",331:"be38d0ede63de53801e3",402:"3551b8cef914d3bc155b",411:"327196d77f0c0c957f7f",511:"a53d7c54f46408d2db42",519:"091d09de7311b28443f5",565:"5fd6f37ebdf9884c3526",576:"38e792e037e88a74995a",635:"ce743ad8cf32d1f2a5a7",639:"b935d0c8d5951298cc53",755:"7e0b4f9a847bb2a52338",807:"1816bd566863cc362f84",819:"6280c69d87b2a3a18780",821:"f4a2b5ed98965a028342",941:"ca5a2883d8dc2f38c2ee",966:"7eb32a67b4477d997b57",1074:"071a418f1f190d2ece24",1295:"2f8949e7d2c726840f42",1387:"99f78f38c25e45aef5ba",1421:"7fa2d758a24bbaaab0bf",1433:"1def8845714ea745fd24",1534:"09141e5539e652edfc6c",1762:"b912eb424a9882cffc99",1765:"323611e86deb05ca3b07",1773:"1dc0c54cfc68b199030c",1785:"f621db836009fce93e62",2134:"d59007da9e065e30a7d0",2303:"2c50f3bac3061d12f78d",2399:"133a5b21b13661d55c45",2515:"dbaa5fb466d6c0214f24",2594:"20dd68d1187c7681be83",2730:"594029863881481feacf",2781:"761e8254d99a2b275349",2921:"d3b03b555d795fdc33f6",2986:"c709a68b054851c6a910",3027:"c2ab38a469b09fcec4d5",3081:"b857126936727679ad89",3142:"cc8ce1420da655d4d8e5",3172:"29646bb5f44b1ec31534",3230:"2c8f1a6ca81d3b897623",3396:"08c12d62f01d327f80f6",3471:"36c4bc3d84e9c3148776",3485:"844b564d1a422a17f6ac",3529:"e0bed73f28c08b415cfa",3551:"cfdbbb5b3720c9c60684",3668:"c88887cbeca54a71bd61",3749:"a3a442ae592aa2528c69",3792:"f968fa6e5547f8e60e20",3845:"abd25a2bbe871f981fe0",3852:"62c683f44c297d239ab8",3942:"e3cdb46868af383f75f3",4067:"cefacc43ab8561f86e9a",4166:"353eb518f3c9b027642c",4351:"ad3282aad54afde368bd",4358:"f977977564b2b75332a9",4369:"cb5c42f598064c0c4eaa",4470:"2d38ee3ef3ebe32a1194",4499:"88de68d9d1d6d2882b55",4588:"e14b4af7eefcbc2c46a0",4599:"a82866c4f78b6d54646c",4695:"dca79a567d98d98f3d8f",4720:"fe42716651b39518453c",4816:"33726add2ef8aeab25ff",4859:"42a1c381948932f667a4",4889:"0ca1ce6856620fc88011",5051:"26116a93d60020950565",5158:"8624004989b4f9b7f529",5265:"cc703ea692ba83715f63",5446:"5d2dc79815bf01bd3faa",5638:"f390eb338bb8e5925dba",5732:"469ba1b24cdeea0758ec",5823:"e27b9913f00f4b4c2895",5837:"42c67e6579b54844ec06",5845:"9533c751eecb8022a450",6104:"532d8977a95c06889da3",6237:"c544df83e86a9d36b68c",6348:"76b931486a028bacceb2",6401:"d302ecd597f466b253e8",6459:"a397b2db74570cb720d1",6481:"e3aed0a5b64180bdb6c3",6550:"402268ca2b326e60fddb",6570:"5628b989ba13ca2c427d",6619:"d2848874cec36a24aaa5",6690:"93d70e07b1da163ecfe7",6710:"a7478a5f050036833f63",6740:"7eca3800807b2cd3fda0",6748:"afbe7591236298096ff3",6774:"3584880300141f78493e",6810:"bd29ea967877fc6d7c53",6841:"d9a1212cdaf2d5493538",6919:"49b71a8f676f82685504",6968:"4280f88a46ce710a4102",7039:"30d7685fc6dc1787df44",7049:"0d87589f3f3947d7ed67",7054:"f0b92d01caea641a4a7a",7055:"be1ca1154ec28d186311",7091:"daed8c0f1f33b1256f62",7277:"f183da283af0836421ab",7284:"055eb4c457b52408da25",7303:"440f8101402a4c0d7019",7319:"3e7a0a81a1f07bce3b30",7392:"c3b2d5112d6cbceeb066",7572:"0a429e9f333815d0f302",7635:"c8a1b361fb0b8e939197",7668:"7d5f9bdfd3588e26477c",7779:"a646a11673d513c00e7a",7845:"db075f5e0827991efcfd",7873:"93eb468381bfcf0e47d7",8008:"335b441f4263947cb748",8014:"7f75920b962c1276aa51",8062:"2210d50a4f73bb30717c",8121:"da6041fdb1e2013fc18e",8216:"f8864cc145a2fb1e0c62",8227:"1f394b20410fddb30a96",8316:"f98f64bbcb1b24d0d290",8422:"56c34f60fdc752ca8371",8511:"0c9d254c546f7ea3c6d9",8625:"caa5d1b9680a822f2070",8659:"420c6b14c4acf41205db",8683:"ca4596c80f250218b094",8758:"d1a71b58ef62e71979c5",8778:"e0e761650344efdc7517",8828:"2a9a5b51603a07061f9c",8835:"7922cb56bea42d538d06",8936:"e4da7de999b3e1502e14",8961:"9796d54ff12b6429164a",9070:"4b0ffef8ba88b5523930",9101:"de8e7a71642591b53313",9151:"da80ed65d430ced1931e",9169:"f7ae0344257e6e08469b",9201:"7fa4546630a6a4eee428",9254:"ccaaefa20dfb940e8cc0",9291:"6e172b435a55bc72baef",9294:"5315be9b4ef8fe6aaac8",9296:"83707a91e5dd257973a5",9489:"06a9cdf71330bf9cc774",9490:"45c2f2a8789268e84fa6",9561:"80f112e52beddfa98d6d",9625:"43291305879d8078d04d",9664:"7411f0bbce1cc96ded36",9767:"addbd572aab0a3a0fb7e",9872:"a7830af3eec3a1354517",9884:"3a04496f43de689cc63b",9928:"935764d13ddab80c0b6d",9930:"bda18d1a2e3f6aed84de",9932:"8dd92ac37c35bcde14bd",9938:"7cb55211b8b9105d5cfd"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,102:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3396],{46851:(t,e,n)=>{n.d(e,{E:()=>a,R:()=>i});const a=1e-6,i=Math.random,o=Math.PI/180,s=180/Math.PI;Object.freeze({__proto__:null,EPSILON:a,RANDOM:i,toRadian:function(t){return t*o},toDegree:function(t){return t*s},equals:function(t,e){return Math.abs(t-e)<=a*Math.max(1,Math.abs(t),Math.abs(e))}})},52138:(t,e,n)=>{n.d(e,{a:()=>l,b:()=>c,d:()=>m,e:()=>o,f:()=>f,g:()=>v,h:()=>x,i:()=>r,m:()=>u,o:()=>p,q:()=>T,s:()=>s,t:()=>h});var a=n(65617),i=n(46851);function o(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}function s(t,e,n,a,i,o,s,r,l,c,u,h,f,m,p,d,M){return t[0]=e,t[1]=n,t[2]=a,t[3]=i,t[4]=o,t[5]=s,t[6]=r,t[7]=l,t[8]=c,t[9]=u,t[10]=h,t[11]=f,t[12]=m,t[13]=p,t[14]=d,t[15]=M,t}function r(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 l(t,e){if(t===e){const n=e[1],a=e[2],i=e[3],o=e[6],s=e[7],r=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]=a,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=r}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 c(t,e){const n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],r=e[5],l=e[6],c=e[7],u=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15],x=n*r-a*s,v=n*l-i*s,T=n*c-o*s,g=a*l-i*r,b=a*c-o*r,w=i*c-o*l,R=u*d-h*p,_=u*M-f*p,q=u*y-m*p,E=h*M-f*d,I=h*y-m*d,A=f*y-m*M;let D=x*A-v*I+T*E+g*q-b*_+w*R;return D?(D=1/D,t[0]=(r*A-l*I+c*E)*D,t[1]=(i*I-a*A-o*E)*D,t[2]=(d*w-M*b+y*g)*D,t[3]=(f*b-h*w-m*g)*D,t[4]=(l*q-s*A-c*_)*D,t[5]=(n*A-i*q+o*_)*D,t[6]=(M*T-p*w-y*v)*D,t[7]=(u*w-f*T+m*v)*D,t[8]=(s*I-r*q+c*R)*D,t[9]=(a*q-n*I-o*R)*D,t[10]=(p*b-d*T+y*x)*D,t[11]=(h*T-u*b-m*x)*D,t[12]=(r*_-s*E-l*R)*D,t[13]=(n*E-a*_+i*R)*D,t[14]=(d*v-p*g-M*x)*D,t[15]=(u*g-h*v+f*x)*D,t):null}function u(t,e,n){const a=e[0],i=e[1],o=e[2],s=e[3],r=e[4],l=e[5],c=e[6],u=e[7],h=e[8],f=e[9],m=e[10],p=e[11],d=e[12],M=e[13],y=e[14],x=e[15];let v=n[0],T=n[1],g=n[2],b=n[3];return t[0]=v*a+T*r+g*h+b*d,t[1]=v*i+T*l+g*f+b*M,t[2]=v*o+T*c+g*m+b*y,t[3]=v*s+T*u+g*p+b*x,v=n[4],T=n[5],g=n[6],b=n[7],t[4]=v*a+T*r+g*h+b*d,t[5]=v*i+T*l+g*f+b*M,t[6]=v*o+T*c+g*m+b*y,t[7]=v*s+T*u+g*p+b*x,v=n[8],T=n[9],g=n[10],b=n[11],t[8]=v*a+T*r+g*h+b*d,t[9]=v*i+T*l+g*f+b*M,t[10]=v*o+T*c+g*m+b*y,t[11]=v*s+T*u+g*p+b*x,v=n[12],T=n[13],g=n[14],b=n[15],t[12]=v*a+T*r+g*h+b*d,t[13]=v*i+T*l+g*f+b*M,t[14]=v*o+T*c+g*m+b*y,t[15]=v*s+T*u+g*p+b*x,t}function h(t,e,n){const a=n[0],i=n[1],o=n[2];let s,r,l,c,u,h,f,m,p,d,M,y;return e===t?(t[12]=e[0]*a+e[4]*i+e[8]*o+e[12],t[13]=e[1]*a+e[5]*i+e[9]*o+e[13],t[14]=e[2]*a+e[6]*i+e[10]*o+e[14],t[15]=e[3]*a+e[7]*i+e[11]*o+e[15]):(s=e[0],r=e[1],l=e[2],c=e[3],u=e[4],h=e[5],f=e[6],m=e[7],p=e[8],d=e[9],M=e[10],y=e[11],t[0]=s,t[1]=r,t[2]=l,t[3]=c,t[4]=u,t[5]=h,t[6]=f,t[7]=m,t[8]=p,t[9]=d,t[10]=M,t[11]=y,t[12]=s*a+u*i+p*o+e[12],t[13]=r*a+h*i+d*o+e[13],t[14]=l*a+f*i+M*o+e[14],t[15]=c*a+m*i+y*o+e[15]),t}function f(t,e,n){const a=n[0],i=n[1],o=n[2];return t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t[3]=e[3]*a,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,a){let o,s,r,l,c,u,h,f,m,p,d,M,y,x,v,T,g,b,w,R,_,q,E,I,A=a[0],D=a[1],C=a[2],Z=Math.sqrt(A*A+D*D+C*C);return Z<i.E?null:(Z=1/Z,A*=Z,D*=Z,C*=Z,o=Math.sin(n),s=Math.cos(n),r=1-s,l=e[0],c=e[1],u=e[2],h=e[3],f=e[4],m=e[5],p=e[6],d=e[7],M=e[8],y=e[9],x=e[10],v=e[11],T=A*A*r+s,g=D*A*r+C*o,b=C*A*r-D*o,w=A*D*r-C*o,R=D*D*r+s,_=C*D*r+A*o,q=A*C*r+D*o,E=D*C*r-A*o,I=C*C*r+s,t[0]=l*T+f*g+M*b,t[1]=c*T+m*g+y*b,t[2]=u*T+p*g+x*b,t[3]=h*T+d*g+v*b,t[4]=l*w+f*R+M*_,t[5]=c*w+m*R+y*_,t[6]=u*w+p*R+x*_,t[7]=h*w+d*R+v*_,t[8]=l*q+f*E+M*I,t[9]=c*q+m*E+y*I,t[10]=u*q+p*E+x*I,t[11]=h*q+d*E+v*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function p(t,e){const n=Math.sin(e),a=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,e,n){const a=e[0],i=e[1],o=e[2],s=e[3],r=a+a,l=i+i,c=o+o,u=a*r,h=a*l,f=a*c,m=i*l,p=i*c,d=o*c,M=s*r,y=s*l,x=s*c;return t[0]=1-(m+d),t[1]=h+x,t[2]=f-y,t[3]=0,t[4]=h-x,t[5]=1-(u+d),t[6]=p+M,t[7]=0,t[8]=f+y,t[9]=p-M,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const M=(0,a.c)();function y(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 x(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[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 v(t,e){if(t===e)return!0;const n=t[0],a=t[1],o=t[2],s=t[3],r=t[4],l=t[5],c=t[6],u=t[7],h=t[8],f=t[9],m=t[10],p=t[11],d=t[12],M=t[13],y=t[14],x=t[15],v=e[0],T=e[1],g=e[2],b=e[3],w=e[4],R=e[5],_=e[6],q=e[7],E=e[8],I=e[9],A=e[10],D=e[11],C=e[12],Z=e[13],z=e[14],F=e[15];return Math.abs(n-v)<=i.E*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-T)<=i.E*Math.max(1,Math.abs(a),Math.abs(T))&&Math.abs(o-g)<=i.E*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-b)<=i.E*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(r-w)<=i.E*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(l-R)<=i.E*Math.max(1,Math.abs(l),Math.abs(R))&&Math.abs(c-_)<=i.E*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-q)<=i.E*Math.max(1,Math.abs(u),Math.abs(q))&&Math.abs(h-E)<=i.E*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(f-I)<=i.E*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(m-A)<=i.E*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(p-D)<=i.E*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(d-C)<=i.E*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(M-Z)<=i.E*Math.max(1,Math.abs(M),Math.abs(Z))&&Math.abs(y-z)<=i.E*Math.max(1,Math.abs(y),Math.abs(z))&&Math.abs(x-F)<=i.E*Math.max(1,Math.abs(x),Math.abs(F))}function T(t){const e=i.E,n=t[0],a=t[1],o=t[2],s=t[4],r=t[5],l=t[6],c=t[8],u=t[9],h=t[10];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(a*a+r*r+u*u))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e}const g=u,b=y;Object.freeze({__proto__:null,copy:o,set:s,identity:r,transpose:l,invert:c,adjoint:function(t,e){const n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],r=e[5],l=e[6],c=e[7],u=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15];return t[0]=r*(f*y-m*M)-h*(l*y-c*M)+d*(l*m-c*f),t[1]=-(a*(f*y-m*M)-h*(i*y-o*M)+d*(i*m-o*f)),t[2]=a*(l*y-c*M)-r*(i*y-o*M)+d*(i*c-o*l),t[3]=-(a*(l*m-c*f)-r*(i*m-o*f)+h*(i*c-o*l)),t[4]=-(s*(f*y-m*M)-u*(l*y-c*M)+p*(l*m-c*f)),t[5]=n*(f*y-m*M)-u*(i*y-o*M)+p*(i*m-o*f),t[6]=-(n*(l*y-c*M)-s*(i*y-o*M)+p*(i*c-o*l)),t[7]=n*(l*m-c*f)-s*(i*m-o*f)+u*(i*c-o*l),t[8]=s*(h*y-m*d)-u*(r*y-c*d)+p*(r*m-c*h),t[9]=-(n*(h*y-m*d)-u*(a*y-o*d)+p*(a*m-o*h)),t[10]=n*(r*y-c*d)-s*(a*y-o*d)+p*(a*c-o*r),t[11]=-(n*(r*m-c*h)-s*(a*m-o*h)+u*(a*c-o*r)),t[12]=-(s*(h*M-f*d)-u*(r*M-l*d)+p*(r*f-l*h)),t[13]=n*(h*M-f*d)-u*(a*M-i*d)+p*(a*f-i*h),t[14]=-(n*(r*M-l*d)-s*(a*M-i*d)+p*(a*l-i*r)),t[15]=n*(r*f-l*h)-s*(a*f-i*h)+u*(a*l-i*r),t},determinant:function(t){const e=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],r=t[6],l=t[7],c=t[8],u=t[9],h=t[10],f=t[11],m=t[12],p=t[13],d=t[14],M=t[15];return(e*s-n*o)*(h*M-f*d)-(e*r-a*o)*(u*M-f*p)+(e*l-i*o)*(u*d-h*p)+(n*r-a*s)*(c*M-f*m)-(n*l-i*s)*(c*d-h*m)+(a*l-i*r)*(c*p-u*m)},multiply:u,translate:h,scale:f,rotate:m,rotateX:function(t,e,n){const a=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],r=e[6],l=e[7],c=e[8],u=e[9],h=e[10],f=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]=o*i+c*a,t[5]=s*i+u*a,t[6]=r*i+h*a,t[7]=l*i+f*a,t[8]=c*i-o*a,t[9]=u*i-s*a,t[10]=h*i-r*a,t[11]=f*i-l*a,t},rotateY:function(t,e,n){const a=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],r=e[2],l=e[3],c=e[8],u=e[9],h=e[10],f=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]=o*i-c*a,t[1]=s*i-u*a,t[2]=r*i-h*a,t[3]=l*i-f*a,t[8]=o*a+c*i,t[9]=s*a+u*i,t[10]=r*a+h*i,t[11]=l*a+f*i,t},rotateZ:function(t,e,n){const a=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],r=e[2],l=e[3],c=e[4],u=e[5],h=e[6],f=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]=o*i+c*a,t[1]=s*i+u*a,t[2]=r*i+h*a,t[3]=l*i+f*a,t[4]=c*i-o*a,t[5]=u*i-s*a,t[6]=h*i-r*a,t[7]=f*i-l*a,t},fromTranslation:function(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},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},fromRotation:function(t,e,n){let a,o,s,r=n[0],l=n[1],c=n[2],u=Math.sqrt(r*r+l*l+c*c);return u<i.E?null:(u=1/u,r*=u,l*=u,c*=u,a=Math.sin(e),o=Math.cos(e),s=1-o,t[0]=r*r*s+o,t[1]=l*r*s+c*a,t[2]=c*r*s-l*a,t[3]=0,t[4]=r*l*s-c*a,t[5]=l*l*s+o,t[6]=c*l*s+r*a,t[7]=0,t[8]=r*c*s+l*a,t[9]=l*c*s-r*a,t[10]=c*c*s+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},fromXRotation:p,fromYRotation:function(t,e){const n=Math.sin(e),a=Math.cos(e);return t[0]=a,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]=a,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),a=Math.cos(e);return t[0]=a,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=a,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},fromRotationTranslation:d,fromQuat2:function(t,e){const n=M,a=-e[0],i=-e[1],o=-e[2],s=e[3],r=e[4],l=e[5],c=e[6],u=e[7],h=a*a+i*i+o*o+s*s;return h>0?(n[0]=2*(r*s+u*a+l*o-c*i)/h,n[1]=2*(l*s+u*i+c*a-r*o)/h,n[2]=2*(c*s+u*o+r*i-l*a)/h):(n[0]=2*(r*s+u*a+l*o-c*i),n[1]=2*(l*s+u*i+c*a-r*o),n[2]=2*(c*s+u*o+r*i-l*a)),d(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],a=e[1],i=e[2],o=e[4],s=e[5],r=e[6],l=e[8],c=e[9],u=e[10];return t[0]=Math.sqrt(n*n+a*a+i*i),t[1]=Math.sqrt(o*o+s*s+r*r),t[2]=Math.sqrt(l*l+c*c+u*u),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let a=0;return n>0?(a=2*Math.sqrt(n+1),t[3]=.25*a,t[0]=(e[6]-e[9])/a,t[1]=(e[8]-e[2])/a,t[2]=(e[1]-e[4])/a):e[0]>e[5]&&e[0]>e[10]?(a=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/a,t[0]=.25*a,t[1]=(e[1]+e[4])/a,t[2]=(e[8]+e[2])/a):e[5]>e[10]?(a=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/a,t[0]=(e[1]+e[4])/a,t[1]=.25*a,t[2]=(e[6]+e[9])/a):(a=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/a,t[0]=(e[8]+e[2])/a,t[1]=(e[6]+e[9])/a,t[2]=.25*a),t},fromRotationTranslationScale:function(t,e,n,a){const i=e[0],o=e[1],s=e[2],r=e[3],l=i+i,c=o+o,u=s+s,h=i*l,f=i*c,m=i*u,p=o*c,d=o*u,M=s*u,y=r*l,x=r*c,v=r*u,T=a[0],g=a[1],b=a[2];return t[0]=(1-(p+M))*T,t[1]=(f+v)*T,t[2]=(m-x)*T,t[3]=0,t[4]=(f-v)*g,t[5]=(1-(h+M))*g,t[6]=(d+y)*g,t[7]=0,t[8]=(m+x)*b,t[9]=(d-y)*b,t[10]=(1-(h+p))*b,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,e,n,a,i){const o=e[0],s=e[1],r=e[2],l=e[3],c=o+o,u=s+s,h=r+r,f=o*c,m=o*u,p=o*h,d=s*u,M=s*h,y=r*h,x=l*c,v=l*u,T=l*h,g=a[0],b=a[1],w=a[2],R=i[0],_=i[1],q=i[2],E=(1-(d+y))*g,I=(m+T)*g,A=(p-v)*g,D=(m-T)*b,C=(1-(f+y))*b,Z=(M+x)*b,z=(p+v)*w,F=(M-x)*w,S=(1-(f+d))*w;return t[0]=E,t[1]=I,t[2]=A,t[3]=0,t[4]=D,t[5]=C,t[6]=Z,t[7]=0,t[8]=z,t[9]=F,t[10]=S,t[11]=0,t[12]=n[0]+R-(E*R+D*_+z*q),t[13]=n[1]+_-(I*R+C*_+F*q),t[14]=n[2]+q-(A*R+Z*_+S*q),t[15]=1,t},fromQuat:function(t,e){const n=e[0],a=e[1],i=e[2],o=e[3],s=n+n,r=a+a,l=i+i,c=n*s,u=a*s,h=a*r,f=i*s,m=i*r,p=i*l,d=o*s,M=o*r,y=o*l;return t[0]=1-h-p,t[1]=u+y,t[2]=f-M,t[3]=0,t[4]=u-y,t[5]=1-c-p,t[6]=m+d,t[7]=0,t[8]=f+M,t[9]=m-d,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,a,i,o,s){const r=1/(n-e),l=1/(i-a),c=1/(o-s);return t[0]=2*o*r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*r,t[9]=(i+a)*l,t[10]=(s+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*c,t[15]=0,t},perspective:function(t,e,n,a,i){const o=1/Math.tan(e/2);let s;return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,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!=i&&i!==1/0?(s=1/(a-i),t[10]=(i+a)*s,t[14]=2*i*a*s):(t[10]=-1,t[14]=-2*a),t},perspectiveFromFieldOfView:function(t,e,n,a){const i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),r=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+r),c=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-r)*l*.5,t[9]=(i-o)*c*.5,t[10]=a/(n-a),t[11]=-1,t[12]=0,t[13]=0,t[14]=a*n/(n-a),t[15]=0,t},ortho:function(t,e,n,a,i,o,s){const r=1/(e-n),l=1/(a-i),c=1/(o-s);return t[0]=-2*r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*r,t[13]=(i+a)*l,t[14]=(s+o)*c,t[15]=1,t},lookAt:function(t,e,n,a){let o,s,l,c,u,h,f,m,p,d;const M=e[0],y=e[1],x=e[2],v=a[0],T=a[1],g=a[2],b=n[0],w=n[1],R=n[2];return Math.abs(M-b)<i.E&&Math.abs(y-w)<i.E&&Math.abs(x-R)<i.E?r(t):(f=M-b,m=y-w,p=x-R,d=1/Math.sqrt(f*f+m*m+p*p),f*=d,m*=d,p*=d,o=T*p-g*m,s=g*f-v*p,l=v*m-T*f,d=Math.sqrt(o*o+s*s+l*l),d?(d=1/d,o*=d,s*=d,l*=d):(o=0,s=0,l=0),c=m*l-p*s,u=p*o-f*l,h=f*s-m*o,d=Math.sqrt(c*c+u*u+h*h),d?(d=1/d,c*=d,u*=d,h*=d):(c=0,u=0,h=0),t[0]=o,t[1]=c,t[2]=f,t[3]=0,t[4]=s,t[5]=u,t[6]=m,t[7]=0,t[8]=l,t[9]=h,t[10]=p,t[11]=0,t[12]=-(o*M+s*y+l*x),t[13]=-(c*M+u*y+h*x),t[14]=-(f*M+m*y+p*x),t[15]=1,t)},targetTo:function(t,e,n,a){const i=e[0],o=e[1],s=e[2],r=a[0],l=a[1],c=a[2];let u=i-n[0],h=o-n[1],f=s-n[2],m=u*u+h*h+f*f;m>0&&(m=1/Math.sqrt(m),u*=m,h*=m,f*=m);let p=l*f-c*h,d=c*u-r*f,M=r*h-l*u;return m=p*p+d*d+M*M,m>0&&(m=1/Math.sqrt(m),p*=m,d*=m,M*=m),t[0]=p,t[1]=d,t[2]=M,t[3]=0,t[4]=h*M-f*d,t[5]=f*p-u*M,t[6]=u*d-h*p,t[7]=0,t[8]=u,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},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]+")"},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)},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},subtract:y,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,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t[2]=e[2]+n[2]*a,t[3]=e[3]+n[3]*a,t[4]=e[4]+n[4]*a,t[5]=e[5]+n[5]*a,t[6]=e[6]+n[6]*a,t[7]=e[7]+n[7]*a,t[8]=e[8]+n[8]*a,t[9]=e[9]+n[9]*a,t[10]=e[10]+n[10]*a,t[11]=e[11]+n[11]*a,t[12]=e[12]+n[12]*a,t[13]=e[13]+n[13]*a,t[14]=e[14]+n[14]*a,t[15]=e[15]+n[15]*a,t},exactEquals:x,equals:v,isOrthoNormal:T,mul:g,sub:b})},17896:(t,e,n)=>{n.d(e,{E:()=>h,a:()=>f,b:()=>l,c:()=>x,d:()=>y,e:()=>v,f:()=>c,g:()=>s,h:()=>p,i:()=>m,k:()=>_,l:()=>o,m:()=>T,n:()=>M,p:()=>d,q:()=>b,r:()=>q,s:()=>r,t:()=>g,u:()=>Z,w:()=>E});var a=n(65617),i=n(46851);function o(t){const e=t[0],n=t[1],a=t[2];return Math.sqrt(e*e+n*n+a*a)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function r(t,e,n,a){return t[0]=e,t[1]=n,t[2]=a,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function m(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+a*a+i*i)}function p(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2];return n*n+a*a+i*i}function d(t){const e=t[0],n=t[1],a=t[2];return e*e+n*n+a*a}function M(t,e){const n=e[0],a=e[1],i=e[2];let o=n*n+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function x(t,e,n){const a=e[0],i=e[1],o=e[2],s=n[0],r=n[1],l=n[2];return t[0]=i*l-o*r,t[1]=o*s-a*l,t[2]=a*r-i*s,t}function v(t,e,n,a){const i=e[0],o=e[1],s=e[2];return t[0]=i+a*(n[0]-i),t[1]=o+a*(n[1]-o),t[2]=s+a*(n[2]-s),t}function T(t,e,n){const a=e[0],i=e[1],o=e[2];return t[0]=n[0]*a+n[4]*i+n[8]*o+n[12],t[1]=n[1]*a+n[5]*i+n[9]*o+n[13],t[2]=n[2]*a+n[6]*i+n[10]*o+n[14],t}function g(t,e,n){const a=e[0],i=e[1],o=e[2];return t[0]=a*n[0]+i*n[3]+o*n[6],t[1]=a*n[1]+i*n[4]+o*n[7],t[2]=a*n[2]+i*n[5]+o*n[8],t}function b(t,e,n){const a=n[0],i=n[1],o=n[2],s=n[3],r=e[0],l=e[1],c=e[2];let u=i*c-o*l,h=o*r-a*c,f=a*l-i*r,m=i*f-o*h,p=o*u-a*f,d=a*h-i*u;const M=2*s;return u*=M,h*=M,f*=M,m*=2,p*=2,d*=2,t[0]=r+u+m,t[1]=l+h+p,t[2]=c+f+d,t}const w=(0,a.c)(),R=(0,a.c)();function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e,n){const a=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=a*a+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=a*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const E=c,I=u,A=h,D=m,C=p,Z=o,z=d;Object.freeze({__proto__:null,length:o,copy:s,set:r,add:l,subtract:c,multiply:u,divide:h,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:f,scaleAndAdd:function(t,e,n,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t[2]=e[2]+n[2]*a,t},distance:m,squaredDistance:p,squaredLength:d,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:M,dot:y,cross:x,lerp:v,hermite:function(t,e,n,a,i,o){const s=o*o,r=s*(2*o-3)+1,l=s*(o-2)+o,c=s*(o-1),u=s*(3-2*o);return t[0]=e[0]*r+n[0]*l+a[0]*c+i[0]*u,t[1]=e[1]*r+n[1]*l+a[1]*c+i[1]*u,t[2]=e[2]*r+n[2]*l+a[2]*c+i[2]*u,t},bezier:function(t,e,n,a,i,o){const s=1-o,r=s*s,l=o*o,c=r*s,u=3*o*r,h=3*l*s,f=l*o;return t[0]=e[0]*c+n[0]*u+a[0]*h+i[0]*f,t[1]=e[1]*c+n[1]*u+a[1]*h+i[1]*f,t[2]=e[2]*c+n[2]*u+a[2]*h+i[2]*f,t},random:function(t,e){e=e||1;const n=2*(0,i.R)()*Math.PI,a=2*(0,i.R)()-1,o=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=a*e,t},transformMat4:T,transformMat3:g,transformQuat:b,rotateX:function(t,e,n,a){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(a)-i[2]*Math.sin(a),o[2]=i[1]*Math.sin(a)+i[2]*Math.cos(a),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,a){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(a)+i[0]*Math.cos(a),o[1]=i[1],o[2]=i[2]*Math.cos(a)-i[0]*Math.sin(a),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,a){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(a)-i[1]*Math.sin(a),o[1]=i[0]*Math.sin(a)+i[1]*Math.cos(a),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},angle:function(t,e){s(w,t),s(R,e),M(w,w),M(R,R);const n=y(w,R);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:_,equals:function(t,e){if(t===e)return!0;const n=t[0],a=t[1],o=t[2],s=e[0],r=e[1],l=e[2];return Math.abs(n-s)<=i.E*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-r)<=i.E*Math.max(1,Math.abs(a),Math.abs(r))&&Math.abs(o-l)<=i.E*Math.max(1,Math.abs(o),Math.abs(l))},direction:q,sub:E,mul:I,div:A,dist:D,sqrDist:C,len:Z,sqrLen:z})},65617:(t,e,n)=>{function a(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function s(t){const e=[0,0,0],n=Math.min(3,t.length);for(let a=0;a<n;++a)e[a]=t[a];return e}function r(t,e){return new Float64Array(t,e,3)}function l(){return o(1,1,1)}function c(){return o(1,0,0)}function u(){return o(0,1,0)}function h(){return o(0,0,1)}n.d(e,{O:()=>m,Z:()=>f,a:()=>i,b:()=>r,c:()=>a,d:()=>s,f:()=>o});const f=[0,0,0],m=l(),p=c(),d=u(),M=h();Object.freeze({__proto__:null,create:a,clone:i,fromValues:o,fromArray:s,createView:r,zeros:function(){return[0,0,0]},ones:l,unitX:c,unitY:u,unitZ:h,ZEROS:f,ONES:m,UNIT_X:p,UNIT_Y:d,UNIT_Z:M})},98766:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>u,c:()=>i,d:()=>M,e:()=>m,f:()=>p,g:()=>v,h:()=>T,l:()=>y,n:()=>d,s:()=>o,t:()=>x});var a=n(46851);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function o(t,e,n,a,i){return t[0]=e,t[1]=n,t[2]=a,t[3]=i,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],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}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(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}function u(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}function h(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+a*a+i*i+o*o)}function f(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+a*a+i*i+o*o}function m(t){const e=t[0],n=t[1],a=t[2],i=t[3];return Math.sqrt(e*e+n*n+a*a+i*i)}function p(t){const e=t[0],n=t[1],a=t[2],i=t[3];return e*e+n*n+a*a+i*i}function d(t,e){const n=e[0],a=e[1],i=e[2],o=e[3];let s=n*n+a*a+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=a*s,t[2]=i*s,t[3]=o*s),t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function y(t,e,n,a){const i=e[0],o=e[1],s=e[2],r=e[3];return t[0]=i+a*(n[0]-i),t[1]=o+a*(n[1]-o),t[2]=s+a*(n[2]-s),t[3]=r+a*(n[3]-r),t}function x(t,e,n){const a=e[0],i=e[1],o=e[2],s=e[3];return t[0]=n[0]*a+n[4]*i+n[8]*o+n[12]*s,t[1]=n[1]*a+n[5]*i+n[9]*o+n[13]*s,t[2]=n[2]*a+n[6]*i+n[10]*o+n[14]*s,t[3]=n[3]*a+n[7]*i+n[11]*o+n[15]*s,t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){const n=t[0],i=t[1],o=t[2],s=t[3],r=e[0],l=e[1],c=e[2],u=e[3];return Math.abs(n-r)<=a.E*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-l)<=a.E*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=a.E*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(s-u)<=a.E*Math.max(1,Math.abs(s),Math.abs(u))}const g=r,b=l,w=c,R=h,_=f,q=m,E=p;Object.freeze({__proto__:null,copy:i,set:o,add:s,subtract:r,multiply:l,divide:c,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:u,scaleAndAdd:function(t,e,n,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t[2]=e[2]+n[2]*a,t[3]=e[3]+n[3]*a,t},distance:h,squaredDistance:f,length:m,squaredLength:p,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},normalize:d,dot:M,lerp:y,random:function(t,e){let n,i,o,s,r,l;e=e||1;do{n=2*(0,a.R)()-1,i=2*(0,a.R)()-1,r=n*n+i*i}while(r>=1);do{o=2*(0,a.R)()-1,s=2*(0,a.R)()-1,l=o*o+s*s}while(l>=1);const c=Math.sqrt((1-r)/l);return t[0]=e*n,t[1]=e*i,t[2]=e*o*c,t[3]=e*s*c,t},transformMat4:x,transformQuat:function(t,e,n){const a=e[0],i=e[1],o=e[2],s=n[0],r=n[1],l=n[2],c=n[3],u=c*a+r*o-l*i,h=c*i+l*a-s*o,f=c*o+s*i-r*a,m=-s*a-r*i-l*o;return t[0]=u*c+m*-s+h*-l-f*-r,t[1]=h*c+m*-r+f*-s-u*-l,t[2]=f*c+m*-l+u*-r-h*-s,t[3]=e[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:v,equals:T,sub:g,mul:b,div:w,dist:R,sqrDist:_,len:q,sqrLen:E})},22021:(t,e,n)=>{n.d(e,{ZF:()=>f,Kt:()=>m,jE:()=>M,uZ:()=>s,oK:()=>p,Vl:()=>u,wt:()=>r,t7:()=>c,Sf:()=>o,fp:()=>l,BV:()=>h});var a=n(17896);n(98766);const i=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,n){return Math.min(Math.max(t,e),n)}function r(t){return 0==(t&t-1)}function l(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}function c(t,e,n){return t+(e-t)*n}function u(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function f(t){return Math.acos(s(t,-1,1))}function m(t){return Math.asin(s(t,-1,1))}function p(t){return d(Math.max(-y,Math.min(t,y)))}function d(t){return i[0]=t,i[0]}function M(t,e){const n=(0,a.l)(t),i=m(t[2]/n),o=Math.atan2(t[1]/n,t[0]/n);return(0,a.s)(e,n,i,o),e}const y=d(34028234663852886e22)},33127:(t,e,n)=>{n.r(e),n.d(e,{ElevationQuery:()=>_,GeometryDescriptor:()=>q,default:()=>_,getFinestLodIndex:()=>D});var a=n(66643),i=n(20102),o=n(70586),s=n(95330),r=n(67900),l=n(65091),c=n(13473),u=n(58901),h=n(90411),f=n(24470),m=(n(66577),n(80442),n(92604)),p=n(54102),d=n(40488);const M=m.Z.getLogger("esri.layers.support.ElevationSampler");class y{queryElevation(t){return function(t,e){const n=T(t,e.spatialReference);if(!n)return null;switch(t.type){case"point":!function(t,e,n){t.z=(0,o.Pt)(n.elevationAt(e),0)}(t,n,e);break;case"polyline":!function(t,e,n){g.spatialReference=e.spatialReference;const a=t.hasM&&!t.hasZ;for(let i=0;i<t.paths.length;i++){const s=t.paths[i],r=e.paths[i];for(let t=0;t<s.length;t++){const e=s[t],i=r[t];g.x=i[0],g.y=i[1],a&&(e[3]=e[2]),e[2]=(0,o.Pt)(n.elevationAt(g),0)}}t.hasZ=!0}(t,n,e);break;case"multipoint":!function(t,e,n){g.spatialReference=e.spatialReference;const a=t.hasM&&!t.hasZ;for(let i=0;i<t.points.length;i++){const s=t.points[i],r=e.points[i];g.x=r[0],g.y=r[1],a&&(s[3]=s[2]),s[2]=(0,o.Pt)(n.elevationAt(g),0)}t.hasZ=!0}(t,n,e)}return t}(t.clone(),this)}on(){return b}projectIfRequired(t,e){return T(t,e)}}class x extends y{constructor(t,e,n){super(),this.tile=t,this.noDataValue=n,this.extent=(0,f.HH)(t.tile.extent,e.spatialReference);const a=(0,r.c9)(e.spatialReference),i=e.lodAt(t.tile.level).resolution*a;this.demResolution={min:i,max:i}}get spatialReference(){return this.extent.spatialReference}contains(t){const e=this.projectIfRequired(t,this.spatialReference);return(0,p.aV)(this.extent,e)}elevationAt(t){const e=this.projectIfRequired(t,this.spatialReference);if((0,o.Wi)(e))return null;if(!this.contains(t)){const e=this.extent,n=`${e.xmin}, ${e.ymin}, ${e.xmax}, ${e.ymax}`;return M.warn("#elevationAt()",`Point used to sample elevation (${t.x}, ${t.y}) is outside of the sampler extent (${n})`),this.noDataValue}return this.tile.sample(e.x,e.y)}}class v extends y{constructor(t,e,n){let a;super(),"number"==typeof e?(this.noDataValue=e,a=null):(a=e,this.noDataValue=n),this.samplers=a?t.map((t=>new x(t,a,this.noDataValue))):t;const i=this.samplers[0];if(i){this.extent=i.extent.clone();const{min:t,max:e}=i.demResolution;this.demResolution={min:t,max:e};for(let t=1;t<this.samplers.length;t++){const e=this.samplers[t];this.extent.union(e.extent),this.demResolution.min=Math.min(this.demResolution.min,e.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,e.demResolution.max)}}else this.extent=(0,f.HH)((0,f.Ue)(),a.spatialReference),this.demResolution={min:0,max:0}}get spatialReference(){return this.extent.spatialReference}elevationAt(t){const e=this.projectIfRequired(t,this.spatialReference);if(!e)return null;for(const t of this.samplers)if(t.contains(e))return t.elevationAt(e);return M.warn("#elevationAt()",`Point used to sample elevation (${t.x}, ${t.y}) is outside of the sampler`),this.noDataValue}}function T(t,e){if((0,o.Wi)(t))return null;const n=t.spatialReference;if(n.equals(e))return t;const a=(0,d.iV)(t,e);return a||M.error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${e.wkid})`),a}const g=new c.Z,b={remove(){}};class w{constructor(t,e=null){if(this.tile=t,(0,o.pC)(e)){const n=t.extent;this.samplerData={pixelData:e.values,width:e.width,height:e.height,safeWidth:.99999999*(e.width-1),noDataValue:e.noDataValue,dx:(e.width-1)/(n[2]-n[0]),dy:(e.width-1)/(n[3]-n[1]),x0:n[0],y1:n[3]}}}sample(t,e){if((0,o.Wi)(this.samplerData))return;const{safeWidth:n,width:a,pixelData:i,noDataValue:s,dx:r,dy:l,y1:c,x0:u}=this.samplerData,h=R(l*(c-e),0,n),f=R(r*(t-u),0,n),m=Math.floor(h),p=Math.floor(f),d=m*a+p,M=d+a,y=i[d],x=i[M],v=i[d+1],T=i[M+1];if(y!==s&&x!==s&&v!==s&&T!==s){const t=f-p,e=y+(v-y)*t;return e+(x+(T-x)*t-e)*(h-m)}}}function R(t,e,n){return t<e?e:t>n?n:t}class _{async queryAll(t,e,n){if(!(t=n&&n.ignoreInvisibleLayers?t.filter((t=>t.visible)):t.slice()).length)throw new i.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");const a=q.fromGeometry(e);let o=!1;n&&n.returnSampleInfo||(o=!0);const s={...C,...n,returnSampleInfo:!0},r=await this.query(t[t.length-1],a,s),l=await this._queryAllContinue(t,r,s);return l.geometry=l.geometry.export(),o&&delete l.sampleInfo,l}async query(t,e,n){if(!t)throw new i.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!e||!(e instanceof q)&&"point"!==e.type&&"multipoint"!==e.type&&"polyline"!==e.type)throw new i.Z("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const a={...C,...n},o=new I(t,e.spatialReference,a),s=a.signal;return await t.load({signal:s}),await this._createGeometryDescriptor(o,e,s),await this._selectTiles(o,s),await this._populateElevationTiles(o,s),this._sampleGeometryWithElevation(o),this._createQueryResult(o,s)}async createSampler(t,e,n){if(!t)throw new i.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!e||"extent"!==e.type)throw new i.Z("elevation-query:invalid-extent","Invalid or undefined extent");const a={...C,...n};return this._createSampler(t,e,a)}async createSamplerAll(t,e,n){if(!(t=n&&n.ignoreInvisibleLayers?t.filter((t=>t.visible)):t.slice()).length)throw new i.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");if(!e||"extent"!==e.type)throw new i.Z("elevation-query:invalid-extent","Invalid or undefined extent");const a={...C,...n,returnSampleInfo:!0},o=await this._createSampler(t[t.length-1],e,a);return this._createSamplerAllContinue(t,e,o,a)}async _createSampler(t,e,n,a){const i=n.signal;await t.load({signal:i});const o=e.spatialReference,s=t.tileInfo.spatialReference;o.equals(s)||(await(0,h.iQ)([{source:o,dest:s}],{signal:i}),e=(0,h.iV)(e,s));const r=new A(t,e,n,a);return await this._selectTiles(r,i),await this._populateElevationTiles(r,i),new v(r.elevationTiles,r.layer.tileInfo,r.options.noDataValue)}async _createSamplerAllContinue(t,e,n,a){if(t.pop(),!t.length)return n;const i=n.samplers.map((t=>(0,f.oJ)(t.extent))),o=await this._createSampler(t[t.length-1],e,a,i);if(0===o.samplers.length)return n;const s=n.samplers.concat(o.samplers),r=new v(s,a.noDataValue);return this._createSamplerAllContinue(t,e,r,a)}async _queryAllContinue(t,e,n){const a=t.pop(),i=e.geometry.coordinates,o=[],s=[];for(let n=0;n<i.length;n++){const r=e.sampleInfo[n];r.demResolution>=0?r.source||(r.source=a):t.length&&(o.push(i[n]),s.push(n))}if(!t.length||0===o.length)return e;const r=e.geometry.clone(o),l=await this.query(t[t.length-1],r,n);return s.forEach(((t,n)=>{i[t].z=l.geometry.coordinates[n].z,e.sampleInfo[t].demResolution=l.sampleInfo[n].demResolution})),this._queryAllContinue(t,e,n)}async _createQueryResult(t,e){const n={geometry:(await t.geometry.project(t.outSpatialReference,e)).export(),noDataValue:t.options.noDataValue};return t.options.returnSampleInfo&&(n.sampleInfo=this._extractSampleInfo(t)),t.geometry.coordinates.forEach((t=>{t.tile=null,t.elevationTile=null})),n}async _createGeometryDescriptor(t,e,n){let a;const o=t.layer.tileInfo.spatialReference;if(e instanceof q?a=await e.project(o,n):(await(0,h.iQ)([{source:e.spatialReference,dest:o}],{signal:n}),a=(0,h.iV)(e,o)),!a)throw new i.Z("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${e.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);t.geometry=q.fromGeometry(a)}async _selectTiles(t,e){const n=t.options.demResolution;if("geometry"===t.type&&this._preselectOutsideLayerExtent(t),"number"==typeof n)this._selectTilesClosestResolution(t);else if("finest-contiguous"===n)await this._selectTilesFinestContiguous(t,e);else{if("auto"!==n)throw new i.Z("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await this._selectTilesAuto(t,e)}}_preselectOutsideLayerExtent(t){if((0,o.Wi)(t.layer.fullExtent))return;const e=new w(null);e.sample=()=>t.options.noDataValue,t.outsideExtentTile=e;const n=t.layer.fullExtent;t.geometry.coordinates.forEach((t=>{const a=t.x,i=t.y;(a<n.xmin||a>n.xmax||i<n.ymin||i>n.ymax)&&(t.elevationTile=e)}))}_selectTilesClosestResolution(t){const e=t.layer.tileInfo,n=this._findNearestDemResolutionLODIndex(e,t.options.demResolution);t.selectTilesAtLOD(n)}_findNearestDemResolutionLODIndex(t,e){const n=e/(0,r.c9)(t.spatialReference);let a=t.lods[0],i=0;for(let e=1;e<t.lods.length;e++){const o=t.lods[e];Math.abs(o.resolution-n)<Math.abs(a.resolution-n)&&(a=o,i=e)}return i}async _selectTilesFinestContiguous(t,e){const n=D(t.layer.tileInfo,t.options.minDemResolution);await this._selectTilesFinestContiguousAt(t,n,e)}async _selectTilesFinestContiguousAt(t,e,n){const a=t.layer;if(t.selectTilesAtLOD(e),e<0)return;const o=a.tilemapCache,r=t.getTilesToFetch();try{if(o)await(0,s.Hl)(Promise.all(r.map((t=>o.fetchAvailability(t.level,t.row,t.col,{signal:n})))),n);else if(await this._populateElevationTiles(t,n),!t.allElevationTilesFetched())throw t.clearElevationTiles(),new i.Z("elevation-query:has-unavailable-tiles")}catch(a){(0,s.r9)(a),await this._selectTilesFinestContiguousAt(t,e-1,n)}}async _populateElevationTiles(t,e){const n=t.getTilesToFetch(),a={},i=t.options.cache,r=t.options.noDataValue,l=n.map((async n=>{const s=`${t.layer.uid}:${n.id}:${r}`,l=(0,o.pC)(i)?i.get(s):null,c=(0,o.pC)(l)?l:await t.layer.fetchTile(n.level,n.row,n.col,{noDataValue:r,signal:e});(0,o.pC)(i)&&i.put(s,c),a[n.id]=new w(n,c)}));await(0,s.Hl)((0,s.as)(l),e),t.populateElevationTiles(a)}async _selectTilesAuto(t,e){this._selectTilesAutoFinest(t),this._reduceTilesForMaximumRequests(t);const n=t.layer.tilemapCache;if(!n)return this._selectTilesAutoPrefetchUpsample(t,e);const i=t.getTilesToFetch(),o={},r=i.map((async t=>{const i={id:null,level:0,row:0,col:0,extent:(0,f.Ue)()},r=await(0,a.q6)(n.fetchAvailabilityUpsample(t.level,t.row,t.col,i,{signal:e}));!1===r.ok?(0,s.r9)(r.error):o[t.id]=i}));await(0,s.Hl)(Promise.all(r),e),t.remapTiles(o)}_reduceTilesForMaximumRequests(t){const e=t.layer.tileInfo;let n=0;const a={},i=t=>{t.id in a?a[t.id]++:(a[t.id]=1,n++)},o=t=>{const e=a[t.id];1===e?(delete a[t.id],n--):a[t.id]=e-1};t.forEachTileToFetch(i,o);let s=!0;for(;s&&(s=!1,t.forEachTileToFetch((a=>{n<=t.options.maximumAutoTileRequests||(o(a),e.upsampleTile(a)&&(s=!0),i(a))}),o),s););}_selectTilesAutoFinest(t){const e=D(t.layer.tileInfo,t.options.minDemResolution);t.selectTilesAtLOD(e,t.options.maximumAutoTileRequests)}async _selectTilesAutoPrefetchUpsample(t,e){const n=t.layer.tileInfo;await this._populateElevationTiles(t,e);let a=!1;t.forEachTileToFetch(((t,e)=>{n.upsampleTile(t)?a=!0:e()})),a&&await this._selectTilesAutoPrefetchUpsample(t,e)}_sampleGeometryWithElevation(t){t.geometry.coordinates.forEach((e=>{const n=e.elevationTile;let a=t.options.noDataValue;if(n){const t=n.sample(e.x,e.y);(0,o.pC)(t)?a=t:e.elevationTile=null}e.z=a}))}_extractSampleInfo(t){const e=t.layer.tileInfo,n=(0,r.c9)(e.spatialReference);return t.geometry.coordinates.map((a=>{let i=-1;return a.elevationTile&&a.elevationTile!==t.outsideExtentTile&&(i=e.lodAt(a.elevationTile.tile.level).resolution*n),{demResolution:i}}))}}class q{export(){return this._exporter(this.coordinates,this.spatialReference)}clone(t){const e=new q;return e.geometry=this.geometry,e.spatialReference=this.spatialReference,e.coordinates=t||this.coordinates.map((t=>this._cloneCoordinate(t))),e._exporter=this._exporter,e}async project(t,e){if(this.spatialReference.equals(t))return this.clone();await(0,h.iQ)([{source:this.spatialReference,dest:t}],{signal:e});const n=new l.Z({spatialReference:this.spatialReference,points:this.coordinates.map((t=>[t.x,t.y]))}),a=(0,h.iV)(n,t);if(!a)return null;const i=this.coordinates.map(((t,e)=>{const n=this._cloneCoordinate(t),i=a.points[e];return n.x=i[0],n.y=i[1],n})),o=this.clone(i);return o.spatialReference=t,o}_cloneCoordinate(t){return{x:t.x,y:t.y,z:t.z,m:t.m,tile:null,elevationTile:null}}static fromGeometry(t){const e=new q;if(e.geometry=t,e.spatialReference=t.spatialReference,t instanceof q)e.coordinates=t.coordinates.map((t=>e._cloneCoordinate(t))),e._exporter=(e,n)=>{const a=t.clone(e);return a.spatialReference=n,a};else switch(t.type){case"point":{const n=t,{hasZ:a,hasM:i}=n;e.coordinates=a&&i?[{x:n.x,y:n.y,z:n.z,m:n.m}]:a?[{x:n.x,y:n.y,z:n.z}]:i?[{x:n.x,y:n.y,m:n.m}]:[{x:n.x,y:n.y}],e._exporter=(e,n)=>t.hasM?new c.Z(e[0].x,e[0].y,e[0].z,e[0].m,n):new c.Z(e[0].x,e[0].y,e[0].z,n);break}case"multipoint":{const n=t,{hasZ:a,hasM:i}=n;e.coordinates=a&&i?n.points.map((t=>({x:t[0],y:t[1],z:t[2],m:t[3]}))):a?n.points.map((t=>({x:t[0],y:t[1],z:t[2]}))):i?n.points.map((t=>({x:t[0],y:t[1],m:t[2]}))):n.points.map((t=>({x:t[0],y:t[1]}))),e._exporter=(e,n)=>t.hasM?new l.Z({points:e.map((t=>[t.x,t.y,t.z,t.m])),hasZ:!0,hasM:!0,spatiaReference:n}):new l.Z(e.map((t=>[t.x,t.y,t.z])),n);break}case"polyline":{const n=t,a=[],i=[],{hasZ:o,hasM:s}=t;let r=0;for(const t of n.paths)if(i.push([r,r+t.length]),r+=t.length,o&&s)for(const e of t)a.push({x:e[0],y:e[1],z:e[2],m:e[3]});else if(o)for(const e of t)a.push({x:e[0],y:e[1],z:e[2]});else if(s)for(const e of t)a.push({x:e[0],y:e[1],m:e[2]});else for(const e of t)a.push({x:e[0],y:e[1]});e.coordinates=a,e._exporter=(e,n)=>{const a=t.hasM?e.map((t=>[t.x,t.y,t.z,t.m])):e.map((t=>[t.x,t.y,t.z])),o=i.map((t=>a.slice(t[0],t[1])));return new u.Z({paths:o,hasM:t.hasM,hasZ:!0,spatialReference:n})};break}}return e}}class E{constructor(t,e){this.layer=t,this.options=e}}class I extends E{constructor(t,e,n){super(t,n),this.outSpatialReference=e,this.type="geometry"}selectTilesAtLOD(t){if(t<0)this.geometry.coordinates.forEach((t=>t.tile=null));else{const e=this.layer.tileInfo,n=e.lods[t].level;this.geometry.coordinates.forEach((t=>{t.tile=e.tileAt(n,t.x,t.y)}))}}allElevationTilesFetched(){return!this.geometry.coordinates.some((t=>!t.elevationTile))}clearElevationTiles(){for(const t of this.geometry.coordinates)t.elevationTile!==this.outsideExtentTile&&(t.elevationTile=null)}populateElevationTiles(t){for(const e of this.geometry.coordinates)!e.elevationTile&&e.tile&&(e.elevationTile=t[e.tile.id])}remapTiles(t){for(const e of this.geometry.coordinates)e.tile=t[e.tile.id]}getTilesToFetch(){const t={},e=[];for(const n of this.geometry.coordinates){const a=n.tile;n.elevationTile||!n.tile||t[a.id]||(t[a.id]=a,e.push(a))}return e}forEachTileToFetch(t){for(const e of this.geometry.coordinates)e.tile&&!e.elevationTile&&t(e.tile,(()=>e.tile=null))}}class A extends E{constructor(t,e,n,a){super(t,n),this.type="extent",this.elevationTiles=[],this.candidateTiles=[],this.fetchedCandidates=new Set,this.extent=e.intersection(t.fullExtent),this.maskExtents=a}selectTilesAtLOD(t,e){const n=this._maximumLodForRequests(e),a=Math.min(n,t);a<0?this.candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(a)}_maximumLodForRequests(t){const e=this.layer.tileInfo;if(!t)return e.lods.length-1;const n=this.extent;if((0,o.Wi)(n))return-1;for(let a=e.lods.length-1;a>=0;a--){const i=e.lods[a],o=i.resolution*e.size[0],s=i.resolution*e.size[1];if(Math.ceil(n.width/o)*Math.ceil(n.height/s)<=t)return a}return-1}allElevationTilesFetched(){return this.candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this.fetchedCandidates.clear()}populateElevationTiles(t){for(const e of this.candidateTiles){const n=t[e.id];n&&(this.fetchedCandidates.add(e),this.elevationTiles.push(n))}}remapTiles(t){this.candidateTiles=this._uniqueNonOverlappingTiles(this.candidateTiles.map((e=>t[e.id])))}getTilesToFetch(){return this.candidateTiles}forEachTileToFetch(t,e){const n=this.candidateTiles;this.candidateTiles=[],n.forEach((n=>{if(this.fetchedCandidates.has(n))return void(e&&e(n));let a=!1;t(n,(()=>a=!0)),a?e&&e(n):this.candidateTiles.push(n)})),this.candidateTiles=this._uniqueNonOverlappingTiles(this.candidateTiles,e)}_uniqueNonOverlappingTiles(t,e){const n={},a=[];for(const i of t)n[i.id]?e&&e(i):(n[i.id]=i,a.push(i));const i=a.sort(((t,e)=>t.level-e.level));return i.filter(((t,n)=>{for(let a=0;a<n;a++)if((0,f.r3)(i[a].extent,t.extent))return e&&e(t),!1;return!0}))}_selectCandidateTilesCoveringExtentAt(t){this.candidateTiles.length=0;const e=this.extent;if((0,o.Wi)(e))return;const n=this.layer.tileInfo,a=n.lods[t],i=n.tileAt(a.level,e.xmin,e.ymin),s=a.resolution*n.size[0],r=a.resolution*n.size[1],l=Math.ceil((e.xmax-i.extent[0])/s),c=Math.ceil((e.ymax-i.extent[1])/r);for(let t=0;t<c;t++)for(let e=0;e<l;e++){const a={id:null,level:i.level,row:i.row-t,col:i.col+e};n.updateTileInfo(a),this._tileIsMasked(a)||this.candidateTiles.push(a)}}_tileIsMasked(t){return!!this.maskExtents&&this.maskExtents.some((e=>(0,f.r3)(e,t.extent)))}}function D(t,e){let n=t.lods.length-1;if(e>0){const a=t.lods.findIndex((t=>t.resolution<e));0===a?n=0:a>0&&(n=a-1)}return n}const C={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3396],{46851:(t,e,n)=>{n.d(e,{E:()=>a,R:()=>i});const a=1e-6,i=Math.random,o=Math.PI/180,s=180/Math.PI;Object.freeze({__proto__:null,EPSILON:a,RANDOM:i,toRadian:function(t){return t*o},toDegree:function(t){return t*s},equals:function(t,e){return Math.abs(t-e)<=a*Math.max(1,Math.abs(t),Math.abs(e))}})},52138:(t,e,n)=>{n.d(e,{a:()=>l,b:()=>c,d:()=>m,e:()=>o,g:()=>s,i:()=>r,k:()=>T,m:()=>u,n:()=>v,p:()=>x,s:()=>f,t:()=>h,u:()=>p});var a=n(65617),i=n(46851);function o(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}function s(t,e,n,a,i,o,s,r,l,c,u,h,f,m,p,d,M){return t[0]=e,t[1]=n,t[2]=a,t[3]=i,t[4]=o,t[5]=s,t[6]=r,t[7]=l,t[8]=c,t[9]=u,t[10]=h,t[11]=f,t[12]=m,t[13]=p,t[14]=d,t[15]=M,t}function r(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 l(t,e){if(t===e){const n=e[1],a=e[2],i=e[3],o=e[6],s=e[7],r=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]=a,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=r}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 c(t,e){const n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],r=e[5],l=e[6],c=e[7],u=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15],x=n*r-a*s,v=n*l-i*s,T=n*c-o*s,g=a*l-i*r,b=a*c-o*r,w=i*c-o*l,R=u*d-h*p,_=u*M-f*p,q=u*y-m*p,E=h*M-f*d,I=h*y-m*d,A=f*y-m*M;let D=x*A-v*I+T*E+g*q-b*_+w*R;return D?(D=1/D,t[0]=(r*A-l*I+c*E)*D,t[1]=(i*I-a*A-o*E)*D,t[2]=(d*w-M*b+y*g)*D,t[3]=(f*b-h*w-m*g)*D,t[4]=(l*q-s*A-c*_)*D,t[5]=(n*A-i*q+o*_)*D,t[6]=(M*T-p*w-y*v)*D,t[7]=(u*w-f*T+m*v)*D,t[8]=(s*I-r*q+c*R)*D,t[9]=(a*q-n*I-o*R)*D,t[10]=(p*b-d*T+y*x)*D,t[11]=(h*T-u*b-m*x)*D,t[12]=(r*_-s*E-l*R)*D,t[13]=(n*E-a*_+i*R)*D,t[14]=(d*v-p*g-M*x)*D,t[15]=(u*g-h*v+f*x)*D,t):null}function u(t,e,n){const a=e[0],i=e[1],o=e[2],s=e[3],r=e[4],l=e[5],c=e[6],u=e[7],h=e[8],f=e[9],m=e[10],p=e[11],d=e[12],M=e[13],y=e[14],x=e[15];let v=n[0],T=n[1],g=n[2],b=n[3];return t[0]=v*a+T*r+g*h+b*d,t[1]=v*i+T*l+g*f+b*M,t[2]=v*o+T*c+g*m+b*y,t[3]=v*s+T*u+g*p+b*x,v=n[4],T=n[5],g=n[6],b=n[7],t[4]=v*a+T*r+g*h+b*d,t[5]=v*i+T*l+g*f+b*M,t[6]=v*o+T*c+g*m+b*y,t[7]=v*s+T*u+g*p+b*x,v=n[8],T=n[9],g=n[10],b=n[11],t[8]=v*a+T*r+g*h+b*d,t[9]=v*i+T*l+g*f+b*M,t[10]=v*o+T*c+g*m+b*y,t[11]=v*s+T*u+g*p+b*x,v=n[12],T=n[13],g=n[14],b=n[15],t[12]=v*a+T*r+g*h+b*d,t[13]=v*i+T*l+g*f+b*M,t[14]=v*o+T*c+g*m+b*y,t[15]=v*s+T*u+g*p+b*x,t}function h(t,e,n){const a=n[0],i=n[1],o=n[2];let s,r,l,c,u,h,f,m,p,d,M,y;return e===t?(t[12]=e[0]*a+e[4]*i+e[8]*o+e[12],t[13]=e[1]*a+e[5]*i+e[9]*o+e[13],t[14]=e[2]*a+e[6]*i+e[10]*o+e[14],t[15]=e[3]*a+e[7]*i+e[11]*o+e[15]):(s=e[0],r=e[1],l=e[2],c=e[3],u=e[4],h=e[5],f=e[6],m=e[7],p=e[8],d=e[9],M=e[10],y=e[11],t[0]=s,t[1]=r,t[2]=l,t[3]=c,t[4]=u,t[5]=h,t[6]=f,t[7]=m,t[8]=p,t[9]=d,t[10]=M,t[11]=y,t[12]=s*a+u*i+p*o+e[12],t[13]=r*a+h*i+d*o+e[13],t[14]=l*a+f*i+M*o+e[14],t[15]=c*a+m*i+y*o+e[15]),t}function f(t,e,n){const a=n[0],i=n[1],o=n[2];return t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t[3]=e[3]*a,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,a){let o,s,r,l,c,u,h,f,m,p,d,M,y,x,v,T,g,b,w,R,_,q,E,I,A=a[0],D=a[1],C=a[2],Z=Math.sqrt(A*A+D*D+C*C);return Z<i.E?null:(Z=1/Z,A*=Z,D*=Z,C*=Z,o=Math.sin(n),s=Math.cos(n),r=1-s,l=e[0],c=e[1],u=e[2],h=e[3],f=e[4],m=e[5],p=e[6],d=e[7],M=e[8],y=e[9],x=e[10],v=e[11],T=A*A*r+s,g=D*A*r+C*o,b=C*A*r-D*o,w=A*D*r-C*o,R=D*D*r+s,_=C*D*r+A*o,q=A*C*r+D*o,E=D*C*r-A*o,I=C*C*r+s,t[0]=l*T+f*g+M*b,t[1]=c*T+m*g+y*b,t[2]=u*T+p*g+x*b,t[3]=h*T+d*g+v*b,t[4]=l*w+f*R+M*_,t[5]=c*w+m*R+y*_,t[6]=u*w+p*R+x*_,t[7]=h*w+d*R+v*_,t[8]=l*q+f*E+M*I,t[9]=c*q+m*E+y*I,t[10]=u*q+p*E+x*I,t[11]=h*q+d*E+v*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function p(t,e){const n=Math.sin(e),a=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,e,n){const a=e[0],i=e[1],o=e[2],s=e[3],r=a+a,l=i+i,c=o+o,u=a*r,h=a*l,f=a*c,m=i*l,p=i*c,d=o*c,M=s*r,y=s*l,x=s*c;return t[0]=1-(m+d),t[1]=h+x,t[2]=f-y,t[3]=0,t[4]=h-x,t[5]=1-(u+d),t[6]=p+M,t[7]=0,t[8]=f+y,t[9]=p-M,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const M=(0,a.c)();function y(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 x(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[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 v(t,e){if(t===e)return!0;const n=t[0],a=t[1],o=t[2],s=t[3],r=t[4],l=t[5],c=t[6],u=t[7],h=t[8],f=t[9],m=t[10],p=t[11],d=t[12],M=t[13],y=t[14],x=t[15],v=e[0],T=e[1],g=e[2],b=e[3],w=e[4],R=e[5],_=e[6],q=e[7],E=e[8],I=e[9],A=e[10],D=e[11],C=e[12],Z=e[13],z=e[14],F=e[15];return Math.abs(n-v)<=i.E*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-T)<=i.E*Math.max(1,Math.abs(a),Math.abs(T))&&Math.abs(o-g)<=i.E*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-b)<=i.E*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(r-w)<=i.E*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(l-R)<=i.E*Math.max(1,Math.abs(l),Math.abs(R))&&Math.abs(c-_)<=i.E*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-q)<=i.E*Math.max(1,Math.abs(u),Math.abs(q))&&Math.abs(h-E)<=i.E*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(f-I)<=i.E*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(m-A)<=i.E*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(p-D)<=i.E*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(d-C)<=i.E*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(M-Z)<=i.E*Math.max(1,Math.abs(M),Math.abs(Z))&&Math.abs(y-z)<=i.E*Math.max(1,Math.abs(y),Math.abs(z))&&Math.abs(x-F)<=i.E*Math.max(1,Math.abs(x),Math.abs(F))}function T(t){const e=i.E,n=t[0],a=t[1],o=t[2],s=t[4],r=t[5],l=t[6],c=t[8],u=t[9],h=t[10];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(a*a+r*r+u*u))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e}const g=u,b=y;Object.freeze({__proto__:null,copy:o,set:s,identity:r,transpose:l,invert:c,adjoint:function(t,e){const n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],r=e[5],l=e[6],c=e[7],u=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15];return t[0]=r*(f*y-m*M)-h*(l*y-c*M)+d*(l*m-c*f),t[1]=-(a*(f*y-m*M)-h*(i*y-o*M)+d*(i*m-o*f)),t[2]=a*(l*y-c*M)-r*(i*y-o*M)+d*(i*c-o*l),t[3]=-(a*(l*m-c*f)-r*(i*m-o*f)+h*(i*c-o*l)),t[4]=-(s*(f*y-m*M)-u*(l*y-c*M)+p*(l*m-c*f)),t[5]=n*(f*y-m*M)-u*(i*y-o*M)+p*(i*m-o*f),t[6]=-(n*(l*y-c*M)-s*(i*y-o*M)+p*(i*c-o*l)),t[7]=n*(l*m-c*f)-s*(i*m-o*f)+u*(i*c-o*l),t[8]=s*(h*y-m*d)-u*(r*y-c*d)+p*(r*m-c*h),t[9]=-(n*(h*y-m*d)-u*(a*y-o*d)+p*(a*m-o*h)),t[10]=n*(r*y-c*d)-s*(a*y-o*d)+p*(a*c-o*r),t[11]=-(n*(r*m-c*h)-s*(a*m-o*h)+u*(a*c-o*r)),t[12]=-(s*(h*M-f*d)-u*(r*M-l*d)+p*(r*f-l*h)),t[13]=n*(h*M-f*d)-u*(a*M-i*d)+p*(a*f-i*h),t[14]=-(n*(r*M-l*d)-s*(a*M-i*d)+p*(a*l-i*r)),t[15]=n*(r*f-l*h)-s*(a*f-i*h)+u*(a*l-i*r),t},determinant:function(t){const e=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],r=t[6],l=t[7],c=t[8],u=t[9],h=t[10],f=t[11],m=t[12],p=t[13],d=t[14],M=t[15];return(e*s-n*o)*(h*M-f*d)-(e*r-a*o)*(u*M-f*p)+(e*l-i*o)*(u*d-h*p)+(n*r-a*s)*(c*M-f*m)-(n*l-i*s)*(c*d-h*m)+(a*l-i*r)*(c*p-u*m)},multiply:u,translate:h,scale:f,rotate:m,rotateX:function(t,e,n){const a=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],r=e[6],l=e[7],c=e[8],u=e[9],h=e[10],f=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]=o*i+c*a,t[5]=s*i+u*a,t[6]=r*i+h*a,t[7]=l*i+f*a,t[8]=c*i-o*a,t[9]=u*i-s*a,t[10]=h*i-r*a,t[11]=f*i-l*a,t},rotateY:function(t,e,n){const a=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],r=e[2],l=e[3],c=e[8],u=e[9],h=e[10],f=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]=o*i-c*a,t[1]=s*i-u*a,t[2]=r*i-h*a,t[3]=l*i-f*a,t[8]=o*a+c*i,t[9]=s*a+u*i,t[10]=r*a+h*i,t[11]=l*a+f*i,t},rotateZ:function(t,e,n){const a=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],r=e[2],l=e[3],c=e[4],u=e[5],h=e[6],f=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]=o*i+c*a,t[1]=s*i+u*a,t[2]=r*i+h*a,t[3]=l*i+f*a,t[4]=c*i-o*a,t[5]=u*i-s*a,t[6]=h*i-r*a,t[7]=f*i-l*a,t},fromTranslation:function(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},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},fromRotation:function(t,e,n){let a,o,s,r=n[0],l=n[1],c=n[2],u=Math.sqrt(r*r+l*l+c*c);return u<i.E?null:(u=1/u,r*=u,l*=u,c*=u,a=Math.sin(e),o=Math.cos(e),s=1-o,t[0]=r*r*s+o,t[1]=l*r*s+c*a,t[2]=c*r*s-l*a,t[3]=0,t[4]=r*l*s-c*a,t[5]=l*l*s+o,t[6]=c*l*s+r*a,t[7]=0,t[8]=r*c*s+l*a,t[9]=l*c*s-r*a,t[10]=c*c*s+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},fromXRotation:p,fromYRotation:function(t,e){const n=Math.sin(e),a=Math.cos(e);return t[0]=a,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]=a,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),a=Math.cos(e);return t[0]=a,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=a,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},fromRotationTranslation:d,fromQuat2:function(t,e){const n=M,a=-e[0],i=-e[1],o=-e[2],s=e[3],r=e[4],l=e[5],c=e[6],u=e[7],h=a*a+i*i+o*o+s*s;return h>0?(n[0]=2*(r*s+u*a+l*o-c*i)/h,n[1]=2*(l*s+u*i+c*a-r*o)/h,n[2]=2*(c*s+u*o+r*i-l*a)/h):(n[0]=2*(r*s+u*a+l*o-c*i),n[1]=2*(l*s+u*i+c*a-r*o),n[2]=2*(c*s+u*o+r*i-l*a)),d(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],a=e[1],i=e[2],o=e[4],s=e[5],r=e[6],l=e[8],c=e[9],u=e[10];return t[0]=Math.sqrt(n*n+a*a+i*i),t[1]=Math.sqrt(o*o+s*s+r*r),t[2]=Math.sqrt(l*l+c*c+u*u),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let a=0;return n>0?(a=2*Math.sqrt(n+1),t[3]=.25*a,t[0]=(e[6]-e[9])/a,t[1]=(e[8]-e[2])/a,t[2]=(e[1]-e[4])/a):e[0]>e[5]&&e[0]>e[10]?(a=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/a,t[0]=.25*a,t[1]=(e[1]+e[4])/a,t[2]=(e[8]+e[2])/a):e[5]>e[10]?(a=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/a,t[0]=(e[1]+e[4])/a,t[1]=.25*a,t[2]=(e[6]+e[9])/a):(a=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/a,t[0]=(e[8]+e[2])/a,t[1]=(e[6]+e[9])/a,t[2]=.25*a),t},fromRotationTranslationScale:function(t,e,n,a){const i=e[0],o=e[1],s=e[2],r=e[3],l=i+i,c=o+o,u=s+s,h=i*l,f=i*c,m=i*u,p=o*c,d=o*u,M=s*u,y=r*l,x=r*c,v=r*u,T=a[0],g=a[1],b=a[2];return t[0]=(1-(p+M))*T,t[1]=(f+v)*T,t[2]=(m-x)*T,t[3]=0,t[4]=(f-v)*g,t[5]=(1-(h+M))*g,t[6]=(d+y)*g,t[7]=0,t[8]=(m+x)*b,t[9]=(d-y)*b,t[10]=(1-(h+p))*b,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,e,n,a,i){const o=e[0],s=e[1],r=e[2],l=e[3],c=o+o,u=s+s,h=r+r,f=o*c,m=o*u,p=o*h,d=s*u,M=s*h,y=r*h,x=l*c,v=l*u,T=l*h,g=a[0],b=a[1],w=a[2],R=i[0],_=i[1],q=i[2],E=(1-(d+y))*g,I=(m+T)*g,A=(p-v)*g,D=(m-T)*b,C=(1-(f+y))*b,Z=(M+x)*b,z=(p+v)*w,F=(M-x)*w,S=(1-(f+d))*w;return t[0]=E,t[1]=I,t[2]=A,t[3]=0,t[4]=D,t[5]=C,t[6]=Z,t[7]=0,t[8]=z,t[9]=F,t[10]=S,t[11]=0,t[12]=n[0]+R-(E*R+D*_+z*q),t[13]=n[1]+_-(I*R+C*_+F*q),t[14]=n[2]+q-(A*R+Z*_+S*q),t[15]=1,t},fromQuat:function(t,e){const n=e[0],a=e[1],i=e[2],o=e[3],s=n+n,r=a+a,l=i+i,c=n*s,u=a*s,h=a*r,f=i*s,m=i*r,p=i*l,d=o*s,M=o*r,y=o*l;return t[0]=1-h-p,t[1]=u+y,t[2]=f-M,t[3]=0,t[4]=u-y,t[5]=1-c-p,t[6]=m+d,t[7]=0,t[8]=f+M,t[9]=m-d,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,a,i,o,s){const r=1/(n-e),l=1/(i-a),c=1/(o-s);return t[0]=2*o*r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*r,t[9]=(i+a)*l,t[10]=(s+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*c,t[15]=0,t},perspective:function(t,e,n,a,i){const o=1/Math.tan(e/2);let s;return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,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!=i&&i!==1/0?(s=1/(a-i),t[10]=(i+a)*s,t[14]=2*i*a*s):(t[10]=-1,t[14]=-2*a),t},perspectiveFromFieldOfView:function(t,e,n,a){const i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),r=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+r),c=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-r)*l*.5,t[9]=(i-o)*c*.5,t[10]=a/(n-a),t[11]=-1,t[12]=0,t[13]=0,t[14]=a*n/(n-a),t[15]=0,t},ortho:function(t,e,n,a,i,o,s){const r=1/(e-n),l=1/(a-i),c=1/(o-s);return t[0]=-2*r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*r,t[13]=(i+a)*l,t[14]=(s+o)*c,t[15]=1,t},lookAt:function(t,e,n,a){let o,s,l,c,u,h,f,m,p,d;const M=e[0],y=e[1],x=e[2],v=a[0],T=a[1],g=a[2],b=n[0],w=n[1],R=n[2];return Math.abs(M-b)<i.E&&Math.abs(y-w)<i.E&&Math.abs(x-R)<i.E?r(t):(f=M-b,m=y-w,p=x-R,d=1/Math.sqrt(f*f+m*m+p*p),f*=d,m*=d,p*=d,o=T*p-g*m,s=g*f-v*p,l=v*m-T*f,d=Math.sqrt(o*o+s*s+l*l),d?(d=1/d,o*=d,s*=d,l*=d):(o=0,s=0,l=0),c=m*l-p*s,u=p*o-f*l,h=f*s-m*o,d=Math.sqrt(c*c+u*u+h*h),d?(d=1/d,c*=d,u*=d,h*=d):(c=0,u=0,h=0),t[0]=o,t[1]=c,t[2]=f,t[3]=0,t[4]=s,t[5]=u,t[6]=m,t[7]=0,t[8]=l,t[9]=h,t[10]=p,t[11]=0,t[12]=-(o*M+s*y+l*x),t[13]=-(c*M+u*y+h*x),t[14]=-(f*M+m*y+p*x),t[15]=1,t)},targetTo:function(t,e,n,a){const i=e[0],o=e[1],s=e[2],r=a[0],l=a[1],c=a[2];let u=i-n[0],h=o-n[1],f=s-n[2],m=u*u+h*h+f*f;m>0&&(m=1/Math.sqrt(m),u*=m,h*=m,f*=m);let p=l*f-c*h,d=c*u-r*f,M=r*h-l*u;return m=p*p+d*d+M*M,m>0&&(m=1/Math.sqrt(m),p*=m,d*=m,M*=m),t[0]=p,t[1]=d,t[2]=M,t[3]=0,t[4]=h*M-f*d,t[5]=f*p-u*M,t[6]=u*d-h*p,t[7]=0,t[8]=u,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},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]+")"},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)},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},subtract:y,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,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t[2]=e[2]+n[2]*a,t[3]=e[3]+n[3]*a,t[4]=e[4]+n[4]*a,t[5]=e[5]+n[5]*a,t[6]=e[6]+n[6]*a,t[7]=e[7]+n[7]*a,t[8]=e[8]+n[8]*a,t[9]=e[9]+n[9]*a,t[10]=e[10]+n[10]*a,t[11]=e[11]+n[11]*a,t[12]=e[12]+n[12]*a,t[13]=e[13]+n[13]*a,t[14]=e[14]+n[14]*a,t[15]=e[15]+n[15]*a,t},exactEquals:x,equals:v,isOrthoNormal:T,mul:g,sub:b})},17896:(t,e,n)=>{n.d(e,{E:()=>h,a:()=>f,b:()=>l,c:()=>x,d:()=>y,e:()=>v,f:()=>c,g:()=>s,h:()=>p,i:()=>m,k:()=>_,l:()=>o,m:()=>T,n:()=>M,p:()=>d,q:()=>b,r:()=>q,s:()=>r,t:()=>g,u:()=>Z,v:()=>E});var a=n(65617),i=n(46851);function o(t){const e=t[0],n=t[1],a=t[2];return Math.sqrt(e*e+n*n+a*a)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function r(t,e,n,a){return t[0]=e,t[1]=n,t[2]=a,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function m(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+a*a+i*i)}function p(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2];return n*n+a*a+i*i}function d(t){const e=t[0],n=t[1],a=t[2];return e*e+n*n+a*a}function M(t,e){const n=e[0],a=e[1],i=e[2];let o=n*n+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function x(t,e,n){const a=e[0],i=e[1],o=e[2],s=n[0],r=n[1],l=n[2];return t[0]=i*l-o*r,t[1]=o*s-a*l,t[2]=a*r-i*s,t}function v(t,e,n,a){const i=e[0],o=e[1],s=e[2];return t[0]=i+a*(n[0]-i),t[1]=o+a*(n[1]-o),t[2]=s+a*(n[2]-s),t}function T(t,e,n){const a=e[0],i=e[1],o=e[2];return t[0]=n[0]*a+n[4]*i+n[8]*o+n[12],t[1]=n[1]*a+n[5]*i+n[9]*o+n[13],t[2]=n[2]*a+n[6]*i+n[10]*o+n[14],t}function g(t,e,n){const a=e[0],i=e[1],o=e[2];return t[0]=a*n[0]+i*n[3]+o*n[6],t[1]=a*n[1]+i*n[4]+o*n[7],t[2]=a*n[2]+i*n[5]+o*n[8],t}function b(t,e,n){const a=n[0],i=n[1],o=n[2],s=n[3],r=e[0],l=e[1],c=e[2];let u=i*c-o*l,h=o*r-a*c,f=a*l-i*r,m=i*f-o*h,p=o*u-a*f,d=a*h-i*u;const M=2*s;return u*=M,h*=M,f*=M,m*=2,p*=2,d*=2,t[0]=r+u+m,t[1]=l+h+p,t[2]=c+f+d,t}const w=(0,a.c)(),R=(0,a.c)();function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e,n){const a=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=a*a+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=a*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const E=c,I=u,A=h,D=m,C=p,Z=o,z=d;Object.freeze({__proto__:null,length:o,copy:s,set:r,add:l,subtract:c,multiply:u,divide:h,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:f,scaleAndAdd:function(t,e,n,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t[2]=e[2]+n[2]*a,t},distance:m,squaredDistance:p,squaredLength:d,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:M,dot:y,cross:x,lerp:v,hermite:function(t,e,n,a,i,o){const s=o*o,r=s*(2*o-3)+1,l=s*(o-2)+o,c=s*(o-1),u=s*(3-2*o);return t[0]=e[0]*r+n[0]*l+a[0]*c+i[0]*u,t[1]=e[1]*r+n[1]*l+a[1]*c+i[1]*u,t[2]=e[2]*r+n[2]*l+a[2]*c+i[2]*u,t},bezier:function(t,e,n,a,i,o){const s=1-o,r=s*s,l=o*o,c=r*s,u=3*o*r,h=3*l*s,f=l*o;return t[0]=e[0]*c+n[0]*u+a[0]*h+i[0]*f,t[1]=e[1]*c+n[1]*u+a[1]*h+i[1]*f,t[2]=e[2]*c+n[2]*u+a[2]*h+i[2]*f,t},random:function(t,e){e=e||1;const n=2*(0,i.R)()*Math.PI,a=2*(0,i.R)()-1,o=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=a*e,t},transformMat4:T,transformMat3:g,transformQuat:b,rotateX:function(t,e,n,a){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(a)-i[2]*Math.sin(a),o[2]=i[1]*Math.sin(a)+i[2]*Math.cos(a),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,a){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(a)+i[0]*Math.cos(a),o[1]=i[1],o[2]=i[2]*Math.cos(a)-i[0]*Math.sin(a),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,a){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(a)-i[1]*Math.sin(a),o[1]=i[0]*Math.sin(a)+i[1]*Math.cos(a),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},angle:function(t,e){s(w,t),s(R,e),M(w,w),M(R,R);const n=y(w,R);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:_,equals:function(t,e){if(t===e)return!0;const n=t[0],a=t[1],o=t[2],s=e[0],r=e[1],l=e[2];return Math.abs(n-s)<=i.E*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-r)<=i.E*Math.max(1,Math.abs(a),Math.abs(r))&&Math.abs(o-l)<=i.E*Math.max(1,Math.abs(o),Math.abs(l))},direction:q,sub:E,mul:I,div:A,dist:D,sqrDist:C,len:Z,sqrLen:z})},65617:(t,e,n)=>{function a(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function s(t){const e=[0,0,0],n=Math.min(3,t.length);for(let a=0;a<n;++a)e[a]=t[a];return e}function r(t,e){return new Float64Array(t,e,3)}function l(){return o(1,1,1)}function c(){return o(1,0,0)}function u(){return o(0,1,0)}function h(){return o(0,0,1)}n.d(e,{O:()=>m,Z:()=>f,a:()=>i,b:()=>r,c:()=>a,d:()=>s,f:()=>o});const f=[0,0,0],m=l(),p=c(),d=u(),M=h();Object.freeze({__proto__:null,create:a,clone:i,fromValues:o,fromArray:s,createView:r,zeros:function(){return[0,0,0]},ones:l,unitX:c,unitY:u,unitZ:h,ZEROS:f,ONES:m,UNIT_X:p,UNIT_Y:d,UNIT_Z:M})},98766:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>u,c:()=>i,d:()=>M,e:()=>m,f:()=>p,g:()=>v,h:()=>T,l:()=>y,n:()=>d,s:()=>o,t:()=>x});var a=n(46851);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function o(t,e,n,a,i){return t[0]=e,t[1]=n,t[2]=a,t[3]=i,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],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}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(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}function u(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}function h(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+a*a+i*i+o*o)}function f(t,e){const n=e[0]-t[0],a=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+a*a+i*i+o*o}function m(t){const e=t[0],n=t[1],a=t[2],i=t[3];return Math.sqrt(e*e+n*n+a*a+i*i)}function p(t){const e=t[0],n=t[1],a=t[2],i=t[3];return e*e+n*n+a*a+i*i}function d(t,e){const n=e[0],a=e[1],i=e[2],o=e[3];let s=n*n+a*a+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=a*s,t[2]=i*s,t[3]=o*s),t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function y(t,e,n,a){const i=e[0],o=e[1],s=e[2],r=e[3];return t[0]=i+a*(n[0]-i),t[1]=o+a*(n[1]-o),t[2]=s+a*(n[2]-s),t[3]=r+a*(n[3]-r),t}function x(t,e,n){const a=e[0],i=e[1],o=e[2],s=e[3];return t[0]=n[0]*a+n[4]*i+n[8]*o+n[12]*s,t[1]=n[1]*a+n[5]*i+n[9]*o+n[13]*s,t[2]=n[2]*a+n[6]*i+n[10]*o+n[14]*s,t[3]=n[3]*a+n[7]*i+n[11]*o+n[15]*s,t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){const n=t[0],i=t[1],o=t[2],s=t[3],r=e[0],l=e[1],c=e[2],u=e[3];return Math.abs(n-r)<=a.E*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-l)<=a.E*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=a.E*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(s-u)<=a.E*Math.max(1,Math.abs(s),Math.abs(u))}const g=r,b=l,w=c,R=h,_=f,q=m,E=p;Object.freeze({__proto__:null,copy:i,set:o,add:s,subtract:r,multiply:l,divide:c,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:u,scaleAndAdd:function(t,e,n,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t[2]=e[2]+n[2]*a,t[3]=e[3]+n[3]*a,t},distance:h,squaredDistance:f,length:m,squaredLength:p,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},normalize:d,dot:M,lerp:y,random:function(t,e){let n,i,o,s,r,l;e=e||1;do{n=2*(0,a.R)()-1,i=2*(0,a.R)()-1,r=n*n+i*i}while(r>=1);do{o=2*(0,a.R)()-1,s=2*(0,a.R)()-1,l=o*o+s*s}while(l>=1);const c=Math.sqrt((1-r)/l);return t[0]=e*n,t[1]=e*i,t[2]=e*o*c,t[3]=e*s*c,t},transformMat4:x,transformQuat:function(t,e,n){const a=e[0],i=e[1],o=e[2],s=n[0],r=n[1],l=n[2],c=n[3],u=c*a+r*o-l*i,h=c*i+l*a-s*o,f=c*o+s*i-r*a,m=-s*a-r*i-l*o;return t[0]=u*c+m*-s+h*-l-f*-r,t[1]=h*c+m*-r+f*-s-u*-l,t[2]=f*c+m*-l+u*-r-h*-s,t[3]=e[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:v,equals:T,sub:g,mul:b,div:w,dist:R,sqrDist:_,len:q,sqrLen:E})},22021:(t,e,n)=>{n.d(e,{ZF:()=>f,Kt:()=>m,jE:()=>M,uZ:()=>s,oK:()=>p,Vl:()=>u,wt:()=>r,t7:()=>c,Sf:()=>o,fp:()=>l,BV:()=>h});var a=n(17896);n(98766);const i=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,n){return Math.min(Math.max(t,e),n)}function r(t){return 0==(t&t-1)}function l(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}function c(t,e,n){return t+(e-t)*n}function u(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function f(t){return Math.acos(s(t,-1,1))}function m(t){return Math.asin(s(t,-1,1))}function p(t){return d(Math.max(-y,Math.min(t,y)))}function d(t){return i[0]=t,i[0]}function M(t,e){const n=(0,a.l)(t),i=m(t[2]/n),o=Math.atan2(t[1]/n,t[0]/n);return(0,a.s)(e,n,i,o),e}const y=d(34028234663852886e22)},33127:(t,e,n)=>{n.r(e),n.d(e,{ElevationQuery:()=>_,GeometryDescriptor:()=>q,default:()=>_,getFinestLodIndex:()=>D});var a=n(66643),i=n(20102),o=n(70586),s=n(95330),r=n(67900),l=n(65091),c=n(13473),u=n(58901),h=n(90411),f=n(24470),m=(n(66577),n(80442),n(92604)),p=n(54102),d=n(40488);const M=m.Z.getLogger("esri.layers.support.ElevationSampler");class y{queryElevation(t){return function(t,e){const n=T(t,e.spatialReference);if(!n)return null;switch(t.type){case"point":!function(t,e,n){t.z=(0,o.Pt)(n.elevationAt(e),0)}(t,n,e);break;case"polyline":!function(t,e,n){g.spatialReference=e.spatialReference;const a=t.hasM&&!t.hasZ;for(let i=0;i<t.paths.length;i++){const s=t.paths[i],r=e.paths[i];for(let t=0;t<s.length;t++){const e=s[t],i=r[t];g.x=i[0],g.y=i[1],a&&(e[3]=e[2]),e[2]=(0,o.Pt)(n.elevationAt(g),0)}}t.hasZ=!0}(t,n,e);break;case"multipoint":!function(t,e,n){g.spatialReference=e.spatialReference;const a=t.hasM&&!t.hasZ;for(let i=0;i<t.points.length;i++){const s=t.points[i],r=e.points[i];g.x=r[0],g.y=r[1],a&&(s[3]=s[2]),s[2]=(0,o.Pt)(n.elevationAt(g),0)}t.hasZ=!0}(t,n,e)}return t}(t.clone(),this)}on(){return b}projectIfRequired(t,e){return T(t,e)}}class x extends y{constructor(t,e,n){super(),this.tile=t,this.noDataValue=n,this.extent=(0,f.HH)(t.tile.extent,e.spatialReference);const a=(0,r.c9)(e.spatialReference),i=e.lodAt(t.tile.level).resolution*a;this.demResolution={min:i,max:i}}get spatialReference(){return this.extent.spatialReference}contains(t){const e=this.projectIfRequired(t,this.spatialReference);return(0,p.aV)(this.extent,e)}elevationAt(t){const e=this.projectIfRequired(t,this.spatialReference);if((0,o.Wi)(e))return null;if(!this.contains(t)){const e=this.extent,n=`${e.xmin}, ${e.ymin}, ${e.xmax}, ${e.ymax}`;return M.warn("#elevationAt()",`Point used to sample elevation (${t.x}, ${t.y}) is outside of the sampler extent (${n})`),this.noDataValue}return this.tile.sample(e.x,e.y)}}class v extends y{constructor(t,e,n){let a;super(),"number"==typeof e?(this.noDataValue=e,a=null):(a=e,this.noDataValue=n),this.samplers=a?t.map((t=>new x(t,a,this.noDataValue))):t;const i=this.samplers[0];if(i){this.extent=i.extent.clone();const{min:t,max:e}=i.demResolution;this.demResolution={min:t,max:e};for(let t=1;t<this.samplers.length;t++){const e=this.samplers[t];this.extent.union(e.extent),this.demResolution.min=Math.min(this.demResolution.min,e.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,e.demResolution.max)}}else this.extent=(0,f.HH)((0,f.Ue)(),a.spatialReference),this.demResolution={min:0,max:0}}get spatialReference(){return this.extent.spatialReference}elevationAt(t){const e=this.projectIfRequired(t,this.spatialReference);if(!e)return null;for(const t of this.samplers)if(t.contains(e))return t.elevationAt(e);return M.warn("#elevationAt()",`Point used to sample elevation (${t.x}, ${t.y}) is outside of the sampler`),this.noDataValue}}function T(t,e){if((0,o.Wi)(t))return null;const n=t.spatialReference;if(n.equals(e))return t;const a=(0,d.iV)(t,e);return a||M.error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${e.wkid})`),a}const g=new c.Z,b={remove(){}};class w{constructor(t,e=null){if(this.tile=t,(0,o.pC)(e)){const n=t.extent;this.samplerData={pixelData:e.values,width:e.width,height:e.height,safeWidth:.99999999*(e.width-1),noDataValue:e.noDataValue,dx:(e.width-1)/(n[2]-n[0]),dy:(e.width-1)/(n[3]-n[1]),x0:n[0],y1:n[3]}}}sample(t,e){if((0,o.Wi)(this.samplerData))return;const{safeWidth:n,width:a,pixelData:i,noDataValue:s,dx:r,dy:l,y1:c,x0:u}=this.samplerData,h=R(l*(c-e),0,n),f=R(r*(t-u),0,n),m=Math.floor(h),p=Math.floor(f),d=m*a+p,M=d+a,y=i[d],x=i[M],v=i[d+1],T=i[M+1];if(y!==s&&x!==s&&v!==s&&T!==s){const t=f-p,e=y+(v-y)*t;return e+(x+(T-x)*t-e)*(h-m)}}}function R(t,e,n){return t<e?e:t>n?n:t}class _{async queryAll(t,e,n){if(!(t=n&&n.ignoreInvisibleLayers?t.filter((t=>t.visible)):t.slice()).length)throw new i.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");const a=q.fromGeometry(e);let o=!1;n&&n.returnSampleInfo||(o=!0);const s={...C,...n,returnSampleInfo:!0},r=await this.query(t[t.length-1],a,s),l=await this._queryAllContinue(t,r,s);return l.geometry=l.geometry.export(),o&&delete l.sampleInfo,l}async query(t,e,n){if(!t)throw new i.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!e||!(e instanceof q)&&"point"!==e.type&&"multipoint"!==e.type&&"polyline"!==e.type)throw new i.Z("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const a={...C,...n},o=new I(t,e.spatialReference,a),s=a.signal;return await t.load({signal:s}),await this._createGeometryDescriptor(o,e,s),await this._selectTiles(o,s),await this._populateElevationTiles(o,s),this._sampleGeometryWithElevation(o),this._createQueryResult(o,s)}async createSampler(t,e,n){if(!t)throw new i.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!e||"extent"!==e.type)throw new i.Z("elevation-query:invalid-extent","Invalid or undefined extent");const a={...C,...n};return this._createSampler(t,e,a)}async createSamplerAll(t,e,n){if(!(t=n&&n.ignoreInvisibleLayers?t.filter((t=>t.visible)):t.slice()).length)throw new i.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");if(!e||"extent"!==e.type)throw new i.Z("elevation-query:invalid-extent","Invalid or undefined extent");const a={...C,...n,returnSampleInfo:!0},o=await this._createSampler(t[t.length-1],e,a);return this._createSamplerAllContinue(t,e,o,a)}async _createSampler(t,e,n,a){const i=n.signal;await t.load({signal:i});const o=e.spatialReference,s=t.tileInfo.spatialReference;o.equals(s)||(await(0,h.iQ)([{source:o,dest:s}],{signal:i}),e=(0,h.iV)(e,s));const r=new A(t,e,n,a);return await this._selectTiles(r,i),await this._populateElevationTiles(r,i),new v(r.elevationTiles,r.layer.tileInfo,r.options.noDataValue)}async _createSamplerAllContinue(t,e,n,a){if(t.pop(),!t.length)return n;const i=n.samplers.map((t=>(0,f.oJ)(t.extent))),o=await this._createSampler(t[t.length-1],e,a,i);if(0===o.samplers.length)return n;const s=n.samplers.concat(o.samplers),r=new v(s,a.noDataValue);return this._createSamplerAllContinue(t,e,r,a)}async _queryAllContinue(t,e,n){const a=t.pop(),i=e.geometry.coordinates,o=[],s=[];for(let n=0;n<i.length;n++){const r=e.sampleInfo[n];r.demResolution>=0?r.source||(r.source=a):t.length&&(o.push(i[n]),s.push(n))}if(!t.length||0===o.length)return e;const r=e.geometry.clone(o),l=await this.query(t[t.length-1],r,n);return s.forEach(((t,n)=>{i[t].z=l.geometry.coordinates[n].z,e.sampleInfo[t].demResolution=l.sampleInfo[n].demResolution})),this._queryAllContinue(t,e,n)}async _createQueryResult(t,e){const n={geometry:(await t.geometry.project(t.outSpatialReference,e)).export(),noDataValue:t.options.noDataValue};return t.options.returnSampleInfo&&(n.sampleInfo=this._extractSampleInfo(t)),t.geometry.coordinates.forEach((t=>{t.tile=null,t.elevationTile=null})),n}async _createGeometryDescriptor(t,e,n){let a;const o=t.layer.tileInfo.spatialReference;if(e instanceof q?a=await e.project(o,n):(await(0,h.iQ)([{source:e.spatialReference,dest:o}],{signal:n}),a=(0,h.iV)(e,o)),!a)throw new i.Z("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${e.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);t.geometry=q.fromGeometry(a)}async _selectTiles(t,e){const n=t.options.demResolution;if("geometry"===t.type&&this._preselectOutsideLayerExtent(t),"number"==typeof n)this._selectTilesClosestResolution(t);else if("finest-contiguous"===n)await this._selectTilesFinestContiguous(t,e);else{if("auto"!==n)throw new i.Z("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${n}', expected a number, "finest-contiguous" or "auto"`);await this._selectTilesAuto(t,e)}}_preselectOutsideLayerExtent(t){if((0,o.Wi)(t.layer.fullExtent))return;const e=new w(null);e.sample=()=>t.options.noDataValue,t.outsideExtentTile=e;const n=t.layer.fullExtent;t.geometry.coordinates.forEach((t=>{const a=t.x,i=t.y;(a<n.xmin||a>n.xmax||i<n.ymin||i>n.ymax)&&(t.elevationTile=e)}))}_selectTilesClosestResolution(t){const e=t.layer.tileInfo,n=this._findNearestDemResolutionLODIndex(e,t.options.demResolution);t.selectTilesAtLOD(n)}_findNearestDemResolutionLODIndex(t,e){const n=e/(0,r.c9)(t.spatialReference);let a=t.lods[0],i=0;for(let e=1;e<t.lods.length;e++){const o=t.lods[e];Math.abs(o.resolution-n)<Math.abs(a.resolution-n)&&(a=o,i=e)}return i}async _selectTilesFinestContiguous(t,e){const n=D(t.layer.tileInfo,t.options.minDemResolution);await this._selectTilesFinestContiguousAt(t,n,e)}async _selectTilesFinestContiguousAt(t,e,n){const a=t.layer;if(t.selectTilesAtLOD(e),e<0)return;const o=a.tilemapCache,r=t.getTilesToFetch();try{if(o)await(0,s.Hl)(Promise.all(r.map((t=>o.fetchAvailability(t.level,t.row,t.col,{signal:n})))),n);else if(await this._populateElevationTiles(t,n),!t.allElevationTilesFetched())throw t.clearElevationTiles(),new i.Z("elevation-query:has-unavailable-tiles")}catch(a){(0,s.r9)(a),await this._selectTilesFinestContiguousAt(t,e-1,n)}}async _populateElevationTiles(t,e){const n=t.getTilesToFetch(),a={},i=t.options.cache,r=t.options.noDataValue,l=n.map((async n=>{const s=`${t.layer.uid}:${n.id}:${r}`,l=(0,o.pC)(i)?i.get(s):null,c=(0,o.pC)(l)?l:await t.layer.fetchTile(n.level,n.row,n.col,{noDataValue:r,signal:e});(0,o.pC)(i)&&i.put(s,c),a[n.id]=new w(n,c)}));await(0,s.Hl)((0,s.as)(l),e),t.populateElevationTiles(a)}async _selectTilesAuto(t,e){this._selectTilesAutoFinest(t),this._reduceTilesForMaximumRequests(t);const n=t.layer.tilemapCache;if(!n)return this._selectTilesAutoPrefetchUpsample(t,e);const i=t.getTilesToFetch(),o={},r=i.map((async t=>{const i={id:null,level:0,row:0,col:0,extent:(0,f.Ue)()},r=await(0,a.q6)(n.fetchAvailabilityUpsample(t.level,t.row,t.col,i,{signal:e}));!1===r.ok?(0,s.r9)(r.error):o[t.id]=i}));await(0,s.Hl)(Promise.all(r),e),t.remapTiles(o)}_reduceTilesForMaximumRequests(t){const e=t.layer.tileInfo;let n=0;const a={},i=t=>{t.id in a?a[t.id]++:(a[t.id]=1,n++)},o=t=>{const e=a[t.id];1===e?(delete a[t.id],n--):a[t.id]=e-1};t.forEachTileToFetch(i,o);let s=!0;for(;s&&(s=!1,t.forEachTileToFetch((a=>{n<=t.options.maximumAutoTileRequests||(o(a),e.upsampleTile(a)&&(s=!0),i(a))}),o),s););}_selectTilesAutoFinest(t){const e=D(t.layer.tileInfo,t.options.minDemResolution);t.selectTilesAtLOD(e,t.options.maximumAutoTileRequests)}async _selectTilesAutoPrefetchUpsample(t,e){const n=t.layer.tileInfo;await this._populateElevationTiles(t,e);let a=!1;t.forEachTileToFetch(((t,e)=>{n.upsampleTile(t)?a=!0:e()})),a&&await this._selectTilesAutoPrefetchUpsample(t,e)}_sampleGeometryWithElevation(t){t.geometry.coordinates.forEach((e=>{const n=e.elevationTile;let a=t.options.noDataValue;if(n){const t=n.sample(e.x,e.y);(0,o.pC)(t)?a=t:e.elevationTile=null}e.z=a}))}_extractSampleInfo(t){const e=t.layer.tileInfo,n=(0,r.c9)(e.spatialReference);return t.geometry.coordinates.map((a=>{let i=-1;return a.elevationTile&&a.elevationTile!==t.outsideExtentTile&&(i=e.lodAt(a.elevationTile.tile.level).resolution*n),{demResolution:i}}))}}class q{export(){return this._exporter(this.coordinates,this.spatialReference)}clone(t){const e=new q;return e.geometry=this.geometry,e.spatialReference=this.spatialReference,e.coordinates=t||this.coordinates.map((t=>this._cloneCoordinate(t))),e._exporter=this._exporter,e}async project(t,e){if(this.spatialReference.equals(t))return this.clone();await(0,h.iQ)([{source:this.spatialReference,dest:t}],{signal:e});const n=new l.Z({spatialReference:this.spatialReference,points:this.coordinates.map((t=>[t.x,t.y]))}),a=(0,h.iV)(n,t);if(!a)return null;const i=this.coordinates.map(((t,e)=>{const n=this._cloneCoordinate(t),i=a.points[e];return n.x=i[0],n.y=i[1],n})),o=this.clone(i);return o.spatialReference=t,o}_cloneCoordinate(t){return{x:t.x,y:t.y,z:t.z,m:t.m,tile:null,elevationTile:null}}static fromGeometry(t){const e=new q;if(e.geometry=t,e.spatialReference=t.spatialReference,t instanceof q)e.coordinates=t.coordinates.map((t=>e._cloneCoordinate(t))),e._exporter=(e,n)=>{const a=t.clone(e);return a.spatialReference=n,a};else switch(t.type){case"point":{const n=t,{hasZ:a,hasM:i}=n;e.coordinates=a&&i?[{x:n.x,y:n.y,z:n.z,m:n.m}]:a?[{x:n.x,y:n.y,z:n.z}]:i?[{x:n.x,y:n.y,m:n.m}]:[{x:n.x,y:n.y}],e._exporter=(e,n)=>t.hasM?new c.Z(e[0].x,e[0].y,e[0].z,e[0].m,n):new c.Z(e[0].x,e[0].y,e[0].z,n);break}case"multipoint":{const n=t,{hasZ:a,hasM:i}=n;e.coordinates=a&&i?n.points.map((t=>({x:t[0],y:t[1],z:t[2],m:t[3]}))):a?n.points.map((t=>({x:t[0],y:t[1],z:t[2]}))):i?n.points.map((t=>({x:t[0],y:t[1],m:t[2]}))):n.points.map((t=>({x:t[0],y:t[1]}))),e._exporter=(e,n)=>t.hasM?new l.Z({points:e.map((t=>[t.x,t.y,t.z,t.m])),hasZ:!0,hasM:!0,spatiaReference:n}):new l.Z(e.map((t=>[t.x,t.y,t.z])),n);break}case"polyline":{const n=t,a=[],i=[],{hasZ:o,hasM:s}=t;let r=0;for(const t of n.paths)if(i.push([r,r+t.length]),r+=t.length,o&&s)for(const e of t)a.push({x:e[0],y:e[1],z:e[2],m:e[3]});else if(o)for(const e of t)a.push({x:e[0],y:e[1],z:e[2]});else if(s)for(const e of t)a.push({x:e[0],y:e[1],m:e[2]});else for(const e of t)a.push({x:e[0],y:e[1]});e.coordinates=a,e._exporter=(e,n)=>{const a=t.hasM?e.map((t=>[t.x,t.y,t.z,t.m])):e.map((t=>[t.x,t.y,t.z])),o=i.map((t=>a.slice(t[0],t[1])));return new u.Z({paths:o,hasM:t.hasM,hasZ:!0,spatialReference:n})};break}}return e}}class E{constructor(t,e){this.layer=t,this.options=e}}class I extends E{constructor(t,e,n){super(t,n),this.outSpatialReference=e,this.type="geometry"}selectTilesAtLOD(t){if(t<0)this.geometry.coordinates.forEach((t=>t.tile=null));else{const e=this.layer.tileInfo,n=e.lods[t].level;this.geometry.coordinates.forEach((t=>{t.tile=e.tileAt(n,t.x,t.y)}))}}allElevationTilesFetched(){return!this.geometry.coordinates.some((t=>!t.elevationTile))}clearElevationTiles(){for(const t of this.geometry.coordinates)t.elevationTile!==this.outsideExtentTile&&(t.elevationTile=null)}populateElevationTiles(t){for(const e of this.geometry.coordinates)!e.elevationTile&&e.tile&&(e.elevationTile=t[e.tile.id])}remapTiles(t){for(const e of this.geometry.coordinates)e.tile=t[e.tile.id]}getTilesToFetch(){const t={},e=[];for(const n of this.geometry.coordinates){const a=n.tile;n.elevationTile||!n.tile||t[a.id]||(t[a.id]=a,e.push(a))}return e}forEachTileToFetch(t){for(const e of this.geometry.coordinates)e.tile&&!e.elevationTile&&t(e.tile,(()=>e.tile=null))}}class A extends E{constructor(t,e,n,a){super(t,n),this.type="extent",this.elevationTiles=[],this.candidateTiles=[],this.fetchedCandidates=new Set,this.extent=e.intersection(t.fullExtent),this.maskExtents=a}selectTilesAtLOD(t,e){const n=this._maximumLodForRequests(e),a=Math.min(n,t);a<0?this.candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(a)}_maximumLodForRequests(t){const e=this.layer.tileInfo;if(!t)return e.lods.length-1;const n=this.extent;if((0,o.Wi)(n))return-1;for(let a=e.lods.length-1;a>=0;a--){const i=e.lods[a],o=i.resolution*e.size[0],s=i.resolution*e.size[1];if(Math.ceil(n.width/o)*Math.ceil(n.height/s)<=t)return a}return-1}allElevationTilesFetched(){return this.candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this.fetchedCandidates.clear()}populateElevationTiles(t){for(const e of this.candidateTiles){const n=t[e.id];n&&(this.fetchedCandidates.add(e),this.elevationTiles.push(n))}}remapTiles(t){this.candidateTiles=this._uniqueNonOverlappingTiles(this.candidateTiles.map((e=>t[e.id])))}getTilesToFetch(){return this.candidateTiles}forEachTileToFetch(t,e){const n=this.candidateTiles;this.candidateTiles=[],n.forEach((n=>{if(this.fetchedCandidates.has(n))return void(e&&e(n));let a=!1;t(n,(()=>a=!0)),a?e&&e(n):this.candidateTiles.push(n)})),this.candidateTiles=this._uniqueNonOverlappingTiles(this.candidateTiles,e)}_uniqueNonOverlappingTiles(t,e){const n={},a=[];for(const i of t)n[i.id]?e&&e(i):(n[i.id]=i,a.push(i));const i=a.sort(((t,e)=>t.level-e.level));return i.filter(((t,n)=>{for(let a=0;a<n;a++)if((0,f.r3)(i[a].extent,t.extent))return e&&e(t),!1;return!0}))}_selectCandidateTilesCoveringExtentAt(t){this.candidateTiles.length=0;const e=this.extent;if((0,o.Wi)(e))return;const n=this.layer.tileInfo,a=n.lods[t],i=n.tileAt(a.level,e.xmin,e.ymin),s=a.resolution*n.size[0],r=a.resolution*n.size[1],l=Math.ceil((e.xmax-i.extent[0])/s),c=Math.ceil((e.ymax-i.extent[1])/r);for(let t=0;t<c;t++)for(let e=0;e<l;e++){const a={id:null,level:i.level,row:i.row-t,col:i.col+e};n.updateTileInfo(a),this._tileIsMasked(a)||this.candidateTiles.push(a)}}_tileIsMasked(t){return!!this.maskExtents&&this.maskExtents.some((e=>(0,f.r3)(e,t.extent)))}}function D(t,e){let n=t.lods.length-1;if(e>0){const a=t.lods.findIndex((t=>t.resolution<e));0===a?n=0:a>0&&(n=a-1)}return n}const C={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0}}}]);