@arcgis/core 4.33.0-next.20250508 → 4.33.0-next.20250509

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 (380) hide show
  1. package/applications/SceneViewer/sceneViewerUtils.d.ts +2 -0
  2. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  3. package/arcade/featureset/support/RecentlyUsedCache.js +1 -1
  4. package/arcade/functions/aiServices.js +1 -1
  5. package/arcade.js +1 -1
  6. package/assets/components/assets/input-time-picker/t9n/messages.ar.json +1 -1
  7. package/assets/components/assets/input-time-picker/t9n/messages.bg.json +1 -1
  8. package/assets/components/assets/input-time-picker/t9n/messages.bs.json +1 -1
  9. package/assets/components/assets/input-time-picker/t9n/messages.ca.json +1 -1
  10. package/assets/components/assets/input-time-picker/t9n/messages.cs.json +1 -1
  11. package/assets/components/assets/input-time-picker/t9n/messages.da.json +1 -1
  12. package/assets/components/assets/input-time-picker/t9n/messages.de.json +1 -1
  13. package/assets/components/assets/input-time-picker/t9n/messages.el.json +1 -1
  14. package/assets/components/assets/input-time-picker/t9n/messages.en.json +1 -1
  15. package/assets/components/assets/input-time-picker/t9n/messages.es.json +1 -1
  16. package/assets/components/assets/input-time-picker/t9n/messages.et.json +1 -1
  17. package/assets/components/assets/input-time-picker/t9n/messages.fi.json +1 -1
  18. package/assets/components/assets/input-time-picker/t9n/messages.fr.json +1 -1
  19. package/assets/components/assets/input-time-picker/t9n/messages.he.json +1 -1
  20. package/assets/components/assets/input-time-picker/t9n/messages.hr.json +1 -1
  21. package/assets/components/assets/input-time-picker/t9n/messages.hu.json +1 -1
  22. package/assets/components/assets/input-time-picker/t9n/messages.id.json +1 -1
  23. package/assets/components/assets/input-time-picker/t9n/messages.it.json +1 -1
  24. package/assets/components/assets/input-time-picker/t9n/messages.ja.json +1 -1
  25. package/assets/components/assets/input-time-picker/t9n/messages.json +1 -1
  26. package/assets/components/assets/input-time-picker/t9n/messages.ko.json +1 -1
  27. package/assets/components/assets/input-time-picker/t9n/messages.lt.json +1 -1
  28. package/assets/components/assets/input-time-picker/t9n/messages.lv.json +1 -1
  29. package/assets/components/assets/input-time-picker/t9n/messages.nl.json +1 -1
  30. package/assets/components/assets/input-time-picker/t9n/messages.no.json +1 -1
  31. package/assets/components/assets/input-time-picker/t9n/messages.pl.json +1 -1
  32. package/assets/components/assets/input-time-picker/t9n/messages.pt-BR.json +1 -1
  33. package/assets/components/assets/input-time-picker/t9n/messages.pt-PT.json +1 -1
  34. package/assets/components/assets/input-time-picker/t9n/messages.ro.json +1 -1
  35. package/assets/components/assets/input-time-picker/t9n/messages.ru.json +1 -1
  36. package/assets/components/assets/input-time-picker/t9n/messages.sk.json +1 -1
  37. package/assets/components/assets/input-time-picker/t9n/messages.sl.json +1 -1
  38. package/assets/components/assets/input-time-picker/t9n/messages.sr.json +1 -1
  39. package/assets/components/assets/input-time-picker/t9n/messages.sv.json +1 -1
  40. package/assets/components/assets/input-time-picker/t9n/messages.th.json +1 -1
  41. package/assets/components/assets/input-time-picker/t9n/messages.tr.json +1 -1
  42. package/assets/components/assets/input-time-picker/t9n/messages.uk.json +1 -1
  43. package/assets/components/assets/input-time-picker/t9n/messages.vi.json +1 -1
  44. package/assets/components/assets/input-time-picker/t9n/messages.zh-CN.json +1 -1
  45. package/assets/components/assets/input-time-picker/t9n/messages.zh-HK.json +1 -1
  46. package/assets/components/assets/input-time-picker/t9n/messages.zh-TW.json +1 -1
  47. package/assets/esri/core/workers/RemoteClient.js +1 -1
  48. package/assets/esri/core/workers/chunks/0766ecb677d667e5fb83.js +2 -0
  49. package/assets/esri/core/workers/chunks/{543eb46b55cacd6e1dbc.js.LICENSE.txt → 0766ecb677d667e5fb83.js.LICENSE.txt} +1 -1
  50. package/assets/esri/core/workers/chunks/{c607d618b64d3accecc4.js → 0aca29f7156b2b412f2e.js} +1 -1
  51. package/assets/esri/core/workers/chunks/1c6542315390037053a6.js +1 -0
  52. package/assets/esri/core/workers/chunks/218a66d53f7cf4f285aa.js +2 -0
  53. package/assets/esri/core/workers/chunks/{d8dc922f7466300b668f.js.LICENSE.txt → 218a66d53f7cf4f285aa.js.LICENSE.txt} +2 -2
  54. package/assets/esri/core/workers/chunks/{037af6379f3e9278633b.js → 243dc74ec62891ba1ef7.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{f74b5659b6496a5c4c0c.js → 2e0af748eba93f3ea6cb.js} +1 -1
  56. package/assets/esri/core/workers/chunks/3596540ef49e5330ceb2.js +2 -0
  57. package/assets/esri/core/workers/chunks/{7b4523ab392966624d97.js.LICENSE.txt → 3596540ef49e5330ceb2.js.LICENSE.txt} +1 -7
  58. package/assets/esri/core/workers/chunks/{a22c88b0a525e602dce0.js → 3d0e09ef78dc2fd6957a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/4feb774f123da26e9f2a.js +1 -0
  60. package/assets/esri/core/workers/chunks/{ee1d104e2bcc5d808fa4.js → 5228fc7fcdf57f44781e.js} +1 -1
  61. package/assets/esri/core/workers/chunks/5371df31553626528c69.js +1 -0
  62. package/assets/esri/core/workers/chunks/54f4a1131f99468db076.js +1 -0
  63. package/assets/esri/core/workers/chunks/{49c968e91c3c48aaa110.js → 5583d18032ed8bc17c74.js} +1 -1
  64. package/assets/esri/core/workers/chunks/5e7f35bf1aab93cb1c52.js +1 -0
  65. package/assets/esri/core/workers/chunks/61c74a733718d667b071.js +1 -0
  66. package/assets/esri/core/workers/chunks/{69f7fe6c58e4931597f6.js → 631205dc4d73d49ec9ed.js} +1 -1
  67. package/assets/esri/core/workers/chunks/6e12900a9f4c3c9941ec.js +1 -0
  68. package/assets/esri/core/workers/chunks/7e8f78b96d43c224c7b6.js +1 -0
  69. package/assets/esri/core/workers/chunks/7ed9a9c33a08ebba5570.js +346 -0
  70. package/assets/esri/core/workers/chunks/8a87c181b85d0b86b9bb.js.LICENSE.txt +1 -1
  71. package/assets/esri/core/workers/chunks/90ae15ce22a49bd84876.js +2 -0
  72. package/assets/esri/core/workers/chunks/{ac9c6779771ec855da79.js.LICENSE.txt → 90ae15ce22a49bd84876.js.LICENSE.txt} +3 -3
  73. package/assets/esri/core/workers/chunks/{9aedd7874da7c63865d6.js → 93cc26e5636040fdc0b8.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{77c7b7c4426c2b1a5b42.js → 9fc35ec8185beba96715.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{4f627eb62caee760215a.js → a1f27c4f4b5ef3e359f7.js} +1 -1
  76. package/assets/esri/core/workers/chunks/a31658f544ac6e1801d6.js +1 -0
  77. package/assets/esri/core/workers/chunks/{3a205f87f100832ef9f5.js → a5e746e10239a3bfe237.js} +1 -1
  78. package/assets/esri/core/workers/chunks/a6bcae413e62cd879b46.js +1 -0
  79. package/assets/esri/core/workers/chunks/{59d4c41172e921922cac.js → a8b42d8c0b76c234c09f.js} +100 -62
  80. package/assets/esri/core/workers/chunks/{3a517393619af3639b83.js → ad9bcd9dae45cdf90cbb.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{e46c05ef7272c7f1f70c.js → b1035bf4a016b1199236.js} +1 -1
  82. package/assets/esri/core/workers/chunks/b4f38fe9cc948a39ad87.js +2 -0
  83. package/assets/esri/core/workers/chunks/{ce9de24cb96b56d20562.js.LICENSE.txt → b4f38fe9cc948a39ad87.js.LICENSE.txt} +1 -1
  84. package/assets/esri/core/workers/chunks/{752ef63d910852b7be44.js → c16e0da7a19310c71e8b.js} +1 -1
  85. package/assets/esri/core/workers/chunks/c28d4717ed588c0d8bf1.js +1 -0
  86. package/assets/esri/core/workers/chunks/d22f91bc16a7641bcbef.js +1 -0
  87. package/assets/esri/core/workers/chunks/d7b640f7a181bd26c7c7.js +1 -0
  88. package/assets/esri/core/workers/chunks/{2bdbf678d4f013543dbb.js → d971571a957de70d5a8d.js} +1 -1
  89. package/assets/esri/core/workers/chunks/dc3a6beb3028009b3c23.js +1 -0
  90. package/assets/esri/core/workers/chunks/e0dc8794343c2a949ffb.js +2 -0
  91. package/assets/esri/core/workers/chunks/{670a66617249f2d15a62.js.LICENSE.txt → e0dc8794343c2a949ffb.js.LICENSE.txt} +1 -1
  92. package/assets/esri/core/workers/chunks/e3c1aea34ece8336dae1.js +1 -0
  93. package/assets/esri/core/workers/chunks/e483d2f169e51a361742.js +1 -0
  94. package/assets/esri/core/workers/chunks/{a50cb1fc8c4c585c0e11.js → ec8e8048b3df2c92008d.js} +1 -1
  95. package/assets/esri/core/workers/chunks/f7ab3511f6627f467796.js +1 -0
  96. package/assets/esri/core/workers/chunks/{1eef9cf19634c038b59b.js → f98689562017583f73ee.js} +1 -1
  97. package/assets/esri/core/workers/chunks/fb2e28e6a87956267d1c.js +66 -0
  98. package/assets/esri/core/workers/chunks/fbcd94f60f92257a7303.js +2 -0
  99. package/assets/esri/core/workers/chunks/{c2594024d72133d3ed7b.js.LICENSE.txt → fbcd94f60f92257a7303.js.LICENSE.txt} +1 -1
  100. package/assets/esri/core/workers/chunks/fda48126f67e80034404.js +1 -0
  101. package/assets/esri/themes/base/widgets/_FeatureTable.scss +1 -0
  102. package/assets/esri/themes/dark/main.css +1 -1
  103. package/assets/esri/themes/light/main.css +1 -1
  104. package/assets/esri/themes/light/view.css +1 -1
  105. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_ar.json +1 -1
  106. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_bg.json +1 -1
  107. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_bs.json +1 -1
  108. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_ca.json +1 -1
  109. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_cs.json +1 -1
  110. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_da.json +1 -1
  111. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_de.json +1 -1
  112. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_el.json +1 -1
  113. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_es.json +1 -1
  114. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_et.json +1 -1
  115. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_fi.json +1 -1
  116. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_fr.json +1 -1
  117. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_he.json +1 -1
  118. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_hr.json +1 -1
  119. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_hu.json +1 -1
  120. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_id.json +1 -1
  121. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_it.json +1 -1
  122. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_ja.json +1 -1
  123. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_ko.json +1 -1
  124. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_lt.json +1 -1
  125. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_lv.json +1 -1
  126. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_nl.json +1 -1
  127. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_no.json +1 -1
  128. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_pl.json +1 -1
  129. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_pt-BR.json +1 -1
  130. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_pt-PT.json +1 -1
  131. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_ro.json +1 -1
  132. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_ru.json +1 -1
  133. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_sk.json +1 -1
  134. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_sl.json +1 -1
  135. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_sr.json +1 -1
  136. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_sv.json +1 -1
  137. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_th.json +1 -1
  138. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_tr.json +1 -1
  139. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_uk.json +1 -1
  140. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_vi.json +1 -1
  141. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_zh-CN.json +1 -1
  142. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_zh-HK.json +1 -1
  143. package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_zh-TW.json +1 -1
  144. package/chunks/HUDMaterial.glsl.js +1 -1
  145. package/chunks/Laserlines.glsl.js +2 -2
  146. package/chunks/aiServices.js +1 -1
  147. package/chunks/boundedPlane.js +1 -1
  148. package/chunks/cameraUtilsSpherical.js +1 -1
  149. package/chunks/vec32.js +1 -1
  150. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  151. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  152. package/core/mapCollectionUtils.js +1 -1
  153. package/core/perspectiveUtils.js +1 -1
  154. package/geometry/support/axisAngleDegrees.js +1 -1
  155. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  156. package/geometry/support/curves/circleUtils.js +1 -1
  157. package/geometry/support/curves/curveExtent.js +5 -0
  158. package/geometry/support/curves/curveLength.js +5 -0
  159. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  160. package/geometry/support/curves/ellipticArc4Utils.js +1 -1
  161. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  162. package/geometry/support/curves/mathUtils.js +1 -1
  163. package/geometry/support/curves/splitCurveAtPoint.js +1 -1
  164. package/geometry/support/frustum.js +1 -1
  165. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  166. package/geometry/support/meshUtils/primitives.js +1 -1
  167. package/geometry/support/meshUtils/projection.js +1 -1
  168. package/geometry/support/meshUtils/rotate.js +1 -1
  169. package/geometry/support/meshUtils/scale.js +1 -1
  170. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  171. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  172. package/geometry/support/plane.js +1 -1
  173. package/interfaces.d.ts +61 -3
  174. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  175. package/layers/LinkChartLayer.js +1 -1
  176. package/layers/VoxelWasmPerSceneView.js +1 -1
  177. package/layers/graphics/sources/MemorySource.js +1 -1
  178. package/layers/video/VideoCameraSensorModel.js +1 -1
  179. package/layers/voxel/VoxelVolume.js +1 -1
  180. package/layers/voxel/voxelPlaneUtils.js +1 -1
  181. package/package.json +1 -1
  182. package/support/revision.js +1 -1
  183. package/symbols/cim/cimAnalyzer.js +1 -1
  184. package/views/2d/engine/webgl/AFeatureTile.js +1 -1
  185. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  186. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
  187. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  188. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  189. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  190. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  191. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  192. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  193. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  194. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  195. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  196. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  197. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  198. package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
  199. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  200. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  201. package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
  202. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  203. package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
  204. package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
  205. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  206. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  207. package/views/3d/camera/constraintUtils/distance.js +1 -1
  208. package/views/3d/camera/intersectionUtils.js +1 -1
  209. package/views/3d/interactive/Manipulator3D.js +1 -1
  210. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  211. package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
  212. package/views/3d/interactive/visualElements/DrapedVisualElementResources.js +1 -1
  213. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  214. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  215. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  216. package/views/3d/layers/I3SMeshView3D.js +1 -1
  217. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  218. package/views/3d/layers/PointCloudWorker.js +1 -1
  219. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  220. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  221. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  222. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  223. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  224. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  225. package/views/3d/layers/graphics/Labeler.js +1 -1
  226. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  227. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  228. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  229. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  230. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  231. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  232. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  233. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  234. package/views/3d/layers/i3s/Intersector.js +1 -1
  235. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  236. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  237. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  238. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  239. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  240. package/views/3d/state/Frustum.js +1 -1
  241. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  242. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  243. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  244. package/views/3d/state/controllers/PointToPointAnimationController.js +1 -1
  245. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  246. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  247. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  248. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  249. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  250. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  251. package/views/3d/support/hitTest.js +1 -1
  252. package/views/3d/support/orientedBoundingBox.js +1 -1
  253. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  254. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  255. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  256. package/views/3d/support/viewpointUtils.js +1 -1
  257. package/views/3d/terrain/Intersector.js +1 -1
  258. package/views/3d/terrain/OverlayManager.js +1 -1
  259. package/views/3d/terrain/TerrainRenderer.js +1 -1
  260. package/views/3d/terrain/TerrainSurface.js +1 -1
  261. package/views/3d/webgl/ManagedDepthTexture.js +1 -1
  262. package/views/3d/webgl/RenderCamera.js +1 -1
  263. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  264. package/views/3d/webgl-engine/collections/Component/ElevationAgnosticBVH.js +1 -1
  265. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  266. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  267. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  268. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  269. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  270. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  271. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  272. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  273. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  274. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  275. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  276. package/views/3d/webgl-engine/lib/HUDIntersectorResult.js +5 -0
  277. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  278. package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
  279. package/views/3d/webgl-engine/lib/IntersectorResult.js +5 -0
  280. package/views/3d/webgl-engine/lib/IntersectorTarget.js +1 -1
  281. package/views/3d/webgl-engine/lib/IntersectorType.js +5 -0
  282. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  283. package/views/3d/webgl-engine/lib/Material.js +1 -1
  284. package/views/3d/webgl-engine/lib/Normals.js +1 -1
  285. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  286. package/views/3d/webgl-engine/lib/ObjectIntersectorResult.js +5 -0
  287. package/views/3d/webgl-engine/lib/ObjectTarget.js +5 -0
  288. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  289. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  290. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  291. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  292. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  293. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  294. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  295. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  296. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  297. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  298. package/views/3d/webgl-engine/lib/lodRendering/Intersector.js +1 -1
  299. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  300. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  301. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  302. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  303. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  304. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  305. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  306. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  307. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  308. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  309. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  310. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  311. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  312. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  313. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  314. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  315. package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
  316. package/views/FocusArea.js +1 -1
  317. package/views/FocusAreaOutline.js +5 -0
  318. package/views/FocusAreaOutlineItem.js +5 -0
  319. package/views/FocusAreas.js +1 -1
  320. package/views/FocusAreasUtils.js +5 -0
  321. package/views/FocusAreasView.js +5 -0
  322. package/views/SceneView.js +1 -1
  323. package/views/analysis/DimensionAnalysisView.js +1 -1
  324. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  325. package/views/interactive/ToolIntersector.js +1 -1
  326. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  327. package/views/interactive/sketch/constraints.js +1 -1
  328. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  329. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  330. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  331. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  332. package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
  333. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  334. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  335. package/views/layers/DimensionLayerView.js +1 -1
  336. package/views/support/angularMeasurementUtils.js +1 -1
  337. package/views/support/geometry3dUtils.js +1 -1
  338. package/widgets/BasemapLayerList.js +1 -1
  339. package/widgets/BatchAttributeForm.js +1 -1
  340. package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
  341. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  342. package/widgets/FeatureForm.js +1 -1
  343. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  344. package/widgets/FeatureTable.js +1 -1
  345. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  346. package/widgets/UtilityNetworkTrace.js +1 -1
  347. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  348. package/widgets/VideoPlayer/components/MetadataSection.js +1 -1
  349. package/widgets/VideoPlayer/components/SettingsButton.js +1 -1
  350. package/widgets/support/FilterBuilder.js +1 -1
  351. package/widgets/support/SketchTooltipControls.js +1 -1
  352. package/widgets/support/SnappingControls.js +1 -1
  353. package/assets/esri/core/workers/chunks/094300acbd24085cb063.js +0 -1
  354. package/assets/esri/core/workers/chunks/0c338364cb55afdbd580.js +0 -1
  355. package/assets/esri/core/workers/chunks/2da01fe20200b6d74851.js +0 -1
  356. package/assets/esri/core/workers/chunks/35c996f6fbff165b03f4.js +0 -1
  357. package/assets/esri/core/workers/chunks/45d64b72b7e93e9c64d7.js +0 -1
  358. package/assets/esri/core/workers/chunks/543eb46b55cacd6e1dbc.js +0 -2
  359. package/assets/esri/core/workers/chunks/5e0118a030cf741f78c6.js +0 -319
  360. package/assets/esri/core/workers/chunks/670a66617249f2d15a62.js +0 -2
  361. package/assets/esri/core/workers/chunks/6b5274d46a155d65dff1.js +0 -39
  362. package/assets/esri/core/workers/chunks/74187c771ee7083d1db7.js +0 -1
  363. package/assets/esri/core/workers/chunks/7b4523ab392966624d97.js +0 -2
  364. package/assets/esri/core/workers/chunks/7c2ec96749972e0b8a13.js +0 -1
  365. package/assets/esri/core/workers/chunks/7ffc1db10b00754398e8.js +0 -1
  366. package/assets/esri/core/workers/chunks/81546c6141d564ed59c9.js +0 -1
  367. package/assets/esri/core/workers/chunks/852dd5af8e704613310a.js +0 -1
  368. package/assets/esri/core/workers/chunks/ac9c6779771ec855da79.js +0 -2
  369. package/assets/esri/core/workers/chunks/bbff052a991a2dc36960.js +0 -1
  370. package/assets/esri/core/workers/chunks/bcab8b9ce2f9d2ebaae7.js +0 -1
  371. package/assets/esri/core/workers/chunks/bf190d672dcbaedc1a41.js +0 -1
  372. package/assets/esri/core/workers/chunks/c255c9279815359fdce5.js +0 -1
  373. package/assets/esri/core/workers/chunks/c2594024d72133d3ed7b.js +0 -2
  374. package/assets/esri/core/workers/chunks/ce9de24cb96b56d20562.js +0 -2
  375. package/assets/esri/core/workers/chunks/d8dc922f7466300b668f.js +0 -2
  376. package/assets/esri/core/workers/chunks/d9948763423784b68c09.js +0 -1
  377. package/assets/esri/core/workers/chunks/dbf6011dd7933f02d41d.js +0 -66
  378. package/assets/esri/core/workers/chunks/e4e9dd635bdef18d0bd5.js +0 -1
  379. package/assets/esri/core/workers/chunks/e69f2e3c2d5e71fbb42f.js +0 -1
  380. package/assets/esri/core/workers/chunks/f61632c06c05b72e7017.js +0 -1
@@ -0,0 +1,2 @@
1
+ /*! For license information please see b4f38fe9cc948a39ad87.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224],{87843:(e,t,n)=>{n.r(t),n.d(t,{Label:()=>r});var l=n(34088),a=n(46337),i=n(53375),s=n(93174),c=n(33826);const o=c.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,i.lh)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(s.l))}willUpdate(e){e.has("for")&&(0,s.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(s.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",r)},93174:(e,t,n)=>{n.d(t,{a:()=>k,b:()=>s,c:()=>m,d:()=>f,g:()=>g,l:()=>i});var l=n(79e3);const a="calciteInternalLabelClick",i="calciteInternalLabelConnected",s="calciteInternalLabelDisconnected",c="calcite-label",o=new WeakMap,r=new WeakMap,d=new WeakMap,b=new WeakMap,h=new Set,u=e=>{const{id:t}=e,n=t&&(0,l.q)(e,{selector:`${c}[for="${t}"]`});if(n)return n;const a=(0,l.l)(e,c);return!a||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a);return n.filter((n=>n!==t&&n!==e)).filter((e=>e.tagName?.includes("-"))).length>0}(a,e)?null:a};function m(e){if(!e)return;const t=u(e.el);if(r.has(t)&&t===e.labelEl||!t&&h.has(e))return;const n=y.bind(e);if(t){e.labelEl=t;const l=o.get(t)||[];l.push(e),o.set(t,l.sort(p)),r.has(e.labelEl)||(r.set(e.labelEl,v),e.labelEl.addEventListener(a,v)),h.delete(e),document.removeEventListener(i,d.get(e)),b.set(e,n),document.addEventListener(s,n)}else h.has(e)||(n(),document.removeEventListener(s,b.get(e)))}function f(e){if(!e)return;if(h.delete(e),document.removeEventListener(i,d.get(e)),document.removeEventListener(s,b.get(e)),d.delete(e),b.delete(e),!e.labelEl)return;const t=o.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,r.get(e.labelEl)),r.delete(e.labelEl)),o.set(e.labelEl,t.filter((t=>t!==e)).sort(p)),e.labelEl=null}function p(e,t){return(0,l.m)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function v(e){const t=e.detail.sourceEvent.target,n=o.get(this),l=n.find((e=>e.el===t));if(n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function E(){h.has(this)&&m(this)}function y(){h.add(this);const e=d.get(this)||E.bind(this);d.set(this,e),document.addEventListener(i,e)}async function k(e){if(await e.componentOnReady(),o.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame((()=>{for(const e of h)if(e.el===t){m(e);break}}))}}}]);
@@ -1,3 +1,3 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.2.0-next.33 */
3
+ v3.2.0-next.51 */
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1389],{4146:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(90237),n=i(78888),s=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),c=i(74887),p=i(84952),d=i(10107),h=(i(44208),i(87811),i(40608)),y=i(5443),m=i(16930),f=i(92602),g=i(64272);let v=0,b=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",n=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r._)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:g.T})],b.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r._)([(0,h.$)("esri.layers.Layer")],b)},8303:(e,t,i)=>{i.d(t,{A:()=>_});var r=i(90237),n=i(92602),s=i(70333),o=i(78888),l=i(60999),a=i(49186),u=i(53966),c=i(97768),p=i(74887),d=i(84952),h=i(10107),y=(i(44208),i(87811),i(36005)),m=i(40608),f=i(43937),g=i(77548),v=i(20655),b=i(80812),M=i(41318),S=i(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new b.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(n)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new b.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,S.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(r))return n.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,h.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},16183:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$e});var r=i(90237),n=i(13874),s=i(5503),o=i(49186),l=i(53966),a=i(92071),u=i(74887),c=i(10107),p=i(56507),d=(i(44208),i(87811),i(36005)),h=i(40608),y=i(38954),m=i(51850),f=i(5443),g=i(4146),v=i(52136),b=i(18768),M=i(69208),S=i(16131),_=i(8303),w=i(25036),x=i(58947),A=i(60694),Z=i(10873),j=i(20437),I=i(95466),T=i(96184),N=i(69540),V=i(69052),F=i(25482),R=i(87024),z=i(67026),P=i(82534),O=i(34304);const E=(0,m.vt)(),U=(0,P.vt)(),L=(0,P.vt)(),D=(0,P.vt)(),q=(0,m.fA)(0,0,1),$=(0,m.fA)(0,1,0),C=(0,m.fA)(1,0,0);function B(e){(0,y.c)(E,e),(0,y.n)(E,E);const t=Math.atan2(E[1],E[0]),i=(0,z.x8)((0,P.vt)(),q,-t);(0,y.w)(E,E,i);const r=-1*Math.atan2(E[2],E[0]);return[(0,O.ct)(t)+270,(0,O.ct)(r)+90]}function k(e,t){return(0,z.x8)(L,q,(0,O.DF)(e-270)),(0,z.x8)(D,$,(0,O.DF)(t-90)),(0,z.lw)(U,L,D),(0,y.c)(E,C),(0,y.w)(E,E,U),(0,y.n)(E,E),[E[0],E[1],E[2]]}var H=i(79901);let G=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"point",void 0),G=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSlice")],G);var J=i(97159);let K=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],K.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{origins:{service:{read:J.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,R.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],K.prototype,"href",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],K.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"point",void 0),(0,r._)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"sizeInPixel",void 0),(0,r._)([(0,c.MZ)({type:[G],json:{write:!0}})],K.prototype,"slices",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],K.prototype,"timeId",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"variableId",void 0),K=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSection")],K);let W=class extends F.A{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSimpleShading")],W);let Y=class extends F.A{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r._)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],Y.prototype,"continuity",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"hasNoData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"noData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"offset",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"type",void 0),Y=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelFormat")],Y);const Q=Y;let X=class extends F.A{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:!0}})],X.prototype,"originalFormat",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"renderingFormat",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],X.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],X.prototype,"type",void 0),X=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariable")],X);const ee=X;var te=i(4718),ie=i(68197);let re=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],re.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],re.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],re.prototype,"colorLocked",void 0),re=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIsosurface")],re);var ne=i(62885),se=i(34727);let oe=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"position",void 0),oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelColorStop")],oe);const le=oe;let ae=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,r._)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ae.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelOpacityStop")],ae);const ue=ae;let ce=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],ce.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ce.prototype,"range",void 0),ce=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRangeFilter")],ce);const pe=ce;var de,he;(he=de||(de={}))[he.Color=1]="Color",he[he.Alpha=2]="Alpha",he[he.Both=3]="Both";let ye=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.A.ofType(le)),this.opacityStops=new(s.A.ofType(ue))}set colorStops(e){this._set("colorStops",(0,ne.V)(e,this._get("colorStops"),s.A.ofType(le)))}set opacityStops(e){this._set("opacityStops",(0,ne.V)(e,this._get("opacityStops"),s.A.ofType(ue)))}getPreviousNext(e,t,i){let r=e;for(;--r>0&&t[r].type!==i&&t[r].type!==de.Both;);let n=e;const s=t.length;for(;++n<s&&t[n].type!==i&&t[n].type!==de.Both;);return[r,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:de.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.qE)(e.position,0,1),r=Math.round(255*(0,se.qE)(1-e.opacity,0,1));let n=!1;for(const e of i)if(e.type===de.Color&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=de.Both,n=!0;break}n||i.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:de.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const r=i[t];if(r.type!==de.Both)if(r.type===de.Color){const[n,s]=this.getPreviousNext(t,i,de.Alpha);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position);r.color.a=Math.round((0,se.Cc)(i[n].color.a,i[s].color.a,e))}else r.color.a=-1!==n?i[n].color.a:i[s].color.a}else{const[n,s]=this.getPreviousNext(t,i,de.Color);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position),t=i[n].color,o=i[s].color;fe.forEach((i=>{r.color[i]=Math.round((0,se.Cc)(t[i],o[i],e))}))}else-1!==n?fe.forEach((e=>{r.color[e]=i[n].color[e]})):fe.forEach((e=>{r.color[e]=i[s].color[e]}))}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,n=1;for(let i=0;i<this._colorMapSize;++i){const s=i/this._colorMapSize;for(;s>t[n].position;)r=n++;const o=(s-t[r].position)/(t[n].position-t[r].position),l=t[r].color,a=t[n].color,u=new ie.A;fe.forEach((e=>{u[e]=Math.round((0,se.Cc)(l[e],a[e],o))})),u.a=(0,se.qE)(1-(0,se.Cc)(l.a,a.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let r=this.stretchRange[0],n=this.stretchRange[1];if(r>n){const e=r;r=n,n=e}e=(0,se.qE)(e,r,n);const s=i[Math.round((e-r)/(n-r)*(this._colorMapSize-1))].clone();return t||(s.a=1),s}};(0,r._)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(ue),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,r._)([(0,c.MZ)({type:pe,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,r._)([(0,c.MZ)({type:[ie.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const me=ye,fe=["r","g","b"];let ge=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var ve;(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ge.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ge.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"label",void 0),ge=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelUniqueValue")],ge);let be=ve=class extends F.A{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.A.ofType(ge)),this.isosurfaces=new(s.A.ofType(re))}clone(){return new ve({variableId:this.variableId,label:this.label,transferFunction:(0,te.o8)(this.transferFunction),uniqueValues:(0,te.o8)(this.uniqueValues),isosurfaces:(0,te.o8)(this.isosurfaces)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"variableId",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],be.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],be.prototype,"transferFunction",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ge),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],be.prototype,"uniqueValues",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(re),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],be.prototype,"isosurfaces",void 0),be=ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariableStyle")],be);var Me=i(88930),Se=i(86738),_e=i(16930),we=i(21325);function xe(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-|\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,i,r,n,s,o,l,a,u,c,p,d,h]=t;let y="seconds";const m=i.charAt(0).toLowerCase();"d"===m?y="days":"h"===m?y="hours":"m"===m&&(y="minutes");const f=parseInt(r,10);if(Number.isNaN(f))return{didParse:!1};const g=parseInt(n,10);if(Number.isNaN(g)||g<1||g>12)return{didParse:!1};const v=parseInt(s,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===g){const e=f%4==0&&(f%100!=0||f%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===g||6===g||9===g||11===g)&&v>30)return{didParse:!1};const b=parseInt(o,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const M=parseInt(l,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};const S=parseInt(a,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let _=1,w=0,x=0;if(p&&(_="-"===p?-1:1),d){if(w=parseInt(d,10),Number.isNaN(w)||w<0)return{didParse:!1};if(0!==w){const e=_*w;if(e<-12||e>14)return{didParse:!1}}}if(h&&(x=parseInt(h,10),Number.isNaN(x)||x<0||x>59))return{didParse:!1};const A=`${f}`.padStart(4,"0"),Z=`${g}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),I=`${b}`.padStart(2,"0"),T=`${M}`.padStart(2,"0"),N=`${S}`.padStart(2,"0");let V="Z";return 0===w&&0===x||(V=_>0?"+":"-",V+=`${w}`.padStart(2,"0"),V+=":",V+=`${x}`.padStart(2,"0")),{didParse:!0,unit:y,reference:new Date(`${A}-${Z}-${j}T${I}:${T}:${N}.000${V}`)}}let Ae=class extends F.A{constructor(){super(...arguments),this.values=null}};(0,r._)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ae.prototype,"values",void 0),Ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIrregularSpacing")],Ae);const Ze=Ae;let je=class extends F.A{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"offset",void 0),je=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRegularSpacing")],je);const Ie=je;let Te=class extends F.A{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r._)([(0,c.MZ)({type:Ze,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,r._)([(0,c.MZ)({type:Ie,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDimension")],Te);const Ne=Te;let Ve=class extends F.A{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=_e.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return i.isRegular&&!i.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(r[1]-r[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=xe(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],i=xe(e.unit);if(i.didParse)if(e.isRegular){const r=e.regularSpacing?.offset??0,n=e.regularSpacing?.scale||1;for(let s=0;s<e.size;++s){const e=r+n*s;t.push((0,Me.mi)(i.reference,e,i.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let r=0;r<e.irregularSpacing.values.length;++r){const n=e.irregularSpacing.values[r];t.push((0,Me.mi)(i.reference,n,i.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,we.aI)(this.spatialReference,e.spatialReference))return l.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.fA)(e.x,e.y,e.z??0);(0,y.d)(t,t,this.originInLayerSpace3D),(0,y.E)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const r=e.z??0,n=i.irregularSpacing.values,s=i.isPositiveUp?1:-1,o=n.reduce(((e,t)=>Math.abs(s*t-r)<Math.abs(s*e-r)?t:e));for(let e=0;e<n.length;++e)if(n[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.ci)(e);if((0,y.D)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.f)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new Se.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Fe;(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:[Ne],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"dimensions",void 0),(0,r._)([(0,c.MZ)({type:_e.A,json:{read:{enabled:!1}}})],Ve.prototype,"spatialReference",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1}})],Ve.prototype,"zDimension",null),(0,r._)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ve.prototype,"isValid",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"originInLayerSpace3D",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r._)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ve.prototype,"volumeType",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"sizeInVoxels",null),(0,r._)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ve.prototype,"timeStops",null),Ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolume")],Ve);let Re=Fe=class extends F.A{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"apronWidth",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"brickSize",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"maxLodLevel",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"nodeSize",void 0),Re=Fe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeIndex")],Re);const ze=Re;let Pe=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var Oe;(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Pe.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"point",void 0),Pe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDynamicSection")],Pe);let Ee=Oe=class extends F.A{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.A.ofType(G)),this.dynamicSections=new(s.A.ofType(Pe))}set slices(e){this._set("slices",(0,ne.V)(e,this._get("slices"),s.A.ofType(G)))}set dynamicSections(e){this._set("dynamicSections",(0,ne.V)(e,this._get("dynamicSections"),s.A.ofType(Pe)))}clone(){return new Oe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.o8)(this.slices),dynamicSections:(0,te.o8)(this.dynamicSections)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Ee.prototype,"verticalExaggeration",void 0),(0,r._)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ee.prototype,"exaggerationMode",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Ee.prototype,"verticalOffset",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(G),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ee.prototype,"slices",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(Pe),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ee.prototype,"dynamicSections",null),Ee=Oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeStyle")],Ee);var Ue=i(30291),Le=i(64272),De=i(26253);let qe=class extends((0,x.w6)((0,b.b)((0,S.q)((0,_.A)((0,w.j)((0,a.P)((0,M.d)((0,v.p)(g.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new W,this.opacity=1,this.variables=new s.A,this.volumes=new s.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(s.A.ofType(Ee)),this.variableStyles=new(s.A.ofType(be)),this.sections=new(s.A.ofType(K))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,A.Jf)(e,l.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new o.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const r=f.A.fromJSON(e,i);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Ve.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}r.zmin=e,r.zmax=i}}}return r}return null}get fields(){const e=[new j.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new j.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const i=new j.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(i)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new j.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const i=new j.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new j.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new I.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,Ue.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.at(i)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.at(i)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const i=new Le.T({start:t[0],end:t.at(-1)});return new T.A({fullTimeExtent:i,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const r=this.getVariable(e);if(null==r||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const s=this.variableStyles.at(n);return s?.transferFunction?s.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new K({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if(null!=i){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),l.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||(l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else l.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if(null!=i){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else l.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const r=(0,m.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r._)([(0,c.MZ)({type:["Voxel"]})],qe.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.MZ)(Z.fV)],qe.prototype,"legendEnabled",void 0),(0,r._)([(0,c.MZ)({json:{write:!0}})],qe.prototype,"title",void 0),(0,r._)([(0,c.MZ)(Z.OZ)],qe.prototype,"url",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(K),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],qe.prototype,"sections",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],qe.prototype,"currentVariableId",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ee),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],qe.prototype,"volumeStyles",void 0),(0,r._)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],qe.prototype,"renderMode",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(be),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],qe.prototype,"variableStyles",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],qe.prototype,"enableSlices",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],qe.prototype,"enableSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],qe.prototype,"enableDynamicSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],qe.prototype,"enableIsosurfaces",void 0),(0,r._)([(0,c.MZ)({type:W,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],qe.prototype,"shading",void 0),(0,r._)([(0,c.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],qe.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ee)})],qe.prototype,"variables",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ve)})],qe.prototype,"volumes",void 0),(0,r._)([(0,c.MZ)({type:ze})],qe.prototype,"index",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"minScale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"maxScale",void 0),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],qe.prototype,"version",void 0),(0,r._)([(0,d.w)("service","version")],qe.prototype,"readVersion",null),(0,r._)([(0,c.MZ)({type:f.A})],qe.prototype,"fullExtent",void 0),(0,r._)([(0,d.w)("service","fullExtent",["fullExtent"])],qe.prototype,"readFullExtent",null),(0,r._)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],qe.prototype,"fields",null),(0,r._)([(0,c.MZ)({readOnly:!0})],qe.prototype,"fieldsIndex",null),(0,r._)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,i){t[i]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],qe.prototype,"popupEnabled",void 0),(0,r._)([(0,c.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],qe.prototype,"popupTemplate",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],qe.prototype,"defaultPopupTemplate",null),(0,r._)([(0,c.MZ)({type:T.A,readOnly:!0,json:{read:!1}})],qe.prototype,"timeInfo",null),(0,r._)([(0,c.MZ)({type:Le.T,json:{read:!1}})],qe.prototype,"timeExtent",void 0),(0,r._)([(0,c.MZ)({type:De.T,json:{read:!1}})],qe.prototype,"timeOffset",void 0),(0,r._)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],qe.prototype,"useViewTime",void 0),qe=(0,r._)([(0,h.$)("esri.layers.VoxelLayer")],qe);const $e=qe},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(90237),n=i(53966),s=i(10107),o=(i(44208),i(87811),i(40608)),l=i(60694);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,n.A.getLogger(this)))}};return(0,r._)([(0,s.MZ)()],t.prototype,"title",null),(0,r._)([(0,s.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},25036:(e,t,i)=>{i.d(t,{j:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,r._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},26253:(e,t,i)=>{i.d(t,{T:()=>p});var r=i(90237),n=i(69540),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),u=i(40608),c=i(73133);let p=class extends(n.A.ClonableMixin(s.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r._)([(0,u.$)("esri.time.TimeInterval")],p)},29242:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,i,r,n,s,o,l,a){return[e,t,i,r,n,s,o,l,a]}i.d(t,{fA:()=>n,vt:()=>r,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},30291:(e,t,i)=>{i.d(t,{tn:()=>u});var r=i(13874),n=i(30524),s=i(89893),o=(i(84424),i(80737),i(96808),i(66159)),l=(i(67336),i(92094),i(23721),i(47582),i(41227)),a=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},h){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||y,sortDisabled:t?.sortDisabled}).map((t=>new l.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),g=[new o.A,new s.A];return new r.A({title:f,content:g,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const y=["geometry","blob","raster","guid","xml"]},38954:(e,t,i)=>{i.d(t,{A:()=>m,B:()=>y,C:()=>h,D:()=>c,E:()=>p,F:()=>E,H:()=>L,a:()=>z,b:()=>g,c:()=>o,d:()=>u,e:()=>x,f:()=>a,g:()=>f,h:()=>A,i:()=>l,j:()=>v,k:()=>M,l:()=>s,m:()=>Z,n:()=>w,o:()=>R,p:()=>F,q:()=>I,s:()=>b,t:()=>j,u:()=>_,v:()=>S,w:()=>T,x:()=>d,y:()=>U,z:()=>D});var r=i(51850),n=i(34304);function s(e){const t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function p(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function m(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function v(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(i*i+r*r+n*n)}function b(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return i*i+r*r+n*n}function M(e){const t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],r=t[1],n=t[2];let s=i*i+r*r+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2];return e[0]=n*a-s*l,e[1]=s*o-r*a,e[2]=r*l-n*o,e}function Z(e,t,i,r){const n=t[0],s=t[1],o=t[2];return e[0]=n+r*(i[0]-n),e[1]=s+r*(i[1]-s),e[2]=o+r*(i[2]-o),e}function j(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=i[0]*r+i[4]*n+i[8]*s+i[12],e[1]=i[1]*r+i[5]*n+i[9]*s+i[13],e[2]=i[2]*r+i[6]*n+i[10]*s+i[14],e}function I(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=r*i[0]+n*i[3]+s*i[6],e[1]=r*i[1]+n*i[4]+s*i[7],e[2]=r*i[2]+n*i[5]+s*i[8],e}function T(e,t,i){const r=i[0],n=i[1],s=i[2],o=i[3],l=t[0],a=t[1],u=t[2],c=n*u-s*a,p=s*l-r*u,d=r*a-n*l,h=n*d-s*p,y=s*c-r*d,m=r*p-n*c,f=2*o;return e[0]=l+c*f+2*h,e[1]=a+p*f+2*y,e[2]=u+d*f+2*m,e}const N=(0,r.vt)(),V=(0,r.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t,i){const r=i[0]-t[0],n=i[1]-t[1],s=i[2]-t[2];let o=r*r+n*n+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,P=c,O=p,E=v,U=b,L=s,D=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){w(N,e),w(V,t);const i=x(N,V);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,r,n,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,p=3*a*o,d=a*s;return e[0]=t[0]*u+i[0]*c+r[0]*p+n[0]*d,e[1]=t[1]*u+i[1]*c+r[1]*p+n[1]*d,e[2]=t[2]*u+i[2]*c+r[2]*p+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:A,crossAndNormalize:function(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2],u=n*a-s*l,c=s*o-r*a,p=r*l-n*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:R,dist:E,distance:v,div:O,divide:p,dot:x,equals:function(e,t){if(e===t)return!0;const i=e[0],r=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,n.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))},exactEquals:F,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,r,n,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+i[0]*a+r[0]*u+n[0]*c,e[1]=t[1]*l+i[1]*a+r[1]*u+n[1]*c,e[2]=t[2]*l+i[2]*a+r[2]*u+n[2]*c,e},inverse:_,len:L,length:s,lerp:Z,max:m,min:y,mul:P,multiply:c,negate:S,normalize:w,random:function(e,t=1){const i=n.Ov,r=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0],s[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),s[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),s[1]=n[1],s[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),s[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),s[2]=n[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:g,set:l,sign:h,sqrDist:U,sqrLen:D,squaredDistance:b,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:I,transformMat4:j,transformQuat:T},Symbol.toStringTag,{value:"Module"}))},52136:(e,t,i)=>{i.d(t,{p:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,n.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],t),t}},54239:(e,t,i)=>{i.d(t,{A:()=>g});var r,n=i(90237),s=i(4576),o=i(66552),l=i(25482),a=i(83047),u=i(67076),c=i(10107),p=(i(44208),i(53966),i(36005)),d=i(40608),h=i(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.Xy)(m,"orthometric");const f=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=r=class extends l.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=r=(0,n._)([(0,d.$)("esri.geometry.HeightModelInfo")],g)},62885:(e,t,i)=>{i.d(t,{H:()=>s,V:()=>n});var r=i(5503);function n(e,t,i=r.A){return t||(t=new i),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},64272:(e,t,i)=>{i.d(t,{T:()=>d});var r,n=i(90237),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),c=i(43937),p=i(98623);let d=class extends s.A{static{r=this}static get allTime(){return h}static get empty(){return y}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,e,t));let n=this.end;if(n){const i=(0,o.lL)(n,e,t);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=i?o=n:t>=n&&t<=s&&(o=t),i>=n&&i<=s?l=i:s>=t&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,i=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,i)),null!=l&&(n.end=(0,o.S1)(l,e,t,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.K)("start")],d.prototype,"writeStart",null),d=r=(0,n._)([(0,u.$)("esri.time.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0})},67026:(e,t,i)=>{i.d(t,{A6:()=>m,Xd:()=>c,Xr:()=>h,hZ:()=>g,lw:()=>p,t2:()=>I,x8:()=>u});var r=i(29242),n=i(82534),s=i(51850),o=i(34304),l=i(38954),a=i(87317);function u(e,t,i){i*=.5;const r=Math.sin(i);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i),e}function c(e,t){const i=2*Math.acos(t[3]),r=Math.sin(i/2);return r>(0,o.FD)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),i}function p(e,t,i){const r=t[0],n=t[1],s=t[2],o=t[3],l=i[0],a=i[1],u=i[2],c=i[3];return e[0]=r*c+o*l+n*u-s*a,e[1]=n*c+o*a+s*l-r*u,e[2]=s*c+o*u+r*a-n*l,e[3]=o*c-r*l-n*a-s*u,e}function d(e,t,i,r){const n=t[0],s=t[1],l=t[2],a=t[3];let u,c,p,d,h,y=i[0],m=i[1],f=i[2],g=i[3];return c=n*y+s*m+l*f+a*g,c<0&&(c=-c,y=-y,m=-m,f=-f,g=-g),1-c>(0,o.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,h=Math.sin(r*u)/p):(d=1-r,h=r),e[0]=d*n+h*y,e[1]=d*s+h*m,e[2]=d*l+h*f,e[3]=d*a+h*g,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let r;if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const n=(i+1)%3,s=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*n+n]-t[3*s+s]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*n+s]-t[3*s+n])*r,e[n]=(t[3*n+i]+t[3*i+n])*r,e[s]=(t[3*s+i]+t[3*i+s])*r}return e}function m(e,t,i,r){const n=.5*Math.PI/180;t*=n,i*=n,r*=n;const s=Math.sin(t),o=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(r),c=Math.cos(r);return e[0]=s*a*c-o*l*u,e[1]=o*l*c+s*a*u,e[2]=o*a*u-s*l*c,e[3]=o*a*c+s*l*u,e}const f=a.c,g=a.s,v=a.g,b=p,M=a.b,S=a.h,_=a.l,w=a.j,x=w,A=a.f,Z=A,j=a.n,I=a.a,T=a.e,N=(0,s.vt)(),V=(0,s.fA)(1,0,0),F=(0,s.fA)(0,1,0),R=(0,n.vt)(),z=(0,n.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const i=t[0],r=t[1],n=t[2];return e[0]=i,e[1]=r,e[2]=n,e[3]=Math.sqrt(Math.abs(1-i*i-r*r-n*n)),e},conjugate:h,copy:f,dot:S,equals:T,exactEquals:I,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],r=t[1],n=t[2],s=t[3],o=i*i+r*r+n*n+s*s,l=o?1/o:0;return e[0]=-i*l,e[1]=-r*l,e[2]=-n*l,e[3]=s*l,e},len:x,length:w,lerp:_,mul:b,multiply:p,normalize:j,random:function(e){const t=o.Ov,i=t(),r=t(),n=t(),s=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=s*Math.sin(2*Math.PI*r),e[1]=s*Math.cos(2*Math.PI*r),e[2]=l*Math.sin(2*Math.PI*n),e[3]=l*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+o*l,e[1]=n*a+s*l,e[2]=s*a-n*l,e[3]=o*a-r*l,e},rotateY:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a-s*l,e[1]=n*a+o*l,e[2]=s*a+r*l,e[3]=o*a-n*l,e},rotateZ:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+n*l,e[1]=n*a-r*l,e[2]=s*a+o*l,e[3]=o*a-s*l,e},rotationTo:function(e,t,i){const r=(0,l.e)(t,i);return r<-.999999?((0,l.h)(N,V,t),(0,l.H)(N)<1e-6&&(0,l.h)(N,F,t),(0,l.n)(N,N),u(e,N,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.h)(N,t,i),e[0]=N[0],e[1]=N[1],e[2]=N[2],e[3]=1+r,j(e,e))},scale:M,set:g,setAxes:function(e,t,i,r){const n=P;return n[0]=i[0],n[3]=i[1],n[6]=i[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],j(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,i,r,n,s){return d(R,t,n,s),d(z,i,r,s),d(e,R,z,2*s*(1-s)),e},sqrLen:Z,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},68197:(e,t,i)=>{i.d(t,{A:()=>p});var r,n,s=i(40876),o=i(34727),l=i(56507);function a(e){return(0,o.qE)((0,l.Vr)(e),0,255)}function u(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class c{static blendColors(e,t,i,r=new c){return r.r=Math.round(e.r+(t.r-e.r)*i),r.g=Math.round(e.g+(t.g-e.g)*i),r.b=Math.round(e.b+(t.b-e.b)*i),r.a=e.a+(t.a-e.a)*i,r._sanitize()}static fromRgb(e,t){const i=(0,s.lT)(e);return i?c.fromArray(i,t):null}static fromHex(e,t=new c){const i=(0,s.oW)(e);return i?c.fromArray(i,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const i=(0,s.Eq)(e);return i?c.fromArray(i,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,i=e?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${u(this.r,r)}${u(this.g,r)}${u(this.b,r)}${n?u(Math.round(255*this.a),r):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=a(this.r),i=a(this.g),r=a(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,i,r,a(255*this.a)]:[t,i,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,i,r){this.r=e,this.g=t,this.b=i,this.a=r}}c.prototype.declaredClass="esri.Color",r=c||(c={}),(n=r.AlphaMode||(r.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const p=c},69052:(e,t,i)=>{i.d(t,{ie:()=>l});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),s&&r===i&&(r=t),r+n}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},69540:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(90237),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(35666),a=i(88620),u=i(40608);const c=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,i=e.store,r={},n=new Map;for(const e in t){const o=t[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,s.TU)(c),null!=c&&null==p||(a===l.Gr.DEFAULTS?n.set(e,p):r[e]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of n)e.set(t,i,l.Gr.DEFAULTS)}return u}};return t=(0,r._)([(0,u.$)("esri.core.Clonable")],t),t};let p=class extends(c(n.A)){};p=(0,r._)([(0,u.$)("esri.core.Clonable")],p),(p||(p={})).ClonableMixin=c;const d=p},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},80200:(e,t,i)=>{i.d(t,{T:()=>r,d:()=>m});const r={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-1;function o(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e){const t=[];for(let i=0,r=e.length*n;i<r;i+=n)t[i>>5]|=(e.charCodeAt(i/n)&s)<<i%32;return t}function a(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=n)t.push(String.fromCharCode(e[i>>5]>>>i%32&s));return t.join("")}function u(e,t,i,r,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(r,s)),n),i)}function c(e,t,i,r,n,s,o){return u(t&i|~t&r,e,t,n,s,o)}function p(e,t,i,r,n,s,o){return u(t&r|i&~r,e,t,n,s,o)}function d(e,t,i,r,n,s,o){return u(t^i^r,e,t,n,s,o)}function h(e,t,i,r,n,s,o){return u(i^(t|~r),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const l=i,a=r,u=n,y=s;i=c(i,r,n,s,e[t],7,-680876936),s=c(s,i,r,n,e[t+1],12,-389564586),n=c(n,s,i,r,e[t+2],17,606105819),r=c(r,n,s,i,e[t+3],22,-1044525330),i=c(i,r,n,s,e[t+4],7,-176418897),s=c(s,i,r,n,e[t+5],12,1200080426),n=c(n,s,i,r,e[t+6],17,-1473231341),r=c(r,n,s,i,e[t+7],22,-45705983),i=c(i,r,n,s,e[t+8],7,1770035416),s=c(s,i,r,n,e[t+9],12,-1958414417),n=c(n,s,i,r,e[t+10],17,-42063),r=c(r,n,s,i,e[t+11],22,-1990404162),i=c(i,r,n,s,e[t+12],7,1804603682),s=c(s,i,r,n,e[t+13],12,-40341101),n=c(n,s,i,r,e[t+14],17,-1502002290),r=c(r,n,s,i,e[t+15],22,1236535329),i=p(i,r,n,s,e[t+1],5,-165796510),s=p(s,i,r,n,e[t+6],9,-1069501632),n=p(n,s,i,r,e[t+11],14,643717713),r=p(r,n,s,i,e[t],20,-373897302),i=p(i,r,n,s,e[t+5],5,-701558691),s=p(s,i,r,n,e[t+10],9,38016083),n=p(n,s,i,r,e[t+15],14,-660478335),r=p(r,n,s,i,e[t+4],20,-405537848),i=p(i,r,n,s,e[t+9],5,568446438),s=p(s,i,r,n,e[t+14],9,-1019803690),n=p(n,s,i,r,e[t+3],14,-187363961),r=p(r,n,s,i,e[t+8],20,1163531501),i=p(i,r,n,s,e[t+13],5,-1444681467),s=p(s,i,r,n,e[t+2],9,-51403784),n=p(n,s,i,r,e[t+7],14,1735328473),r=p(r,n,s,i,e[t+12],20,-1926607734),i=d(i,r,n,s,e[t+5],4,-378558),s=d(s,i,r,n,e[t+8],11,-2022574463),n=d(n,s,i,r,e[t+11],16,1839030562),r=d(r,n,s,i,e[t+14],23,-35309556),i=d(i,r,n,s,e[t+1],4,-1530992060),s=d(s,i,r,n,e[t+4],11,1272893353),n=d(n,s,i,r,e[t+7],16,-155497632),r=d(r,n,s,i,e[t+10],23,-1094730640),i=d(i,r,n,s,e[t+13],4,681279174),s=d(s,i,r,n,e[t],11,-358537222),n=d(n,s,i,r,e[t+3],16,-722521979),r=d(r,n,s,i,e[t+6],23,76029189),i=d(i,r,n,s,e[t+9],4,-640364487),s=d(s,i,r,n,e[t+12],11,-421815835),n=d(n,s,i,r,e[t+15],16,530742520),r=d(r,n,s,i,e[t+2],23,-995338651),i=h(i,r,n,s,e[t],6,-198630844),s=h(s,i,r,n,e[t+7],10,1126891415),n=h(n,s,i,r,e[t+14],15,-1416354905),r=h(r,n,s,i,e[t+5],21,-57434055),i=h(i,r,n,s,e[t+12],6,1700485571),s=h(s,i,r,n,e[t+3],10,-1894986606),n=h(n,s,i,r,e[t+10],15,-1051523),r=h(r,n,s,i,e[t+1],21,-2054922799),i=h(i,r,n,s,e[t+8],6,1873313359),s=h(s,i,r,n,e[t+15],10,-30611744),n=h(n,s,i,r,e[t+6],15,-1560198380),r=h(r,n,s,i,e[t+13],21,1309151649),i=h(i,r,n,s,e[t+4],6,-145523070),s=h(s,i,r,n,e[t+11],10,-1120210379),n=h(n,s,i,r,e[t+2],15,718787259),r=h(r,n,s,i,e[t+9],21,-343485551),i=o(i,l),r=o(r,a),n=o(n,u),s=o(s,y)}return[i,r,n,s]}function m(e,t=r.Hex){const i=t||r.Base64,s=y(l(e),e.length*n);switch(i){case r.Raw:return s;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(s);case r.String:return a(s);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(s)}}},82534:(e,t,i)=>{function r(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"}))},85648:(e,t,i)=>{i.d(t,{n:()=>n});var r=i(84952);function n(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const s={},o="text/plain",l=s[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)s[a[e]]=e},87024:(e,t,i)=>{i.d(t,{P:()=>h});var r=i(49186),n=i(80200),s=i(76553),o=i(84952),l=i(13069),a=i(96156),u=i(35666),c=i(10107),p=i(85648),d=i(97159);function h(e){const t=e?.origins??[void 0];return(i,r)=>{const n=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const r=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{const n=(0,d.r)(e,t,i);return r.type===String?n:"function"==typeof r.type?new r.type({url:n}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(t,n,l,a){if(!a?.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,a)):void(n[l]=t.write({},a));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=r.type!==String&&(!(0,s.H)(this)||a?.origin&&this.originIdOf(i)>(0,u.aB)(a.origin)),v={object:this,propertyName:i,value:t,targetUrl:h,dest:n,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,o.oP)(h)?g&&e?.contentAddressed?y(v):g?function(e){const{context:t,targetUrl:i,params:r,value:n,dest:s,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),u=f(n,i,t),c=(0,p.n)(u),d=(0,o.Zo)(a.path),h=r?.compress??!1;c===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),s[l]=i):y(e)}(v):function({context:e,targetUrl:t,dest:i,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[r]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||g)?y(v):n[l]=h}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.p;return{read:e,write:t}}}}(e,i,r);for(const e of t){const t=(0,c.rM)(i,e,r);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:i,value:s,context:a,dest:u,targetPropertyName:c}=e;if(!a.portalItem)return;const h=(0,d.b)(t),y=f(s,t,a);if(i?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const g=i?.contentAddressed&&"json"===y.type?(0,n.d)(y.jsonString):h?.filename??(0,l.lk)(),v=(0,o.fj)(i?.prefix??h?.prefix,g),b=`${v}.${(0,p.n)(y)}`;if(i?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const M=a.portalItem.resourceFromPath(b);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then((e=>{M.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=M.itemRelativeUrl})).catch((()=>{})));const S=i?.compress??!1;a.resources&&m({...e,resource:M,content:y,compress:S,updates:a.resources.toAdd}),u[c]=M.itemRelativeUrl}function m({object:e,propertyName:t,updates:i,resource:r,content:n,compress:s}){i.push({resource:r,content:n,compress:s,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function f(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},92071:(e,t,i)=>{i.d(t,{P:()=>b,L:()=>M});var r=i(90237),n=i(69622),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new a,i=this._originStores[l.Gr.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,o.o8)(e),l.Gr.DEFAULTS)}));for(let i=l.Gr.SERVICE;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=l.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=l.Gr.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),n=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),n!==r}originOf(e){return this._propertyOriginMap.get(e)||l.Gr.DEFAULTS}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=i(45917),c=i(88620),p=i(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,r=new a;t.store=r,(0,s.k)(t,i,r)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=h(this),r=(0,l.aB)(t);if("string"==typeof e)return i.get(e,r);const n={};return e.forEach((e=>{n[e]=i.get(e,r)})),n}originOf(e){return(0,l.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const i=h(this),r=(0,l.aB)(t),n=(0,c.oY)(this);let s;s="string"==typeof e?"*"===e?i.keys(r):[e]:e,s.forEach((e=>{n.invalidate(e),i.revert(e,r),n.commit(e)}))}};return t=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.oY)(e).store}let y=class extends(d(n.A)){};y=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=i(16649),f=i(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,l.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,l.aB)(i))}removeOrigin(e){const t=v(this),i=(0,l.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),l.Gr.USER)}updateOrigin(e,t){const i=v(this),r=(0,l.aB)(t),n=(0,m.Jt)(this,e);for(let t=r+1;t<l.AU;++t)i.delete(e,t);i.set(e,n,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,c.oY)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],t),t};let M=class extends(b(n.A)){};M=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],M)},95466:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(49186),n=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(96285);const d=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],g(e))}static fromLayerJSON(e){return new h(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=m(t);if(t&&r){const n=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,(()=>p.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,l.W)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,c.ZS)(n.dateFieldsTimeReference):l??u.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,c.ZS)(r.timeReference):l:null,d=new Map([[y(n?.creationDateField??""),a],[y(n?.editDateField??""),a],[y(s),p],[y(o),p]]);for(const{name:r,type:n}of e.fields)if(f.has(n))t.set(r,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=d.get(y(r??""))??l;t.set(r,e)}return t}},96184:(e,t,i)=>{i.d(t,{A:()=>y});var r=i(90237),n=i(69540),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),u=i(43937),c=i(64272),p=i(26253),d=i(56400);function h(e,t){return p.T.fromJSON({value:e,unit:t})}let y=class extends(n.A.ClonableMixin(s.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,o.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,l.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,o.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,u.K)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,o.MZ)((0,d.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,r._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,r._)([(0,a.$)("esri.layers.support.TimeInfo")],y)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1389],{4146:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(90237),n=i(78888),s=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),c=i(74887),p=i(84952),d=i(10107),h=(i(44208),i(87811),i(40608)),y=i(5443),m=i(16930),f=i(92602),g=i(64272);let v=0,b=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",n=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r._)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:g.T})],b.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r._)([(0,h.$)("esri.layers.Layer")],b)},8303:(e,t,i)=>{i.d(t,{A:()=>_});var r=i(90237),n=i(92602),s=i(70333),o=i(78888),l=i(60999),a=i(49186),u=i(53966),c=i(97768),p=i(74887),d=i(84952),h=i(10107),y=(i(44208),i(87811),i(36005)),m=i(40608),f=i(43937),g=i(77548),v=i(20655),b=i(80812),M=i(41318),S=i(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new b.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(n)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new b.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,S.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(r))return n.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,h.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},16183:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$e});var r=i(90237),n=i(13874),s=i(5503),o=i(49186),l=i(53966),a=i(92071),u=i(74887),c=i(10107),p=i(56507),d=(i(44208),i(87811),i(36005)),h=i(40608),y=i(38954),m=i(51850),f=i(5443),g=i(4146),v=i(52136),b=i(18768),M=i(69208),S=i(16131),_=i(8303),w=i(25036),x=i(58947),A=i(60694),Z=i(10873),j=i(20437),I=i(95466),T=i(96184),N=i(69540),V=i(69052),F=i(25482),R=i(87024),z=i(67026),P=i(82534),O=i(34304);const E=(0,m.vt)(),U=(0,P.vt)(),L=(0,P.vt)(),D=(0,P.vt)(),q=(0,m.fA)(0,0,1),$=(0,m.fA)(0,1,0),C=(0,m.fA)(1,0,0);function B(e){(0,y.c)(E,e),(0,y.n)(E,E);const t=Math.atan2(E[1],E[0]),i=(0,z.x8)((0,P.vt)(),q,-t);(0,y.v)(E,E,i);const r=-1*Math.atan2(E[2],E[0]);return[(0,O.ct)(t)+270,(0,O.ct)(r)+90]}function k(e,t){return(0,z.x8)(L,q,(0,O.DF)(e-270)),(0,z.x8)(D,$,(0,O.DF)(t-90)),(0,z.lw)(U,L,D),(0,y.c)(E,C),(0,y.v)(E,E,U),(0,y.n)(E,E),[E[0],E[1],E[2]]}var H=i(79901);let G=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"point",void 0),G=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSlice")],G);var J=i(97159);let K=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],K.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{origins:{service:{read:J.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,R.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],K.prototype,"href",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],K.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"point",void 0),(0,r._)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"sizeInPixel",void 0),(0,r._)([(0,c.MZ)({type:[G],json:{write:!0}})],K.prototype,"slices",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],K.prototype,"timeId",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"variableId",void 0),K=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSection")],K);let W=class extends F.A{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSimpleShading")],W);let Y=class extends F.A{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r._)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],Y.prototype,"continuity",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"hasNoData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"noData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"offset",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"type",void 0),Y=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelFormat")],Y);const Q=Y;let X=class extends F.A{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:!0}})],X.prototype,"originalFormat",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"renderingFormat",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],X.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],X.prototype,"type",void 0),X=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariable")],X);const ee=X;var te=i(4718),ie=i(68197);let re=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],re.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],re.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],re.prototype,"colorLocked",void 0),re=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIsosurface")],re);var ne=i(62885),se=i(34727);let oe=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"position",void 0),oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelColorStop")],oe);const le=oe;let ae=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,r._)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ae.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelOpacityStop")],ae);const ue=ae;let ce=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],ce.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ce.prototype,"range",void 0),ce=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRangeFilter")],ce);const pe=ce;var de,he;(he=de||(de={}))[he.Color=1]="Color",he[he.Alpha=2]="Alpha",he[he.Both=3]="Both";let ye=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.A.ofType(le)),this.opacityStops=new(s.A.ofType(ue))}set colorStops(e){this._set("colorStops",(0,ne.V)(e,this._get("colorStops"),s.A.ofType(le)))}set opacityStops(e){this._set("opacityStops",(0,ne.V)(e,this._get("opacityStops"),s.A.ofType(ue)))}getPreviousNext(e,t,i){let r=e;for(;--r>0&&t[r].type!==i&&t[r].type!==de.Both;);let n=e;const s=t.length;for(;++n<s&&t[n].type!==i&&t[n].type!==de.Both;);return[r,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:de.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.qE)(e.position,0,1),r=Math.round(255*(0,se.qE)(1-e.opacity,0,1));let n=!1;for(const e of i)if(e.type===de.Color&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=de.Both,n=!0;break}n||i.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:de.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const r=i[t];if(r.type!==de.Both)if(r.type===de.Color){const[n,s]=this.getPreviousNext(t,i,de.Alpha);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position);r.color.a=Math.round((0,se.Cc)(i[n].color.a,i[s].color.a,e))}else r.color.a=-1!==n?i[n].color.a:i[s].color.a}else{const[n,s]=this.getPreviousNext(t,i,de.Color);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position),t=i[n].color,o=i[s].color;fe.forEach((i=>{r.color[i]=Math.round((0,se.Cc)(t[i],o[i],e))}))}else-1!==n?fe.forEach((e=>{r.color[e]=i[n].color[e]})):fe.forEach((e=>{r.color[e]=i[s].color[e]}))}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,n=1;for(let i=0;i<this._colorMapSize;++i){const s=i/this._colorMapSize;for(;s>t[n].position;)r=n++;const o=(s-t[r].position)/(t[n].position-t[r].position),l=t[r].color,a=t[n].color,u=new ie.A;fe.forEach((e=>{u[e]=Math.round((0,se.Cc)(l[e],a[e],o))})),u.a=(0,se.qE)(1-(0,se.Cc)(l.a,a.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let r=this.stretchRange[0],n=this.stretchRange[1];if(r>n){const e=r;r=n,n=e}e=(0,se.qE)(e,r,n);const s=i[Math.round((e-r)/(n-r)*(this._colorMapSize-1))].clone();return t||(s.a=1),s}};(0,r._)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(ue),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,r._)([(0,c.MZ)({type:pe,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,r._)([(0,c.MZ)({type:[ie.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const me=ye,fe=["r","g","b"];let ge=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var ve;(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ge.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ge.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"label",void 0),ge=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelUniqueValue")],ge);let be=ve=class extends F.A{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.A.ofType(ge)),this.isosurfaces=new(s.A.ofType(re))}clone(){return new ve({variableId:this.variableId,label:this.label,transferFunction:(0,te.o8)(this.transferFunction),uniqueValues:(0,te.o8)(this.uniqueValues),isosurfaces:(0,te.o8)(this.isosurfaces)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"variableId",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],be.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],be.prototype,"transferFunction",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ge),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],be.prototype,"uniqueValues",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(re),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],be.prototype,"isosurfaces",void 0),be=ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariableStyle")],be);var Me=i(88930),Se=i(86738),_e=i(16930),we=i(21325);function xe(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-|\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,i,r,n,s,o,l,a,u,c,p,d,h]=t;let y="seconds";const m=i.charAt(0).toLowerCase();"d"===m?y="days":"h"===m?y="hours":"m"===m&&(y="minutes");const f=parseInt(r,10);if(Number.isNaN(f))return{didParse:!1};const g=parseInt(n,10);if(Number.isNaN(g)||g<1||g>12)return{didParse:!1};const v=parseInt(s,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===g){const e=f%4==0&&(f%100!=0||f%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===g||6===g||9===g||11===g)&&v>30)return{didParse:!1};const b=parseInt(o,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const M=parseInt(l,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};const S=parseInt(a,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let _=1,w=0,x=0;if(p&&(_="-"===p?-1:1),d){if(w=parseInt(d,10),Number.isNaN(w)||w<0)return{didParse:!1};if(0!==w){const e=_*w;if(e<-12||e>14)return{didParse:!1}}}if(h&&(x=parseInt(h,10),Number.isNaN(x)||x<0||x>59))return{didParse:!1};const A=`${f}`.padStart(4,"0"),Z=`${g}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),I=`${b}`.padStart(2,"0"),T=`${M}`.padStart(2,"0"),N=`${S}`.padStart(2,"0");let V="Z";return 0===w&&0===x||(V=_>0?"+":"-",V+=`${w}`.padStart(2,"0"),V+=":",V+=`${x}`.padStart(2,"0")),{didParse:!0,unit:y,reference:new Date(`${A}-${Z}-${j}T${I}:${T}:${N}.000${V}`)}}let Ae=class extends F.A{constructor(){super(...arguments),this.values=null}};(0,r._)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ae.prototype,"values",void 0),Ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIrregularSpacing")],Ae);const Ze=Ae;let je=class extends F.A{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"offset",void 0),je=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRegularSpacing")],je);const Ie=je;let Te=class extends F.A{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r._)([(0,c.MZ)({type:Ze,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,r._)([(0,c.MZ)({type:Ie,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDimension")],Te);const Ne=Te;let Ve=class extends F.A{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=_e.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return i.isRegular&&!i.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(r[1]-r[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=xe(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],i=xe(e.unit);if(i.didParse)if(e.isRegular){const r=e.regularSpacing?.offset??0,n=e.regularSpacing?.scale||1;for(let s=0;s<e.size;++s){const e=r+n*s;t.push((0,Me.mi)(i.reference,e,i.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let r=0;r<e.irregularSpacing.values.length;++r){const n=e.irregularSpacing.values[r];t.push((0,Me.mi)(i.reference,n,i.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,we.aI)(this.spatialReference,e.spatialReference))return l.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.fA)(e.x,e.y,e.z??0);(0,y.d)(t,t,this.originInLayerSpace3D),(0,y.D)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const r=e.z??0,n=i.irregularSpacing.values,s=i.isPositiveUp?1:-1,o=n.reduce(((e,t)=>Math.abs(s*t-r)<Math.abs(s*e-r)?t:e));for(let e=0;e<n.length;++e)if(n[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.ci)(e);if((0,y.C)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.f)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new Se.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Fe;(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:[Ne],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"dimensions",void 0),(0,r._)([(0,c.MZ)({type:_e.A,json:{read:{enabled:!1}}})],Ve.prototype,"spatialReference",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1}})],Ve.prototype,"zDimension",null),(0,r._)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ve.prototype,"isValid",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"originInLayerSpace3D",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r._)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ve.prototype,"volumeType",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"sizeInVoxels",null),(0,r._)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ve.prototype,"timeStops",null),Ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolume")],Ve);let Re=Fe=class extends F.A{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"apronWidth",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"brickSize",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"maxLodLevel",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"nodeSize",void 0),Re=Fe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeIndex")],Re);const ze=Re;let Pe=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var Oe;(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Pe.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"point",void 0),Pe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDynamicSection")],Pe);let Ee=Oe=class extends F.A{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.A.ofType(G)),this.dynamicSections=new(s.A.ofType(Pe))}set slices(e){this._set("slices",(0,ne.V)(e,this._get("slices"),s.A.ofType(G)))}set dynamicSections(e){this._set("dynamicSections",(0,ne.V)(e,this._get("dynamicSections"),s.A.ofType(Pe)))}clone(){return new Oe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.o8)(this.slices),dynamicSections:(0,te.o8)(this.dynamicSections)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Ee.prototype,"verticalExaggeration",void 0),(0,r._)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ee.prototype,"exaggerationMode",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Ee.prototype,"verticalOffset",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(G),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ee.prototype,"slices",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(Pe),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ee.prototype,"dynamicSections",null),Ee=Oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeStyle")],Ee);var Ue=i(30291),Le=i(64272),De=i(26253);let qe=class extends((0,x.w6)((0,b.b)((0,S.q)((0,_.A)((0,w.j)((0,a.P)((0,M.d)((0,v.p)(g.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new W,this.opacity=1,this.variables=new s.A,this.volumes=new s.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(s.A.ofType(Ee)),this.variableStyles=new(s.A.ofType(be)),this.sections=new(s.A.ofType(K))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,A.Jf)(e,l.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new o.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const r=f.A.fromJSON(e,i);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Ve.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}r.zmin=e,r.zmax=i}}}return r}return null}get fields(){const e=[new j.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new j.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const i=new j.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(i)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new j.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const i=new j.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new j.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new I.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,Ue.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.at(i)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.at(i)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const i=new Le.T({start:t[0],end:t.at(-1)});return new T.A({fullTimeExtent:i,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const r=this.getVariable(e);if(null==r||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const s=this.variableStyles.at(n);return s?.transferFunction?s.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new K({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if(null!=i){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),l.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||(l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else l.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if(null!=i){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else l.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const r=(0,m.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r._)([(0,c.MZ)({type:["Voxel"]})],qe.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.MZ)(Z.fV)],qe.prototype,"legendEnabled",void 0),(0,r._)([(0,c.MZ)({json:{write:!0}})],qe.prototype,"title",void 0),(0,r._)([(0,c.MZ)(Z.OZ)],qe.prototype,"url",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(K),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],qe.prototype,"sections",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],qe.prototype,"currentVariableId",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ee),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],qe.prototype,"volumeStyles",void 0),(0,r._)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],qe.prototype,"renderMode",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(be),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],qe.prototype,"variableStyles",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],qe.prototype,"enableSlices",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],qe.prototype,"enableSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],qe.prototype,"enableDynamicSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],qe.prototype,"enableIsosurfaces",void 0),(0,r._)([(0,c.MZ)({type:W,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],qe.prototype,"shading",void 0),(0,r._)([(0,c.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],qe.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ee)})],qe.prototype,"variables",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ve)})],qe.prototype,"volumes",void 0),(0,r._)([(0,c.MZ)({type:ze})],qe.prototype,"index",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"minScale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"maxScale",void 0),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],qe.prototype,"version",void 0),(0,r._)([(0,d.w)("service","version")],qe.prototype,"readVersion",null),(0,r._)([(0,c.MZ)({type:f.A})],qe.prototype,"fullExtent",void 0),(0,r._)([(0,d.w)("service","fullExtent",["fullExtent"])],qe.prototype,"readFullExtent",null),(0,r._)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],qe.prototype,"fields",null),(0,r._)([(0,c.MZ)({readOnly:!0})],qe.prototype,"fieldsIndex",null),(0,r._)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,i){t[i]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],qe.prototype,"popupEnabled",void 0),(0,r._)([(0,c.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],qe.prototype,"popupTemplate",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],qe.prototype,"defaultPopupTemplate",null),(0,r._)([(0,c.MZ)({type:T.A,readOnly:!0,json:{read:!1}})],qe.prototype,"timeInfo",null),(0,r._)([(0,c.MZ)({type:Le.T,json:{read:!1}})],qe.prototype,"timeExtent",void 0),(0,r._)([(0,c.MZ)({type:De.T,json:{read:!1}})],qe.prototype,"timeOffset",void 0),(0,r._)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],qe.prototype,"useViewTime",void 0),qe=(0,r._)([(0,h.$)("esri.layers.VoxelLayer")],qe);const $e=qe},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(90237),n=i(53966),s=i(10107),o=(i(44208),i(87811),i(40608)),l=i(60694);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,n.A.getLogger(this)))}};return(0,r._)([(0,s.MZ)()],t.prototype,"title",null),(0,r._)([(0,s.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},25036:(e,t,i)=>{i.d(t,{j:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,r._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},26253:(e,t,i)=>{i.d(t,{T:()=>p});var r=i(90237),n=i(69540),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),u=i(40608),c=i(73133);let p=class extends(n.A.ClonableMixin(s.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r._)([(0,u.$)("esri.time.TimeInterval")],p)},29242:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,i,r,n,s,o,l,a){return[e,t,i,r,n,s,o,l,a]}i.d(t,{fA:()=>n,vt:()=>r,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},30291:(e,t,i)=>{i.d(t,{tn:()=>u});var r=i(13874),n=i(30524),s=i(89893),o=(i(84424),i(80737),i(96808),i(66159)),l=(i(67336),i(92094),i(23721),i(47582),i(41227)),a=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},h){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||y,sortDisabled:t?.sortDisabled}).map((t=>new l.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),g=[new o.A,new s.A];return new r.A({title:f,content:g,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const y=["geometry","blob","raster","guid","xml"]},38954:(e,t,i)=>{i.d(t,{A:()=>y,B:()=>h,C:()=>c,D:()=>p,E:()=>R,F:()=>E,H:()=>L,a:()=>z,b:()=>g,c:()=>o,d:()=>u,e:()=>x,f:()=>a,g:()=>f,h:()=>A,i:()=>l,j:()=>v,k:()=>M,l:()=>s,m:()=>Z,n:()=>w,o:()=>I,q:()=>F,r:()=>_,s:()=>b,t:()=>j,u:()=>S,v:()=>T,w:()=>d,x:()=>U,y:()=>D,z:()=>m});var r=i(51850),n=i(34304);function s(e){const t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function p(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function m(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function v(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(i*i+r*r+n*n)}function b(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return i*i+r*r+n*n}function M(e){const t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],r=t[1],n=t[2];let s=i*i+r*r+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2];return e[0]=n*a-s*l,e[1]=s*o-r*a,e[2]=r*l-n*o,e}function Z(e,t,i,r){const n=t[0],s=t[1],o=t[2];return e[0]=n+r*(i[0]-n),e[1]=s+r*(i[1]-s),e[2]=o+r*(i[2]-o),e}function j(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=i[0]*r+i[4]*n+i[8]*s+i[12],e[1]=i[1]*r+i[5]*n+i[9]*s+i[13],e[2]=i[2]*r+i[6]*n+i[10]*s+i[14],e}function I(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=r*i[0]+n*i[3]+s*i[6],e[1]=r*i[1]+n*i[4]+s*i[7],e[2]=r*i[2]+n*i[5]+s*i[8],e}function T(e,t,i){const r=i[0],n=i[1],s=i[2],o=i[3],l=t[0],a=t[1],u=t[2],c=n*u-s*a,p=s*l-r*u,d=r*a-n*l,h=n*d-s*p,y=s*c-r*d,m=r*p-n*c,f=2*o;return e[0]=l+c*f+2*h,e[1]=a+p*f+2*y,e[2]=u+d*f+2*m,e}const N=(0,r.vt)(),V=(0,r.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t,i){const r=i[0]-t[0],n=i[1]-t[1],s=i[2]-t[2];let o=r*r+n*n+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,P=c,O=p,E=v,U=b,L=s,D=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){w(N,e),w(V,t);const i=x(N,V);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,r,n,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,p=3*a*o,d=a*s;return e[0]=t[0]*u+i[0]*c+r[0]*p+n[0]*d,e[1]=t[1]*u+i[1]*c+r[1]*p+n[1]*d,e[2]=t[2]*u+i[2]*c+r[2]*p+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:A,crossAndNormalize:function(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2],u=n*a-s*l,c=s*o-r*a,p=r*l-n*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:R,dist:E,distance:v,div:O,divide:p,dot:x,equals:function(e,t){if(e===t)return!0;const i=e[0],r=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,n.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))},exactEquals:F,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,r,n,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+i[0]*a+r[0]*u+n[0]*c,e[1]=t[1]*l+i[1]*a+r[1]*u+n[1]*c,e[2]=t[2]*l+i[2]*a+r[2]*u+n[2]*c,e},inverse:_,len:L,length:s,lerp:Z,max:m,min:y,mul:P,multiply:c,negate:S,normalize:w,random:function(e,t=1){const i=n.Ov,r=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0],s[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),s[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),s[1]=n[1],s[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),s[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),s[2]=n[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:g,set:l,sign:h,sqrDist:U,sqrLen:D,squaredDistance:b,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:I,transformMat4:j,transformQuat:T},Symbol.toStringTag,{value:"Module"}))},52136:(e,t,i)=>{i.d(t,{p:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,n.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],t),t}},54239:(e,t,i)=>{i.d(t,{A:()=>g});var r,n=i(90237),s=i(4576),o=i(66552),l=i(25482),a=i(83047),u=i(67076),c=i(10107),p=(i(44208),i(53966),i(36005)),d=i(40608),h=i(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.Xy)(m,"orthometric");const f=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=r=class extends l.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=r=(0,n._)([(0,d.$)("esri.geometry.HeightModelInfo")],g)},62885:(e,t,i)=>{i.d(t,{H:()=>s,V:()=>n});var r=i(5503);function n(e,t,i=r.A){return t||(t=new i),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},64272:(e,t,i)=>{i.d(t,{T:()=>d});var r,n=i(90237),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),c=i(43937),p=i(98623);let d=class extends s.A{static{r=this}static get allTime(){return h}static get empty(){return y}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,e,t));let n=this.end;if(n){const i=(0,o.lL)(n,e,t);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=i?o=n:t>=n&&t<=s&&(o=t),i>=n&&i<=s?l=i:s>=t&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,i=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,i)),null!=l&&(n.end=(0,o.S1)(l,e,t,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.K)("start")],d.prototype,"writeStart",null),d=r=(0,n._)([(0,u.$)("esri.time.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0})},67026:(e,t,i)=>{i.d(t,{A6:()=>m,Xd:()=>c,Xr:()=>h,hZ:()=>g,lw:()=>p,t2:()=>I,x8:()=>u});var r=i(29242),n=i(82534),s=i(51850),o=i(34304),l=i(38954),a=i(87317);function u(e,t,i){i*=.5;const r=Math.sin(i);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i),e}function c(e,t){const i=2*Math.acos(t[3]),r=Math.sin(i/2);return r>(0,o.FD)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),i}function p(e,t,i){const r=t[0],n=t[1],s=t[2],o=t[3],l=i[0],a=i[1],u=i[2],c=i[3];return e[0]=r*c+o*l+n*u-s*a,e[1]=n*c+o*a+s*l-r*u,e[2]=s*c+o*u+r*a-n*l,e[3]=o*c-r*l-n*a-s*u,e}function d(e,t,i,r){const n=t[0],s=t[1],l=t[2],a=t[3];let u,c,p,d,h,y=i[0],m=i[1],f=i[2],g=i[3];return c=n*y+s*m+l*f+a*g,c<0&&(c=-c,y=-y,m=-m,f=-f,g=-g),1-c>(0,o.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,h=Math.sin(r*u)/p):(d=1-r,h=r),e[0]=d*n+h*y,e[1]=d*s+h*m,e[2]=d*l+h*f,e[3]=d*a+h*g,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let r;if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const n=(i+1)%3,s=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*n+n]-t[3*s+s]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*n+s]-t[3*s+n])*r,e[n]=(t[3*n+i]+t[3*i+n])*r,e[s]=(t[3*s+i]+t[3*i+s])*r}return e}function m(e,t,i,r){const n=.5*Math.PI/180;t*=n,i*=n,r*=n;const s=Math.sin(t),o=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(r),c=Math.cos(r);return e[0]=s*a*c-o*l*u,e[1]=o*l*c+s*a*u,e[2]=o*a*u-s*l*c,e[3]=o*a*c+s*l*u,e}const f=a.c,g=a.s,v=a.g,b=p,M=a.b,S=a.h,_=a.l,w=a.j,x=w,A=a.f,Z=A,j=a.n,I=a.a,T=a.e,N=(0,s.vt)(),V=(0,s.fA)(1,0,0),F=(0,s.fA)(0,1,0),R=(0,n.vt)(),z=(0,n.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const i=t[0],r=t[1],n=t[2];return e[0]=i,e[1]=r,e[2]=n,e[3]=Math.sqrt(Math.abs(1-i*i-r*r-n*n)),e},conjugate:h,copy:f,dot:S,equals:T,exactEquals:I,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],r=t[1],n=t[2],s=t[3],o=i*i+r*r+n*n+s*s,l=o?1/o:0;return e[0]=-i*l,e[1]=-r*l,e[2]=-n*l,e[3]=s*l,e},len:x,length:w,lerp:_,mul:b,multiply:p,normalize:j,random:function(e){const t=o.Ov,i=t(),r=t(),n=t(),s=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=s*Math.sin(2*Math.PI*r),e[1]=s*Math.cos(2*Math.PI*r),e[2]=l*Math.sin(2*Math.PI*n),e[3]=l*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+o*l,e[1]=n*a+s*l,e[2]=s*a-n*l,e[3]=o*a-r*l,e},rotateY:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a-s*l,e[1]=n*a+o*l,e[2]=s*a+r*l,e[3]=o*a-n*l,e},rotateZ:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+n*l,e[1]=n*a-r*l,e[2]=s*a+o*l,e[3]=o*a-s*l,e},rotationTo:function(e,t,i){const r=(0,l.e)(t,i);return r<-.999999?((0,l.h)(N,V,t),(0,l.H)(N)<1e-6&&(0,l.h)(N,F,t),(0,l.n)(N,N),u(e,N,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.h)(N,t,i),e[0]=N[0],e[1]=N[1],e[2]=N[2],e[3]=1+r,j(e,e))},scale:M,set:g,setAxes:function(e,t,i,r){const n=P;return n[0]=i[0],n[3]=i[1],n[6]=i[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],j(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,i,r,n,s){return d(R,t,n,s),d(z,i,r,s),d(e,R,z,2*s*(1-s)),e},sqrLen:Z,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},68197:(e,t,i)=>{i.d(t,{A:()=>p});var r,n,s=i(40876),o=i(34727),l=i(56507);function a(e){return(0,o.qE)((0,l.Vr)(e),0,255)}function u(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class c{static blendColors(e,t,i,r=new c){return r.r=Math.round(e.r+(t.r-e.r)*i),r.g=Math.round(e.g+(t.g-e.g)*i),r.b=Math.round(e.b+(t.b-e.b)*i),r.a=e.a+(t.a-e.a)*i,r._sanitize()}static fromRgb(e,t){const i=(0,s.lT)(e);return i?c.fromArray(i,t):null}static fromHex(e,t=new c){const i=(0,s.oW)(e);return i?c.fromArray(i,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const i=(0,s.Eq)(e);return i?c.fromArray(i,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,i=e?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${u(this.r,r)}${u(this.g,r)}${u(this.b,r)}${n?u(Math.round(255*this.a),r):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=a(this.r),i=a(this.g),r=a(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,i,r,a(255*this.a)]:[t,i,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,i,r){this.r=e,this.g=t,this.b=i,this.a=r}}c.prototype.declaredClass="esri.Color",r=c||(c={}),(n=r.AlphaMode||(r.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const p=c},69052:(e,t,i)=>{i.d(t,{ie:()=>l});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),s&&r===i&&(r=t),r+n}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},69540:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(90237),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(35666),a=i(88620),u=i(40608);const c=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,i=e.store,r={},n=new Map;for(const e in t){const o=t[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,s.TU)(c),null!=c&&null==p||(a===l.Gr.DEFAULTS?n.set(e,p):r[e]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of n)e.set(t,i,l.Gr.DEFAULTS)}return u}};return t=(0,r._)([(0,u.$)("esri.core.Clonable")],t),t};let p=class extends(c(n.A)){};p=(0,r._)([(0,u.$)("esri.core.Clonable")],p),(p||(p={})).ClonableMixin=c;const d=p},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},80200:(e,t,i)=>{i.d(t,{T:()=>r,d:()=>m});const r={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-1;function o(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e){const t=[];for(let i=0,r=e.length*n;i<r;i+=n)t[i>>5]|=(e.charCodeAt(i/n)&s)<<i%32;return t}function a(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=n)t.push(String.fromCharCode(e[i>>5]>>>i%32&s));return t.join("")}function u(e,t,i,r,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(r,s)),n),i)}function c(e,t,i,r,n,s,o){return u(t&i|~t&r,e,t,n,s,o)}function p(e,t,i,r,n,s,o){return u(t&r|i&~r,e,t,n,s,o)}function d(e,t,i,r,n,s,o){return u(t^i^r,e,t,n,s,o)}function h(e,t,i,r,n,s,o){return u(i^(t|~r),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const l=i,a=r,u=n,y=s;i=c(i,r,n,s,e[t],7,-680876936),s=c(s,i,r,n,e[t+1],12,-389564586),n=c(n,s,i,r,e[t+2],17,606105819),r=c(r,n,s,i,e[t+3],22,-1044525330),i=c(i,r,n,s,e[t+4],7,-176418897),s=c(s,i,r,n,e[t+5],12,1200080426),n=c(n,s,i,r,e[t+6],17,-1473231341),r=c(r,n,s,i,e[t+7],22,-45705983),i=c(i,r,n,s,e[t+8],7,1770035416),s=c(s,i,r,n,e[t+9],12,-1958414417),n=c(n,s,i,r,e[t+10],17,-42063),r=c(r,n,s,i,e[t+11],22,-1990404162),i=c(i,r,n,s,e[t+12],7,1804603682),s=c(s,i,r,n,e[t+13],12,-40341101),n=c(n,s,i,r,e[t+14],17,-1502002290),r=c(r,n,s,i,e[t+15],22,1236535329),i=p(i,r,n,s,e[t+1],5,-165796510),s=p(s,i,r,n,e[t+6],9,-1069501632),n=p(n,s,i,r,e[t+11],14,643717713),r=p(r,n,s,i,e[t],20,-373897302),i=p(i,r,n,s,e[t+5],5,-701558691),s=p(s,i,r,n,e[t+10],9,38016083),n=p(n,s,i,r,e[t+15],14,-660478335),r=p(r,n,s,i,e[t+4],20,-405537848),i=p(i,r,n,s,e[t+9],5,568446438),s=p(s,i,r,n,e[t+14],9,-1019803690),n=p(n,s,i,r,e[t+3],14,-187363961),r=p(r,n,s,i,e[t+8],20,1163531501),i=p(i,r,n,s,e[t+13],5,-1444681467),s=p(s,i,r,n,e[t+2],9,-51403784),n=p(n,s,i,r,e[t+7],14,1735328473),r=p(r,n,s,i,e[t+12],20,-1926607734),i=d(i,r,n,s,e[t+5],4,-378558),s=d(s,i,r,n,e[t+8],11,-2022574463),n=d(n,s,i,r,e[t+11],16,1839030562),r=d(r,n,s,i,e[t+14],23,-35309556),i=d(i,r,n,s,e[t+1],4,-1530992060),s=d(s,i,r,n,e[t+4],11,1272893353),n=d(n,s,i,r,e[t+7],16,-155497632),r=d(r,n,s,i,e[t+10],23,-1094730640),i=d(i,r,n,s,e[t+13],4,681279174),s=d(s,i,r,n,e[t],11,-358537222),n=d(n,s,i,r,e[t+3],16,-722521979),r=d(r,n,s,i,e[t+6],23,76029189),i=d(i,r,n,s,e[t+9],4,-640364487),s=d(s,i,r,n,e[t+12],11,-421815835),n=d(n,s,i,r,e[t+15],16,530742520),r=d(r,n,s,i,e[t+2],23,-995338651),i=h(i,r,n,s,e[t],6,-198630844),s=h(s,i,r,n,e[t+7],10,1126891415),n=h(n,s,i,r,e[t+14],15,-1416354905),r=h(r,n,s,i,e[t+5],21,-57434055),i=h(i,r,n,s,e[t+12],6,1700485571),s=h(s,i,r,n,e[t+3],10,-1894986606),n=h(n,s,i,r,e[t+10],15,-1051523),r=h(r,n,s,i,e[t+1],21,-2054922799),i=h(i,r,n,s,e[t+8],6,1873313359),s=h(s,i,r,n,e[t+15],10,-30611744),n=h(n,s,i,r,e[t+6],15,-1560198380),r=h(r,n,s,i,e[t+13],21,1309151649),i=h(i,r,n,s,e[t+4],6,-145523070),s=h(s,i,r,n,e[t+11],10,-1120210379),n=h(n,s,i,r,e[t+2],15,718787259),r=h(r,n,s,i,e[t+9],21,-343485551),i=o(i,l),r=o(r,a),n=o(n,u),s=o(s,y)}return[i,r,n,s]}function m(e,t=r.Hex){const i=t||r.Base64,s=y(l(e),e.length*n);switch(i){case r.Raw:return s;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(s);case r.String:return a(s);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(s)}}},82534:(e,t,i)=>{function r(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"}))},85648:(e,t,i)=>{i.d(t,{n:()=>n});var r=i(84952);function n(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const s={},o="text/plain",l=s[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)s[a[e]]=e},87024:(e,t,i)=>{i.d(t,{P:()=>h});var r=i(49186),n=i(80200),s=i(76553),o=i(84952),l=i(13069),a=i(96156),u=i(35666),c=i(10107),p=i(85648),d=i(97159);function h(e){const t=e?.origins??[void 0];return(i,r)=>{const n=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const r=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{const n=(0,d.r)(e,t,i);return r.type===String?n:"function"==typeof r.type?new r.type({url:n}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(t,n,l,a){if(!a?.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,a)):void(n[l]=t.write({},a));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=r.type!==String&&(!(0,s.H)(this)||a?.origin&&this.originIdOf(i)>(0,u.aB)(a.origin)),v={object:this,propertyName:i,value:t,targetUrl:h,dest:n,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,o.oP)(h)?g&&e?.contentAddressed?y(v):g?function(e){const{context:t,targetUrl:i,params:r,value:n,dest:s,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),u=f(n,i,t),c=(0,p.n)(u),d=(0,o.Zo)(a.path),h=r?.compress??!1;c===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),s[l]=i):y(e)}(v):function({context:e,targetUrl:t,dest:i,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[r]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||g)?y(v):n[l]=h}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.p;return{read:e,write:t}}}}(e,i,r);for(const e of t){const t=(0,c.rM)(i,e,r);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:i,value:s,context:a,dest:u,targetPropertyName:c}=e;if(!a.portalItem)return;const h=(0,d.b)(t),y=f(s,t,a);if(i?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const g=i?.contentAddressed&&"json"===y.type?(0,n.d)(y.jsonString):h?.filename??(0,l.lk)(),v=(0,o.fj)(i?.prefix??h?.prefix,g),b=`${v}.${(0,p.n)(y)}`;if(i?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const M=a.portalItem.resourceFromPath(b);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then((e=>{M.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=M.itemRelativeUrl})).catch((()=>{})));const S=i?.compress??!1;a.resources&&m({...e,resource:M,content:y,compress:S,updates:a.resources.toAdd}),u[c]=M.itemRelativeUrl}function m({object:e,propertyName:t,updates:i,resource:r,content:n,compress:s}){i.push({resource:r,content:n,compress:s,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function f(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},92071:(e,t,i)=>{i.d(t,{P:()=>b,L:()=>M});var r=i(90237),n=i(69622),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new a,i=this._originStores[l.Gr.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,o.o8)(e),l.Gr.DEFAULTS)}));for(let i=l.Gr.SERVICE;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=l.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=l.Gr.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),n=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),n!==r}originOf(e){return this._propertyOriginMap.get(e)||l.Gr.DEFAULTS}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=i(45917),c=i(88620),p=i(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,r=new a;t.store=r,(0,s.k)(t,i,r)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=h(this),r=(0,l.aB)(t);if("string"==typeof e)return i.get(e,r);const n={};return e.forEach((e=>{n[e]=i.get(e,r)})),n}originOf(e){return(0,l.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const i=h(this),r=(0,l.aB)(t),n=(0,c.oY)(this);let s;s="string"==typeof e?"*"===e?i.keys(r):[e]:e,s.forEach((e=>{n.invalidate(e),i.revert(e,r),n.commit(e)}))}};return t=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.oY)(e).store}let y=class extends(d(n.A)){};y=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=i(16649),f=i(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,l.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,l.aB)(i))}removeOrigin(e){const t=v(this),i=(0,l.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),l.Gr.USER)}updateOrigin(e,t){const i=v(this),r=(0,l.aB)(t),n=(0,m.Jt)(this,e);for(let t=r+1;t<l.AU;++t)i.delete(e,t);i.set(e,n,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,c.oY)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],t),t};let M=class extends(b(n.A)){};M=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],M)},95466:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(49186),n=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(96285);const d=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],g(e))}static fromLayerJSON(e){return new h(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=m(t);if(t&&r){const n=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,(()=>p.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,l.W)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,c.ZS)(n.dateFieldsTimeReference):l??u.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,c.ZS)(r.timeReference):l:null,d=new Map([[y(n?.creationDateField??""),a],[y(n?.editDateField??""),a],[y(s),p],[y(o),p]]);for(const{name:r,type:n}of e.fields)if(f.has(n))t.set(r,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=d.get(y(r??""))??l;t.set(r,e)}return t}},96184:(e,t,i)=>{i.d(t,{A:()=>y});var r=i(90237),n=i(69540),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),u=i(43937),c=i(64272),p=i(26253),d=i(56400);function h(e,t){return p.T.fromJSON({value:e,unit:t})}let y=class extends(n.A.ClonableMixin(s.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,o.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,l.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,o.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,u.K)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,o.MZ)((0,d.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,r._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,r._)([(0,a.$)("esri.layers.support.TimeInfo")],y)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6112],{240:(t,n,r)=>{r.d(n,{C:()=>c,vt:()=>u,lU:()=>h,fA:()=>f,mR:()=>_,Qj:()=>l,T7:()=>v,gv:()=>N,Ui:()=>E,Tj:()=>S,_I:()=>T,mP:()=>g,LV:()=>i});var e=r(34727),o=r(38954),a=r(51850),s=(r(87317),r(44280),r(32114));function u(t=w){return[t[0],t[1],t[2],t[3]]}function i(t=w[0],n=w[1],r=w[2],e=w[3]){return f(t,n,r,e,s.Km.get())}function c(t,n){return f(n[0],n[1],n[2],n[3],t)}function l(t){return t}function f(t,n,r,e,o=u()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r,e=0,a=Math.floor(r*(1/3)),s=Math.floor(r*(2/3))){if(r<3)return!1;n(m,e);let i=a,c=!1;for(;i<r-1&&!c;)n(I,i),i++,c=!(0,o.q)(m,I);if(!c)return!1;for(i=Math.max(i,s),c=!1;i<r&&!c;)n(d,i),i++,(0,o.d)(p,m,I),(0,o.n)(p,p),(0,o.d)(b,I,d),(0,o.n)(b,b),c=!(0,o.q)(m,d)&&!(0,o.q)(I,d)&&Math.abs((0,o.e)(p,b))<M;return c?(function(t,n,r,e=u()){const o=r[0]-n[0],a=r[1]-n[1],s=r[2]-n[2],i=t[0]-n[0],c=t[1]-n[1],l=t[2]-n[2],f=a*l-s*c,h=s*i-o*l,M=o*c-a*i,m=f*f+h*h+M*M,I=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;e[0]=f*I,e[1]=h*I,e[2]=M*I,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2])}(m,I,d,t),!0):(0!==e||1!==a||2!==s)&&h(t,n,r,0,1,2)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const M=.99619469809,m=(0,a.vt)(),I=(0,a.vt)(),d=(0,a.vt)(),p=(0,a.vt)(),b=(0,a.vt)();function g(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.e)(t,r),t}function _(t,n,r,e){return(0,o.h)(d,n,t),function(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}(r,d,e)}function E(t,n,r){return null!=n&&O(P(t,n.origin,n.direction,D,r))}function v(t,n,r){return O(P(t,n.origin,n.vector,C.NONE,r))}function N(t,n,r){return O(P(t,n.origin,n.vector,C.CLAMP,r))}function S(t,n){return A(t,n)>=0}function T(t,n,r){const e=(0,o.g)(s.rq.get(),t,-t[3]),a=function(t,n,r){const e=(0,o.g)(s.rq.get(),t,(0,o.e)(t,n));return(0,o.d)(r,n,e),r}(t,(0,o.d)(s.rq.get(),n,e),s.rq.get());return(0,o.f)(r,a,e),r}function A(t,n){return(0,o.e)(t,n)+t[3]}var y,x;function O(t){return t===y.INTERSECTS_INSIDE_OUT||t===y.INTERSECTS_OUTSIDE_IN}function P(t,n,r,a,s){const u=(0,o.e)(t,r),i=A(t,n);if(0===u)return i>=0?y.INSIDE:y.OUTSIDE;let c=-i/u;return a&C.CLAMP&&(c=(0,e.qE)(c,0,1)),!(a&C.INFINITE_MIN)&&c<0||!(a&C.INFINITE_MAX)&&c>1?i>=0?y.INSIDE:y.OUTSIDE:((0,o.f)(s,n,(0,o.g)(s,r,c)),i>=0?y.INTERSECTS_INSIDE_OUT:y.INTERSECTS_OUTSIDE_IN)}(x=y||(y={}))[x.INTERSECTS_INSIDE_OUT=0]="INTERSECTS_INSIDE_OUT",x[x.INTERSECTS_OUTSIDE_IN=1]="INTERSECTS_OUTSIDE_IN",x[x.INSIDE=2]="INSIDE",x[x.OUTSIDE=3]="OUTSIDE";const w=[0,0,1,0];var C;!function(t){t[t.NONE=0]="NONE",t[t.CLAMP=1]="CLAMP",t[t.INFINITE_MIN=4]="INFINITE_MIN",t[t.INFINITE_MAX=8]="INFINITE_MAX"}(C||(C={})),C.INFINITE_MIN,C.INFINITE_MAX;const D=C.INFINITE_MAX},9093:(t,n,r)=>{function e(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:e,fromValues:function(t,n,r,e,o,a,s,u,i,c,l,f,h,M,m,I){return[t,n,r,e,o,a,s,u,i,c,l,f,h,M,m,I]}},Symbol.toStringTag,{value:"Module"}))},24770:(t,n,r)=>{r.d(n,{$I:()=>d,AU:()=>M,g7:()=>I,i4:()=>l,ui:()=>f,up:()=>b,vt:()=>c,yo:()=>m});var e=r(34727),o=r(58083),a=r(67026),s=r(82534),u=r(38954),i=r(51850);function c(t=b){return[t[0],t[1],t[2],t[3]]}function l(t,n,r=c()){return(0,u.c)(r,t),r[3]=n,r}function f(t,n=c()){const r=(0,o.l)(g,t);return p(n,(0,e.KJ)((0,a.Xd)(n,r))),n}function h(t,n,r=c()){return(0,a.x8)(g,t,d(t)),(0,a.x8)(_,n,d(n)),(0,a.lw)(g,_,g),p(r,(0,e.KJ)((0,a.Xd)(r,g)))}function M(t,n,r,e=c()){return l(i.Cw,t,E),l(i.JP,n,v),l(i.Cb,r,N),h(E,v,E),h(E,N,e),e}function m(t){return t}function I(t){return t[3]}function d(t){return(0,e.kU)(t[3])}function p(t,n){return t[3]=n,t}const b=[0,0,1,0],g=(0,s.vt)(),_=(0,s.vt)(),E=(c(),c()),v=c(),N=c()},29242:(t,n,r)=>{function e(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,e,o,a,s,u,i){return[t,n,r,e,o,a,s,u,i]}r.d(n,{fA:()=>o,vt:()=>e,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:o},Symbol.toStringTag,{value:"Module"}))},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>m,rq:()=>f,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),a=r(9093),s=r(82534),u=r(48163),i=r(51850),c=r(91829);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(u.vt)}static createVec3f64(){return new l(i.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(o.vt)}static createMat4f64(){return new l(a.vt)}static createQuatf64(){return new l(s.vt)}get test(){}}l.createVec2f64();const f=l.createVec3f64(),h=l.createVec4f64(),M=(l.createMat3f64(),l.createMat4f64()),m=l.createQuatf64()},38954:(t,n,r)=>{r.d(n,{A:()=>m,B:()=>M,C:()=>l,D:()=>f,E:()=>D,F:()=>F,H:()=>j,a:()=>q,b:()=>p,c:()=>s,d:()=>c,e:()=>S,f:()=>i,g:()=>d,h:()=>T,i:()=>u,j:()=>b,k:()=>_,l:()=>a,m:()=>A,n:()=>N,o:()=>x,q:()=>C,r:()=>v,s:()=>g,t:()=>y,u:()=>E,v:()=>O,w:()=>h,x:()=>L,y:()=>X,z:()=>I});var e=r(51850),o=r(34304);function a(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function i(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function l(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function f(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function I(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function d(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function p(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function g(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function _(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function E(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function v(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function N(t,n){const r=n[0],e=n[1],o=n[2];let a=r*r+e*e+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function T(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],u=r[1],i=r[2];return t[0]=o*i-a*u,t[1]=a*s-e*i,t[2]=e*u-o*s,t}function A(t,n,r,e){const o=n[0],a=n[1],s=n[2];return t[0]=o+e*(r[0]-o),t[1]=a+e*(r[1]-a),t[2]=s+e*(r[2]-s),t}function y(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*a+r[12],t[1]=r[1]*e+r[5]*o+r[9]*a+r[13],t[2]=r[2]*e+r[6]*o+r[10]*a+r[14],t}function x(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=e*r[0]+o*r[3]+a*r[6],t[1]=e*r[1]+o*r[4]+a*r[7],t[2]=e*r[2]+o*r[5]+a*r[8],t}function O(t,n,r){const e=r[0],o=r[1],a=r[2],s=r[3],u=n[0],i=n[1],c=n[2],l=o*c-a*i,f=a*u-e*c,h=e*i-o*u,M=o*h-a*f,m=a*l-e*h,I=e*f-o*l,d=2*s;return t[0]=u+l*d+2*M,t[1]=i+f*d+2*m,t[2]=c+h*d+2*I,t}const P=(0,e.vt)(),w=(0,e.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function D(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],a=r[2]-n[2];let s=e*e+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=e*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,z=l,R=f,F=b,L=g,j=a,X=_;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:i,angle:function(t,n){N(P,t),N(w,n);const r=S(P,w);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,a){const s=1-a,u=s*s,i=a*a,c=u*s,l=3*a*u,f=3*i*s,h=i*a;return t[0]=n[0]*c+r[0]*l+e[0]*f+o[0]*h,t[1]=n[1]*c+r[1]*l+e[1]*f+o[1]*h,t[2]=n[2]*c+r[2]*l+e[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:s,cross:T,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],u=r[1],i=r[2],c=o*i-a*u,l=a*s-e*i,f=e*u-o*s,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:D,dist:F,distance:b,div:R,divide:f,dot:S,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],a=t[2],s=n[0],u=n[1],i=n[2],c=(0,o.FD)();return Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(a-i)<=c*Math.max(1,Math.abs(a),Math.abs(i))},exactEquals:C,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,a){const s=a*a,u=s*(2*a-3)+1,i=s*(a-2)+a,c=s*(a-1),l=s*(3-2*a);return t[0]=n[0]*u+r[0]*i+e[0]*c+o[0]*l,t[1]=n[1]*u+r[1]*i+e[1]*c+o[1]*l,t[2]=n[2]*u+r[2]*i+e[2]*c+o[2]*l,t},inverse:v,len:j,length:a,lerp:A,max:I,min:m,mul:z,multiply:l,negate:E,normalize:N,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,a=2*r()-1,s=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(e)*s,t[1]=Math.sin(e)*s,t[2]=a*n,t},rotateX:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0],a[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),a[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),a[1]=o[1],a[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),a[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),a[2]=o[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:d,scaleAndAdd:p,set:u,sign:M,sqrDist:L,sqrLen:X,squaredDistance:g,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:c,transformMat3:x,transformMat4:y,transformQuat:O},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>b,extractMesh:()=>I,meshFeatureSetFromJSON:()=>m});var e=r(52106),o=r(53966),a=r(91869),s=r(5443),u=r(40036),i=r(16930),c=r(63579),l=r(20557),f=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function m(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const a=f.A.fromJSON(r);if(a.geometryType="mesh",!r.assetMaps)return a;const s=b(n,r.assetMaps),u=t.sourceSpatialReference??i.A.WGS84,c=r.globalIdFieldName,{outFields:l}=t,h=null!=l&&l.length>0?(M=l.includes("*")?null:new Set(l),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=I(t,c,u,n,s);a.features.push(new e.A({geometry:r,attributes:h(t)}))}return a}function I(t,n,r,e,o){const a=t.attributes[n],i=o.get(a);if(null==i||!t.geometry)return null;const l=(0,h.V)(t.attributes,r,e.transformFieldRoles),f=s.A.fromJSON(t.geometry);f.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),m=r.isGeographic?"local":"georeferenced",I=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(t.status!==d.COMPLETED)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return r}(i);return I?u.default.createWithExternalSource(l,I,{extent:f,transform:M,vertexSpace:m,unitConversionDisabled:!0}):u.default.createIncomplete(l,{extent:f,transform:M,vertexSpace:m})}var d,p;function b(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,s=e.assetType,u=e.assetHash,i=e.assetURL,c=e.conversionStatus,f=e.seqNo,h=(0,l.Fm)(s,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const m=(0,a.tE)(r,n,(()=>({files:new Map})));(0,a.tE)(m.files,o,(()=>({name:o,type:s,mimeType:h,status:g(c),parts:[]}))).parts[f]={hash:u,url:i}}return r}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return d.COMPLETED;case"INPROGRESS":return d.PENDING;default:return d.FAILED}}(p=d||(d={}))[p.FAILED=0]="FAILED",p[p.PENDING=1]="PENDING",p[p.COMPLETED=2]="COMPLETED"},44280:(t,n,r)=>{r.d(n,{EJ:()=>i,g7:()=>u,gr:()=>s});var e=r(34727),o=r(38954),a=r(51850);function s(t,n){return(0,o.e)(t,n)/(0,o.l)(t)}function u(t,n){const r=(0,o.e)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,e.XM)(r)}function i(t,n,r){(0,o.n)(c,t),(0,o.n)(l,n);const a=(0,o.e)(c,l),s=(0,e.XM)(a),u=(0,o.h)(c,c,l);return(0,o.e)(u,r)<0?2*Math.PI-s:s}const c=(0,a.vt)(),l=(0,a.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function s(){return o(1,0)}function u(){return o(0,1)}r.d(n,{Un:()=>i,fA:()=>o,vt:()=>e});const i=a(),c=s(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:i,UNIT_X:c,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:o,ones:a,unitX:s,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),a=r(51850);function s(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),s=Math.cos(n),u=r;return u[0]=-e,u[4]=-a*o,u[8]=s*o,u[12]=0,u[1]=o,u[5]=-a*e,u[9]=s*e,u[13]=0,u[2]=0,u[6]=s,u[10]=a,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=r(37539),i=r(21325);function c(t,n,r,e){const a=(0,u.Tp)(t,e);if(null==a)return!1;const c=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(c===m&&!l(m)&&(c!==u.rz.UNKNOWN||(0,i.aI)(t,e)))return(0,o.kN)(r,n),!0;if(l(m)){const t=u.w5[c][u.rz.LON_LAT],e=u.w5[u.rz.LON_LAT][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),s(f*h[0],f*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const I=l(c);if((m===u.rz.WEB_MERCATOR||m===u.rz.PLATE_CARREE||m===u.rz.WGS84||m===u.rz.CGCS2000)&&(c===u.rz.WGS84||I||c===u.rz.WEB_MERCATOR||c===u.rz.CGCS2000)){const t=u.w5[c][u.rz.LON_LAT],e=u.w5[u.rz.LON_LAT][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),I?function(t,n,r){s(t,n,r),(0,o.mg)(r,r)}(f*h[0],f*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function l(t){return t===u.rz.SPHERICAL_ECEF||t===u.rz.SPHERICAL_MARS_PCPF||t===u.rz.SPHERICAL_MOON_PCPF||t===u.rz.WGS84_ECEF}const f=(0,e.kU)(1),h=(0,a.vt)(),M=(0,a.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>s});var e=r(51850),o=r(80586),a=r(9762);function s(t,n,r,e){if((0,o.canProjectWithoutEngine)(t.spatialReference,r)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??e??0,(0,a.projectBuffer)(u,t.spatialReference,0,n,r,0)}const s=(0,o.tryProjectWithZConversion)(t,r);return!!s&&(n[0]=s?.x,n[1]=s?.y,n[2]=s?.z??e??0,!0)}const u=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>I,Xd:()=>l,Xr:()=>M,hZ:()=>p,lw:()=>f,t2:()=>x,x8:()=>c});var e=r(29242),o=r(82534),a=r(51850),s=r(34304),u=r(38954),i=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function l(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,s.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=r[0],i=r[1],c=r[2],l=r[3];return t[0]=e*l+s*u+o*c-a*i,t[1]=o*l+s*i+a*u-e*c,t[2]=a*l+s*c+e*i-o*u,t[3]=s*l-e*u-o*i-a*c,t}function h(t,n,r,e){const o=n[0],a=n[1],u=n[2],i=n[3];let c,l,f,h,M,m=r[0],I=r[1],d=r[2],p=r[3];return l=o*m+a*I+u*d+i*p,l<0&&(l=-l,m=-m,I=-I,d=-d,p=-p),1-l>(0,s.FD)()?(c=Math.acos(l),f=Math.sin(c),h=Math.sin((1-e)*c)/f,M=Math.sin(e*c)/f):(h=1-e,M=e),t[0]=h*o+M*m,t[1]=h*a+M*I,t[2]=h*u+M*d,t[3]=h*i+M*p,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function I(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),s=Math.cos(n),u=Math.sin(r),i=Math.cos(r),c=Math.sin(e),l=Math.cos(e);return t[0]=a*i*l-s*u*c,t[1]=s*u*l+a*i*c,t[2]=s*i*c-a*u*l,t[3]=s*i*l+a*u*c,t}const d=i.c,p=i.s,b=i.g,g=f,_=i.b,E=i.h,v=i.l,N=i.j,S=N,T=i.f,A=T,y=i.n,x=i.a,O=i.e,P=(0,a.vt)(),w=(0,a.fA)(1,0,0),C=(0,a.fA)(0,1,0),D=(0,o.vt)(),q=(0,o.vt)(),z=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:d,dot:E,equals:O,exactEquals:x,fromEuler:I,fromMat3:m,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r*r+e*e+o*o+a*a,u=s?1/s:0;return t[0]=-r*u,t[1]=-e*u,t[2]=-o*u,t[3]=a*u,t},len:S,length:N,lerp:v,mul:g,multiply:f,normalize:y,random:function(t){const n=s.Ov,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),u=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=u*Math.sin(2*Math.PI*o),t[3]=u*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i+s*u,t[1]=o*i+a*u,t[2]=a*i-o*u,t[3]=s*i-e*u,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i-a*u,t[1]=o*i+s*u,t[2]=a*i+e*u,t[3]=s*i-o*u,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i+o*u,t[1]=o*i-e*u,t[2]=a*i+s*u,t[3]=s*i-a*u,t},rotationTo:function(t,n,r){const e=(0,u.e)(n,r);return e<-.999999?((0,u.h)(P,w,n),(0,u.H)(P)<1e-6&&(0,u.h)(P,C,n),(0,u.n)(P,P),c(t,P,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,u.h)(P,n,r),t[0]=P[0],t[1]=P[1],t[2]=P[2],t[3]=1+e,y(t,t))},scale:_,set:p,setAxes:function(t,n,r,e){const o=z;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],y(t,m(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(D,n,o,a),h(q,r,e,a),h(t,D,q,2*a*(1-a)),t},sqrLen:A,squaredLength:T,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>m});var e,o=r(90237),a=r(25482),s=r(10107),u=(r(44208),r(53966),r(87811),r(40608)),i=r(58083),c=r(9093),l=r(67026),f=r(82534),h=r(51850),M=r(24770);let m=class extends a.A{static{e=this}constructor(t){super(t),this.translation=(0,h.vt)(),this.rotationAxis=(0,h.ci)(M.up),this.rotationAngle=0,this.scale=(0,h.fA)(1,1,1)}get rotation(){return(0,M.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,h.o8)((0,M.yo)(t)),this.rotationAngle=(0,M.g7)(t)}get localMatrix(){const t=(0,c.vt)();return(0,l.x8)(I,(0,M.yo)(this.rotation),(0,M.$I)(this.rotation)),(0,i.o1)(t,I,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,c.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,h.o8)(this.translation),rotationAxis:(0,h.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,h.o8)(this.scale)};return new e(t)}};(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"translation",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAxis",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAngle",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"scale",void 0),(0,o._)([(0,s.MZ)()],m.prototype,"rotation",null),(0,o._)([(0,s.MZ)()],m.prototype,"localMatrix",null),(0,o._)([(0,s.MZ)()],m.prototype,"localMatrixInverse",null),m=e=(0,o._)([(0,u.$)("esri.geometry.support.MeshTransform")],m);const I=(0,f.vt)()},77690:(t,n,r)=>{r.d(n,{B8:()=>u,Ge:()=>h,I0:()=>f,KC:()=>i,hZ:()=>a,hs:()=>l,lw:()=>c,mg:()=>s,z0:()=>o});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,s,u,i,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=s,t[6]=u,t[7]=i,t[8]=c,t}function s(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],l=n[8],f=l*s-u*c,h=-l*a+u*i,M=c*a-s*i;let m=r*f+e*h+o*M;return m?(m=1/m,t[0]=f*m,t[1]=(-l*e+o*c)*m,t[2]=(u*e-o*s)*m,t[3]=h*m,t[4]=(l*r-o*i)*m,t[5]=(-u*r+o*a)*m,t[6]=M*m,t[7]=(-c*r+e*i)*m,t[8]=(s*r-e*a)*m,t):null}function i(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],l=n[8];return t[0]=s*l-u*c,t[1]=o*c-e*l,t[2]=e*u-o*s,t[3]=u*i-a*l,t[4]=r*l-o*i,t[5]=o*a-r*u,t[6]=a*c-s*i,t[7]=e*i-r*c,t[8]=r*s-e*a,t}function c(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1],m=r[2],I=r[3],d=r[4],p=r[5],b=r[6],g=r[7],_=r[8];return t[0]=h*e+M*s+m*c,t[1]=h*o+M*u+m*l,t[2]=h*a+M*i+m*f,t[3]=I*e+d*s+p*c,t[4]=I*o+d*u+p*l,t[5]=I*a+d*i+p*f,t[6]=b*e+g*s+_*c,t[7]=b*o+g*u+_*l,t[8]=b*a+g*i+_*f,t}function l(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function f(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r+r,u=e+e,i=o+o,c=r*s,l=e*s,f=e*u,h=o*s,M=o*u,m=o*i,I=a*s,d=a*u,p=a*i;return t[0]=1-f-m,t[3]=l-p,t[6]=h+d,t[1]=l+p,t[4]=1-c-m,t[7]=M-I,t[2]=h-d,t[5]=M+I,t[8]=1-c-f,t}function h(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],m=n[12],I=n[13],d=n[14],p=n[15],b=r*u-e*s,g=r*i-o*s,_=r*c-a*s,E=e*i-o*u,v=e*c-a*u,N=o*c-a*i,S=l*I-f*m,T=l*d-h*m,A=l*p-M*m,y=f*d-h*I,x=f*p-M*I,O=h*p-M*d;let P=b*O-g*x+_*y+E*A-v*T+N*S;return P?(P=1/P,t[0]=(u*O-i*x+c*y)*P,t[1]=(i*A-s*O-c*T)*P,t[2]=(s*x-u*A+c*S)*P,t[3]=(o*x-e*O-a*y)*P,t[4]=(r*O-o*A+a*T)*P,t[5]=(e*A-r*x-a*S)*P,t[6]=(I*N-d*v+p*E)*P,t[7]=(d*_-m*N-p*g)*P,t[8]=(m*v-I*_+p*b)*P,t):null}function M(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const m=c,I=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:i,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],s=t[5],u=t[6],i=t[7],c=t[8];return n*(c*a-s*i)+r*(-c*o+s*u)+e*(i*o-a*u)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],i=t[5],c=t[6],l=t[7],f=t[8],h=n[0],M=n[1],m=n[2],I=n[3],d=n[4],p=n[5],b=n[6],g=n[7],_=n[8],E=(0,e.FD)();return Math.abs(r-h)<=E*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-M)<=E*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-m)<=E*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(s-I)<=E*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(u-d)<=E*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(i-p)<=E*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(c-b)<=E*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(l-g)<=E*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-_)<=E*Math.max(1,Math.abs(f),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},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)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],i=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+s*s+c*c))<=n&&Math.abs(1-(o*o+u*u+l*l))<=n&&Math.abs(1-(a*a+i*i+f*f))<=n},mul:m,multiply:c,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:h,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],s=n[5],u=n[6],i=n[8],c=n[9],l=n[10],f=l*s-u*c,h=-l*a+u*i,M=c*a-s*i,m=r*f+e*h+o*M;if(!m)return null;const I=1/m;return t[0]=f*I,t[1]=(-l*e+o*c)*I,t[2]=(u*e-o*s)*I,t[3]=h*I,t[4]=(l*r-o*i)*I,t[5]=(-u*r+o*a)*I,t[6]=M*I,t[7]=(-c*r+e*i)*I,t[8]=(s*r-e*a)*I,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(r),M=Math.cos(r);return t[0]=M*e+h*s,t[1]=M*o+h*u,t[2]=M*a+h*i,t[3]=M*s-h*e,t[4]=M*u-h*o,t[5]=M*i-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:l,scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:I,subtract:M,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=s,t[4]=u,t[5]=i,t[6]=h*e+M*s+c,t[7]=h*o+M*u+l,t[8]=h*a+M*i+f,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},77793:(t,n,r)=>{r.d(n,{V:()=>a,f:()=>s});var e=r(86738),o=r(73836);function a(t,n,r=u){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function s(t,n=u){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const u={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>l});var e=r(73941),o=r(16930),a=r(21325);const s=new o.A(e.fv),u=new o.A(e.FY),i=new o.A(e.LJ),c=new o.A(e.Ro);function l(t){const n=f.get(t);if(n)return n;let r=s;if(t)if(t===u)r=u;else if(t===i)r=i;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,a.tl)(n)||(0,a.tl)(e)?r=u:((0,a.ZL)(n)||(0,a.ZL)(e))&&(r=i);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=u:t===M&&(r=i)}}}return f.set(t,r),r}const f=new Map,h=u.wkt.toUpperCase(),M=i.wkt.toUpperCase()}}]);