@arcgis/core 4.28.0-next.20230921 → 4.28.0-next.20230923
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/Graphic.js +1 -1
- package/PopupTemplate.js +1 -1
- package/TimeExtent.js +1 -1
- package/arcade/ArcadeDate.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/FeatureSetIterator.js +1 -1
- package/arcade/featureset/support/StatsField.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02156fd04279f4d0fd3f.js +1 -0
- package/assets/esri/core/workers/chunks/07f6175b52366b2c28bd.js +1 -0
- package/assets/esri/core/workers/chunks/098073c3b2849f56dad8.js +1 -0
- package/assets/esri/core/workers/chunks/1186ba1947bd0c32f148.js +1 -0
- package/assets/esri/core/workers/chunks/186445b9fbedd261f684.js +1 -0
- package/assets/esri/core/workers/chunks/{580039dd491854ca325c.js → 21fc02f0d5716c4a7acd.js} +1 -1
- package/assets/esri/core/workers/chunks/{dff1c3c38dda2bd1a9d6.js → 246a954347fe9318190e.js} +1 -1
- package/assets/esri/core/workers/chunks/{c9dfb145f0c1d93e0fbd.js → 250bb6ae6f1992b5b4f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{314c307e30f308a40a28.js → 25b09e9c0511c8e1cf8a.js} +1 -1
- package/assets/esri/core/workers/chunks/2a0b3b52ecd787a613bc.js +1 -0
- package/assets/esri/core/workers/chunks/2bc9b55e655968229ef4.js +1 -0
- package/assets/esri/core/workers/chunks/2f0924e7aa89e689da4a.js +1 -0
- package/assets/esri/core/workers/chunks/3f218d65ec451b2a1027.js +1 -0
- package/assets/esri/core/workers/chunks/425b5733bb88e6efe242.js +1 -0
- package/assets/esri/core/workers/chunks/45d6b942cdccca2ce44a.js +1 -0
- package/assets/esri/core/workers/chunks/4bf1a7e82a68ccee0ee1.js +1 -0
- package/assets/esri/core/workers/chunks/4c110c7f4f940ec58010.js +1 -0
- package/assets/esri/core/workers/chunks/{bde89b2684b6185992ef.js → 4ed77097e69fa3096ce4.js} +1 -1
- package/assets/esri/core/workers/chunks/4fe5bac782a742d5b1c0.js +1 -0
- package/assets/esri/core/workers/chunks/{1cbaba30f55f00f7498b.js → 51324d042f469f3b8914.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f4e9b1663ec521bfe00.js → 542ce10e1872399790b4.js} +1 -1
- package/assets/esri/core/workers/chunks/54d2b7e2ac4ba883bee8.js +1 -0
- package/assets/esri/core/workers/chunks/54ecb6cae310818d1aa2.js +1 -0
- package/assets/esri/core/workers/chunks/57c932e289d89d97da4b.js +1 -0
- package/assets/esri/core/workers/chunks/{6403de6fc067cf8f7436.js → 592c1fb531f2be928e8a.js} +1 -1
- package/assets/esri/core/workers/chunks/59a807220d6f0dd18776.js +1 -0
- package/assets/esri/core/workers/chunks/59dff10d7ad2b1bf469e.js +1 -0
- package/assets/esri/core/workers/chunks/609a475ab395f2ce63e2.js +1 -0
- package/assets/esri/core/workers/chunks/612c485c5aad1548d708.js +1 -0
- package/assets/esri/core/workers/chunks/{2bb69d76a13564e8e455.js → 645ba2d5c10184632d23.js} +1 -1
- package/assets/esri/core/workers/chunks/{332689bf60d246485993.js → 65186e168dd112ac6221.js} +1 -1
- package/assets/esri/core/workers/chunks/6b9248fb2d6aadbce7bb.js +1 -0
- package/assets/esri/core/workers/chunks/709465832d306e02df52.js +1 -0
- package/assets/esri/core/workers/chunks/72c5bd6f7b8541b8d69e.js +1 -0
- package/assets/esri/core/workers/chunks/{bbc0dcd316c5598bc9ad.js → 74368a5213def6c200a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{94188fe381239d48a975.js → 76483c9a8848f3106126.js} +1 -1
- package/assets/esri/core/workers/chunks/7aa58c96798447ce5907.js +1 -0
- package/assets/esri/core/workers/chunks/7d078b8b9997b5300c0a.js +1 -0
- package/assets/esri/core/workers/chunks/7fe641cf1467496e670a.js +1 -0
- package/assets/esri/core/workers/chunks/{df8f62beb36fb9d2ac81.js → 810c8d6ff19976fd1366.js} +1 -1
- package/assets/esri/core/workers/chunks/8458ed96f3e72814cef2.js +1 -0
- package/assets/esri/core/workers/chunks/{243a4eed107d363dfad8.js → 887652bbdb3b71d0a089.js} +1 -1
- package/assets/esri/core/workers/chunks/896bfda379cf620b63ec.js +1 -0
- package/assets/esri/core/workers/chunks/91c9f0d59eaed7a735ce.js +1 -0
- package/assets/esri/core/workers/chunks/{1f7e041140088f8ac489.js → 97073a60f0ea2a397165.js} +1 -1
- package/assets/esri/core/workers/chunks/97658ac749664a07c92d.js +1 -0
- package/assets/esri/core/workers/chunks/{1da74a306aa5b4eacaae.js → 9866bbaeaf885c2dcca9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39ae87298ac674f129d.js +1 -0
- package/assets/esri/core/workers/chunks/a7b3048c19348540e004.js +1 -0
- package/assets/esri/core/workers/chunks/a8ca4b116909e47722f9.js +1 -0
- package/assets/esri/core/workers/chunks/{101f776316a85b708927.js → a99070ec4c06c435b744.js} +1 -1
- package/assets/esri/core/workers/chunks/ab145d13932d87dd7bf9.js +1 -0
- package/assets/esri/core/workers/chunks/{77c15b1c2729c780f75a.js → aeeeb386134b341d7ad2.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ca759f72d3bb29e9ea9.js → af54b233f6d6ad70b4a3.js} +2 -2
- package/assets/esri/core/workers/chunks/b9146daae8457224fd08.js +1 -0
- package/assets/esri/core/workers/chunks/bcdd2e8841abcb4df6da.js +1 -0
- package/assets/esri/core/workers/chunks/be05cc0cdabd5e051045.js +1 -0
- package/assets/esri/core/workers/chunks/c5f5f37bef11c6fbdc40.js +1 -0
- package/assets/esri/core/workers/chunks/d414dba3179bcf75bc6b.js +1 -0
- package/assets/esri/core/workers/chunks/{b449d6bd5851187d419f.js → d6e5408f9fa6b4bcd118.js} +1 -1
- package/assets/esri/core/workers/chunks/d9fb500cbd0f04d219a3.js +1 -0
- package/assets/esri/core/workers/chunks/e0dd6789fb797e9b7206.js +1 -0
- package/assets/esri/core/workers/chunks/{6f271249e042086d5a16.js → e4e49deae8da74f629db.js} +1 -1
- package/assets/esri/core/workers/chunks/e5dcff7a4fa84ba09670.js +1 -0
- package/assets/esri/core/workers/chunks/{f508ccfde6425dabe9ac.js → ee0bf611d191103a7046.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed1fbc1bc8d50453e2f5.js → f793cd41fcd022baeea2.js} +1 -1
- package/assets/esri/core/workers/chunks/fad6a7bb82a0a2df726f.js +1 -0
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +2 -84
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +2 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/arcade.js +1 -1
- package/config.js +1 -1
- package/core/Accessor.js +1 -1
- package/core/accessorSupport/diffUtils.js +1 -1
- package/core/has.js +1 -1
- package/core/number.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/DateOnly.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql.js +1 -1
- package/core/timeUtils.js +1 -1
- package/identity/IdentityForm.js +1 -1
- package/identity/IdentityModal.js +1 -1
- package/interfaces.d.ts +48 -203
- package/layers/LinkChartLayer.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/applyEditsUtils.js +5 -0
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/orientedImagery/core/CameraOrientationLTP.js +1 -1
- package/layers/orientedImagery/core/ElevationSourceDefinitions.js +5 -0
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/cameraOrientationFactory.js +1 -1
- package/layers/orientedImagery/core/utils.js +5 -0
- package/layers/orientedImagery/transformations/groundToImageUtils.js +1 -1
- package/layers/support/fieldProperties.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/layers/support/kmlUtils.js +1 -1
- package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
- package/layers/support/rasterFunctions/creators/createDataManagementFunctions.js +1 -1
- package/networks/Network.js +1 -1
- package/package.json +1 -1
- package/request.js +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/support/DirectionsFeatureSet.js +1 -1
- package/smartMapping/renderers/pieChart.js +1 -1
- package/smartMapping/renderers/relationship.js +1 -1
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/statistics/support/ageUtils.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/smartMapping/support/utils.js +1 -1
- package/support/apiKeyUtils.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/time/TimeReference.js +1 -1
- package/time/timeReferenceUtils.js +1 -1
- package/versionManagement/VersionManagementService.js +1 -1
- package/versionManagement/support/EditMomentStack.js +5 -0
- package/versionManagement/support/versionManagementUtils.js +1 -1
- package/views/2d/engine/Container.js +1 -1
- package/views/2d/engine/DisplayObject.js +1 -1
- package/views/2d/engine/ManagedCanvas.js +5 -0
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/webgl/GroupContainer.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/WGLContainer.js +1 -1
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
- package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
- package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
- package/views/2d/engine/webgl/effects/HittestEffectVTL.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/tileRenderers/support/WGLFeatureView.js +1 -1
- package/views/2d/layers/graphics/BaseGraphicContainer.js +1 -1
- package/views/2d/layers/graphics/GraphicContainer.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
- package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/2d/webglDeps.js +1 -1
- package/views/3d/glTF/loader.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveManipulation.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/isSupportedGraphic.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/i3s/featureEditing.js +1 -1
- package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/buffer/glUtil.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginInput.js +1 -1
- package/views/3d/webgl-engine/effects/blit/Blit.js +5 -0
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/RenderSlot.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureFactory.js +1 -1
- package/views/3d/webgl-engine/lib/VertexAttribute.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgeProcessing.js +1 -1
- package/views/View.js +1 -1
- package/views/interactive/tooltip/TooltipContentWithHelpMessage.js +1 -1
- package/views/interactive/tooltip/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/constraintUtils.js +1 -1
- package/views/interactive/tooltip/content/Fields.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawCircle.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawMesh.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawRectangle.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentExtentRotate.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentExtentScale.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentReshapeEdgeOffset.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformAbsolute.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformRotate.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTransformScale.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateGraphic.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateGraphicXY.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateGraphicZ.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateVertex.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateVertexXY.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentTranslateVertexZ.js +1 -1
- package/views/support/angularMeasurementUtils.js +1 -1
- package/views/ui/UI.js +1 -1
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/contextUtils.js +1 -1
- package/webmap/InitialViewProperties.js +1 -1
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/AreaMeasurement3D.js +1 -1
- package/widgets/Attachments/AttachmentsViewModel.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/Attribution.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BasemapToggle.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesNode.js +1 -1
- package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesTree.js +1 -1
- package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
- package/widgets/BuildingExplorer/BuildingLevelPicker/Label.js +1 -1
- package/widgets/BuildingExplorer/BuildingLevelPicker/LevelItem.js +1 -1
- package/widgets/BuildingExplorer/BuildingPhasePicker/BuildingPhasePicker.js +1 -1
- package/widgets/BuildingExplorer.js +1 -1
- package/widgets/Compass.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Daylight/support/SliderWithDropdown.js +1 -1
- package/widgets/Daylight.js +1 -1
- package/widgets/DirectLineMeasurement3D.js +1 -1
- package/widgets/DirectionalPad.js +1 -1
- package/widgets/Directions/components/SaveLayer.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor/components/FooterActions.js +1 -1
- package/widgets/Editor/components/Notices.js +1 -1
- package/widgets/Editor/components/PanelContent.js +1 -1
- package/widgets/Editor/components/PanelToolbar.js +1 -1
- package/widgets/Editor/components/Prompt.js +1 -1
- package/widgets/Editor/components/Settings.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/components/UploadDetails.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/components/LegendItem.js +1 -1
- package/widgets/ElevationProfile/components/SettingsButton.js +1 -1
- package/widgets/ElevationProfile/components/Statistics.js +1 -1
- package/widgets/ElevationProfile.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/Feature/FeatureContent.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureFields.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureRelationship.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/Feature/support/FeatureElementInfo.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/GroupInput.js +1 -1
- package/widgets/FeatureForm/css.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/support/ButtonMenu.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/FeatureTemplates/ItemList.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/Features/FeaturesRelatedRecords.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/FloorFilter.js +1 -1
- package/widgets/Fullscreen.js +1 -1
- package/widgets/Histogram.js +1 -1
- package/widgets/HistogramRangeSlider.js +1 -1
- package/widgets/Home.js +1 -1
- package/widgets/LayerList/ListItemPanel.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/styles/Classic.js +1 -1
- package/widgets/Legend/styles/support/relationshipUtils.js +1 -1
- package/widgets/Legend/styles/support/univariateUtils.js +1 -1
- package/widgets/LineOfSight.js +1 -1
- package/widgets/Locate.js +1 -1
- package/widgets/NavigationToggle.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/ScaleRangeSlider/scalePreviewUtils.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/SearchResultRenderer.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/ShadowCast/components/DiscreteConfigurator.js +1 -1
- package/widgets/ShadowCast/components/DurationConfigurator.js +1 -1
- package/widgets/ShadowCast/components/ShadowTooltipContent.js +1 -1
- package/widgets/ShadowCast/components/ThresholdConfigurator.js +1 -1
- package/widgets/ShadowCast.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/Slice.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/Swipe.js +1 -1
- package/widgets/TableList.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Track.js +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +1 -1
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/ValuePicker.js +1 -1
- package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
- package/widgets/VideoPlayer/components/SettingsButton.js +1 -1
- package/widgets/VideoPlayer.js +1 -1
- package/widgets/Weather/LabeledSlider.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/Zoom/IconButton.js +1 -1
- package/widgets/smartMapping/BinaryColorSizeSlider.js +1 -1
- package/widgets/smartMapping/ClassedColorSlider.js +1 -1
- package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
- package/widgets/smartMapping/ColorSizeSlider.js +1 -1
- package/widgets/smartMapping/ColorSlider.js +1 -1
- package/widgets/smartMapping/HeatmapSlider.js +1 -1
- package/widgets/smartMapping/OpacitySlider.js +1 -1
- package/widgets/smartMapping/SizeSlider.js +1 -1
- package/widgets/smartMapping/SmartMappingSliderBase.js +1 -1
- package/widgets/support/ColorPicker.js +1 -1
- package/widgets/support/DatePicker.js +1 -1
- package/widgets/support/Heading.js +1 -1
- package/widgets/support/LabeledSwitch.js +1 -1
- package/widgets/support/MeasurementWidgetContent.js +1 -1
- package/widgets/support/Popover.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/SketchTooltipControls.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/widgets/support/TimePicker.js +1 -1
- package/widgets/support/TimezonePicker.js +1 -1
- package/widgets/support/UnitSelect.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/072b4e041b8630c513a0.js +0 -1
- package/assets/esri/core/workers/chunks/092920c25cac89c038ee.js +0 -1
- package/assets/esri/core/workers/chunks/114269dda1d296893908.js +0 -1
- package/assets/esri/core/workers/chunks/126df6237fc80608344e.js +0 -1
- package/assets/esri/core/workers/chunks/1b3655f5bf5d90fa8730.js +0 -1
- package/assets/esri/core/workers/chunks/1c83f47d446f2bca1721.js +0 -1
- package/assets/esri/core/workers/chunks/1cf7bb514e7eefc3e9c6.js +0 -1
- package/assets/esri/core/workers/chunks/21a9c8aa2a9e9990df41.js +0 -1
- package/assets/esri/core/workers/chunks/24629402c647ef6b5f6b.js +0 -1
- package/assets/esri/core/workers/chunks/2a1c1be9c202462cf54d.js +0 -1
- package/assets/esri/core/workers/chunks/2cb36f9686693234991a.js +0 -1
- package/assets/esri/core/workers/chunks/2d0d03cbea83c868edba.js +0 -1
- package/assets/esri/core/workers/chunks/2e130cb2f1038055c07b.js +0 -1
- package/assets/esri/core/workers/chunks/3619e04cbb6691549014.js +0 -1
- package/assets/esri/core/workers/chunks/3dbfb4f370a874393822.js +0 -1
- package/assets/esri/core/workers/chunks/406db5c90271a3a203d4.js +0 -1
- package/assets/esri/core/workers/chunks/4369a6c1e0a82ab4db6a.js +0 -1
- package/assets/esri/core/workers/chunks/4f4a424d1747d04501df.js +0 -1
- package/assets/esri/core/workers/chunks/59c00d6fba0fd1c03d01.js +0 -1
- package/assets/esri/core/workers/chunks/5a5720caa64a46daadf9.js +0 -1
- package/assets/esri/core/workers/chunks/5edb99b58549cd66b394.js +0 -1
- package/assets/esri/core/workers/chunks/6203ddf6caad3d356327.js +0 -1
- package/assets/esri/core/workers/chunks/650a317b6dc245a7060f.js +0 -1
- package/assets/esri/core/workers/chunks/7a358b1fd0c0cce59e9b.js +0 -1
- package/assets/esri/core/workers/chunks/83d1a1b3d371c991cc4c.js +0 -1
- package/assets/esri/core/workers/chunks/846b7a81b870c8b238a1.js +0 -1
- package/assets/esri/core/workers/chunks/8ab832468300cc4feb5a.js +0 -1
- package/assets/esri/core/workers/chunks/bc1dc6383e60e7e61d50.js +0 -1
- package/assets/esri/core/workers/chunks/bc6323bdc98013da6fe5.js +0 -1
- package/assets/esri/core/workers/chunks/c4bb67150ccd01ea6014.js +0 -1
- package/assets/esri/core/workers/chunks/c60cf62f374e71e562fc.js +0 -1
- package/assets/esri/core/workers/chunks/c6ea5aac232d1eca04dd.js +0 -1
- package/assets/esri/core/workers/chunks/c8438c2d9ac48afe4033.js +0 -1
- package/assets/esri/core/workers/chunks/c8f239c25fe864f0e47a.js +0 -1
- package/assets/esri/core/workers/chunks/cad260881653567bc8f9.js +0 -1
- package/assets/esri/core/workers/chunks/d824f4b405a72cd2fa74.js +0 -1
- package/assets/esri/core/workers/chunks/dd7508d4016715371e0c.js +0 -1
- package/assets/esri/core/workers/chunks/e55f7fc7eff0074ce0fc.js +0 -1
- package/assets/esri/core/workers/chunks/eef27d305023034084a4.js +0 -1
- package/assets/esri/core/workers/chunks/f38c54ada9e7012a2960.js +0 -1
- package/assets/esri/core/workers/chunks/f5e0ff5292b9fd18fc92.js +0 -1
- package/assets/esri/core/workers/chunks/f5eb8b5021620be7538e.js +0 -1
- package/core/watchUtils.d.ts +0 -4
- package/core/watchUtils.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9717],{22303:(t,e,n)=>{n.d(e,{Z:()=>c});var r,i,o=n(35270),s=n(22021),a=n(75215);function l(t){return(0,s.uZ)((0,a.vU)(t),0,255)}function u(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}function h(t,e){const n=t.toString(16).padStart(2,"0");return e?n.substring(0,1):n}class d{static blendColors(t,e,n,r=new d){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),r=n[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(n[3]=parseFloat(t[3])),d.fromArray(n,e)}return d.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return d.fromArray((0,o.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new d){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),i=parseInt(t.substring(3,4),16),o=5===t.length?15:parseInt(t.substring(4),16);return d.fromArray([n+16*n,r+16*r,i+16*i,(o+16*o)/255],e)}case 7:case 9:{const n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16),o=7===t.length?255:parseInt(t.substring(7),16);return d.fromArray([n,r,i,o/255],e)}default:return null}}static fromArray(t,e=new d){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,o.St)(t)?(0,o.h$)(t):null;return n&&d.fromArray(n,e)||d.fromRgb(t,e)||d.fromHex(t,e)}static fromJSON(t){return null!=t?new d([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?d.fromString(t,this):Array.isArray(t)?d.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof d||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,i=4===n||8===n,o=`#${h(this.r,r)}${h(this.g,r)}${h(this.b,r)}${i?h(Math.round(255*this.a),r):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=d.AlphaMode.ALWAYS){const e=l(this.r),n=l(this.g),r=l(this.b);return t===d.AlphaMode.ALWAYS||1!==this.a?[e,n,r,l(255*this.a)]:[e,n,r]}clone(){return new d(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}d.prototype.declaredClass="esri.Color",(i=(r=d||(d={})).AlphaMode||(r.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=d},92835:(t,e,n)=>{n.d(e,{Z:()=>y});var r,i=n(43697),o=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),h=n(30556);let d=r=class extends o.wq{static get allTime(){return c}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let i=this.end;if(i){const n=(0,s.JE)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let s,a;if(i>=e&&i<=n?s=i:e>=i&&e<=o&&(s=e),n>=i&&n<=o?a=n:o>=e&&o<=n&&(a=o),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new r;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return r.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.Nm)(o,t,e,n)),null!=a&&(i.end=(0,s.Nm)(a,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,l.r)("end")],d.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,l.r)("start")],d.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.j)("esri.TimeExtent")],d);const c=new d,m=new d({start:void 0,end:void 0}),y=d},4757:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),i=n(92036),o=n(67676),s=n(2368),a=n(10699),l=n(96674),u=n(5600),h=(n(75215),n(80442),n(52011));let d=0,c=class extends((0,l.eC)((0,s.J)((0,a.IG)(i.Z)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${d++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(o.pC)}};(0,r._)([(0,u.Cb)({type:String,constructOnly:!0,clonable:!1})],c.prototype,"id",void 0),(0,r._)([(0,u.Cb)({type:String})],c.prototype,"title",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,u.Cb)({clonable:!1,value:null})],c.prototype,"parent",null),(0,r._)([(0,u.Cb)({readOnly:!0})],c.prototype,"isEditable",null),(0,r._)([(0,u.Cb)({readOnly:!0})],c.prototype,"requiredPropertiesForEditing",void 0),c=(0,r._)([(0,h.j)("esri.analysis.Analysis")],c);const m=c},35270:(t,e,n)=>{n.d(e,{B7:()=>l,St:()=>i,VL:()=>s,h$:()=>o,rW:()=>u});const r={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 i(t){return!!r[t]||!!r[t.toLowerCase()]}function o(t){return r[t]??r[t.toLowerCase()]}function s(t){return[...o(t)]}function a(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function l(t,e,n,r=1){const i=(t%360+360)%360/360,o=n<=.5?n*(e+1):n+e-n*e,s=2*n-o;return[Math.round(255*a(s,o,i+1/3)),Math.round(255*a(s,o,i)),Math.round(255*a(s,o,i-1/3)),r]}function u(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,i=e?1:17,o=e?9===t.length:5===t.length;let s=Number("0x"+t.substr(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&r,s>>=n,a[3]=i*l/255),l=s&r,s>>=n,a[2]=i*l,l=s&r,s>>=n,a[1]=i*l,l=s&r,s>>=n,a[0]=i*l,a}},68251:(t,e,n)=>{n.d(e,{BV:()=>s});var r=n(22021);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}ndiff(t,e=0){return Math.ceil((t-e)/this.range)*this.range+e}_normalize(t,e,n,r=0,i=!1){return(n-=r)<t?n+=this.ndiff(t-n):n>e&&(n-=this.ndiff(n-e)),i&&n===e&&(n=t),n+r}normalize(t,e=0,n=!1){return this._normalize(this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.uZ)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+this.ndiff(t-e,n)}minimalMonotonic(t,e,n){return this._normalize(t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t){for(const e in t){const n=t[e];n instanceof Function&&(t[e]=n.bind(t))}return t}o(new i(0,2*Math.PI)),o(new i(-Math.PI,Math.PI));const s=o(new i(0,360))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var r=n(43697),i=n(52011);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,r._)([(0,i.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,r._)([(0,i.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,i.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>o,Z:()=>i});var r=n(46791);function i(t,e,n=r.Z){return e||(e=new n),e===t||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function o(t){return t}},17445:(t,e,n)=>{n.d(e,{N1:()=>c,YP:()=>l,Z_:()=>p,gx:()=>u,nn:()=>g,on:()=>d,tX:()=>b}),n(66643),n(46791);var r=n(91460),i=n(50758),o=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return h(t,e,n,m)}function u(t,e,n={}){return h(t,e,n,y)}function h(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.hw)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return i}function d(t,e,n,s={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function c(t){s.once&&s.once&&(0,o.hw)(h),n(t)}const m=l(t,((t,n)=>{d(),(0,r.vT)(t)&&(a=t,u=(0,r.on)(t,e,c),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return h=(0,i.kB)((()=>{m.remove(),d()})),h}function c(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,o.hw)(a)}return new Promise(((r,o)=>{a=(0,i.AL)([(0,s.fu)(n,(()=>{l(),o((0,s.zE)())})),h(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??m)])}))}(t,y,e)}function m(t){return!0}function y(t){return!!t}n(87538);const p={sync:!0},g={initial:!0},b={sync:!0,initial:!0}},62357:(t,e,n)=>{n.d(e,{F2:()=>s,Wz:()=>a,t_:()=>l,vW:()=>u});const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",o=96;function s(t){return t?t/72*o:0}function a(t){return t?72*t/o:0}function l(t){if("string"==typeof t){const e=t.match(r);if(e){const n=Number(e[1]),r=e[3]&&e[3].toLowerCase(),i="-"===t.charAt(0),o="px"===r?a(n):n;return i?-o:o}return console.warn(i),null}return t}function u(t=0,e=0){return{x:t,y:e}}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var r=n(90344),i=n(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,o="system"){const s=new i.vF((0,r.f1)(o)),a=i.ou.fromJSDate(t,{zone:s}),l="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),a.plus({[l]:e}).toJSDate()}function a(t,e,n="system"){const o=new i.vF((0,r.f1)(n)),s=i.ou.fromJSDate(t,{zone:o});if("decades"===e||"centuries"===e){const t=s.startOf("year"),{year:n}=t,r=n-n%("decades"===e?10:100);return t.set({year:r}).toJSDate()}const a=u(e);return s.startOf(a).toJSDate()}function l(t,e,n){return 0===t?0:t*o[e]/o[n]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(t,e,n)=>{n.d(e,{Xr:()=>y,Ze:()=>f,f1:()=>v,p6:()=>w});var r=n(35454),i=n(70171),o=n(15512);n(17126);const s=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(o.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},c={...d,second:"numeric"},m={"short-date":a,"short-date-short-time":{...a,...d},"short-date-short-time-24":{...a,...d,hour12:!1},"short-date-long-time":{...a,...c},"short-date-long-time-24":{...a,...c,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...d},"short-date-le-short-time-24":{...a,...d,hour12:!1},"short-date-le-long-time":{...a,...c},"short-date-le-long-time-24":{...a,...c,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...d,hour12:!1},"long-month-day-year-long-time":{...l,...c},"long-month-day-year-long-time-24":{...l,...c,hour12:!1},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...d},"day-short-month-year-short-time-24":{...u,...d,hour12:!1},"day-short-month-year-long-time":{...u,...c},"day-short-month-year-long-time-24":{...u,...c,hour12:!1},"long-date":h,"long-date-short-time":{...h,...d},"long-date-short-time-24":{...h,...d,hour12:!1},"long-date-long-time":{...h,...c},"long-date-long-time-24":{...h,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":c},y=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p={ar:"ar-u-nu-latn-ca-gregory"};let g=new WeakMap;const b=m["short-date-short-time"];function f(t){return m[t]}function w(t,e=b){return function(t){let e=g.get(t);if(!e){const n=(0,i.Kd)(),r=p[n]||n,s=v(t.timeZone??o.By),a={...t,timeZone:s};e=new Intl.DateTimeFormat(r,a),g.set(t,e)}return e}(e).format(t)}function v(t){switch(t){case o.By:return s;case o._4:return o.pt;default:return t}}(0,i.Ze)((()=>{g=new WeakMap}))},40081:(t,e,n)=>{n.r(e),n.d(e,{default:()=>P});var r=n(43697),i=n(4757),o=n(22303),s=n(2368),a=n(96674),l=n(62357),u=n(5600),h=n(75215),d=(n(67676),n(80442),n(52011));let c=class extends((0,a.eC)(s.j)){constructor(t){super(t),this.type="simple",this.color=new o.Z("black"),this.lineSize=2,this.fontSize=10,this.textColor=new o.Z("black"),this.textBackgroundColor=new o.Z([255,255,255,.6])}};(0,r._)([(0,u.Cb)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:o.Z,nonNullable:!0,json:{type:[h.z8],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,nonNullable:!0,range:{min:(0,l.Wz)(1)},json:{write:{isRequired:!0}}})],c.prototype,"lineSize",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"fontSize",void 0),(0,r._)([(0,u.Cb)({type:o.Z,nonNullable:!0,json:{type:[h.z8],write:{isRequired:!0}}})],c.prototype,"textColor",void 0),(0,r._)([(0,u.Cb)({type:o.Z,nonNullable:!0,json:{type:[h.z8],write:{isRequired:!0}}})],c.prototype,"textBackgroundColor",void 0),c=(0,r._)([(0,d.j)("esri.analysis.DimensionSimpleStyle")],c);const m=c;var y;n(66577),function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const p=[y.Horizontal,y.Vertical,y.Direct];var g=n(68251),b=n(90578),f=n(94139);let w=class extends((0,a.eC)(s.j)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,r._)([(0,u.Cb)({type:["length"],json:{write:{isRequired:!0}}})],w.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"startPoint",void 0),(0,r._)([(0,u.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"endPoint",void 0),(0,r._)([(0,u.Cb)({type:p,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"measureType",void 0),(0,r._)([(0,u.Cb)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"offset",void 0),(0,r._)([(0,u.Cb)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,b.p)((t=>g.BV.normalize((0,h.q9)(t),0,!0)))],w.prototype,"orientation",void 0),w=(0,r._)([(0,d.j)("esri.analysis.LengthDimension")],w);const v=w;var _=n(46791),C=n(70921),S=n(17445),D=n(6570),T=n(73615);const A=_.Z.ofType(v);let N=class extends i.Z{constructor(t){super(t),this.type="dimension",this.style=new m,this.extent=null}initialize(){this.addHandles((0,S.YP)((()=>this._computeExtent()),(t=>{null!=t&&null!=t.pending||this._set("extent",null!=t?t.extent:null)}),S.tX))}get dimensions(){return this._get("dimensions")||new A}set dimensions(t){this._set("dimensions",(0,C.Z)(t,this.dimensions,A))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const n=(0,T.projectOrLoadMany)(e,t);if(null!=n.pending)return{pending:n.pending,extent:null};let r=null;return null!=n.geometries&&(r=n.geometries.reduce(((t,e)=>null==t?null!=e?D.Z.fromPoint(e):null:null!=e?t.union(D.Z.fromPoint(e)):t),null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}};(0,r._)([(0,u.Cb)({type:["dimension"]})],N.prototype,"type",void 0),(0,r._)([(0,u.Cb)({cast:C.R,type:A,nonNullable:!0})],N.prototype,"dimensions",null),(0,r._)([(0,u.Cb)({readOnly:!0})],N.prototype,"spatialReference",null),(0,r._)([(0,u.Cb)({types:{key:"type",base:null,typeMap:{simple:m}},nonNullable:!0})],N.prototype,"style",void 0),(0,r._)([(0,u.Cb)({value:null,readOnly:!0})],N.prototype,"extent",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],N.prototype,"requiredPropertiesForEditing",null),N=(0,r._)([(0,d.j)("esri.analysis.DimensionAnalysis")],N);const k=N;var E=n(16453),M=n(30556),x=n(87085),L=n(38009);let j=class extends((0,L.q)((0,E.R)(x.Z))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new k,this.opacity=1,t){const{source:e,style:n}=t;e&&n&&(e.style=n)}}initialize(){this.addHandles([(0,S.YP)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),S.tX)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new k)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,n,r){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(r))).toJSON()}};(0,r._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],j.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:["ArcGISDimensionLayer"]})],j.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.Cb)({nonNullable:!0})],j.prototype,"source",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"spatialReference",null),(0,r._)([(0,u.Cb)({types:{key:"type",base:null,typeMap:{simple:m}},json:{write:{ignoreOrigin:!0}}})],j.prototype,"style",null),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"fullExtent",null),(0,r._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],j.prototype,"opacity",void 0),(0,r._)([(0,u.Cb)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,r._)([(0,u.Cb)({type:_.Z.ofType(v),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],j.prototype,"dimensions",null),(0,r._)([(0,M.c)("web-scene","dimensions")],j.prototype,"writeDimensions",null),j=(0,r._)([(0,d.j)("esri.layers.DimensionLayer")],j);const P=j},87085:(t,e,n)=>{n.d(e,{Z:()=>w});var r=n(43697),i=(n(66577),n(3172)),o=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),h=n(95330),d=n(17452),c=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),y=n(68773),p=n(6570),g=n(82971);let b=0,f=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.Z(-180,-90,180,90,g.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(8008).then(n.bind(n,28008));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n&&n.id||"unset",i=n&&n.portal&&n.portal.url||y.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,h.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,c.Cb)({type:String})],f.prototype,"attributionDataUrl",void 0),(0,r._)([(0,c.Cb)({type:p.Z})],f.prototype,"fullExtent",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],f.prototype,"hasAttributionData",null),(0,r._)([(0,c.Cb)({type:String,clonable:!1})],f.prototype,"id",void 0),(0,r._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],f.prototype,"legendEnabled",void 0),(0,r._)([(0,c.Cb)({type:["show","hide","hide-children"]})],f.prototype,"listMode",void 0),(0,r._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],f.prototype,"opacity",void 0),(0,r._)([(0,c.Cb)({clonable:!1})],f.prototype,"parent",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],f.prototype,"parsedUrl",null),(0,r._)([(0,c.Cb)({type:Boolean,readOnly:!0})],f.prototype,"persistenceEnabled",void 0),(0,r._)([(0,c.Cb)({type:Boolean})],f.prototype,"popupEnabled",void 0),(0,r._)([(0,c.Cb)({type:Boolean})],f.prototype,"attributionVisible",void 0),(0,r._)([(0,c.Cb)({type:g.Z})],f.prototype,"spatialReference",void 0),(0,r._)([(0,c.Cb)({type:String})],f.prototype,"title",void 0),(0,r._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"type",void 0),(0,r._)([(0,c.Cb)()],f.prototype,"url",void 0),(0,r._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],f.prototype,"visible",void 0),f=(0,r._)([(0,m.j)("esri.layers.Layer")],f);const w=f},15512:(t,e,n)=>{n.d(e,{By:()=>r,_4:()=>i,pt:()=>o});const r="system",i="unknown",o="UTC"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8654,5935],{84552:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(43697),o=i(2368),n=i(96674),s=i(35463),l=i(5600),a=(i(75215),i(67676),i(80442),i(36030)),p=i(52011),d=i(78981);let u=class extends((0,o.J)(n.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.rJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.J)(d.v,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r._)([(0,p.j)("esri.TimeInterval")],u);const c=u},41123:(e,t,i)=>{i.d(t,{D:()=>o,z:()=>n});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o()}}`}},90100:(e,t,i)=>{i.d(t,{Z:()=>Ue});var r,o=i(43697),n=i(96674),s=i(22974),l=i(5600),a=i(90578),p=i(71715),d=i(52011),u=i(30556),c=i(75215);i(67676),i(80442);let y=r=class extends n.wq{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,l.Cb)({type:["boolean","date","number","string"],json:{write:!0}})],y.prototype,"returnType",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=r=(0,o._)([(0,d.j)("esri.form.ExpressionInfo")],y);const h=y;let m=class extends n.wq{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o._)([(0,l.Cb)()],m.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o._)([(0,d.j)("esri.form.elements.Element")],m);const f=m;var b;let v=b=class extends n.wq{constructor(e){super(e),this.type=null}clone(){return new b({type:this.type})}};(0,o._)([(0,l.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],v.prototype,"type",void 0),v=b=(0,o._)([(0,d.j)("esri.form.elements.inputs.AttachmentInput")],v);const w=v;var g;let _=g=class extends f{constructor(e){super(e),this.attachmentKeyword=null,this.editableExpression=null,this.input=null,this.type="attachment"}clone(){return new g({attachmentKeyword:this.attachmentKeyword,description:this.description,editableExpression:this.editableExpression,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"attachmentKeyword",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"editableExpression",void 0),(0,o._)([(0,l.Cb)({type:w,json:{read:{source:"inputType"},write:{target:"inputType"}}})],_.prototype,"input",void 0),(0,o._)([(0,l.Cb)({type:["attachment"],json:{read:!1,write:!0}})],_.prototype,"type",void 0),_=g=(0,o._)([(0,d.j)("esri.form.elements.AttachmentElement")],_);const x=_;var C=i(60235),j=i(92604);let I=class extends n.wq{constructor(e){super(e),this.type=null}};(0,o._)([(0,l.Cb)()],I.prototype,"type",void 0),I=(0,o._)([(0,d.j)("esri.form.elements.inputs.Input")],I);const S=I;let F=class extends S{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],F.prototype,"maxLength",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],F.prototype,"minLength",void 0),F=(0,o._)([(0,d.j)("esri.form.elements.inputs.TextInput")],F);const E=F;var M;let T=M=class extends E{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new M({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,l.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],T.prototype,"type",void 0),T=M=(0,o._)([(0,d.j)("esri.form.elements.inputs.BarcodeScannerInput")],T);const O=T;var R;let U=R=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new R({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],U.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],U.prototype,"showNoValueOption",void 0),(0,o._)([(0,l.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],U.prototype,"type",void 0),U=R=(0,o._)([(0,d.j)("esri.form.elements.inputs.ComboBoxInput")],U);const V=U;var Z;function A(e){return null!=e?e:null}function k(e){return null!=e?e:null}let D=Z=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return A(t.max)}writeMax(e,t){t.max=k(e)}readMin(e,t){return A(t.min)}writeMin(e,t){t.min=k(e)}clone(){return new Z({max:this.max,min:this.min})}};(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],D.prototype,"max",void 0),(0,o._)([(0,p.r)("max")],D.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],D.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],D.prototype,"min",void 0),(0,o._)([(0,p.r)("min")],D.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],D.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:["date-picker"],json:{read:!1,write:!0}})],D.prototype,"type",void 0),D=Z=(0,o._)([(0,d.j)("esri.form.elements.inputs.DatePickerInput")],D);const N=D;var L;function q(e){return null!=e?e:null}function B(e){return null!=e?e:null}let P=L=class extends S{constructor(e){super(e),this.includeTime=!1,this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return q(t.max)}writeMax(e,t){t.max=B(e)}readMin(e,t){return q(t.min)}writeMin(e,t){t.min=B(e)}readTimeResolution(e,t){return q(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=B(e)}clone(){return new L({includeTime:this.includeTime,includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],P.prototype,"includeTime",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],P.prototype,"includeTimeOffset",void 0),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],P.prototype,"max",void 0),(0,o._)([(0,p.r)("max")],P.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],P.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],P.prototype,"min",void 0),(0,o._)([(0,p.r)("min")],P.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],P.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],P.prototype,"timeResolution",void 0),(0,o._)([(0,p.r)("timeResolution")],P.prototype,"readTimeResolution",null),(0,o._)([(0,u.c)("timeResolution")],P.prototype,"writeTimeResolution",null),(0,o._)([(0,l.Cb)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],P.prototype,"type",void 0),P=L=(0,o._)([(0,d.j)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],P);const G=P;var H;function J(e){return null!=e?new Date(e):null}function Q(e){return e?e.getTime():null}let W=H=class extends S{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return J(t.max)}writeMax(e,t){t.max=Q(e)}readMin(e,t){return J(t.min)}writeMin(e,t){t.min=Q(e)}clone(){return new H({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],W.prototype,"includeTime",void 0),(0,o._)([(0,l.Cb)({type:Date,json:{type:Number,write:!0}})],W.prototype,"max",void 0),(0,o._)([(0,p.r)("max")],W.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],W.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:Date,json:{type:Number,write:!0}})],W.prototype,"min",void 0),(0,o._)([(0,p.r)("min")],W.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],W.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=H=(0,o._)([(0,d.j)("esri.form.elements.inputs.DateTimePickerInput")],W);const z=W;var $;let K=$=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new $({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],K.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],K.prototype,"showNoValueOption",void 0),(0,o._)([(0,l.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],K.prototype,"type",void 0),K=$=(0,o._)([(0,d.j)("esri.form.elements.inputs.RadioButtonsInput")],K);const X=K;var Y;let ee=Y=class extends S{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new Y({offValue:this.offValue,onValue:this.onValue})}};(0,o._)([(0,l.Cb)({type:[String,Number],json:{write:!0}})],ee.prototype,"offValue",void 0),(0,o._)([(0,l.Cb)({type:[String,Number],json:{write:!0}})],ee.prototype,"onValue",void 0),(0,o._)([(0,l.Cb)({type:["switch"],json:{read:!1,write:!0}})],ee.prototype,"type",void 0),ee=Y=(0,o._)([(0,d.j)("esri.form.elements.inputs.SwitchInput")],ee);const te=ee;var ie;let re=ie=class extends E{constructor(e){super(e),this.type="text-area"}clone(){return new ie({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,l.Cb)({type:["text-area"],json:{read:!1,write:!0}})],re.prototype,"type",void 0),re=ie=(0,o._)([(0,d.j)("esri.form.elements.inputs.TextAreaInput")],re);const oe=re;var ne;let se=ne=class extends E{constructor(e){super(e),this.type="text-box"}clone(){return new ne({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,l.Cb)({type:["text-box"],json:{read:!1,write:!0}})],se.prototype,"type",void 0),se=ne=(0,o._)([(0,d.j)("esri.form.elements.inputs.TextBoxInput")],se);const le=se;var ae;function pe(e){return null!=e?e:null}function de(e){return null!=e?e:null}let ue=ae=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return pe(t.max)}writeMax(e,t){t.max=de(e)}readMin(e,t){return pe(t.min)}writeMin(e,t){t.min=de(e)}readTimeResolution(e,t){return pe(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=de(e)}clone(){return new ae({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],ue.prototype,"max",void 0),(0,o._)([(0,p.r)("max")],ue.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],ue.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],ue.prototype,"min",void 0),(0,o._)([(0,p.r)("min")],ue.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],ue.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],ue.prototype,"timeResolution",void 0),(0,o._)([(0,p.r)("timeResolution")],ue.prototype,"readTimeResolution",null),(0,o._)([(0,u.c)("timeResolution")],ue.prototype,"writeTimeResolution",null),(0,o._)([(0,l.Cb)({type:["time-picker"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=ae=(0,o._)([(0,d.j)("esri.form.elements.inputs.TimePickerInput")],ue);const ce={base:S,key:"type",typeMap:{"barcode-scanner":O,"combo-box":V,"date-picker":N,"datetime-picker":z,"datetimeoffset-picker":G,"radio-buttons":X,switch:te,"text-area":oe,"text-box":le,"time-picker":ue}};var ye,he=i(72729);const me="esri.form.elements.FieldElement",fe=j.Z.getLogger(me);let be=ye=class extends f{constructor(e){super(e),this.domain=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}get editable(){return(0,C.Mr)(fe,"editable",{replacement:"editableExpression",version:"4.26",warnOnce:!0}),this._get("editable")??!0}set editable(e){(0,C.Mr)(fe,"editable",{replacement:"editableExpression",version:"4.26",warnOnce:!0}),this._set("editable",e)}clone(){return new ye({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({types:he.V5,json:{read:{reader:he.im},write:!0}})],be.prototype,"domain",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"editable",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],be.prototype,"editableExpression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],be.prototype,"fieldName",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],be.prototype,"hint",void 0),(0,o._)([(0,l.Cb)({types:ce,json:{read:{source:"inputType"},write:{target:"inputType"}}})],be.prototype,"input",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],be.prototype,"requiredExpression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:!1,write:!0}})],be.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],be.prototype,"valueExpression",void 0),be=ye=(0,o._)([(0,d.j)(me)],be);const ve=be;var we,ge=i(44729);let _e=we=class extends f{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new we({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],_e.prototype,"displayCount",void 0),(0,o._)([(0,l.Cb)({type:["list"],json:{write:!0}})],_e.prototype,"displayType",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],_e.prototype,"editableExpression",void 0),(0,o._)([(0,l.Cb)({type:[ge.Z],json:{write:!0}})],_e.prototype,"orderByFields",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],_e.prototype,"relationshipId",void 0),(0,o._)([(0,l.Cb)({type:["relationship"],json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=we=(0,o._)([(0,d.j)("esri.form.elements.RelationshipElement")],_e);const xe=_e;function Ce(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:x,field:ve,group:e,relationship:xe}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:x,field:ve,relationship:xe}}}}function je(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>r[e.type].fromJSON(e)))}function Ie(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>e.toJSON()))}function Se(e,t,i=!0){return e?e.map((e=>(0,c.N7)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Fe;let Ee=Fe=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Se(e,Me,!1)}readElements(e,t){return je(t.formElements,Me,!1)}writeElements(e,t){t.formElements=Ie(e,Me,!1)}clone(){return new Fe({description:this.description,elements:(0,s.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({json:{write:!0}})],Ee.prototype,"elements",void 0),(0,o._)([(0,a.p)("elements")],Ee.prototype,"castElements",null),(0,o._)([(0,p.r)("elements",["formElements"])],Ee.prototype,"readElements",null),(0,o._)([(0,u.c)("elements")],Ee.prototype,"writeElements",null),(0,o._)([(0,l.Cb)({type:["collapsed","expanded"],json:{write:!0}})],Ee.prototype,"initialState",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),Ee=Fe=(0,o._)([(0,d.j)("esri.form.elements.GroupElement")],Ee);const Me=Ce(Ee);var Te;const Oe=Ce(Ee);let Re=Te=class extends n.wq{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Se(e,Oe)}readElements(e,t){return je(t.formElements,Oe)}writeElements(e,t){t.formElements=Ie(e,Oe)}clone(){return new Te({description:this.description,expressionInfos:(0,s.d9)(this.expressionInfos),elements:(0,s.d9)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],Re.prototype,"description",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],Re.prototype,"elements",void 0),(0,o._)([(0,a.p)("elements")],Re.prototype,"castElements",null),(0,o._)([(0,p.r)("elements",["formElements"])],Re.prototype,"readElements",null),(0,o._)([(0,u.c)("elements")],Re.prototype,"writeElements",null),(0,o._)([(0,l.Cb)({type:[h],json:{write:!0}})],Re.prototype,"expressionInfos",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{default:!1,write:!0}})],Re.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],Re.prototype,"title",void 0),Re=Te=(0,o._)([(0,d.j)("esri.form.FormTemplate")],Re);const Ue=Re},79235:(e,t,i)=>{i.d(t,{Z:()=>w});var r,o=i(43697),n=i(67676),s=i(35454),l=i(96674),a=i(67900),p=i(20941),d=i(5600),u=(i(75215),i(80442),i(71715)),c=i(52011),y=i(30556);const h=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.e$)(m,"orthometric");const f=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let b=r=class extends l.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i&&i.messages&&i.messages.push(function(e,t){return new p.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i&&i.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.$C)(e)||f.read(e)||(i&&i.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.cM)(t);return new r({heightModel:e.heightModel,heightUnit:i,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new p.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,d.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],b.prototype,"heightModel",void 0),(0,o._)([(0,y.c)("web-scene","heightModel")],b.prototype,"writeHeightModel",null),(0,o._)([(0,u.r)(["web-scene","service"],"heightModel")],b.prototype,"readHeightModel",null),(0,o._)([(0,d.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],b.prototype,"heightUnit",void 0),(0,o._)([(0,u.r)("web-scene","heightUnit")],b.prototype,"readHeightUnit",null),(0,o._)([(0,u.r)("service","heightUnit")],b.prototype,"readHeightUnitService",null),(0,o._)([(0,d.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],b.prototype,"vertCRS",void 0),(0,o._)([(0,u.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],b.prototype,"readVertCRS",null),b=r=(0,o._)([(0,c.j)("esri.geometry.HeightModelInfo")],b);const w=b},54253:(e,t,i)=>{i.d(t,{o1:()=>f,jF:()=>d,lQ:()=>y});var r=i(43697),o=i(32448),n=i(22974),s=i(95330),l=(i(92604),i(75215),i(20102),i(80442),i(52011));(0,i(41123).z)();const a=new Map,p=new o.Z.EventEmitter;function d(e,t,i=null,r=!1){const o=(0,s.hh)();return r=null==t||r,p.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const u="esri.layers.mixins.EditBusLayer",c=Symbol(u);function y(e){return null!=e&&"object"==typeof e&&c in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const r=new URL(e).host,o=a.get(r),n=e=>!e||e===o;return n(t)&&n(i)||t===i}const f=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,p=h(this),d=h(this)&&m(t,r,this.gdbVersion);if(!l||p&&!d||!a&&!o)return;const u=s.then((e=>{if(a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:i,updates:r,deletes:o}=t.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:i?i.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.d9)(e.historicMoment)};return this.emit("edits",s),s}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.d9)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&(this.historicMoment=r)},this.when().then((()=>{this.addHandles(function(e){return p.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return p.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=c,i=(0,r._)([(0,l.j)(u)],i),i}},25113:(e,t,i)=>{i.d(t,{B:()=>k});var r=i(43697),o=i(46791),n=i(22974),s=i(92604),l=i(5600),a=(i(75215),i(71715)),p=i(52011),d=i(30556),u=i(82960),c=i(6570),y=i(79235),h=i(82971),m=i(66677),f=i(21506),b=i(2368),v=i(96674),w=(i(67676),i(80442),i(80216));let g=class extends((0,b.J)(v.wq)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.dateFieldsTimeReference=null}};(0,r._)([(0,l.Cb)()],g.prototype,"creatorField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"creationDateField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"editorField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"editDateField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"realm",void 0),(0,r._)([(0,l.Cb)({type:w.Z})],g.prototype,"dateFieldsTimeReference",void 0),g=(0,r._)([(0,p.j)("esri.layers.support.EditFieldsInfo")],g);const _=g;let x=class extends((0,b.J)(v.wq)){constructor(e){super(e)}};(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,r._)([(0,p.j)("esri.layers.support.FeatureIndex")],x);var C=i(50957),j=i(67900);let I=class extends((0,b.J)(v.wq)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],I.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],I.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.Cb)({type:String,json:{read:e=>j.gV.read(e)||j.Jo.read(e)}})],I.prototype,"units",void 0),I=(0,r._)([(0,p.j)("esri.layers.support.GeometryFieldsInfo")],I);const S=I;var F=i(56765),E=i(35454);const M=new E.X({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),T=new E.X({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let O=class extends((0,b.J)(v.wq)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r._)([(0,l.Cb)({json:{read:M.read,write:M.write}})],O.prototype,"cardinality",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"composite",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"id",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"keyField",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"keyFieldInRelationshipTable",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"name",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"relatedTableId",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"relationshipTableId",void 0),(0,r._)([(0,l.Cb)({json:{read:T.read,write:T.write}})],O.prototype,"role",void 0),O=(0,r._)([(0,p.j)("esri.layers.support.Relationship")],O);const R=O;var U=i(54275),V=i(72729);let Z=class extends((0,b.J)(v.wq)){constructor(){super(...arguments),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,V.im)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],Z.prototype,"code",void 0),(0,r._)([(0,l.Cb)({type:Object,json:{write:!0}})],Z.prototype,"defaultValues",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],Z.prototype,"domains",void 0),(0,r._)([(0,a.r)("domains")],Z.prototype,"readDomains",null),(0,r._)([(0,d.c)("domains")],Z.prototype,"writeDomains",null),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],Z.prototype,"name",void 0),Z=(0,r._)([(0,p.j)("esri.layers.support.Subtype")],Z);const A=Z,k=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeReference=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.Z.ofType(x)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeReference=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.Z.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}return this.userHasUpdateItemPrivileges?(0,C.uA)(this)?"load":this.hasUpdateItemRestrictions?e.operations.supportsQuery?"editing":"load":null:this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions?"editing":null}readCapabilitiesFromService(e,t){return(0,U.h)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.d9)(e),{operations:i,editing:r}=t;return this.sourceJSON?.isMultiServicesView?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,C.rk)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||this.sourceJSON?.isMultiServicesView)return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return this.sourceJSON?.isMultiServicesView?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,C.kZ)(t)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}set url(e){const t=(0,m.XG)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:s.Z.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,r){(0,m.wH)(this,e,null,t,r)}readVersion(e,t){return(0,C.JY)(t)}};return(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.Cb)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,a.r)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.Cb)({type:w.Z})],t.prototype,"dateFieldsTimeReference",void 0),(0,r._)([(0,l.Cb)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.Cb)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,a.r)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.Cb)((()=>{const e=(0,n.d9)(f.PV),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],t.prototype,"elevationInfo",void 0),(0,r._)([(0,l.Cb)({type:F.Z,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.C}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.Cb)({type:c.Z,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:S,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:C.Fr.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.Cb)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,a.r)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:y.Z})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.Cb)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.Cb)({type:o.Z.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,a.r)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.Cb)(f.u1)],t.prototype,"maxScale",void 0),(0,r._)([(0,a.r)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.Cb)(f.rO)],t.prototype,"minScale",void 0),(0,r._)([(0,a.r)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.Cb)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,a.r)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.Cb)({type:w.Z})],t.prototype,"preferredTimeReference",void 0),(0,r._)([(0,l.Cb)({type:[R],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.Cb)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.Cb)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,a.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.Cb)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.Cb)({type:h.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.Cb)({type:[A],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.Cb)(f.HQ)],t.prototype,"url",null),(0,r._)([(0,d.c)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.Cb)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,a.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,p.j)("esri.layers.mixins.FeatureLayerBase")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var r=i(43697),o=i(92835),n=i(84552),s=i(5600),l=(i(75215),i(67676),i(80442),i(71715)),a=i(52011),p=i(35671),d=i(76259),u=i(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=u.v.fromJSON(i.timeOffsetUnits);return r&&o?new n.Z({value:r,unit:o}):null}set timeInfo(e){(0,p.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,s.Cb)({type:o.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,s.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,s.Cb)({value:null,type:d.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,s.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,i)=>{i.d(t,{Z:()=>m});var r=i(43697),o=i(92835),n=i(84552),s=i(2368),l=i(96674),a=i(5600),p=(i(75215),i(67676),i(80442),i(71715)),d=i(52011),u=i(30556),c=i(80216);function y(e,t){return n.Z.fromJSON({value:e,unit:t})}let h=class extends((0,s.J)(l.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new o.Z({start:i,end:r})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r._)([(0,a.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r._)([(0,a.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r._)([(0,p.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r._)([(0,a.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r._)([(0,p.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r._)([(0,u.c)("interval")],h.prototype,"writeInterval",null),(0,r._)([(0,a.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r._)([(0,a.Cb)({type:c.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"timeReference",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,r._)([(0,d.j)("esri.layers.support.TimeInfo")],h);const m=h},50957:(e,t,i)=>{i.d(t,{C9:()=>E,Ci:()=>x,FV:()=>_,Fr:()=>m,JD:()=>f,JY:()=>U,Jj:()=>w,KE:()=>S,Ob:()=>D,SU:()=>C,VG:()=>I,Y5:()=>v,gG:()=>M,kZ:()=>R,kp:()=>F,nU:()=>Z,rP:()=>T,rk:()=>O,sX:()=>A,tD:()=>j,uA:()=>N,uj:()=>g});var r=i(40330),o=i(9790),n=i(20102),s=i(35454),l=i(42033),a=i(63213),p=i(84230),d=i(84382),u=i(81571),c=i(56545),y=i(14165),h=i(75935);const m=new s.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function f(e,t,i,r){const o=await V(e);if(await b(e,t,r),!o.addAttachment)throw new n.Z(r,"Layer source does not support addAttachment capability");return o.addAttachment(t,i)}function b(e,t,i){const{attributes:r}=t,{objectIdField:o}=e;return e.capabilities?.data?.supportsAttachment?t?r?o&&r[o]?Promise.resolve():Promise.reject(new n.Z(i,`feature is missing the identifying attribute ${o}`)):Promise.reject(new n.Z(i,"'attributes' are required on a feature to query attachments")):Promise.reject(new n.Z(i,"A feature is required to add/delete/update attachments")):Promise.reject(new n.Z(i,"this layer doesn't support attachments"))}async function v(e,t,i,r,o){const s=await V(e);if(await b(e,t,o),!s.updateAttachment)throw new n.Z(o,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,i,r)}async function w(e,t,r){const{applyEdits:o}=await i.e(4720).then(i.bind(i,14720)),n=await e.load();return o(n,n.source,t,r)}async function g(e,t,r){const{uploadAssets:o}=await i.e(4720).then(i.bind(i,14720)),n=await e.load();return o(n,n.source,t,r)}async function _(e,t,i,r){const o=await V(e);if(await b(e,t,r),!o.deleteAttachments)throw new n.Z(r,"Layer source does not support deleteAttachments capability");return o.deleteAttachments(t,i)}async function x(e,t,i){const r=(await e.load({signal:t?.signal})).source;if(!r.fetchRecomputedExtents)throw new n.Z(i,"Layer source does not support fetchUpdates capability");return r.fetchRecomputedExtents(t)}async function C(e,t,i,r){t=c.Z.from(t),await e.load();const o=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new n.Z(r,"this layer doesn't support attachments");const{attachmentTypes:l,objectIds:a,globalIds:p,num:d,size:u,start:y,where:h}=t;if(!s?.operations?.supportsQueryAttachments&&(l?.length>0||p?.length>0||u?.length>0||d||y||h))throw new n.Z(r,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(a?.length||p?.length||h))throw new n.Z(r,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!o.queryAttachments)throw new n.Z(r,"Layer source does not support queryAttachments capability",t);return o.queryAttachments(t)}async function j(e,t,i,r){const o=await V(e);if(!o.queryObjectIds)throw new n.Z(r,"Layer source does not support queryObjectIds capability");return o.queryObjectIds(y.Z.from(t)??e.createQuery(),i)}async function I(e,t,i,r){const o=await V(e);if(!o.queryFeatureCount)throw new n.Z(r,"Layer source does not support queryFeatureCount capability");return o.queryFeatureCount(y.Z.from(t)??e.createQuery(),i)}async function S(e,t,i,r){const o=await V(e);if(!o.queryExtent)throw new n.Z(r,"Layer source does not support queryExtent capability");return o.queryExtent(y.Z.from(t)??e.createQuery(),i)}async function F(e,t,i,r){const o=await V(e);if(!o.queryRelatedFeatures)throw new n.Z(r,"Layer source does not support queryRelatedFeatures capability");return o.queryRelatedFeatures(h.default.from(t),i)}async function E(e,t,i,r){const o=await V(e);if(!o.queryRelatedFeaturesCount)throw new n.Z(r,"Layer source does not support queryRelatedFeaturesCount capability");return o.queryRelatedFeaturesCount(h.default.from(t),i)}async function M(e){const t=e.source;if(t?.refresh)try{const{dataChanged:i,updates:r}=await t.refresh();if(null!=r&&(e.sourceJSON={...e.sourceJSON,...r},e.read(r,{origin:"service",url:e.parsedUrl})),i)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function T(e){const t=new y.Z,i=e.capabilities?.data,r=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference),i&&(i.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),i.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:o,timeExtent:n}=e;return t.timeExtent=null!=o&&null!=n?n.offset(-o.value,o.unit):n||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function O(e){const{globalIdField:t,fields:i}=e;if(t)return t;if(i)for(const e of i)if("esriFieldTypeGlobalID"===e.type)return e.name}function R(e){const{objectIdField:t,fields:i}=e;if(t)return t;if(i)for(const e of i)if("esriFieldTypeOID"===e.type)return e.name}function U(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function V(e){return(await e.load()).source}async function Z(e,t,i){const o=e.parsedUrl?.path;o&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!r.id)return;if(r.id.findCredential(e))return;let i;try{const o=await(0,p.oP)(e,t);o&&(i=await r.id.checkSignInStatus(`${o}/sharing`))}catch(e){}if(i)try{const i=null!=t?t.signal:null;await r.id.getCredential(e,{signal:i})}catch(e){}}(o,i)}function A(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const k=(0,a.d)({types:o.QT});function D(e,t){if(e.defaultSymbol)return e.types&&e.types.length?new u.Z({defaultSymbol:k(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:k(e.symbol,e,t)})))}):new d.Z({symbol:k(e.defaultSymbol,e,t)})}function N(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const i=e.editingInfo?.lastEditDate?.getTime();return null==i||(t*=1e3,Date.now()-i<t)}},53518:(e,t,i)=>{i.d(t,{v:()=>l});var r=i(92604),o=i(1231),n=i(99514),s=i(35671);function l(){return{fields:{type:[o.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new n.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||r.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,s.Q0)(this.fieldsIndex,e)}}}}},60199:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(66677);const o=[];function n(e,t){if((0,r.M8)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102901;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),o.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),o.push([10.61,()=>new Set([102497])]),o.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}]),o.push([10.51,()=>{const e=new Set([7683,7881,7886,7899,8888,9e3]);for(let t=8013;t<=8032;t++)e.add(t);for(let t=9053;t<=9057;t++)e.add(t);for(let t=104017;t<=104018;t++)e.add(t);for(let t=104971;t<=104974;t++)e.add(t);return e}]),o.push([10.5,()=>{const e=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);for(let t=4087;t<=4088;t++)e.add(t);for(let t=5896;t<=5899;t++)e.add(t);for(let t=7005;t<=7007;t++)e.add(t);for(let t=7057;t<=7070;t++)e.add(t);for(let t=7073;t<=7082;t++)e.add(t);for(let t=7109;t<=7128;t++)e.add(t);for(let t=7844;t<=7859;t++)e.add(t);return e}])},78981:(e,t,i)=>{i.d(t,{v:()=>r});const r=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},75935:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var r,o=i(43697),n=(i(66577),i(96674)),s=i(22974),l=i(5600),a=i(75215),p=i(52011),d=i(30556),u=i(10158),c=i(82971);let y=r=class extends n.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new r((0,s.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,o._)([(0,l.Cb)({type:u.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,o._)([(0,l.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,o._)([(0,d.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,o._)([(0,l.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,o._)([(0,l.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o._)([(0,l.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,o._)([(0,l.Cb)({type:c.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,o._)([(0,d.c)("start"),(0,d.c)("num")],y.prototype,"writeStart",null),(0,o._)([(0,l.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=r=(0,o._)([(0,p.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,a.se)(y);const h=y},12259:(e,t,i)=>{var r;i.d(t,{x:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9059,5732,7865,2596],{92835:(e,t,r)=>{r.d(t,{Z:()=>p});var i,n=r(43697),s=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),d=r(52011),u=r(30556);let h=i=class extends s.wq{static get allTime(){return y}static get empty(){return c}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.JE)(r,e,t));let n=this.end;if(n){const r=(0,o.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.Nm)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,a;if(n>=t&&n<=r?o=n:t>=n&&t<=s&&(o=t),r>=n&&r<=s?a=r:s>=t&&s<=r&&(a=s),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const e=new i;return e.start=o===-1/0?null:new Date(o),e.end=a===1/0?null:new Date(a),e}return i.empty}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.Nm)(s,e,t,r)),null!=a&&(n.end=(0,o.Nm)(a,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],h.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],h.prototype,"writeStart",null),h=i=(0,n._)([(0,d.j)("esri.TimeExtent")],h);const y=new h,c=new h({start:void 0,end:void 0}),p=h},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},57435:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),n=r(46791),s=(r(66643),r(20102),r(92604),r(26258),r(87538)),o=r(5600),a=r(52011);let l=class extends n.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,o.Cb)()],l.prototype,"getCollections",void 0),(0,i._)([(0,o.Cb)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,o.Cb)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,a.j)("esri.core.CollectionFlattener")],l);const d=l},10699:(e,t,r)=>{r.d(t,{IG:()=>o,iv:()=>a});var i=r(43697),n=r(52011);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.j)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.j)("esri.core.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};l=(0,i._)([(0,n.j)("esri.core.Identifiable")],l)},70921:(e,t,r)=>{r.d(t,{R:()=>s,Z:()=>n});var i=r(46791);function n(e,t,r=i.Z){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},68668:(e,t,r)=>{r.d(t,{G:()=>o,w:()=>a});var i=r(66643),n=r(46791),s=r(83379);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],o=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?o(...t):n.Z.isCollection(t)?t.forEach((e=>o(e))):s.Z.isLoadable(t)&&r.push(t))};t(o);let a=null;if(await(0,i.UI)(r,(async e=>{const t=await(0,i.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)})),a)throw a.error;return e}},17445:(e,t,r)=>{r.d(t,{N1:()=>y,YP:()=>l,Z_:()=>m,gx:()=>d,nn:()=>f,on:()=>h,tX:()=>g}),r(66643),r(46791);var i=r(91460),n=r(50758),s=r(70586),o=r(95330),a=r(26258);function l(e,t,r={}){return u(e,t,r,c)}function d(e,t,r={}){return u(e,t,r,p)}function u(e,t,r={},i){let n=null;const o=r.once?(e,r)=>{i(e)&&((0,s.hw)(n),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(n=(0,a.aQ)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return n}function h(e,t,r,o={}){let a=null,d=null,u=null;function h(){a&&d&&(d.remove(),o.onListenerRemove?.(a),a=null,d=null)}function y(e){o.once&&o.once&&(0,s.hw)(u),r(e)}const c=l(e,((e,r)=>{h(),(0,i.vT)(e)&&(a=e,d=(0,i.on)(e,t,y),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return u=(0,n.kB)((()=>{c.remove(),h()})),u}function y(e,t){return function(e,t,r){if((0,o.Hc)(r))return Promise.reject((0,o.zE)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.hw)(a)}return new Promise(((i,s)=>{a=(0,n.AL)([(0,o.fu)(r,(()=>{l(),s((0,o.zE)())})),u(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??c)])}))}(e,p,t)}function c(e){return!0}function p(e){return!!e}r(87538);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},35463:(e,t,r)=>{r.d(t,{JE:()=>a,Nm:()=>o,rJ:()=>l});var i=r(90344),n=r(17126);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(e,t,r,s="system"){const o=new n.vF((0,i.f1)(s)),a=n.ou.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":d(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function a(e,t,r="system"){const s=new n.vF((0,i.f1)(r)),o=n.ou.fromJSDate(e,{zone:s});if("decades"===t||"centuries"===t){const e=o.startOf("year"),{year:r}=e,i=r-r%("decades"===t?10:100);return e.set({year:i}).toJSDate()}const a=d(t);return o.startOf(a).toJSDate()}function l(e,t,r){return 0===e?0:e*s[t]/s[r]}function d(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(e,t,r)=>{r.d(t,{Xr:()=>p,Ze:()=>b,f1:()=>w,p6:()=>v});var i=r(35454),n=r(70171),s=r(15512);r(17126);const o=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(s.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},y={...h,second:"numeric"},c={"short-date":a,"short-date-short-time":{...a,...h},"short-date-short-time-24":{...a,...h,hour12:!1},"short-date-long-time":{...a,...y},"short-date-long-time-24":{...a,...y,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...h},"short-date-le-short-time-24":{...a,...h,hour12:!1},"short-date-le-long-time":{...a,...y},"short-date-le-long-time-24":{...a,...y,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...h},"long-month-day-year-short-time-24":{...l,...h,hour12:!1},"long-month-day-year-long-time":{...l,...y},"long-month-day-year-long-time-24":{...l,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...h},"day-short-month-year-short-time-24":{...d,...h,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":u,"long-date-short-time":{...u,...h},"long-date-short-time-24":{...u,...h,hour12:!1},"long-date-long-time":{...u,...y},"long-date-long-time-24":{...u,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":y},p=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),m={ar:"ar-u-nu-latn-ca-gregory"};let f=new WeakMap;const g=c["short-date-short-time"];function b(e){return c[e]}function v(e,t=g){return function(e){let t=f.get(e);if(!t){const r=(0,n.Kd)(),i=m[r]||r,o=w(e.timeZone??s.By),a={...e,timeZone:o};t=new Intl.DateTimeFormat(i,a),f.set(e,t)}return t}(t).format(e)}function w(e){switch(e){case s.By:return o;case s._4:return s.pt;default:return e}}(0,n.Ze)((()=>{f=new WeakMap}))},40504:(e,t,r)=>{r.r(t),r.d(t,{default:()=>M});var i=r(43697),n=r(57435),s=r(68668),o=r(92604),a=r(16453),l=r(17445),d=r(5600),u=(r(75215),r(67676),r(80442),r(1153)),h=r(52011),y=r(30556),c=r(87085),p=r(71612),m=r(38009),f=r(16859),g=r(72965),b=r(87344),v=r(46791),w=r(70921),_=r(95330);function C(e,t,r){let i,n;if(e)for(let s=0,o=e.length;s<o;s++){if(i=e.at(s),i?.[t]===r)return i;if("group"===i?.type&&(n=C(i.layers,t,r),n))return n}}const T=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new v.Z;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||o.Z.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,w.Z)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof c.Z){const i=e;i.parent===this?this.reorder(i,t):r.add(i,t)}else(0,_.y8)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):o.Z.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let i=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,i),i+=1):this.reorder(e,i)}))}findLayerById(e){return C(this.layers,"id",e)}findLayerByUid(e){return C(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,i._)([(0,d.Cb)()],t.prototype,"layers",null),t=(0,i._)([(0,h.j)("esri.support.LayersMixin")],t),t};function L(e,t,r){if(e)for(let i=0,n=e.length;i<n;i++){const n=e.at(i);if(n[t]===r)return n;if("group"===n?.type){const e=L(n.tables,t,r);if(e)return e}}}const I=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new v.Z,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&o.Z.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,w.Z)(e,this._get("tables")))}findTableById(e){return L(this.tables,"id",e)}findTableByUid(e){return L(this.tables,"uid",e)}};return(0,i._)([(0,d.Cb)()],t.prototype,"tables",null),t=(0,i._)([(0,h.j)("esri.support.TablesMixin")],t),t},E=Symbol("WebScene");var S=r(15650);let D=class extends((0,p.h)((0,g.M)((0,m.q)((0,f.I)(I(T((0,a.R)(c.Z)))))))){constructor(e){var t;super(e),this.allLayers=new n.Z({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.Z({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group"}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,l.YP)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&E in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,l.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),o.Z.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),l.tX),(0,l.YP)((()=>this.visible),this._onVisibilityChange.bind(this),l.Z_)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}_writeLayers(e,t,r,i){const n=[];if(!e)return n;e.forEach((e=>{const t=(0,S.Nw)(e,i.webmap?i.webmap.getLayerJSONFromResourceInfo(e):null,i);null!=t&&t.layerType&&n.push(t)})),t.layers=n}set portalItem(e){this._set("portalItem",e)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"],layerModuleTypeMap:b.T},e)),Promise.resolve(this)}async loadAll(){return(0,s.G)(this,(e=>{e(this.layers,this.tables)}))}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer readded to Grouplayer: uid=${e.uid}`):this.addHandles((0,l.YP)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),l.Z_),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,u.vw)(this).initialized)return;const r=this.layers;let i=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!i&&(i=r.at(0),i.visible=!0),this._turnOffOtherLayers(i);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,i._)([(0,d.Cb)({readOnly:!0,dependsOn:[]})],D.prototype,"allLayers",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],D.prototype,"allTables",void 0),(0,i._)([(0,d.Cb)()],D.prototype,"fullExtent",void 0),(0,i._)([(0,d.Cb)({json:{read:!0,write:!0}})],D.prototype,"blendMode",void 0),(0,i._)([(0,d.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],D.prototype,"layers",void 0),(0,i._)([(0,y.c)("layers")],D.prototype,"_writeLayers",null),(0,i._)([(0,d.Cb)({type:["GroupLayer"]})],D.prototype,"operationalLayerType",void 0),(0,i._)([(0,d.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],D.prototype,"portalItem",null),(0,i._)([(0,d.Cb)()],D.prototype,"spatialReference",void 0),(0,i._)([(0,d.Cb)({json:{read:!1},readOnly:!0,value:"group"})],D.prototype,"type",void 0),(0,i._)([(0,d.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],D.prototype,"visibilityMode",null),D=(0,i._)([(0,h.j)("esri.layers.GroupLayer")],D);const M=D},87085:(e,t,r)=>{r.d(t,{Z:()=>v});var i=r(43697),n=(r(66577),r(3172)),s=r(20102),o=r(32448),a=r(10699),l=r(83379),d=r(92604),u=r(95330),h=r(17452),y=r(5600),c=(r(75215),r(67676),r(80442),r(52011)),p=r(68773),m=r(6570),f=r(82971);let g=0,b=class extends(o.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(8008).then(r.bind(r,28008));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||p.default.portalUrl;throw d.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.D_)(e)||d.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.Z)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,y.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i._)([(0,y.Cb)({type:m.Z})],b.prototype,"fullExtent",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i._)([(0,y.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i._)([(0,y.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i._)([(0,y.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i._)([(0,y.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i._)([(0,y.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i._)([(0,y.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i._)([(0,y.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i._)([(0,y.Cb)({type:f.Z})],b.prototype,"spatialReference",void 0),(0,i._)([(0,y.Cb)({type:String})],b.prototype,"title",void 0),(0,i._)([(0,y.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i._)([(0,y.Cb)()],b.prototype,"url",void 0),(0,i._)([(0,y.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i._)([(0,c.j)("esri.layers.Layer")],b);const v=b},16859:(e,t,r)=>{r.d(t,{I:()=>C});var i=r(43697),n=r(68773),s=r(40330),o=r(3172),a=r(66643),l=r(20102),d=r(92604),u=r(70586),h=r(95330),y=r(17452),c=r(5600),p=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),b=r(48522),v=r(15235),w=r(86082),_=r(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,h.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,h.D_)(e)||d.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,h.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,h.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,_.Ss)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,h.r9)(e)}if(!n||!(0,y.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,h.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=b.Z.getDefault();if(n&&n.loaded&&(0,y.Fv)(n.restUrl)===(0,y.Fv)(i))return n.user;const l=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,a.q6)((0,o.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.Z.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||b.Z.getDefault());return r&&i&&!(0,y.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("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._)([(0,c.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,p.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},T={credential:null,user:null}},15512:(e,t,r)=>{r.d(t,{By:()=>i,_4:()=>n,pt:()=>s});const i="system",n="unknown",s="UTC"},15650:(e,t,r)=>{r.d(t,{Nw:()=>h});var i=r(20102),n=r(22974),s=r(78286),o=r(827),a=r(84230);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),d=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function u(e,t){"maxScale"in e&&(t.maxScale=(0,o.k)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,o.k)(e.minScale)??void 0)}function h(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r&&r.messages&&r.messages.push(new i.Z("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if(function(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?d:null}(t);return null==r||r.has(e.type)&&!(0,a.rQ)(e)}return!0}(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,a.rQ)(e)){const r=(0,s.hS)("featureCollection.layers",t),i=r&&r[0]&&r[0].layerDefinition;i&&u(e,i)}else"group"!==e.type&&u(e,t)}(e,t),t&&("blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,o.k)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,a.rQ)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.d9)(t)),t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9863,661,5234],{53073:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(75148),a=n(59987),s=n(91136),i=n(90961),l=n(90658),o=n(8667);class u extends s.Z{constructor(e){super(e),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new i.Z(t._candidates.slice(0),t._known.slice(0),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return t===l.dj.NotInFeatureSet?t:(t=this._idstates[e],void 0===t?l.dj.Unknown:t)}_getFeature(e,t,n){return this._parent._getFeature(e,t,n)}_getFeatures(e,t,n,r){return this._parent._getFeatures(e,t,n,r)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null===e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":return(0,o.kK)((0,l.SV)(this._relationGeom),(0,l.SV)(e.geometry));case"esriSpatialRelIntersects":return(0,o.kK)(this._relationGeom,e.geometry);case"esriSpatialRelContains":return(0,o.r3)(this._relationGeom,e.geometry);case"esriSpatialRelOverlaps":return(0,o.Nm)(this._relationGeom,e.geometry);case"esriSpatialRelWithin":return(0,o.uh)(this._relationGeom,e.geometry);case"esriSpatialRelTouches":return(0,o.W4)(this._relationGeom,e.geometry);case"esriSpatialRelCrosses":return(0,o.jU)(this._relationGeom,e.geometry);case"esriSpatialRelRelation":return(0,o.LV)(this._relationGeom,e.geometry,this._relationString??"")}}async _fetchAndRefineFeatures(e,t,n){const r=new i.Z([],e,!1,null),a=Math.min(t,e.length);await(this._parent?._getFeatures(r,-1,a,n)),this._checkCancelled(n);const s=[];for(let t=0;t<a;t++){const n=this._parent._featureFromCache(e[t]);s.push(await this.executeSpatialRelationTest(n))}for(let n=0;n<t;n++)!0===s[n]?this._idstates[e[n]]=l.dj.InFeatureSet:this._idstates[e[n]]=l.dj.NotInFeatureSet;return"success"}async _getFilteredSet(e,t,n,r,a){await this._ensureLoaded();const s=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,n,r,a);let l;return this._checkCancelled(a),l=null!==t?new i.Z(s._candidates.slice(0).concat(s._known.slice(0)),[],s._ordered,this._clonePageDefinition(s.pagesDefinition)):new i.Z(s._candidates.slice(0),s._known.slice(0),s._ordered,this._clonePageDefinition(s.pagesDefinition)),l}async _stat(e,t,n,r,a,s,i){if(""!==n)return{calculated:!1};const l=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}async _canDoAggregates(e,t,n,r,a){return""===n&&null===r&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,s,i,l){if(null===this._parent)throw new a.EN(a.H9.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,s,i,l)}static registerAction(){s.Z._featuresetFunctions.intersects=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},s.Z._featuresetFunctions.envelopeIntersects=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},s.Z._featuresetFunctions.contains=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},s.Z._featuresetFunctions.overlaps=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},s.Z._featuresetFunctions.within=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},s.Z._featuresetFunctions.touches=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},s.Z._featuresetFunctions.crosses=function(e){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},s.Z._featuresetFunctions.relate=function(e,t){return null==e?new r.Z({parentfeatureset:this}):new u({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}}},75148:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(59987),a=n(91136),s=n(90961),i=n(90658);class l extends a.Z{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new s.Z([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=i.Bj.Standardised}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return i.dj.NotInFeatureSet}async _getFeature(){throw new r.EN(r.H9.NeverReach)}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new r.EN(r.H9.NeverReach)}async _getFilteredSet(){return new s.Z([],[],!1,null)}_stat(e,t,n,r,a,s,i){return this._manualStat(e,t,s,i)}async _canDoAggregates(){return!1}}},91136:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(85839),a=n(48039),s=n(59987);class i{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((t=>this.nextBatch(e)),(t=>this.nextBatch(e)));const t={returnpromise:null,hasset:!1},n=[];return t.returnpromise=new Promise(((r,a)=>{this._parent._getSet(this._progress).then((s=>{const i=s._known;let l=i.length-1;if("GETPAGES"===i[i.length-1]&&(l-=1),this._lastId+e>l&&i.length>0&&"GETPAGES"===i[i.length-1])return void this._parent._expandPagedSet(s,this._parent._maxQueryRate(),0,0,this._progress).then((n=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}));const o=s._candidates;if(l>=this._lastId+e||0===o.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=i.length)break;n[t]=i[e]}return this._lastId+=n.length,0===n.length&&(t.hasset=!0,this._parent._mainSetInUse=null,r([])),void this._parent._getFeatureBatch(n,this._progress).then((e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}this._parent._refineSetBlock(s,this._parent._maxProcessingRate(),this._progress).then((()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(r,a)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,a(e)}))})),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((e=>this.next()),(e=>this.next()));const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise(((t,n)=>{this._parent._getSet(this._progress).then((r=>{const a=r._known;this._lastId<a.length-1?"GETPAGES"===a[this._lastId+1]?this._parent._expandPagedSet(r,this._parent._maxQueryRate(),0,0,this._progress).then((t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next()))).then(t,n):(this._lastId+=1,this._parent._getFeature(r,a[this._lastId],this._progress).then((n=>{e.hasset=!0,this._parent._mainSetInUse=null,t(n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))):r._candidates.length>0?this._parent._refineSetBlock(r,this._parent._maxProcessingRate(),this._progress).then((()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,n)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)})):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,n(t)}))})),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=n(90961),o=n(90658),u=n(95002),c=n(95330),h=n(8968),d=n(8667),f=n(82971),_=n(99514);class p{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=o.Bj.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this._dateFieldIndex=null,e&&e.lrucache&&(this.recentlyUsedQueries=e.lrucache),e&&e.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.fields=[],this.typeIdField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new f.Z({wkid:4326}),this.geometryType=o.Qk.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n)))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=new _.Z(this.fields)),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new s.EN(s.H9.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,r,a){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,r,a)}async _getAggregatePagesDataSourceDefinition(e,t,n,r,a,i,l){if(null===this._parent)throw new s.EN(s.H9.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,n,r,a,i,l)}async _getAgregagtePhysicalPage(e,t,n){if(null===this._parent)throw new s.EN(s.H9.NeverReach);return this._parent._getAgregagtePhysicalPage(e,t,n)}async databaseType(){if(this._databaseType===o.Bj.NotEvaluated){if(null!==a.Z.applicationCache){const e=a.Z.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==a.Z.applicationCache&&a.Z.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==a.Z.applicationCache&&a.Z.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:o.Bj.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:o.Bj.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:o.Bj.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return o.Bj.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new s.EN(s.H9.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return o.dj.Unknown}_getSet(e){throw new s.EN(s.H9.NotImplemented)}async _getFeature(e,t,n){if(this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),n),this._checkCancelled(n),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new s.EN(s.H9.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new l.Z([],e,!1,null),r=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&r.push(this._featureFromCache(t));return r}async _getFeatures(e,t,n,r){return"success"}_getFilteredSet(e,t,n,r,a){throw new s.EN(s.H9.NotImplemented)}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const r=e._candidates.length;this._refineKnowns(e,t);let a=r-e._candidates.length;if(0===e._candidates.length)return e;if(a>=t)return e;if(await this._refineIfParentKnown(e,t-a,n),this._checkCancelled(n),this._refineKnowns(e,t-a),a=r-e._candidates.length,a<t&&e._candidates.length>0){const r=t-a,s=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(s,s.length>r?r:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-a),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,r=null;const a=[];t=this._maxQueryRate();for(let s=0;s<e._candidates.length&&"GETPAGES"!==e._candidates[s];s++){let i=!1;const l=this._candidateIdTransform(e._candidates[s]);l!==e._candidates[s]&&(i=!0);const u=this._isInFeatureSet(l);if(u===o.dj.InFeatureSet)!0===i?e._known.includes(l)||(e._known.push(l),n+=1):(e._known.push(e._candidates[s]),n+=1),null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s});else if(u===o.dj.NotInFeatureSet)null===r?r={start:s,end:s}:r.end===s-1?r.end=s:(a.push(r),r={start:s,end:s}),n+=1;else if(u===o.dj.Unknown&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==r&&a.push(r);for(let t=a.length-1;t>=0;t--)e._candidates.splice(a[t].start,a[t].end-a[t].start+1)}_refineIfParentKnown(e,t,n){const r=new l.Z([],[],e._ordered,null);return r._candidates=e._candidates.slice(0),this._parent._refineSetBlock(r,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=e._lastFetchedIndex;r<e._known.length;r++){if("GETPAGES"===e._known[r])return!0;if(void 0===this._featureCache[e._known[r]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let r=0;r<e._candidates.length;r++){if("GETPAGES"===e._candidates[r])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,t,n,r,a){if(null===this._parent)throw new s.EN(s.H9.NotImplemented);return this._parent._expandPagedSet(e,t,n,r,a)}async _expandPagedSetFeatureSet(e,t,n,r,a){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(r=1),0===r&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(r=2),0===r)return"finished";const s=await this._getPage(e,r,a);return n+s<t?this._expandPagedSet(e,t,n+s,0,a):"success"}async _getPage(e,t,n){const r=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){r.length=r.length-1;let t=0;for(let n=0;n<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+n>=e.pagesDefinition.internal.set.length);n++)r[r.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+n],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&r.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,r){await this._ensureLoaded();let a=await this._stat(e,t,"",null,null,n,r);return!1===a.calculated&&(a=await this._manualStat(e,t,n,r)),a.result}async _manualStat(e,t,n,r){let a=null;switch(e.toLowerCase()){case"count":return a=await(0,u.QX)(this,r),{calculated:!0,result:a};case"distinct":return a=await(0,u.EB)(this,t,n,r),{calculated:!0,result:a};case"avg":case"mean":return a=await(0,u.J6)(this,t,r),{calculated:!0,result:a};case"stdev":return a=await(0,u.m)(this,t,r),{calculated:!0,result:a};case"variance":return a=await(0,u.CA)(this,t,r),{calculated:!0,result:a};case"sum":return a=await(0,u.Sm)(this,t,r),{calculated:!0,result:a};case"min":return a=await(0,u.VV)(this,t,r),{calculated:!0,result:a};case"max":return a=await(0,u.Fp)(this,t,r),{calculated:!0,result:a};default:return{calculated:!0,result:0}}}async _stat(e,t,n,r,a,s,i){const l=await this._parent._stat(e,t,n,r,a,s,i);return!1===l.calculated?null===a&&""===n&&null===r?this._manualStat(e,t,s,i):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise(((e,r)=>{this._unionShapeInBatches(n,t,e,r)}))}_unionAllGeom(e){return new Promise(((t,n)=>{const r=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],r,t,n)}))}_unionShapeInBatches(e,t,n,r){t.next().then((a=>{try{null!==a&&null!==a.geometry&&e.push(a.geometry),e.length>30||null===a&&e.length>1?(0,d.G0)(e).then((s=>{try{null===a?n(s):(e=[s],this._unionShapeInBatches(e,t,n,r))}catch(e){r(e)}}),r):null===a?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,r)}catch(e){r(e)}}),r)}iterator(e){return new i(this,e)}intersection(e,t=!1){return p._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return p._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return p._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",r=null){return p._featuresetFunctions.morphShape.bind(this)(e,t,n,r)}morphShapeAndAttributes(e,t,n="unknown"){return p._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return p._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return p._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return p._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return p._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return p._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return p._featuresetFunctions.relate.bind(this)(e,t)}within(e){return p._featuresetFunctions.within.bind(this)(e)}touches(e){return p._featuresetFunctions.touches.bind(this)(e)}top(e){return p._featuresetFunctions.top.bind(this)(e)}crosses(e){return p._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,r=!0){return p._featuresetFunctions.buffer.bind(this)(e,t,n,r)}filter(e,t=null){return p._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return p._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return p._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return p._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise(((r,a)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,r,a,0)}))}_reduceImpl(e,t,n,r,a,s,i){try{if(++i>1e3)return void setTimeout((()=>{i=0,this._reduceImpl(e,t,n,r,a,s,i)}));e.next().then((l=>{try{if(null===l)a(n);else{const o=t(n,l,r,this);(0,c.y8)(o)?o.then((n=>{this._reduceImpl(e,t,n,r+1,a,s,i)}),s):this._reduceImpl(e,t,o,r+1,a,s,i)}}catch(e){s(e)}}),s)}catch(e){s(e)}}removeField(e){return p._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return p._featuresetFunctions.addField.bind(this)(e,t,n)}sumArea(e,t=!1,n){const r=(0,o.EI)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.Y4)(n.geometry,r).then((t=>e+t)):(0,d.CJ)(n.geometry,r).then((t=>e+t))),0,n)}sumLength(e,t=!1,n){const r=(0,o.Lz)(e);return this.reduce(((e,n)=>null===n.geometry?0:t?(0,d.kQ)(n.geometry,r).then((t=>e+t)):(0,d.sz)(n.geometry,r).then((t=>e+t))),0,n)}_substituteVars(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}async distinct(e,t=1e3,n=null,r){await this.load();const a=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(a,n),this.calculateStatistic("distinct",a,t,this._defaultTracker(r))}async min(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(r,t),this.calculateStatistic("min",r,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(r,t),this.calculateStatistic("max",r,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(r,t),this.calculateStatistic("avg",r,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(r,t),this.calculateStatistic("sum",r,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(r,t),this.calculateStatistic("stdev",r,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC});return this._substituteVars(r,t),this.calculateStatistic("variance",r,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",h.WhereClause.create("1",this.getFieldsIndex(),{timeZone:this.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC}),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise(((n,r)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,r,0)}))}_forEachImpl(e,t,n,r,a,s){try{if(++s>1e3)return void setTimeout((()=>{s=0,this._forEachImpl(e,t,n,r,a,s)}),0);e.next().then((i=>{try{if(null===i)r(n);else{const l=t(i);null==l?this._forEachImpl(e,t,n,r,a,s):(0,c.y8)(l)?l.then((()=>{try{this._forEachImpl(e,t,n,r,a,s)}catch(e){a(e)}}),a):this._forEachImpl(e,t,n,r,a,s)}}catch(e){a(e)}}),a)}catch(e){a(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,o.Sh)(this.fields[e]));return this.reduce(((e,n)=>{const r={geometry:n.geometry&&n.geometry.toJSON(),attributes:{}};for(const e in n.attributes)r.attributes[e]=n.attributes[e];return t.featureSet.features.push(r),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,r,a){return this._parent.queryAttachments(e,t,n,r,a)}serviceUrl(){return this._parent.serviceUrl()}subtypes(){return this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,o.Sh)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===o.q2[this.geometryType]?"esriGeometryNull":o.q2[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,n)=>{const r={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&delete r.geometry.spatialReference,e.push(r),1}),0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce(((e,r)=>{const a={geometry:r.geometry?!0===t?.keepGeometryType?r.geometry:r.geometry.toJSON():null,attributes:r.attributes};return null!==a.geometry&&a.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete a.geometry.spatialReference,n.push(a),1}),0,e);const r=this.schema();return r.features=n,r.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),r}get dateTimeReferenceFieldIndex(){return null===this._dateFieldIndex&&(this._dateFieldIndex=r.nu.create(this.getFieldsIndex(),this)),this._dateFieldIndex}fieldTimeZone(e){return this.dateTimeReferenceFieldIndex.fieldTimeZone(e)}get preferredTimeReference(){return this._parent?.preferredTimeReference??null}get dateFieldsTimeReference(){return this._parent?.dateFieldsTimeReference??null}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}}p._featuresetFunctions={}},90961:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e,t,n,r){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=n,this.pagesDefinition=r}}},48039:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}r.applicationCache=null},36515:(e,t,n)=>{n.d(t,{$e:()=>d,DT:()=>w,TE:()=>L,XF:()=>c,bB:()=>h,fz:()=>_,hq:()=>b,mA:()=>p,oX:()=>y,vR:()=>S,y5:()=>E,zR:()=>u});var r=n(48853),a=n(59987),s=n(90658),i=n(53970),l=n(8968),o=n(17126);function u(e,t){return f(e?.parseTree,t,e?.parameters)}function c(e,t,n){return f(e,t,n)}function h(e,t,n,r){return l.WhereClause.create(f(e.parseTree,s.Bj.Standardised,e.parameters,t,n),r,{timeZone:e.timeReferenceZone})}function d(e,t,n="AND"){return l.WhereClause.create("(("+u(e,s.Bj.Standardised)+")"+n+"("+u(t,s.Bj.Standardised)+"))",e.fieldsIndex,{timeZone:e.timeReferenceZone})}function f(e,t,n,r=null,i=null,l=null){let u,c,h,d;switch(e.type){case"interval":return L(f(e.value,t,n,r,i,l),e.qualifier,e.op);case"case-expression":{let a=" CASE ";"simple"===e.format&&(a+=f(e.operand,t,n,r,i,l));for(let s=0;s<e.clauses.length;s++)a+=" WHEN "+f(e.clauses[s].operand,t,n,r,i,l)+" THEN "+f(e.clauses[s].value,t,n,r,i,l);return null!==e.else&&(a+=" ELSE "+f(e.else,t,n,r,i,l)),a+=" END ",a}case"parameter":{const r=n[e.value.toLowerCase()];if("string"==typeof r)return"'"+n[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,s.J_)(r))return y(r,t,l);if((0,s._U)(r))return g(r,t);if((0,s.NP)(r))return p(r,t,l);if((0,s.$A)(r))return m(r,t);if(r instanceof Array){const e=[];for(let n=0;n<r.length;n++)"string"==typeof r[n]?e.push("'"+r[n].toString().replaceAll("'","''")+"'"):(0,s.J_)(r[n])?e.push(y(r[n],t,l)):(0,s._U)(r[n])?e.push(g(r[n],t)):(0,s.NP)(r[n])?e.push(p(r[n],t,l)):(0,s.$A)(r[n])?e.push(m(r[n],t)):e.push(r[n].toString());return e}return r.toString()}case"expression-list":c=[];for(const a of e.value)c.push(f(a,t,n,r,i,l));return c;case"unary-expression":return" ( NOT "+f(e.expr,t,n,r,i,l)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+f(e.left,t,n,r,i,l)+" AND "+f(e.right,t,n,r,i,l)+") ";case"OR":return" ("+f(e.left,t,n,r,i,l)+" OR "+f(e.right,t,n,r,i,l)+") ";case"IS":if("null"!==e.right.type)throw new a.eS(a.f.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i,l)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new a.eS(a.f.UnsupportedIsRhs);return" ("+f(e.left,t,n,r,i,l)+" IS NOT NULL )";case"IN":return u=[],"expression-list"===e.right.type?(u=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i,l)+" IN ("+u.join(",")+")) "):(d=f(e.right,t,n,r,i,l),d instanceof Array?" ("+f(e.left,t,n,r,i,l)+" IN ("+d.join(",")+")) ":" ("+f(e.left,t,n,r,i,l)+" IN ("+d+")) ");case"NOT IN":return u=[],"expression-list"===e.right.type?(u=f(e.right,t,n,r,i)," ("+f(e.left,t,n,r,i,l)+" NOT IN ("+u.join(",")+")) "):(d=f(e.right,t,n,r,i,l),d instanceof Array?" ("+f(e.left,t,n,r,i,l)+" NOT IN ("+d.join(",")+")) ":" ("+f(e.left,t,n,r,i,l)+" NOT IN ("+d+")) ");case"BETWEEN":return h=f(e.right,t,n,r,i,l)," ("+f(e.left,t,n,r,i,l)+" BETWEEN "+h[0]+" AND "+h[1]+" ) ";case"NOTBETWEEN":return h=f(e.right,t,n,r,i,l)," ("+f(e.left,t,n,r,i,l)+" NOT BETWEEN "+h[0]+" AND "+h[1]+" ) ";case"LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i,l)+" LIKE "+f(e.right,t,n,r,i,l)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i,l)+" LIKE "+f(e.right,t,n,r,i,l)+") ";case"NOT LIKE":return""!==e.escape?" ("+f(e.left,t,n,r,i,l)+" NOT LIKE "+f(e.right,t,n,r,i,l)+" ESCAPE '"+e.escape+"') ":" ("+f(e.left,t,n,r,i,l)+" NOT LIKE "+f(e.right,t,n,r,i,l)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+f(e.left,t,n,r,i,l)+" "+e.operator+" "+f(e.right,t,n,r,i,l)+") ";case"||":return" ("+f(e.left,t,n,r,i,l)+" "+(t===s.Bj.SqlServer?"+":e.operator)+" "+f(e.right,t,n,r,i,l)+") "}throw new a.eS(a.f.UnsupportedOperator,{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return function(e,t,n,r){let a=(0,s.J_)(e)?o.ou.fromJSDate(e):o.ou.fromSQL(e);const i=0===a.hour&&0===a.minute&&0===a.second&&0===a.millisecond;switch(n?.inputTimeReference&&(a=o.ou.fromObject({day:a.day,year:a.year,month:a.month,hour:a.hour,minute:a.minute,second:a.second,millisecond:a.millisecond},{zone:n.inputTimeReference})),n?.outputTimeReference&&(a=a.setZone(n.outputTimeReference)),t){case s.Bj.FILEGDB:case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:return i?`date '${a.toFormat("yyyy-LL-dd")}'`:`date '${a.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case s.Bj.Oracle:return i?`TO_DATE('${a.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${a.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case s.Bj.SqlServer:return`'${a.toFormat(i?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case s.Bj.PGDB:return`#${a.toFormat(i?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case s.Bj.Postgres:return`TIMESTAMP '${a.toFormat(i?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${a.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}(e.value,t,l,e.withtimezone);case"date":return y(e.value,t,l);case"time":return g(e.value,t);case"number":return e.value.toString();case"current-time":return S("date"===e.mode,t);case"column-reference":return r?r.toLowerCase()===e.column.toLowerCase()?"("+i+")":!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column:e.column;case"data-type":return e.value;case"function":{const a=f(e.args,t,n,r,i,l);return _(e.name,a,t)}}throw new a.eS(a.f.UnsupportedSyntax,{node:e.type})}function _(e,t,n){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new a.eS(a.f.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new a.eS(a.f.InvalidFunctionParameters,{function:"ceiling"});switch(n){case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:}return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new a.eS(a.f.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new a.eS(a.f.InvalidFunctionParameters,{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new a.eS(a.f.InvalidFunctionParameters,{function:"truncate"});return n===s.Bj.SqlServer?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new a.eS(a.f.InvalidFunctionParameters,{function:"char_length"});switch(n){case s.Bj.SqlServer:return"LEN("+t[0]+")";case s.Bj.Oracle:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new a.eS(a.f.InvalidFunctionParameters,{function:e.toLowerCase()});let n=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(n+=","),n+=t[e];return n+=")",n}case"lower":case"lcase":if(1!==t.length)throw new a.eS(a.f.InvalidFunctionParameters,{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new a.eS(a.f.InvalidFunctionParameters,{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(n){case s.Bj.Oracle:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case s.Bj.SqlServer:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(n){case s.Bj.Oracle:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.Bj.Postgres:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case s.Bj.SqlServer:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new a.eS(a.f.InvalidFunctionParameters,{function:e})}function p(e,t,n,a){n?.outputTimeReference&&(e=r.iG.arcadeDateAndZoneToArcadeDate(e,n?.outputTimeReference));const i=e.toDateTime(),l=0===i.hour&&0===i.minute&&0===i.second&&0===i.millisecond;switch(t){case s.Bj.FILEGDB:case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:return l?`date '${i.toFormat("yyyy-LL-dd")}'`:`date '${i.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case s.Bj.Oracle:return l?`TO_DATE('${i.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${i.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case s.Bj.SqlServer:return`'${i.toFormat(l?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case s.Bj.PGDB:return`#${i.toFormat(l?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case s.Bj.Postgres:return`TIMESTAMP '${i.toFormat(l?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${i.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function m(e,t,n){switch(t){case s.Bj.FILEGDB:case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:return e.toSQLWithKeyword();case s.Bj.Oracle:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case s.Bj.SqlServer:return`'${e.toFormat("Y-MM-DD")}'`;case s.Bj.PGDB:return`#${e.toFormat("Y-MM-DD")}#`;case s.Bj.Postgres:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`;default:return e.toSQLWithKeyword()}}function g(e,t){switch(e instanceof i.n&&(e=e.toStorageString()),t){case s.Bj.Oracle:return`TO_DATE('${e}', 'HH24:MI:SS')`;case s.Bj.SqlServer:return`'${e}'`;case s.Bj.FILEGDB:case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:case s.Bj.Postgres:default:return`time '${e}'`}}function y(e,t,n,r){let a=(0,s.J_)(e)?o.ou.fromJSDate(e):o.ou.fromSQL(e);const i=0===a.hour&&0===a.minute&&0===a.second&&0===a.millisecond;switch(n?.inputTimeReference&&(a=o.ou.fromObject({day:a.day,year:a.year,month:a.month,hour:a.hour,minute:a.minute,second:a.second,millisecond:a.millisecond},{zone:n.inputTimeReference})),n?.outputTimeReference&&(a=a.setZone(n.outputTimeReference)),t){case s.Bj.FILEGDB:case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:return i?`date '${a.toFormat("yyyy-LL-dd")}'`:`date '${a.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case s.Bj.Oracle:return i?`TO_DATE('${a.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${a.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case s.Bj.SqlServer:return`'${a.toFormat(i?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case s.Bj.PGDB:return`#${a.toFormat(i?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case s.Bj.Postgres:return`TIMESTAMP '${a.toFormat(i?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${a.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function S(e,t){switch(t){case s.Bj.FILEGDB:case s.Bj.Standardised:case s.Bj.StandardisedNoInterval:case s.Bj.Oracle:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP";case s.Bj.SqlServer:return e?"CAST(GETDATE() AS DATE)":"GETDATE()";case s.Bj.PGDB:case s.Bj.Postgres:default:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP"}}function w(e,t,n={}){const r={},a={},s={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid",globalid:"guid",string:"string"};for(const e of t){const t=e.type?s[e.type]:void 0;r[e.name.toLowerCase()]=void 0===t?"":t}for(const e in n){const t=s[n[e]];a[e.toLowerCase()]=void 0===t?"":t}switch(T(r,e.parseTree,e.parameters,a)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function T(e,t,n,r){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const a=[];if("simple"===t.format){for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.clauses[s].value,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}else{for(let s=0;s<t.clauses.length;s++)a.push(T(e,t.else,n,r));null!==t.else&&a.push(T(e,t.else,n,r))}return F(a)}case"parameter":{const e=r[t.value.toLowerCase()];if(void 0===e&&n){const e=n[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,s.J_)(e))return"date";if((0,s.NP)(e))return"date";if((0,s.$A)(e))return"date-only";if((0,s._U)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const a=[];for(const s of t.value)a.push(T(e,s,n,r));return a}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new a.eS(a.f.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return F([T(e,t.left,n,r),T(e,t.right,n,r)]);case"||":return"string";default:throw new a.eS(a.f.UnsupportedOperator,{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"date";case"column-reference":{const n=e[t.column.toLowerCase()];return void 0===n?"":n}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=T(e,t.args,n,r),i instanceof Array){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=T(e,t.args,n,r),i instanceof Array&&(i=F(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=T(e,t.args,n,r),i instanceof Array?i.length>0?i[0]:"":i}return""}throw new a.eS(a.f.UnsupportedSyntax,{node:t.type})}const I={boolean:1,string:2,integer:3,double:4,date:5};function F(e){if(e){let t="";for(const n of e)""!==n&&(t=""===t||I[t]<I[n]?n:t);return t}return""}function b(e,t){return D(e.parseTree,t)}function E(e){return"column-reference"===e?.parseTree.type}function D(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return D(e.operand,t)||D(e.value,t);case"case-expression":for(const n of e.clauses)if(D(n,t))return!0;return!("simple"!==e.format||!D(e.operand,t))||!(null===e.else||!D(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const n of e.value)if(D(n,t))return!0;return!1;case"unary-expression":return D(e.expr,t);case"binary-expression":return D(e.left,t)||D(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return D(e.args,t)}return!1}function v(e){let t="";return t+=e.period.toUpperCase(),t}function L(e,t,n){let r="";return r="interval-period"===t.type?v(t):v(t.start)+" TO "+v(t.end),"INTERVAL "+n+" "+e+" "+r}},95002:(e,t,n)=>{n.d(t,{CA:()=>y,EB:()=>F,Fp:()=>m,J6:()=>g,QX:()=>T,Sm:()=>w,VV:()=>p,g3:()=>f,m:()=>S,tj:()=>_});var r=n(59987),a=n(90658),s=n(36515),i=n(22641),l=n(41555),o=n(53970);function u(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function c(e){const t=u(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/e.length}function h(e){const t=u(e);let n=0;for(let r=0;r<e.length;r++)n+=(t-e[r])**2;return n/(e.length-1)}function d(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function f(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}function _(e,t,n=1e3){switch(e.toLowerCase()){case"distinct":return function(e,t){const n=[],r={},s=[];for(let i=0;i<e.length;i++){if(void 0!==e[i]&&null!==e[i]){const t=e[i];if((0,a.hj)(t)||(0,a.HD)(t))void 0===r[t]&&(n.push(t),r[t]=1);else{let e=!1;for(let n=0;n<s.length;n++)!0===(0,a.tt)(s[n],t)&&(e=!0);!1===e&&(s.push(t),n.push(t))}}if(n.length>=t&&-1!==t)return n}return n}(t,n);case"avg":case"mean":return u(t);case"min":return Math.min.apply(Math,t);case"sum":return d(t);case"max":return Math.max.apply(Math,t);case"stdev":case"stddev":return Math.sqrt(c(t));case"var":case"variance":return c(t);case"count":return t.length}return 0}async function p(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.min.apply(Math,r)}async function m(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.max.apply(Math,r)}async function g(e,t,n){let r="";t&&!(0,s.y5)(t)&&(r=(0,s.DT)(t,e.fields));const a=await I(e,t,n,!0);if(0===a.length)return null;const i=u(a);return null===i?i:"integer"===r?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(i):i}async function y(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:h(r)}async function S(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:Math.sqrt(h(r))}async function w(e,t,n){const r=await I(e,t,n,!0);return 0===r.length?null:d(r)}async function T(e,t){return e.iterator(t).count()}async function I(e,t,n,a=!1){const s=e.iterator(n),u=[],c={ticker:0};let h=await s.next();for(;null!==h;){if(c.ticker++,n.aborted)throw new r.EN(r.H9.Cancelled);c.ticker%100==0&&(c.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(h);null===e?!1===a&&(u[u.length]=e):u[u.length]=e instanceof i.u||e instanceof o.n?e.toNumber():e instanceof l.H?e.toMilliseconds():e,h=await s.next()}return u}async function F(e,t,n=1e3,a=null){const s=e.iterator(a),u=[],c={},h={ticker:0};let d=await s.next();for(;null!==d;){if(h.ticker++,a&&a.aborted)throw new r.EN(r.H9.Cancelled);h.ticker%100==0&&(h.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(d);let f=e;if(e instanceof i.u?f="!!DATEONLY!!-"+e.toString():e instanceof l.H?f="!!TSOFFSETONLY!!-"+e.toString():e instanceof o.n?f="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(f="!!DATE!!-"+e.toString()),null!=e&&void 0===c[f]&&(u.push(e),c[f]=1),u.length>=n&&-1!==n)return u;d=await s.next()}return u}},10661:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(42100);class a extends r.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},8667:(e,t,n)=>{n.d(t,{CJ:()=>M,Cz:()=>O,D$:()=>B,ED:()=>w,FH:()=>x,G0:()=>A,Gg:()=>F,JI:()=>E,LV:()=>I,Nm:()=>T,Sp:()=>v,TE:()=>p,U1:()=>k,W4:()=>y,Y4:()=>G,_L:()=>P,cv:()=>R,e5:()=>D,f3:()=>N,fS:()=>m,j2:()=>j,jU:()=>_,kK:()=>g,kQ:()=>Z,og:()=>b,oq:()=>h,r3:()=>f,rd:()=>C,sz:()=>U,uh:()=>S,wf:()=>L,z7:()=>d}),n(66577);var r=n(56569),a=n(94139),s=n(33955);function i(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function l(e){return e?Array.isArray(e)?e.map(l):e.toJSON?e.toJSON():e:e}function o(e){return Array.isArray(e)?e.map((e=>(0,s.im)(e))):(0,s.im)(e)}let u;async function c(e,t){return(await async function(){return u||(u=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),u}()).invoke("executeGEOperation",{operation:e,parameters:l(t)})}async function h(e,t){return o(await c("clip",[i(e),e,t]))}async function d(e,t){return o(await c("cut",[i(e),e,t]))}function f(e,t){return c("contains",[i(e),e,t])}function _(e,t){return c("crosses",[i(e),e,t])}function p(e,t,n){return c("distance",[i(e),e,t,n])}function m(e,t){return c("equals",[i(e),e,t])}function g(e,t){return c("intersects",[i(e),e,t])}function y(e,t){return c("touches",[i(e),e,t])}function S(e,t){return c("within",[i(e),e,t])}function w(e,t){return c("disjoint",[i(e),e,t])}function T(e,t){return c("overlaps",[i(e),e,t])}function I(e,t,n){return c("relate",[i(e),e,t,n])}function F(e){return c("isSimple",[i(e),e])}async function b(e){return o(await c("simplify",[i(e),e]))}async function E(e,t=!1){return o(await c("convexHull",[i(e),e,t]))}async function D(e,t){return o(await c("difference",[i(e),e,t]))}async function v(e,t){return o(await c("symmetricDifference",[i(e),e,t]))}async function L(e,t){return o(await c("intersect",[i(e),e,t]))}async function A(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return o(await c("union",[i(n),n]))}async function R(e,t,n,r,a,s){return o(await c("offset",[i(e),e,t,n,r,a,s]))}async function N(e,t,n,r=!1){const a=[i(e),e,t,n,r];return o(await c("buffer",a))}async function C(e,t,n,r,a,s){const l=[i(e),e,t,n,r,a,s];return o(await c("geodesicBuffer",l))}async function x(e,t,n=!0){const r=await c("nearestCoordinate",[i(e),e,t,n]);return{...r,coordinate:a.Z.fromJSON(r.coordinate)}}async function P(e,t){const n=await c("nearestVertex",[i(e),e,t]);return{...n,coordinate:a.Z.fromJSON(n.coordinate)}}async function k(e,t,n){if(null==e)throw new H;const r=e.spatialReference;if(null==(n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new H;const a=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return a.spatialReference=r,a}async function B(e,t,n,r){return o(await c("generalize",[i(e),e,t,n,r]))}async function O(e,t,n){return o(await c("densify",[i(e),e,t,n]))}async function j(e,t,n,r=0){return o(await c("geodesicDensify",[i(e),e,t,n,r]))}function M(e,t){return c("planarArea",[i(e),e,t])}function U(e,t){return c("planarLength",[i(e),e,t])}function G(e,t,n){return c("geodesicArea",[i(e),e,t,n])}function Z(e,t,n){return c("geodesicLength",[i(e),e,t,n])}class H extends Error{constructor(){super("Illegal Argument Exception")}}},94443:(e,t,n)=>{n.d(t,{ME:()=>_,Su:()=>p,tz:()=>f});var r=n(20102),a=n(50758),s=n(95330),i=n(70171);const l=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,o={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function u(e){return e in o}Object.keys(o);const c=[],h=new Map;function d(e){for(const t of h.keys())m(e.pattern,t)&&h.delete(t)}function f(e){return c.includes(e)||(d(e),c.unshift(e)),(0,a.kB)((()=>{const t=c.indexOf(e);t>-1&&(c.splice(t,1),d(e))}))}async function _(e){const t=(0,i.Kd)();h.has(e)||h.set(e,async function(e,t){const n=[];for(const r of c)if(m(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=h.get(e);return n&&await g.add(n),n}function p(e){if(!l.test(e))return null;const t=l.exec(e);if(null===t)return null;const[,n,r]=t,a=n+(r?"-"+r.toUpperCase():"");return u(a)?a:u(n)?n:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{h.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6138],{92835:(e,t,r)=>{r.d(t,{Z:()=>m});var i,n=r(43697),o=r(96674),s=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),d=r(52011),u=r(30556);let h=i=class extends o.wq{static get allTime(){return c}static get empty(){return p}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.JE)(r,e,t));let n=this.end;if(n){const r=(0,s.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.Nm)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;if(n>=t&&n<=r?s=n:t>=n&&t<=o&&(s=t),r>=n&&r<=o?a=r:o>=t&&o<=r&&(a=o),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const e=new i;return e.start=s===-1/0?null:new Date(s),e.end=a===1/0?null:new Date(a),e}return i.empty}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:o,end:a}=this;return null!=o&&(n.start=(0,s.Nm)(o,e,t,r)),null!=a&&(n.end=(0,s.Nm)(a,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],h.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],h.prototype,"writeStart",null),h=i=(0,n._)([(0,d.j)("esri.TimeExtent")],h);const c=new h,p=new h({start:void 0,end:void 0}),m=h},35463:(e,t,r)=>{r.d(t,{JE:()=>a,Nm:()=>s,rJ:()=>l});var i=r(90344),n=r(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o="system"){const s=new n.vF((0,i.f1)(o)),a=n.ou.fromJSDate(e,{zone:s}),l="decades"===r||"centuries"===r?"year":d(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function a(e,t,r="system"){const o=new n.vF((0,i.f1)(r)),s=n.ou.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,i=r-r%("decades"===t?10:100);return e.set({year:i}).toJSDate()}const a=d(t);return s.startOf(a).toJSDate()}function l(e,t,r){return 0===e?0:e*o[t]/o[r]}function d(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(e,t,r)=>{r.d(t,{D:()=>n,z:()=>o});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${n()}}`}},79235:(e,t,r)=>{r.d(t,{Z:()=>w});var i,n=r(43697),o=r(67676),s=r(35454),a=r(96674),l=r(67900),d=r(20941),u=r(5600),h=(r(75215),r(80442),r(71715)),c=r(52011),p=r(30556);const m=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=m.jsonValues.slice();(0,o.e$)(y,"orthometric");const g=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return m.write(e,t,r)}readHeightModel(e,t,r){return m.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new d.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||g.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,u.Cb)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,n._)([(0,p.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,n._)([(0,h.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,n._)([(0,u.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,n._)([(0,h.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,n._)([(0,h.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,n._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,n._)([(0,h.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,n._)([(0,c.j)("esri.geometry.HeightModelInfo")],f);const w=f},90344:(e,t,r)=>{r.d(t,{Xr:()=>m,Ze:()=>v,f1:()=>b,p6:()=>w});var i=r(35454),n=r(70171),o=r(15512);r(17126);const s=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(o.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},c={...h,second:"numeric"},p={"short-date":a,"short-date-short-time":{...a,...h},"short-date-short-time-24":{...a,...h,hour12:!1},"short-date-long-time":{...a,...c},"short-date-long-time-24":{...a,...c,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...h},"short-date-le-short-time-24":{...a,...h,hour12:!1},"short-date-le-long-time":{...a,...c},"short-date-le-long-time-24":{...a,...c,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...h},"long-month-day-year-short-time-24":{...l,...h,hour12:!1},"long-month-day-year-long-time":{...l,...c},"long-month-day-year-long-time-24":{...l,...c,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...h},"day-short-month-year-short-time-24":{...d,...h,hour12:!1},"day-short-month-year-long-time":{...d,...c},"day-short-month-year-long-time-24":{...d,...c,hour12:!1},"long-date":u,"long-date-short-time":{...u,...h},"long-date-short-time-24":{...u,...h,hour12:!1},"long-date-long-time":{...u,...c},"long-date-long-time-24":{...u,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":c},m=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y={ar:"ar-u-nu-latn-ca-gregory"};let g=new WeakMap;const f=p["short-date-short-time"];function v(e){return p[e]}function w(e,t=f){return function(e){let t=g.get(e);if(!t){const r=(0,n.Kd)(),i=y[r]||r,s=b(e.timeZone??o.By),a={...e,timeZone:s};t=new Intl.DateTimeFormat(i,a),g.set(e,t)}return t}(t).format(e)}function b(e){switch(e){case o.By:return s;case o._4:return o.pt;default:return e}}(0,n.Ze)((()=>{g=new WeakMap}))},10608:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ee});var i=r(43697),n=r(51773),o=r(3172),s=r(20102),a=r(22974),l=r(92604),d=r(16453),u=r(78286),h=r(95330),c=r(17452),p=r(5600),m=r(75215),y=r(71715),g=r(52011),f=r(30556),v=r(87085),w=r(54295),b=r(17287),S=r(38009),_=r(16859),C=r(72965),I=r(20559),T=r(36030),x=r(96674);r(67676),r(80442);let F=class extends x.wq{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],F.prototype,"field",void 0),(0,i._)([(0,p.Cb)({readOnly:!0,nonNullable:!0,json:{read:!1}})],F.prototype,"type",void 0),F=(0,i._)([(0,g.j)("esri.layers.pointCloudFilters.PointCloudFilter")],F);const P=F;var R;let E=R=class extends P{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new R({field:this.field,requiredClearBits:(0,a.d9)(this.requiredClearBits),requiredSetBits:(0,a.d9)(this.requiredSetBits)})}};(0,i._)([(0,p.Cb)({type:[m.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],E.prototype,"requiredClearBits",void 0),(0,i._)([(0,p.Cb)({type:[m.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],E.prototype,"requiredSetBits",void 0),(0,i._)([(0,T.J)({pointCloudBitfieldFilter:"bitfield"})],E.prototype,"type",void 0),E=R=(0,i._)([(0,g.j)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],E);const Z=E;var D;let M=D=class extends P{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new D({field:this.field,includedReturns:(0,a.d9)(this.includedReturns)})}};(0,i._)([(0,p.Cb)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"includedReturns",void 0),(0,i._)([(0,T.J)({pointCloudReturnFilter:"return"})],M.prototype,"type",void 0),M=D=(0,i._)([(0,g.j)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],M);const j=M;var L;let U=L=class extends P{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new L({field:this.field,mode:this.mode,values:(0,a.d9)(this.values)})}};(0,i._)([(0,p.Cb)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],U.prototype,"mode",void 0),(0,i._)([(0,T.J)({pointCloudValueFilter:"value"})],U.prototype,"type",void 0),(0,i._)([(0,p.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],U.prototype,"values",void 0),U=L=(0,i._)([(0,g.j)("esri.layers.pointCloudFilters.PointCloudValueFilter")],U);const k={key:"type",base:P,typeMap:{value:U,bitfield:Z,return:j}};var N,q=r(21506),O=r(1231),$=r(53518),B=r(11223),H=r(23030),V=r(25848);let A=N=class extends V.Z{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new N({...this.cloneProperties(),field:(0,a.d9)(this.field)})}};(0,i._)([(0,T.J)({pointCloudRGBRenderer:"point-cloud-rgb"})],A.prototype,"type",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!0}})],A.prototype,"field",void 0),A=N=(0,i._)([(0,g.j)("esri.renderers.PointCloudRGBRenderer")],A);const J=A;var Y=r(14008),K=r(46329);const z={key:"type",base:V.Z,typeMap:{"point-cloud-class-breaks":H.Z,"point-cloud-rgb":J,"point-cloud-stretch":Y.Z,"point-cloud-unique-value":K.Z},errorContext:"renderer"};var G=r(36405),W=r(32163);const Q=(0,$.v)();let X=class extends((0,I.Vt)((0,b.Y)((0,S.q)((0,_.I)((0,C.M)((0,d.R)((0,w.V)(v.Z)))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t&&t.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map((e=>{const t=new O.Z;return"FieldTypeInteger"===e.type&&((e=(0,a.d9)(e)).type="esriFieldTypeInteger"),t.read(e,r),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new O.Z({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,r,i){(0,u.RB)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.r9).then((()=>this._fetchService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){const t=(0,W.eZ)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new B.Z({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new B.Z({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new s.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new s.Z("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,c.v_)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,o.Z)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new s.Z("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(I.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(I.xp.SAVE,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new s.Z("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new s.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;(0,G.LR)(l.Z.getLogger(this),(0,G.Uy)("Point cloud layers","absolute-height",e)),(0,G.LR)(l.Z.getLogger(this),(0,G.kf)("Point cloud layers",e))}};(0,i._)([(0,p.Cb)({type:["PointCloudLayer"]})],X.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.Cb)(q.C_)],X.prototype,"popupEnabled",void 0),(0,i._)([(0,p.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],X.prototype,"popupTemplate",void 0),(0,i._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],X.prototype,"defaultPopupTemplate",null),(0,i._)([(0,p.Cb)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],X.prototype,"opacity",void 0),(0,i._)([(0,p.Cb)({type:["show","hide"]})],X.prototype,"listMode",void 0),(0,i._)([(0,p.Cb)({types:[k],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],X.prototype,"filters",void 0),(0,i._)([(0,p.Cb)({type:[O.Z]})],X.prototype,"fields",void 0),(0,i._)([(0,p.Cb)(Q.fieldsIndex)],X.prototype,"fieldsIndex",void 0),(0,i._)([(0,y.r)("service","fields",["fields","attributeStorageInfo"])],X.prototype,"readServiceFields",null),(0,i._)([(0,p.Cb)(Q.outFields)],X.prototype,"outFields",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],X.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,p.Cb)(q.PV)],X.prototype,"elevationInfo",null),(0,i._)([(0,p.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],X.prototype,"path",void 0),(0,i._)([(0,p.Cb)(q.rn)],X.prototype,"legendEnabled",void 0),(0,i._)([(0,p.Cb)({types:z,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:z},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],X.prototype,"renderer",void 0),(0,i._)([(0,f.c)("renderer")],X.prototype,"writeRenderer",null),(0,i._)([(0,p.Cb)({json:{read:!1},readOnly:!0})],X.prototype,"type",void 0),X=(0,i._)([(0,g.j)("esri.layers.PointCloudLayer")],X);const ee=X},16859:(e,t,r)=>{r.d(t,{I:()=>_});var i=r(43697),n=r(68773),o=r(40330),s=r(3172),a=r(66643),l=r(20102),d=r(92604),u=r(70586),h=r(95330),c=r(17452),p=r(5600),m=(r(75215),r(67676),r(80442),r(71715)),y=r(52011),g=r(30556),f=r(84230),v=r(48522),w=r(15235),b=r(86082),S=r(14661);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,h.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,h.D_)(e)||d.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,h.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,h.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,S.Ss)(r);let n,s;if(i)n=r.portal.url;else try{n=await(0,f.oP)(this.url,t)}catch(e){(0,h.r9)(e)}if(!n||!(0,c.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.r9)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new w.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,S.Ss)(r)}catch(e){(0,h.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.Z.getDefault();if(n&&n.loaded&&(0,c.Fv)(n.restUrl)===(0,c.Fv)(i))return n.user;const l=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,a.q6)((0,s.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?b.Z.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&i&&!(0,c.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("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._)([(0,p.Cb)({type:w.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,p.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,p.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,p.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,p.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},C={credential:null,user:null}},72965:(e,t,r)=>{r.d(t,{M:()=>s});var i=r(43697),n=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,o.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},53518:(e,t,r)=>{r.d(t,{v:()=>a});var i=r(92604),n=r(1231),o=r(99514),s=r(35671);function a(){return{fields:{type:[n.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new o.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,s.Q0)(this.fieldsIndex,e)}}}}},36405:(e,t,r)=>{function i(e,t){return null!=t&&t.mode?t.mode:function(e){return e?d:u}(e).mode}function n(e,t){return i(null!=e&&e.hasZ,t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function a(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{LR:()=>l,Uy:()=>o,VW:()=>n,Wb:()=>s,kf:()=>a}),r(12541);const d={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},32163:(e,t,r)=>{r.d(t,{eZ:()=>d});var i=r(51773),n=r(35671),o=r(84649),s=(r(63801),r(48074),r(38745),r(9190)),a=(r(10214),r(71423),r(44951),r(422)),l=r(29986);function d({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:d},p){if(!r)return null;const y=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(h),e}(e.fields??[],t?.ignoreFieldTypes||m).map((t=>new a.Z({fieldName:t.name,isEditable:(0,n.Hp)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},p);if(!y.length)return null;const g=function(e){const t=(0,n.O5)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:d,fields:r,displayField:e}),f=[new s.Z,new o.Z];return new i.Z({title:g,content:f,fieldInfos:y})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Fv)(e,t);function h(e,t){return"oid"===e.type?-1:"oid"===t.type?1:p(e)?-1:p(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.Z({digitSeparator:!0,places:0});case"double":return new l.Z({digitSeparator:!0,places:2});case"string":return(0,n.Ec)(e.name)?new l.Z({digitSeparator:!0,places:0}):null;default:return null}}function p(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const m=["geometry","blob","raster","guid","xml"]},15512:(e,t,r)=>{r.d(t,{By:()=>i,_4:()=>n,pt:()=>o});const i="system",n="unknown",o="UTC"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9169],{42033:(e,t,i)=>{async function s(e,t,s="UTC"){const{WhereClause:r}=await i.e(8968).then(i.bind(i,8968));return r.create(e,t,{timeZone:s})}function r(e,t){return null!=e?null!=t?`(${e}) AND (${t})`:e:t}i.d(t,{E:()=>s,_:()=>r})},29169:(e,t,i)=>{i.d(t,{default:()=>f});var s=i(20102),r=i(92604),n=i(24470),a=i(20322),o=i(10402),h=i(17590),l=i(11490),d=i(14165),u=i(74259),c=i(42033);const _=r.Z.getLogger("esri.views.2d.layers.features.support.whereUtils"),y={getAttribute:(e,t)=>e.field(t)};class f{constructor(e){this._geometryBounds=(0,n.Ue)(),this._idToVisibility=new Map,this._serviceInfo=e}get hash(){return this._hash}check(e){return this._applyFilter(e)}clear(){const e=this._resetAllHiddenIds();return this.update(),{show:e,hide:[]}}invalidate(){this._idToVisibility.forEach(((e,t)=>{this._idToVisibility.set(t,0)}))}setKnownIds(e){for(const t of e)this._idToVisibility.set(t,1)}setTrue(e){const t=[],i=[],s=new Set(e);return this._idToVisibility.forEach(((e,r)=>{const n=!!(1&this._idToVisibility.get(r)),a=s.has(r);!n&&a?t.push(r):n&&!a&&i.push(r),this._idToVisibility.set(r,a?3:0)})),{show:t,hide:i}}createQuery(){const{geometry:e,spatialRel:t,where:i,timeExtent:s,objectIds:r}=this;return d.Z.fromJSON({geometry:e,spatialRel:t,where:i,timeExtent:s,objectIds:r})}async update(e,t){this._hash=JSON.stringify(e);const i=await(0,l.j6)(e,null,t);await Promise.all([this._setGeometryFilter(i),this._setIdFilter(i),this._setAttributeFilter(i),this._setTimeFilter(i)])}async _setAttributeFilter(e){if(!e||!e.where)return this._clause=null,void(this.where=null);this._clause=await async function(e,t){try{const i=await(0,c.E)(e,t);if(!i.isStandardized){const e=new s.Z("mapview - bad input","Unable to apply filter's definition expression, as expression is not standardized.",i);_.error(e)}return e=>{const t=e.readArcadeFeature();return i.testFeature(t,y)}}catch(t){return _.warn("mapview-bad-where-clause","Encountered an error when evaluating where clause",e),e=>!0}}(e.where,this._serviceInfo.fieldsIndex),this.where=e.where}_setIdFilter(e){this._idsToShow=e&&e.objectIds&&new Set(e.objectIds),this._idsToHide=e&&e.hiddenIds&&new Set(e.hiddenIds),this.objectIds=e&&e.objectIds}async _setGeometryFilter(e){if(!e||!e.geometry)return this._spatialQueryOperator=null,this.geometry=null,void(this.spatialRel=null);const t=e.geometry,i=e.spatialRel||"esriSpatialRelIntersects",s=await(0,o.cW)(i,t,this._serviceInfo.geometryType,this._serviceInfo.hasZ,this._serviceInfo.hasM);(0,a.$P)(this._geometryBounds,t),this._spatialQueryOperator=s,this.geometry=t,this.spatialRel=i}_setTimeFilter(e){if(this.timeExtent=this._timeOperator=null,e&&e.timeExtent)if(this._serviceInfo.timeInfo)this.timeExtent=e.timeExtent,this._timeOperator=(0,h.y)(this._serviceInfo.timeInfo,e.timeExtent,u.k);else{const t=new s.Z("feature-layer-view:time-filter-not-available","Unable to apply time filter, as layer doesn't have time metadata.",e.timeExtent);r.Z.getLogger("esri.views.2d.layers.features.controllers.FeatureFilter").error(t)}}_applyFilter(e){return this._filterByGeometry(e)&&this._filterById(e)&&this._filterByTime(e)&&this._filterByExpression(e)}_filterByExpression(e){return!this.where||this._clause(e)}_filterById(e){return(!this._idsToHide||!this._idsToHide.size||!this._idsToHide.has(e.getObjectId()))&&(!this._idsToShow||!this._idsToShow.size||this._idsToShow.has(e.getObjectId()))}_filterByGeometry(e){if(!this.geometry)return!0;const t=e.readHydratedGeometry();return!!t&&this._spatialQueryOperator(t)}_filterByTime(e){return null==this._timeOperator||this._timeOperator(e)}_resetAllHiddenIds(){const e=[];return this._idToVisibility.forEach(((t,i)=>{1&t||(this._idToVisibility.set(i,1),e.push(i))})),e}}}}]);
|