@arcgis/core 6.0.0-next.54 → 6.0.0-next.56
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/WebScene.js +2 -2
- package/applications/Components/OrientedImageryViewer/shared/constants.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/validation/arcadeValidator.js +1 -1
- package/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +1 -0
- package/assets/esri/core/workers/chunks/033b9fcd9833db3b6e7d.js +1 -0
- package/assets/esri/core/workers/chunks/{6602310c3fcd91fb6a2f.js → 07c8ac092e4b9e8d5b3c.js} +1 -1
- package/assets/esri/core/workers/chunks/0978e12dd6a1cbc50b80.js +1 -0
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +1 -0
- package/assets/esri/core/workers/chunks/{db0a7671ab5cbe8afd72.js → 123661019bb69c53f2d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e956845255bce0910944.js → 1507297550c3cd1268e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b41ba050cde068d2860.js → 193a73a2c7f4f8482c21.js} +1 -1
- package/assets/esri/core/workers/chunks/1c0f5c42331fb6fc26cb.js +1 -0
- package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +1 -0
- package/assets/esri/core/workers/chunks/2cd2fcf4a37d180d5d5c.js +1 -0
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +1 -0
- package/assets/esri/core/workers/chunks/{afb4dfb89fbc8a342cc5.js → 3354f1fa90f8ce4c8fde.js} +1 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +1 -0
- package/assets/esri/core/workers/chunks/{9b458b0d1627f22fdd93.js → 3b11e4d2e69b7aea1d65.js} +1 -1
- package/assets/esri/core/workers/chunks/3d851710f7fcc27c5b60.js +2 -0
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +1 -0
- package/assets/esri/core/workers/chunks/41694ee8990e799da225.js +1 -0
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +1 -0
- package/assets/esri/core/workers/chunks/{12add2003631fa314f25.js → 5060be52a380fc4920f8.js} +1 -1
- package/assets/esri/core/workers/chunks/{2aa6be0b047a1b25a520.js → 53bbb9aa6e4e4a0a8121.js} +1 -1
- package/assets/esri/core/workers/chunks/{c6d82397044e403a1f61.js → 5954f02c3901b28d8e73.js} +1 -1
- package/assets/esri/core/workers/chunks/5ba6007c3c49a8153256.js +1 -0
- package/assets/esri/core/workers/chunks/5bdd95eeb8f34dbf26f2.js +2 -0
- package/assets/esri/core/workers/chunks/{4707aedcc1b3bdf5e987.js → 5c34d49a6c9cc34b7626.js} +1 -1
- package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js → 5e47026c681238038955.js} +2 -2
- package/assets/esri/core/workers/chunks/{2baf35b1b19482d603b5.js → 5f7505ada0991cfbdd84.js} +1 -1
- package/assets/esri/core/workers/chunks/{976303f47c342b9d1cc0.js → 62ddd3a82864e26f009a.js} +1 -1
- package/assets/esri/core/workers/chunks/69a09c6acb5ae03c67f6.js +1 -0
- package/assets/esri/core/workers/chunks/{542a9c414c99d84d52ab.js → 6a202ef9ba9b89e09153.js} +1 -1
- package/assets/esri/core/workers/chunks/{0826feebdca8a31eb630.js → 6ba6fece5c11fe2a6ace.js} +1 -1
- package/assets/esri/core/workers/chunks/{5eb69e2895e5aec81051.js → 6fd10891506925560443.js} +1 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +1 -0
- package/assets/esri/core/workers/chunks/7b6fd287e7043ad50f4e.js +1 -0
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +1 -0
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +1 -0
- package/assets/esri/core/workers/chunks/{c3c0f24a9e0047232ae1.js → 8679dfc0c53355b6feb0.js} +1 -1
- package/assets/esri/core/workers/chunks/8a636dc51372e14c98f5.js +1 -0
- package/assets/esri/core/workers/chunks/{d14732a57c8e63948c60.js → 9117c9b720c9ba6e7a6e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7e33d37dd11fb08f3f8.js → 97107e64407fa6825620.js} +1 -1
- package/assets/esri/core/workers/chunks/{5118c7269b706089c88e.js → a05a2c2aaf0c288f9681.js} +1 -1
- package/assets/esri/core/workers/chunks/{944f17e9c9f681b971fb.js → a12e2a345005189c64be.js} +1 -1
- package/assets/esri/core/workers/chunks/a22458e5272332d86cb9.js +1 -0
- package/assets/esri/core/workers/chunks/{15b3386ad92a0b4149b8.js → a24dc5350af001db417a.js} +1 -1
- package/assets/esri/core/workers/chunks/{10967a36c77c5188690d.js → a66d6298236d59a615db.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ea480cebf8ee56228a5.js → a7dfca326883384d2751.js} +1 -1
- package/assets/esri/core/workers/chunks/{723d8316f5d4b6ce2942.js → a9539393e2f1812a973a.js} +1 -1
- package/assets/esri/core/workers/chunks/{ac8d38016e4bee37a77c.js → ab784764ddf9d7f693a1.js} +1 -1
- package/assets/esri/core/workers/chunks/{255f5b45c4d32f97f86c.js → ac0861014b3d2f1a1de2.js} +1 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +1 -0
- package/assets/esri/core/workers/chunks/ae48ee283cfa5b3c14b0.js +1 -0
- package/assets/esri/core/workers/chunks/b38b6fe08a367e9de4f5.js +1 -0
- package/assets/esri/core/workers/chunks/{4e651869e9a196494694.js → b6e628b5d2643af4c19b.js} +1 -1
- package/assets/esri/core/workers/chunks/{b37ab6b1cb4cfc85cd9d.js → b7828d7e2c5b75644057.js} +1 -1
- package/assets/esri/core/workers/chunks/bbd8fcb0bbba7bde3d9b.js +1 -0
- package/assets/esri/core/workers/chunks/{ec465abb0344ad719e9d.js → bd8e329ec74d921d311a.js} +1 -1
- package/assets/esri/core/workers/chunks/{56e6e70aa40e51827290.js → c3f94024c6c9eed9f273.js} +1 -1
- package/assets/esri/core/workers/chunks/{6d17b45022dfd2548098.js → c5ddf8b347c31fe772a3.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee9af58ae202b803bba7.js → c7a0c4ca37ebd1d98cf1.js} +1 -1
- package/assets/esri/core/workers/chunks/d0659f1b0495734be4b3.js +1 -0
- package/assets/esri/core/workers/chunks/d7763c42754152510e13.js +2 -0
- package/assets/esri/core/workers/chunks/{b9a2b05ede02c305e865.js → d8ffb1502def5c85740b.js} +1 -1
- package/assets/esri/core/workers/chunks/{7dfe1e78d2e66de6be22.js → d9ef244019954d5a8a27.js} +1 -1
- package/assets/esri/core/workers/chunks/{95403bb27a4ea0a4b7b1.js → ddbfa664e69612295785.js} +1 -1
- package/assets/esri/core/workers/chunks/dfa1b0308e5e82d1ddfe.js +1120 -0
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +1 -0
- package/assets/esri/core/workers/chunks/e74586b074d0fa6abb4b.js +1 -0
- package/assets/esri/core/workers/chunks/e7dff025780726d5feae.js +1 -0
- package/assets/esri/core/workers/chunks/e96fa029acba59c04e4e.js +2 -0
- package/assets/esri/core/workers/chunks/{55d28d3f5b8ced061e39.js → eaf73ce60f39a48ddd2a.js} +1 -1
- package/assets/esri/core/workers/chunks/ed2f2a5da830d058e339.js +1 -0
- package/assets/esri/core/workers/chunks/{e592f2483db71230e8e5.js → efd6ea0966f60ab19520.js} +1 -1
- package/assets/esri/core/workers/chunks/{944cb751c85d3a127f49.js → f52d081bbde5c95265cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{1de9be7b65109c207bd5.js → fbd5f3b81cd9f061824d.js} +1 -1
- package/assets/esri/core/workers/chunks/fdfbd201be372d3796bf.js +2 -0
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +1 -0
- package/assets/esri/layers/raster/formats/blosc-wasm.wasm +0 -0
- package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
- package/basemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/chunks/BlendLayers.glsl.js +1 -1
- package/chunks/ColorMaterial.glsl.js +14 -14
- package/chunks/Component.glsl.js +37 -37
- package/chunks/CypherParser.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +15 -15
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/HUDMaterial.glsl.js +3 -3
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/Path.glsl.js +15 -15
- package/chunks/Pattern.glsl.js +20 -20
- package/chunks/RasterColorizer.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +24 -24
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +29 -20
- package/chunks/blosc-wasm.js +2 -0
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/parquet.js +1 -1
- package/chunks/pdf.js +57 -0
- package/chunks/text.js +1 -1
- package/config.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/scheduling.js +1 -1
- package/core/sql/SqlInterval.js +1 -1
- package/core/urlUtils.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/support/Ellipsoid.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/geodesicConstants.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/effects/parser.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -56
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/parserUtils.js +2 -0
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/parquet.js +1 -1
- package/layers/raster/datasets/ZarrRaster.js +1 -1
- package/layers/raster/datasets/wcsCoverageParser.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/formats/blosc.js +2 -0
- package/layers/support/BuildingFilter.js +1 -1
- package/layers/support/ControlPoint.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/IntegratedMeshSemantics.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/fieldUtils.d.ts +23 -87
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/geospatialPDFUtils.d.ts +63 -0
- package/layers/support/geospatialPDFUtils.js +2 -0
- package/layers/support/layersMapping.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/legend/ActiveLayerInfo.js +1 -1
- package/libs/ajv/ajv.bundle-wrapper.js +1 -1
- package/package.json +6 -6
- package/renderers/types.d.ts +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/smartMapping/statistics/support/attributeDensity.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/support/tests/serviceMockDependencies.js +1 -1
- package/symbols/CIMSymbol.d.ts +9 -9
- package/symbols/PathSymbol3DLayer.d.ts +1 -1
- package/symbols/WaterSymbol3DLayer.d.ts +13 -1
- package/symbols/WaterSymbol3DLayer.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
- package/symbols/cim/rasterizingUtils.js +1 -1
- package/views/2d/PaddedViewState.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/FillBucket.js +1 -1
- package/views/2d/engine/vectorTiles/constants.js +1 -1
- package/views/2d/engine/vectorTiles/style/geoJSONVectorTileUtils.js +1 -1
- package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/ParquetLayerView2D.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
- package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillComputation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementVisualization.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/camera/constraintUtils.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/environment/EnvironmentView.js +1 -1
- package/views/3d/focusAreaUtils.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/Manipulator3DBase.js +1 -1
- package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
- package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/config.js +1 -1
- package/views/3d/interactive/editingTools/media/MediaElementControllerControlPoints.js +1 -1
- package/views/3d/interactive/editingTools/media/MediaElementControllerShape.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/DrapedSubView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.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/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolFactory.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/LabelInfo.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
- package/views/3d/layers/i3s/I3SNode.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.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/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3DContext.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/StageLayerElevationProvider.js +1 -1
- package/views/3d/layers/support/Tiles3DBVH.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/layers/support/createTileBVHForLayer.js +1 -1
- package/views/3d/layers/support/selectTiles3DSpatialReference.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/state/Constraints.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/state/NearFarHeuristic.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.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/PointToPointAnimationController.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/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/OffsetCorrectionController.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/RenderCoordsHelper.js +1 -1
- package/views/3d/support/SweptSphereVolume.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/elevationUpdateExtentUtils.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/engineContent/marker.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/BlendLayersTechniqueConfiguration.js +1 -1
- package/views/3d/terrain/ExtentHelper.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/RasterColorizerTechniqueConfiguration.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/TilingSchemeLogic.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentGeometryBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ElevationAgnosticBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/clampShadowPosition.glsl.js +2 -0
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +14 -14
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +2 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- 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/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.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/Program.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.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/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/PolygonOffset.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/Attribution.js +5 -5
- package/views/DOMContainer.d.ts +2 -1
- package/views/MapView.d.ts +1 -0
- package/views/SceneView.js +1 -1
- package/views/View2D.js +1 -1
- package/views/ViewingMode.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
- package/views/draw/DrawAction.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/SegmentDrawAction.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/helpMessageUtils.js +1 -1
- package/views/draw/support/managers/EditSessionManager.js +1 -1
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
- package/views/interactive/editGeometry/operations/AddOrUpdatePart.js +1 -1
- package/views/layers/support/editableLayerViews.js +1 -1
- package/views/overlay/TextOverlayItem.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/support/spatialReferenceSupport.js +1 -1
- package/views/webgl/Program.js +3 -3
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +2 -2
- package/webscene/Slide.js +1 -1
- package/webscene/VirtualLighting.d.ts +2 -4
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +17 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.d.ts +7 -0
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Legend/styles/card/ColorRamp.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Measurement.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageMeasurementWidget.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/support/ContingentValuesManager.js +1 -1
- package/widgets/support/forms/types.d.ts +23 -1
- package/assets/esri/core/workers/chunks/021bd07b9a3e70598840.js +0 -1
- package/assets/esri/core/workers/chunks/032733b863426c5bde00.js +0 -1121
- package/assets/esri/core/workers/chunks/144f18a3dd2c8cf07cf7.js +0 -1
- package/assets/esri/core/workers/chunks/170e68624b71ac96de4a.js +0 -1
- package/assets/esri/core/workers/chunks/23fc1c1ed483ed3b2298.js +0 -1
- package/assets/esri/core/workers/chunks/2634927d26cb1139c6d0.js +0 -1
- package/assets/esri/core/workers/chunks/2d1b8154ee40afc9d40b.js +0 -1
- package/assets/esri/core/workers/chunks/2d3e977f3b75474d7ebc.js +0 -1
- package/assets/esri/core/workers/chunks/4a41bf3d1e2e9bb79771.js +0 -2
- package/assets/esri/core/workers/chunks/5f324d88785ffcb73ae0.js +0 -1
- package/assets/esri/core/workers/chunks/70695e0fb53018d48e7b.js +0 -2
- package/assets/esri/core/workers/chunks/723c9ad4c25be2b82476.js +0 -1
- package/assets/esri/core/workers/chunks/766a1357be2ed7f4e125.js +0 -1
- package/assets/esri/core/workers/chunks/817bf487df056da1e6ec.js +0 -1
- package/assets/esri/core/workers/chunks/89e55895683369b5277a.js +0 -1
- package/assets/esri/core/workers/chunks/8a820e303941b351de81.js +0 -1
- package/assets/esri/core/workers/chunks/8c94e987754b3919181e.js +0 -1
- package/assets/esri/core/workers/chunks/90d567e920b6982b402d.js +0 -1
- package/assets/esri/core/workers/chunks/919115788da38049aea7.js +0 -2
- package/assets/esri/core/workers/chunks/97cdcedfe853280f6258.js +0 -1
- package/assets/esri/core/workers/chunks/9ebc6026934400fc1e1f.js +0 -1
- package/assets/esri/core/workers/chunks/b33e7e74cf8fa3926617.js +0 -1
- package/assets/esri/core/workers/chunks/b4a325dcf50e276751d7.js +0 -1
- package/assets/esri/core/workers/chunks/bb2af16e55cb39163827.js +0 -1
- package/assets/esri/core/workers/chunks/be5857b0d1b00faf430b.js +0 -1
- package/assets/esri/core/workers/chunks/cd9100a7c8309dfa7569.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb9f9b7b341c671525.js +0 -1
- package/assets/esri/core/workers/chunks/d96e63d66f7b1f4ea54a.js +0 -2
- package/assets/esri/core/workers/chunks/e3bcd2e356f75afc316a.js +0 -1
- package/assets/esri/core/workers/chunks/e507dfc4788295d9c244.js +0 -1
- package/assets/esri/core/workers/chunks/e58f51618251f74aaafd.js +0 -1
- package/assets/esri/core/workers/chunks/e80526571f1a34de3278.js +0 -1
- package/assets/esri/core/workers/chunks/e83806797979138fd22a.js +0 -1
- package/assets/esri/core/workers/chunks/ea71850ba87ae6038000.js +0 -1
- package/assets/esri/core/workers/chunks/f537a5e808dc546813c7.js +0 -1
- package/assets/esri/core/workers/chunks/fe811d651d201f698b8f.js +0 -2
- package/chunks/NativeLine.glsl.js +0 -8
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +0 -2
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +0 -2
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +0 -2
- /package/assets/esri/core/workers/chunks/{919115788da38049aea7.js.LICENSE.txt → 3d851710f7fcc27c5b60.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fe811d651d201f698b8f.js.LICENSE.txt → 5bdd95eeb8f34dbf26f2.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js.LICENSE.txt → 5e47026c681238038955.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{4a41bf3d1e2e9bb79771.js.LICENSE.txt → d7763c42754152510e13.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d96e63d66f7b1f4ea54a.js.LICENSE.txt → e96fa029acba59c04e4e.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{70695e0fb53018d48e7b.js.LICENSE.txt → fdfbd201be372d3796bf.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[9894],{60999(e,t,r){r.d(t,{DZ:()=>d,Ke:()=>h,QA:()=>m,Tj:()=>s,UT:()=>g,aD:()=>v,jJ:()=>c});var n=r(32198),a=r(56372),o=r(10107),u=r(64108),i=r(97768),l=r(17676);function c(e,t,r){return(0,l.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function s(e,t,r){return(await(0,l.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function f(e){return{ok:!0,value:e}}function p(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return f(await e)}catch(e){return p(e)}}async function d(e){try{return f(await e)}catch(e){return(0,l.QP)(e),p(e)}}function m(e){if(!0===e.ok)return e.value;throw e.error}function g(e,t){return new y(e,t)}let y=class extends a.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super(),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=f(e),this._cleanup()},e=>{this._result=p(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],y.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],y.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],y.prototype,"_result",void 0),y=(0,n.Cg)([(0,u.$K)("esri.core.asyncUtils.ReactiveTask")],y);class v{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},76369(e,t,r){r.d(t,{LF:()=>C,M9:()=>x});var n=r(49186),a=r(93637),o=r(40876),u=r(59247),i=r(27865);class l extends SyntaxError{constructor(e,t,r,n){super(e),this.expected=t,this.found=r,this.location=n,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null,n=e.find(e=>e.source===this.location.source);n&&(r=n.text.split(/\r\n|\n|\r/g));let a=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,u=this.location.source+":"+o.line+":"+o.column;if(r){let e=this.location.end,n="".padEnd(o.line.toString().length," "),i=r[a.line-1],l=(a.line===e.line?e.column:i.length+1)-a.column||1;t+="\n --\x3e "+u+"\n"+n+" |\n"+o.line+" | "+i+"\n"+n+" | "+"".padEnd(a.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+u}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}let n=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function a(e,t){return function(e){return n?e.replace(n,e=>"\\u{"+r(e)+"}"):e}(e.replace(t,"\\$&").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function o(e){return a(e,/[\\"]/g)}function u(e){return a(e,/[\\\]^-]/g)}let i={literal:e=>'"'+o(e.text)+'"',class(e){let t=e.parts.map(e=>Array.isArray(e)?u(e[0])+"-"+u(e[1]):u(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return i[e.type](e)}return"Expected "+function(e){let t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function c(e){if(!e||0===e.length)return null;if("string"==typeof e){let t=s(e);return t&&0!==t.length?t:null}let t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new n.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:s(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,i.mj)(t[e].effects,t[e+1].effects))throw new n.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,i.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function s(e){let t;if(!e)return[];try{t=function(e,t){let r,n,a={},o=(t=void 0===t?{}:t).grammarSource,u={start:re},i=re,c="none",s="grad",f="turn",p=Q("none"),h=J("none",!1),d=J(")",!1),m=J(",",!1),g=W([" ","\t","\n","\r"],!1,!1,!1),y=Q("function"),v=J("(",!1),A=Q("identifier"),w=W([["a","z"],"-"],!1,!1,!1),b=Q("percentage"),C=J("%",!1),x=Q("length"),E=J("px",!1),S=J("cm",!1),M=J("mm",!1),_=J("in",!1),R=J("pt",!1),$=J("pc",!1),L=Q("angle"),P=J("deg",!1),T=J("rad",!1),k=J("grad",!1),I=J("turn",!1),O=Q("number"),F=Q("color"),j=J("#",!1),N=W([["0","9"],["a","f"],["A","F"]],!1,!1,!1),D=W(["+","-"],!1,!1,!1),G=W([["0","9"]],!1,!1,!1),K=J(".",!1),Y=J("e",!1),Z=0|t.peg$currPos,U=Z,q=[{line:1,column:1}],B=Z,H=t.peg$maxFailExpected||[],V=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in u))throw Error("Can't start parsing from rule \""+t.startRule+'".');i=u[t.startRule]}function z(){return e.substring(U,Z)}function J(e,t){return{type:"literal",text:e,ignoreCase:t}}function W(e,t,r,n){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:n}}function Q(e){return{type:"other",description:e}}function X(t){let r,n=q[t];if(n)return n;if(t>=q.length)r=q.length-1;else for(r=t;!q[--r];);for(n=q[r],n={line:n.line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return q[t]=n,n}function ee(e,t,r){let n=X(e),a=X(t);return{source:o,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:a.line,column:a.column}}}function te(e){Z<B||(Z>B&&(B=Z,H=[]),H.push(e))}function re(){let e;return e=ne(),e===a&&(e=function(){let e,t;for(e=[];t=ae(),t!==a;)e.push(t);return e.length<1&&(e=a),e}()),e}function ne(){let t,r;return V++,t=Z,ue(),e.substr(Z,4)===c?(r=c,Z+=4):(r=a,0===V&&te(h)),r===a?(Z=t,t=a):(ue(),U=t,t=[]),V--,t===a&&0===V&&te(p),t}function ae(){let t,r,n,o;return t=Z,ue(),r=function(){let t,r,n;return V++,t=Z,r=ie(),r===a?(Z=t,t=a):(40===e.charCodeAt(Z)?(n="(",Z++):(n=a,0===V&&te(v)),n===a?(Z=t,t=a):(U=t,t=r)),V--,t===a&&(r=a,0===V&&te(y)),t}(),r===a?(Z=t,t=a):(ue(),n=function(){let t,r,n,o,u,i,l,c;if(t=Z,r=oe(),r!==a){for(n=[];o=Z,u=ue(),44===e.charCodeAt(Z)?(i=",",Z++):(i=a,0===V&&te(m)),i===a&&(i=null),l=ue(),c=oe(),c===a?(Z=o,o=a):(u=[u,i,l,c],o=u),o!==a;)n.push(o);U=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(r,n)}else Z=t,t=a;return t}(),n===a&&(n=null),ue(),41===e.charCodeAt(Z)?(o=")",Z++):(o=a,0===V&&te(d)),o===a?(Z=t,t=a):(ue(),U=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,n))),t}function oe(){let e,t;return e=Z,t=le(),t===a&&(t=ce(),t===a&&(t=se(),t===a&&(t=function(){let e,t;return V++,e=Z,ue(),t=pe(),t===a?(Z=e,e=a):(U=e,e=function(e){return{value:e,unit:null}}(t)),V--,e===a&&0===V&&te(O),e}()))),t!==a&&(U=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===a&&(e=Z,t=fe(),t!==a&&(U=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function ue(){let t,r;for(V++,t=[];r=e.charAt(Z),n=r.charCodeAt(0),32===n||9===n||10===n||13===n?Z++:(r=a,0===V&&te(g)),r!==a;)t.push(r);return V--,t}function ie(){let t,r,o;for(V++,t=Z,r=[];o=e.charAt(Z),n=o.charCodeAt(0),n>=97&&n<=122||45===n?Z++:(o=a,0===V&&te(w)),o!==a;)r.push(o);return r.length<1&&(r=a),r!==a&&(U=t,r=z()),t=r,V--,t===a&&(r=a,0===V&&te(A)),t}function le(){let t,r,n;return V++,t=Z,ue(),r=pe(),r===a?(Z=t,t=a):(37===e.charCodeAt(Z)?(n="%",Z++):(n=a,0===V&&te(C)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"%"}}(r))),V--,t===a&&0===V&&te(b),t}function ce(){let t,r,n;return V++,t=Z,ue(),r=pe(),r===a?(Z=t,t=a):("px"===e.substr(Z,2)?(n="px",Z+=2):(n=a,0===V&&te(E)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"px"}}(r))),t===a&&(t=Z,ue(),r=pe(),r===a?(Z=t,t=a):("cm"===e.substr(Z,2)?(n="cm",Z+=2):(n=a,0===V&&te(S)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"cm"}}(r))),t===a&&(t=Z,ue(),r=pe(),r===a?(Z=t,t=a):("mm"===e.substr(Z,2)?(n="mm",Z+=2):(n=a,0===V&&te(M)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"mm"}}(r))),t===a&&(t=Z,ue(),r=pe(),r===a?(Z=t,t=a):("in"===e.substr(Z,2)?(n="in",Z+=2):(n=a,0===V&&te(_)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"in"}}(r))),t===a&&(t=Z,ue(),r=pe(),r===a?(Z=t,t=a):("pt"===e.substr(Z,2)?(n="pt",Z+=2):(n=a,0===V&&te(R)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"pt"}}(r))),t===a&&(t=Z,ue(),r=pe(),r===a?(Z=t,t=a):("pc"===e.substr(Z,2)?(n="pc",Z+=2):(n=a,0===V&&te($)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"pc"}}(r)))))))),V--,t===a&&0===V&&te(x),t}function se(){let t,r,n;return V++,t=Z,r=pe(),r===a?(Z=t,t=a):("deg"===e.substr(Z,3)?(n="deg",Z+=3):(n=a,0===V&&te(P)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"deg"}}(r))),t===a&&(t=Z,r=pe(),r===a?(Z=t,t=a):("rad"===e.substr(Z,3)?(n="rad",Z+=3):(n=a,0===V&&te(T)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"rad"}}(r))),t===a&&(t=Z,r=pe(),r===a?(Z=t,t=a):(e.substr(Z,4)===s?(n=s,Z+=4):(n=a,0===V&&te(k)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"grad"}}(r))),t===a&&(t=Z,r=pe(),r===a?(Z=t,t=a):(e.substr(Z,4)===f?(n=f,Z+=4):(n=a,0===V&&te(I)),n===a?(Z=t,t=a):(U=t,t=function(e){return{value:e,unit:"turn"}}(r)))))),V--,t===a&&(r=a,0===V&&te(L)),t}function fe(){let t,r,o,u;if(V++,t=Z,35===e.charCodeAt(Z)?(r="#",Z++):(r=a,0===V&&te(j)),r!==a){for(o=[];u=e.charAt(Z),n=u.charCodeAt(0),n>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70?Z++:(u=a,0===V&&te(N)),u!==a;)o.push(u);o.length<1&&(o=a),o===a?(Z=t,t=a):(U=t,t={type:"hex",value:z()})}else Z=t,t=a;return t===a&&(t=Z,r=ae(),r!==a&&(U=t,r=function(e){return{type:"function",value:e}}(r)),t=r,t===a&&(t=Z,r=ie(),r!==a&&(U=t,r={type:"named",value:z()}),t=r)),V--,t===a&&(r=a,0===V&&te(F)),t}function pe(){let t,r,o,u,i,l,c,s;for(t=Z,r=e.charAt(Z),n=r.charCodeAt(0),43===n||45===n?Z++:(r=a,0===V&&te(D)),r===a&&(r=null),o=Z,u=[];i=e.charAt(Z),n=i.charCodeAt(0),n>=48&&n<=57?Z++:(i=a,0===V&&te(G)),i!==a;)u.push(i);if(46===e.charCodeAt(Z)?(i=".",Z++):(i=a,0===V&&te(K)),i!==a){for(l=[];c=e.charAt(Z),n=c.charCodeAt(0),n>=48&&n<=57?Z++:(c=a,0===V&&te(G)),c!==a;)l.push(c);l.length<1&&(l=a),l===a?(Z=o,o=a):(u=[u,i,l],o=u)}else Z=o,o=a;if(o===a){for(o=[];u=e.charAt(Z),n=u.charCodeAt(0),n>=48&&n<=57?Z++:(u=a,0===V&&te(G)),u!==a;)o.push(u);o.length<1&&(o=a)}if(o!==a){if(u=Z,101===e.charCodeAt(Z)?(i="e",Z++):(i=a,0===V&&te(Y)),i!==a){for(l=e.charAt(Z),n=l.charCodeAt(0),43===n||45===n?Z++:(l=a,0===V&&te(D)),l===a&&(l=null),c=[];s=e.charAt(Z),n=s.charCodeAt(0),n>=48&&n<=57?Z++:(s=a,0===V&&te(G)),s!==a;)c.push(s);c.length<1&&(c=a),c===a?(Z=u,u=a):(i=[i,l,c],u=i)}else Z=u,u=a;u===a&&(u=null),U=t,t=parseFloat(z())}else Z=t,t=a;return t}r=i();let he=r!==a&&Z===e.length;function de(){throw r!==a&&Z<e.length&&te({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(H,B<e.length?function(t=Z){let r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(B):null,B<e.length?ee(B,B+1):ee(B,B))}return t.peg$library?{peg$result:r,peg$currPos:Z,peg$FAILED:a,peg$maxFailExpected:H,peg$maxFailPos:B,peg$success:he,peg$throw:he?void 0:de}:he?r:void de()}(e)}catch(t){throw new n.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return f(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new u.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return f(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new u.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return f(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=d[e.unit]))throw new n.A("effect:type-error",`Expected <angle>, Actual: ${p(e)}`,{term:e})}(e),e.value*d[e.unit]||0}(e.parameters[0])),new u.Nd(t)}(e);case"blur":return function(e){let t=0;return f(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),h(t,e.parameters[0])),new u.Fk(t)}(e);case"drop-shadow":return function(e){let t=[],r=null;for(let a of e.parameters)if("color"===a.type){if(t.length&&Object.freeze(t),r)throw new n.A("effect:type-error","Accepts only one color",{});r=v(a)}else{let e=y(a);if(Object.isFrozen(t))throw new n.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&h(e,a)}if(t.length<2||t.length>3)throw new n.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new u.$b(t[0],t[1],t[2]||0,r||A("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return f(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(r=y(e.parameters[1]),h(r,e.parameters[1])),e.parameters[2]&&(n=g(e.parameters[2])),new u.bv(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new n.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function f(e,t){if(e.length>t)throw new n.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function p(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in m)return"<length>";if(e.unit in d)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function h(e,t){if(e<0)throw new n.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const d={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new n.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(e)}`,{term:e})}(e);let t=e.value;return h(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new n.A("effect:type-error",`Expected <length>, Actual: ${p(e)}`,{term:e})}(e),e.value*m[e.unit]||0}function v(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return A(e.value);case"function":return function(e){if(f(e.parameters,4),w.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(b.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new n.A("effect:type-error",`Expected <double>, Actual: ${p(e)}`,{term:e})}(e),h(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new n.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function A(e){if(!(0,o.V6)(e))throw new n.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const w=/^rgba?/i,b=/^hsla?/i;function C(e,t,r){try{return function(e){return e&&0!==e.length?function(e){let t=e[0];return!!t&&"scale"in t}(e)?Array.from(e,e=>({scale:e.scale,value:E(e.value)})):E(e):null}(e)}catch(e){r?.messages?.push(e)}return null}function x(e,t,r,n){try{let n=function(e){let t=c(e);return t?(0,i.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,a.sM)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function E(e){if(!e?.length)return"";let t=[];for(let r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[S(r,"amount")];break;case"blur":e=[S(r,"radius","pt")];break;case"hue-rotate":e=[S(r,"angle","deg")];break;case"drop-shadow":e=[S(r,"xoffset","pt"),S(r,"yoffset","pt"),S(r,"blurRadius","pt"),M(r,"color")];break;case"bloom":e=[S(r,"strength"),S(r,"radius","pt"),S(r,"threshold")]}let n=`${r.type}(${e.filter(Boolean).join(" ")})`;c(n),t.push(n)}return t.join(" ")}function S(e,t,r){if(null==e[t])throw new n.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function M(e,t){if(null==e[t])throw new n.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});let r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},63074(e,t,r){var n=r(32198),a=r(91429),o=r(89317),u=r(76369);const i={type:"average.color-burn.color-dodge.color.darken.destination-atop.destination-in.destination-out.destination-over.difference.exclusion.hard-light.hue.invert.lighten.lighter.luminosity.minus.multiply.normal.overlay.plus.reflect.saturation.screen.soft-light.source-atop.source-in.source-out.vivid-light.xor".split("."),nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:o.K}},"portal-item":{read:!0,write:{layerContainerTypes:o.K}}}}},l={read:{reader:u.LF},write:{allowNull:!0,writer:u.M9,layerContainerTypes:o.K}},c={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}};r.d(t,["LF",0,c,"dM",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n.Cg)([(0,a.MZ)(i)],r.prototype,"blendMode",void 0),(0,n.Cg)([(0,a.MZ)(c)],r.prototype,"effect",void 0),r=(0,n.Cg)([(0,a.$K)("esri.layers.mixins.BlendLayer")],r),r},"sU",0,i])},25036(e,t,r){var n=r(32198),a=r(91429),o=r(83960);r.d(t,["j",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&(0,o.RH)(e,t.effectiveScaleRange);let r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},56560(e,t,r){var n=r(32198),a=r(91429),o=r(69540),u=r(86738);let i=class extends o.Pw{constructor(e){super(e),this.sourcePoint=null,this.mapPoint=null}};(0,n.Cg)([(0,a.MZ)()],i.prototype,"sourcePoint",void 0),(0,n.Cg)([(0,a.MZ)({type:u.A})],i.prototype,"mapPoint",void 0),i=(0,n.Cg)([(0,a.$K)("esri.layers.support.ControlPoint")],i);const l=i;r.d(t,["A",0,l])},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>u,OM:()=>c,Sm:()=>s,Y:()=>i,bK:()=>l,mm:()=>p,sQ:()=>f});var n=r(99917),a=r(16930),o=r(28735);function u(e,t){if(!i(e,t)){let r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function i(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return i(e,p.HOSTED_SERVICE)}function c(e,t){let r=e.typeKeywords;if(r){let e=r.indexOf(t);e>-1&&r.splice(e,1)}}function s(e,t,r){r?u(e,t):c(e,t)}async function f(e){let t,r=e.clone().normalize();if(r.length>1)for(let e of r)t?e.width>t.width&&(t=e):t=e;else t=r[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);let r=a.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(t)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){let{portal:t,isOrgItem:r,itemControl:n}=e,a=t.user?.privileges,o=!a||a.includes("features:user:edit"),u=!!r&&!!a?.includes("features:user:fullEdit"),i="update"===n||"admin"===n;return i?u=o=!0:u&&(o=!0),{features:{edit:o,fullEdit:u},content:{updateItem:i}}}},78553(e,t,r){r.d(t,{D:()=>o,p:()=>a});var n=r(56507);function a(e){let t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function o(e){let t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8245],{11006(e,t,i){function r(e,t,i,r,s){n(e,t,i||0,r||e.length-1,s||a)}function n(e,t,i,r,a){for(;r>i;){if(r-i>600){var l=r-i+1,o=t-i+1,u=Math.log(l),d=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*d*(l-d)/l)*(o-l/2<0?-1:1);n(e,t,Math.max(i,Math.floor(t-o*d/l+c)),Math.min(r,Math.floor(t+(l-o)*d/l+c)),a)}var h=e[t],f=i,p=r;for(s(e,i,t),a(e[r],h)>0&&s(e,i,r);f<p;){for(s(e,f,p),f++,p--;a(e[f],h)<0;)f++;for(;a(e[p],h)>0;)p--}0===a(e[i],h)?s(e,i,p):s(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function s(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function a(e,t){return e<t?-1:+(e>t)}i.d(t,{q:()=>r})},69052(e,t,i){i.d(t,{hr:()=>n});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+a(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=a(e,t-r):r>i&&(r-=a(e,r-i)),s&&r===i&&(r=t),r+n}function a(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const l=new n(0,2*Math.PI),o=(new n(-Math.PI,Math.PI),new n(0,360));i.d(t,["ie",0,o,"uC",0,l])},18370(e,t,i){i.d(t,{z:()=>n});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function n(e){return new r(e)}},44123(e,t,i){i.d(t,{WhereClauseCache:()=>s});var r=i(66344),n=i(89696);class s{constructor(e,t){this._cache=new r.q(e),this._invalidCache=new r.q(t)}get(e,t){let i=`${t?.uid}:${e}`,r=this._cache.get(i);if(r)return r;if(null!=this._invalidCache.get(i))return null;try{let r=n.A.create(e,{fieldsIndex:t});return this._cache.put(i,r),r}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){let i=`${t?.uid}:${e}`;return this._invalidCache.get(i)??null}}},52039(e,t,i){i.d(t,{O7:()=>h,Y_:()=>p,el:()=>u});var r=i(69052),n=(i(49186),i(18370)),s=i(17676),a=(i(5443),i(39829)),l=(i(82799),i(16930)),o=(i(80754),i(21325));async function u(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let n=(0,o.Vp)(r);if(!n)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(n);return["xmin"in t?t:new a.A(t)]}let[l,u]=n.valid,h=!1;for(let t of e){if(!t)continue;if("point"===t.type){h||=t.x>=u,h||=t.x<=l;continue}let{extent:e}=t;if(null==e){h=!0;break}h||=e.xmin>=u,h||=e.xmin<=l,h||=e.xmax>=u,h||=e.xmax<=l}if(!h)return e;let[{foldInto360Range:f},p]=await(0,s.qr)(Promise.all([d.getImportPromise(),c.getImportPromise()]),i),m=p.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=p.fromGeometry(e),i=p.toGeometry(f(t,m),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const d=(0,n.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),c=(0,n.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function h(e,t,i){let r=(0,o.Vp)(i);if(null==r)return e;let[n,s]=r.valid,a=2*s,l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/a):t<n&&(l=-Math.ceil(Math.abs(t-n)/a)),e>s?u=Math.ceil(Math.abs(e-s)/a):e<n&&(u=-Math.ceil(Math.abs(e-n)/a));let d=e+(l-u)*a,c=d-t;return c>s?d-=a:c<n&&(d+=a),d}function f(e){let t=(0,o.Vp)(e);if(null==t)return null;let[i,n]=t.valid;return new r.hr(i,n)}const p=f(l.A.WGS84);f(l.A.WebMercator)},80754(e,t,i){i.d(t,{j7:()=>l,kS:()=>u,kd:()=>o});var r=i(82799),n=i(16930),s=i(52006),a=i(60408);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,s.n1)(e)){let[i,r,n]=e.b;i[0]+=t,r[0]+=t,n[0]+=t}else e[0]+=t;for(let i of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}},62577(e,t,i){function r(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function n(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:i,translate:r}=e,n=i[0]??1,s=i[1]??1;return{originPosition:"lowerLeft",scale:[n,"lowerLeft"===t?s:-s,i[2]??1,i[3]??1],translate:[r[0]??0,r[1]??0,r[2]??0,r[3]??0]}}function s({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}function a({scale:e,translate:t},i){return Math.round((i-t[1])/e[1])}function l({scale:e,translate:t},i){return i*e[0]+t[0]}function o({scale:e,translate:t},i){return i*e[1]+t[1]}function u({scale:e,translate:t},i){return(i??0)*e[2]+t[2]}function d({scale:e,translate:t},i){return i?i*e[3]+t[3]:0}function c(e,t){return e&&t?m:e&&!t?f:!e&&t?p:h}i.d(t,{$X:()=>v,B2:()=>a,Gy:()=>g,IE:()=>s,P5:()=>T,Q1:()=>n,SW:()=>x,Tr:()=>_,VV:()=>r});const h=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],n=l(e,r[0]),s=o(e,r[1]);i[0]=[n,s];let{scale:a,originPosition:u}=e,d=a[0],c="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){let[r,a]=t[e];n+=d*r,s+=c*a,i[e]=[n,s]}return i},f=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],n=l(e,r[0]),s=o(e,r[1]);i[0]=[n,s,u(e,r[2])];let{scale:a,originPosition:d}=e,c=a[0],h="lowerLeft"===d?a[1]:-a[1];for(let r=1;r<t.length;r++){let[a,l,o]=t[r];n+=c*a,s+=h*l,i[r]=[n,s,u(e,o)]}return i},p=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],n=l(e,r[0]),s=o(e,r[1]);i[0]=[n,s,d(e,r[2])];let{scale:a,originPosition:u}=e,c=a[0],h="lowerLeft"===u?a[1]:-a[1];for(let r=1;r<t.length;r++){let[a,l,o]=t[r];n+=c*a,s+=h*l,i[r]=[n,s,d(e,o)]}return i},m=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],n=l(e,r[0]),s=o(e,r[1]);i[0]=[n,s,u(e,r[2]),d(e,r[3])];let{scale:a,originPosition:c}=e,h=a[0],f="lowerLeft"===c?a[1]:-a[1];for(let r=1;r<t.length;r++){let[a,l,o,c]=t[r];n+=h*a,s+=f*l,i[r]=[n,s,u(e,o),d(e,c)]}return i};function y(e,t,i){let r=Array(i.length);for(let n=0;n<i.length;n++)r[n]=t(e,i[n]);return r}function g(e,t,i){let r=n(e);return t.x=s(r,i.x),t.y=a(r,i.y),null!=i.z&&(t.z=function({scale:e,translate:t},i){return Math.round(((i??0)-t[2])/e[2])}(r,i.z)),null!=i.m&&(t.m=function({scale:e,translate:t},i){return i?Math.round((i-t[3])/e[3]):0}(r,i.m)),t}function x(e,t,i,r=i?.hasZ??!1,s=i?.hasM??!1){if(null!=i){let a=n(e);t.points=c(r,s)(a,i.points),t.hasZ=r,t.hasM=s}return t}function _(e,t,i,r=null!=i?.z,s=null!=i?.m){if(null==i)return t;let a=n(e);return t.x=l(a,i.x),t.y=o(a,i.y),r&&(t.z=u(a,i.z)),s&&(t.m=d(a,i.m)),t}function v(e,t,i,r=i?.hasZ??!1,s=i?.hasM??!1){return null!=i&&(t.rings=y(n(e),c(r,s),i.rings),t.hasZ=r,t.hasM=s),t}function T(e,t,i,r=i?.hasZ??!1,s=i?.hasM??!1){return null!=i&&(t.paths=y(n(e),c(r,s),i.paths),t.hasZ=r,t.hasM=s),t}},43334(e,t,i){i.d(t,{N3:()=>l,Om:()=>a});var r=i(69397),n=i(27647),s=i(92722);class a{constructor(e,t,i,r,n=0,s=null,a=null){this.geometry=e,this.attributes=t,this.centroid=i,this.objectId=r,this.displayId=n,this.distance=s,this.vertexCount=a}static fromJSON(e){let t=e.geometry?s.A.fromJSON(e.geometry):null,i=e.centroid?s.A.fromJSON(e.centroid):null,r=e.objectId;return new a(t,e.attributes,i,r,void 0,e.distance,e.vertexCount)}weakClone(){return new a(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new a(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(e){return this.centroid??=(0,n.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function l(e){return!!e.geometry?.coords?.length}},58512(e,t,i){i.d(t,{A:()=>r});class r{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){let e=new r;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722(e,t,i){i.d(t,{A:()=>n});var r=i(69397);class n{constructor(e=[],t=[],i=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:i,hasM:r}){return new n(e,t,i||!1,r||!1)}static fromRect([e,t,i,r]){let s=i-e,a=r-t;return new n([5],[e,t,s,0,0,a,-s,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let i of this.lengths){if(i<3)continue;let{stride:r}=this,n=this.coords[r*t],s=this.coords[r*t+1];for(let a=1;a<i;a+=1){let i=r*(t+a),l=this.coords[i],o=this.coords[i+1];e+=-.5*(l-n)*(o+s),n=l,s=o}t+=i}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:i}=this;for(let r of this.lengths){for(let n=0;n<r;n++){let r=i*(t+n);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){let e=this.clone(),{coords:t,lengths:i}=e,r=0,{stride:n}=this;for(let e of i){for(let i=1;i<e;i++){let e=n*(r+i);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}r+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:i,size:r}=this,s=this.coords.slice(0,r*i);return e?(e.set(s),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let i=Array(t*e);for(let t=0,r=0;t<i.length;t+=e)i[r++]=this.coords[t],i[r++]=this.coords[t+1];return new n(this.lengths,i,!1,!1)}}},27647(e,t,i){i.d(t,{Q:()=>s});var r=i(92722);function n(e,t){return e?t?4:3:t?3:2}function s(e){if(null==e||!e?.lengths.length)return null;let{lengths:t,coords:i,stride:n,hasZ:s,hasM:o}=e,u=new r.A([],[],s,!1),d=u.coords,c=[],h=s?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0],f=0;for(let e of t){let t=a(h,i,f,e,s,o);t&&c.push(t),f+=e*n}if(c.sort((e,t)=>{let i=e[2]-t[2];return 0===i&&s&&(i=e[4]-t[4]),i}),c.length){let e=6*c[0][2];d[0]=c[0][0]/e,d[1]=c[0][1]/e,s&&(e=6*c[0][4],d[2]=0===e?0:c[0][3]/e),(d[0]<h[0]||d[0]>h[1]||d[1]<h[2]||d[1]>h[3]||s&&(d[2]<h[4]||d[2]>h[5]))&&(d.length=0)}if(!d.length){let r=e.lengths[0]?l(i,0,t[0],s,o):null;if(!r)return null;d[0]=r[0],d[1]=r[1],s&&(d[2]=r[2]??0)}return u}function a(e,t,i,r,s,a){let l=n(s,a),o=i,u=i+l,d=0,c=0,h=0,f=0,p=0;for(let i=0,n=r-1;i<n;i++,o+=l,u+=l){let i=t[o],r=t[o+1],n=t[o+2],a=t[u],l=t[u+1],m=t[u+2],y=i*l-a*r;f+=y,d+=(i+a)*y,c+=(r+l)*y,s&&(y=i*m-a*n,h+=(n+m)*y,p+=y),i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i),r<e[2]&&(e[2]=r),r>e[3]&&(e[3]=r),s&&(n<e[4]&&(e[4]=n),n>e[5]&&(e[5]=n))}if(f>0&&(f*=-1),p>0&&(p*=-1),!f)return null;let m=[d,c,.5*f];return s&&(m[3]=h,m[4]=.5*p),m}function l(e,t,i,r,s){let a=n(r,s),l=t,h=t+a,f=0,p=0,m=0,y=0;for(let t=0,n=i-1;t<n;t++,l+=a,h+=a){let t=e[l],i=e[l+1],n=e[l+2],s=e[h],a=e[h+1],g=e[h+2],x=r?u(t,i,n,s,a,g):o(t,i,s,a);if(x)if(f+=x,r){let e=c(t,i,n,s,a,g);p+=x*e[0],m+=x*e[1],y+=x*e[2]}else{let e=d(t,i,s,a);p+=x*e[0],m+=x*e[1]}}return f>0?r?[p/f,m/f,y/f]:[p/f,m/f]:i>0?r?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function o(e,t,i,r){let n=i-e,s=r-t;return Math.sqrt(n*n+s*s)}function u(e,t,i,r,n,s){let a=r-e,l=n-t,o=s-i;return Math.sqrt(a*a+l*l+o*o)}function d(e,t,i,r){return[e+.5*(i-e),t+.5*(r-t)]}function c(e,t,i,r,n,s){return[e+.5*(r-e),t+.5*(n-t),i+.5*(s-i)]}},75752(e,t,i){i.d(t,{do:()=>B,qo:()=>L,Wc:()=>q});var r=i(4576),n=i(21818),s=i(49186),a=(i(44208),i(4718)),l=i(97768),o=i(17676),u=i(12195),d=i(86211),c=i(99917),h=i(70328),f=i(19419),p=i(537),m=i(60408),y=i(65864),g=i(52039),x=i(21325),_=i(92359),v=i(95466),T=i(90708),F=i(29441),S=i(51441),I=i(31464);class w{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;let e=1e3*this._purgeInterval,t=performance.now()-e;for(let[i,r]of this._storage){if(!(r.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(i)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}put(e,t){this._storage?.set(e,new E(t)),this._scheduleSweep()}get(e){let t=this._storage?.get(e);if(t)return this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}get test(){}}let R=0;class E{constructor(e){this.items=e,this.time=performance.now(),this.id=R++}}var A=i(99352),M=i(8384),b=i(58727),C=i(43668),O=i(62660);const N="unsupported-query";async function V(e,{fieldsIndex:t,geometryType:i,spatialReference:r,availableFields:n}){if(null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new s.A(N,"Unsupported query options",{query:e});return z(t,n,e),function(e,t,i){let{outStatistics:r,groupByFieldsForStatistics:n,having:a}=i,l=n?.length,o=r?.length;if(a){if(!l||!o)throw new s.A(N,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:i});(0,F.eD)(e,t,a,r,i)}if(o){if(!(0,F._d)(r))return;let a=(0,F.g9)(e,r,n);(0,F.MG)(e,t,a,{expressionName:"statistics",query:i});for(let n of r){let{onStatisticField:r,statisticType:a}=n;if("percentile_disc"!==a&&"percentile_cont"!==a||!("statisticParameters"in n))e.get(r)&&"count"!==a&&"min"!==a&&"max"!==a&&(0,F.MG)(e,t,[r],{expressionName:`outStatistics with '${a}' statistic type`,allowedFieldTypes:P,query:i});else{let{statisticParameters:e}=n;if(!e)throw new s.A(N,"statisticParameters should be set for percentile type",{definition:n,query:i})}}}}(t,n,e),Promise.all([(0,O.c0)(e,i,r),(0,I.Nk)(r,e.outSR)]).then(()=>e)}function z(e,t,i){let{returnDistinctValues:r,outStatistics:n}=i,a=n?n.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if("orderByFields"in i&&i.orderByFields&&i.orderByFields.length>0){let r=" asc",n=" desc",s=i.orderByFields.map(e=>{let t=e.toLowerCase();return t.includes(r)?t.split(r)[0]:t.includes(n)?t.split(n)[0]:e}).filter(e=>!a.includes(e));(0,F.MG)(e,t,s,{expressionName:"orderByFields",query:i})}if("outFields"in i)if(i.outFields?.length)(0,F.MG)(e,t,i.outFields,{expressionName:"outFields",query:i,allowedFieldTypes:"all"});else if(r)throw new s.A(N,"outFields should be specified for returnDistinctValues",{query:i});(0,F.SN)(e,t,i.where,i)}const P=new Set([...F.vl,...F.VW]);async function G(e,t,i,r){let n=[];if(i.valueExpression){let{arcadeUtils:e}=await(0,C.l)();n=e.extractFieldNames(i.valueExpression)}if(i.field&&n.push(i.field),i.field2&&n.push(i.field2),i.field3&&n.push(i.field3),i.normalizationField&&n.push(i.normalizationField),!n.length&&!i.valueExpression)throw new s.A(N,"field or valueExpression is required",{params:i});(0,F.MG)(e,t,n,{expressionName:"statistics",query:r})}var D=i(86420);class B{constructor(e){this._changeHandle=null,this.capabilities={query:A.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._cache=e.cache??new w,this.timeInfo=e.timeInfo,this.featureIdInfo=e.featureIdInfo,this._changeHandle=this.featureStore.events.on("changed",()=>this._clearCache()),this.fieldsIndex=(0,u.W)(e.fieldsIndex)?e.fieldsIndex:v.A.fromJSON(e.fieldsIndex),this.availableFields=!e.availableFields||1===e.availableFields.length&&"*"===e.availableFields[0]?new Set(this.fieldsIndex.fields.map(e=>e.name)):new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)),this._frameTask=e.scheduler&&e.priority?e.scheduler.registerTask(e.priority):_.nu}destroy(){this._changeHandle=(0,l.xt)(this._changeHandle),this._frameTask=(0,l.xt)(this._frameTask),this._clearCache(),(0,l.pR)(this._cache)}get featureAdapter(){return this.featureStore.featureAdapter}async executeQuery(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryFeatureSet(e),i)}async executeQueryForCount(e={},t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForCount(e),i)}async executeQueryForExtent(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForExtent(e),i)}async executeQueryForIds(e,t){return Array.from(await this.executeQueryForIdSet(e,t))}async executeQueryForIdSet(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForIdSet(e),i)}async executeQueryForLatestObservations(e,t){let i=(0,o.Mq)(t);if(!this.timeInfo?.trackIdField)throw new s.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});return await this._frameTask.scheduleGenerator(()=>this._executeQueryForLatestObservations(e),i)}async executeQueryForOpaqueFeatures(e,t){let i=(0,o.Mq)(t);return(await this._frameTask.scheduleGenerator(()=>this._executeQuery(e,{}),i)).items}async executeAttributeBinsQuery(e,t){let i=(0,o.Mq)(t);return e=(0,a.o8)(e),await this._frameTask.scheduleGenerator(()=>this._executeAttributeBinsQuery(e),i)}async executeQueryForSummaryStatistics(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSummaryStatistics(e,t),r)}async executeQueryForUniqueValues(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForUniqueValues(e,t),r)}async executeQueryForClassBreaks(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForClassBreaks(e,t),r)}async executeQueryForHistogram(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForHistogram(e,t),r)}async executeQueryForSnapping(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSnapping(e,i),i)}async fetchRecomputedExtents(e){let t=(0,o.Mq)(e);this._timeExtentPromise||=(0,D.W)(this.timeInfo,this.featureStore);let[i,r]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,o.Te)(t),{fullExtent:i,timeExtent:r}}_clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async*_executeQueryFeatureSet(e){try{let t=yield*this._executeQuery(e,{});return yield,await t.createQueryResponse()}catch(t){if(t!==b.v8)throw t;return await new M.G([],e,this).createQueryResponse()}}async*_executeQueryForCount(e){try{let t=yield*this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null});return yield,t.createQueryResponseForCount()}catch(e){if(e!==b.v8)throw e;return 0}}async*_executeQueryForExtent(e){let t=e.outSR;try{let i=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;let r=i.size;if(!r)return{count:0,extent:null};let n=await this._getBounds(i.items,i.spatialReference,t??this.spatialReference);return yield,{count:r,extent:n}}catch(e){if(e===b.v8)return{count:0,extent:null};throw e}}async*_executeQueryForIdSet(e){try{let t=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;let i=t.items,r=new Set;for(let e of i)r.add(t.featureAdapter.getObjectId(e));return r}catch(e){if(e===b.v8)return new Set;throw e}}async*_executeQueryForLatestObservations(e){try{let t=yield*this._executeQuery(e,{});return yield,this._filterLatest(t),yield,await t.createQueryResponse()}catch(t){if(t!==b.v8)throw t;return await new M.G([],e,this).createQueryResponse()}}async*_executeAttributeBinsQuery(e){let t;try{e=await(0,b.iJ)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t){let i=e.bin;if(!i.onField&&!i.onExpression?.value||"autoIntervalBin"===i.type&&null==i.parameters.numberOfBins||"dateBin"===i.type&&(null==i.parameters.number||null==i.parameters.unit)||"fixedBoundariesBin"===i.type&&null==i.parameters.boundaries||"fixedIntervalBin"===i.type&&null==i.parameters.interval)throw new s.A(N,"Unsupported query options",{query:e});return V(e,t)}(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let i=yield*this._executeSceneFilterQuery(e);yield,t=yield*this._executeGeometryQuery(e,i),yield,this._executeAggregateIdsQuery(t),yield,this._executeObjectIdsQuery(t),yield,this._executeTimeQuery(t),yield,this._executeAttributesQuery(t),yield}catch(i){if(i!==b.v8)throw i;t=new M.G([],e,this)}return await t.createQueryBinsResponse(e)}async*_executeQueryForSummaryStatistics(e={},t){let{field:i,normalizationField:r,valueExpression:n}=t,s=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:n});return yield,await s.createSummaryStatisticsResponse(t)}async*_executeQueryForUniqueValues(e={},t){let{field:i,field2:r,field3:n,valueExpression:s}=t,a=yield*this._executeQueryForStatistics(e,{field:i,field2:r,field3:n,valueExpression:s});return yield,await a.createUniqueValuesResponse(t)}async*_executeQueryForClassBreaks(e,t){let{field:i,normalizationField:r,valueExpression:n}=t,s=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:n});return yield,await s.createClassBreaksResponse(t)}async*_executeQueryForHistogram(e,t){let{field:i,normalizationField:r,valueExpression:n}=t,s=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:n});return yield,await s.createHistogramResponse(t)}async*_executeQueryForSnapping(e,t){let{point:i,distance:r,returnEdge:n,vertexMode:s}=e;if(!n&&"none"===s)return{candidates:[]};let l=(0,a.o8)(e.query);l=await(0,b.T2)(l,this.definitionExpression,this.spatialReference),yield,l=await V(l,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let o=!(0,x.aI)(i.spatialReference,this.spatialReference);o&&(await(0,I.Nk)(i.spatialReference,this.spatialReference),yield);let u="number"==typeof r?r:r.x,d="number"==typeof r?r:r.y,c={xmin:i.x-u,xmax:i.x+u,ymin:i.y-d,ymax:i.y+d,spatialReference:i.spatialReference},h=o?(0,I.Cv)(c,this.spatialReference):c;if(!h)return{candidates:[]};let[f]=await(0,g.el)((0,y.rS)(i),{signal:t});yield;let[p]=await(0,g.el)((0,y.rS)(h),{signal:t});if(yield,null==f||null==p)return{candidates:[]};let m=await this._searchFeatures(L(p.toJSON()));yield;let _=new M.G(m,l,this);this._executeObjectIdsQuery(_),yield,this._executeTimeQuery(_),yield,this._executeAttributesQuery(_),yield,yield*this._executeGeometryQueryForSnapping(_),yield;let v=f.toJSON(),T=o?(0,I.Cv)(v,this.spatialReference):v,F=o?Math.max(h.xmax-h.xmin,h.ymax-h.ymin)/2:r;return _.createSnappingResponse({...e,point:T,distance:F},l.returnZ,i.spatialReference)}async _getBounds(e,t,i){let r=(0,h.hZ)((0,h.vt)(),h.qv);return await this.featureStore.forEachBounds(e,e=>(0,h.RF)(r,e)),q(r,t,i,this.spatialReference,this.hasZ)}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _getAllFeaturesQueryEngineResult(e){return new M.G(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){let e=[];this._allFeaturesPromise=(async()=>await this.featureStore.forEach(t=>e.push(t)))().then(()=>(0,n.z)(e))}let e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async*_executeQuery(e,t){e=(0,a.o8)(e),e=await(0,b.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await V(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield,e={...e,...t};let i=yield*this._executeSceneFilterQuery(e);yield;let r=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(r),yield,this._executeObjectIdsQuery(r),yield,this._executeTimeQuery(r),yield,this._executeAttributesQuery(r),r}async*_executeSceneFilterQuery(e){if(null==e.sceneFilter)return null;let{outSR:t,returnGeometry:i,returnCentroid:r}=e,n=this.featureStore.featureSpatialReference,s=e.sceneFilter.geometry,a=null==n||(0,x.aI)(n,s.spatialReference)?s:(0,I.Cv)(s,n);if(!a)return null;let l=i||r,o=(0,x.fn)(t)&&!(0,x.aI)(this.spatialReference,t)&&l?async e=>this._project(e,t):e=>e;yield;let u=this.featureAdapter,d=await this._searchFeatures(L(a));if(yield,"disjoint"===e.sceneFilter.spatialRelationship){if(!d.length)return null;let t=new Set;for(let e of d)t.add(u.getObjectId(e));let i=await this._getAllFeatures();yield;let r=await(0,O.xt)("esriSpatialRelDisjoint",a,this.geometryType);yield;let n=yield*this._runSpatialFilter(i,e=>!t.has(u.getObjectId(e))||r(u.getGeometry(e)));return yield,await o(new M.G(n,e,this))}if(!d.length)return new M.G([],e,this);if(this._canExecuteSinglePass(a,e))return await o(new M.G(d,e,this));let c=await(0,O.xt)("esriSpatialRelContains",a,this.geometryType);yield;let h=yield*this._runSpatialFilter(d,e=>c(u.getGeometry(e)));return yield,await o(new M.G(h,e,this))}async*_executeGeometryQuery(e,t){if(null!=t&&0===t.items.length)return t;let{geometry:i,outSR:n,returnGeometry:s,returnCentroid:a}=e,l=t?null:this._getCacheKey(e),o=l?this._cache.get(l):null;if(o)return new M.G(o,e,this);let u=(0,x.fn)(n)&&!(0,x.aI)(this.spatialReference,n),d=s||a,c=async e=>(u&&d&&await this._project(e,n),l&&this._cache.put(l,e.items),e),h=this.featureStore.featureSpatialReference,f=!i||null==h||(0,x.aI)(h,i.spatialReference)?i:(0,I.Cv)(i,h);if(!f)return await c(t??await this._getAllFeaturesQueryEngineResult(e));yield;let p=this.featureAdapter,m=await this._searchFeatures(L(i));yield;let y=e.spatialRel??"esriSpatialRelIntersects";if("esriSpatialRelDisjoint"===y){if(!m.length)return await c(t??await this._getAllFeaturesQueryEngineResult(e));let i,r=new Set;for(let e of m)r.add(p.getObjectId(e));null==t?(yield,i=await this._getAllFeatures(),yield):i=t.items;let n=await(0,O.xt)(y,f,this.geometryType);yield;let s=yield*this._runSpatialFilter(i,e=>!r.has(p.getObjectId(e))||n(p.getGeometry(e)));return yield,await c(new M.G(s,e,this))}if(null!=t){let e=new r.vW;m=m.filter(i=>(0,r.qh)(t.items,i,t.items.length,e)>=0)}if(!m.length){let t=new M.G([],e,this);return l&&this._cache.put(l,t.items),t}if(this._canExecuteSinglePass(f,e))return await c(new M.G(m,e,this));let g=await(0,O.xt)(y,f,this.geometryType);yield;let _=yield*this._runSpatialFilter(m,e=>g(p.getGeometry(e)));return yield,await c(new M.G(_,e,this))}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;let t=new Set;for(let i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach(e=>t.add(e));let i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;let t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeTimeQuery(e){if(0===e.items.length)return;let t=(0,D.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;let t=(0,F.j4)(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async*_executeGeometryQueryForSnapping(e){let{query:t}=e,{spatialRel:i}=t;if(!e?.items?.length||!t.geometry||!i)return;let r=await(0,O.xt)(i,t.geometry,this.geometryType);yield;let n=this.featureAdapter;e.items=yield*this._runSpatialFilter(e.items,e=>r(n.getGeometry(e)))}*_runSpatialFilter(e,t){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let i=yield,r=[];for(let n of e)t(n)&&r.push(n),i.madeProgress(),i.done&&(i=yield);return r}_filterLatest(e){let{trackIdField:t,startTimeField:i,endTimeField:r}=this.timeInfo,n=r||i,s=new Map,a=this.featureAdapter.getAttribute;for(let i of e.items){let e=a(i,t),r=a(i,n),l=s.get(e);(!l||r>a(l,n))&&s.set(e,i)}e.items=Array.from(s.values())}_getCacheKey(e){let{geometry:t,spatialRel:i,returnGeometry:r,returnCentroid:n,outSR:s,resultType:a,cacheHint:l}=e;if("tile"!==a&&!l)return null;let o=r||n,u=(0,x.fn)(s)&&!(0,x.aI)(this.spatialReference,s);return JSON.stringify(u&&o?[t,i,s]:[t,i])}_canExecuteSinglePass(e,t){let{spatialRel:i}=t;return(0,O.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,x.aI)(this.spatialReference,t))return e;let i=this.featureAdapter,r=(0,c.isLoaded)()?await this._getFullExtent():void 0,s=await(0,I.lK)(e.items.map(e=>(0,S.p)(this.geometryType,i.getGeometry(e))),this.spatialReference,t,{areaOfInterestExtent:r});return e.items=(0,n.z)(s.map((t,r)=>i.cloneWithGeometry(e.items[r],(0,T.Ux)(t,this.hasZ,this.hasM),this.geometryType))),e}async _searchFeatures(e){let t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));let i=Array.from(t.values());return t.clear(),i}async*_executeQueryForStatistics(e,t){e=(0,a.o8)(e);try{e=await(0,b.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t,{fieldsIndex:i,geometryType:r,spatialReference:n,availableFields:a}){if(null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new s.A(N,"Unsupported query options",{query:e});return z(i,a,e),Promise.all([G(i,a,t,e),(0,O.c0)(e,r,n),(0,I.Nk)(n,e.outSR)]).then(()=>e)}(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let i=yield*this._executeSceneFilterQuery(e);yield;let r=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(r),yield,this._executeObjectIdsQuery(r),yield,this._executeTimeQuery(r),yield,this._executeAttributesQuery(r),yield,r}catch(t){if(t!==b.v8)throw t;return new M.G([],e,this)}}get test(){}}function L(e){if((0,O.tC)(e)){if((0,m.ZC)(e))return[(0,f.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.Bi)(e))return e.rings.map(e=>(0,f.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,p.Rg)((0,f.vt)(),e)]}function q(e,t,i,r,n){let s={xmin:e[0],ymin:e[1],xmax:e[3],ymax:e[4],spatialReference:r};n&&isFinite(e[2])&&isFinite(e[5])&&(s.zmin=e[2],s.zmax=e[5],s.hasZ=!0);let a=(0,I.Cv)(s,t,i);if(a.spatialReference=i,a.xmax-a.xmin===0){let e=(0,d.GA)(a.spatialReference);a.xmin-=e,a.xmax+=e}if(a.ymax-a.ymin===0){let e=(0,d.GA)(a.spatialReference);a.ymin-=e,a.ymax+=e}if(n&&null!=a.zmin&&null!=a.zmax&&a.zmax-a.zmin===0){let e=(0,d.GA)(a.spatialReference);a.zmin-=e,a.zmax+=e}return a}},99352(e,t,i){i.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},8384(e,t,i){i.d(t,{G:()=>O});var r=i(34747),n=i(4576),s=i(18370),a=i(4718),l=i(16930),o=i(12359),u=i(46329),d=i(52006),c=i(90634),h=i(62577),f=i(21325),p=i(5834),m=i(59977),y=i(57231),g=i(11440),x=i(60909),_=i(1873),v=(i(98623),i(30524)),T=i(88930),F=i(43668),S=i(29441),I=i(51441);class w{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;let r=e.outFields;if(r&&!r.includes("*")){this.outFields=r;let e=0;for(let t of r){let r=(0,S.Wq)(t),n=this.fieldsIndex.get(r),s=n?null:(0,S.j4)(r,i),a=n?n.name:(0,S.SY)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:s})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){let t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){if(i)return this.featureAdapter.getAttribute(e,i.name);let r=t,n=null;return this._fieldDataCache.has(r)?n=this._fieldDataCache.get(r)?.clause:i||(n=(0,S.j4)(t,this.fieldsIndex),this._fieldDataCache.set(r,{alias:r,clause:n})),n?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,i=!0){let r=t.normalizationType,n=t.normalizationTotal,s=this.fieldsIndex.get(t.field),a=(0,v.zD)(s)||(0,v.Ah)(s),l=(0,v.OH)(s);return e.map(e=>{let s=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(s=`${(0,_.gJ)(s)}${t.fieldDelimiter}${(0,_.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(s=`${s}${t.fieldDelimiter}${(0,_.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof s&&i&&(a?s=s?new Date(s).getTime():null:l&&(s=s?(0,T.rb)(s):null)),r&&Number.isFinite(s)){let i="field"===r&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;s=(0,_.zS)(s,r,i,n)}return s})}async getExpressionValues(e,t,i,r,n){let{arcadeUtils:s}=await(0,F.l)(),a=s.hasGeometryOperations(t);a&&await s.enableGeometryOperations();let l=s.createFunction(t),o=s.getViewInfo(i),u={fields:this.fieldsIndex.fields};return e.map(e=>{let t={attributes:this.featureAdapter.getAttributes(e),layer:u,geometry:a?{...(0,I.p)(r.geometryType,this.featureAdapter.getGeometry(e)),spatialReference:i.spatialReference}:null},d=s.createExecContext(t,o,n);return s.executeFunction(l,d)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,S.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,S.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){let t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);let i={};for(let r of t){let{alias:t,clause:n}=this._fieldDataCache.get(r);i[t]=n?n.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;let t=this.outFields,i=[];if(t)for(let r of t){let{alias:t}=this._fieldDataCache.get(r);i.push(e[t])}else for(let t in e)i.push(e[t]);let r=`${(t||["*"]).join(",")}=${i.join(",")}`,n=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++n),n>1?null:e}}var R=i(31464),E=i(58727);class A{constructor(e,t,i){this.objectId=e,this.target=t,this.distance=i}}class M extends A{constructor(e,t,i){super(e,t,i),this.type="vertex"}}class b extends A{constructor(e,t,i,r,n,s=!1,a=null){super(e,t,i),this.start=r,this.end=n,this.draped=s,this.curve=a,this.type="edge"}}const C=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666)));class O{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasZ=!!t.returnZ&&i.hasZ,this.hasM=!!t.returnM&&i.hasM,this.fieldsIndex=i.fieldsIndex,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter,this.featureIdInfo=i.featureIdInfo}get size(){return this.items.length}createQueryResponseForCount(){let e=new w(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);let{groupByFieldsForStatistics:t,having:i,outStatistics:r}=this.query;if(!t?.length)return 1;let n=new Map,s=new Map,a=new Set;for(let l of r){let{statisticType:r}=l,o="exceedslimit"===r?void 0:l.onStatisticField;if(!s.has(o)){let i=[];for(let r of t){let t=this._getAttributeValues(e,r,this.items,n);i.push(t)}s.set(o,this._calculateUniqueValues(i,this.items,e.returnDistinctValues))}let u=s.get(o);for(let t in u){let{data:r,items:n}=u[t],s=r.join(",");(!i||e.validateItems(n,i))&&a.add(s)}}return a.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse():await this._createStatisticsQueryResponse(this.query,this.items):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){let t=this.query.geometry;e.queryGeometry={spatialReference:this.query.outSR,...(0,f.fn)(this.query.outSR)&&!(0,f.aI)(t.spatialReference,this.query.outSR)?(0,R.Cv)(t,t.spatialReference,this.query.outSR):t}}return e}createSnappingResponse(e,t,i){let r=this.featureAdapter,{point:n}=e,s="number"==typeof e.distance?e.distance:e.distance.x,a="number"==typeof e.distance?e.distance:e.distance.y;function l(e,t){let i=(e-n.x)/s,r=(t-n.y)/a;return i*i+r*r}let o={candidates:[]},c="esriGeometryPolygon"===this.geometryType,h="esriGeometryPolyline"===this.geometryType||"esriGeometryPoint"===this.geometryType,f=this._getPointCreator(t,this.spatialReference,i),p=new z(null,0),m=new z(null,0),y={x:0,y:0,z:0};for(let e of this.items){let t=r.getObjectId(e),i=r.getGeometryWithCurves?.(e);if(null!=i){x(i,t);continue}let n=r.getGeometry(e);null!=n&&g(n,t)}return o.candidates.sort((e,t)=>e.distance-t.distance),o;function g(t,i){let{coords:r,stride:s}=t,a=t.isPoint?P:t.lengths;if(p.coords=r,m.coords=r,e.returnEdge){let e=0;for(let t=0;t<a.length;t++){let r=a[t],u=e;for(let t=0;t<r;t++,e+=s){if(!c&&t===r-1||(p.coordsIndex=e,m.coordsIndex=t===r-1?u:e+s,!V(y,n,p,m)))continue;let a=l(y.x,y.y);a<=1&&o.candidates.push(new b(i,f(y),Math.sqrt(a),f(p),f(m)))}}}if("all"===e.vertexMode){let e=0;for(let t=0;t<a.length;t++){let r=a[t],n=e,u=m;u.coordsIndex=n;for(let t=0;t<r;t++,e+=s){if(p.coordsIndex=e,c&&t===r-1&&p.x===u.x&&p.y===u.y)continue;let n=l(p.x,p.y);n<=1&&o.candidates.push(new M(i,f(p),Math.sqrt(n)))}}}else if(h&&"ends"===e.vertexMode){let e=0,t=[];for(let i=0;i<a.length;i++){t.push(e);let r=a[i];e+=r*s,r>1&&t.push(e-s)}for(let e of t){p.coordsIndex=e;let t=l(p.x,p.y);t<=1&&o.candidates.push(new M(i,f(p),Math.sqrt(t)))}}}function x(t,i){let{candidates:r}=o,s={x:0,y:0,z:0};if(e.returnEdge){let e=[n.x,n.y],a=new z(e,0),o=new z(e,0);for(let{segments:n}of t.parts)for(let{start:t,curve:c}of n){let{curvePoint:n}=(0,u.y)(t,c,e),h=l(...n);if(h>1)continue;[s.x,s.y]=n,a.coords=t,o.coords=(0,d.yP)(c);let p=(0,d.Xq)(c)?null:(0,d.tk)(c);r.push(new b(i,f(s),Math.sqrt(h),f(a),f(o),!1,p))}}function a(e){s.x=t.vertexXY[2*e],s.y=t.vertexXY[2*e+1];let n=l(s.x,s.y);n>1||(s.z=t.vertexZ?.[e]??0,r.push(new M(i,f(s),Math.sqrt(n))))}if("all"===e.vertexMode){let{vertexCount:e}=t;for(let t=0;t<e;++t)a(t)}else if("ends"===e.vertexMode)switch(t.type){case"point":a(0);break;case"polyline":for(let e=0;e<t.partCount;++e){let i=t.partOffsets[e],r=t.partOffsets[e+1]-1;a(i),r!==i&&a(r)}}}}_getPointCreator(e,t,i){let r=null==i||(0,f.aI)(t,i)?e=>e:e=>(0,R.Cv)(e,t,i),{hasZ:n}=this;return n&&e?({x:e,y:t,z:i})=>r({x:e,y:t,z:i}):({x:e,y:t})=>r({x:e,y:t,z:0})}async createSummaryStatisticsResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:n,normalizationTotal:s,minValue:a,maxValue:l,scale:o,timeZone:u,outStatisticTypes:d}=e,c=this.fieldsIndex.get(t),h=(0,v.vE)(c)||(0,v.zD)(c)||(0,v.Ah)(c),f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:n,normalizationTotal:s,scale:o,timeZone:u},this.items),p=(0,_.Vb)({normalizationType:n,normalizationField:r,minValue:a,maxValue:l}),m={value:.5,fieldType:c?.type},y=(0,v.yM)(c)?(0,_.z9)({values:f,supportsNullCount:p,percentileParams:m,outStatisticTypes:d}):(0,_.G_)({values:f,minValue:a,maxValue:l,useSampleStdDev:!n,supportsNullCount:p,percentileParams:m,outStatisticTypes:d});return(0,_.oZ)(y,d,h)}async createUniqueValuesResponse(e){let{field:t,valueExpression:i,domains:r,returnAllCodedValues:n,scale:s,timeZone:a}=e,l=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:s,timeZone:a},this.items,!1),o=(0,_.b3)(l);return(0,_.lv)(o,r,n,e.fieldDelimiter)}async createClassBreaksResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:n,normalizationTotal:s,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:d,scale:c,timeZone:h}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:n,normalizationTotal:s,scale:c,timeZone:h},this.items),p=(0,_.Rw)(f,{field:t,normalizationField:r,normalizationType:n,normalizationTotal:s,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:d});return(0,_.jM)(p,a)}async createHistogramResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:n,normalizationTotal:s,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:d,scale:c,timeZone:h}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:n,normalizationTotal:s,scale:c,timeZone:h},this.items);return(0,_.$y)(f,{field:t,normalizationField:r,normalizationType:n,normalizationTotal:s,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:d})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(let r of t.slice().reverse()){let{compare:t,fieldOrExpression:n,fieldInfo:s}=G(r,this.fieldsIndex);e.sort((e,r)=>t(i(e,n,s),i(r,n,s)))}}_topNFeatures(e,t,i,r){if(e.length>1&&t?.length){let s=t.map(e=>{let{compare:t,fieldOrExpression:i,fieldInfo:n}=G(e,this.fieldsIndex);return(e,s)=>t(r(e,i,n),r(s,i,n))}).reduceRight((e,t)=>(i,r)=>{let n=t(i,r);return 0===n||Number.isNaN(n)?e(i,r):n}),a=[];for(let t of e)(0,n.HX)(a,t,i,s);return a}return e.slice(0,i)}_createFeatureQueryResponse(e){let{items:t,geometryType:i,hasM:r,hasZ:n,featureIdInfo:s,spatialReference:a}=this,{outFields:l,outSR:o,quantizationParameters:u,resultRecordCount:d,resultOffset:c,returnZ:f,returnM:p}=e,m=null!=d&&t.length>(c||0)+d,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:m,features:this._createFeatures(e,t),fields:y,geometryType:i,hasM:r&&p,hasZ:n&&f,objectIdFieldName:"object-id"===s.type?s.fieldName:null,spatialReference:o||a,transform:u&&(0,h.VV)(u)||null}}_createFeatures(e,t){let i,r=new w(e,this.featureAdapter,this.fieldsIndex),{hasM:n,hasZ:s}=this,{orderByFields:a,quantizationParameters:l,returnGeometry:o,returnCentroid:u,maxAllowableOffset:d,resultOffset:c,resultRecordCount:f,returnZ:p=!1,returnM:m=!1}=e,y=s&&p,g=n&&m,x=c||0,_=null==f?null:x+f;null!=_&&_<=5e3&&_<t.length?i=this._topNFeatures(t,a,_,(e,t,i)=>r.getFieldValue(e,t,i)):(i=[...t],this._sortFeatures(i,a,(e,t,i)=>r.getFieldValue(e,t,i))),(x>0||null!=_)&&(i=i.slice(x,_??void 0));let v=[],T=0;if(this.geometryType&&(o||u)){let e=(0,h.VV)(l)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(o&&!u)for(let n of i){let i=this.featureAdapter.getGeometry(n),s=this._addFeatureJSONMetadata(n,{attributes:r.getAttributes(n),geometry:(0,I.p)(this.geometryType,i,d,e,y,g)});t&&i&&!s.geometry&&(s.centroid=(0,I.L)(this,this.featureAdapter.getCentroid(n,this),e)),v[T++]=s}else if(!o&&u)for(let t of i)v[T++]=this._addFeatureJSONMetadata(t,{attributes:r.getAttributes(t),centroid:(0,I.L)(this,this.featureAdapter.getCentroid(t,this),e)});else for(let t of i)v[T++]=this._addFeatureJSONMetadata(t,{attributes:r.getAttributes(t),centroid:(0,I.L)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,I.p)(this.geometryType,this.featureAdapter.getGeometry(t),d,e,y,g)})}else for(let e of i){let t=r.getAttributes(e);t&&(v[T++]=this._addFeatureJSONMetadata(e,{attributes:t}))}return v}_addFeatureJSONMetadata(e,t){let i=this.featureAdapter.getMetadata?.(e);return void 0!==i&&(t.metadata=i),t}_createExceedsLimitQueryResponse(){let e=!1,t=1/0,i=1/0,r=1/0;for(let e of this.query.outStatistics??[])if("exceedslimit"===e.statisticType){t=null==e.maxPointCount?1/0:e.maxPointCount,i=null==e.maxRecordCount?1/0:e.maxRecordCount,r=null==e.maxVertexCount?1/0:e.maxVertexCount;break}return e="esriGeometryPoint"===this.geometryType?this.items.length>t:this.items.length>i||this.items.reduce((e,t)=>e+(this.featureAdapter.getGeometry(t)?.size??0),0)>r,{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(e)}}]}}async _createStatisticsQueryResponse(e,t,i={attributes:{}}){let r=[],n=new Map,s=new Map,a=new Map,l=new Map,o=new w(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:d,having:c,orderByFields:h,resultRecordCount:f}=e,p=d?.length,m=!!p,y=m?d[0]:null,g=m&&!this.fieldsIndex.get(y);for(let h of u??[]){let{outStatisticFieldName:u,statisticType:f}=h,x=h,_="exceedslimit"===f?void 0:h.onStatisticField,T="percentile_disc"===f||"percentile_cont"===f,F="EnvelopeAggregate"===f||"CentroidAggregate"===f||"ConvexHullAggregate"===f,S=m&&1===p&&(_===y||g)&&"count"===f;if(m){if(!a.has(_)){let e=[];for(let i of d){let r=this._getAttributeValues(o,i,t,n);e.push(r)}a.set(_,this._calculateUniqueValues(e,t,!F&&o.returnDistinctValues))}let i=a.get(_);if(!i)continue;let r=Object.keys(i);for(let s of r){let{count:r,data:a,items:h,itemPositions:f}=i[s],p=a.join(",");if(!c||o.validateItems(h,c)){let i=l.get(p)||{attributes:{}};if(e.returnAggIds&&(i.aggregateIds=h.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),F){i.aggregateGeometries||={};let{aggregateGeometries:e,outStatisticFieldName:t}=await this._getAggregateGeometry(x,h);i.aggregateGeometries[t]=e}else{let e=null;if(S)e=r;else{let i=this._getAttributeValues(o,_,t,n),r=f.map(e=>i[e]);e=T&&"statisticParameters"in x?this._getPercentileValue(x,r):this._getStatisticValue(x,r,null,o.returnDistinctValues)}i.attributes[u]=e}let s=0;d.forEach((e,t)=>i.attributes[this.fieldsIndex.get(e)?e:"EXPR_"+ ++s]=a[t]),l.set(p,i)}}}else if(F){i.aggregateGeometries||={};let{aggregateGeometries:e,outStatisticFieldName:r}=await this._getAggregateGeometry(x,t);i.aggregateGeometries[r]=e}else{let e=this._getAttributeValues(o,_,t,n);i.attributes[u]=T&&"statisticParameters"in x?this._getPercentileValue(x,e):this._getStatisticValue(x,e,s,o.returnDistinctValues)}let I="min"!==f&&"max"!==f||!(0,v.yM)(this.fieldsIndex.get(_))&&!this._isAnyDateField(_)?null:this.fieldsIndex.get(_)?.type;r.push({name:u,alias:u,type:I||"esriFieldTypeDouble"})}let x=m?Array.from(l.values()):[i];return this._sortFeatures(x,h,(e,t)=>e.attributes[t]),f&&(x.length=Math.min(f,x.length)),{fields:r,features:x}}_isAnyDateField(e){let t=this.fieldsIndex.get(e);return(0,v.vE)(t)||(0,v.zD)(t)||(0,v.Ah)(t)||(0,v.OH)(t)}async _getAggregateGeometry(e,t){let{statisticType:i,outStatisticFieldName:r}=e,{featureAdapter:n,spatialReference:s,geometryType:a}=this,l=t.map(e=>(0,I.p)(a,n.getGeometry(e))),u={aggregateGeometries:null,outStatisticFieldName:null},{convexHullExecuteMany:d}=await C.getImportPromise(),[h]=d(l,{merge:!0});if(h&&h.rings[0].length<=3&&(h=null),"EnvelopeAggregate"===i)u.aggregateGeometries={...h?(0,c.v)(h):N(l),spatialReference:s},u.outStatisticFieldName=r||"extent";else if("CentroidAggregate"===i){let[e,t]=h?(0,o.l8)(h):(0,o.Z4)(N(l));u.aggregateGeometries={x:e,y:t,spatialReference:s},u.outStatisticFieldName=r||"centroid"}else"ConvexHullAggregate"===i&&(u.aggregateGeometries=h&&{...h,spatialReference:s},u.outStatisticFieldName=r||"convexHull");return u}_getStatisticValue(e,t,i,r){let{onStatisticField:n,statisticType:s}=e,a=null;return a=i?.has(n)?i.get(n):(0,v.yM)(this.fieldsIndex.get(n))||this._isAnyDateField(n)?(0,_.z9)({values:t,returnDistinct:r}):(0,_.G_)({values:r?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(n,a),a["var"===s?"variance":s]}_getPercentileValue(e,t){let{onStatisticField:i,statisticParameters:r,statisticType:n}=e,{value:s,orderBy:a}=r,l={value:s,orderBy:a,fieldType:this.fieldsIndex.get(i)?.type,isDiscrete:"percentile_disc"===n};return(0,_.qg)(t,l)}_getAttributeValues(e,t,i,r){if(r.has(t))return r.get(t);let n=this.fieldsIndex.get(t),s=i.map(i=>e.getFieldValue(i,t,n));return r.set(t,s),s}_calculateUniqueValues(e,t,i){let r={},n=t.length;for(let s=0;s<n;s++){let n=t[s],a=Array.from(e,e=>e[s]),l=a.join(",");null==r[l]?r[l]={count:1,data:a,items:[n],itemPositions:[s]}:(i||r[l].count++,r[l].items.push(n),r[l].itemPositions.push(s))}return r}async _getDataValues(e,t,i=!0){let r=new w(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:n,scale:s,timeZone:o}=e,u=l.A.fromJSON(this.query.outSR||this.spatialReference);return n?r.getExpressionValues(t,n,{viewingMode:"map",scale:s,spatialReference:u},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},o):r.getDataValues(t,(0,a.o8)(e),i)}_calculateHistogramBins(e,t,i){if(null==t.min&&null==t.max)return[];let r=t.intervals,n=t.min??0,s=t.max??0,a=r.map(([e,t])=>({minValue:e,maxValue:t,count:0,items:[]}));for(let t=0;t<e.length;t++){let l=e[t],o=i[t];if(null!=l&&l>=n&&l<=s){let e=(0,_.Ak)(r,l);e>-1&&(a[e].count++,a[e].items.push(o))}}return a}async createQueryBinsResponse(e){let t=e.bin?.splitBy;if(!t)return this._createBinsResponse(e);let{value:i,outAlias:r,valueType:n}=t,s=[],a=[{name:r??i,alias:r??i,type:n??"esriFieldTypeString"},{name:"bin",alias:"bin",type:"esriFieldTypeInteger"}],l=new w(e,this.featureAdapter,this.fieldsIndex),o=new Map,u=[...this.items];this._sortFeatures(u,[i],(e,t,i)=>l.getFieldValue(e,t,i));let d=this._getAttributeValues(l,i,u,o),c=this._calculateUniqueValues([d],u,l.returnDistinctValues);for(let t in c){let{items:n}=c[t],l=await this._createBinsResponse(e,n);if(s.push(...l.features.map(e=>({...e,attributes:{...e.attributes,[r??i]:t}}))),l.fields)for(let e of l.fields)a.some(t=>t.name===e.name)||a.push(e)}return{fields:a,features:s}}async _createBinsResponse(e,t){let i=e.bin;switch(t??=this.items,i.type){case"autoIntervalBin":return this._createAutoIntervalBinsResponse(p.A.fromJSON(i),e,t);case"dateBin":return this._createDateBinsResponse(m.A.fromJSON(i),e,t);case"fixedBoundariesBin":return this._createFixedBoundariesBinsResponse(g.A.fromJSON(i),e,t);case"fixedIntervalBin":return this._createFixedIntervalBinsResponse(x.A.fromJSON(i),e,t)}}async _createAutoIntervalBinsResponse(e,t,i){let{field:r,normalizationField:n,numBins:s,normalizationType:a,normalizationTotal:l,start:o,end:u}=e,d=await this._getDataValues({field:e.field||e.expression,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),c=(0,_.sU)(d,{field:r,normalizationField:n,normalizationType:a,normalizationTotal:l,numBins:s,minValue:(0,E.dO)(a?e.normalizationMinValue:o,!1),maxValue:(0,E.dO)(a?e.normalizationMaxValue:u,!1)}),h=this._calculateHistogramBins(d,c,i);return this._createFeaturesFromHistogramBins(h,t)}async _createDateBinsResponse(e,t,i){let{field:n,interval:s,start:a,end:l,snapToData:o,returnFullIntervalBin:u,offset:d,firstDayOfWeek:c}=e,h=s.unit,f=await this._getDataValues({field:n||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),p=(0,v.OH)(this.fieldsIndex.get(n)),m=y.g.toJSON(h),g=f.filter(Boolean).sort((e,t)=>e-t),x=null==a?g[0]:(0,E.dO)(a,p),_=null==l?g[g.length-1]:(0,E.dO)(l,p),T=[];if(null!=x&&null!=_){let e={zone:t.outTimeReference?.ianaTimeZone??"UTC"},i={[d?.unit?y.g.toJSON(d.unit):"milliseconds"]:d?.value||0},n=r.c9.fromMillis(x,e).minus(i),a=r.c9.fromMillis(_,e).minus(i),l="number"==typeof c&&c>=1&&c<=7?c:7,h=(e,t)=>{let i=(e.weekday-t+7)%7;return e.minus({days:i}).startOf("day")},f=(e,t)=>h(e,t).plus({days:7});if("last"===o){let e="week"===m?f(a,l):a;for(;e>n;){let t=e.minus({[m]:s.value});if(t<n){T.unshift([u?t.plus(i).toMillis():n.plus(i).toMillis(),e.plus(i).toMillis()]);break}T.unshift([t.plus(i).toMillis(),e.plus(i).toMillis()]),e=t}}else{let e="first"===o?n:"week"===m?h(n,l):n.startOf(m);for(;e<=a;){let t=e.plus({[m]:s.value});if(t>a){T.push([e.plus(i).toMillis(),u?t.plus(i).toMillis():a.plus(i).toMillis()]);break}T.push([e.plus(i).toMillis(),t.plus(i).toMillis()]),e=t}}}let F=this._calculateHistogramBins(f,{intervals:T,min:x,max:_},i);return this._createFeaturesFromHistogramBins(F,t)}async _createFixedBoundariesBinsResponse(e,t,i){let{field:r}=e,n=await this._getDataValues({field:r||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),s=(0,v.OH)(this.fieldsIndex.get(r)),a=e.boundaries.map(e=>(0,E.dO)(e,s)).sort((e,t)=>e-t),l=[];for(let e=0;e<a.length-1;e++)l.push([a[e],a[e+1]]);let o={intervals:l,min:a.at(0),max:a.at(-1)},u=this._calculateHistogramBins(n,o,i);return this._createFeaturesFromHistogramBins(u,t)}async _createFixedIntervalBinsResponse(e,t,i){let{field:r,interval:n,normalizationType:s,start:a,end:l}=e,o=await this._getDataValues({field:r||e.expression,normalizationField:e.normalizationField,normalizationType:s,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),u=(0,v.OH)(this.fieldsIndex.get(r)),d=(0,_.sU)(o,{field:r,classificationMethod:"defined-interval",definedInterval:n,minValue:(0,E.dO)(s?e.normalizationMinValue:a,u),maxValue:(0,E.dO)(s?e.normalizationMaxValue:l,u)},!0),c=this._calculateHistogramBins(o,d,i);return this._createFeaturesFromHistogramBins(c,t)}async _createFeaturesFromHistogramBins(e,t){let{upperBoundaryAlias:i,lowerBoundaryAlias:n}=t,s=n||"lowerBoundary",a=i||"upperBoundary",l=[],o=[{name:s,alias:s,type:"esriFieldTypeDouble"},{name:a,alias:a,type:"esriFieldTypeDouble"}],u=t.bin?.stackBy?.value,d=t.bin?.stackBy?.outAlias;u&&o.push({name:"bin",alias:"bin",type:"esriFieldTypeInteger"},{name:d??u,alias:d??u,type:"esriFieldTypeString"});let c=0,h="dateBin"===t.bin.type,f=t.outTimeReference?.ianaTimeZone;for(let i of e){let e,{minValue:n,maxValue:p,items:m}=i,y={attributes:{}};if(y.attributes[s]=h&&f&&null!=n?r.c9.fromMillis(n,{zone:f}).toISO():n,t.bin.hideUpperBound||(y.attributes[a]=h&&f&&null!=p?r.c9.fromMillis(p,{zone:f}).toISO():p),t.returnAggIds&&(y.aggregateIds=m.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),u?(e=await this._createStatisticsQueryResponse({...t,groupByFieldsForStatistics:[u],orderByFields:[u]},m),y.attributes.bin=++c,"flat"===t.bin.jsonStyle?l.push(...e.features.map(({attributes:{EXPR_1:e,...t},...i})=>({...i,attributes:d??e?{...t,[d??e]:e,...y.attributes}:{...t,...y.attributes}}))):(y.stackedAttributes=e.features.map(({attributes:{EXPR_1:e,...t}})=>d??e?{...t,[d??e]:e}:t),l.push(y))):(t.bin?.splitBy&&(y.attributes.bin=++c),e=await this._createStatisticsQueryResponse(t,m,y),l.push(y)),e.fields)for(let t of e.fields)o.some(e=>e.name===t.name)||o.push(t)}return"desc"===t.binOrder&&l.reverse(),{fields:o,features:l}}}function N(e){let t=(0,c.HA)(e[0]);for(let i of e.slice(1))(0,c.JM)(t,(0,c.HA)(i));return t}function V(e,t,i,r){let n=r.x-i.x,s=r.y-i.y,a=t.x-i.x,l=t.y-i.y,o=n*n+s*s;if(0===o)return!1;let u=a*n+l*s,d=Math.min(1,Math.max(0,u/o));return e.x=i.x+n*d,e.y=i.y+s*d,!0}class z{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}const P=[1];function G(e,t){let i=e.split(" "),r=i[0],n=t.get(r),s=!!i[1]&&"desc"===i[1].toLowerCase();return{compare:(0,_.FM)(n?.type,s,"case-insensitive"),fieldOrExpression:r,fieldInfo:n}}},29441(e,t,i){i.d(t,{MG:()=>_,SN:()=>f,SY:()=>g,VW:()=>d,Wq:()=>y,_d:()=>F,eD:()=>p,g9:()=>x,j4:()=>m});var r=i(49186),n=i(44123),s=i(98453);const a=new n.WhereClauseCache(50,500),l="unsupported-query",o=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),d=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),c=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...u,...d]);function h(e,t,i={}){let n=m(t,e);if(!n){let i=a.getError(t,e);throw new r.A(l,"invalid SQL expression",{expression:t,error:i})}let s=i.expressionName||"expression";if(i.validateStandardized&&!n.isStandardized)throw new r.A(l,`${s} is not standard`,{expression:t});if(i.validateAggregate&&!n.isAggregate)throw new r.A(l,`${s} does not contain a valid aggregate function`,{expression:t});return n.fieldNames}function f(e,t,i,r){if(!i)return!0;let n="where clause";return _(e,t,h(e,i,{validateStandardized:!0,expressionName:n}),{expressionName:n,query:r}),!0}function p(e,t,i,n,s){if(!i)return!0;let a="having clause";if(_(e,t,h(e,i,{validateAggregate:!0,expressionName:a}),{expressionName:a,query:s}),!m(i,e)?.getExpressions().every(t=>{let{aggregateType:i,field:r}=t,s=e.get(r)?.name;return n.some(t=>{let{onStatisticField:r,statisticType:n}=t;return e.get(r)?.name===s&&n.toLowerCase().trim()===i})}))throw new r.A(l,"expressions in having clause should also exist in outStatistics",{having:i});return!0}function m(e,t){return e?a.get(e,t):null}function y(e){return/\((.*?)\)/.test(e)?e:e.split(o)[0]}function g(e){return e.split(o)[1]}function x(e,t,i){if(!F(t))return[];let r=new Set,n=t=>{if(t&&"*"!==t)for(let i of v(e,t))r.add(i)};for(let e of t)n(e.onStatisticField);for(let e of i??[])n(e);return Array.from(r)}function _(e,t,i,n={}){let s=new Map;if(function(e,t,i,r,n){let s=n.includes("*")?[...i,...n.filter(e=>"*"!==e)]:n;for(let n of s)if(t.get(n))T(e,t,i,r,n);else try{for(let s of v(t,n))T(e,t,i,r,s)}catch(t){e.set(n,{type:"expression-error",expression:n,error:t})}}(s,e,t,n.allowedFieldTypes??c,i),s.size){let e=`${n.expressionName??"expression"} contains invalid or missing fields`;throw new r.A(l,e,{errors:Array.from(s.values()),query:n.query})}}function v(e,t){let i=e.get(t);return i?[i.name]:h(e,y(t),{validateStandardized:!0})}function T(e,t,i,r,n){let a=t.get(n);a?i.has(a.name)?"all"!==r&&!1===r?.has(a.type)&&e.set(n,{type:"invalid-type",fieldName:a.name,fieldType:s.m.fromJSON(a.type),allowedFieldTypes:Array.from(r,e=>s.m.fromJSON(e))}):e.set(n,{type:"missing-field",fieldName:a.name}):e.set(n,{type:"invalid-field",fieldName:n})}function F(e){return null!=e&&e.every(e=>"exceedslimit"!==e.statisticType)}i.d(t,["vl",0,u])},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>n})},51441(e,t,i){i.d(t,{L:()=>n,p:()=>s});var r=i(90708);function n(e,t,i,n=e.hasZ,s=e.hasM){if(null==t)return null;let a=e.hasZ&&n,l=e.hasM&&s;if(i){let e=(0,r.Nl)(t,"esriGeometryPoint",i,n,s);return(0,r.DF)(e,a,l)}return(0,r.DF)(t,a,l)}function s(e,t,i,n,s,a){if(null==t)return null;let l="coords"in t?t:t.geometry;if(null==l)return null;let{hasZ:o,hasM:u}=l,d=o&&(s??=o),c=u&&(a??=u);if(i){let t=(0,r.kz)(l,e,i,s,a);return n&&(t=(0,r.Nl)(t,e,n)),(0,r.zv)(t,e,d,c)}if(n){let t=(0,r.Nl)(l,e,n,s,a);return(0,r.zv)(t,e,d,c)}return(0,r.zv)(l,e,d,c)}},31464(e,t,i){i.d(t,{Cv:()=>f,Nk:()=>h,lK:()=>m});var r=i(4576),n=i(99917),s=i(60408),a=i(21325),l=i(28735);const o=[0,0];function u(e,t){let i=(0,a.K8)(e)?l.je:l.tD;if((0,s.fT)(t)){let e={x:0,y:0};return[e.x,e.y]=i(t.x,t.y,o),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){let e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=i(t.xmin,t.ymin,o),[e.xmax,e.ymax]=i(t.xmax,t.ymax,o),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:d(t.rings,i),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:d(t.paths,i),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:c(t.points,i),hasM:t.hasM,hasZ:t.hasZ};throw Error()}function d(e,t){return Array.from(e,e=>c(e,t))}function c(e,t){let i=[];for(let r of e){let e=t(r[0],r[1],[0,0]);i.push(e),r.length>2&&e.push(r[2]),r.length>3&&e.push(r[3])}return i}async function h(e,t){if(!e||!t)return;let i=Array.isArray(e)?e.map(e=>null==e.geometry?null:e.geometry.spatialReference).filter(r.Ru):[e];await(0,n.initializeProjection)(i.map(e=>({source:e,dest:t})))}function f(e,t,i,r){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,a.fn)(t)||!(0,a.fn)(i)||(0,a.aI)(t,i))return e;if((0,l.y7)(t,i)){let t=u(i,e);return t.spatialReference=i,t}let[s]=(0,n.projectMany)([e],t,i,r);return s}const p=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,r){if(!e?.length||!t||!i||(0,a.aI)(t,i))return e;let n={geometries:e,inSpatialReference:t,outSpatialReference:i,options:r,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;let e=this._jobs.shift();if(!e)return;let t,{geometries:i,inSpatialReference:r,outSpatialReference:s,resolve:a,options:o}=e,d=i.filter(e=>null!=e);t=(0,l.y7)(r,s)&&null==o?.extendedParams?d.map(e=>u(s,e)):(0,n.projectMany)(d,r,s,o);let c=0,h=i.map(e=>null==e?null:t[c++]);a.resolve(h),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(e,t,i,r){return p.push(e,t,i,r)}},58727(e,t,i){i.d(t,{GC:()=>g,T2:()=>x,VY:()=>p,dO:()=>v,iJ:()=>y});var r=i(49186),n=i(66552),s=i(86211),a=i(39829),l=i(99917),o=i(90634),u=i(60408),d=i(65864),c=i(52039),h=i(21325),f=i(31464);const p=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function y(e,t,i){let r=e.bin;return r.onField&&=r.onField.trim(),r.onExpression?.value&&(r.onExpression.value=r.onExpression.value.trim()),r.splitBy&&(r.splitBy.value&&(r.splitBy.value=r.splitBy.value.trim()),r.splitBy.outAlias&&(r.splitBy.outAlias=r.splitBy.outAlias.trim())),r.stackBy&&(r.stackBy.value&&(r.stackBy.value=r.stackBy.value.trim()),r.stackBy.outAlias&&(r.stackBy.outAlias=r.stackBy.outAlias.trim())),"normalizationField"in r.parameters&&r.parameters.normalizationField&&(r.parameters.normalizationField=r.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),g(e,t,i)}async function g(e,t,i){let{outFields:r,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:a}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),x(e,t,i)}async function x(e,t,i){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let n=await _(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){let{spatialReference:t}=e.geometry;n=(0,o.HA)(n),n.spatialReference=t}if(!n)return e;await(0,f.Nk)(n.spatialReference,i);let[s]=await(0,c.el)((0,d.rS)(n));if(null==s)throw m;let p=!1;((0,u.ZC)(s)||(0,u.Bi)(s)||(0,u.Rg)(s))&&(p=!(0,h.aI)(s.spatialReference,i)&&!(0,l.canProjectWithoutEngine)(s.spatialReference,i)),p&&(0,u.ZC)(s)&&(s=a.A.fromExtent(s));let y="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,g=p&&y?{extendedParams:{densificationStep:8*y}}:void 0,x=s.toJSON(),v=(0,f.Cv)(x,x.spatialReference,i,g);if(!v)throw m;return v.spatialReference=i,e.geometry=v,e}async function _(e){let{distance:t,units:n}=e,a=e.geometry;if(!t||"vertexAttributes"in a)return a;let l=a.spatialReference,o=n?p.fromJSON(n):(0,s.Ij)(l),d=l&&((0,h.EA)(l)||(0,h.K8)(l))?a:await(0,f.Nk)(l,h.KK).then(()=>(0,f.Cv)(a,h.KK)),{geodesicBufferExecute:c,geodesicBufferLoad:m}=await i.e(9159).then(()=>i(49159));await m();let y=c(d,t||1,{unit:o})??void 0;if(!y||!(0,u.Bi)(y)||0===y.rings.length)throw new r.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return y}function v(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}i.d(t,["v8",0,m])},62660(e,t,i){i.d(t,{tC:()=>v,c0:()=>_,xt:()=>x});var r=i(49186),n=i(94078),s=i(12176),a=i(60408),l=i(21325);function o(e,t,i){if(!e)return!1;let{coords:r,lengths:n,stride:s}=e,a=!1,l=0;for(let e of n)a=u(a,r,s,l,e,t,i),l+=e*s;return a}function u(e,t,i,r,n,s,a){let l=e,o=r;for(let e=r,u=r+n*i;e<u;e+=i){o=e+i,o===u&&(o=r);let n=t[e],d=t[e+1],c=t[o],h=t[o+1];(d<a&&h>=a||h<a&&d>=a)&&n+(a-d)/(h-d)*(c-n)<s&&(l=!l)}return l}var d=i(90708),c=i(51441),h=i(31464);const f="unsupported-query",p={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},m={esriGeometryPoint:!0,esriGeometryMultiPatch:!1,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},y={esriGeometryPoint:!0,esriGeometryMultiPatch:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1},g={esriSpatialRelIntersects:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6033)]).then(()=>i(55284)).then(e=>e.intersectsExecute),esriSpatialRelContains:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(2990)]).then(()=>i(29127)).then(e=>e.containsExecute),esriSpatialRelCrosses:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(919)]).then(()=>i(87778)).then(e=>e.crossesExecute),esriSpatialRelDisjoint:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9722)]).then(()=>i(3157)).then(e=>e.disjointExecute),esriSpatialRelEnvelopeIntersects:null,esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8740)]).then(()=>i(83371)).then(e=>e.overlapsExecute),esriSpatialRelTouches:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8307)]).then(()=>i(67658)).then(e=>e.touchesExecute),esriSpatialRelWithin:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(100)]).then(()=>i(65487)).then(e=>e.withinExecute),esriSpatialRelRelation:null};async function x(e,t,i){if((0,a.Bi)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){let e=(0,d.Ye)(t,!1,!1);return t=>function(e,t){return o(e,t.coords[0],t.coords[1])}(e,t)}if("esriGeometryMultipoint"===i){let i=(0,d.Ye)(t,!1,!1);if("esriSpatialRelContains"===e)return e=>function(e,t){let{coords:i,lengths:r,stride:n}=t;if(!r)return!1;for(let t=0,s=0;t<r.length;t++,s+=n)if(!o(e,i[s],i[s+1]))return!1;return!0}(i,e)}}if((0,a.ZC)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return e=>(0,n.qz)(t,(0,c.p)(i,e));if("esriGeometryMultipoint"===i&&"esriSpatialRelContains"===e)return e=>(0,n.rL)(t,(0,c.p)(i,e));if("esriSpatialRelIntersects"===e){let e="mesh"===(r=i)?s.xB:(0,s.xK)(r);return r=>e(t,(0,c.p)(i,r))}}var r;"esriSpatialRelEnvelopeIntersects"===e&&(e="esriSpatialRelIntersects");let l=await function(e){let t=g[e];if(null==t)throw Error(`Cannot load unsupported spatial operator: ${e}`);return t()}(e);return e=>l(t,(0,c.p)(i,e))}async function _(e,t,i){let{spatialRel:n,geometry:s}=e;if(s){if(null==(o=n)||!0!==p[o])throw new r.A(f,"Unsupported query spatial relationship",{query:e});if((0,l.fn)(s.spatialReference)&&(0,l.fn)(i)){if(!function(e){return null!=e&&!0===m[(0,a.$B)(e)]}(s))throw new r.A(f,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===y[e]}(t))throw new r.A(f,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,h.Nk)(e.geometry?.spatialReference,e.outSR)}}var o}function v(e){if((0,a.ZC)(e))return!0;if((0,a.Bi)(e)){for(let t of e.rings)if(5!==t.length||t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1;return!0}return!1}},86420(e,t,i){i.d(t,{I:()=>s,W:()=>n});var r=i(21818);async function n(e,t){if(!e)return null;let i=t.featureAdapter,{startTimeField:n,endTimeField:s}=e,a=1/0,l=-1/0;if(n&&s)await t.forEach(e=>{let t=i.getAttribute((0,r.z)(e),n),o=i.getAttribute((0,r.z)(e),s);null!=t&&!isNaN(t)&&(a=Math.min(a,t)),null!=o&&!isNaN(o)&&(l=Math.max(l,o))});else{let e=n||s;await t.forEach(t=>{let n=i.getAttribute((0,r.z)(t),e);null!=n&&!isNaN(n)&&(a=Math.min(a,n),l=Math.max(l,n))})}return{start:a,end:l}}function s(e,t,i){if(!t||!e)return null;let{startTimeField:r,endTimeField:n}=e;if(!r&&!n)return null;let{start:s,end:a}=t;if(null===s&&null===a)return null;if(void 0===s&&void 0===a)return()=>!1;let l=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return r&&n?function(e,t,i,r,n){return null!=r&&null!=n?s=>{let a=e(s,t),l=e(s,i);return(null==a||a<=n)&&(null==l||l>=r)}:null!=r?t=>{let n=e(t,i);return null==n||n>=r}:null!=n?i=>{let r=e(i,t);return null==r||r<=n}:void 0}(l,r,n,s,a):function(e,t,i,r){return null!=i&&null!=r&&i===r?r=>e(r,t)===i:null!=i&&null!=r?n=>{let s=e(n,t);return null!=s&&s>=i&&s<=r}:null!=i?r=>{let n=e(r,t);return null!=n&&n>=i}:null!=r?i=>{let n=e(i,t);return null!=n&&n<=r}:void 0}(l,r||n,s,a)}},90708(e,t,i){i.d(t,{Ap:()=>E,B2:()=>y,DF:()=>F,Di:()=>N,E2:()=>O,IE:()=>m,Nl:()=>q,PR:()=>w,Rk:()=>W,Ux:()=>z,Ye:()=>M,ZF:()=>D,aQ:()=>j,jH:()=>L,jQ:()=>k,kz:()=>Q,oN:()=>V,q3:()=>B,qN:()=>S,zv:()=>P});var r=i(49186),n=i(53966),s=i(97768),a=i(70328),l=i(19419),o=i(60408),u=i(54339),d=i(43334),c=i(58512),h=i(92722);const f=()=>n.A.getLogger("esri.layers.graphics.featureConversionUtils"),p={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function m({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}function y({scale:e,translate:t},i){return Math.round((t[1]-i)/e[1])}function g({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}function x({scale:e,translate:t},i){return Math.round((i-t[1])/e[1])}function _({scale:e,translate:t},i,r){return i*e[r]+t[r]}function v(e,t,i){return t&&(e.hasZ=!0),i&&(e.hasM=!0),e}function T(e,t,i,r){if(t&&r&&e!==i)return(t,i,r,n)=>{r[n++]=t[i++],r[n++]=t[i++],e?i++:r[n++]=0,r[n++]=t[i++]??0};let n=+!!i+2+ +!!r,s=n-((!e&&i?1:0)+(!t&&r?1:0));return(e,t,i,r)=>{for(let a=0;a<n;++a)i[r++]=a<s?e[t++]??0:0}}function F(e,t,i){if(!e)return null;let{coords:r,hasZ:n,hasM:s}=e,[a,l]=r,o=n?r[2]:0,u=s?r[+!!n+2]:0;return{x:a,y:l,z:t?o:void 0,m:i?u:void 0}}function S(e,t=(0,o.Pv)(e),i=(0,o.W0)(e)){let{x:r,y:n,z:s,m:a}=e,l=[r,n];return t&&l.push(s??0),i&&l.push(a??0),new h.A([],l,t,i)}function I(e,t,i){if(null==e)return null;let{coords:r,stride:n,hasZ:s,hasM:a}=e,l=T(s,a,t,i),o=[];for(let e=0;e<r.length;e+=n){let t=[];l(r,e,t,0),o.push(t)}return v({points:o},t,i)}function w(e,t=(0,o.Pv)(e),i=(0,o.W0)(e)){let{points:r,hasZ:n,hasM:s}=e,a=new h.A([r.length],[],t,i),{coords:l,stride:u}=a,d=0,c=T(n??!1,s??!1,t,i);for(let e of r)c(e,0,l,d),d+=u;return a}function R(e,t,i){if(!e)return null;let{coords:r,lengths:n,stride:s,hasZ:a,hasM:l}=e,o=0,u=T(a,l,t,i),d=[];for(let e of n){let t=[];for(let i=0;i<e;i++){let e=[];u(r,o,e,0),o+=s,t.push(e)}d.push(t)}return v({paths:d},t,i)}function E(e,t=(0,o.Pv)(e),i=(0,o.W0)(e)){let{paths:r,hasZ:n,hasM:s}=e,a=T(n??!1,s??!1,t,i),l=new h.A([],[],t,i),{lengths:u,coords:d,stride:c}=l,f=0;for(let e of r){for(let t of e)a(t,0,d,f),f+=c;u.push(e.length)}return l}function A(e,t,i){if(!e)return null;let{coords:r,lengths:n,stride:s,hasZ:a,hasM:l}=e,o=0,u=T(a,l,t,i),d=[];for(let e of n){let t=[];for(let i=0;i<e;i++){let e=[];u(r,o,e,0),o+=s,t.push(e)}d.push(t)}return v({rings:d},t,i)}function M(e,t=(0,o.Pv)(e),i=(0,o.W0)(e)){let{rings:r,hasZ:n,hasM:s}=e,a=new h.A([],[],t,i),{lengths:l,coords:u,stride:d}=a,c=0,f=T(n??!1,s??!1,t,i);for(let e of r){for(let t of e)f(t,0,u,c),c+=d;l.push(e.length)}return a}const b=[],C=[];function O(e,t,i,r,n){b[0]=e;let[s]=N(C,b,t,i,r,n);return $(b),$(C),s}function N(e,t,i,n,s,a){if($(e),!i){for(let i of t){let t=(0,u.W)(i,a);e.push(new d.Om(null,i.attributes,null,t,void 0,i.distance,i.vertexCount))}return e}switch(i){case"esriGeometryPoint":return function(e,t,i,r,n){for(let s of t){let{geometry:t,attributes:a,centroid:l}=s,c=(0,o.Pv)(t),h=(0,o.W0)(t);e.push(new d.Om(t?S(t,i&&c,r&&h):null,a,l?S(l,!1,!1):null,(0,u.W)(s,n),s.displayId,s.distance,s.vertexCount))}return e}(e,t,n,s,a);case"esriGeometryMultipoint":return function(e,t,i,r,n){for(let s of t){let{geometry:t,attributes:a}=s,l=(0,o.Pv)(t),c=(0,o.W0)(t);e.push(new d.Om(t?w(t,i&&l,r&&c):null,a,null,(0,u.W)(s,n),s.displayId,s.distance,s.vertexCount))}return e}(e,t,n,s,a);case"esriGeometryPolyline":return function(e,t,i,r,n){for(let s of t){let{geometry:t,attributes:a,centroid:l}=s,c=(0,o.Pv)(t),h=(0,o.W0)(t);e.push(new d.Om(t?E(t,i&&c,r&&h):null,a,l?S(l,!1,!1):null,(0,u.W)(s,n),s.displayId,s.distance,s.vertexCount))}return e}(e,t,n,s,a);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(e,t,i,r,n){for(let s of t){let{geometry:t,attributes:a,centroid:l}=s,c=(0,o.Pv)(t),h=(0,o.W0)(t);e.push(new d.Om(t?M(t,i&&c,r&&h):null,a,l?S(l,!1,!1):null,(0,u.W)(s,n),s.displayId,s.distance,s.vertexCount))}return e}(e,t,n,s,a);default:f().error("convertToFeatureSet:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`)),$(e)}return e}function V(e,t,i,r){C[0]=e,G(b,C,t,i,r);let n=b[0];return $(b),$(C),n}function z(e,t=(0,o.Pv)(e),i=(0,o.W0)(e)){return null==e?null:(0,o.fT)(e)?S(e,t,i):(0,o.Bi)(e)?M(e,t,i):(0,o.Rg)(e)?E(e,t,i):(0,o.U9)(e)?w(e,t,i):void f().error("convertFromGeometry:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`))}function P(e,t,i,n){if(null==e)return null;let s="coords"in e?e:e.geometry;if(null==s)return null;switch(t){case"esriGeometryPoint":return F(s,i,n);case"esriGeometryMultipoint":return I(s,i,n);case"esriGeometryPolyline":return R(s,i,n);case"esriGeometryPolygon":return A(s,i,n);default:return f().error("convertToGeometry:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`)),null}}function G(e,t,i,n,s){if($(e),null==i)return function(e,t){for(let i of t)e.push({attributes:i.attributes});return e}(e,t);switch(i){case"esriGeometryPoint":return function(e,t,i,r){for(let{geometry:n,attributes:s}of t)e.push({attributes:s,geometry:F(n,i,r)});return e}(e,t,n,s);case"esriGeometryMultipoint":return function(e,t,i,r){for(let{geometry:n,attributes:s}of t)e.push({geometry:n&&I(n,i,r),attributes:s});return e}(e,t,n,s);case"esriGeometryPolyline":return function(e,t,i,r){for(let{geometry:n,attributes:s}of t)e.push({geometry:n&&R(n,i,r),attributes:s});return e}(e,t,n,s);case"esriGeometryPolygon":return function(e,t,i,r){for(let{geometry:n,attributes:s,centroid:a}of t){let t=A(n,i,r),l=F(a,!1,!1);e.push(a?{geometry:t,attributes:s,centroid:l}:{geometry:t,attributes:s})}return e}(e,t,n,s);default:f().error("convertToFeatureSet:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`))}return e}function D(e){let{spatialReference:t,transform:i,fields:r,hasM:n,hasZ:s,features:a,geometryType:l,exceededTransferLimit:o,queryGeometry:u,queryGeometryType:d}=e,c={features:G([],a,l,s,n),fields:r,geometryType:l,spatialReference:t,queryGeometry:P(u,d,s,n)};return i&&(c.transform=i),o&&(c.exceededTransferLimit=o),n&&(c.hasM=n),s&&(c.hasZ=s),c}function B(e,t){let i=new c.A,{hasM:r,hasZ:n,features:s,spatialReference:a,geometryType:l,exceededTransferLimit:o,transform:u,fields:d,globalIdFieldName:h}=e;return d&&(i.fields=d),i.geometryType=l??null,i.spatialReference=a??null,s&&N(i.features,s,l,n,r,t),o&&(i.exceededTransferLimit=o),r&&(i.hasM=r),n&&(i.hasZ=n),u&&(i.transform=u),h&&(i.globalIdFieldName=h),i}function L(e,t){let{geometryType:i,features:r}=t;if(!e)return t;for(let t=0;t<r.length;t++){let n=r[t],s=n.weakClone();s.geometry=q(n.geometry,i,e),s.centroid=q(n.centroid,"esriGeometryPoint",e),r[t]=s}return t.transform=e,t}function q(e,t,i,r,n,s=!1){if(null==e||!e?.coords.length)return null;let a=p[t],{coords:l,lengths:o,stride:u,hasZ:d,hasM:c}=e;r??=d,n??=c;let f=new h.A([],[],r,n),_=f.stride,v=T(d,c,r,n),F=0,S=[0,0,0,0].slice(_),I=s?g:m,w=s?x:y;function R(){v(l,F,S,0),F+=u,S[0]=I(i,S[0]),S[1]=w(i,S[1])}if(e.isPoint)return R(),f.coords.push(...S),f;let E=0;for(let e of o){if(e<a)continue;let t=1;R(),f.coords.push(...S);let[i,r]=S;for(let n=1;n<e;n++){R();let[e,n]=S;(i!==e||r!==n)&&(s||(S[0]-=i,S[1]-=r),f.coords.push(...S),i=e,r=n,t++)}t>=a?(f.lengths.push(t),E=f.coords.length):$(f.coords,E)}return $(f.coords,E),f.coords.length?f:null}function Q(e,t,i,r=e.hasZ,n=e.hasM){if(!e.coords.length)return null;let s=p[t],{coords:a,lengths:l,stride:o,hasZ:u,hasM:d}=e,c=new h.A([],[],r,n),f=c.stride,m=T(u,d,r,n);if(e.isPoint)return m(a,0,c.coords,0),c;let y=0,g=i*i;for(let e of l){if(e<s){y+=e*o;continue}let t=c.coords.length/f,i=y,r=y+(e-1)*o;m(a,i,c.coords,c.coords.length),U(c.coords,a,o,g,m,i,r),m(a,r,c.coords,c.coords.length);let n=c.coords.length/f-t;n>=s?c.lengths.push(n):$(c.coords,t*f),y+=e*o}return c.coords.length?c:null}function Z(e,t,i,r){let n=e[t],s=e[t+1],a=e[i],l=e[i+1],o=e[r],u=e[r+1],d=a,c=l,h=o-d,f=u-c;if(0!==h||0!==f){let e=((n-d)*h+(s-c)*f)/(h*h+f*f);e>1?(d=o,c=u):e>0&&(d+=h*e,c+=f*e)}return h=n-d,f=s-c,h*h+f*f}function U(e,t,i,r,n,s,a){let l,o=r,u=0;for(let e=s+i;e<a;e+=i)l=Z(t,e,s,a),l>o&&(u=e,o=l);o>r&&(u-s>i&&U(e,t,i,r,n,s,u),n(t,u,e,e.length),a-u>i&&U(e,t,i,r,n,u,a))}function k(e,t){if(!t?.coords?.length)return null;let i=1/0,r=1/0,n=-1/0,s=-1/0,{coords:o,stride:u}=t;for(let e=0;e<o.length;e+=u){let t=o[e],a=o[e+1];i=Math.min(i,t),n=Math.max(n,t),r=Math.min(r,a),s=Math.max(s,a)}return(0,a.is)(e)?(0,a.BI)(e,i,r,n,s):(0,l.fA)(i,r,n,s,e),e}function j(e,t){let{coords:i,lengths:r,stride:n,hasZ:a,hasM:l}=e;if(!i.length)return void(r.length=0);(0,s.Lw)(t);let{originPosition:o,scale:u,translate:d}=t,c=J;c.originPosition=o;let h=c.scale;h[0]=u[0]??1,h[1]=-(u[1]??1),h[2]=u[2]??1,h[3]=u[3]??1;let f=c.translate;if(f[0]=d[0]??0,f[1]=d[1]??0,f[2]=d[2]??0,f[3]=d[3]??0,l&&!a&&(h[2]=h[3],f[2]=f[3]),!r.length){for(let e=0;e<n;++e)i[e]=_(c,i[e],e);return void(r.length=0)}let p=0;for(let e=0;e<r.length;e++){let t=r[e];r[e]=t;for(let e=0;e<n;++e)i[p+e]=_(c,i[p+e],e);let s=i[p],a=i[p+1];p+=n;for(let e=1;e<t;e++,p+=n){s+=i[p]*h[0],a+=i[p+1]*h[1],i[p]=s,i[p+1]=a;for(let e=2;e<n;++e)i[p+e]=_(c,i[p+e],e)}}}function H(e,t,i,r){let n=0,s=e[r*t],a=e[r*(t+1)];for(let l=1;l<i;l++){let i=s+e[r*(t+l)],o=a+e[r*(t+l)+1],u=(i-s)*(o+a);s=i,a=o,n+=u}return.5*n}function W(e,t){let{coords:i,lengths:r}=e,n=0,s=0;for(let e=0;e<r.length;e++){let a=r[e];s+=H(i,n,a,t),n+=a}return Math.abs(s)}function $(e,t=0){e.length!==t&&(e.length=t)}const J={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},5834(e,t,i){i.d(t,{A:()=>c});var r=i(32198),n=i(91429),s=i(56507),a=i(93637),l=i(41266),o=i(41366),u=i(93223);function d(e,t,i){(0,a.sM)(i,e instanceof Date?e.getTime():e,t)}let c=class extends((0,o.K)(l.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],c.prototype,"numBins",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.end",write:{writer:d}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.start",write:{writer:d}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.AutoIntervalBinParameters")],c),c.from=(0,s.dp)(c)},41266(e,t,i){i.d(t,{A:()=>m});var r=i(32198),n=i(91429),s=i(69540),a=i(66552),l=i(25482),o=i(56507),u=i(93223);const d=new a.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let c=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"outAlias",write:!0}})],c.prototype,"alias",void 0),(0,r.Cg)([(0,n.MZ)({type:String})],c.prototype,"responseType",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"value",void 0),(0,r.Cg)([(0,u.e)(d)],c.prototype,"valueType",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.AttributeBinsGrouping")],c);const h=c;c.from=(0,o.dp)(c);const f=new a.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),p=new a.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,r.Cg)([(0,u.e)(f,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,r.Cg)([(0,n.MZ)({type:h,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,r.Cg)([(0,n.MZ)({type:h,json:{write:{target:{stackBy:{type:h},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>h.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,r.Cg)([(0,u.e)(p)],m.prototype,"transformation",void 0),m=(0,r.Cg)([(0,n.$K)("esri.rest.support.BinParametersBase")],m)},9760(e,t,i){i.d(t,{A:()=>d});var r=i(32198),n=i(91429),s=i(66552),a=i(25482),l=i(93223);const o=new s.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new s.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends a.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,r.Cg)([(0,l.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,r.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,r.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{read:o.read,write:o.write}})],d.prototype,"classificationMethod",void 0),(0,r.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,r.Cg)([(0,n.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,n.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,r.Cg)([(0,n.$K)("esri.rest.support.ClassBreaksDefinition")],d)},59977(e,t,i){i.d(t,{A:()=>y});var r=i(32198),n=i(91429),s=i(56507),a=i(93637),l=i(41266),o=i(69540),u=i(25482),d=i(57231),c=i(93223);let h=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"number",write:!0}})],h.prototype,"value",void 0),(0,r.Cg)([(0,c.e)(d.g)],h.prototype,"unit",void 0),h=(0,r.Cg)([(0,n.$K)("esri.rest.support.DateBinTimeInterval")],h);const f=h;function p(e,t,i){(0,a.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function m(e,t){let i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}h.from=(0,s.dp)(h);let y=class extends l.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,r.Cg)([(0,n.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.end",read:{reader:(e,t)=>m(t,"end")},write:{writer:p}}})],y.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({type:f,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,r.Cg)([(0,n.MZ)({type:f,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,r.Cg)([(0,n.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.start",read:{reader:(e,t)=>m(t,"start")},write:{writer:p}}})],y.prototype,"start",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,r.Cg)([(0,c.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,r.Cg)([(0,n.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,s.dp)(y)},57231(e,t,i){const r=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});i.d(t,["g",0,r])},11440(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(91429),s=i(56507),a=i(93637),l=i(41266),o=i(93223);let u=class extends l.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,a.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,r.Cg)([(0,o.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,n.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,s.dp)(u)},60909(e,t,i){i.d(t,{A:()=>c});var r=i(32198),n=i(91429),s=i(56507),a=i(93637),l=i(41266),o=i(41366),u=i(93223);function d(e,t,i){(0,a.sM)(i,e instanceof Date?e.getTime():e,t)}let c=class extends((0,o.K)(l.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.end",write:{writer:d}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],c.prototype,"interval",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.start",write:{writer:d}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.FixedIntervalBinParameters")],c),c.from=(0,s.dp)(c)},41366(e,t,i){var r=i(32198),n=i(91429),s=i(66552),a=i(53966),l=i(93223);const o=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&u||null,t&&i&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===d||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(o,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,n.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,o])},84892(e,t,i){i.d(t,{t:()=>s});var r=i(53966);function n(e,t){return Number(e.toFixed(t))}function s(e,t){let{normalizationTotal:i}=e;return{classBreaks:a(e,t),normalizationTotal:i}}function a(e,t){let i=e.definition,{classificationMethod:r,normalizationType:s,definedInterval:a}=i,u=i.breakCount??1,d=[],c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);let[h,f]=t??[c.at(0),c.at(-1)];if("equal-interval"===r)if(c.length>=u){let e=(f-h)/u,t=h;for(let i=1;i<u;i++){let r=n(h+i*e,6);d.push({minValue:t,maxValue:r,label:l(t,r,s)}),t=r}d.push({minValue:t,maxValue:f,label:l(t,f,s)})}else c.forEach(e=>{d.push({minValue:e,maxValue:e,label:l(e,e,s)})});else if("natural-breaks"===r){let t=function(e){let t=[],i=[],r=Number.MIN_VALUE,n=1,s=-1;for(let a=0;a<e.length;a++){let l=e[a];l===r?(n++,i[s]=n):null!==l&&(t.push(l),r=l,n=1,i.push(n),s++)}return{uniqueValues:t,valueFrequency:i}}(c),i=e.valueFrequency||t.valueFrequency,r=o(t.uniqueValues,i,u),a=h;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let i=n(t.uniqueValues[r[e]],6);d.push({minValue:a,maxValue:i,label:l(a,i,s)}),a=i}d.push({minValue:a,maxValue:f,label:l(a,f,s)})}else if("quantile"===r)if(c.length>=u&&h!==f){let e=h,t=Math.ceil(c.length/u),i=0;for(let r=1;r<u;r++){let n=t+i-1;n>c.length&&(n=c.length-1),n<0&&(n=0),d.push({minValue:e,maxValue:c[n],label:l(e,c[n],s)}),e=c[n],i+=t,t=Math.ceil((c.length-i)/(u-r))}d.push({minValue:e,maxValue:f,label:l(e,f,s)})}else{let e=-1;for(let t=0;t<c.length;t++){let i=c[t];i!==e&&(e=i,d.push({minValue:e,maxValue:i,label:l(e,i,s)}),e=i)}}else if("standard-deviation"===r){let e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(c),t=function(e,t){let i=0;for(let r=0;r<e.length;r++){let n=e[r];i+=(n-t)*(n-t)}return i/=e.length,Math.sqrt(i)}(c,e);if(0===t)d.push({minValue:c[0],maxValue:c[0],label:l(c[0],c[0],s)});else{let i=function(e,t,i,r,n){let s=Math.max(r-e,t-r)/n/i;return s=s>=1?1:s>=.5?.5:.25,s}(h,f,u,e,t)*t,r=0,a=h;for(let t=u;t>=1;t--){let o=n(e-(t-.5)*i,6);d.push({minValue:a,maxValue:o,label:l(a,o,s)}),a=o,r++}let o=n(e+.5*i,6);d.push({minValue:a,maxValue:o,label:l(a,o,s)}),a=o,r++;for(let t=1;t<=u;t++)o=r===2*u?f:n(e+(t+.5)*i,6),d.push({minValue:a,maxValue:o,label:l(a,o,s)}),a=o,r++}}else if("defined-interval"===r){if(!a)return d;let[e,i]=t??[c.at(0),c.at(-1)],r=Math.ceil((i-e)/a),o=e;for(let t=1;t<r;t++){let i=n(e+t*a,6);d.push({minValue:o,maxValue:i,label:l(o,i,s)}),o=i}d.push({minValue:o,maxValue:i,label:l(o,i,s)})}return d}function l(e,t,i){let r=null;return r=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,r}function o(e,t,i){let r=e.length,n=[];i>r&&(i=r);for(let e=0;e<i;e++)n.push(Math.round(e*r/i-1));n.push(r-1);let s=u(n,e,t,i);return function(e,t,i,r,n,s){let a=0,l=0,o=0,u=0,c=!0;for(let h=0;h<2&&c;h++){0===h&&(c=!1);for(let h=0;h<s-1;h++)for(;i[h+1]+1!==i[h+2];){i[h+1]=i[h+1]+1;let s=d(h,i,r,n);o=s.sbMean,a=s.sbSdcm;let f=d(h+1,i,r,n);if(u=f.sbMean,l=f.sbSdcm,!(a+l<t[h]+t[h+1])){i[h+1]=i[h+1]-1;break}t[h]=a,t[h+1]=l,e[h]=o,e[h+1]=u,c=!0}for(let h=s-1;h>0;h--)for(;i[h]!==i[h-1]+1;){i[h]=i[h]-1;let s=d(h-1,i,r,n);o=s.sbMean,a=s.sbSdcm;let f=d(h,i,r,n);if(u=f.sbMean,l=f.sbSdcm,!(a+l<t[h-1]+t[h])){i[h]=i[h]+1;break}t[h-1]=a,t[h]=l,e[h-1]=o,e[h]=u,c=!0}}return c}(s.mean,s.sdcm,n,e,t,i)&&(s=u(n,e,t,i)),n}function u(e,t,i,r){let n=[],s=[],a=[],l=0,o=[],u=[];for(let n=0;n<r;n++){let r=d(n,e,t,i);o.push(r.sbMean),u.push(r.sbSdcm),l+=u[n]}let c,h=l,f=!0;for(;f||l<h;){f=!1,n=[];for(let t=0;t<r;t++)n.push(e[t]);for(let i=0;i<r;i++)for(let n=e[i]+1;n<=e[i+1];n++)if(c=t[n],i>0&&n!==e[i+1]&&Math.abs(c-o[i])>Math.abs(c-o[i-1]))e[i]=n;else if(i<r-1&&e[i]!==n-1&&Math.abs(c-o[i])>Math.abs(c-o[i+1])){e[i+1]=n-1;break}h=l,l=0,s=[],a=[];for(let n=0;n<r;n++){s.push(o[n]),a.push(u[n]);let r=d(n,e,t,i);o[n]=r.sbMean,u[n]=r.sbSdcm,l+=u[n]}}if(l>h){for(let t=0;t<r;t++)e[t]=n[t],o[t]=s[t],u[t]=a[t];l=h}return{mean:o,sdcm:u}}function d(e,t,i,n){let s=0,a=0;for(let r=t[e]+1;r<=t[e+1];r++){let e=n[r];s+=i[r]*e,a+=e}a<=0&&r.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let l=s/a,o=0;for(let r=t[e]+1;r<=t[e+1];r++)o+=n[r]*(i[r]-l)**2;return{sbMean:l,sbSdcm:o}}},1873(e,t,i){i.d(t,{$y:()=>V,Ak:()=>P,FM:()=>p,G_:()=>h,Rw:()=>O,Vb:()=>d,b3:()=>A,gJ:()=>u,jM:()=>N,lv:()=>b,oZ:()=>E,qg:()=>f,sU:()=>z,z9:()=>c,zS:()=>C});var r=i(9760),n=i(84892);const s=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),l=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){let t=null!=e.normalizationField||null!=e.normalizationType,i=null!=e.minValue||null!=e.maxValue,r=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!i&&!r}function c(e){let{outStatisticTypes:t}=e,i=e.returnDistinct?[...new Set(e.values)]:e.values,r=i.filter(e=>null!=e).sort(),n=r.length,s={count:n,min:r[0],max:r[n-1]};return e.supportsNullCount&&(s.nullcount=i.length-n),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(s.median=f(i,e.percentileParams)),s}function h(e){let{values:t,useSampleStdDev:i,supportsNullCount:r,outStatisticTypes:n}=e,s=1/0,a=-1/0,l=null,o=null,u=null,d=null,c=0,h=null==e.minValue?-1/0:e.minValue,p=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=h&&e<=p&&(l=null===l?e:l+e,s=Math.min(s,e),a=Math.max(a,e),c++):"string"==typeof e&&c++;if(c&&null!=l){o=l/c;let e=0;for(let i of t)Number.isFinite(i)&&i>=h&&i<=p&&(e+=(i-o)**2);d=i?c>1?e/(c-1):0:c>0?e/c:0,u=Math.sqrt(d)}else s=null,a=null;let m={avg:o,count:c,max:a,min:s,stddev:u,sum:l,variance:d};return r&&(m.nullcount=t.length-c),!e.percentileParams||n?.include?.length&&!n.include.includes("median")||n?.exclude?.length&&n.exclude.includes("median")||(m.median=f(t,e.percentileParams)),m}function f(e,t){let{fieldType:i,value:r,orderBy:n,isDiscrete:s}=t,a=p(i,"desc"===n,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t)),0===e.length)return null;if(r<=0)return e[0];if(r>=1)return e[e.length-1];let l=(e.length-1)*r,o=Math.floor(l),u=o+1,d=l%1,c=e[o],h=e[u];return u>=e.length||s||"string"==typeof c||"string"==typeof h?c:c*(1-d)+h*d}function p(e,t,i="case-sensitive"){if(e){if(a.has(e))return w(t);if(l.has(e))return F(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?_:x}(t);let r=F(t,"case-sensitive"===i);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(R(e),R(t))}let r=t?1:-1,n=w(t),s=F(t,"case-sensitive"===i),o=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?n(e,t):"string"==typeof e&&"string"==typeof t?s(e,t):o(e,t)??r}const m=(e,t)=>null==e?null==t?0:1:null==t?-1:null,y=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?m:y}const x=(e,t)=>y(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),_=(e,t)=>m(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),v=(e,t)=>y(e,t)??(e===t?0:e<t?-1:1),T=(e,t)=>m(e,t)??(e===t?0:e<t?1:-1);function F(e,t){if(t)return e?T:v;let i=g(e);return e?(e,t)=>i(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>i(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const S=(e,t)=>m(e,t)??t-e,I=(e,t)=>y(e,t)??e-t;function w(e){return e?S:I}function R(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function E(e,t,i){let r;for(r in e)t?.include?.length&&!t.include.includes(r)||t?.exclude?.length&&t.exclude.includes(r)?delete e[r]:o.includes(r)&&(Number.isFinite(e[r])||(e[r]=null));return i&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function A(e){let t={};for(let i of e)(null==i||"string"==typeof i&&""===i.trim())&&(i=null),null==t[i]?t[i]={count:1,data:i}:t[i].count++;return{count:t}}function M(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function b(e,t,i,r){let n=e.count,s=[];if(i&&t){let e=[],i=M(t[0]);for(let n of i)if(t[1]){let i=M(t[1]);for(let s of i)if(t[2]){let i=M(t[2]);for(let t of i)e.push(`${u(n)}${r}${u(s)}${r}${u(t)}`)}else e.push(`${u(n)}${r}${u(s)}`)}else e.push(n);for(let t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(let e in n){let t=n[e];s.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:s}}function C(e,t,i,r){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(r)&&0!==r&&(n=e/r*100);break;case"field":Number.isFinite(i)&&0!==i&&(n=e/i);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function O(e,t,i){let s=function(e){let{breakCount:t,field:i,normalizationField:n,normalizationType:s}=e,a=e.classificationMethod||"equal-interval",l="standard-deviation"===a?e.standardDeviationInterval||1:void 0,o="defined-interval"===a?e.definedInterval:void 0;return new r.A({breakCount:t,classificationField:i,classificationMethod:a,normalizationField:"field"===s?n:void 0,normalizationType:s,standardDeviationInterval:l,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,i){let r=t??-1/0,n=i??1/0;return e.filter(e=>Number.isFinite(e)&&e>=r&&e<=n)}(e,t.minValue,t.maxValue),(0,n.t)({definition:s,values:e,normalizationTotal:t.normalizationTotal},i)}function N(e,t){let i=e.classBreaks,r=i.length,n=i[0]?.minValue,a=i[r-1]?.maxValue,l="standard-deviation"===t,o=s;return i=i.map(e=>{let t=e.label,i={minValue:e.minValue,maxValue:e.maxValue,label:t};if(l&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(i.minStdDev=e[0],i.maxStdDev=e[1],e[0]<0&&e[1]>0&&(i.hasAvg=!0)):1===e.length&&(t.includes("<")?(i.minStdDev=null,i.maxStdDev=e[0]):t.includes(">")&&(i.minStdDev=e[0],i.maxStdDev=null))}return i}),{minValue:n,maxValue:a,classBreakInfos:i,normalizationTotal:e.normalizationTotal}}function V(e,t){let i=z(e,t);if(null==i.min&&null==i.max)return{bins:[],minValue:i.min,maxValue:i.max,normalizationTotal:t.normalizationTotal};let r=i.intervals,n=i.min??0,s=i.max??0,a=r.map((e,t)=>({minValue:r[t][0],maxValue:r[t][1],count:0}));for(let t of e)if(null!=t&&t>=n&&t<=s){let e=P(r,t);e>-1&&a[e].count++}return{bins:a,minValue:n,maxValue:s,normalizationTotal:t.normalizationTotal}}function z(e,t,i=!1){let{field:r,classificationMethod:n,standardDeviationInterval:s,definedInterval:a,normalizationType:l,normalizationField:o,normalizationTotal:u,minValue:c,maxValue:f}=t,p=t.numBins||10,m=null,y=null,g=null;if(n&&"equal-interval"!==n||l){let{classBreaks:t}=O(e,{field:r,normalizationType:l,normalizationField:o,normalizationTotal:u,classificationMethod:n,standardDeviationInterval:s,definedInterval:a,minValue:c,maxValue:f,numClasses:p},null!=c&&null!=f?[c,f]:void 0);m=t[0]?.minValue,y=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=c&&null!=f)m=c,y=f;else{let t=h({values:e,minValue:c,maxValue:f,useSampleStdDev:!l,supportsNullCount:d({normalizationType:l,normalizationField:o,minValue:c,maxValue:f})});m=t.min??null,y=t.max??null}g=function(e,t,i){let r,n=(t-e)/i,s=[],a=e;for(let e=1;e<=i;e++)r=a+n,r=Number(r.toFixed(16)),s.push([a,e===i?t:r]),a=r;return s}(m??0,y??0,p)}if(i&&g.length){let e=g.at(-1)[1];g.push([e,e])}return{min:m,max:y,intervals:g}}function P(e,t){let i=-1;for(let r=e.length-1;r>=0;r--)if(t>=e[r][0]){i=r;break}return i}},92359(e,t,i){i.d(t,{nu:()=>h,W6:()=>u}),i(4576),i(71511),i(44208),i(53966);var r=i(17676),n=(i(36708),i(44794),i(78659)),s=i(32198),a=i(56372),l=i(91429);let o=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s.Cg)([(0,l.MZ)()],o.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s.Cg)([(0,l.MZ)()],o.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),o=(0,s.Cg)([(0,l.$K)("esri.views.support.debugFlags")],o),new o,i(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_FILTER_HIGHLIGHT:"feature filter highlight",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_FILTER_HIGHLIGHT,2],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,n.l5)(6.5),(0,n.l5)(1),(0,n.l5)(30),(0,n.l5)(1e3/30),(0,n.l5)(100),Symbol.dispose;const d=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this._enabled&&this._budget!==1/0&&this.elapsed>=this._budget,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};d.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,i){try{if((0,r.G4)(t)){let e=(0,r.NK)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,r.z7)(e(d))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}async scheduleGenerator(e,t,i){if((0,r.G4)(t)){let e=(0,r.NK)();if(i)return i(e);throw e}let n=e(d);for(;;){let e=n.next(d),s=(0,r.$X)(e)?await e:e;if((0,r.G4)(t)){let e=(0,r.NK)();if(i){let t=i(e),s=n.return(null);return(0,r.$X)(s)&&await(0,r.QZ)(s),t}let t=n.throw(e);throw(0,r.$X)(t)&&await(0,r.QZ)(t),e}if(s.done)return s.value}}}const h=new c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8278],{25728(e,r,t){t.d(r,{M:()=>S});var i=t(32198),a=t(56372),n=t(64108),s=t(76953),o=t(4718);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=Array(8),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){let r=new l,t=this._originStores[0];t&&t.forEach((e,t)=>{r.set(t,(0,o.o8)(e),0)});for(let t=2;t<8;t++){let i=this._originStores[t];i&&i.forEach((i,a)=>{e&&e.has(a)||r.set(a,(0,o.o8)(i),t)})}return r}get(e,r){let t=void 0===r?this._values:this._originStores[r];return t?t.get(e):void 0}keys(e){let r=null==e?this._values:this._originStores[e];return r?[...r.keys()]:[]}set(e,r,t=7){let i=this._originStores[t];if(i||(i=new Map,this._originStores[t]=i),i.set(e,r),!this._values.has(e)||this._propertyOriginMap.get(e)<=t){let i=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),i!==r}return!1}delete(e,r=7){let t=this._originStores[r];if(!t)return;let i=t.get(e);if(t.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===r){this._values.delete(e);for(let t=r-1;t>=0;t--){let r=this._originStores[t];if(r&&r.has(e)){this._values.set(e,r.get(e)),this._propertyOriginMap.set(e,t);break}}}return i}has(e,r){let t=void 0===r?this._values:this._originStores[r];return!!t&&t.has(e)}revert(e,r){for(;r>0&&!this.has(e,r);)--r;let t=this._originStores[r]?.get(e),i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,r){return this.has(e,r)&&this.originOf(e)===r}isBelowOrigin(e,r){return!this.has(e)||this.originOf(e)<r}forEach(e){this._values.forEach(e)}}var y=t(35666),p=t(45917),u=t(88620);const d=e=>{let r=e,t=class extends r{constructor(...e){super(...e);let r=(0,u.oY)(this),t=r.store,i=new l;r.store=i,(0,s.k)(r,t,i)}read(e,r){(0,p.L)(this,e,r)}getAtOrigin(e,r){let t=c(this),i=(0,y.aB)(r);return t.get(e,i)}originOf(e){return(0,y.OL)(this.originIdOf(e))}originIdOf(e){return c(this).originOf(e)}revertToOrigin(e,r){let t=c(this),i=(0,y.aB)(r),a=(0,u.oY)(this);"*"===e&&t.keys(i).forEach(e=>this.revertToOrigin(e,r)),a.invalidate(e),t.revert(e,i),a.commit(e)}revertAllToOrigin(e){let r=c(this),t=(0,y.aB)(e);r.keys(t).forEach(r=>this.revertToOrigin(r,e))}};return t=(0,i.Cg)([(0,n.$K)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function c(e){return(0,u.oY)(e).store}d(a.A);var g=t(91429),m=t(16649),L=t(49422);const h=e=>{let r=e,t=class extends r{constructor(...e){super(...e)}clear(e,r="user"){(0,u.oY)(this).clearOrigin(e,(0,y.aB)(r))}write(e,r){return e||={},(0,L.M)(this,e,r),e}setAtOrigin(e,r,t){(0,u.oY)(this).setAtOrigin(e,r,(0,y.aB)(t))}removeOrigin(e){let r=v(this),t=(0,y.aB)(e),i=r.keys(t);for(let e of i)r.originOf(e)===t&&r.set(e,r.get(e,t),7)}updateOrigin(e,r){let t=v(this),i=(0,y.aB)(r),a=(0,m.Jt)(this,e);for(let r=i+1;r<8;++r)t.delete(e,r);t.set(e,a,i)}toJSON(e){return this.write({},e)}};return t=(0,i.Cg)([(0,g.$K)("esri.core.WriteableMultiOriginJSONMixin")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,u.oY)(e).store}const S=e=>{let r=h(d(e)),t=class extends r{};return t=(0,i.Cg)([(0,n.$K)("esri.core.MultiOriginJSONSupport")],t),t};S(a.A)},89317(e,r,t){t.d(r,["K",0,["operational-layers","basemap-base-layers","basemap-ground-layers","ground"]])},34287(e,r,t){var i=t(32198),a=t(91429),n=t(56507),s=t(89317),o=t(45917),l=t(49422),y=t(49186),p=t(84952),u=t(79677),d=t(59923),c=t(10873),g=t(6345),m=t(36005),L=t(43937);t.d(r,["q",0,e=>{let r=e,t=class extends r{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,r,t){return"Group Layer"===t?.portalItem?.type?void 0:e}writeListMode(e,r,t,i){(i&&"ground"===i.layerContainerType||e&&(0,l.R)(this,t,{},i))&&(r[t]=e)}writeOperationalLayerType(e,r,t){e&&(r[t]=e)}writeTitle(e,r){r.title=e??"Layer"}readVisibilityTimeExtent(e){return e?u.A.fromArray(e):null}writeVisibilityTimeExtent(e,r,t,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new y.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):r[t]=e.toArray())}read(e,r){r&&(r.layer=this),(0,o.t)(this,e,r=>super.read(e,r),r)}write(e,r){if(!this.persistenceEnabled&&!r?.ignorePersistenceEnabled)return null;if(r?.origin&&!(0,g.Bu)(r,this.operationalLayerType,this.type))return(0,d.U4)(r,this),null;let t=super.write(e,{...r,layer:this}),i=!!r&&!!r.messages&&!!r.messages.filter(e=>e instanceof y.A&&"web-document-write:property-required"===e.name).length;return(0,p.w8)(t?.url)?(r?.messages?.push(new y.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:t}beforeSave(){}};return(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i.Cg)([(0,m.w)("id",["id"])],t.prototype,"readId",null),(0,i.Cg)([(0,a.MZ)(c.C1)],t.prototype,"listMode",void 0),(0,i.Cg)([(0,L.K)("listMode")],t.prototype,"writeListMode",null),(0,i.Cg)([(0,a.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:s.K,isRequired:!0}}}}})],t.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,L.K)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,a.MZ)(c.ke)],t.prototype,"opacity",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,readOnly:!1})],t.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i.Cg)([(0,L.K)("title"),(0,L.K)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{origins:{"web-scene":{write:{layerContainerTypes:s.K}}}}})],t.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,m.w)("visibilityTimeExtent")],t.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,L.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[n.jz,n.Uv]]}})],t.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:s.K}}})],t.prototype,"visible",void 0),t=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.OperationalLayer")],t),t}])},96184(e,r,t){t.d(r,{A:()=>g});var i=t(32198),a=t(91429),n=t(69540),s=t(25482),o=t(73133),l=t(79677),y=t(10184),p=t(56400),u=t(36005),d=t(43937);function c(e,r){return y.A.fromJSON({value:e,unit:r})}let g=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,r){return r.timeExtent&&Array.isArray(r.timeExtent)&&2===r.timeExtent.length?l.A.fromArray(r.timeExtent):null}writeFullTimeExtent(e,r){null!=e?.start&&null!=e.end&&(r.timeExtent=e.toArray())}readInterval(e,r){return r.timeInterval&&r.timeIntervalUnits?c(r.timeInterval,r.timeIntervalUnits):r.defaultTimeInterval&&r.defaultTimeIntervalUnits?c(r.defaultTimeInterval,r.defaultTimeIntervalUnits):null}writeInterval(e,r){r.timeInterval=e?.toJSON().value??null,r.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],g.prototype,"cumulative",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:!0}})],g.prototype,"endField",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],g.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,u.w)("fullTimeExtent",["timeExtent"])],g.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,d.K)("fullTimeExtent",{timeExtent:{type:[Number]}})],g.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],g.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,a.MZ)({type:y.A,json:{write:!0}})],g.prototype,"interval",void 0),(0,i.Cg)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],g.prototype,"readInterval",null),(0,i.Cg)([(0,d.K)("interval",{timeInterval:{type:Number},timeIntervalUnits:{type:o.j.jsonValues}})],g.prototype,"writeInterval",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:!0}})],g.prototype,"startField",void 0),(0,i.Cg)([(0,a.MZ)((0,p.P6)("timeReference",!0,!1))],g.prototype,"timeZone",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"trackIdField",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],g.prototype,"useTime",void 0),(0,i.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],g.prototype,"stops",void 0),g=(0,i.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],g)},10873(e,r,t){t.d(r,{C1:()=>M,Fm:()=>b,Ih:()=>w,M6:()=>c,OZ:()=>m,PY:()=>d,Qo:()=>v,U$:()=>E});var i=t(89317),a=t(66552),n=t(5443),s=t(16930),o=t(97159),l=t(88625),y=t(43440),p=t(78553),u=t(96184);const d={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:i.K}}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,r)=>!r.disablePopup},write:{enabled:!0,writer(e,r,t){r[t]=!e}}}},g={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:i.K}}},m={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},L={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:i.K}}},h={value:null,type:l.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:i.K}}};function v(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const S={write:{enabled:!0,layerContainerTypes:i.K},read:!0},f={type:Number,json:{origins:{"web-document":S,"portal-item":{write:{layerContainerTypes:i.K}}}}},w={...f,json:{...f.json,origins:{"web-document":{...S,write:{enabled:!0,layerContainerTypes:i.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,r,t)=>t&&"service"!==t.origin||!r.drawingInfo||void 0===r.drawingInfo.transparency?r.layerDefinition?.drawingInfo&&void 0!==r.layerDefinition.drawingInfo.transparency?(0,p.D)(r.layerDefinition.drawingInfo.transparency):void 0:(0,p.D)(r.drawingInfo.transparency)}}},b={type:n.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,r)=>{let t=n.A.fromJSON(e);return null!=r.spatialReference&&"object"==typeof r.spatialReference&&(t.spatialReference=s.A.fromJSON(r.spatialReference)),t}}}},read:!1}},I={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},T={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:i.K}}},C={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:i.K}}},M={json:{write:{ignoreOrigin:!0,layerContainerTypes:i.K},origins:{"web-map":{read:!1,write:!1}}}},O={type:y.A,json:{name:"attributeTableInfo",write:!0}},A=new a.J({High:"high",Medium:"medium",Low:"low",None:"none"}),x={type:A.apiValues,json:{name:"layerDefinition.barrierWeight",default:"high",read:A.read,write:A.write,origins:{service:{read:!1}}}};function G(e){return{name:"layerDefinition.timeInfo",read:!0,write:{enabled:!0,overridePolicy(r,t){return{enabled:!0,allowNull:this.originIdOf(t)>=3,ignoreOrigin:!!e&&this.originIdOf(t)<3}}}}}function E(e){let r=e?.alwaysWriteNonItemOrigin,t={[e?.webDocumentOrigin??"web-document"]:G(r),"portal-item":G(r)};return e?.disableServiceOrigin&&(t.service={read:!1,write:!1}),{type:u.A,json:{name:e?.name,origins:t}}}t.d(r,["Yj",0,h,"es",0,x,"fV",0,L,"hG",0,C,"hn",0,T,"id",0,I,"kF",0,g,"ke",0,f,"zQ",0,O])},6345(e,r,t){t.d(r,{Bu:()=>S,VH:()=>v});var i=t(44208);const a={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},n={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,i.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},o={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},y={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},p={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},u={ArcGISFeatureLayer:"FeatureLayer"},d={...n,LinkChartLayer:"LinkChartLayer"},c=a,g=s,m={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",ParquetLayer:"ParquetLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},L=s;function h(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return o;case"basemap-ground-layers":return l;case"ground":return y;case"tables":return u;default:return p}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return c;case"tables":return g;default:return d}default:switch(e.layerContainerType){case"basemap-base-layers":return a;case"tables":return s;case"ground":case"basemap-ground-layers":return;default:return n}}}function v(e,r){if(!r)return"UnknownLayer";if("DefaultTileLayer"===r){let r="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":r="TileLayer";break;case"ground":r="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":r="TileLayer"}return r}return h(e)?.[r]??"UnknownLayer"}function S(e,r,t){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===r&&"dimension-feature"!==t)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(r){case"ArcGISDimensionLayer":if("dimension"!==t)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===r&&"dimension-feature"!==t)return!1}let i=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return L;default:return m}return h(e)}(e)?.[r];return null!=i&&"UnknownLayer"!==i&&"UnsupportedLayer"!==i}},31756(e,r,t){var i=t(86211),a=t(79258);const n={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",a.$O.radius)};t.d(r,["j",0,n])},88625(e,r,t){t.d(r,{A:()=>v});var i,a=t(32198),n=t(91429),s=t(69540),o=t(66552),l=t(25482),y=t(97768),p=t(30524);let u=i=class extends l.o{constructor(e){super(e),this.expression=void 0,this.title=void 0}async collectRequiredFields(e){return(0,p.Dx)(e,null,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,a.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"expression",void 0),(0,a.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),u=i=(0,a.Cg)([(0,n.$K)("esri.symbols.support.FeatureExpressionInfo")],u);const d=u;var c=t(16271),g=t(36005),m=t(43937);const L=(0,o.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),h=new o.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let v=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,r){return null!=e?e.expression?e:void 0:r.featureExpression&&0===r.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,r,t,i){r[t]=e.write({},i),"0"===e.expression&&(r.featureExpression={value:0})}get mode(){let{offset:e,featureExpressionInfo:r}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||r?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,r){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,r):null}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,y.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,a.Cg)([(0,n.MZ)({type:d,json:{write:!0}})],v.prototype,"featureExpressionInfo",void 0),(0,a.Cg)([(0,g.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],v.prototype,"readFeatureExpressionInfo",null),(0,a.Cg)([(0,m.K)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],v.prototype,"writeFeatureExpressionInfo",null),(0,a.Cg)([(0,n.MZ)({type:L.apiValues,nonNullable:!0,json:{type:L.jsonValues,read:L.read,write:{writer:L.write,isRequired:!0}}})],v.prototype,"mode",null),(0,a.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],v.prototype,"offset",void 0),(0,a.Cg)([(0,n.MZ)({type:c.KQ,json:{type:String,read:h.read,write:h.write}})],v.prototype,"unit",null),v=(0,a.Cg)([(0,n.$K)("esri.symbols.support.ElevationInfo")],v)},16271(e,r,t){t.d(r,{Ao:()=>n});var i=t(4576),a=t(31756);function n(e){return 1/(a.j[e]||1)}const s=function(){let e=Object.keys(a.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}();t.d(r,["KQ",0,s])},43440(e,r,t){t.d(r,{A:()=>O});var i=t(32198),a=t(91429),n=t(25482),s=t(4718),o=t(69540),l=t(10107),y=t(64108);let p=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)()],p.prototype,"type",void 0),p=(0,i.Cg)([(0,y.$K)("esri.tables.elements.AttributeTableElement")],p);const u=p;let d=class extends((0,o.OU)(u)){constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return super.clone()}};(0,i.Cg)([(0,a.MZ)({type:["auto"],json:{write:!0}})],d.prototype,"displayType",void 0),(0,i.Cg)([(0,a.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,a.$K)("esri.tables.elements.AttributeTableAttachmentElement")],d);const c=d;let g=class extends((0,o.OU)(u)){constructor(e){super(e),this.description=null,this.fieldName=null,this.label=null,this.type="field"}clone(){return super.clone()}};(0,i.Cg)([(0,a.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"label",void 0),(0,i.Cg)([(0,a.MZ)({type:["field"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,a.$K)("esri.tables.elements.AttributeTableFieldElement")],g);const m=g;var L=t(56507);let h=class extends((0,o.OU)(u)){constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return super.clone()}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{type:L.jz,write:{enabled:!0,isRequired:!0}}})],h.prototype,"relationshipId",void 0),(0,i.Cg)([(0,a.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],h.prototype,"type",void 0),h=(0,i.Cg)([(0,a.$K)("esri.tables.elements.AttributeTableRelationshipElement")],h);const v=h,S={base:u,key:"type",typeMap:{attachment:c,field:m,relationship:v}};let f=class extends((0,o.OU)(u)){constructor(e){super(e),this.elements=null,this.type="group"}clone(){return super.clone()}};(0,i.Cg)([(0,a.MZ)({types:[S],json:{name:"attributeTableElements",write:!0}})],f.prototype,"elements",void 0),(0,i.Cg)([(0,a.MZ)({type:["group"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],f.prototype,"type",void 0),f=(0,i.Cg)([(0,a.$K)("esri.tables.elements.AttributeTableGroupElement")],f);const w=f;let b=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.field=null,this.order=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],b.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:["asc","desc"],json:{write:!0}})],b.prototype,"order",void 0),b=(0,i.Cg)([(0,a.$K)("esri.tables.support.FieldOrder")],b);const I=b;var T;const C=function(e){return{typesWithGroup:{base:u,key:"type",typeMap:{attachment:c,field:m,group:e,relationship:v}},typesWithoutGroup:S}}(w);let M=T=class extends n.o{constructor(e){super(e),this.elements=null,this.orderByFields=null}clone(){return new T({elements:(0,s.o8)(this.elements),orderByFields:(0,s.o8)(this.orderByFields)})}};(0,i.Cg)([(0,a.MZ)({types:[C.typesWithGroup],json:{name:"attributeTableElements",write:!0}})],M.prototype,"elements",void 0),(0,i.Cg)([(0,a.MZ)({type:[I],json:{write:!0}})],M.prototype,"orderByFields",void 0),M=T=(0,i.Cg)([(0,a.$K)("esri.tables.AttributeTableTemplate")],M);const O=M}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5141],{5141(e,t,l){l.r(t),l.d(t,{build:()=>r.b}),l(14113),l(72722),l(96336),l(53466),l(72824),l(54154),l(9169),l(12696),l(32680),l(77695),l(68785),l(28390),l(96777),l(62602),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(34711),l(71020),l(58614),l(20693),l(33079),l(31821),l(63761),l(24111),l(84368);var r=l(28491)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2491],{11006(e,t,n){function i(e,t,n,i,o){r(e,t,n||0,i||e.length-1,o||s)}function r(e,t,n,i,s){for(;i>n;){if(i-n>600){var l=i-n+1,a=t-n+1,u=Math.log(l),h=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*h*(l-h)/l)*(a-l/2<0?-1:1);r(e,t,Math.max(n,Math.floor(t-a*h/l+c)),Math.min(i,Math.floor(t+(l-a)*h/l+c)),s)}var d=e[t],p=n,m=i;for(o(e,n,t),s(e[i],d)>0&&o(e,n,i);p<m;){for(o(e,p,m),p++,m--;s(e[p],d)<0;)p++;for(;s(e[m],d)>0;)m--}0===s(e[n],d)?o(e,n,m):o(e,++m,i),m<=t&&(n=m+1),t<=m&&(i=m-1)}}function o(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function s(e,t){return e<t?-1:+(e>t)}n.d(t,{q:()=>i})},40876(e,t,n){n.d(t,{Eq:()=>p,G1:()=>f,Q6:()=>_,TS:()=>o,V6:()=>r,Vm:()=>m,ay:()=>a,c1:()=>g,c4:()=>s,iw:()=>x,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const i={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 r(e){return!!i[e]||!!i[e.toLowerCase()]}function o(e){return i[e]??i[e.toLowerCase()]}function s(e){return[...o(e)]}function l(e,t,n){n<0&&++n,n>1&&--n;let i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function a(e,t,n,i=1){let r=(e%360+360)%360/360,o=n<=.5?n*(t+1):n+t-n*t,s=2*n-o;return[Math.round(255*l(s,o,r+1/3)),Math.round(255*l(s,o,r)),Math.round(255*l(s,o,r-1/3)),i]}function u(e){let t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,o=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let l,a=[0,0,0,1];return o&&(l=s&i,s>>=n,a[3]=r*l/255),l=s&i,s>>=n,a[2]=r*l,l=s&i,s>>=n,a[1]=r*l,l=s&i,s>>=n,a[0]=r*l,a}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?f(e[3]):1,e}function p(e){let t=r(e)?o(e):null;return t??=c(e),t??=h(e),t}function m(e){let t=p(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function f(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const x=1/2.2;function _(e){return e**2.2}function v(e){return e**x}},62885(e,t,n){n.d(t,{H:()=>o,V:()=>r});var i=n(7762);function r(e,t,n=i.A){return t||=new n,t===e||t.destroyed||(t.removeAll(),(r=e)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?t.addMany(e):e&&t.add(e)),t;var r}function o(e){return e}},21287(e,t,n){n.d(t,{M5:()=>c,eV:()=>h});var i=n(78888),r=n(26306),o=n(49186),s=n(17676),l=n(84952);let a=null,u=!0;function h(e,t,n,i){if(!t||!n)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch{u=!1}let r=function(e,t,n){return n||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),n.getContext("2d").createImageData(e,t)}(t,n,i);return r.data.set(e,0),r}async function c(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let n=(0,l.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,r.M)(n.data),mediaType:n.mediaType};let o=await(0,i.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),h="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:i}=await n.e(820).then(()=>n(10820));if(e(a))return i(a,t)}if(h){let{isAnimatedPNG:e,parseApng:i}=await n.e(2390).then(()=>n(22390));if(e(a))return i(a,t)}return async function(e,t){let n=window.URL.createObjectURL(e);try{let{data:e}=await(0,i.A)(n,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${n}`)}finally{window.URL.revokeObjectURL(n)}}(new Blob([a],{type:u}),t)}},48163(e,t,n){function i(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function l(){return o(-1,-1)}function a(){return o(1,0)}function u(){return o(0,1)}n.d(t,{IA:()=>c,Un:()=>h,fA:()=>o,o8:()=>r,vt:()=>i});const h=s(),c=l(),d=a(),p=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let n=Math.min(2,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:o,negativeOnes:l,ones:s,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>I,Bw:()=>o,C:()=>s,Cc:()=>C,DI:()=>M,Il:()=>Y,Io:()=>x,Ln:()=>y,Om:()=>P,Qr:()=>c,Re:()=>u,S8:()=>b,T9:()=>f,WQ:()=>a,Z0:()=>A,_S:()=>p,aI:()=>E,ei:()=>R,fw:()=>S,gL:()=>O,hG:()=>_,hZ:()=>l,hs:()=>g,jb:()=>k,jk:()=>m,lo:()=>H,lw:()=>h,m3:()=>v,oW:()=>Z,t2:()=>T,tn:()=>d,uE:()=>U,ze:()=>w});var i=n(51850),r=n(34304);function o(e){let t=e[0],n=e[1],i=e[2];return Math.sqrt(t*t+n*n+i*i)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,n,i){return e[0]=t,e[1]=n,e[2]=i,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function h(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function f(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function x(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+i*i+r*r)}function _(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return n*n+i*i+r*r}function v(e){let t=e[0],n=e[1],i=e[2];return t*t+n*n+i*i}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t=e){let n=t[0],i=t[1],r=t[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function P(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,n){let i=t[0],r=t[1],o=t[2],s=n[0],l=n[1],a=n[2];return e[0]=r*a-o*l,e[1]=o*s-i*a,e[2]=i*l-r*s,e}function C(e,t,n,i){let r=t[0],o=t[1],s=t[2];return e[0]=r+i*(n[0]-r),e[1]=o+i*(n[1]-o),e[2]=s+i*(n[2]-s),e}function A(e,t,n){let i=t[0],r=t[1],o=t[2];return e[0]=n[0]*i+n[4]*r+n[8]*o+n[12],e[1]=n[1]*i+n[5]*r+n[9]*o+n[13],e[2]=n[2]*i+n[6]*r+n[10]*o+n[14],e}function R(e,t,n){let i=t[0],r=t[1],o=t[2];return e[0]=i*n[0]+r*n[3]+o*n[6],e[1]=i*n[1]+r*n[4]+o*n[7],e[2]=i*n[2]+r*n[5]+o*n[8],e}function O(e,t,n){return S(e,t,n[0],n[1],n[2],n[3])}function S(e,t,n,i,r,o){let s=t[0],l=t[1],a=t[2],u=i*a-r*l,h=r*s-n*a,c=n*l-i*s,d=i*c-r*h,p=r*u-n*c,m=n*h-i*u,f=2*o;return e[0]=s+u*f+2*d,e[1]=l+h*f+2*p,e[2]=a+c*f+2*m,e}const L=(0,i.vt)(),B=(0,i.vt)();function T(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function E(e,t){if(e===t)return!0;let n=e[0],i=e[1],o=e[2],s=t[0],l=t[1],a=t[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))}function Z(e,t,n){let i=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=r*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=u,j=h,N=c,X=x,H=_,Y=o,U=v;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){b(L,e),b(B,t);let n=P(L,B);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(e,t,n){return e[0]=t[0]+n[12],e[1]=t[1]+n[13],e[2]=t[2]+n[14],e},bezier:function(e,t,n,i,r,o){let s=1-o,l=s*s,a=o*o,u=l*s,h=3*o*l,c=3*a*s,d=a*o;return e[0]=t[0]*u+n[0]*h+i[0]*c+r[0]*d,e[1]=t[1]*u+n[1]*h+i[1]*c+r[1]*d,e[2]=t[2]*u+n[2]*h+i[2]*c+r[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:I,crossAndNormalize:function(e,t,n){let i=t[0],r=t[1],o=t[2],s=n[0],l=n[1],a=n[2],u=r*a-o*l,h=o*s-i*a,c=i*l-r*s,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:Z,dist:X,distance:x,div:N,divide:c,dot:P,equals:E,exactEquals:T,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,i,r,o){let s=o*o,l=s*(2*o-3)+1,a=s*(o-2)+o,u=s*(o-1),h=s*(3-2*o);return e[0]=t[0]*l+n[0]*a+i[0]*u+r[0]*h,e[1]=t[1]*l+n[1]*a+i[1]*u+r[1]*h,e[2]=t[2]*l+n[2]*a+i[2]*u+r[2]*h,e},inverse:M,len:Y,length:o,lerp:C,max:f,min:m,mul:j,multiply:h,negate:w,normalize:b,random:function(e,t=1){let n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(i)*s,e[1]=Math.sin(i)*s,e[2]=o*t,e},rotateX:function(e,t,n,i){let r=[],o=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,i){let r=[],o=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,i){let r=[],o=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,scaleTo:function(e,t){return g(e,e,t/Y(e))},set:l,sign:p,sqrDist:H,sqrLen:U,squaredDistance:_,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:u,transformMat3:R,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:O,transformQuatValues:S},Symbol.toStringTag,{value:"Module"}))},75503(e,t,n){n.d(t,{wq:()=>l});var i=n(4576),r=n(21818),o=(n(44208),n(15142)),s=n(11006);class l{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),M.prune(),b.prune(),P.prune()}all(e){a(this._data,e)}search(e,t){let n=this._data,i=this._toBBox;if(_(e,n))for(w.clear();n;){for(let r=0,o=n.children.length;r<o;r++){let o=n.children[r],s=n.leaf?i(o):o;_(e,s)&&(n.leaf?t(o):x(e,s)?a(o,t):w.push(o))}n=w.pop()}}collides(e){let t=this._data,n=this._toBBox;if(!_(e,t))return!1;for(w.clear();t;){for(let i=0,r=t.children.length;i<r;i++){let r=t.children[i],o=t.leaf?n(r):r;if(_(e,o)){if(t.leaf||x(e,o))return!0;w.push(r)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,n=this._data,o=null,s=0,l=!1,a=this._toBBox(e);for(b.clear(),P.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],s=P.pop()??0,l=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,r.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),b.push(n),this._condense(b),this;l||n.leaf||!x(n,a)?o?(s++,n=o.children[s],l=!1):n=null:(b.push(n),P.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){let r=n-t+1,o=this._maxEntries;if(r<=o){let i=new A(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(o)),o=Math.ceil(r/o**(i-1)));let s=new R([]);s.height=i;let l=Math.ceil(r/o),a=l*Math.ceil(Math.sqrt(o));v(e,t,n,a,this._compareMinX);for(let r=t;r<=n;r+=a){let t=Math.min(r+a-1,n);v(e,r,t,l,this._compareMinY);for(let n=r;n<=t;n+=l){let r=Math.min(n+l-1,t);s.children.push(this._build(e,n,r,i-1))}}return u(s,this._toBBox),s}_insert(e,t,n){let i=this._toBBox,r=n?e:i(e);b.clear();let o=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let o=0,s=t.children.length;o<s;o++){let s=t.children[o],l=m(s),a=g(e,s)-l;a<r?(r=a,i=l<i?l:i,n=s):a===r&&l<i&&(i=l,n=s)}t=n||t.children[0]}return t}(r,this._data,t,b);for(o.children.push(e),c(o,r);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)c(t.data[i],e)}(r,b,t)}_split(e,t){let n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);let o=this._chooseSplitIndex(n,r,i);if(!o)return;let s=n.children.splice(o,n.children.length-o),l=n.leaf?new A(s):new R(s);l.height=n.height,u(n,this._toBBox),u(l,this._toBBox),t?e.data[t-1].children.push(l):this._splitRoot(n,l)}_splitRoot(e,t){this._data=new R([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,r,o;i=r=1/0;for(let s=t;s<=n-t;s++){let t=h(e,0,s,this._toBBox),l=h(e,s,n,this._toBBox),a=y(t,l),u=m(t)+m(l);a<i?(i=a,o=s,r=u<r?u:r):a===i&&u<r&&(r=u,o=s)}return o}_chooseSplitAxis(e,t,n){let i=e.leaf?this._compareMinX:d,r=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);let r=this._toBBox,o=h(e,0,t,r),s=h(e,n-t,n,r),l=f(o)+f(s);for(let i=t;i<n-t;i++){let t=e.children[i];c(o,e.leaf?r(t):t),l+=f(o)}for(let i=n-t-1;i>=t;i--){let t=e.children[i];c(s,e.leaf?r(t):t),l+=f(s)}return l}_condense(e){for(let t=e.length-1;t>=0;t--){let n=e.data[t];if(0===n.children.length)if(t>0){let r=e.data[t-1],o=r.children;o.splice((0,i.qh)(o,n,o.length,r.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){let n=e;for(M.clear();n;){if(!0===n.leaf)for(let e of n.children)t((0,r.z)(e));else M.pushArray(n.children);n=M.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,n,i,r){r||=new A([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let o,s=t;s<n;s++)o=e.children[s],c(r,e.leaf?i(o):o);return r}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function y(e,t){let n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,o-i)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e,t,n,i,r){let o=[t,n];for(;o.length;){let t=o.pop(),n=o.pop();if(t-n<=i)continue;let l=n+Math.ceil((t-n)/i/2)*i;(0,s.q)(e,l,n,t,r),o.push(n,l,l,t)}}const w=new o.A,M=new o.A,b=new o.A,P=new o.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class C extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class A extends C{constructor(e){super(),this.children=e,this.leaf=!0}}class R extends C{constructor(e){super(),this.children=e,this.leaf=!1}}},16494(e,t,n){var i=n(8673);const r=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),o="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),s=new i.I({whiteList:r,onTagAttr:(e,t,n)=>{let i=`${t}="${n}"`;if(o.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l={sanitizeHtml:e=>s.sanitize(e)},a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);n.d(t,["KO",0,l,"Nd",0,a,"W5",0,s])},90629(e,t,n){n.d(t,{L7:()=>o,Lz:()=>s,PN:()=>l,cr:()=>a,gs:()=>h,ps:()=>r,r_:()=>c,tc:()=>u}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,r=l(1),o=s(1);function s(e){return e?e/72*96:0}function l(e){return e?72*e/96:0}function a(e){if("string"==typeof e){let t=e.match(i);if(t){let n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),o="px"===i?l(n):n;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,n=0){return[e,t,n]}},80754(e,t,n){n.d(t,{j7:()=>l,kS:()=>u,kd:()=>a});var i=n(82799),r=n(16930),o=n(52006),s=n(60408);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(let n of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of n)if((0,o.aO)(e)){let[n,i]=e.c;n[0]+=t,i[0]+=t}else if((0,o.FG)(e)){let[n,i]=e.a;n[0]+=t,i[0]+=t}else if((0,o.n1)(e)){let[n,i,r]=e.b;n[0]+=t,i[0]+=t,r[0]+=t}else e[0]+=t;for(let n of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of n)e[0]+=t;return e}},89056(e,t,n){n.d(t,{b3:()=>c,jZ:()=>h});var i=n(12195),r=n(19419),o=n(537),s=n(95108),l=n(60408),a=n(80754),u=n(21325);function h(e){return d(e,!0)}function c(e){return d(e,!1)}function d(e,t){if(null==e)return null;let n=e.spatialReference,r=(0,u.Vp)(n),s=(0,i.W)(e)?e.toJSON():e;if(!r)return s;let h=(0,u.K8)(n)?102100:4326,c=a.j7[h].maxX,d=a.j7[h].minX;if((0,l.fT)(s))return m(s,c,d);if((0,l.U9)(s))return s.points=s.points.map(e=>m(e,c,d)),s;if((0,l.ZC)(s))return p(s,r);if((0,l.Bi)(s)||(0,l.Rg)(s)){let e=(0,o.Rg)(v,s),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},i=(0,a.kd)(n.xmin,d),r=2*c*i,l=0===r?s:(0,a.kS)(s,r);return n.xmin+=r,n.xmax+=r,n.xmax>c?x(l,c,t):n.xmin<d?x(l,d,t):l}return s}function p(e,t){if(!t)return e;let n=function(e,t){let n=[],{ymin:i,ymax:r,xmin:o,xmax:s}=e,l=e.xmax-e.xmin,[a,u]=t.valid,{x:h,frameId:c}=f(e.xmin,t),{x:d,frameId:p}=f(e.xmax,t),m=h===d&&l>0;if(l>2*u){let e={xmin:o<s?h:d,ymin:i,xmax:u,ymax:r},t={xmin:a,ymin:i,xmax:o<s?d:h,ymax:r},l={xmin:0,ymin:i,xmax:u,ymax:r},m={xmin:a,ymin:i,xmax:0,ymax:r},f=[],y=[];g(e,l)&&f.push(c),g(e,m)&&y.push(c),g(t,l)&&f.push(p),g(t,m)&&y.push(p);for(let e=c+1;e<p;e++)f.push(e),y.push(e);n.push(new _(e,[c]),new _(t,[p]),new _(l,f),new _(m,y))}else h>d||m?n.push(new _({xmin:h,ymin:i,xmax:u,ymax:r},[c]),new _({xmin:a,ymin:i,xmax:d,ymax:r},[p])):n.push(new _({xmin:h,ymin:i,xmax:d,ymax:r},[c]));return n}(e,t).map(e=>e.extent);return n.length<2?n[0]||e:n.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:n.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,n){if(Array.isArray(e)){let i=e[0];if(i>t){let n=(0,a.kd)(i,t);e[0]=i+-2*t*n}else if(i<n){let t=(0,a.kd)(i,n);e[0]=i+-2*n*t}}else{let i=e.x;if(i>t){let n=(0,a.kd)(i,t);e.x+=-2*t*n}else if(i<n){let t=(0,a.kd)(i,n);e.x+=-2*n*t}}return e}function f(e,t){let n,[i,r]=t.valid,o=2*r,s=0;return e>r?(n=Math.ceil(Math.abs(e-r)/o),e-=n*o,s=n):e<i&&(n=Math.ceil(Math.abs(e-i)/o),e+=n*o,s=-n),{x:e,frameId:s}}function g(e,t){let{xmin:n,ymin:i,xmax:r,ymax:o}=t;return y(e,n,i)&&y(e,n,o)&&y(e,r,o)&&y(e,r,i)}function y(e,t,n){return t>=e.xmin&&t<=e.xmax&&n>=e.ymin&&n<=e.ymax}function x(e,t,n=!0){let i=!(0,l.Rg)(e);if(i&&(0,s.m3)(e),n)return(new w).cut(e,t);let r=i?e.rings:e.paths,o=i?4:2,a=r.length,u=-2*t;for(let e=0;e<a;e++){let t=r[e];if(t&&t.length>=o){let e=[];for(let[n,...i]of t)e.push([n+u,...i]);r.push(e)}}return i?e.rings=r:e.paths=r,e}class _{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,r.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let n;if(this._xCut=t,e.rings)this._closed=!0,n=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,n=e.paths,this._minPts=2}for(let e of n){if(!e||e.length<this._minPts)continue;let t=!0;for(let n of e)t?(this.moveTo(n),t=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&n.push(e);let i=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=i;n.push(e)}return this._closed?e.rings=n:e.paths=n,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let n=this._intersect(this._prevPt,e);this._lineTo(n,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(M(e,t<=0?e[0]:this._xCut)),this._lineOut.push(M(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(b(this._lineIn,e,t<=0?e[0]:this._xCut),b(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let n=(this._xCut-e[0])/(t[0]-e[0]),i=[this._xCut,e[1]+n*(t[1]-e[1])],r=Math.min(e.length,t.length);for(let o=2;o<r;o++)i.push(e[o]+n*(t[o]-e[o]));return i}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function M(e,t){let n=e.slice();return n[0]=t,n}function b(e,t,n){let i=e.length;i>1&&e[i-1][0]===n&&e[i-2][0]===n?e[i-1]=M(t,n):e.push(M(t,n))}},90182(e,t,n){n.r(t),n.d(t,{default:()=>ot});var i=n(32198),r=n(91429),o=n(7762),s=n(49186),l=n(53966),a=n(25728),u=n(17676),h=n(16930);const c=Symbol("ImageElementInstance"),d=Symbol("VideoElementInstance");function p(e){return"object"==typeof e&&!!e&&c in e}function m(e){return p(e)||function(e){return"object"==typeof e&&!!e&&d in e}(e)}var f=n(4146),g=n(63074),y=n(34287),x=n(8303),_=n(25036),v=n(69540),w=n(25482),M=n(77690),b=n(29242),P=n(37585),I=n(48163),C=n(35522);const A=(0,n(51850).vt)(),R=(0,b.vt)(),O=(0,b.vt)(),S=(0,b.vt)();function L(e,t,n){return(0,C.hZ)(A,t[0],t[1],1),(0,C.ei)(A,A,(0,M.mg)(R,n)),0===A[2]?(0,P.hZ)(e,A[0],A[1]):(0,P.hZ)(e,A[0]/A[2],A[1]/A[2])}function B(e,t,n){return T(O,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),T(S,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,M.lw)(e,(0,M.KC)(O,O),S),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function T(e,t,n,i,r,o,s,l,a){(0,M.hZ)(e,t,i,o,n,r,s,1,1,1),(0,C.hZ)(A,l,a,1),(0,M.KC)(R,e);let[u,h,c]=(0,C.ei)(A,A,(0,M.mg)(R,R));return(0,M.hZ)(R,u,0,0,0,h,0,0,0,c),(0,M.lw)(e,R,e)}var E=n(90629),Z=n(86738),k=n(39829),j=n(99917),N=n(56560);const X=e=>{let t=e;return class extends t{projectOrWarn(e,t){if(null==e)return e;let{geometry:n,pending:i}=(0,j.projectOrLoad)(e,t);return i?null:i||n?n:(l.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}}};var H=n(36005),Y=n(43937);const U=(0,b.vt)(),q=(0,I.vt)();let z=class extends w.o{};(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],z.prototype,"x",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],z.prototype,"y",void 0),z=(0,i.Cg)([(0,r.$K)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],z);let $=class extends((0,w.T)(X(v.Pw))){constructor(e){super(e),this.height=0,this.type="control-points",this.width=0}get controlPoints(){return this._get("controlPoints")??null}set controlPoints(e){this._set("controlPoints",e)}readControlPoints(e,t){let n=h.A.fromJSON(t.spatialReference),i=(0,b.fA)(...t.coefficients,1);return e.map(e=>((0,P.hZ)(q,e.x,e.y),L(q,q,i),{sourcePoint:e,mapPoint:new Z.A({x:q[0],y:q[1],spatialReference:n})}))}writeControlPoints(e,t,n,i){if(null==this.transform){let e=new s.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:i?.layer,georeference:this});i?.messages?i.messages.push(e):l.A.getLogger(this).error(e.name,e.message)}else null!=e&&F(e[0])&&(t.controlPoints=e.map(e=>{let t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;let e=this._updateTransform(U);if(null==e||!F(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,i){let r=(0,I.fA)(0,n),o=(0,I.fA)(0,0),s=(0,I.fA)(t,0),l=(0,I.fA)(t,n);return L(r,r,e),L(o,o,e),L(s,s,e),L(l,l,e),new k.A({rings:[[r,o,s,l,r]],spatialReference:i})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!F(this.controlPoints[0]))return;let t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;let{width:n,height:i}=this,{rings:[[r,o,s,l]]}=e,a=new N.A({sourcePoint:(0,E.tc)(0,i),mapPoint:new Z.A({x:r[0],y:r[1],spatialReference:t})}),u=new N.A({sourcePoint:(0,E.tc)(0,0),mapPoint:new Z.A({x:o[0],y:o[1],spatialReference:t})}),h=new N.A({sourcePoint:(0,E.tc)(n,0),mapPoint:new Z.A({x:s[0],y:s[1],spatialReference:t})}),c=new N.A({sourcePoint:(0,E.tc)(n,i),mapPoint:new Z.A({x:l[0],y:l[1],spatialReference:t})});F(a)&&F(u)&&F(h)&&F(c)&&(ie(U,a,u,h,c),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,P.hZ)(q,e.x,e.y),L(q,q,U),{sourcePoint:e,mapPoint:new Z.A({x:q[0],y:q[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,M.B8)((0,b.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!F(this.controlPoints[0]))return null;(0,P.hZ)(q,e.x,e.y);let t=this.controlPoints[0].mapPoint.spatialReference;return L(q,q,this.transform),new Z.A({x:q[0],y:q[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!F(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,j.projectOrLoad)(e,t).geometry)?null:((0,P.hZ)(q,e.x,e.y),L(q,q,this.inverseTransform),(0,E.tc)(q[0],q[1]))}toSourceNormalized(e){let t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){let{controlPoints:t,width:n,height:i}=this;if(!(null!=t&&n>0&&i>0))return null;let[r,o,s,l]=t;if(!F(r))return null;let a=r.mapPoint.spatialReference,u=this._projectControlPoint(o,a),h=this._projectControlPoint(s,a),c=this._projectControlPoint(l,a);if(!(u.valid&&h.valid&&c.valid&&F(u.controlPoint)))return null;e??=(0,b.vt)();let d=null;return d=F(h.controlPoint)&&F(c.controlPoint)?ie(e,r,u.controlPoint,h.controlPoint,c.controlPoint):F(h.controlPoint)?function(e,t,n,i){return ne(V,D,t),ne(W,J,n),ne(G,Q,i),(0,P.Cc)(K,V,W,.5),(0,P.e$)(K,G,K,Math.PI),(0,P.Cc)(ee,D,J,.5),(0,P.e$)(ee,Q,ee,Math.PI),le(e,V,W,G,K,D,J,Q,ee)}(e,r,u.controlPoint,h.controlPoint):function(e,t,n){return ne(V,D,t),ne(W,J,n),(0,P.e$)(G,W,V,te),(0,P.e$)(K,V,W,te),(0,P.e$)(Q,J,D,-te),(0,P.e$)(ee,D,J,-te),le(e,V,W,G,K,D,J,Q,ee)}(e,r,u.controlPoint),d.every(e=>0===e)?null:d}_projectControlPoint(e,t){if(!F(e))return{valid:!0,controlPoint:e};let{sourcePoint:n,mapPoint:i}=e,{geometry:r,pending:o}=(0,j.projectOrLoad)(i,t);return o?{valid:!1,controlPoint:null}:o||r?{valid:!0,controlPoint:new N.A({sourcePoint:n,mapPoint:r})}:(l.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:i.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function F(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,i.Cg)([(0,r.MZ)({type:[N.A],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[z],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:h.A,isRequired:!0}}}}})],$.prototype,"controlPoints",null),(0,i.Cg)([(0,H.w)("controlPoints")],$.prototype,"readControlPoints",null),(0,i.Cg)([(0,Y.K)("controlPoints")],$.prototype,"writeControlPoints",null),(0,i.Cg)([(0,r.MZ)({clonable:!1})],$.prototype,"coords",null),(0,i.Cg)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],$.prototype,"height",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],$.prototype,"inverseTransform",null),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],$.prototype,"transform",null),(0,i.Cg)([(0,r.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],$.prototype,"width",void 0),$=(0,i.Cg)([(0,r.$K)("esri.layers.support.ControlPointsGeoreference")],$);const V=(0,I.vt)(),W=(0,I.vt)(),G=(0,I.vt)(),K=(0,I.vt)(),D=(0,I.vt)(),J=(0,I.vt)(),Q=(0,I.vt)(),ee=(0,I.vt)(),te=Math.PI/2;function ne(e,t,n){(0,P.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,P.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function ie(e,t,n,i,r){return ne(V,D,t),ne(W,J,n),ne(G,Q,i),ne(K,ee,r),le(e,V,W,G,K,D,J,Q,ee)}const re=Array(8).fill(0),oe=Array(8).fill(0);function se(e,t,n,i,r){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=i[0],e[5]=i[1],e[6]=r[0],e[7]=r[1],e}function le(e,t,n,i,r,o,s,l,a){return B(e,se(re,t,n,i,r),se(oe,o,s,l,a))}const ae=$;var ue=n(21287),he=n(84952),ce=n(13069),de=n(85648),pe=n(78888),me=n(97159),fe=n(92474),ge=n(64108);let ye=0;const xe=e=>{let t=e,n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:ye++})}};return n=(0,i.Cg)([(0,ge.$K)("esri.core.NumericIdentifiable")],n),n};var _e=n(59923),ve=n(35666),we=n(5443),Me=n(21325);const be=(0,I.vt)();let Pe=class extends(X(v.Pw)){constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:n,bottomRight:i}=this;if(null==e||null==t||null==n||null==i)return null;let r=e.spatialReference;return t=this.projectOrWarn(t,r),n=this.projectOrWarn(n,r),i=this.projectOrWarn(i,r),null==t||null==n||null==i?null:new k.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[i.x,i.y],[n.x,n.y]]],spatialReference:r})}set coords(e){let{topLeft:t}=this;if(null==t)return;let n=t.spatialReference;if(null==(e=this.projectOrWarn(e,n)))return;let{rings:[[i,r,o,s]]}=e;this.bottomLeft=new Z.A({x:i[0],y:i[1],spatialReference:n}),this.topLeft=new Z.A({x:r[0],y:r[1],spatialReference:n}),this.topRight=new Z.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new Z.A({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(e){let{topLeft:t,topRight:n,bottomRight:i,bottomLeft:r}=this;if(null==e||null==t||null==n||null==i||null==r)return null;let o=t.spatialReference;e=e.normalize();let s=(0,j.projectOrLoad)(e,o).geometry;if(null==s)return null;(0,P.hZ)(be,s.x,s.y);let l=B((0,b.vt)(),[t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y],[0,0,0,1,1,0,1,1]);return L(be,be,l),(0,E.tc)(be[0],be[1])}};(0,i.Cg)([(0,r.MZ)({clonable:!1})],Pe.prototype,"coords",null),(0,i.Cg)([(0,r.MZ)({type:Z.A})],Pe.prototype,"bottomLeft",void 0),(0,i.Cg)([(0,r.MZ)({type:Z.A})],Pe.prototype,"bottomRight",void 0),(0,i.Cg)([(0,r.MZ)({type:Z.A})],Pe.prototype,"topLeft",void 0),(0,i.Cg)([(0,r.MZ)({type:Z.A})],Pe.prototype,"topRight",void 0),Pe=(0,i.Cg)([(0,r.$K)("esri.layers.support.CornersGeoreference")],Pe);const Ie=Pe;var Ce=n(34304),Ae=n(34727);let Re=class extends(X(v.Pw)){constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;let e,{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:o}=this.extent;if(this.rotation){let{x:o,y:s}=this.extent.center,l=Oe(o,s,this.rotation);e=[l(t,n),l(t,r),l(i,r),l(i,n)],e.push(e[0])}else e=[[t,n],[t,r],[i,r],[i,n],[t,n]];return new k.A({rings:[e],spatialReference:o})}set coords(e){if(null==e||null==this.extent)return;let t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;let{rings:[[n,i,r]],extent:{center:{x:o,y:s}}}=e,l=(0,Ae.KJ)(Math.PI/2-Math.atan2(i[1]-n[1],i[0]-n[0])),a=Oe(o,s,-l),[u,h]=a(n[0],n[1]),[c,d]=a(r[0],r[1]);this.extent=new we.A({xmin:u,ymin:h,xmax:c,ymax:d,spatialReference:t}),this.rotation=l}toSourceNormalized(e){let{extent:t,rotation:n}=this;if(null==e||null==t)return null;let{xmin:i,ymin:r,xmax:o,ymax:s,center:l,spatialReference:a}=t;e=e.normalize();let u=(0,j.projectOrLoad)(e,a).geometry;if(null==u)return null;let h=u.x,c=u.y;return n&&([h,c]=Oe(l.x,l.y,-n)(h,c)),(0,E.tc)((0,Ae.hs)(h,i,o,0,1),(0,Ae.hs)(c,s,r,0,1))}};function Oe(e,t,n){let i=(0,Ce.DF)(n),r=Math.cos(i),o=Math.sin(i);return(n,i)=>[r*(n-e)+o*(i-t)+e,r*(i-t)-o*(n-e)+t]}function Se(e,t){let n=(0,ve.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function Le(e,t,n){return{enabled:!Se(n?.layer,n?.origin),ignoreOrigin:!0}}(0,i.Cg)([(0,r.MZ)({clonable:!1})],Re.prototype,"coords",null),(0,i.Cg)([(0,r.MZ)({type:we.A})],Re.prototype,"extent",void 0),(0,i.Cg)([(0,r.MZ)({type:Number})],Re.prototype,"rotation",void 0),Re=(0,i.Cg)([(0,r.$K)("esri.layers.support.ExtentAndRotationGeoreference")],Re);const Be={json:{name:"url",type:String,write:{overridePolicy:Le}}},Te={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:Le}}},Ee={types:{key:"type",base:null,typeMap:{"control-points":ae,corners:Ie,"extent-and-rotation":Re}},json:{types:{key:"type",base:null,typeMap:{"control-points":ae}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let Ze=class extends(xe((0,a.M)(fe.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return ae.fromJSON(e)}writeGeoreference(e,t,n,i){let r=i?.resources?.pendingOperations,o=()=>{let r=function(e,t,n){if(!e||"control-points"===e.type)return e;let{coords:i}=e;if(5!==i?.rings[0]?.length)return null;let[r,o,s,l]=i.rings[0],{spatialReference:a}=i;return new ae({controlPoints:[new N.A({mapPoint:new Z.A({x:r[0],y:r[1],spatialReference:a}),sourcePoint:(0,E.tc)(0,n)}),new N.A({mapPoint:new Z.A({x:o[0],y:o[1],spatialReference:a}),sourcePoint:(0,E.tc)(0,0)}),new N.A({mapPoint:new Z.A({x:s[0],y:s[1],spatialReference:a}),sourcePoint:(0,E.tc)(t,0)}),new N.A({mapPoint:new Z.A({x:l[0],y:l[1],spatialReference:a}),sourcePoint:(0,E.tc)(t,n)})],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(r){if("control-points"!==e.type&&l.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==r.controlPoints?.length)return void(0,_e.qt)(i,"ControlPointsGeoreference.controlPoints","only 'control-points' georeference with 4 control points may be persisted.");t[n]=r.write({},i)}};"control-points"!==e.type&&!this.loaded&&r?(t[n]={},r.push(this.load().then(o))):o()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){let{georeference:t,contentWidth:n,contentHeight:i}=this;if(null==e||null==t||0===n||0===i)return null;let r=t.toSourceNormalized(e);return null==r?null:(r.x*=n,r.y*=i,r)}};(0,i.Cg)([(0,r.MZ)(Ee)],Ze.prototype,"georeference",void 0),(0,i.Cg)([(0,H.w)("georeference")],Ze.prototype,"readGeoreference",null),(0,i.Cg)([(0,Y.K)("georeference")],Ze.prototype,"writeGeoreference",null),(0,i.Cg)([(0,r.MZ)({json:{read:!1,write:!1}})],Ze.prototype,"opacity",void 0),Ze=(0,i.Cg)([(0,r.$K)("esri.layers.support.MediaElementBase")],Ze);const ke=Ze;var je;let Ne=class extends ke{static{je=c}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[je]=!0,this.image=null}load(){let e=this.image;if("string"==typeof e){let t=(0,ue.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){let t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new s.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,n){return(0,me.f)(t.url,n)}writeImage(e,t,n,i){if(null==e)return;let r=i?.portalItem,o=i?.resources;if(!r||!o)return void("string"==typeof e&&(t[n]=(0,me.t)(e,i)));let s=function(e){return"string"==typeof e&&!(0,he.DB)(e)&&!(0,he.w8)(e)}(e)?e:null;if(s){if(null==(0,me.i)(s))return void(t[n]=s);let e=(0,me.t)(s,{...i,verifyItemRelativeUrls:i?.verifyItemRelativeUrls?{writtenUrls:i.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(r&&e&&!(0,he.oP)(e))return o.toKeep.push({resource:r.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",o.pendingOperations.push(async function(e){return"string"==typeof e?(0,he.DB)(e)?(0,he.N9)(e):(await(0,pe.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;let t=e instanceof HTMLImageElement?e.naturalWidth:e.width,n=e instanceof HTMLImageElement?e.naturalHeight:e.height,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=t,i.height=n,e instanceof HTMLImageElement?r.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&r.putImageData(e,0,0),i}(e).toBlob(t))}(e).then(e=>{let i=function(e,t){let n=(0,ce.lk)(),i=`${(0,he.fj)("media",n)}.${(0,de.n)({type:"blob",blob:e})}`;return t.resourceFromPath(i)}(e,r);t[n]=i.itemRelativeUrl,o.toAdd.push({resource:i,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,i.Cg)([(0,r.MZ)()],Ne.prototype,"animationOptions",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],Ne.prototype,"content",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],Ne.prototype,"contentWidth",null),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],Ne.prototype,"contentHeight",null),(0,i.Cg)([(0,r.MZ)(Be)],Ne.prototype,"image",void 0),(0,i.Cg)([(0,H.w)("image",["url"])],Ne.prototype,"readImage",null),(0,i.Cg)([(0,Y.K)("image")],Ne.prototype,"writeImage",null),(0,i.Cg)([(0,r.MZ)(Te)],Ne.prototype,"type",void 0),Ne=(0,i.Cg)([(0,r.$K)("esri.layers.support.ImageElement")],Ne);var Xe=n(62885),He=n(65529),Ye=n(61893),Ue=n(36708),qe=n(19419),ze=n(12176),$e=n(6518),Fe=n(56372),Ve=n(89056);let We=class extends Fe.A{constructor(e){super(e)}get bounds(){let e=this.coords;return null==e?.extent?null:(0,qe.VY)(e.extent)}get coords(){let e=this.element.georeference?.coords;return(0,j.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return k.A.fromJSON((0,Ve.jZ)(this.coords))}get normalizedBounds(){let e=null==this.normalizedCoords?null:this.normalizedCoords.extent;return null==e?null:(0,qe.VY)(e)}};(0,i.Cg)([(0,r.MZ)()],We.prototype,"spatialReference",void 0),(0,i.Cg)([(0,r.MZ)()],We.prototype,"element",void 0),(0,i.Cg)([(0,r.MZ)()],We.prototype,"bounds",null),(0,i.Cg)([(0,r.MZ)()],We.prototype,"coords",null),(0,i.Cg)([(0,r.MZ)()],We.prototype,"normalizedCoords",null),(0,i.Cg)([(0,r.MZ)()],We.prototype,"normalizedBounds",null),We=(0,i.Cg)([(0,r.$K)("esri.layers.support.MediaElementView")],We);var Ge,Ke=n(16494),De=n(38969);const Je=Symbol("canplay");let Qe=class extends ke{static{Ge=d}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[Ge]=!0}load(){let e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{let t=document.createElement("video");return t.src=Ke.W5.sanitizeUrl((0,he.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new s.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;let t=(0,Ae.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):l.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,n,i){if(!e)return void(i?.messages&&i.messages.push(new s.A("video-element:unsupported-video","video source is missing")));let r=function(e){return"string"==typeof e&&!(0,he.DB)(e)&&!(0,he.w8)(e)}(e)?e:null;if(!r)return void(i?.messages&&i.messages.push(new s.A("video-element:unsupported-video","video source must be an absolute url")));!(0,he.oP)(r)&&i?.blockedRelativeUrls&&i.blockedRelativeUrls.push(r);let o=(0,he.s2)(r);(0,me.i)(o)?i?.messages&&i.messages.push(new s.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=o}async _preProcessVideoUrl(e){if((0,he.zs)(e))return(0,he.yM)(e);try{return await(0,pe.A)(e,{method:"head"}),e}catch{try{return(0,he.yM)(e,!0)}catch{return e}}}async _loadVideo(e){null==e.srcObject&&"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,he.w8)(e.src)||(e.src=e.src));try{await(0,De.i)(e,e=>this.addHandles(e,Je)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(Je)}}};(0,i.Cg)([(0,r.MZ)()],Qe.prototype,"autoplay",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],Qe.prototype,"content",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],Qe.prototype,"contentWidth",null),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],Qe.prototype,"contentHeight",null),(0,i.Cg)([(0,r.MZ)({type:Number})],Qe.prototype,"currentTime",null),(0,i.Cg)([(0,r.MZ)({type:Number})],Qe.prototype,"duration",null),(0,i.Cg)([(0,r.MZ)(Be)],Qe.prototype,"video",null),(0,i.Cg)([(0,Y.K)("video")],Qe.prototype,"writeVideo",null),(0,i.Cg)([(0,r.MZ)(Te)],Qe.prototype,"type",void 0),Qe=(0,i.Cg)([(0,r.$K)("esri.layers.support.VideoElement")],Qe);const et=Qe,tt={key:"type",defaultKeyValue:"image",base:ke,typeMap:{image:Ne,video:et}},nt=o.A.ofType(tt);let it=class extends((0,fe.WV)((0,Ye.g)(He.nJ))){constructor(e){super(e),this._index=new $e.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(let t of e.removed){let e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}let{spatialReference:t}=this;for(let n of e.added){if(this._elementViewsMap.get(n))continue;let e=new We({spatialReference:t,element:n});this._elementViewsMap.set(n,e);let i=(0,Ue.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(i,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new nt}async load(e){if((0,u.Te)(e),!this.spatialReference){let e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:h.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}get elements(){return this._get("elements")}set elements(e){this._set("elements",(0,Xe.V)(e,this._get("elements"),nt))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;let e=this._index.fullBounds;return null==e?null:new we.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):l.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,j.initializeProjection)(e.spatialReference,this.spatialReference,null,t);let n=(0,Me.aI)(e.spatialReference,this.spatialReference)?e:(0,j.project)(e,this.spatialReference);if(!n)return[];let i=n.normalize(),r=[];for(let e of i)this._index.forEachInBounds((0,qe.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,ze.fA)(e,t)&&r.push(n)});return r.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),r}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){let n=e.normalizedBounds,i=this._index.has(e),r=null!=n;this._index.delete(e),r&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(i===r?this.emit("change",{element:e.element}):this.emit("refresh"))}};(0,i.Cg)([(0,r.MZ)()],it.prototype,"elements",null),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],it.prototype,"fullExtent",null),(0,i.Cg)([(0,r.MZ)()],it.prototype,"spatialReference",null),it=(0,i.Cg)([(0,r.$K)("esri.layers.support.LocalMediaElementSource")],it);let rt=class extends((0,g.dM)((0,_.j)((0,y.q)((0,x.A)((0,a.M)(f.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,u.sg)(async(e,t,i)=>{let{save:r,saveAs:o}=await n.e(3561).then(()=>n(63561));switch(e){case 0:return r(this,t);case 1:return o(this,i,t)}}),this.source=new it}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new s.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");let n=this._getSourceOverride(t,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),t=n);let i=m(t)?new it({elements:new o.A([t])}):t;this._set("effectiveSource",i),this.spatialReference&&(i.spatialReference=this.spatialReference),await i.load(e),this.spatialReference=i.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"===this.loadStatus||"failed"===this.loadStatus?l.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded."):this._set("source",e)}castSource(e){return e?Array.isArray(e)?new it({elements:new o.A(e)}):e instanceof o.A?new it({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;let i=this._createSource(t);return i?.read(t,n),i}writeSource(e,t,n,i){if(e&&e instanceof it){let t=e.elements.length;if(1!==t)return void(i?.messages&&i.messages.push(new s.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}m(e)?e.write(t,i):i?.messages&&(e?i.messages.push(new s.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):i.messages.push(new s.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new Ne;case"video":return new et}return null}_getSourceOverride(e,t){if(m(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){let n=e.toJSON(),i=this._createSource(n);return i.read({...n},{origin:"portal-item"}),i.read({georeference:t},{origin:"web-map"}),i.read({georeference:t},{origin:"web-scene"}),i}return null}};(0,i.Cg)([(0,r.MZ)({readOnly:!0})],rt.prototype,"effectiveSource",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],rt.prototype,"georeference",void 0),(0,i.Cg)([(0,H.w)("web-document","georeference")],rt.prototype,"readGeoreference",null),(0,i.Cg)([(0,r.MZ)({type:String})],rt.prototype,"copyright",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],rt.prototype,"fullExtent",null),(0,i.Cg)([(0,r.MZ)({type:["MediaLayer"]})],rt.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,r.MZ)({type:["show","hide"]})],rt.prototype,"listMode",void 0),(0,i.Cg)([(0,r.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:ae}},overridePolicy(e,t,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Se(this,n?.origin)&&m(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],rt.prototype,"source",null),(0,i.Cg)([(0,r.wg)("source")],rt.prototype,"castSource",null),(0,i.Cg)([(0,H.w)("source",["url"])],rt.prototype,"readSource",null),(0,i.Cg)([(0,Y.K)("source")],rt.prototype,"writeSource",null),(0,i.Cg)([(0,r.MZ)({type:h.A})],rt.prototype,"spatialReference",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],rt.prototype,"type",void 0),rt=(0,i.Cg)([(0,r.$K)("esri.layers.MediaLayer")],rt);const ot=rt},6518(e,t,n){n.d(t,{F:()=>l});var i=n(44208),r=n(75503),o=n(19419);const s={minX:0,minY:0,maxX:0,maxY:0};class l{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,o.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){s.minX=e[0],s.minY=e[1],s.maxX=e[2],s.maxY=e[3]})(t),e.search(s,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8303(e,t,n){var i=n(32198),r=n(92602),o=n(91429),s=n(60999),l=n(49186),a=n(36563),u=n(53966),h=n(97768),c=n(17676),d=n(84952),p=n(70333),m=n(20655),f=n(80812),g=n(41318),y=n(10407),x=n(78888),_=n(26121),v=n(77548),w=n(36005),M=n(43937);const b={credential:null,user:null};n.d(t,["A",0,e=>{let t=e,P=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new f.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await n.e(1204).then(()=>n(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:r}=await n.e(1204).then(()=>n(41204));return i&&this.addHandles((0,a.rE)(i),"reloadFromPortal"),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,r,o=!p.id?.findCredential(this.url),s=e===n.id;if(s&&n.portal.user)return this._getUserPrivileges(n,o);if(s)i=n.portal.url;else try{i=await(0,v.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!i||!(0,d.b8)(i,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;r=await(p.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!r)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(s?await n.reload():(n=new f.default({id:e,portal:{url:i}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,o)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let n=(0,y.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?p.id?.findCredential(this.url):null;if(!t)return!0;let n=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let n=p.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;let i=`${n.owningSystemUrl}/sharing/rest`,r=m.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;let o=`${i}/community/self`,l=null==e?null:e.signal,a=await(0,s.Ke)((0,x.A)(o,{authMode:"no-prompt",query:{f:"json"},signal:l}));return a.ok?g.A.fromJSON(a.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,_.wN)(this.portalItem,t)?(t?.messages?.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,o.MZ)({type:f.default})],P.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,i.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,i.Cg)([(0,o.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.PortalLayer")],P),P}])},38969(e,t,n){n.d(t,{i:()=>r});var i=n(37955);function r(e,t){return new Promise((n,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,i.Oo)(e,"canplay",n)),t((0,i.Oo)(e,"error",r)))})}},85648(e,t,n){n.d(t,{n:()=>r});var i=n(84952);function r(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,i.Zo)(e);return a[t]||s}(e.url)}(e)]||l}const o={},s="text/plain",l=o[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)o[a[e]]=e},26121(e,t,n){n.d(t,{I6:()=>h,ci:()=>u,dL:()=>a,wN:()=>c});var i=n(49186),r=n(84952),o=n(77548),s=n(20655),l=n(59923);async function a(e){let t=[];for(let n of e.allLayers)if("beforeSave"in n&&"function"==typeof n.beforeSave){let e=n.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,n){let r=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:n})=>new i.A(e,t,n));if(e.blockedRelativeUrls&&(r=r.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),n){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=n;e&&(r=r.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(r=r.filter(e=>"web-document-write:property-required"!==e.name))}if(r.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:r})}function h(e){return(0,o.qd)(e).some(e=>!!e.charts?.length)}function c(e,t){let n=t?.portal,i=e?.id&&(e.portal||s.A.getDefault());return!!n&&!!i&&!(0,r.ut)(i.restUrl,n.restUrl)}}}]);
|