@arcgis/core 4.31.0-next.20240821 → 4.31.0-next.20240823
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.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{24e38b7d1e9984a1472e.js → 033032715c3b04e0fc7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfc93bbd35cc4bfde7c0.js → 045336db17aae6eef68f.js} +1 -1
- package/assets/esri/core/workers/chunks/04de7b2937d5ca7c23e2.js +1 -0
- package/assets/esri/core/workers/chunks/12a4b3706162872c2b41.js +769 -0
- package/assets/esri/core/workers/chunks/142b1336533fa2ac470b.js +47 -0
- package/assets/esri/core/workers/chunks/185e596f86767c22f951.js +1 -0
- package/assets/esri/core/workers/chunks/{cd8d595d577b74817623.js → 1a4b3820136fb615b730.js} +1 -1
- package/assets/esri/core/workers/chunks/29b157b41dfa16da886b.js +1 -0
- package/assets/esri/core/workers/chunks/300b57846114fedd12be.js +1 -0
- package/assets/esri/core/workers/chunks/{3f75b7ed24b440b4508a.js → 3d5f37c2f355260e6dc6.js} +1 -1
- package/assets/esri/core/workers/chunks/{a9eba26d62b62592cee1.js → 42861d54a336146753d8.js} +1 -1
- package/assets/esri/core/workers/chunks/4c8deac4bf72a5e2597a.js +1 -0
- package/assets/esri/core/workers/chunks/52107d450c55450f5c04.js +274 -0
- package/assets/esri/core/workers/chunks/6d54222301b6d819c904.js +1 -0
- package/assets/esri/core/workers/chunks/{eb0f180ed20af220a82e.js → 6ddece9cd94b60efe3d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{566844774388a031fd74.js → 7125cff7fd288ff7bd5f.js} +1 -1
- package/assets/esri/core/workers/chunks/74de734a20b4cd2d7efb.js +1 -0
- package/assets/esri/core/workers/chunks/7712a23dc68220edaa64.js +1 -0
- package/assets/esri/core/workers/chunks/{ea561b2460e634a643fc.js → 7f35380809e7de99c302.js} +1 -1
- package/assets/esri/core/workers/chunks/7f3d49b667e9b46449e7.js +1 -0
- package/assets/esri/core/workers/chunks/8a2faf12938e811a9fc9.js +1 -0
- package/assets/esri/core/workers/chunks/{796c64b9caa1303e26ed.js → 8af503fa88c1668872eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{e2a6f77c05d0818e3f74.js → 8e42ce8305cefba5debc.js} +1 -1
- package/assets/esri/core/workers/chunks/93169e55e472fec4bc50.js +1 -0
- package/assets/esri/core/workers/chunks/985c1f42aab564008c0d.js +1 -0
- package/assets/esri/core/workers/chunks/9a32d9d720cb81abfba2.js +1 -0
- package/assets/esri/core/workers/chunks/b171d57b4d0142f687d0.js +1 -0
- package/assets/esri/core/workers/chunks/d5e376893cd47605a438.js +1 -0
- package/assets/esri/core/workers/chunks/df9daac7ea581e9e5ca4.js +1 -0
- package/assets/esri/core/workers/chunks/f11ae249cc8e995bbccc.js +1 -0
- package/assets/esri/core/workers/chunks/{65d8011cf756b066cade.js → f218316de8b4635653b2.js} +1 -1
- package/assets/esri/libs/linkchartlayout/lclayout.wasm +0 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/_core.scss +2 -0
- package/assets/esri/themes/base/widgets/_Grid.scss +0 -8
- package/assets/esri/themes/base/widgets/_GridControls.scss +86 -0
- package/assets/esri/themes/base/widgets/_Print.scss +13 -15
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Print/t9n/Print.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ar.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_bg.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_bs.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ca.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_cs.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_da.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_de.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_el.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_en.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_es.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_et.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_fi.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_fr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_he.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_hr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_hu.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_id.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_it.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ja.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ko.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_lt.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_lv.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_nb.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_nl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pt-BR.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pt-PT.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ro.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ru.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sk.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sv.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_th.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_tr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_uk.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_vi.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-CN.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-HK.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-TW.json +1 -1
- package/assets/esri/widgets/support/GridControls/t9n/GridControls.json +1 -0
- package/assets/esri/widgets/support/GridControls/t9n/GridControls_en.json +1 -0
- package/chunks/CloudsComposition.glsl.js +3 -3
- package/chunks/ComponentShader.glsl.js +53 -61
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/chunks/FocusAreaColor.glsl.js +12 -0
- package/chunks/FocusAreaMask.glsl.js +5 -0
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/Path.glsl.js +22 -17
- package/chunks/PointRenderer.glsl.js +3 -3
- package/chunks/Precipitation.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +1 -1
- package/chunks/WaterSurface.glsl.js +18 -18
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsPlanar.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/sphere.js +1 -1
- package/chunks/terrainUtilsPlanar.js +1 -1
- package/chunks/vec32.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/perspectiveUtils.js +1 -1
- package/exports/csv.js +1 -1
- package/geometry/operators/support/converterAPI.js +1 -1
- package/geometry/projection/localLinearScaleFactors.js +1 -1
- package/geometry/support/buffer/internals/Vec3.js +1 -1
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/coordinateSystem.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/polygonUtils.js +1 -1
- package/geometry/support/ray.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/geometry/support/sphereUtils.js +5 -0
- package/geometry/support/triangle.js +1 -1
- package/geometry/support/vector.js +1 -1
- package/interfaces.d.ts +68 -9
- package/layers/FocusAreaLayer.js +5 -0
- package/layers/VoxelLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/mixins/operationalLayerModuleMap.js +1 -1
- package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DMaterial.js +1 -1
- package/views/2d/engine/webgl/AFeatureTile.js +1 -1
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
- package/views/2d/grid/GridView2D.js +1 -1
- package/views/2d/grid/constants.js +5 -0
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/support/highlightGroupUtils.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/SliceVisualization.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/FieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
- package/views/3d/analysis/support/measurementUtils.js +1 -1
- package/views/3d/animation/pointToPoint/Animation.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/common.js +1 -1
- package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/lineObjectVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/FocusAreaLayerView3D.js +5 -0
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VoxelGraphic.js +5 -0
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
- package/views/3d/layers/graphics/labelPlacement.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/layers/i3s/LoDUtil.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/state/NearFarHeuristic.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/state/utils/viewUtils.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/cameraUtilsInternal.js +1 -1
- package/views/3d/support/geometryUtils/ray.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/mathUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -6
- package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +13 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +11 -13
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +1 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorRenderNodeTechnique.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskRenderNodeTechnique.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaParameters.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNode.js +5 -0
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
- package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
- package/views/3d/webgl-engine/lib/Path.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +8 -8
- package/views/3d/webgl-engine/shaders/Path.glsl.js +1 -1
- package/views/draw/support/helpMessageUtils3d.js +1 -1
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/input/gamepad/GamepadSource.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/GridSnappingEngine.js +5 -0
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingOptions.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/navigation/PanPlanarMomentumEstimator.js +1 -1
- package/views/support/angularMeasurementUtils.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/GridControls/GridControlsViewModel.d.ts +4 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/Print/CustomTemplate.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print/TemplateOptions.js +1 -1
- package/widgets/Print/utils.js +5 -0
- package/widgets/Print.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/support/GridControls/GridControlsViewModel.d.ts +4 -0
- package/widgets/support/GridControls/GridControlsViewModel.js +5 -0
- package/widgets/support/GridControls/VisibleElements.js +5 -0
- package/widgets/support/GridControls/gridUtils.js +5 -0
- package/widgets/support/GridControls.d.ts +4 -0
- package/widgets/support/GridControls.js +5 -0
- package/widgets/support/exportUtils.js +1 -1
- package/assets/esri/core/workers/chunks/14dc47896456e3c66b24.js +0 -1
- package/assets/esri/core/workers/chunks/2e88af8ab1e2713e7655.js +0 -1
- package/assets/esri/core/workers/chunks/3b204e75b613bcfbc8b9.js +0 -1
- package/assets/esri/core/workers/chunks/3e57f493d5a9d7aa7a48.js +0 -1
- package/assets/esri/core/workers/chunks/4e5ae81c612543130d9a.js +0 -1
- package/assets/esri/core/workers/chunks/4e746f8fca1d932dd684.js +0 -1
- package/assets/esri/core/workers/chunks/544eec13338b2d71680f.js +0 -1
- package/assets/esri/core/workers/chunks/5e7e12863cbed07451d0.js +0 -1
- package/assets/esri/core/workers/chunks/6c129767cda74aa672e0.js +0 -1
- package/assets/esri/core/workers/chunks/6f7c2d02fbd29870f6ee.js +0 -1
- package/assets/esri/core/workers/chunks/7802e70422f4151b95bc.js +0 -1
- package/assets/esri/core/workers/chunks/920557db2bd107a3c579.js +0 -1
- package/assets/esri/core/workers/chunks/9443b9ec03f25c723c2c.js +0 -47
- package/assets/esri/core/workers/chunks/991295637f51e8207efe.js +0 -1
- package/assets/esri/core/workers/chunks/ace8b6351ed35b03499b.js +0 -1
- package/assets/esri/core/workers/chunks/b1e4896acfae0bf9a9a8.js +0 -1
- package/assets/esri/core/workers/chunks/ca12b1c470e67ca7b30e.js +0 -1
- package/assets/esri/core/workers/chunks/cd9f48dcee2a1fc261ed.js +0 -774
- package/assets/esri/core/workers/chunks/d3626c01d2569d84e01e.js +0 -1
- package/assets/esri/core/workers/chunks/e5474bcde5b8fa037b56.js +0 -278
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1535,2141],{83349:(e,t,n)=>{function r(e,t,n){n=n||2;var r,i,a,l,u,c,p,h=t&&t.length,g=h?t[0]*n:e.length,y=o(e,0,g,n,!0),d=[];if(!y||y.next===y.prev)return d;if(h&&(y=f(e,t,y,n)),e.length>80*n){r=a=e[0],i=l=e[1];for(var m=n;m<g;m+=n)(u=e[m])<r&&(r=u),(c=e[m+1])<i&&(i=c),u>a&&(a=u),c>l&&(l=c);p=0!==(p=Math.max(a-r,l-i))?1/p:0}return s(y,d,n,r,i,p),d}function o(e,t,n,r,o){var i,s;if(o===F(e,t,n,r)>0)for(i=t;i<n;i+=r)s=N(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=N(i,e[i],e[i+1],s);if(s&&M(s,s.next)){var a=s.next;C(s),s=a}return s}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!M(r,r.next)&&0!==w(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(C(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function s(e,t,n,r,o,f,p){if(e){!p&&f&&d(e,r,o,f);for(var h,g,y=e;e.prev!==e.next;)if(h=e.prev,g=e.next,f?l(e,r,o,f):a(e))t.push(h.i/n),t.push(e.i/n),t.push(g.i/n),C(e),e=g.next,y=g.next;else if((e=g)===y){p?1===p?s(e=u(i(e),t,n),t,n,r,o,f,2):2===p&&c(e,t,n,r,o,f):s(i(e),t,n,r,o,f,1);break}}}function a(e){var t=e.prev,n=e,r=e.next;if(w(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(v(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&w(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function l(e,t,n,r){var o=e.prev,i=e,s=e.next;if(w(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,u=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,c=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,f=m(a,l,t,n,r),p=m(u,c,t,n,r),h=e.prevZ,g=e.nextZ;h&&h.z>=f&&g&&g.z<=p;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&w(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;g&&g.z<=p;){if(g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&w(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(e,t,n){var r=e;do{var o=r.prev,s=r.next.next;!M(o,s)&&b(o,r,r.next,s)&&S(o,s)&&S(s,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(s.i/n),C(r),C(r.next),r=e=s),r=r.next}while(r!==e);return i(r)}function c(e,t,n,r,o,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&A(l,u)){var c=R(l,u);return l=i(l,l.next),c=i(c,c.next),s(l,t,n,r,o,a),void s(c,t,n,r,o,a)}u=u.next}l=l.next}while(l!==e)}function f(e,t,n,r){var s,a,l,u=[];for(s=0,a=t.length;s<a;s++)(l=o(e,t[s]*r,s<a-1?t[s+1]*r:e.length,r,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(p),s=0;s<u.length;s++)n=i(n=g(u[s],n),n.next);return n}function p(e,t){return e.x-t.x}function h(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,u=n,c=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=c&&o!==r.x&&v(i<f?o:s,i,c,f,i<f?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),S(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&y(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t);if(!n)return t;var r=R(n,e),o=i(n,n.next);let s=h(r);return i(s,s.next),o=h(o),h(t===n?o:t)}function y(e,t){return w(e.prev,e,t.prev)<0&&w(t.next,e,e.next)<0}function d(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,u=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<u&&(a++,r=r.nextZ);t++);for(l=u;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(s>1)}(o)}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function v(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function A(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&b(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(S(e,t)&&S(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(w(e.prev,e,t.prev)||w(e,t.prev,t))||M(e,t)&&w(e.prev,e,e.next)>0&&w(t.prev,t,t.next)>0)}function w(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function M(e,t){return e.x===t.x&&e.y===t.y}function b(e,t,n,r){var o=_(w(e,t,n)),i=_(w(e,t,r)),s=_(w(n,r,e)),a=_(w(n,r,t));return o!==i&&s!==a||!(0!==o||!T(e,n,t))||!(0!==i||!T(e,r,t))||!(0!==s||!T(n,e,r))||!(0!==a||!T(n,t,r))}function T(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function S(e,t){return w(e.prev,e,e.next)<0?w(e,t,e.next)>=0&&w(e,e.prev,t)>=0:w(e,t,e.prev)<0||w(e,e.next,t)<0}function R(e,t){var n=new O(e.i,e.x,e.y),r=new O(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function N(e,t,n,r){var o=new O(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function C(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function O(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}n.d(t,{e:()=>r}),r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(F(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var u=t[a]*n,c=a<l-1?t[a+1]*n:e.length;s-=Math.abs(F(e,u,c,n))}var f=0;for(a=0;a<r.length;a+=3){var p=r[a]*n,h=r[a+1]*n,g=r[a+2]*n;f+=Math.abs((e[p]-e[g])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[g+1]-e[p+1]))}return 0===s&&0===f?0:Math.abs((f-s)/s)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},73354:(e,t,n)=>{function r(e,t,n){o(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function o(e,t,n,r=3,o=r){if(e.length/r!==Math.ceil(t.length/o))return e;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[4],c=n[5],f=n[6],p=n[8],h=n[9],g=n[10],y=n[12],d=n[13],m=n[14];let x=0,v=0;for(let n=0;n<i;n++){const n=t[x],i=t[x+1],A=t[x+2];e[v]=s*n+u*i+p*A+y,e[v+1]=a*n+c*i+h*A+d,e[v+2]=l*n+f*i+g*A+m,x+=o,v+=r}return e}function i(e,t,n){s(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function s(e,t,n,r=3,o=r){if(e.length/r!==Math.ceil(t.length/o))return;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[3],c=n[4],f=n[5],p=n[6],h=n[7],g=n[8];let y=0,d=0;for(let n=0;n<i;n++){const n=t[y],i=t[y+1],m=t[y+2];e[d]=s*n+u*i+p*m,e[d+1]=a*n+c*i+h*m,e[d+2]=l*n+f*i+g*m,y+=o,d+=r}}function a(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function l(e,t,n,r=3,o=r){const i=Math.min(e.length/r,t.length/o);let s=0,a=0;for(let l=0;l<i;l++)e[a]=n*t[s],e[a+1]=n*t[s+1],e[a+2]=n*t[s+2],s+=o,a+=r;return e}function u(e,t,n,r=3,o=r){const i=e.length/r;if(i!==Math.ceil(t.length/o))return e;let s=0,a=0;for(let l=0;l<i;l++)e[a]=t[s]+n[0],e[a+1]=t[s+1]+n[1],e[a+2]=t[s+2]+n[2],s+=o,a+=r;return e}function c(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let i=0,s=0;for(let a=0;a<o;a++){const o=t[i],a=t[i+1],l=t[i+2],u=o*o+a*a+l*l;if(u>0){const t=1/Math.sqrt(u);e[s]=t*o,e[s+1]=t*a,e[s+2]=t*l}i+=r,s+=n}}n.d(t,{a:()=>o,b:()=>u,c:()=>i,d:()=>r,e:()=>c,f:()=>l,n:()=>f,s:()=>a,t:()=>s}),n(44208),n(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:c,scale:l,scaleView:a,shiftRight:function(e,t,n){const r=Math.min(e.count,t.count),o=e.typedBuffer,i=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,u=0;for(let e=0;e<r;e++)o[u]=s[l]>>n,o[u+1]=s[l+1]>>n,o[u+2]=s[l+2]>>n,l+=a,u+=i},transformMat3:s,transformMat3View:i,transformMat4:o,transformMat4View:r,translate:u},Symbol.toStringTag,{value:"Module"}))},65686:(e,t,n)=>{n.d(t,{a:()=>o,b:()=>l,n:()=>s,s:()=>a,t:()=>i}),n(44208);var r=n(53966);function o(e,t,n){i(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function i(e,t,n,r=4,o=r){if(e.length/r!=t.length/o)return;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[3],c=n[4],f=n[5],p=n[6],h=n[7],g=n[8];let y=0,d=0;for(let n=0;n<i;n++){const n=t[y],i=t[y+1],m=t[y+2],x=t[y+3];e[d]=s*n+u*i+p*m,e[d+1]=a*n+c*i+h*m,e[d+2]=l*n+f*i+g*m,e[d+3]=x,y+=o,d+=r}}function s(e,t){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,i=t.typedBuffer,s=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*o,n=e*s,a=i[n],l=i[n+1],u=i[n+2],c=a*a+l*l+u*u;if(c>0){const e=1/Math.sqrt(c);r[t]=e*a,r[t+1]=e*l,r[t+2]=e*u}}}function a(e,t,n){l(e.typedBuffer,t,n,e.typedBufferStride)}function l(e,t,n,r=4){const o=Math.min(e.length/r,t.count),i=t.typedBuffer,s=t.typedBufferStride;let a=0,l=0;for(let t=0;t<o;t++)e[l]=n*i[a],e[l+1]=n*i[a+1],e[l+2]=n*i[a+2],e[l+3]=n*i[a+3],a+=s,l+=r}Object.freeze(Object.defineProperty({__proto__:null,normalize:s,scale:l,scaleView:a,transformMat3:i,transformMat3View:o,transformMat4:function(e,t,n,o=4,i=o){if(e.length/o!=t.length/i)return void r.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const s=e.length/o,a=n[0],l=n[1],u=n[2],c=n[3],f=n[4],p=n[5],h=n[6],g=n[7],y=n[8],d=n[9],m=n[10],x=n[11],v=n[12],A=n[13],w=n[14],M=n[15];let b=0,T=0;for(let n=0;n<s;n++){const n=t[b],r=t[b+1],s=t[b+2],_=t[b+3];e[T]=a*n+f*r+y*s+v*_,e[T+1]=l*n+p*r+d*s+A*_,e[T+2]=u*n+h*r+m*s+w*_,e[T+3]=c*n+g*r+x*s+M*_,b+=i,T+=o}},transformMat4View:function(e,t,n){if(e.count!==t.count)return;const r=e.count,o=n[0],i=n[1],s=n[2],a=n[3],l=n[4],u=n[5],c=n[6],f=n[7],p=n[8],h=n[9],g=n[10],y=n[11],d=n[12],m=n[13],x=n[14],v=n[15],A=e.typedBuffer,w=e.typedBufferStride,M=t.typedBuffer,b=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*w,n=e*b,r=M[n],T=M[n+1],_=M[n+2],S=M[n+3];A[t]=o*r+l*T+p*_+d*S,A[t+1]=i*r+u*T+h*_+m*S,A[t+2]=s*r+c*T+g*_+x*S,A[t+3]=a*r+f*T+y*_+v*S}}},Symbol.toStringTag,{value:"Module"}))},43668:(e,t,n)=>{n.d(t,{M5:()=>f,eV:()=>c});var r=n(78888),o=n(49186),i=n(74887),s=n(84952),a=n(26306);let l=null,u=!0;function c(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch(e){u=!1}const o=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return o.data.set(e,0),o}async function f(e,t){const{arrayBuffer:l,mediaType:u}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const o=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(c){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,i.zf)(e))throw new o.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),t)}},1535:(e,t,n)=>{n.d(t,{A:()=>Ke});var r=n(90237),o=n(51447),i=n(49186),s=n(92474),a=n(53966),l=n(61893),u=n(74887),c=n(36708),f=n(10107),p=(n(44208),n(87811),n(40608)),h=n(51850),g=n(5443),y=n(91075),d=n(86738),m=n(39829),x=n(24770),v=n(16939);const A="Expected location to be a Point instance";class w extends i.A{constructor(){super("invalid-input:location",A)}}var M=n(95696),b=n(18251),T=n(73836),_=n(1193),S=n(27615),R=n(83349),N=n(88582),C=n(95108),O=n(4197),F=n(97146),Z=n(34727),E=n(83047),U=n(38954),P=n(240);const B=(0,P.vt)();var L,I,j=n(9318);function D(e,t,n,r){const o=e.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0;for(let t=0;t<o;++t)l+=e[t].length;let u=0,c=0,f=0;const p=(0,O.jh)(3*l);let h=0;for(let l=o-1;l>=0;l--){const g=e[l],y=n===L.CCW_IS_HOLE&&$(g,t,r);if(y&&1!==o)i[u++]=g;else{let e=g.length;for(let t=0;t<u;++t)e+=i[t].length;const n={index:h,pathLengths:new Array(u+1),count:e,holeIndices:new Array(u)};n.pathLengths[0]=g.length,g.length>0&&(a[f++]={index:h,count:g.length}),h=y?z(g,g.length-1,-1,p,h,g.length,t):z(g,0,1,p,h,g.length,t);for(let e=0;e<u;++e){const r=i[e];n.holeIndices[e]=h,n.pathLengths[e+1]=r.length,r.length>0&&(a[f++]={index:h,count:r.length}),h=z(r,0,1,p,h,r.length,t)}u=0,n.count>0&&(s[c++]=n)}}for(let e=0;e<u;++e){const n=i[e];n.length>0&&(a[f++]={index:h,count:n.length}),h=z(n,0,1,p,h,n.length,t)}return s.length=c,a.length=f,{position:p,polygons:s,outlines:a}}function z(e,t,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=e[t];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,t+=n}return o/3}function $(e,t,n){if(!t)return!(0,C.$3)(e);switch(function(e,t,n){const r=function(e,t,n,r){const o=(e=>!Array.isArray(e[0]))(t)?(e,n)=>t[3*e+n]:(e,n)=>t[e][n],i=r?(0,E.GA)(r)/(0,E.G9)(r):1;return(0,P.lU)(e,((e,t)=>(0,U.s)(e,o(t,0)*i,o(t,1)*i,o(t,2))),n)}(B,e,t,n)?(0,P.Qj)(B):[0,0,1];return Math.abs(r[2])>Math.cos((0,Z.kU)(80))?N._.Z:Math.abs(r[1])>Math.abs(r[0])?N._.Y:N._.X}(e,e.length-1,n)){case N._.X:return!(0,C.$3)(e,N._.Y,N._.Z);case N._.Y:return!(0,C.$3)(e,N._.X,N._.Z);case N._.Z:return!(0,C.$3)(e,N._.X,N._.Y)}}(I=L||(L={}))[I.NONE=0]="NONE",I[I.CCW_IS_HOLE=1]="CCW_IS_HOLE";var H=n(70328),W=n(22141);let G=null;function V(e){if(0===e.length)return H.v_;const t=(0,H.vt)([Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY]);return(0,H.Hq)(t,e),t}function k(e,t){const[n,r,o,i,s,a]=V(e);return new g.A({xmin:n,ymin:r,zmin:o,xmax:i,ymax:s,zmax:a,spatialReference:t})}var Y=n(65806);function q(e,t,n,r){if(void 0!==r){(0,o.io)(e(),"option: geographic",{replacement:"Use mesh `vertexSpace` and spatial reference to control how operations are performed instead.",version:"4.30",warnOnce:!0});const i="local"===t.type;if(!(0,S.Hq)(t)||r===i)return n.isGeographic||n.isWebMercator&&r;e().warnOnce(`Specifying the 'geographic' parameter (${r}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}switch(t.type){case"georeferenced":return n.isGeographic;case"local":return n.isGeographic||n.isWebMercator}}var K=n(72258);const X=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const J=(0,h.vt)(),Q=(0,h.vt)(),ee=(0,h.vt)();var te=n(84952);function ne(e){const t=(0,te.nM)(e.url);return n=>{const r=(0,te.V1)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}function re(e){return ue.fromBlob(e,ce(e.name,e.type))}const oe=/^model\/gltf\+json$/,ie=/^model\/gltf-binary$/,se=/\.gltf$/i,ae=/\.glb$/i;function le(e){const t=new Map;let n,r=null;for(const{name:o,mimeType:i,source:s}of e)null===r&&(oe.test(i)||se.test(o)?(r=s.url,n="gltf"):(ie.test(i)||ae.test(o))&&(r=s.url,n="glb")),t.set(o,s.url),s.files.forEach(((e,n)=>t.set(n,e)));if(null==r)throw new i.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new ue(r,(()=>e.forEach((({source:e})=>e.dispose()))),t,n)}class ue{constructor(e,t=()=>{},n=new Map,r){this.url=e,this.dispose=t,this.files=n,this.type=r}static fromBlob(e,t){const n=URL.createObjectURL(e);return new ue(n,(()=>URL.revokeObjectURL(n)),void 0,t)}}function ce(e,t){return oe.test(t)||se.test(e)?"gltf":ie.test(t)||se.test(e)?"glb":void 0}var fe=n(69540),pe=n(5503),he=n(63579);let ge=class extends fe.P{constructor(e){super(e),this.externalSources=new pe.A,this._explicitDisplaySource=null,this.addHandles((0,c.on)((()=>this.externalSources),"after-remove",(({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)}),{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,he.yr)(e))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every((t=>!(0,he.in)(t,e)))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter((t=>(0,he.eN)(t,e)))}get _implicitDisplaySource(){return this.externalSources.find(he.yr)}};(0,r._)([(0,f.MZ)()],ge.prototype,"externalSources",void 0),(0,r._)([(0,f.MZ)()],ge.prototype,"displaySource",null),(0,r._)([(0,f.MZ)()],ge.prototype,"_implicitDisplaySource",null),(0,r._)([(0,f.MZ)()],ge.prototype,"_explicitDisplaySource",void 0),ge=(0,r._)([(0,p.$)("esri.geometry.support.meshUtils.Metadata")],ge);var ye=n(29242);const de={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function me(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){we[0]=t[0],we[4]=t[1],we[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)Ae[n]=e.position[t+n];(0,U.t)(Ae,Ae,we);for(let n=0;n<3;n++)e.position[t+n]=Ae[n]}if(t[0]!==t[1]||t[1]!==t[2]){we[0]=1/t[0],we[4]=1/t[1],we[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)Ae[n]=e.normal[t+n];(0,U.t)(Ae,Ae,we),(0,U.n)(Ae,Ae);for(let n=0;n<3;n++)e.normal[t+n]=Ae[n]}}}}(e,function(e,t,n){const r=(0,K.xK)(t,n);if(null==e&&1===r)return null;if(null==e)return[r,r,r];if("number"==typeof e){const t=e*r;return[t,t,t]}return[null!=e.width?e.width*r:r,null!=e.depth?e.depth*r:r,null!=e.height?e.height*r:r]}(n?.size,n?.unit,t.spatialReference));const r=(0,S.TE)(t,n),o=t.spatialReference.isGeographic?(0,S.TE)(t):r,i=(0,K.UR)({vertexAttributes:e,vertexSpace:o,spatialReference:t.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new _.H({...i,uv:e.uv}),vertexSpace:r,components:[new v.A({faces:e.faces,material:n?.material||null})],spatialReference:t.spatialReference}}const xe={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},ve={south:0,east:1,north:2,west:3,up:4,down:5},Ae=(0,h.vt)(),we=(0,ye.vt)();var Me=n(77690),be=n(58083),Te=n(9093),_e=n(67026),Se=n(82534),Re=n(98764),Ne=n(48353);const Ce=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function Oe(e,t,n,r=h.uY){if(null!=e){(0,be.$0)(Ue,(0,x.$I)(t),(0,x.yo)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)Fe[n]=e[t+n]-r[n];(0,U.h)(Fe,Fe,Ue);for(let n=0;n<3;n++)e[t+n]=Fe[n]+r[n]}}}const Fe=(0,h.vt)(),Ze=(0,Te.vt)(),Ee=(0,x.vt)(),Ue=(0,Te.vt)(),Pe=(0,ye.vt)(),Be=(0,h.vt)(),Le=(0,Se.vt)(),Ie=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function je(e,t,n=h.uY){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)De[t]=e[r+t]-n[t];(0,U.j)(De,De,t);for(let t=0;t<3;t++)e[r+t]=De[t]+n[t]}}const De=(0,h.vt)(),ze=(0,h.vt)(),$e=(0,Te.vt)(),He=(0,h.vt)();var We;const Ge="esri.geometry.Mesh";function Ve(){return a.A.getLogger(Ge)}const ke={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:M.A,local:b.A}};let Ye=We=class extends(s.A.LoadableMixin((0,l.g)(y.A))){constructor(e){super(e),this.components=null,this.vertexSpace=new M.A,this.transform=null,this.metadata=new ge,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new _.H,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.addHandles((0,c.wB)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{components:e,spatialReference:t,vertexAttributes:n,vertexSpace:r}=this,o=n.position;if(0===o.length||e&&0===e.length)return new g.A({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t});if((0,S.Hq)(r)){const{_untransformedBounds:e,transform:n}=this;return function([e,t,n,r,o,i],s,a,l){G??=new Float64Array(24);const u=G;return u[0]=e,u[1]=t,u[2]=n,u[3]=e,u[4]=o,u[5]=n,u[6]=r,u[7]=o,u[8]=n,u[9]=r,u[10]=t,u[11]=n,u[12]=e,u[13]=t,u[14]=i,u[15]=e,u[16]=o,u[17]=i,u[18]=r,u[19]=o,u[20]=i,u[21]=r,u[22]=t,u[23]=i,(0,W.project)({positions:u,transform:s,vertexSpace:a,inSpatialReference:l,outSpatialReference:l,outPositions:u}),k(u,l)}(e,n,r,t)}return k(o,t)}get _untransformedBounds(){return V(this.vertexAttributes.position)}get origin(){const e=(0,S.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;const{center:t,zmin:n}=this._transformedExtent;return new d.A({x:t.x,y:t.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(v.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}Ve().error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,n,r){return(0,x.AU)(e,t,n,qe),function(e,t,n){if(!e.vertexAttributes?.position||0===t[3])return;const{spatialReference:r,vertexSpace:o}=e,i=n?.origin??e.origin,s=n?.geographic,a=q(Ce,o,r,s);(0,S.CK)(e)?function(e,t,n){e.transform??=new T.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new d.A({x:s,y:a,z:l,spatialReference:i}),c=Fe;if(u.equals(n))(0,U.s)(c,0,0,0);else if(!(0,K.p5)(c,n,e))return void(0,W.CN)(Ce(),n.spatialReference,i,W.JP);(0,_e.x8)(Le,(0,x.yo)(t),(0,x.$I)(t));const f=(0,be.O7)(Ze,Le,h.uY,h.Un,c),{localMatrix:p}=o,g=(0,be.lw)(Ze,f,p);o.scale=(0,be.IL)((0,h.vt)(),g),(0,be.hs)(g,g,(0,U.i)(Fe,o.scale));const y=o.rotationAxis;o.rotation=(0,x.ui)(g),0===o.rotationAngle&&(o.rotationAxis=y),o.translation=(0,be.sC)((0,h.vt)(),g)}(e,t,i):a?function(e,t,n){const r=e.spatialReference,o=(0,Re.lO)(r),i=Be;if(!(0,Y.g)(n,i,o)&&((0,W.CN)(Ce(),n.spatialReference,o,"Falling back to mesh origin"),!(0,Y.g)(e.origin,i,o)))return void(0,W.CN)(Ce(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;(0,Ne.l)(o,i,Ue,o),(0,Me.z0)(Pe,Ue);const p=Ee;(0,U.t)((0,x.yo)(Ee),(0,x.yo)(t),Pe),p[3]=t[3],!(0,W.gr)(s,r,u)||null!=a&&null!=c&&!(0,W.X4)(a,s,u,r,c)||null!=l&&null!=f&&!(0,W.xA)(l,s,u,r,f)?(0,W.CN)(Ce(),r,o):(Oe(u,p,3,i),!(0,W.$5)(u,s,r)||null!=a&&null!=c&&(Oe(c,p,3),!(0,W.si)(c,s,u,r,a))||null!=l&&null!=f&&(Oe(f,p,4),!(0,W.Mv)(f,s,u,r,l))?(0,W.CN)(Ce(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=Be;if(!(0,Y.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,W.CN)(Ce(),n.spatialReference,e.spatialReference,W.JP)}Oe(e.vertexAttributes.position,t,3,r),Oe(e.vertexAttributes.normal,t,3),Oe(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,i)}(this,qe,r),this}offset(e,t,n){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:r,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,S.Hq)(r)){const[o,i,s]=r.origin;r.origin=(0,h.fA)(o+e,i+t,s+n)}else{for(let r=0;r<i.length;r+=3)i[r]+=e,i[r+1]+=t,i[r+2]+=n;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r,spatialReference:o}=e,i=n?.origin??e.origin,s=n?.geographic,a=q(Ie,r,o,s);(0,S.CK)(e)?function(e,t,n){e.transform??=new T.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new d.A({x:s,y:a,z:l,spatialReference:i}),c=De;if(u.equals(n))(0,U.s)(c,0,0,0);else if(!(0,K.p5)(c,n,e))return void(0,W.CN)(Ie(),n.spatialReference,i,W.JP);const f=(0,U.s)(ze,t,t,t),p=(0,be.O7)($e,Se.zK,h.uY,f,c),{localMatrix:g}=o,y=(0,be.lw)($e,p,g);o.scale=(0,be.IL)((0,h.vt)(),y),(0,be.hs)(y,y,(0,U.i)(De,o.scale));const m=o.rotationAxis;o.rotation=(0,x.ui)(y),0===o.rotationAngle&&(o.rotationAxis=m),o.translation=(0,be.sC)((0,h.vt)(),y)}(e,t,i):a?function(e,t,n){const r=e.spatialReference,o=(0,Re.lO)(r),i=He;if(!(0,Y.g)(n,i,o)&&((0,W.CN)(Ie(),n.spatialReference,o,"Falling back to mesh origin"),!(0,Y.g)(e.origin,i,o)))return void(0,W.CN)(Ie(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;!(0,W.gr)(s,r,u)||null!=a&&null!=c&&!(0,W.X4)(a,s,u,r,c)||null!=l&&null!=f&&!(0,W.xA)(l,s,u,r,f)?(0,W.CN)(Ie(),r,o):(je(u,t,i),!(0,W.$5)(u,s,r)||null!=a&&null!=c&&!(0,W.si)(c,s,u,r,a)||null!=l&&null!=f&&!(0,W.Mv)(f,s,u,r,l)?(0,W.CN)(Ie(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=He;if(!(0,Y.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,W.CN)(Ie(),n.spatialReference,e.spatialReference,W.JP)}je(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,i)}(this,e,t),this):this}centerAt(e,t){return this._checkIfLoaded("centerAt()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r}=e,o=n?.origin??e.origin,i=q(X,r,o.spatialReference,n?.geographic);(0,S.Hq)(r)?function(e,t,n){const{vertexSpace:r}=e;if(!(0,S.Hq)(r))return;const o=Q,i=J;if(!(0,Y.g)(t,i,e.spatialReference))return void(0,W.CN)(X(),t.spatialReference,e.spatialReference,W.JP);if(!(0,Y.g)(n,o,e.spatialReference)){const t=e.origin;return o[0]=t.x,o[1]=t.y,o[2]=t.z,void(0,W.CN)(X(),n.spatialReference,e.spatialReference,W.JP)}const s=(0,U.f)(ee,i,o);r.origin=(0,U.g)((0,h.vt)(),r.origin,s)}(e,t,o):i?function(e,t,n){const r=(0,h.fA)(n.x,n.y,n.z??0),o=(0,K.UR)(e,new b.A({origin:r}));if(!o)return;const i=(0,h.fA)(t.x,t.y,t.z??0),s=(0,K.UR)({vertexAttributes:o,spatialReference:e.spatialReference,vertexSpace:new b.A({origin:i})},new M.A);if(!s)return;const{position:a,normal:l,tangent:u}=s;e.vertexAttributes.position=a,e.vertexAttributes.normal=l,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=Q,o=J;if((0,Y.g)(t,o,e.spatialReference)){if(!(0,Y.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,W.CN)(X(),n.spatialReference,e.spatialReference,W.JP)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else(0,W.CN)(X(),t.spatialReference,e.spatialReference,W.JP)}(e,t,o)}(this,e,t),this):this}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,r){const{source:o}=t,{loadGLTFMesh:s}=await(0,u.qr)(Promise.all([n.e(4399),n.e(4543)]).then(n.bind(n,94543)),r),a=await async function(e,t){if(Array.isArray(e)){if(!e.length)throw new i.A("mesh-load-external:missing-assets","There must be at least one file to load");return e[0]instanceof File?function(e){return le(e.map((e=>({name:e.name,mimeType:e.type,source:re(e)}))))}(e):async function(e,t){const n=await(0,u.nA)(e.map((async e=>{const n=await async function(e,t){const{parts:n,assetMimeType:r,assetName:o}=e;if(1===n.length)return new ue(n[0].partUrl);const i=await e.toBlob(t);return(0,u.Te)(t),ue.fromBlob(i,ce(o,r))}(e);return(0,u.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:n}})));if((0,u.G4)(t))throw n.forEach((e=>e.source.dispose())),(0,u.NK)();return le(n)}(e,t)}return re(e)}(o,r);(0,u.Te)(r);const l=s(new d.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),a.url,{resolveFile:ne(a),signal:r?.signal,expectedType:a.type});l.then((()=>a.dispose()),(()=>a.dispose()));const{vertexAttributes:c,components:f}=await l;e.vertexAttributes=c,e.components=f}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(){return this.cloneAndModifyVertexAttributes(this.vertexAttributes.clone(),this.vertexSpace.clone(),{preserveMetadata:!0})}cloneAndModifyVertexAttributes(e,t,n){let r=null;if(this.components){const e=new Map,t=new Map;r=this.components.map((n=>n.cloneWithDeduplication(e,t)))}const o={components:r,spatialReference:this.spatialReference,vertexAttributes:e,vertexSpace:t,transform:this.transform?.clone()??null,metadata:n?.preserveMetadata?this.metadata.clone():new ge};return new We(o)}cloneShallow(){return new We({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const[{toBinaryGLTF:t}]=await Promise.all([n.e(8096).then(n.bind(n,8096)),this.load(e)]);return(0,u.Te)(e),await t(this,e)}get memoryUsage(){let e=0;if(e+=this.vertexAttributes.memoryUsage,null!=this.components)for(const t of this.components)e+=t.memoryUsage;return e}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(Ve().error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof d.A))return Ve().error(".createBox()",A),null;const n=new We(me(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=xe,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,u=0,c=0,f=0;for(let r=0;r<e.length;r++){const p=e[r],h=l/3;for(const e of t)a[f++]=h+e;const g=p.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[c++]=.25*n[e][0]+p.uvOrigin[0],s[c++]=p.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==p.axis[e]?(o[l++]=.5*p.axis[e],i[u++]=p.axis[e]):(o[l++]=.5*t[r++],i[u++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),e,t));return t?.imageFace&&"all"!==t.imageFace?function(e,t){const n=e.components[0],r=n.faces,o=ve[t],i=6*o,s=new Array(6),a=new Array(r.length-6);let l=0,u=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?s[l++]=r[e]:a[u++]=r[e];if(null!=e.vertexAttributes.uv){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new v.A({faces:s,material:n.material}),new v.A({faces:a})],e}(n,t.imageFace):n}static createSphere(e,t){return e instanceof d.A?new We(me(function(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,u=0,c=0,f=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,p=Math.cos(r),h=Math.sin(r);Ae[2]=h;const g=0===e||e===t,y=g?n-1:n;for(let r=0;r<=y;r++){const h=r/y*2*Math.PI;Ae[0]=-Math.sin(h)*p,Ae[1]=Math.cos(h)*p;for(let e=0;e<3;e++)o[l]=.5*Ae[e],i[l]=Ae[e],++l;s[u++]=(r+(g?.5:0))/n,s[u++]=e/t,0!==e&&r!==n&&(e!==t&&(a[c++]=f,a[c++]=f+1,a[c++]=f-n),1!==e&&(a[c++]=f,a[c++]=f-n,a[c++]=f-n-1)),f++}}return{position:o,normal:i,uv:s,faces:a}}(t?.densificationFactor||0),e,t)):(Ve().error(".createSphere()",A),null)}static createCylinder(e,t){return e instanceof d.A?new We(me(function(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,u=0,c=0,f=0;for(let e=0;e<=5;e++){const n=0===e||5===e,p=e<=1||e>=4,h=2===e||4===e,g=n?t-1:t;for(let y=0;y<=g;y++){const d=y/g*2*Math.PI,m=n?0:.5;Ae[0]=m*Math.sin(d),Ae[1]=m*-Math.cos(d),Ae[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=Ae[t],o[l++]=p?2===t?e<=1?1:-1:0:2===t?0:Ae[t]/m;i[u++]=(y+(n?.5:0))/t,i[u++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,h||0===e||y===t||(5!==e&&(s[c++]=f,s[c++]=f+1,s[c++]=f-t),1!==e&&(s[c++]=f,s[c++]=f-t,s[c++]=f-t-1)),f++}}return{position:r,normal:o,uv:i,faces:s}}(t?.densificationFactor||0),e,t)):(Ve().error(".createCylinder()",A),null)}static createPlane(e,t){if(!(e instanceof d.A))return Ve().error(".createPlane()",A),null;const n=t?.facing??"up",r=function(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,t?.size);return new We(me(function(e){const t=de.facingAxisOrderSwap[e],n=de.position,r=de.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],u=Math.abs(l)-1,c=l>=0?1:-1;o[s]=n[e+u]*c,i[s]=r[e+u]*c,s++}}return{position:o,normal:i,uv:new Float32Array(de.uv),faces:new Uint32Array(de.faces),isPlane:!0}}(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof m.A))return Ve().error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const n=function(e){const t=D(e.rings,e.hasZ,L.CCW_IS_HOLE,e.spatialReference),n=new Array;let r=0,o=0;for(const e of t.polygons){const i=e.count,s=e.index,a=(0,O.l5)(t.position,3*s,3*i),l=e.holeIndices.map((e=>e-s)),u=(0,F.Dg)((0,R.e)(a,l,3));n.push({position:a,faces:u}),r+=a.length,o+=u.length}const i=function(e,t,n){if(1===e.length)return e[0];const r=(0,O.jh)(t),o=new Array(n);let i=0,s=0,a=0;for(const t of e){for(let e=0;e<t.position.length;e++)r[i++]=t.position[e];for(const e of t.faces)o[s++]=e+a;a=i/3}return{position:r,faces:(0,F.Dg)(o)}}(n,r,o),s=Array.isArray(i.position)?(0,j.b)(i.position,3,{originalIndices:i.faces}):(0,j.b)(i.position.buffer,6,{originalIndices:i.faces});return i.position=(0,O.xm)(new Float64Array(s.buffer)),i.faces=s.indices,i}(e);return new We({vertexAttributes:new _.H({position:n.position}),components:[new v.A({faces:n.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new M.A})}static async createFromGLTF(e,t,r){if(!(e instanceof d.A)){const e=new w;throw Ve().error(".createfromGLTF()",e.message),e}const{loadGLTFMesh:o}=await(0,u.qr)(Promise.all([n.e(4399),n.e(4543)]).then(n.bind(n,94543)),r);return new We(await o(e,t,r))}static async createFromFiles(e,t,n){if((0,o.eO)(Ve(),"`Mesh.createFromFiles` is deprecated in favor of 'SceneLayer.convertMesh'",{replacement:"SceneLayer.convertMesh",version:"4.29"}),!(e instanceof d.A)){const e=new w;throw(e=>{Ve().error(".createFromFiles()",e.message)})(e),e}if(!n?.layer)throw new i.A("invalid:no-layer","SceneLayer required for file to mesh conversion.");return n.layer.convertMesh(t,{location:e,...n})}static createWithExternalSource(e,t,n){const r=n?.extent??null,{spatialReference:o}=e,i=n?.transform?.clone()??new T.A,s=(0,S.TE)(e,n),a={source:t,extent:r},l=new ge;return l.externalSources.push(a),new We({metadata:l,transform:i,vertexSpace:s,spatialReference:o})}static createIncomplete(e,t){const{spatialReference:n}=e,r=t?.transform?.clone()??new T.A,o=(0,S.TE)(e,t),s=new We({transform:r,vertexSpace:o,spatialReference:n});return s.addResolvingPromise(Promise.reject(new i.A("mesh-incomplete","Mesh resources are not complete"))),s}};(0,r._)([(0,f.MZ)({type:[v.A],json:{write:!0}})],Ye.prototype,"components",void 0),(0,r._)([(0,f.MZ)({nonNullable:!0,types:ke,constructOnly:!0,json:{write:!0}})],Ye.prototype,"vertexSpace",void 0),(0,r._)([(0,f.MZ)({type:T.A,json:{write:!0}})],Ye.prototype,"transform",void 0),(0,r._)([(0,f.MZ)({constructOnly:!0})],Ye.prototype,"metadata",void 0),(0,r._)([(0,f.MZ)()],Ye.prototype,"hasExtent",null),(0,r._)([(0,f.MZ)()],Ye.prototype,"_transformedExtent",null),(0,r._)([(0,f.MZ)()],Ye.prototype,"_untransformedBounds",null),(0,r._)([(0,f.MZ)()],Ye.prototype,"origin",null),(0,r._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ye.prototype,"extent",null),(0,r._)([(0,f.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Ye.prototype,"hasZ",void 0),(0,r._)([(0,f.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Ye.prototype,"hasM",void 0),(0,r._)([(0,f.MZ)({type:_.H,nonNullable:!0,json:{write:!0}})],Ye.prototype,"vertexAttributes",void 0),Ye=We=(0,r._)([(0,p.$)(Ge)],Ye);const qe=(0,x.vt)(),Ke=Ye},4197:(e,t,n)=>{n.d(t,{Ns:()=>l,jh:()=>o,l5:()=>s,s:()=>a,xm:()=>i});var r=n(34275);function o(e,t=!1){return e<=r.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function i(e){return((0,r.cy)(e)?e.length:e.byteLength/8)<=r.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e,t){for(let n=0;n<t.length;++n)e[n]=t[n];return e}function l(e){return Array.isArray(e)?new Float64Array(e):e}},97146:(e,t,n)=>{n.d(t,{Dg:()=>o,my:()=>i,tM:()=>u});var r=n(34275);function o(e){if((0,r.cy)(e)){if(e.length<r.y9)return e}else if(e.length<r.y9)return Array.from(e);let t=!0,n=!0;return e.some(((e,r)=>(t=t&&0===e,n=n&&e===r,!t&&!n))),t?function(e){if(1===e)return a;if(e<r.y9)return new Array(e).fill(0);if(e>c.length){const t=Math.max(2*c.length,e);c=new Uint8Array(t)}return new Uint8Array(c.buffer,0,e)}(e.length):n?u(e.length):(0,r.cy)(e)||e.BYTES_PER_ELEMENT!==Uint16Array.BYTES_PER_ELEMENT?function(e){let t=!0;for(const n of e){if(n>=65536)return(0,r.cy)(e)?new Uint32Array(e):e;n>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e):e}function i(e){return e<=r.y9?new Array(e):e<=65536?new Uint16Array(e):new Uint32Array(e)}let s=(()=>{const e=new Uint32Array(131072);for(let t=0;t<e.length;++t)e[t]=t;return e})();const a=[0],l=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function u(e){if(1===e)return a;if(e<r.y9)return Array.from(new Uint16Array(l.buffer,0,e));if(e<l.length)return new Uint16Array(l.buffer,0,e);if(e>s.length){const t=Math.max(2*s.length,e);s=new Uint32Array(t);for(let e=0;e<s.length;e++)s[e]=e}return new Uint32Array(s.buffer,0,e)}let c=new Uint8Array(65536)},16939:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(90237),i=n(25482),s=n(4718),a=n(53966),l=n(10107),u=n(79901),c=n(40608),f=n(56507),p=n(19211),h=n(80882),g=n(31199);let y=r=class extends i.oY{static from(e){return(0,f.PZ)(r,e)}constructor(e){super(e),this.faces=null,this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}castFaces(e){return(0,g.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},a.A.getLogger(this))}castMaterial(e){return(0,f.PZ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?h.A:p.A,e)}clone(){return new r({faces:(0,s.o8)(this.faces),shading:this.shading,material:(0,s.o8)(this.material),trustSourceNormals:this.trustSourceNormals,name:this.name})}cloneWithDeduplication(e,t){const n={faces:(0,s.o8)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals,name:this.name};return new r(n)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,o._)([(0,l.MZ)({json:{write:g.B}})],y.prototype,"faces",void 0),(0,o._)([(0,u.w)("faces")],y.prototype,"castFaces",null),(0,o._)([(0,l.MZ)({type:p.A,json:{write:!0}})],y.prototype,"material",void 0),(0,o._)([(0,u.w)("material")],y.prototype,"castMaterial",null),(0,o._)([(0,l.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"shading",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],y.prototype,"trustSourceNormals",void 0),y=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshComponent")],y);const d=y},95696:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608);let u=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,r._)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,l.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u);const c=u},18251:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608),u=n(51850);let c=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.type="local",this.origin=(0,u.vt)()}};(0,r._)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],c);const f=c},19211:(e,t,n)=>{n.d(t,{A:()=>p});var r,o=n(90237),i=n(68197),s=n(25482),a=n(10107),l=(n(44208),n(53966),n(87811),n(40608)),u=n(35063),c=n(51147);let f=r=class extends s.oY{constructor(e){super(e),this.color=null,this.colorTexture=null,this.colorTextureTransform=null,this.normalTexture=void 0,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=null!=e?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:null!=this.color?this.color.clone():null,colorTexture:this.colorTexture?.cloneWithDeduplication(e),normalTexture:this.normalTexture?.cloneWithDeduplication(e),alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:this.colorTextureTransform?.clone(),normalTextureTransform:this.normalTextureTransform?.clone()}}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null!=this.color?16:0,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null!=this.normalTextureTransform?20:0,e}};(0,o._)([(0,a.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTexture",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTexture",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=r=(0,o._)([(0,l.$)("esri.geometry.support.MeshMaterial")],f);const p=f},80882:(e,t,n)=>{n.d(t,{A:()=>p});var r,o=n(90237),i=n(68197),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608)),l=n(19211),u=n(35063),c=n(51147);let f=r=class extends l.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.emissiveTextureTransform=void 0,this.occlusionTexture=null,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null,this.metallicRoughnessTextureTransform=void 0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=null!=e?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null!=this.metallicRoughnessTextureTransform?20:0,e}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:this.emissiveColor?.clone(),emissiveTexture:this.emissiveTexture?.cloneWithDeduplication(e),emissiveTextureTransform:this.emissiveTextureTransform?.clone(),occlusionTexture:this.occlusionTexture?.cloneWithDeduplication(e),occlusionTextureTransform:this.occlusionTextureTransform?.clone(),metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:this.metallicRoughnessTexture?.cloneWithDeduplication(e),metallicRoughnessTextureTransform:this.metallicRoughnessTextureTransform?.clone()}}};(0,o._)([(0,s.MZ)({type:i.A,json:{write:!0}})],f.prototype,"emissiveColor",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"emissiveTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"occlusionTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],f.prototype,"metallic",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],f.prototype,"roughness",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"metallicRoughnessTextureTransform",void 0),f=r=(0,o._)([(0,a.$)("esri.geometry.support.MeshMaterialMetallicRoughness")],f);const p=f},35063:(e,t,n)=>{n.d(t,{A:()=>v});var r,o=n(90237),i=(n(44208),n(43668)),s=n(25482),a=n(10107),l=n(56507),u=(n(87811),n(36005)),c=n(40608),f=n(43937),p=n(97159);const h=new WeakMap;let g=0,y=r=class extends s.oY{constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,p.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))};t[n]=r}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,p.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else if(e instanceof ImageData){const r={type:"image-data",imageData:d(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=m(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return m(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const{data:e,url:t}=this;return e instanceof HTMLCanvasElement?x(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?x(e):!(!t?.toLowerCase().endsWith(".png")&&!t?.toLocaleLowerCase().startsWith("data:image/png;"))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(h.has(this.data)||h.set(this.data,++g),t(h.get(this.data))):t()}get memoryUsage(){let e=0;if(e+=null!=this.url?this.url.length:0,null!=this.data){const t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(){const e={url:this.url,data:this.data,wrap:this._cloneWrap()};return new r(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const n=this.clone();return e.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}static from(e){return"string"==typeof e?new r({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new r({data:e}):(0,l.PZ)(r,e)}};function d(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}function m(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return(0,i.eV)(n,e.width,e.height)}function x(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,o._)([(0,a.MZ)({type:String,json:{write:p.w}})],y.prototype,"url",null),(0,o._)([(0,a.MZ)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,a.MZ)()],y.prototype,"data",null),(0,o._)([(0,f.K)("data")],y.prototype,"writeData",null),(0,o._)([(0,u.w)("data")],y.prototype,"readData",null),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshTexture")],y);const v=y},51147:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,r._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,r._)([(0,a.$)("esri.geometry.support.MeshTextureTransform")],l);const u=l},73836:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(90237),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608)),l=n(58083),u=n(9093),c=n(67026),f=n(82534),p=n(51850),h=n(24770);let g=r=class extends i.oY{constructor(e){super(e),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,p.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){const e=(0,u.vt)();return(0,c.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,l.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,l.t2)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,p.o8)(this.translation),rotationAxis:(0,p.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.o8)(this.scale)};return new r(e)}};(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,s.MZ)()],g.prototype,"rotation",null),(0,o._)([(0,s.MZ)()],g.prototype,"localMatrix",null),(0,o._)([(0,s.MZ)()],g.prototype,"localMatrixInverse",null),g=r=(0,o._)([(0,a.$)("esri.geometry.support.MeshTransform")],g);const y=(0,f.vt)(),d=g},1193:(e,t,n)=>{n.d(t,{H:()=>p});var r,o=n(90237),i=n(25482),s=n(4718),a=n(53966),l=n(10107),u=n(79901),c=n(40608),f=n(31199);let p=r=class extends i.oY{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,f.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clone(){const e={position:(0,s.o8)(this.position),uv:(0,s.o8)(this.uv),normal:(0,s.o8)(this.normal),tangent:(0,s.o8)(this.tangent),color:(0,s.o8)(this.color)};return new r(e)}clonePositional(){const e={position:(0,s.o8)(this.position),normal:(0,s.o8)(this.normal),tangent:(0,s.o8)(this.tangent),uv:this.uv,color:this.color};return new r(e)}get memoryUsage(){let e=0;return e+=this.position.byteLength,null!=this.uv&&(e+=this.uv.byteLength),null!=this.normal&&(e+=this.normal.byteLength),null!=this.tangent&&(e+=this.tangent.byteLength),null!=this.color&&(e+=this.color.byteLength),e}};(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,u.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,u.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,u.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,u.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,u.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},24770:(e,t,n)=>{n.d(t,{$I:()=>d,AU:()=>h,g7:()=>y,i4:()=>c,ui:()=>f,up:()=>x,vt:()=>u,yo:()=>g});var r=n(34727),o=n(58083),i=n(67026),s=n(82534),a=n(38954),l=n(51850);function u(e=x){return[e[0],e[1],e[2],e[3]]}function c(e,t,n=u()){return(0,a.c)(n,e),n[3]=t,n}function f(e,t=u()){const n=(0,o.l)(v,e);return m(t,(0,r.KJ)((0,i.Xd)(t,n))),t}function p(e,t,n=u()){return(0,i.x8)(v,e,d(e)),(0,i.x8)(A,t,d(t)),(0,i.lw)(v,A,v),m(n,(0,r.KJ)((0,i.Xd)(n,v)))}function h(e,t,n,r=u()){return c(l.Cw,e,w),c(l.JP,t,M),c(l.Cb,n,b),p(w,M,w),p(w,b,r),r}function g(e){return e}function y(e){return e[3]}function d(e){return(0,r.kU)(e[3])}function m(e,t){return e[3]=t,e}n(91829);const x=[0,0,1,0],v=(0,s.vt)(),A=(0,s.vt)(),w=(u(),u()),M=u(),b=u()},31199:(e,t,n)=>{function r(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function o(e,t,n,o,i){if(!e)return e;if(e instanceof t)return r(e,o,t,i);for(const s of n)if(e instanceof s)return r(new t(e),o,t,i);if(Array.isArray(e))return r(new t(e),o,t,i);{const r=n.map((e=>`'${e.name}'`));return i.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function i(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}n.d(t,{B:()=>i,b:()=>o})},63579:(e,t,n)=>{n.d(t,{Bq:()=>l,Qp:()=>a,WN:()=>x,dK:()=>v,eN:()=>g,fH:()=>m,in:()=>y,yr:()=>u});var r=n(78888),o=n(4576),i=n(74887),s=n(20557);class a{constructor(e,t,n){this.assetName=e,this.assetMimeType=t,this.parts=n}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,o.aI)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const n=await Promise.all(t.map((t=>t.toBlob(e))));return(0,i.Te)(e),new Blob(n)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function c(e){return!!Array.isArray(e)&&e.every((e=>e instanceof a))}const f=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:n}=e;return f.test(t)||p.test(n)}return f.test(e.assetMimeType)||p.test(e.assetName)}function g(e,t){if(!e)return!1;const{source:n}=e;return function(e,t){if(Array.isArray(e)){const n=e;return n.length>0&&n.every((e=>d(e,t)))}return d(e,t)}(n,t)}function y(e,t){if(e===t)return!0;const{source:n}=e,{source:r}=t;if(n===r)return!0;if(c(n)&&c(r)){if(n.length!==r.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...n].sort(e),o=[...r].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(o[e]))return!1;return!0}return!1}function d(e,t){return e instanceof a&&e.isOnService(t)}function m(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.R_)(e.assetMimeType,t)??(0,s.E1)(e.assetName,t)}function x(e){return Array.isArray(e)?e:[e]}function v(e){return!!e.original}},9318:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(34727),o=n(97146);function i(e,t,n){const i=Array.isArray(e),c=i?e.length/t:e.byteLength/(4*t),f=i?e:new Uint32Array(e,0,c*t),p=n?.minReduction??0,h=n?.originalIndices||null,g=h?h.length:0,y=n?.componentOffsets||null;let d=0;if(y)for(let e=0;e<y.length-1;e++){const t=y[e+1]-y[e];t>d&&(d=t)}else d=c;const m=Math.floor(1.1*d)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,r.cU)(2*m)));for(let e=0;e<2*m;e++)u[e]=0;let x=0;const v=!!y&&!!h,A=v?g:c;let w=(0,o.my)(c);const M=new Uint32Array(g),b=1.96;let T=0!==p?Math.ceil(4*b*b/(p*p)*p*(1-p)):A,_=1,S=y?y[1]:A;for(let e=0;e<A;e++){if(e===T){const t=1-x/e;if(t+b*Math.sqrt(t*(1-t)/e)<p)return null;T*=2}if(e===S){for(let e=0;e<2*m;e++)u[e]=0;if(h)for(let e=y[_-1];e<y[_];e++)M[e]=w[h[e]];S=y[++_]}const n=v?h[e]:e,r=n*t,o=l(f,r,t);let i=o%m,a=x;for(;0!==u[2*i+1];){if(u[2*i]===o){const e=u[2*i+1]-1;if(s(f,r,e*t,t)){a=w[e];break}}i++,i>=m&&(i-=m)}a===x&&(u[2*i]=o,u[2*i+1]=n+1,x++),w[n]=a}if(0!==p&&1-x/c<p)return null;if(v){for(let e=y[_-1];e<M.length;e++)M[e]=w[h[e]];w=(0,o.Dg)(M)}const R=i?new Array(x):new Uint32Array(x*t);x=0;for(let e=0;e<A;e++)w[e]===x&&(a(f,(v?h[e]:e)*t,R,x*t,t),x++);if(h&&!v){const e=new Uint32Array(g);for(let t=0;t<e.length;t++)e[t]=w[h[t]];w=(0,o.Dg)(e)}return{buffer:Array.isArray(R)?R:R.buffer,indices:w,uniqueCount:x}}function s(e,t,n,r){for(let o=0;o<r;o++)if(e[t+o]!==e[n+o])return!1;return!0}function a(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}function l(e,t,n){let r=0;for(let o=0;o<n;o++)r=e[t+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let u=null},22141:(e,t,n)=>{n.d(t,{$5:()=>_,CN:()=>w,JP:()=>A,KM:()=>R,Mv:()=>C,X4:()=>M,gr:()=>T,project:()=>P,qs:()=>S,si:()=>b,xA:()=>N});var r=n(34727),o=n(77690),i=n(29242),s=n(58083),a=n(9093),l=n(38954),u=n(51850),c=n(57251),f=n(98764),p=n(48353),h=n(9762),g=n(4197),y=(n(79258),n(21325)),d=n(28735),m=n(13030),x=n(73354),v=n(65686);const A="Projection may be possible after calling projection.load().";function w(e,t,n,r){e.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function M(e,t,n,r,o){return U(F.TO_PCPF,m.xs.fromTypedArray(e),O.NORMAL,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o))?o:null}function b(e,t,n,r,o){return U(F.FROM_PCPF,m.xs.fromTypedArray(e),O.NORMAL,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o))?o:null}function T(e,t,n){return(0,h.projectBuffer)(e,t,0,n,(0,f.lO)(t),0,e.length/3)?n:null}function _(e,t,n){return(0,h.projectBuffer)(e,(0,f.lO)(n),0,t,n,0,e.length/3)?t:null}function S(e,t,n){return(0,o.Ge)(j,n),(0,x.t)(t,e,j),(0,r.or)(j)&&(0,x.n)(t,t),t}function R(e,t,n){return(0,o.z0)(j,n),(0,v.t)(t,e,j),(0,r.or)(j)&&(0,x.n)(t,t,4),t}function N(e,t,n,r,o){if(!U(F.TO_PCPF,m.xs.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),O.TANGENT,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}function C(e,t,n,r,o){if(!U(F.FROM_PCPF,m.xs.fromTypedArray(e,16),O.TANGENT,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o,16)))return null;for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}var O,F,Z;function E(e,t,n,r,i){switch((0,p.l)(r,n,I,r),e===F.FROM_PCPF&&(0,s.B8)(I,I),t){case O.NORMAL:return(0,o.Ge)(i,I);case O.TANGENT:return(0,o.z0)(i,I)}}function U(e,t,n,r,o,i,s){if(!t)return;const a=r.count,u=(0,f.lO)(i);if(function(e){return e.isWGS84||(0,y.x1)(e)||(0,y.q8)(e)||(0,y.KQ)(e)}(i))for(let r=0;r<a;r++)o.getVec(r,B),t.getVec(r,L),(0,l.t)(L,L,E(e,n,B,u,j)),s.setVec(r,L);else for(let i=0;i<a;i++){o.getVec(i,B),t.getVec(i,L);const a=(0,d.jg)(r.get(i,1));let c=Math.cos(a);n===O.TANGENT!=(e===F.TO_PCPF)&&(c=1/c),E(e,n,B,u,j),e===F.TO_PCPF?(j[0]*=c,j[1]*=c,j[2]*=c,j[3]*=c,j[4]*=c,j[5]*=c):(j[0]*=c,j[3]*=c,j[6]*=c,j[1]*=c,j[4]*=c,j[7]*=c),(0,l.t)(L,L,j),(0,l.n)(L,L),s.setVec(i,L)}return s}function P(e){return"local"===e.vertexSpace.type?function({vertexSpace:e,transform:t,inSpatialReference:n,outSpatialReference:r,localMode:o,outPositions:i,positions:l}){const y=e.origin??u.uY,d=null!=e.origin?t?.localMatrix??a.zK:a.zK,m=(0,f.lO)(n),v=r.isWebMercator&&o||!(0,c.canProjectWithoutEngine)(n,m)?n:m;(0,p.l)(n,y,I,v),(0,s.lw)(I,I,d);const A=i??(0,g.jh)(l.length);return(0,x.a)(A,l,I),(0,h.projectBuffer)(A,v,0,A,r,0,A.length/3),A}(e):function({vertexSpace:e,transform:t,outPositions:n,positions:r,inSpatialReference:o,outSpatialReference:i}){const c=null!=e.origin?t?.localMatrix??a.zK:a.zK,f=n??(0,g.jh)(r.length);(0,s.aI)(c,a.zK)?(0,g.s)(f,r):(0,x.a)(f,r,c);const p=e.origin??u.uY;if(!(0,l.e)(p,u.uY)){const[e,t,n]=p;for(let r=0;r<f.length;r+=3)f[r]+=e,f[r+1]+=t,f[r+2]+=n}return(0,h.projectBuffer)(f,o,0,f,i,0,f.length/3)?f:null}(e)}(Z=O||(O={}))[Z.NORMAL=0]="NORMAL",Z[Z.TANGENT=1]="TANGENT",function(e){e[e.TO_PCPF=0]="TO_PCPF",e[e.FROM_PCPF=1]="FROM_PCPF"}(F||(F={}));const B=(0,u.vt)(),L=(0,u.vt)(),I=(0,a.vt)(),j=(0,i.vt)()},72258:(e,t,n)=>{n.d(t,{UR:()=>A,p5:()=>v,xK:()=>T});var r=n(53966),o=n(34727),i=n(83047),s=n(77690),a=n(29242),l=n(58083),u=n(9093),c=n(38954),f=n(51850),p=n(98764),h=n(48353),g=n(65806),y=n(27615),d=n(73354),m=n(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(e,t,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const o=e;if(!(0,g.g)(t,o,r))return!1;const{origin:i}=n;return(0,c.f)(e,o,i),!0}const o=(0,p.lO)(r),i=e;if(!(0,g.g)(t,i,o))return!1;const{origin:s}=n,a=C;if(!(0,h.l)(r,s,a,o))return!1;const u=(0,l.B8)(C,a);return null!=u&&((0,c.h)(e,i,u),!0)}function A(e,t,n){const{vertexSpace:r,transform:i,vertexAttributes:a}=e,f=b(e.spatialReference,n,O.SOURCE|O.TARGET);if((0,y.yJ)(r,t)&&(!i||(0,l.t2)(i.localMatrix,u.zK))&&(0,o.Io)(f,1)){const{position:e,normal:t,tangent:r}=a,o=n?.allowBufferReuse;return{position:o?e:e.slice(),normal:o?t:t?.slice(),tangent:o?r:r?.slice()}}switch(e.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const s=(0,p.lO)(t);if(!(0,h.l)(t,r,_,s))return(0,m.CN)(x(),t,s),null;if(n&&(0,l.lw)(_,_,n.localMatrix),!(0,h.l)(t,o,S,s))return(0,m.CN)(x(),s,t),null;(0,l.B8)(S,S);const a=(0,l.lw)(_,S,_);return M(a,t,i,O.SOURCE|O.TARGET),w(e,a)}(e,e.vertexSpace,t.origin,n):function({spatialReference:e,vertexAttributes:t,transform:n},{origin:r},o,i){const s=(0,p.lO)(e);if(!(0,h.l)(e,r,_,s))return(0,m.CN)(x(),e,s),null;n&&(0,l.lw)(_,_,n.localMatrix),M(_,e,i,O.SOURCE);const a=new Float64Array(t.position.length),u=function(e,t,n,r){(0,d.a)(r,e,t);const o=new Float64Array(e.length);return(0,m.$5)(r,o,n)?o:((0,m.CN)(x(),(0,p.lO)(n),n),null)}(t.position,_,e,a);if(!u)return null;const f=function(e,t,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,m.qs)(n,i,r),(0,m.si)(i,e,t,o,i)?i:((0,m.CN)(x(),(0,p.lO)(o),o),null)}(u,a,t.normal,_,e);if(t.normal&&!f)return null;const g=function(e,t,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,m.KM)(n,i,r),(0,m.Mv)(i,e,t,o,i)?i:((0,m.CN)(x(),(0,p.lO)(o),o),null)}(u,a,t.tangent,_,e);if(t.tangent&&!g)return null;if(o){const e=(0,c.k)(N,o);(0,d.b)(u,u,e)}return{position:u,normal:f,tangent:g}}(e,e.vertexSpace,t.origin,n);case"georeferenced":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const a=(0,p.lO)(t);if(!(0,h.l)(t,o,_,a))return(0,m.CN)(x(),t,a),null;const u=1/b(t,i,O.TARGET);(0,l.hs)(_,_,[u,u,u]);const c=(0,l.B8)(S,_),{position:f,normal:g,tangent:y}=function(e,t,n){if(!t)return e;if(!n){const{position:n,normal:r,tangent:o}=e;return{position:(0,d.b)(new Float64Array(n.length),n,t),tangent:o,normal:r}}const r=w(e,n.localMatrix);return(0,d.b)(r.position,r.position,t),r}(e,r,n),v=new Float64Array(f.length),A=function(e,t,n,r){const o=(0,m.gr)(e,t,r);if(!o)return(0,m.CN)(x(),t,(0,p.lO)(t)),null;const i=new Float64Array(o.length);return(0,d.a)(i,o,n),i}(f,t,c,v);if(!A)return null;const M=(0,s.Ge)(R,c),T=function(e,t,n,r,o,i){if(null==e)return null;const s=i??new Float32Array(e.length);return(0,m.X4)(e,t,n,r,s)?((0,d.t)(s,s,o),s):((0,m.CN)(x(),r,(0,p.lO)(r)),null)}(g,f,v,t,M,g!==e.normal?g:void 0);if(!T&&g)return null;const N=function(e,t,n,r,o,i){if(null==e)return null;const s=i??new Float32Array(e.length);return(0,m.xA)(e,t,n,r,s)?((0,d.t)(s,s,o,4),s):((0,m.CN)(x(),r,(0,p.lO)(r)),null)}(y,f,v,t,M,y!==e.tangent?y:void 0);return!N&&y?null:{position:A,normal:T,tangent:N}}(e,e.vertexSpace,t.origin,n):function({vertexAttributes:e,transform:t,spatialReference:n},{origin:r},o,i){const{position:s,normal:a,tangent:l}=t?w(e,t.localMatrix):e,u=new Float64Array(s.length);let f=s;if(r&&(f=(0,d.b)(u,f,r)),o){const e=(0,c.k)(N,o);f=(0,d.b)(u,f,e)}b(n,i,O.NONE);const p=i?.allowBufferReuse;return{position:f!==e.position||p?f:f.slice(),normal:a!==e.normal||p?a:a?.slice(),tangent:l!==e.tangent||p?l:l?.slice()}}(e,e.vertexSpace,t.origin,n)}}function w(e,t){const n=new Float64Array(e.position.length);(0,d.a)(n,e.position,t);const r=e.normal?new Float32Array(e.normal.length):null,o=e.tangent?new Float32Array(e.tangent.length):null;return r&&e.normal&&(0,m.qs)(e.normal,r,t),o&&e.tangent&&(0,m.KM)(e.tangent,o,t),{position:n,normal:r,tangent:o}}function M(e,t,n,r){const o=b(t,n,r);1!==o&&(0,l.hs)(e,e,[o,o,o])}function b(e,t,n){const r=!!(n&O.SOURCE),o=!!(n&O.TARGET),i=t?.sourceUnit,s=t?.targetUnit;if(!i&&!s)return 1;let a=T(i,e);!r&&i&&1!==a&&(x().warn("source unit conversion not supported"),a=1);let l=1/T(s,e);return!o&&s&&1!==l&&(x().warn("target unit conversion not supported"),l=1),a*l}function T(e,t){if(null==e)return 1;const n=(0,i.KX)(t);return 1/(0,i.oU)(n,"meters",e)}const _=(0,u.vt)(),S=(0,u.vt)(),R=(0,a.vt)(),N=(0,f.vt)(),C=(0,u.vt)();var O,F;(F=O||(O={}))[F.NONE=0]="NONE",F[F.SOURCE=1]="SOURCE",F[F.TARGET=2]="TARGET"},27615:(e,t,n)=>{n.d(t,{CK:()=>f,Hq:()=>c,MW:()=>p,TE:()=>h,yJ:()=>g});var r=n(51447),o=n(53966),i=n(38954),s=n(86738),a=n(95696),l=n(18251);function u(){return o.A.getLogger("esri.geometry.Mesh")}function c(e){return null!=e.origin}function f(e){return c(e.vertexSpace)}function p(e,t){if(!c(e))return null;const[n,r,o]=e.origin;return new s.A({x:n,y:r,z:o,spatialReference:t})}function h(e,t){const{x:n,y:o,z:i,spatialReference:s}=e,c=[n,o,i??0];return void 0!==t?.geographic&&((0,r.io)(u(),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),t.vertexSpace&&u().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(t?.vertexSpace??(f=t?.geographic,null==f?void 0:f?"local":"georeferenced")??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(s))?new l.A({origin:c}):new a.A({origin:c});var f}function g(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,i.e)(e.origin,t.origin))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1535,2141],{83349:(e,t,n)=>{function r(e,t,n){n=n||2;var r,i,a,l,u,c,p,h=t&&t.length,g=h?t[0]*n:e.length,y=o(e,0,g,n,!0),d=[];if(!y||y.next===y.prev)return d;if(h&&(y=f(e,t,y,n)),e.length>80*n){r=a=e[0],i=l=e[1];for(var m=n;m<g;m+=n)(u=e[m])<r&&(r=u),(c=e[m+1])<i&&(i=c),u>a&&(a=u),c>l&&(l=c);p=0!==(p=Math.max(a-r,l-i))?1/p:0}return s(y,d,n,r,i,p),d}function o(e,t,n,r,o){var i,s;if(o===F(e,t,n,r)>0)for(i=t;i<n;i+=r)s=N(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=N(i,e[i],e[i+1],s);if(s&&M(s,s.next)){var a=s.next;C(s),s=a}return s}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!M(r,r.next)&&0!==w(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(C(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function s(e,t,n,r,o,f,p){if(e){!p&&f&&d(e,r,o,f);for(var h,g,y=e;e.prev!==e.next;)if(h=e.prev,g=e.next,f?l(e,r,o,f):a(e))t.push(h.i/n),t.push(e.i/n),t.push(g.i/n),C(e),e=g.next,y=g.next;else if((e=g)===y){p?1===p?s(e=u(i(e),t,n),t,n,r,o,f,2):2===p&&c(e,t,n,r,o,f):s(i(e),t,n,r,o,f,1);break}}}function a(e){var t=e.prev,n=e,r=e.next;if(w(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(v(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&w(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function l(e,t,n,r){var o=e.prev,i=e,s=e.next;if(w(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,u=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,c=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,f=m(a,l,t,n,r),p=m(u,c,t,n,r),h=e.prevZ,g=e.nextZ;h&&h.z>=f&&g&&g.z<=p;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&w(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;g&&g.z<=p;){if(g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&w(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(e,t,n){var r=e;do{var o=r.prev,s=r.next.next;!M(o,s)&&b(o,r,r.next,s)&&S(o,s)&&S(s,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(s.i/n),C(r),C(r.next),r=e=s),r=r.next}while(r!==e);return i(r)}function c(e,t,n,r,o,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&A(l,u)){var c=R(l,u);return l=i(l,l.next),c=i(c,c.next),s(l,t,n,r,o,a),void s(c,t,n,r,o,a)}u=u.next}l=l.next}while(l!==e)}function f(e,t,n,r){var s,a,l,u=[];for(s=0,a=t.length;s<a;s++)(l=o(e,t[s]*r,s<a-1?t[s+1]*r:e.length,r,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(p),s=0;s<u.length;s++)n=i(n=g(u[s],n),n.next);return n}function p(e,t){return e.x-t.x}function h(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,u=n,c=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=c&&o!==r.x&&v(i<f?o:s,i,c,f,i<f?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),S(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&y(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t);if(!n)return t;var r=R(n,e),o=i(n,n.next);let s=h(r);return i(s,s.next),o=h(o),h(t===n?o:t)}function y(e,t){return w(e.prev,e,t.prev)<0&&w(t.next,e,e.next)<0}function d(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,u=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<u&&(a++,r=r.nextZ);t++);for(l=u;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(s>1)}(o)}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function v(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function A(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&b(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(S(e,t)&&S(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(w(e.prev,e,t.prev)||w(e,t.prev,t))||M(e,t)&&w(e.prev,e,e.next)>0&&w(t.prev,t,t.next)>0)}function w(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function M(e,t){return e.x===t.x&&e.y===t.y}function b(e,t,n,r){var o=_(w(e,t,n)),i=_(w(e,t,r)),s=_(w(n,r,e)),a=_(w(n,r,t));return o!==i&&s!==a||!(0!==o||!T(e,n,t))||!(0!==i||!T(e,r,t))||!(0!==s||!T(n,e,r))||!(0!==a||!T(n,t,r))}function T(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function S(e,t){return w(e.prev,e,e.next)<0?w(e,t,e.next)>=0&&w(e,e.prev,t)>=0:w(e,t,e.prev)<0||w(e,e.next,t)<0}function R(e,t){var n=new O(e.i,e.x,e.y),r=new O(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function N(e,t,n,r){var o=new O(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function C(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function O(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}n.d(t,{e:()=>r}),r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(F(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var u=t[a]*n,c=a<l-1?t[a+1]*n:e.length;s-=Math.abs(F(e,u,c,n))}var f=0;for(a=0;a<r.length;a+=3){var p=r[a]*n,h=r[a+1]*n,g=r[a+2]*n;f+=Math.abs((e[p]-e[g])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[g+1]-e[p+1]))}return 0===s&&0===f?0:Math.abs((f-s)/s)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},73354:(e,t,n)=>{function r(e,t,n){o(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function o(e,t,n,r=3,o=r){if(e.length/r!==Math.ceil(t.length/o))return e;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[4],c=n[5],f=n[6],p=n[8],h=n[9],g=n[10],y=n[12],d=n[13],m=n[14];let x=0,v=0;for(let n=0;n<i;n++){const n=t[x],i=t[x+1],A=t[x+2];e[v]=s*n+u*i+p*A+y,e[v+1]=a*n+c*i+h*A+d,e[v+2]=l*n+f*i+g*A+m,x+=o,v+=r}return e}function i(e,t,n){s(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function s(e,t,n,r=3,o=r){if(e.length/r!==Math.ceil(t.length/o))return;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[3],c=n[4],f=n[5],p=n[6],h=n[7],g=n[8];let y=0,d=0;for(let n=0;n<i;n++){const n=t[y],i=t[y+1],m=t[y+2];e[d]=s*n+u*i+p*m,e[d+1]=a*n+c*i+h*m,e[d+2]=l*n+f*i+g*m,y+=o,d+=r}}function a(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function l(e,t,n,r=3,o=r){const i=Math.min(e.length/r,t.length/o);let s=0,a=0;for(let l=0;l<i;l++)e[a]=n*t[s],e[a+1]=n*t[s+1],e[a+2]=n*t[s+2],s+=o,a+=r;return e}function u(e,t,n,r=3,o=r){const i=e.length/r;if(i!==Math.ceil(t.length/o))return e;let s=0,a=0;for(let l=0;l<i;l++)e[a]=t[s]+n[0],e[a+1]=t[s+1]+n[1],e[a+2]=t[s+2]+n[2],s+=o,a+=r;return e}function c(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let i=0,s=0;for(let a=0;a<o;a++){const o=t[i],a=t[i+1],l=t[i+2],u=o*o+a*a+l*l;if(u>0){const t=1/Math.sqrt(u);e[s]=t*o,e[s+1]=t*a,e[s+2]=t*l}i+=r,s+=n}}n.d(t,{a:()=>o,b:()=>u,c:()=>i,d:()=>r,e:()=>c,f:()=>l,n:()=>f,s:()=>a,t:()=>s}),n(44208),n(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:c,scale:l,scaleView:a,shiftRight:function(e,t,n){const r=Math.min(e.count,t.count),o=e.typedBuffer,i=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,u=0;for(let e=0;e<r;e++)o[u]=s[l]>>n,o[u+1]=s[l+1]>>n,o[u+2]=s[l+2]>>n,l+=a,u+=i},transformMat3:s,transformMat3View:i,transformMat4:o,transformMat4View:r,translate:u},Symbol.toStringTag,{value:"Module"}))},65686:(e,t,n)=>{n.d(t,{a:()=>o,b:()=>l,n:()=>s,s:()=>a,t:()=>i}),n(44208);var r=n(53966);function o(e,t,n){i(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function i(e,t,n,r=4,o=r){if(e.length/r!=t.length/o)return;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[3],c=n[4],f=n[5],p=n[6],h=n[7],g=n[8];let y=0,d=0;for(let n=0;n<i;n++){const n=t[y],i=t[y+1],m=t[y+2],x=t[y+3];e[d]=s*n+u*i+p*m,e[d+1]=a*n+c*i+h*m,e[d+2]=l*n+f*i+g*m,e[d+3]=x,y+=o,d+=r}}function s(e,t){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,i=t.typedBuffer,s=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*o,n=e*s,a=i[n],l=i[n+1],u=i[n+2],c=a*a+l*l+u*u;if(c>0){const e=1/Math.sqrt(c);r[t]=e*a,r[t+1]=e*l,r[t+2]=e*u}}}function a(e,t,n){l(e.typedBuffer,t,n,e.typedBufferStride)}function l(e,t,n,r=4){const o=Math.min(e.length/r,t.count),i=t.typedBuffer,s=t.typedBufferStride;let a=0,l=0;for(let t=0;t<o;t++)e[l]=n*i[a],e[l+1]=n*i[a+1],e[l+2]=n*i[a+2],e[l+3]=n*i[a+3],a+=s,l+=r}Object.freeze(Object.defineProperty({__proto__:null,normalize:s,scale:l,scaleView:a,transformMat3:i,transformMat3View:o,transformMat4:function(e,t,n,o=4,i=o){if(e.length/o!=t.length/i)return void r.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const s=e.length/o,a=n[0],l=n[1],u=n[2],c=n[3],f=n[4],p=n[5],h=n[6],g=n[7],y=n[8],d=n[9],m=n[10],x=n[11],v=n[12],A=n[13],w=n[14],M=n[15];let b=0,T=0;for(let n=0;n<s;n++){const n=t[b],r=t[b+1],s=t[b+2],_=t[b+3];e[T]=a*n+f*r+y*s+v*_,e[T+1]=l*n+p*r+d*s+A*_,e[T+2]=u*n+h*r+m*s+w*_,e[T+3]=c*n+g*r+x*s+M*_,b+=i,T+=o}},transformMat4View:function(e,t,n){if(e.count!==t.count)return;const r=e.count,o=n[0],i=n[1],s=n[2],a=n[3],l=n[4],u=n[5],c=n[6],f=n[7],p=n[8],h=n[9],g=n[10],y=n[11],d=n[12],m=n[13],x=n[14],v=n[15],A=e.typedBuffer,w=e.typedBufferStride,M=t.typedBuffer,b=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*w,n=e*b,r=M[n],T=M[n+1],_=M[n+2],S=M[n+3];A[t]=o*r+l*T+p*_+d*S,A[t+1]=i*r+u*T+h*_+m*S,A[t+2]=s*r+c*T+g*_+x*S,A[t+3]=a*r+f*T+y*_+v*S}}},Symbol.toStringTag,{value:"Module"}))},43668:(e,t,n)=>{n.d(t,{M5:()=>f,eV:()=>c});var r=n(78888),o=n(49186),i=n(74887),s=n(84952),a=n(26306);let l=null,u=!0;function c(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch(e){u=!1}const o=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return o.data.set(e,0),o}async function f(e,t){const{arrayBuffer:l,mediaType:u}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const o=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(c){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,i.zf)(e))throw new o.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),t)}},1535:(e,t,n)=>{n.d(t,{A:()=>Ke});var r=n(90237),o=n(51447),i=n(49186),s=n(92474),a=n(53966),l=n(61893),u=n(74887),c=n(36708),f=n(10107),p=(n(44208),n(87811),n(40608)),h=n(51850),g=n(5443),y=n(91075),d=n(86738),m=n(39829),x=n(24770),v=n(16939);const A="Expected location to be a Point instance";class w extends i.A{constructor(){super("invalid-input:location",A)}}var M=n(95696),b=n(18251),T=n(73836),_=n(1193),S=n(27615),R=n(83349),N=n(88582),C=n(95108),O=n(4197),F=n(97146),Z=n(34727),E=n(83047),U=n(38954),P=n(240);const B=(0,P.vt)();var L,I,j=n(9318);function D(e,t,n,r){const o=e.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0;for(let t=0;t<o;++t)l+=e[t].length;let u=0,c=0,f=0;const p=(0,O.jh)(3*l);let h=0;for(let l=o-1;l>=0;l--){const g=e[l],y=n===L.CCW_IS_HOLE&&$(g,t,r);if(y&&1!==o)i[u++]=g;else{let e=g.length;for(let t=0;t<u;++t)e+=i[t].length;const n={index:h,pathLengths:new Array(u+1),count:e,holeIndices:new Array(u)};n.pathLengths[0]=g.length,g.length>0&&(a[f++]={index:h,count:g.length}),h=y?z(g,g.length-1,-1,p,h,g.length,t):z(g,0,1,p,h,g.length,t);for(let e=0;e<u;++e){const r=i[e];n.holeIndices[e]=h,n.pathLengths[e+1]=r.length,r.length>0&&(a[f++]={index:h,count:r.length}),h=z(r,0,1,p,h,r.length,t)}u=0,n.count>0&&(s[c++]=n)}}for(let e=0;e<u;++e){const n=i[e];n.length>0&&(a[f++]={index:h,count:n.length}),h=z(n,0,1,p,h,n.length,t)}return s.length=c,a.length=f,{position:p,polygons:s,outlines:a}}function z(e,t,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=e[t];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,t+=n}return o/3}function $(e,t,n){if(!t)return!(0,C.$3)(e);switch(function(e,t,n){const r=function(e,t,n,r){const o=(e=>!Array.isArray(e[0]))(t)?(e,n)=>t[3*e+n]:(e,n)=>t[e][n],i=r?(0,E.GA)(r)/(0,E.G9)(r):1;return(0,P.lU)(e,((e,t)=>(0,U.a)(e,o(t,0)*i,o(t,1)*i,o(t,2))),n)}(B,e,t,n)?(0,P.Qj)(B):[0,0,1];return Math.abs(r[2])>Math.cos((0,Z.kU)(80))?N._.Z:Math.abs(r[1])>Math.abs(r[0])?N._.Y:N._.X}(e,e.length-1,n)){case N._.X:return!(0,C.$3)(e,N._.Y,N._.Z);case N._.Y:return!(0,C.$3)(e,N._.X,N._.Z);case N._.Z:return!(0,C.$3)(e,N._.X,N._.Y)}}(I=L||(L={}))[I.NONE=0]="NONE",I[I.CCW_IS_HOLE=1]="CCW_IS_HOLE";var H=n(70328),W=n(22141);let G=null;function V(e){if(0===e.length)return H.v_;const t=(0,H.vt)([Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY,-Number.POSITIVE_INFINITY]);return(0,H.Hq)(t,e),t}function k(e,t){const[n,r,o,i,s,a]=V(e);return new g.A({xmin:n,ymin:r,zmin:o,xmax:i,ymax:s,zmax:a,spatialReference:t})}var Y=n(65806);function q(e,t,n,r){if(void 0!==r){(0,o.io)(e(),"option: geographic",{replacement:"Use mesh `vertexSpace` and spatial reference to control how operations are performed instead.",version:"4.30",warnOnce:!0});const i="local"===t.type;if(!(0,S.Hq)(t)||r===i)return n.isGeographic||n.isWebMercator&&r;e().warnOnce(`Specifying the 'geographic' parameter (${r}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}switch(t.type){case"georeferenced":return n.isGeographic;case"local":return n.isGeographic||n.isWebMercator}}var K=n(72258);const X=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const J=(0,h.vt)(),Q=(0,h.vt)(),ee=(0,h.vt)();var te=n(84952);function ne(e){const t=(0,te.nM)(e.url);return n=>{const r=(0,te.V1)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}function re(e){return ue.fromBlob(e,ce(e.name,e.type))}const oe=/^model\/gltf\+json$/,ie=/^model\/gltf-binary$/,se=/\.gltf$/i,ae=/\.glb$/i;function le(e){const t=new Map;let n,r=null;for(const{name:o,mimeType:i,source:s}of e)null===r&&(oe.test(i)||se.test(o)?(r=s.url,n="gltf"):(ie.test(i)||ae.test(o))&&(r=s.url,n="glb")),t.set(o,s.url),s.files.forEach(((e,n)=>t.set(n,e)));if(null==r)throw new i.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new ue(r,(()=>e.forEach((({source:e})=>e.dispose()))),t,n)}class ue{constructor(e,t=()=>{},n=new Map,r){this.url=e,this.dispose=t,this.files=n,this.type=r}static fromBlob(e,t){const n=URL.createObjectURL(e);return new ue(n,(()=>URL.revokeObjectURL(n)),void 0,t)}}function ce(e,t){return oe.test(t)||se.test(e)?"gltf":ie.test(t)||se.test(e)?"glb":void 0}var fe=n(69540),pe=n(5503),he=n(63579);let ge=class extends fe.P{constructor(e){super(e),this.externalSources=new pe.A,this._explicitDisplaySource=null,this.addHandles((0,c.on)((()=>this.externalSources),"after-remove",(({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)}),{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,he.yr)(e))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every((t=>!(0,he.in)(t,e)))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter((t=>(0,he.eN)(t,e)))}get _implicitDisplaySource(){return this.externalSources.find(he.yr)}};(0,r._)([(0,f.MZ)()],ge.prototype,"externalSources",void 0),(0,r._)([(0,f.MZ)()],ge.prototype,"displaySource",null),(0,r._)([(0,f.MZ)()],ge.prototype,"_implicitDisplaySource",null),(0,r._)([(0,f.MZ)()],ge.prototype,"_explicitDisplaySource",void 0),ge=(0,r._)([(0,p.$)("esri.geometry.support.meshUtils.Metadata")],ge);var ye=n(29242);const de={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function me(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){we[0]=t[0],we[4]=t[1],we[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)Ae[n]=e.position[t+n];(0,U.t)(Ae,Ae,we);for(let n=0;n<3;n++)e.position[t+n]=Ae[n]}if(t[0]!==t[1]||t[1]!==t[2]){we[0]=1/t[0],we[4]=1/t[1],we[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)Ae[n]=e.normal[t+n];(0,U.t)(Ae,Ae,we),(0,U.n)(Ae,Ae);for(let n=0;n<3;n++)e.normal[t+n]=Ae[n]}}}}(e,function(e,t,n){const r=(0,K.xK)(t,n);if(null==e&&1===r)return null;if(null==e)return[r,r,r];if("number"==typeof e){const t=e*r;return[t,t,t]}return[null!=e.width?e.width*r:r,null!=e.depth?e.depth*r:r,null!=e.height?e.height*r:r]}(n?.size,n?.unit,t.spatialReference));const r=(0,S.TE)(t,n),o=t.spatialReference.isGeographic?(0,S.TE)(t):r,i=(0,K.UR)({vertexAttributes:e,vertexSpace:o,spatialReference:t.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new _.H({...i,uv:e.uv}),vertexSpace:r,components:[new v.A({faces:e.faces,material:n?.material||null})],spatialReference:t.spatialReference}}const xe={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},ve={south:0,east:1,north:2,west:3,up:4,down:5},Ae=(0,h.vt)(),we=(0,ye.vt)();var Me=n(77690),be=n(58083),Te=n(9093),_e=n(67026),Se=n(82534),Re=n(98764),Ne=n(48353);const Ce=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function Oe(e,t,n,r=h.uY){if(null!=e){(0,be.$0)(Ue,(0,x.$I)(t),(0,x.yo)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)Fe[n]=e[t+n]-r[n];(0,U.h)(Fe,Fe,Ue);for(let n=0;n<3;n++)e[t+n]=Fe[n]+r[n]}}}const Fe=(0,h.vt)(),Ze=(0,Te.vt)(),Ee=(0,x.vt)(),Ue=(0,Te.vt)(),Pe=(0,ye.vt)(),Be=(0,h.vt)(),Le=(0,Se.vt)(),Ie=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function je(e,t,n=h.uY){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)De[t]=e[r+t]-n[t];(0,U.j)(De,De,t);for(let t=0;t<3;t++)e[r+t]=De[t]+n[t]}}const De=(0,h.vt)(),ze=(0,h.vt)(),$e=(0,Te.vt)(),He=(0,h.vt)();var We;const Ge="esri.geometry.Mesh";function Ve(){return a.A.getLogger(Ge)}const ke={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:M.A,local:b.A}};let Ye=We=class extends(s.A.LoadableMixin((0,l.g)(y.A))){constructor(e){super(e),this.components=null,this.vertexSpace=new M.A,this.transform=null,this.metadata=new ge,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new _.H,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.addHandles((0,c.wB)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{components:e,spatialReference:t,vertexAttributes:n,vertexSpace:r}=this,o=n.position;if(0===o.length||e&&0===e.length)return new g.A({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t});if((0,S.Hq)(r)){const{_untransformedBounds:e,transform:n}=this;return function([e,t,n,r,o,i],s,a,l){G??=new Float64Array(24);const u=G;return u[0]=e,u[1]=t,u[2]=n,u[3]=e,u[4]=o,u[5]=n,u[6]=r,u[7]=o,u[8]=n,u[9]=r,u[10]=t,u[11]=n,u[12]=e,u[13]=t,u[14]=i,u[15]=e,u[16]=o,u[17]=i,u[18]=r,u[19]=o,u[20]=i,u[21]=r,u[22]=t,u[23]=i,(0,W.project)({positions:u,transform:s,vertexSpace:a,inSpatialReference:l,outSpatialReference:l,outPositions:u}),k(u,l)}(e,n,r,t)}return k(o,t)}get _untransformedBounds(){return V(this.vertexAttributes.position)}get origin(){const e=(0,S.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;const{center:t,zmin:n}=this._transformedExtent;return new d.A({x:t.x,y:t.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(v.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}Ve().error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,n,r){return(0,x.AU)(e,t,n,qe),function(e,t,n){if(!e.vertexAttributes?.position||0===t[3])return;const{spatialReference:r,vertexSpace:o}=e,i=n?.origin??e.origin,s=n?.geographic,a=q(Ce,o,r,s);(0,S.CK)(e)?function(e,t,n){e.transform??=new T.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new d.A({x:s,y:a,z:l,spatialReference:i}),c=Fe;if(u.equals(n))(0,U.a)(c,0,0,0);else if(!(0,K.p5)(c,n,e))return void(0,W.CN)(Ce(),n.spatialReference,i,W.JP);(0,_e.x8)(Le,(0,x.yo)(t),(0,x.$I)(t));const f=(0,be.O7)(Ze,Le,h.uY,h.Un,c),{localMatrix:p}=o,g=(0,be.lw)(Ze,f,p);o.scale=(0,be.IL)((0,h.vt)(),g),(0,be.hs)(g,g,(0,U.i)(Fe,o.scale));const y=o.rotationAxis;o.rotation=(0,x.ui)(g),0===o.rotationAngle&&(o.rotationAxis=y),o.translation=(0,be.sC)((0,h.vt)(),g)}(e,t,i):a?function(e,t,n){const r=e.spatialReference,o=(0,Re.lO)(r),i=Be;if(!(0,Y.g)(n,i,o)&&((0,W.CN)(Ce(),n.spatialReference,o,"Falling back to mesh origin"),!(0,Y.g)(e.origin,i,o)))return void(0,W.CN)(Ce(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;(0,Ne.l)(o,i,Ue,o),(0,Me.z0)(Pe,Ue);const p=Ee;(0,U.t)((0,x.yo)(Ee),(0,x.yo)(t),Pe),p[3]=t[3],!(0,W.gr)(s,r,u)||null!=a&&null!=c&&!(0,W.X4)(a,s,u,r,c)||null!=l&&null!=f&&!(0,W.xA)(l,s,u,r,f)?(0,W.CN)(Ce(),r,o):(Oe(u,p,3,i),!(0,W.$5)(u,s,r)||null!=a&&null!=c&&(Oe(c,p,3),!(0,W.si)(c,s,u,r,a))||null!=l&&null!=f&&(Oe(f,p,4),!(0,W.Mv)(f,s,u,r,l))?(0,W.CN)(Ce(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=Be;if(!(0,Y.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,W.CN)(Ce(),n.spatialReference,e.spatialReference,W.JP)}Oe(e.vertexAttributes.position,t,3,r),Oe(e.vertexAttributes.normal,t,3),Oe(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,i)}(this,qe,r),this}offset(e,t,n){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:r,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,S.Hq)(r)){const[o,i,s]=r.origin;r.origin=(0,h.fA)(o+e,i+t,s+n)}else{for(let r=0;r<i.length;r+=3)i[r]+=e,i[r+1]+=t,i[r+2]+=n;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r,spatialReference:o}=e,i=n?.origin??e.origin,s=n?.geographic,a=q(Ie,r,o,s);(0,S.CK)(e)?function(e,t,n){e.transform??=new T.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new d.A({x:s,y:a,z:l,spatialReference:i}),c=De;if(u.equals(n))(0,U.a)(c,0,0,0);else if(!(0,K.p5)(c,n,e))return void(0,W.CN)(Ie(),n.spatialReference,i,W.JP);const f=(0,U.a)(ze,t,t,t),p=(0,be.O7)($e,Se.zK,h.uY,f,c),{localMatrix:g}=o,y=(0,be.lw)($e,p,g);o.scale=(0,be.IL)((0,h.vt)(),y),(0,be.hs)(y,y,(0,U.i)(De,o.scale));const m=o.rotationAxis;o.rotation=(0,x.ui)(y),0===o.rotationAngle&&(o.rotationAxis=m),o.translation=(0,be.sC)((0,h.vt)(),y)}(e,t,i):a?function(e,t,n){const r=e.spatialReference,o=(0,Re.lO)(r),i=He;if(!(0,Y.g)(n,i,o)&&((0,W.CN)(Ie(),n.spatialReference,o,"Falling back to mesh origin"),!(0,Y.g)(e.origin,i,o)))return void(0,W.CN)(Ie(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;!(0,W.gr)(s,r,u)||null!=a&&null!=c&&!(0,W.X4)(a,s,u,r,c)||null!=l&&null!=f&&!(0,W.xA)(l,s,u,r,f)?(0,W.CN)(Ie(),r,o):(je(u,t,i),!(0,W.$5)(u,s,r)||null!=a&&null!=c&&!(0,W.si)(c,s,u,r,a)||null!=l&&null!=f&&!(0,W.Mv)(f,s,u,r,l)?(0,W.CN)(Ie(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=He;if(!(0,Y.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,W.CN)(Ie(),n.spatialReference,e.spatialReference,W.JP)}je(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,i)}(this,e,t),this):this}centerAt(e,t){return this._checkIfLoaded("centerAt()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r}=e,o=n?.origin??e.origin,i=q(X,r,o.spatialReference,n?.geographic);(0,S.Hq)(r)?function(e,t,n){const{vertexSpace:r}=e;if(!(0,S.Hq)(r))return;const o=Q,i=J;if(!(0,Y.g)(t,i,e.spatialReference))return void(0,W.CN)(X(),t.spatialReference,e.spatialReference,W.JP);if(!(0,Y.g)(n,o,e.spatialReference)){const t=e.origin;return o[0]=t.x,o[1]=t.y,o[2]=t.z,void(0,W.CN)(X(),n.spatialReference,e.spatialReference,W.JP)}const s=(0,U.f)(ee,i,o);r.origin=(0,U.g)((0,h.vt)(),r.origin,s)}(e,t,o):i?function(e,t,n){const r=(0,h.fA)(n.x,n.y,n.z??0),o=(0,K.UR)(e,new b.A({origin:r}));if(!o)return;const i=(0,h.fA)(t.x,t.y,t.z??0),s=(0,K.UR)({vertexAttributes:o,spatialReference:e.spatialReference,vertexSpace:new b.A({origin:i})},new M.A);if(!s)return;const{position:a,normal:l,tangent:u}=s;e.vertexAttributes.position=a,e.vertexAttributes.normal=l,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=Q,o=J;if((0,Y.g)(t,o,e.spatialReference)){if(!(0,Y.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,W.CN)(X(),n.spatialReference,e.spatialReference,W.JP)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else(0,W.CN)(X(),t.spatialReference,e.spatialReference,W.JP)}(e,t,o)}(this,e,t),this):this}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,r){const{source:o}=t,{loadGLTFMesh:s}=await(0,u.qr)(Promise.all([n.e(4399),n.e(4543)]).then(n.bind(n,94543)),r),a=await async function(e,t){if(Array.isArray(e)){if(!e.length)throw new i.A("mesh-load-external:missing-assets","There must be at least one file to load");return e[0]instanceof File?function(e){return le(e.map((e=>({name:e.name,mimeType:e.type,source:re(e)}))))}(e):async function(e,t){const n=await(0,u.nA)(e.map((async e=>{const n=await async function(e,t){const{parts:n,assetMimeType:r,assetName:o}=e;if(1===n.length)return new ue(n[0].partUrl);const i=await e.toBlob(t);return(0,u.Te)(t),ue.fromBlob(i,ce(o,r))}(e);return(0,u.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:n}})));if((0,u.G4)(t))throw n.forEach((e=>e.source.dispose())),(0,u.NK)();return le(n)}(e,t)}return re(e)}(o,r);(0,u.Te)(r);const l=s(new d.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),a.url,{resolveFile:ne(a),signal:r?.signal,expectedType:a.type});l.then((()=>a.dispose()),(()=>a.dispose()));const{vertexAttributes:c,components:f}=await l;e.vertexAttributes=c,e.components=f}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(){return this.cloneAndModifyVertexAttributes(this.vertexAttributes.clone(),this.vertexSpace.clone(),{preserveMetadata:!0})}cloneAndModifyVertexAttributes(e,t,n){let r=null;if(this.components){const e=new Map,t=new Map;r=this.components.map((n=>n.cloneWithDeduplication(e,t)))}const o={components:r,spatialReference:this.spatialReference,vertexAttributes:e,vertexSpace:t,transform:this.transform?.clone()??null,metadata:n?.preserveMetadata?this.metadata.clone():new ge};return new We(o)}cloneShallow(){return new We({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const[{toBinaryGLTF:t}]=await Promise.all([n.e(8096).then(n.bind(n,8096)),this.load(e)]);return(0,u.Te)(e),await t(this,e)}get memoryUsage(){let e=0;if(e+=this.vertexAttributes.memoryUsage,null!=this.components)for(const t of this.components)e+=t.memoryUsage;return e}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(Ve().error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof d.A))return Ve().error(".createBox()",A),null;const n=new We(me(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=xe,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,u=0,c=0,f=0;for(let r=0;r<e.length;r++){const p=e[r],h=l/3;for(const e of t)a[f++]=h+e;const g=p.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[c++]=.25*n[e][0]+p.uvOrigin[0],s[c++]=p.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==p.axis[e]?(o[l++]=.5*p.axis[e],i[u++]=p.axis[e]):(o[l++]=.5*t[r++],i[u++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),e,t));return t?.imageFace&&"all"!==t.imageFace?function(e,t){const n=e.components[0],r=n.faces,o=ve[t],i=6*o,s=new Array(6),a=new Array(r.length-6);let l=0,u=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?s[l++]=r[e]:a[u++]=r[e];if(null!=e.vertexAttributes.uv){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new v.A({faces:s,material:n.material}),new v.A({faces:a})],e}(n,t.imageFace):n}static createSphere(e,t){return e instanceof d.A?new We(me(function(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,u=0,c=0,f=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,p=Math.cos(r),h=Math.sin(r);Ae[2]=h;const g=0===e||e===t,y=g?n-1:n;for(let r=0;r<=y;r++){const h=r/y*2*Math.PI;Ae[0]=-Math.sin(h)*p,Ae[1]=Math.cos(h)*p;for(let e=0;e<3;e++)o[l]=.5*Ae[e],i[l]=Ae[e],++l;s[u++]=(r+(g?.5:0))/n,s[u++]=e/t,0!==e&&r!==n&&(e!==t&&(a[c++]=f,a[c++]=f+1,a[c++]=f-n),1!==e&&(a[c++]=f,a[c++]=f-n,a[c++]=f-n-1)),f++}}return{position:o,normal:i,uv:s,faces:a}}(t?.densificationFactor||0),e,t)):(Ve().error(".createSphere()",A),null)}static createCylinder(e,t){return e instanceof d.A?new We(me(function(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,u=0,c=0,f=0;for(let e=0;e<=5;e++){const n=0===e||5===e,p=e<=1||e>=4,h=2===e||4===e,g=n?t-1:t;for(let y=0;y<=g;y++){const d=y/g*2*Math.PI,m=n?0:.5;Ae[0]=m*Math.sin(d),Ae[1]=m*-Math.cos(d),Ae[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=Ae[t],o[l++]=p?2===t?e<=1?1:-1:0:2===t?0:Ae[t]/m;i[u++]=(y+(n?.5:0))/t,i[u++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,h||0===e||y===t||(5!==e&&(s[c++]=f,s[c++]=f+1,s[c++]=f-t),1!==e&&(s[c++]=f,s[c++]=f-t,s[c++]=f-t-1)),f++}}return{position:r,normal:o,uv:i,faces:s}}(t?.densificationFactor||0),e,t)):(Ve().error(".createCylinder()",A),null)}static createPlane(e,t){if(!(e instanceof d.A))return Ve().error(".createPlane()",A),null;const n=t?.facing??"up",r=function(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,t?.size);return new We(me(function(e){const t=de.facingAxisOrderSwap[e],n=de.position,r=de.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],u=Math.abs(l)-1,c=l>=0?1:-1;o[s]=n[e+u]*c,i[s]=r[e+u]*c,s++}}return{position:o,normal:i,uv:new Float32Array(de.uv),faces:new Uint32Array(de.faces),isPlane:!0}}(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof m.A))return Ve().error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const n=function(e){const t=D(e.rings,e.hasZ,L.CCW_IS_HOLE,e.spatialReference),n=new Array;let r=0,o=0;for(const e of t.polygons){const i=e.count,s=e.index,a=(0,O.l5)(t.position,3*s,3*i),l=e.holeIndices.map((e=>e-s)),u=(0,F.Dg)((0,R.e)(a,l,3));n.push({position:a,faces:u}),r+=a.length,o+=u.length}const i=function(e,t,n){if(1===e.length)return e[0];const r=(0,O.jh)(t),o=new Array(n);let i=0,s=0,a=0;for(const t of e){for(let e=0;e<t.position.length;e++)r[i++]=t.position[e];for(const e of t.faces)o[s++]=e+a;a=i/3}return{position:r,faces:(0,F.Dg)(o)}}(n,r,o),s=Array.isArray(i.position)?(0,j.b)(i.position,3,{originalIndices:i.faces}):(0,j.b)(i.position.buffer,6,{originalIndices:i.faces});return i.position=(0,O.xm)(new Float64Array(s.buffer)),i.faces=s.indices,i}(e);return new We({vertexAttributes:new _.H({position:n.position}),components:[new v.A({faces:n.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new M.A})}static async createFromGLTF(e,t,r){if(!(e instanceof d.A)){const e=new w;throw Ve().error(".createfromGLTF()",e.message),e}const{loadGLTFMesh:o}=await(0,u.qr)(Promise.all([n.e(4399),n.e(4543)]).then(n.bind(n,94543)),r);return new We(await o(e,t,r))}static async createFromFiles(e,t,n){if((0,o.eO)(Ve(),"`Mesh.createFromFiles` is deprecated in favor of 'SceneLayer.convertMesh'",{replacement:"SceneLayer.convertMesh",version:"4.29"}),!(e instanceof d.A)){const e=new w;throw(e=>{Ve().error(".createFromFiles()",e.message)})(e),e}if(!n?.layer)throw new i.A("invalid:no-layer","SceneLayer required for file to mesh conversion.");return n.layer.convertMesh(t,{location:e,...n})}static createWithExternalSource(e,t,n){const r=n?.extent??null,{spatialReference:o}=e,i=n?.transform?.clone()??new T.A,s=(0,S.TE)(e,n),a={source:t,extent:r},l=new ge;return l.externalSources.push(a),new We({metadata:l,transform:i,vertexSpace:s,spatialReference:o})}static createIncomplete(e,t){const{spatialReference:n}=e,r=t?.transform?.clone()??new T.A,o=(0,S.TE)(e,t),s=new We({transform:r,vertexSpace:o,spatialReference:n});return s.addResolvingPromise(Promise.reject(new i.A("mesh-incomplete","Mesh resources are not complete"))),s}};(0,r._)([(0,f.MZ)({type:[v.A],json:{write:!0}})],Ye.prototype,"components",void 0),(0,r._)([(0,f.MZ)({nonNullable:!0,types:ke,constructOnly:!0,json:{write:!0}})],Ye.prototype,"vertexSpace",void 0),(0,r._)([(0,f.MZ)({type:T.A,json:{write:!0}})],Ye.prototype,"transform",void 0),(0,r._)([(0,f.MZ)({constructOnly:!0})],Ye.prototype,"metadata",void 0),(0,r._)([(0,f.MZ)()],Ye.prototype,"hasExtent",null),(0,r._)([(0,f.MZ)()],Ye.prototype,"_transformedExtent",null),(0,r._)([(0,f.MZ)()],Ye.prototype,"_untransformedBounds",null),(0,r._)([(0,f.MZ)()],Ye.prototype,"origin",null),(0,r._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ye.prototype,"extent",null),(0,r._)([(0,f.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Ye.prototype,"hasZ",void 0),(0,r._)([(0,f.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Ye.prototype,"hasM",void 0),(0,r._)([(0,f.MZ)({type:_.H,nonNullable:!0,json:{write:!0}})],Ye.prototype,"vertexAttributes",void 0),Ye=We=(0,r._)([(0,p.$)(Ge)],Ye);const qe=(0,x.vt)(),Ke=Ye},4197:(e,t,n)=>{n.d(t,{Ns:()=>l,jh:()=>o,l5:()=>s,s:()=>a,xm:()=>i});var r=n(34275);function o(e,t=!1){return e<=r.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function i(e){return((0,r.cy)(e)?e.length:e.byteLength/8)<=r.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e,t){for(let n=0;n<t.length;++n)e[n]=t[n];return e}function l(e){return Array.isArray(e)?new Float64Array(e):e}},97146:(e,t,n)=>{n.d(t,{Dg:()=>o,my:()=>i,tM:()=>u});var r=n(34275);function o(e){if((0,r.cy)(e)){if(e.length<r.y9)return e}else if(e.length<r.y9)return Array.from(e);let t=!0,n=!0;return e.some(((e,r)=>(t=t&&0===e,n=n&&e===r,!t&&!n))),t?function(e){if(1===e)return a;if(e<r.y9)return new Array(e).fill(0);if(e>c.length){const t=Math.max(2*c.length,e);c=new Uint8Array(t)}return new Uint8Array(c.buffer,0,e)}(e.length):n?u(e.length):(0,r.cy)(e)||e.BYTES_PER_ELEMENT!==Uint16Array.BYTES_PER_ELEMENT?function(e){let t=!0;for(const n of e){if(n>=65536)return(0,r.cy)(e)?new Uint32Array(e):e;n>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e):e}function i(e){return e<=r.y9?new Array(e):e<=65536?new Uint16Array(e):new Uint32Array(e)}let s=(()=>{const e=new Uint32Array(131072);for(let t=0;t<e.length;++t)e[t]=t;return e})();const a=[0],l=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function u(e){if(1===e)return a;if(e<r.y9)return Array.from(new Uint16Array(l.buffer,0,e));if(e<l.length)return new Uint16Array(l.buffer,0,e);if(e>s.length){const t=Math.max(2*s.length,e);s=new Uint32Array(t);for(let e=0;e<s.length;e++)s[e]=e}return new Uint32Array(s.buffer,0,e)}let c=new Uint8Array(65536)},16939:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(90237),i=n(25482),s=n(4718),a=n(53966),l=n(10107),u=n(79901),c=n(40608),f=n(56507),p=n(19211),h=n(80882),g=n(31199);let y=r=class extends i.oY{static from(e){return(0,f.PZ)(r,e)}constructor(e){super(e),this.faces=null,this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}castFaces(e){return(0,g.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},a.A.getLogger(this))}castMaterial(e){return(0,f.PZ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?h.A:p.A,e)}clone(){return new r({faces:(0,s.o8)(this.faces),shading:this.shading,material:(0,s.o8)(this.material),trustSourceNormals:this.trustSourceNormals,name:this.name})}cloneWithDeduplication(e,t){const n={faces:(0,s.o8)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals,name:this.name};return new r(n)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,o._)([(0,l.MZ)({json:{write:g.B}})],y.prototype,"faces",void 0),(0,o._)([(0,u.w)("faces")],y.prototype,"castFaces",null),(0,o._)([(0,l.MZ)({type:p.A,json:{write:!0}})],y.prototype,"material",void 0),(0,o._)([(0,u.w)("material")],y.prototype,"castMaterial",null),(0,o._)([(0,l.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"shading",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],y.prototype,"trustSourceNormals",void 0),y=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshComponent")],y);const d=y},95696:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608);let u=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,r._)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,l.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u);const c=u},18251:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608),u=n(51850);let c=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.type="local",this.origin=(0,u.vt)()}};(0,r._)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],c);const f=c},19211:(e,t,n)=>{n.d(t,{A:()=>p});var r,o=n(90237),i=n(68197),s=n(25482),a=n(10107),l=(n(44208),n(53966),n(87811),n(40608)),u=n(35063),c=n(51147);let f=r=class extends s.oY{constructor(e){super(e),this.color=null,this.colorTexture=null,this.colorTextureTransform=null,this.normalTexture=void 0,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=null!=e?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:null!=this.color?this.color.clone():null,colorTexture:this.colorTexture?.cloneWithDeduplication(e),normalTexture:this.normalTexture?.cloneWithDeduplication(e),alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:this.colorTextureTransform?.clone(),normalTextureTransform:this.normalTextureTransform?.clone()}}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null!=this.color?16:0,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null!=this.normalTextureTransform?20:0,e}};(0,o._)([(0,a.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTexture",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTexture",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=r=(0,o._)([(0,l.$)("esri.geometry.support.MeshMaterial")],f);const p=f},80882:(e,t,n)=>{n.d(t,{A:()=>p});var r,o=n(90237),i=n(68197),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608)),l=n(19211),u=n(35063),c=n(51147);let f=r=class extends l.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.emissiveTextureTransform=void 0,this.occlusionTexture=null,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null,this.metallicRoughnessTextureTransform=void 0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=null!=e?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null!=this.metallicRoughnessTextureTransform?20:0,e}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:this.emissiveColor?.clone(),emissiveTexture:this.emissiveTexture?.cloneWithDeduplication(e),emissiveTextureTransform:this.emissiveTextureTransform?.clone(),occlusionTexture:this.occlusionTexture?.cloneWithDeduplication(e),occlusionTextureTransform:this.occlusionTextureTransform?.clone(),metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:this.metallicRoughnessTexture?.cloneWithDeduplication(e),metallicRoughnessTextureTransform:this.metallicRoughnessTextureTransform?.clone()}}};(0,o._)([(0,s.MZ)({type:i.A,json:{write:!0}})],f.prototype,"emissiveColor",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"emissiveTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"occlusionTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],f.prototype,"metallic",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],f.prototype,"roughness",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"metallicRoughnessTextureTransform",void 0),f=r=(0,o._)([(0,a.$)("esri.geometry.support.MeshMaterialMetallicRoughness")],f);const p=f},35063:(e,t,n)=>{n.d(t,{A:()=>v});var r,o=n(90237),i=(n(44208),n(43668)),s=n(25482),a=n(10107),l=n(56507),u=(n(87811),n(36005)),c=n(40608),f=n(43937),p=n(97159);const h=new WeakMap;let g=0,y=r=class extends s.oY{constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,p.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))};t[n]=r}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,p.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else if(e instanceof ImageData){const r={type:"image-data",imageData:d(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=m(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return m(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const{data:e,url:t}=this;return e instanceof HTMLCanvasElement?x(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?x(e):!(!t?.toLowerCase().endsWith(".png")&&!t?.toLocaleLowerCase().startsWith("data:image/png;"))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(h.has(this.data)||h.set(this.data,++g),t(h.get(this.data))):t()}get memoryUsage(){let e=0;if(e+=null!=this.url?this.url.length:0,null!=this.data){const t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(){const e={url:this.url,data:this.data,wrap:this._cloneWrap()};return new r(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const n=this.clone();return e.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}static from(e){return"string"==typeof e?new r({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new r({data:e}):(0,l.PZ)(r,e)}};function d(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}function m(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return(0,i.eV)(n,e.width,e.height)}function x(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,o._)([(0,a.MZ)({type:String,json:{write:p.w}})],y.prototype,"url",null),(0,o._)([(0,a.MZ)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,a.MZ)()],y.prototype,"data",null),(0,o._)([(0,f.K)("data")],y.prototype,"writeData",null),(0,o._)([(0,u.w)("data")],y.prototype,"readData",null),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshTexture")],y);const v=y},51147:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,r._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,r._)([(0,a.$)("esri.geometry.support.MeshTextureTransform")],l);const u=l},73836:(e,t,n)=>{n.d(t,{A:()=>d});var r,o=n(90237),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608)),l=n(58083),u=n(9093),c=n(67026),f=n(82534),p=n(51850),h=n(24770);let g=r=class extends i.oY{constructor(e){super(e),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,p.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){const e=(0,u.vt)();return(0,c.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,l.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,l.t2)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,p.o8)(this.translation),rotationAxis:(0,p.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.o8)(this.scale)};return new r(e)}};(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,s.MZ)()],g.prototype,"rotation",null),(0,o._)([(0,s.MZ)()],g.prototype,"localMatrix",null),(0,o._)([(0,s.MZ)()],g.prototype,"localMatrixInverse",null),g=r=(0,o._)([(0,a.$)("esri.geometry.support.MeshTransform")],g);const y=(0,f.vt)(),d=g},1193:(e,t,n)=>{n.d(t,{H:()=>p});var r,o=n(90237),i=n(25482),s=n(4718),a=n(53966),l=n(10107),u=n(79901),c=n(40608),f=n(31199);let p=r=class extends i.oY{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,f.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clone(){const e={position:(0,s.o8)(this.position),uv:(0,s.o8)(this.uv),normal:(0,s.o8)(this.normal),tangent:(0,s.o8)(this.tangent),color:(0,s.o8)(this.color)};return new r(e)}clonePositional(){const e={position:(0,s.o8)(this.position),normal:(0,s.o8)(this.normal),tangent:(0,s.o8)(this.tangent),uv:this.uv,color:this.color};return new r(e)}get memoryUsage(){let e=0;return e+=this.position.byteLength,null!=this.uv&&(e+=this.uv.byteLength),null!=this.normal&&(e+=this.normal.byteLength),null!=this.tangent&&(e+=this.tangent.byteLength),null!=this.color&&(e+=this.color.byteLength),e}};(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,u.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,u.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,u.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,u.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,u.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},24770:(e,t,n)=>{n.d(t,{$I:()=>d,AU:()=>h,g7:()=>y,i4:()=>c,ui:()=>f,up:()=>x,vt:()=>u,yo:()=>g});var r=n(34727),o=n(58083),i=n(67026),s=n(82534),a=n(38954),l=n(51850);function u(e=x){return[e[0],e[1],e[2],e[3]]}function c(e,t,n=u()){return(0,a.c)(n,e),n[3]=t,n}function f(e,t=u()){const n=(0,o.l)(v,e);return m(t,(0,r.KJ)((0,i.Xd)(t,n))),t}function p(e,t,n=u()){return(0,i.x8)(v,e,d(e)),(0,i.x8)(A,t,d(t)),(0,i.lw)(v,A,v),m(n,(0,r.KJ)((0,i.Xd)(n,v)))}function h(e,t,n,r=u()){return c(l.Cw,e,w),c(l.JP,t,M),c(l.Cb,n,b),p(w,M,w),p(w,b,r),r}function g(e){return e}function y(e){return e[3]}function d(e){return(0,r.kU)(e[3])}function m(e,t){return e[3]=t,e}n(91829);const x=[0,0,1,0],v=(0,s.vt)(),A=(0,s.vt)(),w=(u(),u()),M=u(),b=u()},31199:(e,t,n)=>{function r(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function o(e,t,n,o,i){if(!e)return e;if(e instanceof t)return r(e,o,t,i);for(const s of n)if(e instanceof s)return r(new t(e),o,t,i);if(Array.isArray(e))return r(new t(e),o,t,i);{const r=n.map((e=>`'${e.name}'`));return i.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function i(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}n.d(t,{B:()=>i,b:()=>o})},63579:(e,t,n)=>{n.d(t,{Bq:()=>l,Qp:()=>a,WN:()=>x,dK:()=>v,eN:()=>g,fH:()=>m,in:()=>y,yr:()=>u});var r=n(78888),o=n(4576),i=n(74887),s=n(20557);class a{constructor(e,t,n){this.assetName=e,this.assetMimeType=t,this.parts=n}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,o.aI)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const n=await Promise.all(t.map((t=>t.toBlob(e))));return(0,i.Te)(e),new Blob(n)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function c(e){return!!Array.isArray(e)&&e.every((e=>e instanceof a))}const f=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:n}=e;return f.test(t)||p.test(n)}return f.test(e.assetMimeType)||p.test(e.assetName)}function g(e,t){if(!e)return!1;const{source:n}=e;return function(e,t){if(Array.isArray(e)){const n=e;return n.length>0&&n.every((e=>d(e,t)))}return d(e,t)}(n,t)}function y(e,t){if(e===t)return!0;const{source:n}=e,{source:r}=t;if(n===r)return!0;if(c(n)&&c(r)){if(n.length!==r.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...n].sort(e),o=[...r].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(o[e]))return!1;return!0}return!1}function d(e,t){return e instanceof a&&e.isOnService(t)}function m(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.R_)(e.assetMimeType,t)??(0,s.E1)(e.assetName,t)}function x(e){return Array.isArray(e)?e:[e]}function v(e){return!!e.original}},9318:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(34727),o=n(97146);function i(e,t,n){const i=Array.isArray(e),c=i?e.length/t:e.byteLength/(4*t),f=i?e:new Uint32Array(e,0,c*t),p=n?.minReduction??0,h=n?.originalIndices||null,g=h?h.length:0,y=n?.componentOffsets||null;let d=0;if(y)for(let e=0;e<y.length-1;e++){const t=y[e+1]-y[e];t>d&&(d=t)}else d=c;const m=Math.floor(1.1*d)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,r.cU)(2*m)));for(let e=0;e<2*m;e++)u[e]=0;let x=0;const v=!!y&&!!h,A=v?g:c;let w=(0,o.my)(c);const M=new Uint32Array(g),b=1.96;let T=0!==p?Math.ceil(4*b*b/(p*p)*p*(1-p)):A,_=1,S=y?y[1]:A;for(let e=0;e<A;e++){if(e===T){const t=1-x/e;if(t+b*Math.sqrt(t*(1-t)/e)<p)return null;T*=2}if(e===S){for(let e=0;e<2*m;e++)u[e]=0;if(h)for(let e=y[_-1];e<y[_];e++)M[e]=w[h[e]];S=y[++_]}const n=v?h[e]:e,r=n*t,o=l(f,r,t);let i=o%m,a=x;for(;0!==u[2*i+1];){if(u[2*i]===o){const e=u[2*i+1]-1;if(s(f,r,e*t,t)){a=w[e];break}}i++,i>=m&&(i-=m)}a===x&&(u[2*i]=o,u[2*i+1]=n+1,x++),w[n]=a}if(0!==p&&1-x/c<p)return null;if(v){for(let e=y[_-1];e<M.length;e++)M[e]=w[h[e]];w=(0,o.Dg)(M)}const R=i?new Array(x):new Uint32Array(x*t);x=0;for(let e=0;e<A;e++)w[e]===x&&(a(f,(v?h[e]:e)*t,R,x*t,t),x++);if(h&&!v){const e=new Uint32Array(g);for(let t=0;t<e.length;t++)e[t]=w[h[t]];w=(0,o.Dg)(e)}return{buffer:Array.isArray(R)?R:R.buffer,indices:w,uniqueCount:x}}function s(e,t,n,r){for(let o=0;o<r;o++)if(e[t+o]!==e[n+o])return!1;return!0}function a(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}function l(e,t,n){let r=0;for(let o=0;o<n;o++)r=e[t+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let u=null},22141:(e,t,n)=>{n.d(t,{$5:()=>_,CN:()=>w,JP:()=>A,KM:()=>R,Mv:()=>C,X4:()=>M,gr:()=>T,project:()=>P,qs:()=>S,si:()=>b,xA:()=>N});var r=n(34727),o=n(77690),i=n(29242),s=n(58083),a=n(9093),l=n(38954),u=n(51850),c=n(57251),f=n(98764),p=n(48353),h=n(9762),g=n(4197),y=(n(79258),n(21325)),d=n(28735),m=n(13030),x=n(73354),v=n(65686);const A="Projection may be possible after calling projection.load().";function w(e,t,n,r){e.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function M(e,t,n,r,o){return U(F.TO_PCPF,m.xs.fromTypedArray(e),O.NORMAL,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o))?o:null}function b(e,t,n,r,o){return U(F.FROM_PCPF,m.xs.fromTypedArray(e),O.NORMAL,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o))?o:null}function T(e,t,n){return(0,h.projectBuffer)(e,t,0,n,(0,f.lO)(t),0,e.length/3)?n:null}function _(e,t,n){return(0,h.projectBuffer)(e,(0,f.lO)(n),0,t,n,0,e.length/3)?t:null}function S(e,t,n){return(0,o.Ge)(j,n),(0,x.t)(t,e,j),(0,r.or)(j)&&(0,x.n)(t,t),t}function R(e,t,n){return(0,o.z0)(j,n),(0,v.t)(t,e,j),(0,r.or)(j)&&(0,x.n)(t,t,4),t}function N(e,t,n,r,o){if(!U(F.TO_PCPF,m.xs.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),O.TANGENT,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}function C(e,t,n,r,o){if(!U(F.FROM_PCPF,m.xs.fromTypedArray(e,16),O.TANGENT,m.Xm.fromTypedArray(t),m.Xm.fromTypedArray(n),r,m.xs.fromTypedArray(o,16)))return null;for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}var O,F,Z;function E(e,t,n,r,i){switch((0,p.l)(r,n,I,r),e===F.FROM_PCPF&&(0,s.B8)(I,I),t){case O.NORMAL:return(0,o.Ge)(i,I);case O.TANGENT:return(0,o.z0)(i,I)}}function U(e,t,n,r,o,i,s){if(!t)return;const a=r.count,u=(0,f.lO)(i);if(function(e){return e.isWGS84||(0,y.x1)(e)||(0,y.q8)(e)||(0,y.KQ)(e)}(i))for(let r=0;r<a;r++)o.getVec(r,B),t.getVec(r,L),(0,l.t)(L,L,E(e,n,B,u,j)),s.setVec(r,L);else for(let i=0;i<a;i++){o.getVec(i,B),t.getVec(i,L);const a=(0,d.jg)(r.get(i,1));let c=Math.cos(a);n===O.TANGENT!=(e===F.TO_PCPF)&&(c=1/c),E(e,n,B,u,j),e===F.TO_PCPF?(j[0]*=c,j[1]*=c,j[2]*=c,j[3]*=c,j[4]*=c,j[5]*=c):(j[0]*=c,j[3]*=c,j[6]*=c,j[1]*=c,j[4]*=c,j[7]*=c),(0,l.t)(L,L,j),(0,l.n)(L,L),s.setVec(i,L)}return s}function P(e){return"local"===e.vertexSpace.type?function({vertexSpace:e,transform:t,inSpatialReference:n,outSpatialReference:r,localMode:o,outPositions:i,positions:l}){const y=e.origin??u.uY,d=null!=e.origin?t?.localMatrix??a.zK:a.zK,m=(0,f.lO)(n),v=r.isWebMercator&&o||!(0,c.canProjectWithoutEngine)(n,m)?n:m;(0,p.l)(n,y,I,v),(0,s.lw)(I,I,d);const A=i??(0,g.jh)(l.length);return(0,x.a)(A,l,I),(0,h.projectBuffer)(A,v,0,A,r,0,A.length/3),A}(e):function({vertexSpace:e,transform:t,outPositions:n,positions:r,inSpatialReference:o,outSpatialReference:i}){const c=null!=e.origin?t?.localMatrix??a.zK:a.zK,f=n??(0,g.jh)(r.length);(0,s.aI)(c,a.zK)?(0,g.s)(f,r):(0,x.a)(f,r,c);const p=e.origin??u.uY;if(!(0,l.e)(p,u.uY)){const[e,t,n]=p;for(let r=0;r<f.length;r+=3)f[r]+=e,f[r+1]+=t,f[r+2]+=n}return(0,h.projectBuffer)(f,o,0,f,i,0,f.length/3)?f:null}(e)}(Z=O||(O={}))[Z.NORMAL=0]="NORMAL",Z[Z.TANGENT=1]="TANGENT",function(e){e[e.TO_PCPF=0]="TO_PCPF",e[e.FROM_PCPF=1]="FROM_PCPF"}(F||(F={}));const B=(0,u.vt)(),L=(0,u.vt)(),I=(0,a.vt)(),j=(0,i.vt)()},72258:(e,t,n)=>{n.d(t,{UR:()=>A,p5:()=>v,xK:()=>T});var r=n(53966),o=n(34727),i=n(83047),s=n(77690),a=n(29242),l=n(58083),u=n(9093),c=n(38954),f=n(51850),p=n(98764),h=n(48353),g=n(65806),y=n(27615),d=n(73354),m=n(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(e,t,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const o=e;if(!(0,g.g)(t,o,r))return!1;const{origin:i}=n;return(0,c.f)(e,o,i),!0}const o=(0,p.lO)(r),i=e;if(!(0,g.g)(t,i,o))return!1;const{origin:s}=n,a=C;if(!(0,h.l)(r,s,a,o))return!1;const u=(0,l.B8)(C,a);return null!=u&&((0,c.h)(e,i,u),!0)}function A(e,t,n){const{vertexSpace:r,transform:i,vertexAttributes:a}=e,f=b(e.spatialReference,n,O.SOURCE|O.TARGET);if((0,y.yJ)(r,t)&&(!i||(0,l.t2)(i.localMatrix,u.zK))&&(0,o.Io)(f,1)){const{position:e,normal:t,tangent:r}=a,o=n?.allowBufferReuse;return{position:o?e:e.slice(),normal:o?t:t?.slice(),tangent:o?r:r?.slice()}}switch(e.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const s=(0,p.lO)(t);if(!(0,h.l)(t,r,_,s))return(0,m.CN)(x(),t,s),null;if(n&&(0,l.lw)(_,_,n.localMatrix),!(0,h.l)(t,o,S,s))return(0,m.CN)(x(),s,t),null;(0,l.B8)(S,S);const a=(0,l.lw)(_,S,_);return M(a,t,i,O.SOURCE|O.TARGET),w(e,a)}(e,e.vertexSpace,t.origin,n):function({spatialReference:e,vertexAttributes:t,transform:n},{origin:r},o,i){const s=(0,p.lO)(e);if(!(0,h.l)(e,r,_,s))return(0,m.CN)(x(),e,s),null;n&&(0,l.lw)(_,_,n.localMatrix),M(_,e,i,O.SOURCE);const a=new Float64Array(t.position.length),u=function(e,t,n,r){(0,d.a)(r,e,t);const o=new Float64Array(e.length);return(0,m.$5)(r,o,n)?o:((0,m.CN)(x(),(0,p.lO)(n),n),null)}(t.position,_,e,a);if(!u)return null;const f=function(e,t,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,m.qs)(n,i,r),(0,m.si)(i,e,t,o,i)?i:((0,m.CN)(x(),(0,p.lO)(o),o),null)}(u,a,t.normal,_,e);if(t.normal&&!f)return null;const g=function(e,t,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,m.KM)(n,i,r),(0,m.Mv)(i,e,t,o,i)?i:((0,m.CN)(x(),(0,p.lO)(o),o),null)}(u,a,t.tangent,_,e);if(t.tangent&&!g)return null;if(o){const e=(0,c.k)(N,o);(0,d.b)(u,u,e)}return{position:u,normal:f,tangent:g}}(e,e.vertexSpace,t.origin,n);case"georeferenced":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const a=(0,p.lO)(t);if(!(0,h.l)(t,o,_,a))return(0,m.CN)(x(),t,a),null;const u=1/b(t,i,O.TARGET);(0,l.hs)(_,_,[u,u,u]);const c=(0,l.B8)(S,_),{position:f,normal:g,tangent:y}=function(e,t,n){if(!t)return e;if(!n){const{position:n,normal:r,tangent:o}=e;return{position:(0,d.b)(new Float64Array(n.length),n,t),tangent:o,normal:r}}const r=w(e,n.localMatrix);return(0,d.b)(r.position,r.position,t),r}(e,r,n),v=new Float64Array(f.length),A=function(e,t,n,r){const o=(0,m.gr)(e,t,r);if(!o)return(0,m.CN)(x(),t,(0,p.lO)(t)),null;const i=new Float64Array(o.length);return(0,d.a)(i,o,n),i}(f,t,c,v);if(!A)return null;const M=(0,s.Ge)(R,c),T=function(e,t,n,r,o,i){if(null==e)return null;const s=i??new Float32Array(e.length);return(0,m.X4)(e,t,n,r,s)?((0,d.t)(s,s,o),s):((0,m.CN)(x(),r,(0,p.lO)(r)),null)}(g,f,v,t,M,g!==e.normal?g:void 0);if(!T&&g)return null;const N=function(e,t,n,r,o,i){if(null==e)return null;const s=i??new Float32Array(e.length);return(0,m.xA)(e,t,n,r,s)?((0,d.t)(s,s,o,4),s):((0,m.CN)(x(),r,(0,p.lO)(r)),null)}(y,f,v,t,M,y!==e.tangent?y:void 0);return!N&&y?null:{position:A,normal:T,tangent:N}}(e,e.vertexSpace,t.origin,n):function({vertexAttributes:e,transform:t,spatialReference:n},{origin:r},o,i){const{position:s,normal:a,tangent:l}=t?w(e,t.localMatrix):e,u=new Float64Array(s.length);let f=s;if(r&&(f=(0,d.b)(u,f,r)),o){const e=(0,c.k)(N,o);f=(0,d.b)(u,f,e)}b(n,i,O.NONE);const p=i?.allowBufferReuse;return{position:f!==e.position||p?f:f.slice(),normal:a!==e.normal||p?a:a?.slice(),tangent:l!==e.tangent||p?l:l?.slice()}}(e,e.vertexSpace,t.origin,n)}}function w(e,t){const n=new Float64Array(e.position.length);(0,d.a)(n,e.position,t);const r=e.normal?new Float32Array(e.normal.length):null,o=e.tangent?new Float32Array(e.tangent.length):null;return r&&e.normal&&(0,m.qs)(e.normal,r,t),o&&e.tangent&&(0,m.KM)(e.tangent,o,t),{position:n,normal:r,tangent:o}}function M(e,t,n,r){const o=b(t,n,r);1!==o&&(0,l.hs)(e,e,[o,o,o])}function b(e,t,n){const r=!!(n&O.SOURCE),o=!!(n&O.TARGET),i=t?.sourceUnit,s=t?.targetUnit;if(!i&&!s)return 1;let a=T(i,e);!r&&i&&1!==a&&(x().warn("source unit conversion not supported"),a=1);let l=1/T(s,e);return!o&&s&&1!==l&&(x().warn("target unit conversion not supported"),l=1),a*l}function T(e,t){if(null==e)return 1;const n=(0,i.KX)(t);return 1/(0,i.oU)(n,"meters",e)}const _=(0,u.vt)(),S=(0,u.vt)(),R=(0,a.vt)(),N=(0,f.vt)(),C=(0,u.vt)();var O,F;(F=O||(O={}))[F.NONE=0]="NONE",F[F.SOURCE=1]="SOURCE",F[F.TARGET=2]="TARGET"},27615:(e,t,n)=>{n.d(t,{CK:()=>f,Hq:()=>c,MW:()=>p,TE:()=>h,yJ:()=>g});var r=n(51447),o=n(53966),i=n(38954),s=n(86738),a=n(95696),l=n(18251);function u(){return o.A.getLogger("esri.geometry.Mesh")}function c(e){return null!=e.origin}function f(e){return c(e.vertexSpace)}function p(e,t){if(!c(e))return null;const[n,r,o]=e.origin;return new s.A({x:n,y:r,z:o,spatialReference:t})}function h(e,t){const{x:n,y:o,z:i,spatialReference:s}=e,c=[n,o,i??0];return void 0!==t?.geographic&&((0,r.io)(u(),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),t.vertexSpace&&u().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(t?.vertexSpace??(f=t?.geographic,null==f?void 0:f?"local":"georeferenced")??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(s))?new l.A({origin:c}):new a.A({origin:c});var f}function g(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,i.e)(e.origin,t.origin))}}}]);
|
|
@@ -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 c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){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])),u.fromArray(r,t)}return u.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return u.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 u){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),a=parseInt(e.slice(3,4),16),i=5===e.length?15:parseInt(e.slice(4),16);return u.fromArray([r+16*r,n+16*n,a+16*a,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),a=parseInt(e.slice(5,7),16),i=7===e.length?255:parseInt(e.slice(7),16);return u.fromArray([r,n,a,i/255],t)}default:return null}}static fromArray(e,t=new u){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&&u.fromArray(r,t)||u.fromRgb(e,t)||u.fromHex(e,t)}static fromJSON(e){return null!=e?new u([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?u.fromString(e,this):Array.isArray(e)?u.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof u||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=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${a?c(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=u.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===u.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new u(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}}u.prototype.declaredClass="esri.Color",n=u||(u={}),(a=n.AlphaMode||(n.AlphaMode={}))[a.ALWAYS=0]="ALWAYS",a[a.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=u},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],c=r[5],u=r[6],m=r[8],h=r[9],f=r[10],g=r[12],y=r[13],T=r[14];let S=0,A=0;for(let r=0;r<i;r++){const r=t[S],i=t[S+1],p=t[S+2];e[A]=o*r+d*i+m*p+g,e[A+1]=s*r+c*i+h*p+y,e[A+2]=l*r+u*i+f*p+T,S+=a,A+=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],c=r[4],u=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+c*i+h*T,e[y+2]=l*r+u*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 c(e,t){u(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function u(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:()=>c,f:()=>l,n:()=>u,s:()=>s,t:()=>o}),r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:u,normalizeView:c,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.slice(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:()=>c,P:()=>u});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 c=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 c=this[e];let u=null;u="function"==typeof d?d(c):"reference"===d?c:(0,i.TU)(c),null!=c&&null==u||(l===s.Gr.DEFAULTS?a.set(e,u):n[e]=u)}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 u=class extends(c(a.A)){};u=(0,n._)([(0,d.$)("esri.core.Clonable")],u)},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(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}function o(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function l(){return a(0,1,0,0)}function d(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}r.d(t,{ci:()=>i,fA:()=>a,uY:()=>u,vt:()=>n});const u=[0,0,0,0],m=o(),h=s(),f=l(),g=d(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_W:y,UNIT_X:h,UNIT_Y:f,UNIT_Z:g,ZEROS:u,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:i,fromValues:a,ones:o,unitW:c,unitX:s,unitY:l,unitZ:d,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:()=>c,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":u(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=c(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=u(t);return s.startOf(l).toJSDate()}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}function u(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:()=>c});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 c={base:i.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}};(0,n.aq)(c)},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:()=>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);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 c=d},18251:(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),d=r(51850);let c=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})],c.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],c);const u=c},65864:(e,t,r)=>{r.d(t,{$B:()=>g,Bi:()=>h,Rg:()=>m,U9:()=>c,ZC:()=>d,fT:()=>u,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 c(e){return void 0!==e.points}function u(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:u(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):h(e)?s.A.fromJSON(e):c(e)?i.A.fromJSON(e):d(e)?n.A.fromJSON(e):null}function g(e){return e?u(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":c(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"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},m={hourCycle:"h23"},h={...c,...m},f={...u,...m},g={"short-date":o,"short-date-short-time":{...o,...c},"short-date-short-time-24":{...o,...h},"short-date-long-time":{...o,...u},"short-date-long-time-24":{...o,...f},"short-date-le":o,"short-date-le-short-time":{...o,...c},"short-date-le-short-time-24":{...o,...h},"short-date-le-long-time":{...o,...u},"short-date-le-long-time-24":{...o,...f},"long-month-day-year":s,"long-month-day-year-short-time":{...s,...c},"long-month-day-year-short-time-24":{...s,...h},"long-month-day-year-long-time":{...s,...u},"long-month-day-year-long-time-24":{...s,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...c},"day-short-month-year-short-time-24":{...l,...h},"day-short-month-year-long-time":{...l,...u},"day-short-month-year-long-time-24":{...l,...f},"long-date":d,"long-date-short-time":{...d,...c},"long-date-short-time-24":{...d,...h},"long-date-long-time":{...d,...u},"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":c,"long-time":u},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 S=new WeakMap;const A=g["short-date-short-time"];function p(e){return g[e]}function b(e,t=A){return function(e){let t=S.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),S.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)((()=>{S=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>s,Ml:()=>m,Z0:()=>l,oQ:()=>c});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 c(e){return d.push(e),(0,n.hA)((()=>d.splice(d.indexOf(e),1)))}const u=[];function m(e){return u.push(e),(0,n.hA)((()=>u.splice(u.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();a!==e&&([...u].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),c=r(43937),u=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=u.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=u.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,c.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,c.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:()=>c,wr:()=>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]?c(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function c(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}function u(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===i||e===o||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},2060:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>k,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>_,initialize:()=>B,interpretObbModificationResults:()=>P,process:()=>A,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),c=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 u=r(2741);function m(e){return(0,u.s)(`esri/libs/i3s/${e}`)}let h;var f,g,y,T,S;async function A(e){N=await O();const t=[e.geometryBuffer];return{result:L(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(),_(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:c}=e,u=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(u,m);const y=[0,0,0];if(!f(n,u,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,u,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:u,outSpatialReference:m,localMode:c});if(!o)throw new Error("Failed to project");h=(0,s.Ns)(o)}const T=h.length,[S,A,p]=y;for(let e=0;e<T;e+=3)h[e]-=S,h[e+1]-=A,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,c.t)(r,t,e),(0,i.or)(e)&&(0,c.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 L(e,t,r){const{context:a,globalTrafo:i,mbs:o,obbData:s,elevationOffset:l,geometryBuffer:d,geometryDescriptor:c,indexToVertexProjector:u,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,S=new Float64Array(y.buffer,T);D(S,i),T+=16*y.BYTES_PER_ELEMENT,S=new Float64Array(y.buffer,T),D(S,o),T+=4*y.BYTES_PER_ELEMENT,s&&(S=new Float64Array(y.buffer,T),D(S,s));const A=c,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:A.featureIndex},b=e.process(a,!!t.obbData,h,g.byteLength,A,p,f,l,u,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(),L={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:L,obb:b.obb,globalTrafo:i}}function P(e){return 0===e?g.Unmodified:1===e?g.PotentiallyModified:2===e?g.Culled:g.Unknown}function _(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(79960),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"}(S||(S={}));const I={transform:(e,t)=>N&&L(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 c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){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])),u.fromArray(r,t)}return u.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return u.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 u){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),a=parseInt(e.slice(3,4),16),i=5===e.length?15:parseInt(e.slice(4),16);return u.fromArray([r+16*r,n+16*n,a+16*a,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),a=parseInt(e.slice(5,7),16),i=7===e.length?255:parseInt(e.slice(7),16);return u.fromArray([r,n,a,i/255],t)}default:return null}}static fromArray(e,t=new u){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&&u.fromArray(r,t)||u.fromRgb(e,t)||u.fromHex(e,t)}static fromJSON(e){return null!=e?new u([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?u.fromString(e,this):Array.isArray(e)?u.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof u||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=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${a?c(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=u.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===u.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new u(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}}u.prototype.declaredClass="esri.Color",n=u||(u={}),(a=n.AlphaMode||(n.AlphaMode={}))[a.ALWAYS=0]="ALWAYS",a[a.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=u},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],c=r[5],u=r[6],m=r[8],h=r[9],f=r[10],g=r[12],y=r[13],T=r[14];let S=0,A=0;for(let r=0;r<i;r++){const r=t[S],i=t[S+1],p=t[S+2];e[A]=o*r+d*i+m*p+g,e[A+1]=s*r+c*i+h*p+y,e[A+2]=l*r+u*i+f*p+T,S+=a,A+=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],c=r[4],u=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+c*i+h*T,e[y+2]=l*r+u*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 c(e,t){u(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function u(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:()=>c,f:()=>l,n:()=>u,s:()=>s,t:()=>o}),r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:u,normalizeView:c,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.slice(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:()=>c,P:()=>u});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 c=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 c=this[e];let u=null;u="function"==typeof d?d(c):"reference"===d?c:(0,i.TU)(c),null!=c&&null==u||(l===s.Gr.DEFAULTS?a.set(e,u):n[e]=u)}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 u=class extends(c(a.A)){};u=(0,n._)([(0,d.$)("esri.core.Clonable")],u)},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(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}function o(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function l(){return a(0,1,0,0)}function d(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}r.d(t,{ci:()=>i,fA:()=>a,uY:()=>u,vt:()=>n});const u=[0,0,0,0],m=o(),h=s(),f=l(),g=d(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_W:y,UNIT_X:h,UNIT_Y:f,UNIT_Z:g,ZEROS:u,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:i,fromValues:a,ones:o,unitW:c,unitX:s,unitY:l,unitZ:d,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:()=>c,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":u(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=c(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=u(t);return s.startOf(l).toJSDate()}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}function u(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:()=>c});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 c={base:i.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}};(0,n.aq)(c)},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:()=>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);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 c=d},18251:(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),d=r(51850);let c=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})],c.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],c);const u=c},65864:(e,t,r)=>{r.d(t,{$B:()=>g,Bi:()=>h,Rg:()=>m,U9:()=>c,ZC:()=>d,fT:()=>u,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 c(e){return void 0!==e.points}function u(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:u(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):h(e)?s.A.fromJSON(e):c(e)?i.A.fromJSON(e):d(e)?n.A.fromJSON(e):null}function g(e){return e?u(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":c(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"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},m={hourCycle:"h23"},h={...c,...m},f={...u,...m},g={"short-date":o,"short-date-short-time":{...o,...c},"short-date-short-time-24":{...o,...h},"short-date-long-time":{...o,...u},"short-date-long-time-24":{...o,...f},"short-date-le":o,"short-date-le-short-time":{...o,...c},"short-date-le-short-time-24":{...o,...h},"short-date-le-long-time":{...o,...u},"short-date-le-long-time-24":{...o,...f},"long-month-day-year":s,"long-month-day-year-short-time":{...s,...c},"long-month-day-year-short-time-24":{...s,...h},"long-month-day-year-long-time":{...s,...u},"long-month-day-year-long-time-24":{...s,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...c},"day-short-month-year-short-time-24":{...l,...h},"day-short-month-year-long-time":{...l,...u},"day-short-month-year-long-time-24":{...l,...f},"long-date":d,"long-date-short-time":{...d,...c},"long-date-short-time-24":{...d,...h},"long-date-long-time":{...d,...u},"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":c,"long-time":u},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 S=new WeakMap;const A=g["short-date-short-time"];function p(e){return g[e]}function b(e,t=A){return function(e){let t=S.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),S.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)((()=>{S=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>s,Ml:()=>m,Z0:()=>l,oQ:()=>c});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 c(e){return d.push(e),(0,n.hA)((()=>d.splice(d.indexOf(e),1)))}const u=[];function m(e){return u.push(e),(0,n.hA)((()=>u.splice(u.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();a!==e&&([...u].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),c=r(43937),u=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=u.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=u.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,c.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,c.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:()=>c,wr:()=>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]?c(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function c(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}function u(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===i||e===o||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},2060:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>k,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>_,initialize:()=>B,interpretObbModificationResults:()=>P,process:()=>A,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),c=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 u=r(2741);function m(e){return(0,u.s)(`esri/libs/i3s/${e}`)}let h;var f,g,y,T,S;async function A(e){N=await O();const t=[e.geometryBuffer];return{result:L(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(),_(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:c}=e,u=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(u,m);const y=[0,0,0];if(!f(n,u,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,u,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:u,outSpatialReference:m,localMode:c});if(!o)throw new Error("Failed to project");h=(0,s.Ns)(o)}const T=h.length,[S,A,p]=y;for(let e=0;e<T;e+=3)h[e]-=S,h[e+1]-=A,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,c.t)(r,t,e),(0,i.or)(e)&&(0,c.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 L(e,t,r){const{context:a,globalTrafo:i,mbs:o,obbData:s,elevationOffset:l,geometryBuffer:d,geometryDescriptor:c,indexToVertexProjector:u,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,S=new Float64Array(y.buffer,T);D(S,i),T+=16*y.BYTES_PER_ELEMENT,S=new Float64Array(y.buffer,T),D(S,o),T+=4*y.BYTES_PER_ELEMENT,s&&(S=new Float64Array(y.buffer,T),D(S,s));const A=c,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:A.featureIndex},b=e.process(a,!!t.obbData,h,g.byteLength,A,p,f,l,u,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(),L={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:L,obb:b.obb,globalTrafo:i}}function P(e){return 0===e?g.Unmodified:1===e?g.PotentiallyModified:2===e?g.Culled:g.Unknown}function _(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(97937),r(79960),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"}(S||(S={}));const I={transform:(e,t)=>N&&L(N,e,t),destroy:G}}}]);
|