@arcgis/core 4.31.0-next.20240708 → 4.31.0-next.20240710

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 (239) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{0975e54c50383375cc09.js → 14cf7411e8318a1bccb9.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{71852b8437ec66b9ef06.js → 2123ab24163a532ebc8d.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{c91b3800cf3891bf2d59.js → 252ff37bf5e12dae0b18.js} +1 -1
  5. package/assets/esri/core/workers/chunks/2799007b5f3f4a2e364c.js +51 -0
  6. package/assets/esri/core/workers/chunks/{ff5e6d823d512f87a527.js → 2dddb8a989b9c96572fe.js} +1 -1
  7. package/assets/esri/core/workers/chunks/34b5bab6239c7277f854.js +1 -0
  8. package/assets/esri/core/workers/chunks/543f9db420c99d429637.js +1 -0
  9. package/assets/esri/core/workers/chunks/{5089a12084a8a8fb93d8.js → 61e5179fb49866241128.js} +1 -1
  10. package/assets/esri/core/workers/chunks/632e3ba2b8a881df29a0.js +1 -0
  11. package/assets/esri/core/workers/chunks/63eb1cc923bb8dcb3cb3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{380e2654bc7e07163df0.js → 725a0eae5248a933db05.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{1cc4a89c96a36d6b3d52.js → 7767559d56d16b644655.js} +1 -1
  14. package/assets/esri/core/workers/chunks/7baf288a07401f9e972d.js +1 -0
  15. package/assets/esri/core/workers/chunks/{43e83f4d827f59ff556a.js → 8087288f00dfdcc479b9.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{a5fbe1c95e49093e5af4.js → 8cce4b218568638e6e64.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{c7e2a97cb7bcd153bcef.js → 8e326def543268f8a08e.js} +1 -1
  18. package/assets/esri/core/workers/chunks/92cb45b18e151db007dc.js +1 -0
  19. package/assets/esri/core/workers/chunks/b2e8cc76381077b78d4c.js +1 -0
  20. package/assets/esri/core/workers/chunks/b6a8132708afcd988fa9.js +1 -0
  21. package/assets/esri/core/workers/chunks/{b4d850e82a8ae902d684.js → c44cc686774ff53c0a94.js} +1 -1
  22. package/assets/esri/core/workers/chunks/c52701477405c1fb2072.js +1 -0
  23. package/assets/esri/core/workers/chunks/{9ed11b9202013ca001ee.js → cfc2a1858a8bbb284979.js} +2 -2
  24. package/assets/esri/core/workers/chunks/{9ed11b9202013ca001ee.js.LICENSE.txt → cfc2a1858a8bbb284979.js.LICENSE.txt} +1 -1
  25. package/assets/esri/core/workers/chunks/d9863289c69d2550cd49.js +1 -0
  26. package/assets/esri/core/workers/chunks/e1f4df3a5b0b31521b3c.js +1 -0
  27. package/assets/esri/core/workers/chunks/ee72a006e25e94a4cd4a.js +1039 -0
  28. package/assets/esri/core/workers/chunks/{61505947371cebab9cbe.js → fdebfe55cd097714ec11.js} +1 -1
  29. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +13 -18
  30. package/assets/esri/themes/dark/main.css +1 -1
  31. package/assets/esri/themes/light/main.css +1 -1
  32. package/assets/esri/themes/light/view.css +1 -1
  33. package/chunks/AtmosphereCompositing.glsl.js +6 -9
  34. package/chunks/BlendLayers.glsl.js +1 -7
  35. package/chunks/BlendWeights.glsl.js +81 -86
  36. package/chunks/Blur.glsl.js +1 -3
  37. package/chunks/ChapmanAtmosphere.glsl.js +3 -8
  38. package/chunks/CheckerBoard.glsl.js +3 -9
  39. package/chunks/Clouds.glsl.js +21 -10
  40. package/chunks/CloudsComposition.glsl.js +3 -7
  41. package/chunks/ColorMaterial.glsl.js +3 -9
  42. package/chunks/ComponentShader.glsl.js +41 -75
  43. package/chunks/Compositing.glsl.js +5 -7
  44. package/chunks/DefaultMaterial.glsl.js +68 -73
  45. package/chunks/EdgeDetect.glsl.js +29 -39
  46. package/chunks/EdgeShader.glsl.js +37 -60
  47. package/chunks/Fog.glsl.js +4 -9
  48. package/chunks/HUDCompositing.glsl.js +1 -3
  49. package/chunks/HUDMaterial.glsl.js +11 -20
  50. package/chunks/Heatmap.glsl.js +3 -11
  51. package/chunks/HeatmapDensity.glsl.js +12 -15
  52. package/chunks/HighlightApply.glsl.js +130 -174
  53. package/chunks/HighlightDownsample.glsl.js +29 -32
  54. package/chunks/ImageMaterial.glsl.js +11 -21
  55. package/chunks/LaserlinePath.glsl.js +6 -10
  56. package/chunks/Laserlines.glsl.js +8 -20
  57. package/chunks/LineCallout.glsl.js +91 -108
  58. package/chunks/LineMarker.glsl.js +62 -53
  59. package/chunks/Magnifier.glsl.js +4 -9
  60. package/chunks/MeasurementArrow.glsl.js +9 -15
  61. package/chunks/NativeLine.glsl.js +8 -12
  62. package/chunks/NoiseTextureAtlas.glsl.js +89 -86
  63. package/chunks/OITCompositing.glsl.js +8 -12
  64. package/chunks/OverlayCompositing.glsl.js +2 -4
  65. package/chunks/Path.glsl.js +31 -55
  66. package/chunks/Pattern.glsl.js +16 -20
  67. package/chunks/PointRenderer.glsl.js +39 -48
  68. package/chunks/Precipitation.glsl.js +22 -39
  69. package/chunks/RasterColorizer.glsl.js +25 -33
  70. package/chunks/RealisticTree.glsl.js +53 -65
  71. package/chunks/RibbonLine.glsl.js +31 -36
  72. package/chunks/SSAO.glsl.js +7 -10
  73. package/chunks/SSAOBlur.glsl.js +10 -14
  74. package/chunks/ShadedColorMaterial.glsl.js +12 -15
  75. package/chunks/ShadowCastAccumulate.glsl.js +6 -8
  76. package/chunks/ShadowCastVisualize.glsl.js +12 -18
  77. package/chunks/ShadowHighlight.glsl.js +49 -51
  78. package/chunks/SimpleAtmosphere.glsl.js +4 -13
  79. package/chunks/SlicePlaneMaterial.glsl.js +3 -7
  80. package/chunks/Stars.glsl.js +3 -7
  81. package/chunks/Terrain.glsl.js +20 -61
  82. package/chunks/TextureOnly.glsl.js +2 -4
  83. package/chunks/Viewshed.glsl.js +20 -38
  84. package/chunks/WaterSurface.glsl.js +34 -60
  85. package/core/accessorSupport/tracking.js +1 -1
  86. package/core/workers/registry.js +1 -1
  87. package/geometry/Circle.js +1 -1
  88. package/geometry/Polygon.js +1 -1
  89. package/geometry/Polyline.js +1 -1
  90. package/geometry/support/geodesicUtils.js +1 -1
  91. package/interfaces.d.ts +34 -4
  92. package/layers/WCSLayer.js +1 -1
  93. package/layers/mixins/ArcGISImageService.js +1 -1
  94. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  95. package/layers/support/SubtypeSublayer.js +1 -1
  96. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  97. package/layers/support/rasterDatasets/multidimensionalUtils.js +1 -1
  98. package/layers/support/rasterDatasets/wcsCoverageParser.js +1 -1
  99. package/package.json +3 -3
  100. package/support/revision.js +1 -1
  101. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  102. package/views/2d/engine/flow/styles/Particles.js +1 -1
  103. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  104. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  105. package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
  106. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  107. package/views/2d/engine/webgl/BitBlitRenderer.js +1 -1
  108. package/views/2d/engine/webgl/DefaultVertexAttributeLayouts.js +1 -1
  109. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  110. package/views/2d/engine/webgl/Overlay.js +1 -1
  111. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  112. package/views/2d/engine/webgl/Utils.js +1 -1
  113. package/views/2d/engine/webgl/VertexStream.js +1 -1
  114. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
  115. package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +1 -1
  116. package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
  117. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  118. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +1 -1
  119. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  120. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  121. package/views/2d/engine/webgl/shaderGraph/ShaderBuilder2D.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/techniques/FeatureInstanceStore.js +1 -1
  123. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  124. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  125. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  126. package/views/2d/layers/support/DebugOverlay.js +1 -1
  127. package/views/2d/magnifier/MagnifierView2D.js +1 -1
  128. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  129. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  130. package/views/3d/environment/LocalAtmosphere.js +1 -1
  131. package/views/3d/environment/MarsAtmosphere.js +1 -1
  132. package/views/3d/environment/Precipitation.js +1 -1
  133. package/views/3d/environment/Stars.js +1 -1
  134. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  135. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  136. package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
  137. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils.js +1 -1
  138. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  139. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  140. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  141. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  142. package/views/3d/layers/StreamLayerView3D.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  144. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  145. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +5 -0
  146. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +5 -0
  147. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +5 -0
  148. package/views/3d/layers/graphics/pipeline/PBFPointFeaturesView.js +5 -0
  149. package/views/3d/layers/graphics/pipeline/TestSymbol.js +5 -0
  150. package/views/3d/layers/graphics/pipeline/Tile.js +5 -0
  151. package/views/3d/layers/graphics/pipeline/Tile3DFetcher.js +5 -0
  152. package/views/3d/layers/graphics/pipeline/Tile3DProcessor.js +5 -0
  153. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  154. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  155. package/views/3d/layers/support/projectExtentUtils.js +1 -1
  156. package/views/3d/terrain/OverlayRenderer.js +1 -1
  157. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  158. package/views/3d/terrain/PatchRenderData.js +1 -1
  159. package/views/3d/terrain/TerrainRenderer.js +1 -1
  160. package/views/3d/terrain/TileCompositor.js +1 -1
  161. package/views/3d/webgl/ManagedFBObject.js +1 -1
  162. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  163. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  164. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  165. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js +3 -5
  166. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
  167. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +29 -59
  168. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +6 -12
  169. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +11 -11
  170. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +1 -1
  171. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +4 -7
  172. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +1 -1
  173. package/views/3d/webgl-engine/core/shaderLibrary/shading/TextureTransformUV.glsl.js +6 -6
  174. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +4 -4
  175. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +2 -4
  176. package/views/3d/webgl-engine/core/shaderLibrary/util/LocalFromScreenSpace.glsl.js +2 -2
  177. package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +1 -1
  178. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  179. package/views/3d/webgl-engine/effects/ScreenSpaceGeometry.js +1 -1
  180. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  181. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  182. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  183. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  184. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  185. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  186. package/views/3d/webgl-engine/effects/magnifier/MagnifierRenderNode.js +1 -1
  187. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  188. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  189. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  190. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  191. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  192. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  193. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  194. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  195. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  196. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  197. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  198. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  199. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  200. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  201. package/views/3d/webgl-engine/materials/DrawParameters.js +1 -1
  202. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  203. package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
  204. package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +1 -1
  205. package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +1 -1
  206. package/views/3d/webgl-engine/shaders/OITCompositing.glsl.js +1 -1
  207. package/views/SceneView.js +1 -1
  208. package/views/draw/support/Box.js +1 -1
  209. package/views/interactive/tooltip/Tooltip.js +1 -1
  210. package/views/interactive/tooltip/fields/fields.js +1 -1
  211. package/views/webgl/RenderingContext.js +1 -1
  212. package/views/webgl/Util.js +1 -1
  213. package/views/webgl/VertexArrayObject.js +1 -1
  214. package/views/webgl/enums.js +1 -1
  215. package/views/webgl/heatmapTextureUtils.js +1 -1
  216. package/views/webgl/testDoublePrecisionArithmetic.js +1 -1
  217. package/views/webgl/testFloatBufferBlend.js +1 -1
  218. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  219. package/widgets/ElevationProfile/ElevationProfileController.js +1 -1
  220. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  221. package/widgets/Feature/support/relatedFeatureUtils.js +1 -1
  222. package/widgets/FeatureForm.js +1 -1
  223. package/widgets/OrientedImageryViewer/constants.js +1 -1
  224. package/widgets/OrientedImageryViewer.js +1 -1
  225. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  226. package/widgets/UtilityNetworkTrace.js +1 -1
  227. package/widgets/support/TimezonePicker.js +1 -1
  228. package/assets/esri/core/workers/chunks/0cb2eb96ffb1dbed00eb.js +0 -1
  229. package/assets/esri/core/workers/chunks/0d6ed27fc9948f4ea061.js +0 -1
  230. package/assets/esri/core/workers/chunks/225b947ba4b2fcfd5630.js +0 -1
  231. package/assets/esri/core/workers/chunks/7c7c3068da3bf7467685.js +0 -1
  232. package/assets/esri/core/workers/chunks/812e18c65aa6e398c338.js +0 -1
  233. package/assets/esri/core/workers/chunks/85e5cdd723f68dec8c25.js +0 -1
  234. package/assets/esri/core/workers/chunks/a7e2ca5ede46395f0787.js +0 -1
  235. package/assets/esri/core/workers/chunks/aed0db145187d9eb52f2.js +0 -51
  236. package/assets/esri/core/workers/chunks/cf9a32a03b3d3b66effb.js +0 -1
  237. package/assets/esri/core/workers/chunks/d85c51abde781660b1f5.js +0 -1
  238. package/assets/esri/core/workers/chunks/e840e54455eb500b501d.js +0 -1098
  239. package/assets/esri/core/workers/chunks/fec53ce15ae52f8cb802.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3739],{68197:(e,t,r)=>{r.d(t,{A:()=>m});var n,a,i=r(40876),o=r(34727),s=r(56507);function l(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class c{static blendColors(e,t,r,n=new c){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return c.fromArray((0,i.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),a=parseInt(e.substring(3,4),16),i=5===e.length?15:parseInt(e.substring(4),16);return c.fromArray([r+16*r,n+16*n,a+16*a,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),a=parseInt(e.substring(5,7),16),i=7===e.length?255:parseInt(e.substring(7),16);return c.fromArray([r,n,a,i/255],t)}default:return 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 r=(0,i.V6)(e)?(0,i.TS)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}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,r=e?.digits??6,n=3===r||4===r,a=4===r||8===r,i=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${a?u(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}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=l(this.r),r=l(this.g),n=l(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}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=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}c.prototype.declaredClass="esri.Color",n=c||(c={}),(a=n.AlphaMode||(n.AlphaMode={}))[a.ALWAYS=0]="ALWAYS",a[a.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=c},73354:(e,t,r)=>{function n(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,a=n){if(e.length/n!==Math.ceil(t.length/a))return e;const i=e.length/n,o=r[0],s=r[1],l=r[2],d=r[4],u=r[5],c=r[6],m=r[8],h=r[9],f=r[10],g=r[12],y=r[13],T=r[14];let A=0,S=0;for(let r=0;r<i;r++){const r=t[A],i=t[A+1],p=t[A+2];e[S]=o*r+d*i+m*p+g,e[S+1]=s*r+u*i+h*p+y,e[S+2]=l*r+c*i+f*p+T,A+=a,S+=n}return e}function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,n=3,a=n){if(e.length/n!==Math.ceil(t.length/a))return;const i=e.length/n,o=r[0],s=r[1],l=r[2],d=r[3],u=r[4],c=r[5],m=r[6],h=r[7],f=r[8];let g=0,y=0;for(let r=0;r<i;r++){const r=t[g],i=t[g+1],T=t[g+2];e[y]=o*r+d*i+m*T,e[y+1]=s*r+u*i+h*T,e[y+2]=l*r+c*i+f*T,g+=a,y+=n}}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,n=3,a=n){const i=Math.min(e.length/n,t.length/a);let o=0,s=0;for(let l=0;l<i;l++)e[s]=r*t[o],e[s+1]=r*t[o+1],e[s+2]=r*t[o+2],o+=a,s+=n;return e}function d(e,t,r,n=3,a=n){const i=e.length/n;if(i!==Math.ceil(t.length/a))return e;let o=0,s=0;for(let l=0;l<i;l++)e[s]=t[o]+r[0],e[s+1]=t[o+1]+r[1],e[s+2]=t[o+2]+r[2],o+=a,s+=n;return e}function u(e,t){c(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r=3,n=r){const a=Math.min(e.length/r,t.length/n);let i=0,o=0;for(let s=0;s<a;s++){const a=t[i],s=t[i+1],l=t[i+2],d=a*a+s*s+l*l;if(d>0){const t=1/Math.sqrt(d);e[o]=t*a,e[o+1]=t*s,e[o+2]=t*l}i+=n,o+=r}}r.d(t,{a:()=>a,b:()=>d,c:()=>i,d:()=>n,e:()=>u,f:()=>l,n:()=>c,s:()=>s,t:()=>o}),r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:c,normalizeView:u,scale:l,scaleView:s,shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),a=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,d=0;for(let e=0;e<n;e++)a[d]=o[l]>>r,a[d+1]=o[l+1]>>r,a[d+2]=o[l+2]>>r,l+=s,d+=i},transformMat3:o,transformMat3View:i,transformMat4:a,transformMat4View:n,translate:d},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>i,V6:()=>a,c4:()=>o,qh:()=>d,z$:()=>l});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const a=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),n]}function d(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,a=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.substring(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&n,o>>=r,s[3]=a*l/255),l=o&n,o>>=r,s[2]=a*l,l=o&n,o>>=r,s[1]=a*l,l=o&n,o>>=r,s[0]=a*l,s}},69540:(e,t,r)=>{r.d(t,{O:()=>u,P:()=>c});var n=r(90237),a=r(69622),i=(r(44208),r(4718)),o=(r(53966),r(97768)),s=r(35666),l=r(88620),d=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,n={},a=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||l!==s.Gr.USER&&l!==s.Gr.DEFAULTS&&l!==s.Gr.WEB_MAP&&l!==s.Gr.WEB_SCENE)continue;const u=this[e];let c=null;c="function"==typeof d?d(u):"reference"===d?u:(0,i.TU)(u),null!=u&&null==c||(l===s.Gr.DEFAULTS?a.set(e,c):n[e]=c)}const d=new(0,Object.getPrototypeOf(this).constructor)(n);if(a.size){const e=(0,l.oY)(d)?.store;if(e)for(const[t,r]of a)e.set(t,r,s.Gr.DEFAULTS)}return d}};return t=(0,n._)([(0,d.$)("esri.core.Clonable")],t),t};let c=class extends(u(a.A)){};c=(0,n._)([(0,d.$)("esri.core.Clonable")],c)},95488:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(11406);class a extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},21818:(e,t,r)=>{function n(e){}r.d(t,{Xb:()=>n}),r(44208)},91829:(e,t,r)=>{function n(){return[0,0,0,0]}function a(e,t,r,n){return[e,t,r,n]}function i(){return a(1,1,1,1)}function o(){return a(1,0,0,0)}function s(){return a(0,1,0,0)}function l(){return a(0,0,1,0)}function d(){return a(0,0,0,1)}r.d(t,{fA:()=>a,vt:()=>n});const u=i(),c=o(),m=s(),h=l(),f=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_W:f,UNIT_X:c,UNIT_Y:m,UNIT_Z:h,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:function(e,t){return new Float64Array(e,t,4)},fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:a,ones:i,unitW:d,unitX:o,unitY:s,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},88930:(e,t,r)=>{r.d(t,{S1:()=>s,lL:()=>d,mi:()=>l,t:()=>u,vf:()=>o});var n=r(97770),a=r(56400),i=r(96285);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o=a.qU){const s=new i.oh((0,n.wj)(o)),l=i.c9.fromJSDate(e,{zone:s}),d="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),a=u(t,r,"milliseconds");return new Date(n+a)}function d(e,t,r=a.qU){const o=new i.oh((0,n.wj)(r)),s=i.c9.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,n=r-r%("decades"===t?10:100);return e.set({year:n}).toJSDate()}const l=c(t);return s.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},59456:(e,t,r)=>{r.d(t,{yR:()=>u});var n=r(56507),a=r(5443),i=r(91075),o=r(48526),s=r(86738),l=r(39829),d=r(82799);r(16930),r(50498),r(65864);const u={base:i.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}};(0,n.aq)(u)},4197:(e,t,r)=>{r.d(t,{Ns:()=>l,jh:()=>a,l5:()=>o,s:()=>s,xm:()=>i});var n=r(34275);function a(e,t=!1){return e<=n.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function i(e){return((0,n.cy)(e)?e.length:e.byteLength/8)<=n.y9?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function s(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function l(e){return Array.isArray(e)?new Float64Array(e):e}},95696:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),a=r(69540),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);let d=class extends((0,a.O)(i.oY)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,n._)([(0,s.e)({georeferenced:"georeferenced"},{readOnly:!0})],d.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],d.prototype,"origin",void 0),d=(0,n._)([(0,l.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],d);const u=d},18251:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),a=r(69540),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608),d=r(51850);let u=class extends((0,a.O)(i.oY)){constructor(e){super(e),this.type="local",this.origin=(0,d.vt)()}};(0,n._)([(0,s.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],u);const c=u},65864:(e,t,r)=>{r.d(t,{$B:()=>g,Bi:()=>h,Rg:()=>m,U9:()=>u,ZC:()=>d,fT:()=>c,rS:()=>f,xD:()=>T});var n=r(5443),a=r(91075),i=r(48526),o=r(86738),s=r(39829),l=r(82799);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function c(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function f(e){return null==e?null:e instanceof a.A?e:c(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):h(e)?s.A.fromJSON(e):u(e)?i.A.fromJSON(e):d(e)?n.A.fromJSON(e):null}function g(e){return e?c(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A};function T(e){return e&&y[e]||null}},50498:(e,t,r)=>{r.d(t,{Y:()=>i,g:()=>a});var n=r(66552);const a=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},97770:(e,t,r)=>{r.d(t,{J2:()=>p,Yq:()=>b,_v:()=>y,wj:()=>w});var n=r(66552),a=r(73444),i=r(56400);r(96285),i.n$;const o={year:"numeric",month:"numeric",day:"numeric"},s={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},u={hour:"numeric",minute:"numeric"},c={...u,second:"numeric"},m={hourCycle:"h23"},h={...u,...m},f={...c,...m},g={"short-date":o,"short-date-short-time":{...o,...u},"short-date-short-time-24":{...o,...h},"short-date-long-time":{...o,...c},"short-date-long-time-24":{...o,...f},"short-date-le":o,"short-date-le-short-time":{...o,...u},"short-date-le-short-time-24":{...o,...h},"short-date-le-long-time":{...o,...c},"short-date-le-long-time-24":{...o,...f},"long-month-day-year":s,"long-month-day-year-short-time":{...s,...u},"long-month-day-year-short-time-24":{...s,...h},"long-month-day-year-long-time":{...s,...c},"long-month-day-year-long-time-24":{...s,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...u},"day-short-month-year-short-time-24":{...l,...h},"day-short-month-year-long-time":{...l,...c},"day-short-month-year-long-time-24":{...l,...f},"long-date":d,"long-date-short-time":{...d,...u},"long-date-short-time-24":{...d,...h},"long-date-long-time":{...d,...c},"long-date-long-time-24":{...d,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":u,"long-time":c},y=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory"};let A=new WeakMap;const S=g["short-date-short-time"];function p(e){return g[e]}function b(e,t=S){return function(e){let t=A.get(e);if(!t){const r=(0,a.JK)(),n=T[r]||r,o=w(e.timeZone??i.qU),s={...e,timeZone:o};t=new Intl.DateTimeFormat(n,s),A.set(e,t)}return t}(t).format(e)}function w(e){switch(e){case i.qU:return i.N5;case i.L5:return i.n$;default:return e}}(0,a.Ml)((()=>{A=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>s,Ml:()=>m,Z0:()=>l,oQ:()=>u});var n=r(36563);let a;const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function o(){return i??globalThis.navigator?.language??"en"}function s(){return void 0===a&&(a=o()),a}function l(e=s()){const t=/^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(e);return t?.[1].toLowerCase()}const d=[];function u(e){return d.push(e),(0,n.hA)((()=>d.splice(d.indexOf(e),1)))}const c=[];function m(e){return c.push(e),(0,n.hA)((()=>c.splice(c.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();a!==e&&([...c].forEach((t=>t(e))),a=e,[...d].forEach((t=>t(e))))}))},79677:(e,t,r)=>{r.d(t,{A:()=>h});var n,a=r(90237),i=r(25482),o=r(88930),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),d=r(40608),u=r(43937),c=r(56400);let m=n=class extends i.oY{static get allTime(){return f}static get empty(){return g}static fromArray(e){return new n({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(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,a=e.end?.getTime()??e.end;return t===n&&r===a}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let a=this.end;if(a){const r=(0,o.lL)(a,e,t);a=a.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new n({start:r,end:a})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,s;return a>=t&&a<=r?o=a:t>=a&&t<=i&&(o=t),r>=a&&r<=i?s=r:i>=t&&i<=r&&(s=i),null==o||null==s||isNaN(o)||isNaN(s)?n.empty:new n({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const a=new n,{start:i,end:s}=this;return null!=i&&(a.start=(0,o.S1)(i,e,t,r)),null!=s&&(a.end=(0,o.S1)(s,e,t,r)),a}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 f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,a._)([(0,l.w)("end")],m.prototype,"readEnd",null),(0,a._)([(0,u.K)("end")],m.prototype,"writeEnd",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,a._)([(0,l.w)("start")],m.prototype,"readStart",null),(0,a._)([(0,u.K)("start")],m.prototype,"writeStart",null),m=n=(0,a._)([(0,d.$)("esri.time.TimeExtent")],m);const h=m,f=new m,g=new m({start:void 0,end:void 0})},56400:(e,t,r)=>{r.d(t,{ZS:()=>u,qU:()=>i,N5:()=>l,P6:()=>d,L5:()=>o,n$:()=>s});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=r(96285);const i="system",o="unknown",s="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone;function d(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?u(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t=i){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=i){if(!e||!n.has(e.timeZone))return t;const r=n.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=a.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${a.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}},2060:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>k,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>L,initialize:()=>B,interpretObbModificationResults:()=>_,process:()=>S,project:()=>M,setLegacySchema:()=>E,setModifications:()=>w,setModificationsSync:()=>U,test:()=>I,transformNormals:()=>C});var n,a,i=r(34727),o=r(16930),s=r(4197),l=r(95696),d=r(18251),u=r(73354);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(a||(a={}));var c=r(2741);function m(e){return(0,c.s)(`esri/libs/i3s/${e}`)}let h;var f,g,y,T,A;async function S(e){N=await O();const t=[e.geometryBuffer];return{result:P(N,e,t),transferList:t}}async function p(e){N=await O();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,a=N._malloc(n),i=new Uint8Array(N.HEAPU8.buffer,a,n);i.set(new Uint8Array(r));const o=N.dracoDecompressPointCloudData(a,i.byteLength);if(N._free(a),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function b(e){await O(),L(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function w(e){await O(),U(e)}async function E(e){N=await O(),N.setLegacySchema(e.context,e.jsonSchema)}async function M(e){const{localMatrix:t,origin:n,positions:a,vertexSpace:i,localMode:u}=e,c=o.A.fromJSON(e.inSpatialReference),m=o.A.fromJSON(e.outSpatialReference);let h;const[{projectBuffer:f},{initializeProjection:g}]=await Promise.all([Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,57251))]);await g(c,m);const y=[0,0,0];if(!f(n,c,0,y,m,0,1))throw new Error("Failed to project");if("georeferenced"===i.type&&null==i.origin){if(h=new Float64Array(a.length),!f(a,c,0,h,m,0,h.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===i.type?l.A.fromJSON(i):d.A.fromJSON(i),{project:n}=await Promise.all([r.e(3030),r.e(2141)]).then(r.bind(r,22141)),o=n({positions:a,transform:t?{localMatrix:t}:void 0,vertexSpace:e,inSpatialReference:c,outSpatialReference:m,localMode:u});if(!o)throw new Error("Failed to project");h=(0,s.Ns)(o)}const T=h.length,[A,S,p]=y;for(let e=0;e<T;e+=3)h[e]-=A,h[e+1]-=S,h[e+2]-=p;return{result:{projected:h,original:a,projectedOrigin:y},transferList:[h.buffer,a.buffer]}}async function C({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,u.t)(r,t,e),(0,i.or)(e)&&(0,u.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function k(e){G(e)}let v,N;function U(e){if(!N)return;const t=e.modifications,r=N._malloc(8*t.length),n=new Float64Array(N.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];N.setModifications(e.context,r,t.length,e.isGeodetic),N._free(r)}function P(e,t,r){const{context:a,globalTrafo:i,mbs:o,obbData:s,elevationOffset:l,geometryBuffer:d,geometryDescriptor:u,indexToVertexProjector:c,vertexToRenderProjector:m}=t,h=e._malloc(d.byteLength),f=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),g=new Uint8Array(e.HEAPU8.buffer,h,d.byteLength);g.set(new Uint8Array(d));const y=new Float64Array(e.HEAPU8.buffer,f,33);D(y,[NaN,NaN,NaN]);let T=y.byteOffset+3*y.BYTES_PER_ELEMENT,A=new Float64Array(y.buffer,T);D(A,i),T+=16*y.BYTES_PER_ELEMENT,A=new Float64Array(y.buffer,T),D(A,o),T+=4*y.BYTES_PER_ELEMENT,s&&(A=new Float64Array(y.buffer,T),D(A,s));const S=u,p={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:S.featureIndex},b=e.process(a,!!t.obbData,h,g.byteLength,S,p,f,l,c,m,t.normalReferenceFrame);if(e._free(f),e._free(h),b.error.length>0)throw new Error(`i3s.wasm: ${b.error}`);if(b.discarded)return null;const w=b.componentOffsets.length>0?b.componentOffsets.slice():null,E=b.featureIds.length>0?b.featureIds.slice():null,M=b.anchorIds.length>0?Array.from(b.anchorIds):null,C=b.anchors.length>0?Array.from(b.anchors):null,k=b.interleavedVertedData.slice().buffer,v=b.indicesType===n.Int16?new Uint16Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/2).slice():new Uint32Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/4).slice(),N=b.positions.slice(),U=b.positionIndicesType===n.Int16?new Uint16Array(b.positionIndices.buffer,b.positionIndices.byteOffset,b.positionIndices.byteLength/2).slice():new Uint32Array(b.positionIndices.buffer,b.positionIndices.byteOffset,b.positionIndices.byteLength/4).slice(),P={layout:t.layouts[0],interleavedVertexData:k,indices:v,hasColors:b.hasColors,hasModifications:b.hasModifications,positionData:{data:N,indices:U}};return E&&r.push(E.buffer),w&&r.push(w.buffer),r.push(k),r.push(v.buffer),r.push(N.buffer),r.push(U.buffer),{componentOffsets:w,featureIds:E,anchorIds:M,anchors:C,transformedGeometry:P,obb:b.obb,globalTrafo:i}}function _(e){return 0===e?g.Unmodified:1===e?g.PotentiallyModified:2===e?g.Culled:g.Unknown}function L(e){if(!N)return;const{context:t,buffer:r}=e,n=N._malloc(r.byteLength),a=r.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(N.HEAPU8.buffer,n,a),o=new Float64Array(r);i.set(o),N.filterOBBs(t,n,a),o.set(i),N._free(n)}function G(e){N&&0===N.destroy(e)&&(N=null)}function D(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function B(){N||await O()}function O(){return N?Promise.resolve(N):(v||(v=(h||(h=new Promise((e=>r.e(2980).then(r.bind(r,82980)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:m,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),h).then((e=>(N=e,v=null,N)))),v)}r(91829),r(76412),r(28030),function(e){e[e.Unmodified=0]="Unmodified",e[e.Culled=1]="Culled",e[e.NotChecked=2]="NotChecked"}(f||(f={})),function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(g||(g={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(T||(T={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(A||(A={}));const I={transform:(e,t)=>N&&P(N,e,t),destroy:G}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3739],{68197:(e,t,r)=>{r.d(t,{A:()=>m});var n,a,i=r(40876),o=r(34727),s=r(56507);function l(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class c{static blendColors(e,t,r,n=new c){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return c.fromArray((0,i.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),a=parseInt(e.substring(3,4),16),i=5===e.length?15:parseInt(e.substring(4),16);return c.fromArray([r+16*r,n+16*n,a+16*a,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),a=parseInt(e.substring(5,7),16),i=7===e.length?255:parseInt(e.substring(7),16);return c.fromArray([r,n,a,i/255],t)}default:return 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 r=(0,i.V6)(e)?(0,i.TS)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}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,r=e?.digits??6,n=3===r||4===r,a=4===r||8===r,i=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${a?u(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}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=l(this.r),r=l(this.g),n=l(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}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=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}c.prototype.declaredClass="esri.Color",n=c||(c={}),(a=n.AlphaMode||(n.AlphaMode={}))[a.ALWAYS=0]="ALWAYS",a[a.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=c},73354:(e,t,r)=>{function n(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,a=n){if(e.length/n!==Math.ceil(t.length/a))return e;const i=e.length/n,o=r[0],s=r[1],l=r[2],d=r[4],u=r[5],c=r[6],m=r[8],h=r[9],f=r[10],g=r[12],y=r[13],T=r[14];let A=0,S=0;for(let r=0;r<i;r++){const r=t[A],i=t[A+1],p=t[A+2];e[S]=o*r+d*i+m*p+g,e[S+1]=s*r+u*i+h*p+y,e[S+2]=l*r+c*i+f*p+T,A+=a,S+=n}return e}function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,n=3,a=n){if(e.length/n!==Math.ceil(t.length/a))return;const i=e.length/n,o=r[0],s=r[1],l=r[2],d=r[3],u=r[4],c=r[5],m=r[6],h=r[7],f=r[8];let g=0,y=0;for(let r=0;r<i;r++){const r=t[g],i=t[g+1],T=t[g+2];e[y]=o*r+d*i+m*T,e[y+1]=s*r+u*i+h*T,e[y+2]=l*r+c*i+f*T,g+=a,y+=n}}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,n=3,a=n){const i=Math.min(e.length/n,t.length/a);let o=0,s=0;for(let l=0;l<i;l++)e[s]=r*t[o],e[s+1]=r*t[o+1],e[s+2]=r*t[o+2],o+=a,s+=n;return e}function d(e,t,r,n=3,a=n){const i=e.length/n;if(i!==Math.ceil(t.length/a))return e;let o=0,s=0;for(let l=0;l<i;l++)e[s]=t[o]+r[0],e[s+1]=t[o+1]+r[1],e[s+2]=t[o+2]+r[2],o+=a,s+=n;return e}function u(e,t){c(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r=3,n=r){const a=Math.min(e.length/r,t.length/n);let i=0,o=0;for(let s=0;s<a;s++){const a=t[i],s=t[i+1],l=t[i+2],d=a*a+s*s+l*l;if(d>0){const t=1/Math.sqrt(d);e[o]=t*a,e[o+1]=t*s,e[o+2]=t*l}i+=n,o+=r}}r.d(t,{a:()=>a,b:()=>d,c:()=>i,d:()=>n,e:()=>u,f:()=>l,n:()=>c,s:()=>s,t:()=>o}),r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:c,normalizeView:u,scale:l,scaleView:s,shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),a=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,d=0;for(let e=0;e<n;e++)a[d]=o[l]>>r,a[d+1]=o[l+1]>>r,a[d+2]=o[l+2]>>r,l+=s,d+=i},transformMat3:o,transformMat3View:i,transformMat4:a,transformMat4View:n,translate:d},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>i,V6:()=>a,c4:()=>o,qh:()=>d,z$:()=>l});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const a=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),n]}function d(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,a=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.substring(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&n,o>>=r,s[3]=a*l/255),l=o&n,o>>=r,s[2]=a*l,l=o&n,o>>=r,s[1]=a*l,l=o&n,o>>=r,s[0]=a*l,s}},69540:(e,t,r)=>{r.d(t,{O:()=>u,P:()=>c});var n=r(90237),a=r(69622),i=(r(44208),r(4718)),o=(r(53966),r(97768)),s=r(35666),l=r(88620),d=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,n={},a=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||l!==s.Gr.USER&&l!==s.Gr.DEFAULTS&&l!==s.Gr.WEB_MAP&&l!==s.Gr.WEB_SCENE)continue;const u=this[e];let c=null;c="function"==typeof d?d(u):"reference"===d?u:(0,i.TU)(u),null!=u&&null==c||(l===s.Gr.DEFAULTS?a.set(e,c):n[e]=c)}const d=new(0,Object.getPrototypeOf(this).constructor)(n);if(a.size){const e=(0,l.oY)(d)?.store;if(e)for(const[t,r]of a)e.set(t,r,s.Gr.DEFAULTS)}return d}};return t=(0,n._)([(0,d.$)("esri.core.Clonable")],t),t};let c=class extends(u(a.A)){};c=(0,n._)([(0,d.$)("esri.core.Clonable")],c)},95488:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(11406);class a extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},21818:(e,t,r)=>{function n(e){}r.d(t,{Xb:()=>n}),r(44208)},91829:(e,t,r)=>{function n(){return[0,0,0,0]}function a(e,t,r,n){return[e,t,r,n]}function i(){return a(1,1,1,1)}function o(){return a(1,0,0,0)}function s(){return a(0,1,0,0)}function l(){return a(0,0,1,0)}function d(){return a(0,0,0,1)}r.d(t,{fA:()=>a,vt:()=>n});const u=i(),c=o(),m=s(),h=l(),f=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_W:f,UNIT_X:c,UNIT_Y:m,UNIT_Z:h,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:function(e,t){return new Float64Array(e,t,4)},fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:a,ones:i,unitW:d,unitX:o,unitY:s,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},88930:(e,t,r)=>{r.d(t,{S1:()=>s,lL:()=>d,mi:()=>l,t:()=>u,vf:()=>o});var n=r(97770),a=r(56400),i=r(96285);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o=a.qU){const s=new i.oh((0,n.wj)(o)),l=i.c9.fromJSDate(e,{zone:s}),d="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),a=u(t,r,"milliseconds");return new Date(n+a)}function d(e,t,r=a.qU){const o=new i.oh((0,n.wj)(r)),s=i.c9.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,n=r-r%("decades"===t?10:100);return e.set({year:n}).toJSDate()}const l=c(t);return s.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},59456:(e,t,r)=>{r.d(t,{yR:()=>u});var n=r(56507),a=r(5443),i=r(91075),o=r(48526),s=r(86738),l=r(39829),d=r(82799);r(16930),r(50498),r(65864);const u={base:i.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}};(0,n.aq)(u)},4197:(e,t,r)=>{r.d(t,{Ns:()=>l,jh:()=>a,l5:()=>o,s:()=>s,xm:()=>i});var n=r(34275);function a(e,t=!1){return e<=n.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function i(e){return((0,n.cy)(e)?e.length:e.byteLength/8)<=n.y9?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function s(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function l(e){return Array.isArray(e)?new Float64Array(e):e}},95696:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),a=r(69540),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);let d=class extends((0,a.O)(i.oY)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,n._)([(0,s.e)({georeferenced:"georeferenced"},{readOnly:!0})],d.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],d.prototype,"origin",void 0),d=(0,n._)([(0,l.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],d);const u=d},18251:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),a=r(69540),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608),d=r(51850);let u=class extends((0,a.O)(i.oY)){constructor(e){super(e),this.type="local",this.origin=(0,d.vt)()}};(0,n._)([(0,s.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],u);const c=u},65864:(e,t,r)=>{r.d(t,{$B:()=>g,Bi:()=>h,Rg:()=>m,U9:()=>u,ZC:()=>d,fT:()=>c,rS:()=>f,xD:()=>T});var n=r(5443),a=r(91075),i=r(48526),o=r(86738),s=r(39829),l=r(82799);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function c(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function f(e){return null==e?null:e instanceof a.A?e:c(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):h(e)?s.A.fromJSON(e):u(e)?i.A.fromJSON(e):d(e)?n.A.fromJSON(e):null}function g(e){return e?c(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A};function T(e){return e&&y[e]||null}},50498:(e,t,r)=>{r.d(t,{Y:()=>i,g:()=>a});var n=r(66552);const a=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},97770:(e,t,r)=>{r.d(t,{J2:()=>p,Yq:()=>b,_v:()=>y,wj:()=>w});var n=r(66552),a=r(73444),i=r(56400);r(96285),i.n$;const o={year:"numeric",month:"numeric",day:"numeric"},s={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},u={hour:"numeric",minute:"numeric"},c={...u,second:"numeric"},m={hourCycle:"h23"},h={...u,...m},f={...c,...m},g={"short-date":o,"short-date-short-time":{...o,...u},"short-date-short-time-24":{...o,...h},"short-date-long-time":{...o,...c},"short-date-long-time-24":{...o,...f},"short-date-le":o,"short-date-le-short-time":{...o,...u},"short-date-le-short-time-24":{...o,...h},"short-date-le-long-time":{...o,...c},"short-date-le-long-time-24":{...o,...f},"long-month-day-year":s,"long-month-day-year-short-time":{...s,...u},"long-month-day-year-short-time-24":{...s,...h},"long-month-day-year-long-time":{...s,...c},"long-month-day-year-long-time-24":{...s,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...u},"day-short-month-year-short-time-24":{...l,...h},"day-short-month-year-long-time":{...l,...c},"day-short-month-year-long-time-24":{...l,...f},"long-date":d,"long-date-short-time":{...d,...u},"long-date-short-time-24":{...d,...h},"long-date-long-time":{...d,...c},"long-date-long-time-24":{...d,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":u,"long-time":c},y=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory"};let A=new WeakMap;const S=g["short-date-short-time"];function p(e){return g[e]}function b(e,t=S){return function(e){let t=A.get(e);if(!t){const r=(0,a.JK)(),n=T[r]||r,o=w(e.timeZone??i.qU),s={...e,timeZone:o};t=new Intl.DateTimeFormat(n,s),A.set(e,t)}return t}(t).format(e)}function w(e){switch(e){case i.qU:return i.N5;case i.L5:return i.n$;default:return e}}(0,a.Ml)((()=>{A=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>s,Ml:()=>m,Z0:()=>l,oQ:()=>u});var n=r(36563);let a;const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function o(){return i??globalThis.navigator?.language??"en"}function s(){return void 0===a&&(a=o()),a}function l(e=s()){const t=/^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(e);return t?.[1].toLowerCase()}const d=[];function u(e){return d.push(e),(0,n.hA)((()=>d.splice(d.indexOf(e),1)))}const c=[];function m(e){return c.push(e),(0,n.hA)((()=>c.splice(c.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();a!==e&&([...c].forEach((t=>t(e))),a=e,[...d].forEach((t=>t(e))))}))},79677:(e,t,r)=>{r.d(t,{A:()=>h});var n,a=r(90237),i=r(25482),o=r(88930),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),d=r(40608),u=r(43937),c=r(56400);let m=n=class extends i.oY{static get allTime(){return f}static get empty(){return g}static fromArray(e){return new n({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(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,a=e.end?.getTime()??e.end;return t===n&&r===a}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let a=this.end;if(a){const r=(0,o.lL)(a,e,t);a=a.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new n({start:r,end:a})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,s;return a>=t&&a<=r?o=a:t>=a&&t<=i&&(o=t),r>=a&&r<=i?s=r:i>=t&&i<=r&&(s=i),null==o||null==s||isNaN(o)||isNaN(s)?n.empty:new n({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const a=new n,{start:i,end:s}=this;return null!=i&&(a.start=(0,o.S1)(i,e,t,r)),null!=s&&(a.end=(0,o.S1)(s,e,t,r)),a}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 f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,a._)([(0,l.w)("end")],m.prototype,"readEnd",null),(0,a._)([(0,u.K)("end")],m.prototype,"writeEnd",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,a._)([(0,l.w)("start")],m.prototype,"readStart",null),(0,a._)([(0,u.K)("start")],m.prototype,"writeStart",null),m=n=(0,a._)([(0,d.$)("esri.time.TimeExtent")],m);const h=m,f=new m,g=new m({start:void 0,end:void 0})},56400:(e,t,r)=>{r.d(t,{ZS:()=>u,qU:()=>i,N5:()=>l,P6:()=>d,L5:()=>o,n$:()=>s});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=r(96285);const i="system",o="unknown",s="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone;function d(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?u(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t=i){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=i){if(!e||!n.has(e.timeZone))return t;const r=n.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=a.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${a.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}},2060:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>k,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>L,initialize:()=>B,interpretObbModificationResults:()=>_,process:()=>S,project:()=>M,setLegacySchema:()=>E,setModifications:()=>w,setModificationsSync:()=>U,test:()=>I,transformNormals:()=>C});var n,a,i=r(34727),o=r(16930),s=r(4197),l=r(95696),d=r(18251),u=r(73354);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(a||(a={}));var c=r(2741);function m(e){return(0,c.s)(`esri/libs/i3s/${e}`)}let h;var f,g,y,T,A;async function S(e){N=await O();const t=[e.geometryBuffer];return{result:P(N,e,t),transferList:t}}async function p(e){N=await O();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,a=N._malloc(n),i=new Uint8Array(N.HEAPU8.buffer,a,n);i.set(new Uint8Array(r));const o=N.dracoDecompressPointCloudData(a,i.byteLength);if(N._free(a),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function b(e){await O(),L(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function w(e){await O(),U(e)}async function E(e){N=await O(),N.setLegacySchema(e.context,e.jsonSchema)}async function M(e){const{localMatrix:t,origin:n,positions:a,vertexSpace:i,localMode:u}=e,c=o.A.fromJSON(e.inSpatialReference),m=o.A.fromJSON(e.outSpatialReference);let h;const[{projectBuffer:f},{initializeProjection:g}]=await Promise.all([Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,57251))]);await g(c,m);const y=[0,0,0];if(!f(n,c,0,y,m,0,1))throw new Error("Failed to project");if("georeferenced"===i.type&&null==i.origin){if(h=new Float64Array(a.length),!f(a,c,0,h,m,0,h.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===i.type?l.A.fromJSON(i):d.A.fromJSON(i),{project:n}=await Promise.all([r.e(3030),r.e(2141)]).then(r.bind(r,22141)),o=n({positions:a,transform:t?{localMatrix:t}:void 0,vertexSpace:e,inSpatialReference:c,outSpatialReference:m,localMode:u});if(!o)throw new Error("Failed to project");h=(0,s.Ns)(o)}const T=h.length,[A,S,p]=y;for(let e=0;e<T;e+=3)h[e]-=A,h[e+1]-=S,h[e+2]-=p;return{result:{projected:h,original:a,projectedOrigin:y},transferList:[h.buffer,a.buffer]}}async function C({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,u.t)(r,t,e),(0,i.or)(e)&&(0,u.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function k(e){G(e)}let v,N;function U(e){if(!N)return;const t=e.modifications,r=N._malloc(8*t.length),n=new Float64Array(N.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];N.setModifications(e.context,r,t.length,e.isGeodetic),N._free(r)}function P(e,t,r){const{context:a,globalTrafo:i,mbs:o,obbData:s,elevationOffset:l,geometryBuffer:d,geometryDescriptor:u,indexToVertexProjector:c,vertexToRenderProjector:m}=t,h=e._malloc(d.byteLength),f=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),g=new Uint8Array(e.HEAPU8.buffer,h,d.byteLength);g.set(new Uint8Array(d));const y=new Float64Array(e.HEAPU8.buffer,f,33);D(y,[NaN,NaN,NaN]);let T=y.byteOffset+3*y.BYTES_PER_ELEMENT,A=new Float64Array(y.buffer,T);D(A,i),T+=16*y.BYTES_PER_ELEMENT,A=new Float64Array(y.buffer,T),D(A,o),T+=4*y.BYTES_PER_ELEMENT,s&&(A=new Float64Array(y.buffer,T),D(A,s));const S=u,p={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:S.featureIndex},b=e.process(a,!!t.obbData,h,g.byteLength,S,p,f,l,c,m,t.normalReferenceFrame);if(e._free(f),e._free(h),b.error.length>0)throw new Error(`i3s.wasm: ${b.error}`);if(b.discarded)return null;const w=b.componentOffsets.length>0?b.componentOffsets.slice():null,E=b.featureIds.length>0?b.featureIds.slice():null,M=b.anchorIds.length>0?Array.from(b.anchorIds):null,C=b.anchors.length>0?Array.from(b.anchors):null,k=b.interleavedVertedData.slice().buffer,v=b.indicesType===n.Int16?new Uint16Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/2).slice():new Uint32Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/4).slice(),N=b.positions.slice(),U=b.positionIndicesType===n.Int16?new Uint16Array(b.positionIndices.buffer,b.positionIndices.byteOffset,b.positionIndices.byteLength/2).slice():new Uint32Array(b.positionIndices.buffer,b.positionIndices.byteOffset,b.positionIndices.byteLength/4).slice(),P={layout:t.layouts[0],interleavedVertexData:k,indices:v,hasColors:b.hasColors,hasModifications:b.hasModifications,positionData:{data:N,indices:U}};return E&&r.push(E.buffer),w&&r.push(w.buffer),r.push(k),r.push(v.buffer),r.push(N.buffer),r.push(U.buffer),{componentOffsets:w,featureIds:E,anchorIds:M,anchors:C,transformedGeometry:P,obb:b.obb,globalTrafo:i}}function _(e){return 0===e?g.Unmodified:1===e?g.PotentiallyModified:2===e?g.Culled:g.Unknown}function L(e){if(!N)return;const{context:t,buffer:r}=e,n=N._malloc(r.byteLength),a=r.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(N.HEAPU8.buffer,n,a),o=new Float64Array(r);i.set(o),N.filterOBBs(t,n,a),o.set(i),N._free(n)}function G(e){N&&0===N.destroy(e)&&(N=null)}function D(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function B(){N||await O()}function O(){return N?Promise.resolve(N):(v||(v=(h||(h=new Promise((e=>r.e(2980).then(r.bind(r,82980)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:m,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),h).then((e=>(N=e,v=null,N)))),v)}r(91829),r(76412),r(708),function(e){e[e.Unmodified=0]="Unmodified",e[e.Culled=1]="Culled",e[e.NotChecked=2]="NotChecked"}(f||(f={})),function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(g||(g={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(T||(T={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(A||(A={}));const I={transform:(e,t)=>N&&P(N,e,t),destroy:G}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8902],{79901:(t,e,n)=>{n.d(e,{w:()=>h});var i=n(56507),r=n(96156);const s=Object.prototype.toString;function a(t){const e="__accessorMetadata__"in t?(0,i.dp)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return o.apply(this,t)}}function o(t,e,n,i){(0,r.z4)(t,e).cast=i}function h(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===s.call(t[0])?a(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,n)=>{(0,r.z4)(e,t).cast=e[n]}}(t[0]):void 0}},36005:(t,e,n)=>{n.d(e,{w:()=>r});var i=n(10107);function r(t,e,n){let r,s;return void 0===e||Array.isArray(e)?(s=t,n=e,r=[void 0]):(s=e,r=Array.isArray(t)?t:[t]),(t,e)=>{const a=t.constructor.prototype;r.forEach((r=>{const o=(0,i.rM)(t,r,s);o.read&&"object"==typeof o.read||(o.read={}),o.read.reader=a[e],n&&(o.read.source=(o.read.source||[]).concat(n))}))}}},5443:(t,e,n)=>{n.d(e,{A:()=>M});var i,r=n(90237),s=n(799),a=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),h=n(91075),l=n(86738),m=n(16930),u=n(94078),c=n(12176),x=n(21325),f=n(28735);function y(t,e,n){return null==e?n:null==n?e:t(e,n)}let p=i=class extends h.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,n,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?m.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:r??m.A.WGS84}}static fromBounds(t,e){return new i({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new l.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),"point"===t.type?(0,u.qz)(this,t):"extent"===t.type&&(0,u.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),n=this.width*e,i=this.height*e;if(this.xmin+=n,this.ymin+=i,this.xmax-=n,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,n=t.spatialReference;return e&&n&&!(0,x.aI)(e,n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),(0,c.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,n){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=n&&(this.zmin+=n,this.zmax+=n),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=y(Math.min,this.zmin,t.zmin),this.zmax=y(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=y(Math.min,this.mmin,t.mmin),this.mmax=y(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=y(Math.max,this.zmin,t.zmin),this.zmax=y(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=y(Math.max,this.mmin,t.mmin),this.mmax=y(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,x.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,n=this._getCM(t);if(n){const i=e.isWebMercator?(0,f.ci)(n):n;this.xmin-=n.x,this.xmax-=n.x,e.isWebMercator||(i.x=d(i.x,t).x),this.spatialReference=new m.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let e=null;const[n,i]=t.valid,r=this.xmin,s=this.xmax;return r>=n&&r<=i&&s>=n&&s<=i||(e=this.center),e}_normalize(t,e,n){const i=this.spatialReference;if(!i)return this;const r=n??(0,x.Vp)(i);if(null==r)return this;const s=this._getParts(r).map((t=>t.extent));if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let a=!0,o=!0;return s.forEach((t=>{t.hasZ||(a=!1),t.hasM||(o=!1)})),{rings:s.map((t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const n=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}if(o){const n=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}return e})),hasZ:a,hasM:o,spatialReference:i}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:n,ymax:r,spatialReference:s}=this,a=this.width,o=this.xmin,h=this.xmax;let l;t=t||(0,x.Vp)(s);const[m,u]=t.valid;l=d(this.xmin,t);const c=l.x,f=l.frameId;l=d(this.xmax,t);const y=l.x,p=l.frameId,M=c===y&&a>0;if(a>2*u){const t=new i(o<h?c:y,n,u,r,s),a=new i(m,n,o<h?y:c,r,s),l=new i(0,n,u,r,s),x=new i(m,n,0,r,s),d=[],M=[];t.contains(l)&&d.push(f),t.contains(x)&&M.push(f),a.contains(l)&&d.push(p),a.contains(x)&&M.push(p);for(let t=f+1;t<p;t++)d.push(t),M.push(t);e.push({extent:t,frameIds:[f]},{extent:a,frameIds:[p]},{extent:l,frameIds:d},{extent:x,frameIds:M})}else c>y||M?e.push({extent:new i(c,n,u,r,s),frameIds:[f]},{extent:new i(m,n,y,r,s),frameIds:[p]}):e.push({extent:new i(c,n,y,r,s),frameIds:[f]});this.cache._parts=e}const n=this.hasZ,r=this.hasM;if(n||r){const t={};n&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let n=0;n<e.length;n++)e[n].extent.set(t)}return e}};function d(t,e){const[n,i]=e.valid,r=2*i;let s,a=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,a=s):t<n&&(s=Math.ceil(Math.abs(t-n)/r),t+=s*r,a=-s),{x:t,frameId:a}}(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"center",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r._)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasM",null),(0,r._)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasZ",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"height",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"width",null),(0,r._)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],p.prototype,"xmin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"xmax",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymax",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmax",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmax",void 0),p=i=(0,r._)([(0,o.$)("esri.geometry.Extent")],p),p.prototype.toJSON.isDefaultToJSON=!0;const M=p},91075:(t,e,n)=>{n.d(e,{A:()=>m});var i=n(90237),r=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(36005)),o=n(40608),h=n(16930);let l=class extends r.oY{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=h.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof h.A)return t;if(null!=t){const n=new h.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,i._)([(0,s.MZ)()],l.prototype,"type",void 0),(0,i._)([(0,s.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,i._)([(0,s.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],l.prototype,"hasM",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],l.prototype,"hasZ",void 0),(0,i._)([(0,s.MZ)({type:h.A,json:{write:!0},value:h.A.WGS84})],l.prototype,"spatialReference",void 0),(0,i._)([(0,a.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,i._)([(0,o.$)("esri.geometry.Geometry")],l);const m=l},86738:(t,e,n)=>{n.d(e,{A:()=>w});var i=n(90237),r=n(53966),s=n(10107),a=n(79901),o=(n(87811),n(44208),n(36005)),h=n(40608),l=n(43937),m=n(56507),u=n(91075),c=n(16930),x=n(21325),f=n(28735);function y({x:t,y:e,spatialReference:n},i=[0,0]){if(n){if((0,x.K8)(n))return(0,f.tD)(t,e,i);if((0,x.EA)(n))return i[0]=t,i[1]=e,i}return null}const p=[0,0];var d;const M=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let z=d=class extends u.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",Object.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,i,s){let a;if(Array.isArray(t))a=t,s=e,t=a[0],e=a[1],n=a[2],i=a[3];else if(t&&"object"==typeof t){if(a=t,t=null!=a.x?a.x:a.longitude,e=null!=a.y?a.y:a.latitude,n=a.z,i=a.m,(s=a.spatialReference)&&"esri.geometry.SpatialReference"!==s.declaredClass&&(s=new c.A(s)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)r.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)r.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&s?.isWebMercator){const n=(0,f.je)(a.longitude,a.latitude,M);t=n[0],e=n[1]}}else g(n)?(s=n,n=null):g(i)&&(s=i,i=null);const o={x:t,y:e};return null==o.x&&null!=o.y?r.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&r.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=s&&(o.spatialReference=s),null!=n&&(o.z=n),null!=i&&(o.m=i),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return t=this,y(t,p)?.[1]??null;var t}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,f.je)(n,t,M)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return t=this,y(t,p)?.[0]??null;var t}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,f.je)(t,e,M)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new d;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return d.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:i,m:r,spatialReference:s}=this,{z:a,m:o}=t;let{x:h,y:l,spatialReference:m}=t;if(!s.equals(m))if(s.isWebMercator&&m.isWGS84)[h,l]=(0,f.je)(h,l),m=s;else{if(!s.isWGS84||!m.isWebMercator)return!1;[h,l]=(0,f.tD)(h,l),m=s}return e===h&&n===l&&i===a&&r===o&&s.wkid===m.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,x.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,i]=t.valid,r=2*i;let s;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,i=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+i*i+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i._)([(0,s.MZ)({readOnly:!0})],z.prototype,"cache",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],z.prototype,"hasM",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],z.prototype,"hasZ",null),(0,i._)([(0,s.MZ)({type:Number})],z.prototype,"latitude",null),(0,i._)([(0,s.MZ)({type:Number})],z.prototype,"longitude",null),(0,i._)([(0,s.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.w)((t=>isNaN(t)?t:(0,m.GB)(t)))],z.prototype,"x",void 0),(0,i._)([(0,l.K)("x")],z.prototype,"writeX",null),(0,i._)([(0,o.w)("x")],z.prototype,"readX",null),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],z.prototype,"y",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],z.prototype,"z",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],z.prototype,"m",void 0),z=d=(0,i._)([(0,h.$)("esri.geometry.Point")],z),z.prototype.toJSON.isDefaultToJSON=!0;const w=z},88582:(t,e,n)=>{var i;n.d(e,{_:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},19419:(t,e,n)=>{n.d(e,{HY:()=>c,Ie:()=>f,Rj:()=>u,VY:()=>o,Wc:()=>m,aI:()=>p,fA:()=>a,fT:()=>l,gR:()=>x,qv:()=>d,vt:()=>r,w1:()=>h}),n(44208),n(34727);var i=n(5443);function r(t=M){return[t[0],t[1],t[2],t[3]]}function s(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,i,s=r()){return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s}function o(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function h(t,e){return new i.A({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}function l(t,e,n){if(null!=e)if("length"in e)y(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else s(n,t)}function m(t){return function(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}(t)}function u(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function c(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function x(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function f(t){return t?s(t,d):r(d)}function y(t){return null!=t&&4===t.length}function p(t,e){return y(t)&&y(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const d=[1/0,1/0,-1/0,-1/0],M=[0,0,0,0]},94078:(t,e,n)=>{n.d(e,{CW:()=>o,F8:()=>h,gH:()=>a,m3:()=>m,qz:()=>r,rL:()=>s,t1:()=>u});const i=[0,0];function r(t,e){return null!=e&&l(t,e.x,e.y,e.z)}function s(t,e){if(!e.points||e.points.length)return!1;for(const n of e.points)if(!o(t,n))return!1;return!0}function a(t,e){const{xmin:n,ymin:i,zmin:r,xmax:s,ymax:a,zmax:o}=e;return t.hasZ&&e.hasZ?l(t,n,i,r)&&l(t,n,a,r)&&l(t,s,a,r)&&l(t,s,i,r)&&l(t,n,i,o)&&l(t,n,a,o)&&l(t,s,a,o)&&l(t,s,i,o):l(t,n,i)&&l(t,n,a)&&l(t,s,a)&&l(t,s,i)}function o(t,e){return l(t,e[0],e[1])}function h(t,e){return l(t,e[0],e[1],e[2])}function l(t,e,n,i){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function m(t,e){return i[1]=e.y,i[0]=e.x,function(t,e){return u(t.rings,e)}(t,i)}function u(t,e){if(!t)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let n=!1;for(let i=0,r=t.length;i<r;i++)n=c(n,t[i],e);return n}function c(t,e,n){const[i,r]=n;let s=t,a=0;for(let t=0,n=e.length;t<n;t++){a++,a===n&&(a=0);const[o,h]=e[t],[l,m]=e[a];(h<r&&m>=r||m<r&&h>=r)&&o+(r-h)/(m-h)*(l-o)<i&&(s=!s)}return s}},95108:(t,e,n)=>{n.d(e,{$3:()=>l,Ng:()=>o,R3:()=>s,gR:()=>a,m3:()=>u,t9:()=>h});var i=n(4576),r=n(88582);function s(t,e){const n=e[0]-t[0],i=e[1]-t[1];if(t.length>2&&e.length>2){const r=t[2]-e[2];return Math.sqrt(n*n+i*i+r*r)}return Math.sqrt(n*n+i*i)}function a(t,e,n,i){const[r,s]=e,[a,o]=n,[h,l]=i,m=h-a,u=l-o,c=m*m+u*u,x=(r-a)*m+(s-o)*u,f=Math.min(1,Math.max(0,x/c));return t[0]=a+m*f,t[1]=o+u*f,t}function o(t,e,n,i,r,s){let a=n,o=i,h=r-a,l=s-o;if(0!==h||0!==l){const n=((t-a)*h+(e-o)*l)/(h*h+l*l);n>1?(a=r,o=s):n>0&&(a+=h*n,o+=l*n)}return h=t-a,l=e-o,h*h+l*l}function h(t,e){return function(t,e,n){const i=t[0]+n*(e[0]-t[0]),r=t[1]+n*(e[1]-t[1]);return t.length>2&&e.length>2?[i,r,t[2]+n*(e[2]-t[2])]:[i,r]}(t,e,.5)}function l(t,e=r._.X,n=r._.Y){let i=0;const s=t.length;let a=t[0];for(let r=1;r<s;r++){const s=t[r];i+=(s[e]-a[e])*(s[n]+a[n]),a=s}if(!m(t)){const r=t[0];i+=(r[e]-a[e])*(r[n]+a[n])}return i>=0}function m(t){const e=t.length;return e<3||(0,i.aI)(t[0],t[e-1])}function u(t){if(!("rings"in t))return!1;let e=!1;for(const n of t.rings)m(n)||(n.push(n[0].slice()),e=!0);return e}n(21325)},12176:(t,e,n)=>{n.d(e,{A3:()=>p,Ql:()=>M,fA:()=>x,xB:()=>s,xK:()=>g});var i=n(94078);function r(t,e){return(0,i.qz)(t,e)}function s(t,e){const n=t.hasZ&&e.hasZ;let i,r,s;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(n&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function a(t,e){const{points:n,hasZ:r}=e,s=r?i.F8:i.CW;for(const e of n)if(s(t,e))return!0;return!1}const o=[0,0],h=[0,0],l=[0,0],m=[0,0],u=[o,h,l,m],c=[[l,o],[o,h],[h,m],[m,l]];function x(t,e){return function(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;for(const t of u)if((0,i.t1)(e,t))return!0;for(const n of e){if(!n.length)continue;let e=n[0];if((0,i.CW)(t,e))return!0;for(let r=1;r<n.length;r++){const s=n[r];if((0,i.CW)(t,s)||d(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function f(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;const n=e.paths;for(const e of n){if(!n.length)continue;let r=e[0];if((0,i.CW)(t,r))return!0;for(let n=1;n<e.length;n++){const s=e[n];if((0,i.CW)(t,s)||d(r,s,c))return!0;r=s}}return!1}const y=[0,0];function p(t){for(let e=0;e<t.length;e++){const n=t[e];for(let i=0;i<n.length-1;i++){const r=n[i],s=n[i+1];for(let n=e+1;n<t.length;n++)for(let e=0;e<t[n].length-1;e++){const i=t[n][e],a=t[n][e+1];if(M(r,s,i,a,y)&&!(y[0]===r[0]&&y[1]===r[1]||y[0]===i[0]&&y[1]===i[1]||y[0]===s[0]&&y[1]===s[1]||y[0]===a[0]&&y[1]===a[1]))return!0}}const i=n.length;if(!(i<=4))for(let t=0;t<i-3;t++){let e=i-1;0===t&&(e=i-2);const r=n[t],s=n[t+1];for(let i=t+2;i<e;i++){const t=n[i],e=n[i+1];if(M(r,s,t,e,y)&&!(y[0]===r[0]&&y[1]===r[1]||y[0]===t[0]&&y[1]===t[1]||y[0]===s[0]&&y[1]===s[1]||y[0]===e[0]&&y[1]===e[1]))return!0}}}return!1}function d(t,e,n){for(let i=0;i<n.length;i++)if(M(t,e,n[i][0],n[i][1]))return!0;return!1}function M(t,e,n,i,r){const[s,a]=t,[o,h]=e,[l,m]=n,[u,c]=i,x=u-l,f=s-l,y=o-s,p=c-m,d=a-m,M=h-a,g=p*y-x*M;if(0===g)return!1;const z=(x*d-p*f)/g,w=(y*d-M*f)/g;return z>=0&&z<=1&&w>=0&&w<=1&&(r&&(r[0]=s+z*(o-s),r[1]=a+z*(h-a)),!0)}function g(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return f}}},28735:(t,e,n)=>{n.d(e,{Cv:()=>p,Gh:()=>g,ci:()=>z,je:()=>d,jg:()=>u,tD:()=>M,y7:()=>y});var i=n(4718),r=n(16930),s=n(79258),a=n(21325);const o=57.29577951308232,h=.017453292519943;function l(t){return t*o}function m(t){return t*h}function u(t){return Math.PI/2-2*Math.atan(Math.exp(-t/s.$O.radius))}function c(t){return null!=t.wkid||null!=t.wkt}const x=[0,0];function f(t,e,n,i,r){const s=t,a=r;if(a.spatialReference=n,"x"in s&&"x"in a)[a.x,a.y]=e(s.x,s.y,x,i);else if("xmin"in s&&"xmin"in a)[a.xmin,a.ymin]=e(s.xmin,s.ymin,x,i),[a.xmax,a.ymax]=e(s.xmax,s.ymax,x,i);else if("paths"in s&&"paths"in a||"rings"in s&&"rings"in a){const t="paths"in s?s.paths:s.rings,n=[];let r;for(let s=0;s<t.length;s++){const a=t[s];r=[],n.push(r);for(let t=0;t<a.length;t++)r.push(e(a[t][0],a[t][1],[0,0],i)),a[t].length>2&&r[t].push(a[t][2]),a[t].length>3&&r[t].push(a[t][3])}"paths"in a?a.paths=n:a.rings=n}else if("points"in s&&"points"in a){const t=s.points,n=[];for(let r=0;r<t.length;r++)n[r]=e(t[r][0],t[r][1],[0,0],i),t[r].length>2&&n[r].push(t[r][2]),t[r].length>3&&n[r].push(t[r][3]);a.points=n}return r}function y(t,e){const n=t&&(c(t)?t:t.spatialReference),i=e&&(c(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!i)&&(!!(0,a.aI)(i,n)||(0,a.K8)(i)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(i))}function p(t,e){if(null==t)return null;const n=t.spatialReference,s=e&&(c(e)?e:e.spatialReference);return y(n,s)?(0,a.aI)(n,s)?(0,i.o8)(t):(0,a.K8)(s)?f(t,d,r.A.WebMercator,!1,(0,i.o8)(t)):(0,a.oT)(s)?f(t,M,r.A.WGS84,!1,(0,i.o8)(t)):null:null}function d(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const i=m(e);return n[0]=m(t)*s.$O.radius,n[1]=s.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function M(t,e,n=[0,0],i=!1){const r=l(t/s.$O.radius);return n[0]=i?r:r-360*Math.floor((r+180)/360),n[1]=l(Math.PI/2-2*Math.atan(Math.exp(-e/s.$O.radius))),n}function g(t,e=!1,n=(0,i.o8)(t)){return f(t,d,r.A.WebMercator,e,n)}function z(t,e=!1,n=(0,i.o8)(t)){return f(t,M,r.A.WGS84,e,n)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8902],{79901:(t,e,n)=>{n.d(e,{w:()=>h});var i=n(56507),r=n(96156);const s=Object.prototype.toString;function a(t){const e="__accessorMetadata__"in t?(0,i.dp)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return o.apply(this,t)}}function o(t,e,n,i){(0,r.z4)(t,e).cast=i}function h(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===s.call(t[0])?a(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,n)=>{(0,r.z4)(e,t).cast=e[n]}}(t[0]):void 0}},36005:(t,e,n)=>{n.d(e,{w:()=>r});var i=n(10107);function r(t,e,n){let r,s;return void 0===e||Array.isArray(e)?(s=t,n=e,r=[void 0]):(s=e,r=Array.isArray(t)?t:[t]),(t,e)=>{const a=t.constructor.prototype;r.forEach((r=>{const o=(0,i.rM)(t,r,s);o.read&&"object"==typeof o.read||(o.read={}),o.read.reader=a[e],n&&(o.read.source=(o.read.source||[]).concat(n))}))}}},5443:(t,e,n)=>{n.d(e,{A:()=>M});var i,r=n(90237),s=n(799),a=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),h=n(91075),l=n(86738),m=n(16930),u=n(94078),c=n(12176),x=n(21325),f=n(28735);function y(t,e,n){return null==e?n:null==n?e:t(e,n)}let p=i=class extends h.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,n,i,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?m.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:r??m.A.WGS84}}static fromBounds(t,e){return new i({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}static fromPoint(t){return new i({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new l.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new i;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),"point"===t.type?(0,u.qz)(this,t):"extent"===t.type&&(0,u.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return e&&n&&!e.equals(n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),n=this.width*e,i=this.height*e;if(this.xmin+=n,this.ymin+=i,this.xmax-=n,this.ymax-=i,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,n=t.spatialReference;return e&&n&&!(0,x.aI)(e,n)&&(0,f.y7)(e,n)&&(t=e.isWebMercator?(0,f.Gh)(t):(0,f.ci)(t,!0)),(0,c.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,n){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=n&&(this.zmin+=n,this.zmax+=n),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=y(Math.min,this.zmin,t.zmin),this.zmax=y(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=y(Math.min,this.mmin,t.mmin),this.mmax=y(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=y(Math.max,this.zmin,t.zmin),this.zmax=y(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=y(Math.max,this.mmin,t.mmin),this.mmax=y(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,x.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,n=this._getCM(t);if(n){const i=e.isWebMercator?(0,f.ci)(n):n;this.xmin-=n.x,this.xmax-=n.x,e.isWebMercator||(i.x=d(i.x,t).x),this.spatialReference=new m.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:i.x}))}return this}_getCM(t){let e=null;const[n,i]=t.valid,r=this.xmin,s=this.xmax;return r>=n&&r<=i&&s>=n&&s<=i||(e=this.center),e}_normalize(t,e,n){const i=this.spatialReference;if(!i)return this;const r=n??(0,x.Vp)(i);if(null==r)return this;const s=this._getParts(r).map((t=>t.extent));if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let a=!0,o=!0;return s.forEach((t=>{t.hasZ||(a=!1),t.hasM||(o=!1)})),{rings:s.map((t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const n=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}if(o){const n=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(n)}return e})),hasZ:a,hasM:o,spatialReference:i}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:n,ymax:r,spatialReference:s}=this,a=this.width,o=this.xmin,h=this.xmax;let l;t=t||(0,x.Vp)(s);const[m,u]=t.valid;l=d(this.xmin,t);const c=l.x,f=l.frameId;l=d(this.xmax,t);const y=l.x,p=l.frameId,M=c===y&&a>0;if(a>2*u){const t=new i(o<h?c:y,n,u,r,s),a=new i(m,n,o<h?y:c,r,s),l=new i(0,n,u,r,s),x=new i(m,n,0,r,s),d=[],M=[];t.contains(l)&&d.push(f),t.contains(x)&&M.push(f),a.contains(l)&&d.push(p),a.contains(x)&&M.push(p);for(let t=f+1;t<p;t++)d.push(t),M.push(t);e.push({extent:t,frameIds:[f]},{extent:a,frameIds:[p]},{extent:l,frameIds:d},{extent:x,frameIds:M})}else c>y||M?e.push({extent:new i(c,n,u,r,s),frameIds:[f]},{extent:new i(m,n,y,r,s),frameIds:[p]}):e.push({extent:new i(c,n,y,r,s),frameIds:[f]});this.cache._parts=e}const n=this.hasZ,r=this.hasM;if(n||r){const t={};n&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let n=0;n<e.length;n++)e[n].extent.set(t)}return e}};function d(t,e){const[n,i]=e.valid,r=2*i;let s,a=0;return t>i?(s=Math.ceil(Math.abs(t-i)/r),t-=s*r,a=s):t<n&&(s=Math.ceil(Math.abs(t-n)/r),t+=s*r,a=-s),{x:t,frameId:a}}(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"center",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r._)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasM",null),(0,r._)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],p.prototype,"hasZ",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"height",null),(0,r._)([(0,a.MZ)({readOnly:!0})],p.prototype,"width",null),(0,r._)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],p.prototype,"xmin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmin",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"xmax",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"ymax",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],p.prototype,"mmax",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],p.prototype,"zmax",void 0),p=i=(0,r._)([(0,o.$)("esri.geometry.Extent")],p),p.prototype.toJSON.isDefaultToJSON=!0;const M=p},91075:(t,e,n)=>{n.d(e,{A:()=>m});var i=n(90237),r=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(36005)),o=n(40608),h=n(16930);let l=class extends r.oY{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=h.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof h.A)return t;if(null!=t){const n=new h.A;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,i._)([(0,s.MZ)()],l.prototype,"type",void 0),(0,i._)([(0,s.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,i._)([(0,s.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],l.prototype,"hasM",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],l.prototype,"hasZ",void 0),(0,i._)([(0,s.MZ)({type:h.A,json:{write:!0},value:h.A.WGS84})],l.prototype,"spatialReference",void 0),(0,i._)([(0,a.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,i._)([(0,o.$)("esri.geometry.Geometry")],l);const m=l},86738:(t,e,n)=>{n.d(e,{A:()=>w});var i=n(90237),r=n(53966),s=n(10107),a=n(79901),o=(n(87811),n(44208),n(36005)),h=n(40608),l=n(43937),m=n(56507),u=n(91075),c=n(16930),x=n(21325),f=n(28735);function y({x:t,y:e,spatialReference:n},i=[0,0]){if(n){if((0,x.K8)(n))return(0,f.tD)(t,e,i);if((0,x.EA)(n))return i[0]=t,i[1]=e,i}return null}const p=[0,0];var d;const M=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let z=d=class extends u.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",Object.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,i,s){let a;if(Array.isArray(t))a=t,s=e,t=a[0],e=a[1],n=a[2],i=a[3];else if(t&&"object"==typeof t){if(a=t,t=null!=a.x?a.x:a.longitude,e=null!=a.y?a.y:a.latitude,n=a.z,i=a.m,(s=a.spatialReference)&&"esri.geometry.SpatialReference"!==s.declaredClass&&(s=new c.A(s)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)r.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)r.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&s?.isWebMercator){const n=(0,f.je)(a.longitude,a.latitude,M);t=n[0],e=n[1]}}else g(n)?(s=n,n=null):g(i)&&(s=i,i=null);const o={x:t,y:e};return null==o.x&&null!=o.y?r.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&r.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=s&&(o.spatialReference=s),null!=n&&(o.z=n),null!=i&&(o.m=i),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return t=this,y(t,p)?.[1]??null;var t}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,f.je)(n,t,M)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return t=this,y(t,p)?.[0]??null;var t}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,f.je)(t,e,M)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new d;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return d.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:i,m:r,spatialReference:s}=this,{z:a,m:o}=t;let{x:h,y:l,spatialReference:m}=t;if(!s.equals(m))if(s.isWebMercator&&m.isWGS84)[h,l]=(0,f.je)(h,l),m=s;else{if(!s.isWGS84||!m.isWebMercator)return!1;[h,l]=(0,f.tD)(h,l),m=s}return e===h&&n===l&&i===a&&r===o&&s.wkid===m.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,x.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[n,i]=t.valid,r=2*i;let s;return e>i?(s=Math.ceil(Math.abs(e-i)/r),e-=s*r):e<n&&(s=Math.ceil(Math.abs(e-n)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,i=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(n*n+i*i+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i._)([(0,s.MZ)({readOnly:!0})],z.prototype,"cache",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],z.prototype,"hasM",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],z.prototype,"hasZ",null),(0,i._)([(0,s.MZ)({type:Number})],z.prototype,"latitude",null),(0,i._)([(0,s.MZ)({type:Number})],z.prototype,"longitude",null),(0,i._)([(0,s.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.w)((t=>isNaN(t)?t:(0,m.GB)(t)))],z.prototype,"x",void 0),(0,i._)([(0,l.K)("x")],z.prototype,"writeX",null),(0,i._)([(0,o.w)("x")],z.prototype,"readX",null),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],z.prototype,"y",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],z.prototype,"z",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],z.prototype,"m",void 0),z=d=(0,i._)([(0,h.$)("esri.geometry.Point")],z),z.prototype.toJSON.isDefaultToJSON=!0;const w=z},88582:(t,e,n)=>{var i;n.d(e,{_:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},19419:(t,e,n)=>{n.d(e,{HY:()=>x,Ie:()=>y,Rj:()=>c,VY:()=>o,Wc:()=>m,aI:()=>d,fA:()=>a,fT:()=>l,gR:()=>f,gX:()=>u,qv:()=>M,vt:()=>r,w1:()=>h}),n(44208),n(34727);var i=n(5443);function r(t=g){return[t[0],t[1],t[2],t[3]]}function s(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,i,s=r()){return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s}function o(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function h(t,e){return new i.A({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}function l(t,e,n){if(null!=e)if("length"in e)p(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else s(n,t)}function m(t){return function(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}(t)}function u(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function c(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function x(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function f(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function y(t){return t?s(t,M):r(M)}function p(t){return null!=t&&4===t.length}function d(t,e){return p(t)&&p(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const M=[1/0,1/0,-1/0,-1/0],g=[0,0,0,0]},94078:(t,e,n)=>{n.d(e,{CW:()=>o,F8:()=>h,gH:()=>a,m3:()=>m,qz:()=>r,rL:()=>s,t1:()=>u});const i=[0,0];function r(t,e){return null!=e&&l(t,e.x,e.y,e.z)}function s(t,e){if(!e.points||e.points.length)return!1;for(const n of e.points)if(!o(t,n))return!1;return!0}function a(t,e){const{xmin:n,ymin:i,zmin:r,xmax:s,ymax:a,zmax:o}=e;return t.hasZ&&e.hasZ?l(t,n,i,r)&&l(t,n,a,r)&&l(t,s,a,r)&&l(t,s,i,r)&&l(t,n,i,o)&&l(t,n,a,o)&&l(t,s,a,o)&&l(t,s,i,o):l(t,n,i)&&l(t,n,a)&&l(t,s,a)&&l(t,s,i)}function o(t,e){return l(t,e[0],e[1])}function h(t,e){return l(t,e[0],e[1],e[2])}function l(t,e,n,i){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax&&(null==i||!t.hasZ||i>=t.zmin&&i<=t.zmax)}function m(t,e){return i[1]=e.y,i[0]=e.x,function(t,e){return u(t.rings,e)}(t,i)}function u(t,e){if(!t)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let n=!1;for(let i=0,r=t.length;i<r;i++)n=c(n,t[i],e);return n}function c(t,e,n){const[i,r]=n;let s=t,a=0;for(let t=0,n=e.length;t<n;t++){a++,a===n&&(a=0);const[o,h]=e[t],[l,m]=e[a];(h<r&&m>=r||m<r&&h>=r)&&o+(r-h)/(m-h)*(l-o)<i&&(s=!s)}return s}},95108:(t,e,n)=>{n.d(e,{$3:()=>l,Ng:()=>o,R3:()=>s,gR:()=>a,m3:()=>u,t9:()=>h});var i=n(4576),r=n(88582);function s(t,e){const n=e[0]-t[0],i=e[1]-t[1];if(t.length>2&&e.length>2){const r=t[2]-e[2];return Math.sqrt(n*n+i*i+r*r)}return Math.sqrt(n*n+i*i)}function a(t,e,n,i){const[r,s]=e,[a,o]=n,[h,l]=i,m=h-a,u=l-o,c=m*m+u*u,x=(r-a)*m+(s-o)*u,f=Math.min(1,Math.max(0,x/c));return t[0]=a+m*f,t[1]=o+u*f,t}function o(t,e,n,i,r,s){let a=n,o=i,h=r-a,l=s-o;if(0!==h||0!==l){const n=((t-a)*h+(e-o)*l)/(h*h+l*l);n>1?(a=r,o=s):n>0&&(a+=h*n,o+=l*n)}return h=t-a,l=e-o,h*h+l*l}function h(t,e){return function(t,e,n){const i=t[0]+n*(e[0]-t[0]),r=t[1]+n*(e[1]-t[1]);return t.length>2&&e.length>2?[i,r,t[2]+n*(e[2]-t[2])]:[i,r]}(t,e,.5)}function l(t,e=r._.X,n=r._.Y){let i=0;const s=t.length;let a=t[0];for(let r=1;r<s;r++){const s=t[r];i+=(s[e]-a[e])*(s[n]+a[n]),a=s}if(!m(t)){const r=t[0];i+=(r[e]-a[e])*(r[n]+a[n])}return i>=0}function m(t){const e=t.length;return e<3||(0,i.aI)(t[0],t[e-1])}function u(t){if(!("rings"in t))return!1;let e=!1;for(const n of t.rings)m(n)||(n.push(n[0].slice()),e=!0);return e}n(21325)},12176:(t,e,n)=>{n.d(e,{A3:()=>p,Ql:()=>M,fA:()=>x,xB:()=>s,xK:()=>g});var i=n(94078);function r(t,e){return(0,i.qz)(t,e)}function s(t,e){const n=t.hasZ&&e.hasZ;let i,r,s;if(t.xmin<=e.xmin){if(i=e.xmin,t.xmax<i)return!1}else if(i=t.xmin,e.xmax<i)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(n&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function a(t,e){const{points:n,hasZ:r}=e,s=r?i.F8:i.CW;for(const e of n)if(s(t,e))return!0;return!1}const o=[0,0],h=[0,0],l=[0,0],m=[0,0],u=[o,h,l,m],c=[[l,o],[o,h],[h,m],[m,l]];function x(t,e){return function(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;for(const t of u)if((0,i.t1)(e,t))return!0;for(const n of e){if(!n.length)continue;let e=n[0];if((0,i.CW)(t,e))return!0;for(let r=1;r<n.length;r++){const s=n[r];if((0,i.CW)(t,s)||d(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function f(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,l[0]=t.xmin,l[1]=t.ymin,m[0]=t.xmax,m[1]=t.ymin;const n=e.paths;for(const e of n){if(!n.length)continue;let r=e[0];if((0,i.CW)(t,r))return!0;for(let n=1;n<e.length;n++){const s=e[n];if((0,i.CW)(t,s)||d(r,s,c))return!0;r=s}}return!1}const y=[0,0];function p(t){for(let e=0;e<t.length;e++){const n=t[e];for(let i=0;i<n.length-1;i++){const r=n[i],s=n[i+1];for(let n=e+1;n<t.length;n++)for(let e=0;e<t[n].length-1;e++){const i=t[n][e],a=t[n][e+1];if(M(r,s,i,a,y)&&!(y[0]===r[0]&&y[1]===r[1]||y[0]===i[0]&&y[1]===i[1]||y[0]===s[0]&&y[1]===s[1]||y[0]===a[0]&&y[1]===a[1]))return!0}}const i=n.length;if(!(i<=4))for(let t=0;t<i-3;t++){let e=i-1;0===t&&(e=i-2);const r=n[t],s=n[t+1];for(let i=t+2;i<e;i++){const t=n[i],e=n[i+1];if(M(r,s,t,e,y)&&!(y[0]===r[0]&&y[1]===r[1]||y[0]===t[0]&&y[1]===t[1]||y[0]===s[0]&&y[1]===s[1]||y[0]===e[0]&&y[1]===e[1]))return!0}}}return!1}function d(t,e,n){for(let i=0;i<n.length;i++)if(M(t,e,n[i][0],n[i][1]))return!0;return!1}function M(t,e,n,i,r){const[s,a]=t,[o,h]=e,[l,m]=n,[u,c]=i,x=u-l,f=s-l,y=o-s,p=c-m,d=a-m,M=h-a,g=p*y-x*M;if(0===g)return!1;const z=(x*d-p*f)/g,w=(y*d-M*f)/g;return z>=0&&z<=1&&w>=0&&w<=1&&(r&&(r[0]=s+z*(o-s),r[1]=a+z*(h-a)),!0)}function g(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return f}}},28735:(t,e,n)=>{n.d(e,{Cv:()=>p,Gh:()=>g,ci:()=>z,je:()=>d,jg:()=>u,tD:()=>M,y7:()=>y});var i=n(4718),r=n(16930),s=n(79258),a=n(21325);const o=57.29577951308232,h=.017453292519943;function l(t){return t*o}function m(t){return t*h}function u(t){return Math.PI/2-2*Math.atan(Math.exp(-t/s.$O.radius))}function c(t){return null!=t.wkid||null!=t.wkt}const x=[0,0];function f(t,e,n,i,r){const s=t,a=r;if(a.spatialReference=n,"x"in s&&"x"in a)[a.x,a.y]=e(s.x,s.y,x,i);else if("xmin"in s&&"xmin"in a)[a.xmin,a.ymin]=e(s.xmin,s.ymin,x,i),[a.xmax,a.ymax]=e(s.xmax,s.ymax,x,i);else if("paths"in s&&"paths"in a||"rings"in s&&"rings"in a){const t="paths"in s?s.paths:s.rings,n=[];let r;for(let s=0;s<t.length;s++){const a=t[s];r=[],n.push(r);for(let t=0;t<a.length;t++)r.push(e(a[t][0],a[t][1],[0,0],i)),a[t].length>2&&r[t].push(a[t][2]),a[t].length>3&&r[t].push(a[t][3])}"paths"in a?a.paths=n:a.rings=n}else if("points"in s&&"points"in a){const t=s.points,n=[];for(let r=0;r<t.length;r++)n[r]=e(t[r][0],t[r][1],[0,0],i),t[r].length>2&&n[r].push(t[r][2]),t[r].length>3&&n[r].push(t[r][3]);a.points=n}return r}function y(t,e){const n=t&&(c(t)?t:t.spatialReference),i=e&&(c(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!i)&&(!!(0,a.aI)(i,n)||(0,a.K8)(i)&&(0,a.oT)(n)||(0,a.K8)(n)&&(0,a.oT)(i))}function p(t,e){if(null==t)return null;const n=t.spatialReference,s=e&&(c(e)?e:e.spatialReference);return y(n,s)?(0,a.aI)(n,s)?(0,i.o8)(t):(0,a.K8)(s)?f(t,d,r.A.WebMercator,!1,(0,i.o8)(t)):(0,a.oT)(s)?f(t,M,r.A.WGS84,!1,(0,i.o8)(t)):null:null}function d(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const i=m(e);return n[0]=m(t)*s.$O.radius,n[1]=s.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function M(t,e,n=[0,0],i=!1){const r=l(t/s.$O.radius);return n[0]=i?r:r-360*Math.floor((r+180)/360),n[1]=l(Math.PI/2-2*Math.atan(Math.exp(-e/s.$O.radius))),n}function g(t,e=!1,n=(0,i.o8)(t)){return f(t,d,r.A.WebMercator,e,n)}function z(t,e=!1,n=(0,i.o8)(t)){return f(t,M,r.A.WGS84,e,n)}}}]);
@@ -0,0 +1,51 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7016],{76412:(e,t,n)=>{n.d(t,{c:()=>y,d:()=>v,f:()=>A,g:()=>w,h:()=>b,k:()=>S,o:()=>P}),n(44208),n(53966);var r=n(34727),o=n(58083),i=n(38954),s=n(51850),a=n(87317),c=n(91829),l=n(34304),u=n(88582),d=n(71351),f=n(44280),p=n(32114);const h=y();function y(){return(0,c.vt)()}const g=a.e,m=a.e;function v(e,t){return(0,a.c)(t,e)}function b(e){return e[3]}function w(e){return e}function A(e,t,n,r){return(0,c.fA)(e,t,n,r)}function C(e,t,n){if(null==t)return!1;if(!T(e,t,M))return!1;let{t0:r,t1:o}=M;if((r<0||o<r&&o>0)&&(r=o),r<0)return!1;if(n){const{origin:e,direction:o}=t;n[0]=e[0]+o[0]*r,n[1]=e[1]+o[1]*r,n[2]=e[2]+o[2]*r}return!0}const M={t0:0,t1:0};function T(e,t,n){const{origin:r,direction:o}=t,i=U;i[0]=r[0]-e[0],i[1]=r[1]-e[1],i[2]=r[2]-e[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const a=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),c=a*a-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-e[3]*e[3]);if(c<0)return!1;const l=Math.sqrt(c);return n.t0=(-a-l)/(2*s),n.t1=(-a+l)/(2*s),!0}const U=(0,s.vt)();function S(e,t){return C(e,t,null)}function x(e,t,n){const r=p.rq.get(),s=p.Rc.get();(0,i.b)(r,t.origin,t.direction);const a=b(e);(0,i.b)(n,r,t.origin),(0,i.j)(n,n,1/(0,i.l)(n)*a);const c=I(e,t.origin),l=(0,f.g7)(t.origin,n);return(0,o.$0)(s,l+c,r),(0,i.h)(n,n,s),n}function O(e,t,n){const r=(0,i.f)(p.rq.get(),t,e),o=(0,i.j)(p.rq.get(),r,e[3]/(0,i.l)(r));return(0,i.g)(n,o,e)}function I(e,t){const n=(0,i.f)(p.rq.get(),t,e),o=(0,i.l)(n),s=b(e),a=s+Math.abs(s-o);return(0,r.XM)(s/a)}const _=(0,s.vt)();function E(e,t,n,o){const s=(0,i.f)(_,t,e);switch(n){case u._.X:{const e=(0,r.jU)(s,_)[2];return(0,i.s)(o,-Math.sin(e),Math.cos(e),0)}case u._.Y:{const e=(0,r.jU)(s,_),t=e[1],n=e[2],a=Math.sin(t);return(0,i.s)(o,-a*Math.cos(n),-a*Math.sin(n),Math.cos(t))}case u._.Z:return(0,i.n)(o,s);default:return}}function F(e,t){const n=(0,i.f)(D,t,e);return(0,i.l)(n)-e[3]}function P(e,t){const n=(0,i.a)(e,t),r=b(e);return n<=r*r}const D=(0,s.vt)(),N=y();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:h,altitudeAt:F,angleToSilhouette:I,axisAt:E,cameraFrustumCoverage:function(e,t,n,r){const o=b(e),i=o*o,s=t+.5*Math.PI,a=n*n+i-2*Math.cos(s)*n*o,c=Math.sqrt(a),l=a-i;if(l<=0)return.5;const u=Math.sqrt(l),d=Math.acos(u/c)-Math.asin(o/(c/Math.sin(s)));return Math.min(1,(d+.5*r)/r)},clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,n){return C(e,t,n)?n:((0,d.oC)(t,e,n),O(e,n,n))},closestPointOnSilhouette:x,containsPoint:P,copy:v,create:y,distanceToSilhouette:function(e,t){const n=(0,i.f)(p.rq.get(),t,e),r=(0,i.q)(n),o=e[3]*e[3];return Math.sqrt(Math.abs(r-o))},elevate:function(e,t,n){return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=e[3]+t,n},equals:m,exactEquals:g,fromCenterAndRadius:function(e,t){return(0,c.fA)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:A,getCenter:w,getExtent:function(e,t){return t},getRadius:b,intersectLine:function(e,t,n){const r=(0,d.Cr)(t,n);if(!T(e,r,M))return[];const{origin:o,direction:a}=r,{t0:c,t1:u}=M,f=t=>{const n=(0,s.vt)();return(0,i.r)(n,o,a,t),O(e,n,n)};return Math.abs(c-u)<(0,l.FD)()?[f(c)]:[f(c),f(u)]},intersectRay:C,intersectRayClosestSilhouette:function(e,t,n){if(C(e,t,n))return n;const r=x(e,t,p.rq.get());return(0,i.g)(n,t.origin,(0,i.j)(p.rq.get(),t.direction,(0,i.p)(t.origin,r)/(0,i.l)(t.direction))),n},intersectsRay:S,projectPoint:O,setAltitudeAt:function(e,t,n,r){const o=F(e,t),s=E(e,t,u._.Z,D),a=(0,i.j)(D,s,n-o);return(0,i.g)(r,t,a)},setExtent:function(e,t,n){return e!==n&&v(e,n),n},tmpSphere:N,union:function(e,t,n=(0,c.vt)()){const r=(0,i.p)(e,t),o=e[3],s=t[3];return r+s<o?((0,a.c)(n,e),n):r+o<s?((0,a.c)(n,t),n):((0,i.o)(n,e,t,(r+s-o)/(2*r)),n[3]=(r+o+s)/2,n)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},4341:(e,t,n)=>{n.d(t,{I:()=>o});var r=n(26390);class o{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,i));e++)this._items.push(this._allocator())}}const i=1024},65806:(e,t,n)=>{n.d(t,{g:()=>s});var r=n(51850),o=n(57251),i=n(9762);function s(e,t,n,r){if((0,o.canProjectWithoutEngine)(e.spatialReference,n)){a[0]=e.x,a[1]=e.y;const o=e.z;return a[2]=o??r??0,(0,i.projectBuffer)(a,e.spatialReference,0,t,n,0,1)}const s=(0,o.tryProjectWithZConversion)(e,n);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??r??0,!0)}const a=(0,r.vt)()},27993:(e,t,n)=>{n.d(t,{F:()=>i}),n(57251);var r=n(16930),o=n(65806);function i(e,t,n,r,i){return!(null==t||null==r||e.length<2)&&(s.x=e[0],s.y=e[1],s.z=e[2],s.spatialReference=t,(0,o.g)(s,n,r,i))}const s=function(e,t,n,r){return{x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r,type:"point"}}(0,0,0,r.A.WGS84)},71351:(e,t,n)=>{n.d(t,{Cr:()=>u,LV:()=>l,kb:()=>d,oC:()=>f,vt:()=>a}),n(4576);var r=n(4341),o=n(38954),i=n(51850),s=n(32114);function a(e){return e?c((0,i.o8)(e.origin),(0,i.o8)(e.direction)):c((0,i.vt)(),(0,i.vt)())}function c(e,t){return{origin:e,direction:t}}function l(e,t){const n=p.get();return n.origin=e,n.direction=t,n}function u(e,t,n=a()){return(0,o.c)(n.origin,e),(0,o.f)(n.direction,t,e),n}function d(e,t){const n=(0,o.b)(s.rq.get(),(0,o.n)(s.rq.get(),e.direction),(0,o.f)(s.rq.get(),t,e.origin));return(0,o.m)(n,n)}function f(e,t,n){const r=(0,o.m)(e.direction,(0,o.f)(n,t,e.origin));return(0,o.g)(n,e.origin,(0,o.j)(n,e.direction,r)),n}const p=new r.I((()=>a()));(0,i.vt)()},20437:(e,t,n)=>{n.d(t,{A:()=>g});var r,o=n(90237),i=n(66552),s=n(25482),a=n(10107),c=n(56507),l=(n(87811),n(44208),n(93223)),u=n(36005),d=n(40608),f=n(72088),p=n(98453);const h=new i.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=r=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?h.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,o._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,o._)([(0,a.MZ)()],y.prototype,"description",void 0),(0,o._)([(0,u.w)("description")],y.prototype,"readDescription",null),(0,o._)([(0,a.MZ)({types:f.gK,json:{read:{reader:f.rS},write:!0}})],y.prototype,"domain",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,o._)([(0,a.MZ)({type:c.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,o._)([(0,l.e)(p.m)],y.prototype,"type",void 0),(0,o._)([(0,a.MZ)()],y.prototype,"valueType",void 0),(0,o._)([(0,u.w)("valueType",["description"])],y.prototype,"readValueType",null),(0,o._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=r=(0,o._)([(0,d.$)("esri.layers.support.Field")],y);const g=y},72088:(e,t,n)=>{n.d(t,{rS:()=>T,gK:()=>M}),n(44208);var r,o=n(90237),i=n(4718),s=n(10107),a=(n(53966),n(93223)),c=n(40608),l=n(25482);n(87811);let u=r=class extends l.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,o._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=r=(0,o._)([(0,c.$)("esri.layers.support.CodedValue")],u);const d=new(n(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let f=class extends l.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,o._)([(0,a.e)(d)],f.prototype,"type",void 0),f=(0,o._)([(0,c.$)("esri.layers.support.Domain")],f);const p=f;var h;let y=h=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.MZ)({type:[u],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,o._)([(0,a.e)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=h=(0,o._)([(0,c.$)("esri.layers.support.CodedValueDomain")],y);const g=y;var m;n(49186);let v=m=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,o._)([(0,a.e)({inherited:"inherited"})],v.prototype,"type",void 0),v=m=(0,o._)([(0,c.$)("esri.layers.support.InheritedDomain")],v);const b=v;var w;let A=w=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],A.prototype,"maxValue",void 0),(0,o._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],A.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],A.prototype,"type",void 0),A=w=(0,o._)([(0,c.$)("esri.layers.support.RangeDomain")],A);const C=A,M={key:"type",base:p,typeMap:{range:A,"coded-value":g,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return C.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},98453:(e,t,n)=>{n.d(t,{m:()=>r});const r=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},46851:(e,t,n)=>{n.d(t,{MA:()=>f,m0:()=>m,wH:()=>y});var r=n(49186),o=n(4718),i=n(53966),s=n(37203),a=n(46540);const c=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function l(e,t,n){let o="",i=0;for(;i<n;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function u(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,a=b[s];n.fields[i.property]=a(e,r),r+=v[s].BYTES_PER_ELEMENT}return n.byteCount=r,n}function d(e,t,n){const o=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(l(n,a,i-1)),0!==n[a+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function f(e,t){return new(0,v[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function p(e,t,n){const i=null!=t.header?u(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],c=(0,o.o8)(t[n]);if(c.count=i.fields.count??0,"String"===c.valueType){if(c.byteOffset=a,c.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==c.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!w(c.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const e=A(c.valueType);a+=a%e!=0?e-a%e:0,c.byteOffset=a,c.byteCount=e*c.valuesPerElement*c.count}}a+=c.byteCount??0,s.entries[n]=c}return s.byteCount=a-s.byteOffset,s}function h(e,t,n){if(t!==e&&c().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function y(e,t){const n=u(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:s},i=g[e]||"_"+e;o.vertexAttributes[i]=n,r+=A(n.valueType)*n.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:a};o.faces[e]=n,r+=A(n.valueType)*n.valuesPerElement*a}}const c=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&c){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:c};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*c}}return h(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const g={position:a.r.POSITION,normal:a.r.NORMAL,color:a.r.COLOR,uv0:a.r.UV0,region:a.r.UVREGION};function m(e,t,n){if("lepcc-rgb"===e.encoding)return(0,s.mb)(t);if("lepcc-intensity"===e.encoding)return(0,s.Ax)(t);if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const o=p(t,e,n);h(o.byteOffset+o.byteCount,t.byteLength,"attribute");const i=o.entries.attributeValues||o.entries.objectIds;if(i){if("String"===i.valueType){const e=o.entries.attributeByteCounts,n=f(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,i);return i.timeEncoding?function(e,t,n){return d(e,t,n).map((e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t}))}(e.count,n,r):d(e.count,n,r)}return f(t,i)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const v={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},b={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function w(e){return v.hasOwnProperty(e)}function A(e){return w(e)?v[e].BYTES_PER_ELEMENT:0}},708:(e,t,n)=>{n.d(t,{Q7:()=>T,s1:()=>w}),n(59456);var r=n(78888),o=(n(4576),n(49186),n(44208),n(34275)),i=(n(58083),n(9093)),s=(n(38954),n(51850)),a=(n(57251),n(98764),n(27993),n(19419)),c=(n(76412),n(61956),n(46851));n(73941),n(48353),n(68197);var l,u=n(91829);!function(e){e[e.TRANSPARENT=0]="TRANSPARENT",e[e.OPAQUE=1]="OPAQUE"}(l||(l={})),n(21818),n(34727);const d=[1/256,1/65536,1/16777216,1/4294967296];!function(e,t=0){let n=0;for(let r=0;r<4;r++)n+=e[t+r]*d[r]}(new Uint8ClampedArray([255,255,255,255])),n(42583),n(49255),n(26835);var f,p,h,y,g=n(39589);n(46263),g.n,g.n,n(2597),n(15976),n(46540),(p=f||(f={}))[p.Uniform=0]="Uniform",p[p.Varying=1]="Varying",p[p.COUNT=2]="COUNT",n(96336),n(26425),n(40710),n(33079),n(20304),n(98353),n(35644),n(40095),function(e){e[e.Solid=0]="Solid",e[e.Sketch=1]="Sketch",e[e.Mixed=2]="Mixed",e[e.COUNT=3]="COUNT"}(h||(h={})),function(e){e[e.REGULAR=0]="REGULAR",e[e.SILHOUETTE=1]="SILHOUETTE"}(y||(y={}));(0,u.fA)(0,0,0,.2),l.OPAQUE;(0,u.fA)(0,0,0,.2),l.OPAQUE,n(66104);var m,v,b=n(57005);async function w(e,t,n,o,i,s,a,l){const u=[];for(const r of t)if(r&&i.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;u.push({url:t,storageInfo:r})}const d=await Promise.allSettled(u.map((e=>(0,r.A)(e.url,{responseType:"array-buffer",query:{...a,token:s},signal:l?.signal}).then((t=>(0,c.m0)(e.storageInfo,t.data)))))),f=[];for(const e of o){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const o=r.value;t[u[n].storageInfo.name]=M(o,e)}}f.push(t)}return f}n(16930),(0,a.vt)(),(v=m||(m={}))[v.OUTSIDE=0]="OUTSIDE",v[v.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",v[v.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",v[v.INSIDE=3]="INSIDE";const A=-32768,C=-(2**31);function M(e,t){if(!e)return null;const n=e[t];return(0,o.IY)(e)?n===A?null:n:(0,o._G)(e)?n===C?null:n:n!=n?null:n}function T(e){null!=e&&(e[3]=-1)}!function(e){h.Solid}({color:[0,0,0,0],opacity:0}),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,a.vt)(),(0,a.vt)(),new b.ab,(0,s.vt)(),new Array(72),(0,i.vt)()},37203:(e,t,n)=>{n.d(t,{Ax:()=>m,Me:()=>l,mb:()=>h});var r=n(49186);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function c(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function l(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:l}=s(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(l>1)throw new r.A("lepcc-decode-error","Unknown version");const d=c(t,n);if(n+=a.byteCount,d.sizeHi*2**32+d.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const f=new Float64Array(3*d.count),p=[],h=[],y=[],g=[];if(n=u(e,n,p),n=u(e,n,h),n=u(e,n,y),n=u(e,n,g),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,v=0;for(let e=0;e<p.length;e++){v+=p[e];let t=0;for(let n=0;n<h[e];n++){t+=y[m];const e=g[m];f[3*m]=Math.min(d.maxX,d.minX+2*d.errorX*t),f[3*m+1]=Math.min(d.maxY,d.minY+2*d.errorY*v),f[3*m+2]=Math.min(d.maxZ,d.minZ+2*d.errorZ*e),m++}}return{errorX:d.errorX,errorY:d.errorY,errorZ:d.errorZ,result:f}}function u(e,t,n){const r=[];t=d(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=d(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function d(e,t,n){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,c=!!(32&s),l=(192&s)>>6;let u=0;if(0===l)u=i.getUint32(1,o),t+=5;else if(1===l)u=i.getUint16(1,o),t+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");u=i.getUint8(1),t+=2}if(c)throw new r.A("lepcc-decode-error","LUT not implemented");const d=Math.ceil(u*a/8),f=new Uint8Array(e,t,d);let p=0,h=0,y=0;const g=-1>>>32-a;for(let e=0;e<u;e++){for(;h<a;)p|=f[y]<<h,h+=8,y+=1;n[e]=p&g,p>>>=a,h-=a,h+a>32&&(p|=f[y-1]>>8-h)}return t+y}const f={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function p(e,t){return{sizeLo:e.getUint32(t+f.sizeLo,o),sizeHi:e.getUint32(t+f.sizeHi,o),count:e.getUint32(t+f.count,o),colorMapCount:e.getUint16(t+f.colorMapCount,o),lookupMethod:e.getUint8(t+f.lookupMethod),compressionMethod:e.getUint8(t+f.compressionMethod)}}function h(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const c=p(t,n);if(n+=f.byteCount,c.sizeHi*2**32+c.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===c.lookupMethod||1===c.lookupMethod)&&0===c.compressionMethod){if(3*c.colorMapCount+c.count+n!==e.byteLength||c.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*c.colorMapCount),o=new Uint8Array(e,n+3*c.colorMapCount,c.count),i=new Uint8Array(3*c.count);for(let e=0;e<c.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===c.lookupMethod&&0===c.compressionMethod){if(3*c.count+n!==e.byteLength||0!==c.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(c.lookupMethod<=2&&1===c.compressionMethod){if(n+3!==e.byteLength||1!==c.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),s=t.getUint8(n+2),a=new Uint8Array(3*c.count);for(let e=0;e<c.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=s;return a}throw new r.A("lepcc-decode-error","Bad method "+c.lookupMethod+","+c.compressionMethod)}const y={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function g(e,t){return{sizeLo:e.getUint32(t+y.sizeLo,o),sizeHi:e.getUint32(t+y.sizeHi,o),count:e.getUint32(t+y.count,o),scaleFactor:e.getUint16(t+y.scaleFactor,o),bitsPerPoint:e.getUint8(t+y.bitsPerPoint),reserved:e.getUint8(t+y.reserved)}}function m(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const c=g(t,n);if(n+=y.byteCount,c.sizeHi*2**32+c.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Uint16Array(c.count);if(8===c.bitsPerPoint){if(c.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,c.count);for(let e=0;e<c.count;e++)l[e]=t[e]*c.scaleFactor}else if(16===c.bitsPerPoint){if(2*c.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,c.count);for(let e=0;e<c.count;e++)l[e]=t[e]*c.scaleFactor}else{const t=[];if(d(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<c.count;e++)l[e]=t[e]*c.scaleFactor}return l}},66104:(e,t,n)=>{var r,o;n.d(t,{k5:()=>r}),n(34727),(o=r||(r={}))[o.Multiply=1]="Multiply",o[o.Ignore=2]="Ignore",o[o.Replace=3]="Replace",o[o.Tint=4]="Tint"},42583:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(66104),o=n(2597);function i(e){e.vertex.code.add(o.H`
2
+ vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) {
3
+ float symbolAlpha = 0.0;
4
+
5
+ const float maxTint = 85.0;
6
+ const float maxReplace = 170.0;
7
+ const float scaleAlpha = 3.0;
8
+
9
+ if (symbolColor.a > maxReplace) {
10
+ colorMixMode = ${o.H.int(r.k5.Multiply)};
11
+ symbolAlpha = scaleAlpha * (symbolColor.a - maxReplace);
12
+ } else if (symbolColor.a > maxTint) {
13
+ colorMixMode = ${o.H.int(r.k5.Replace)};
14
+ symbolAlpha = scaleAlpha * (symbolColor.a - maxTint);
15
+ } else if (symbolColor.a > 0.0) {
16
+ colorMixMode = ${o.H.int(r.k5.Tint)};
17
+ symbolAlpha = scaleAlpha * symbolColor.a;
18
+ } else {
19
+ colorMixMode = ${o.H.int(r.k5.Multiply)};
20
+ symbolAlpha = 0.0;
21
+ }
22
+
23
+ return vec4(symbolColor.r, symbolColor.g, symbolColor.b, symbolAlpha);
24
+ }
25
+ `)}},49255:(e,t,n)=>{var r;function o(e){return e===r.Shadow||e===r.ShadowHighlight||e===r.ShadowExcludeHighlight||e===r.ViewshedShadow}function i(e){return function(e){return function(e){return a(e)||s(e)}(e)||c(e)}(e)||e===r.Normal}function s(e){return e===r.Highlight||e===r.ObjectAndLayerIdColor}function a(e){return e===r.Color}function c(e){return e===r.Depth}n.d(t,{PJ:()=>o,V:()=>r,XY:()=>i}),function(e){e[e.Color=0]="Color",e[e.Depth=1]="Depth",e[e.Normal=2]="Normal",e[e.Shadow=3]="Shadow",e[e.ShadowHighlight=4]="ShadowHighlight",e[e.ShadowExcludeHighlight=5]="ShadowExcludeHighlight",e[e.ViewshedShadow=6]="ViewshedShadow",e[e.Highlight=7]="Highlight",e[e.ObjectAndLayerIdColor=8]="ObjectAndLayerIdColor",e[e.COUNT=9]="COUNT"}(r||(r={}))},96336:(e,t,n)=>{n.d(t,{W:()=>r,Y:()=>c});var r,o,i=n(21818),s=n(2597),a=n(46540);function c(e,t){switch(t.normalType){case r.Compressed:e.attributes.add(a.r.NORMALCOMPRESSED,"vec2"),e.vertex.code.add(s.H`vec3 decompressNormal(vec2 normal) {
26
+ float z = 1.0 - abs(normal.x) - abs(normal.y);
27
+ return vec3(normal + sign(normal) * min(z, 0.0), z);
28
+ }
29
+ vec3 normalModel() {
30
+ return decompressNormal(normalCompressed);
31
+ }`);break;case r.Attribute:e.attributes.add(a.r.NORMAL,"vec3"),e.vertex.code.add(s.H`vec3 normalModel() {
32
+ return normal;
33
+ }`);break;case r.ScreenDerivative:e.fragment.code.add(s.H`vec3 screenDerivativeNormal(vec3 positionView) {
34
+ return normalize(cross(dFdx(positionView), dFdy(positionView)));
35
+ }`);break;default:(0,i.Xb)(t.normalType);case r.COUNT:case r.Ground:}}(o=r||(r={}))[o.Attribute=0]="Attribute",o[o.Compressed=1]="Compressed",o[o.Ground=2]="Ground",o[o.ScreenDerivative=3]="ScreenDerivative",o[o.COUNT=4]="COUNT"},26425:(e,t,n)=>{n.d(t,{u:()=>o});var r=n(2597);function o({code:e},t){t.doublePrecisionRequiresObfuscation?e.add(r.H`vec3 dpPlusFrc(vec3 a, vec3 b) {
36
+ return mix(a, a + b, vec3(notEqual(b, vec3(0))));
37
+ }
38
+ vec3 dpMinusFrc(vec3 a, vec3 b) {
39
+ return mix(vec3(0), a - b, vec3(notEqual(a, b)));
40
+ }
41
+ vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {
42
+ vec3 t1 = dpPlusFrc(hiA, hiB);
43
+ vec3 e = dpMinusFrc(t1, hiA);
44
+ vec3 t2 = dpMinusFrc(hiB, e) + dpMinusFrc(hiA, dpMinusFrc(t1, e)) + loA + loB;
45
+ return t1 + t2;
46
+ }`):e.add(r.H`vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {
47
+ vec3 t1 = hiA + hiB;
48
+ vec3 e = t1 - hiA;
49
+ vec3 t2 = ((hiB - e) + (hiA - (t1 - e))) + loA + loB;
50
+ return t1 + t2;
51
+ }`)}},26835:(e,t,n)=>{n(2597)},40710:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"vec3",o.c.Draw,((n,r,o,i)=>n.setUniform3fv(e,t(r,o,i))))}}},33079:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"vec3",o.c.Pass,((n,r,o)=>n.setUniform3fv(e,t(r,o))))}}},20304:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"float",o.c.Pass,((n,r,o)=>n.setUniform1f(e,t(r,o))))}}},98353:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"mat3",o.c.Draw,((n,r,o)=>n.setUniformMatrix3fv(e,t(r,o))))}}},35644:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"mat3",o.c.Pass,((n,r,o)=>n.setUniformMatrix3fv(e,t(r,o))))}}},40095:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"mat4",o.c.Pass,((n,r,o)=>n.setUniformMatrix4fv(e,t(r,o))))}}},15976:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(39589),o=n(46263);class i extends r.n{constructor(e,t){super(e,"sampler2D",o.c.Draw,((n,r,o)=>n.bindTexture(e,t(r,o))))}}},39589:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(46263);class o{constructor(e,t,n,o,i=null){if(this.name=e,this.type=t,this.arraySize=i,this.bind={[r.c.Pass]:null,[r.c.Draw]:null},o)switch(n){case r.c.Pass:this.bind[r.c.Pass]=o;break;case r.c.Draw:this.bind[r.c.Draw]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},2597:(e,t,n)=>{n.d(t,{H:()=>o,Y:()=>r});const r=class{};function o(e,...t){let n="";for(let r=0;r<t.length;r++)n+=e[r]+t[r];return n+=e[e.length-1],n}var i;(i=o||(o={})).int=function(e){return Math.round(e).toString()},i.float=function(e){return e.toPrecision(8)}},46263:(e,t,n)=>{var r;n.d(t,{c:()=>r}),function(e){e[e.Pass=0]="Pass",e[e.Draw=1]="Draw"}(r||(r={}))}}]);