@arcgis/core 4.34.0-next.34 → 4.34.0-next.36
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/analysis/ElevationProfileAnalysis.d.ts +4 -0
- package/analysis/ElevationProfileAnalysis.js +5 -0
- package/analysis/ElevationProfileLine.d.ts +4 -0
- package/analysis/ElevationProfileLine.js +5 -0
- package/analysis/ElevationProfileLineChartOptions.d.ts +4 -0
- package/analysis/ElevationProfileLineChartOptions.js +5 -0
- package/analysis/ElevationProfileLineGround.d.ts +4 -0
- package/analysis/ElevationProfileLineGround.js +5 -0
- package/analysis/ElevationProfileLineInput.d.ts +4 -0
- package/analysis/ElevationProfileLineInput.js +5 -0
- package/analysis/ElevationProfileLineQuery.d.ts +4 -0
- package/analysis/ElevationProfileLineQuery.js +5 -0
- package/analysis/ElevationProfileLineScene.d.ts +4 -0
- package/analysis/ElevationProfileLineScene.js +5 -0
- package/analysis/ElevationProfileLineViewOptions.d.ts +4 -0
- package/analysis/ElevationProfileLineViewOptions.js +5 -0
- package/analysis/ElevationProfileUnits.d.ts +4 -0
- package/analysis/ElevationProfileUnits.js +5 -0
- package/analysis/support/elevationProfileLineTypes.js +5 -0
- package/arcade/ArcadeDate.js +1 -1
- package/arcade/ArcadeModuleResolver.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/compilerUtils.js +5 -0
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/fieldStats.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/functions/track.js +1 -1
- package/arcade/geometry/functions.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0550e775677597f3752c.js +1 -0
- package/assets/esri/core/workers/chunks/{b4b30a7f1b673461dc55.js → 0997e09fe5b0aba1f804.js} +1 -1
- package/assets/esri/core/workers/chunks/0c0080b652cf8afc4e6b.js +1 -0
- package/assets/esri/core/workers/chunks/152128775b4740e779ab.js +1 -0
- package/assets/esri/core/workers/chunks/{847455bf4fc33d6e6efc.js → 1dc410bc070cabb7198d.js} +1 -1
- package/assets/esri/core/workers/chunks/1e58b1e191498417c21d.js +1 -0
- package/assets/esri/core/workers/chunks/2032b649350a75ba294f.js +1 -0
- package/assets/esri/core/workers/chunks/{55a763662bad03ae6bae.js → 209c70ba2925171ef742.js} +1 -1
- package/assets/esri/core/workers/chunks/2105d2cc75e75bf8f1c0.js +1 -0
- package/assets/esri/core/workers/chunks/236fc659747e812f6424.js +1 -0
- package/assets/esri/core/workers/chunks/2c29f8a708a03cb703ab.js +1 -0
- package/assets/esri/core/workers/chunks/{94a3474e3f45efa4a4fe.js → 2c816d3a737e39e6eb84.js} +1 -1
- package/assets/esri/core/workers/chunks/40b0c5368b8322498189.js +1 -0
- package/assets/esri/core/workers/chunks/{4778acd0cfaf0cebeec7.js → 439128f23fa091633d2d.js} +1 -1
- package/assets/esri/core/workers/chunks/{ddaaff5d6036a5eed50f.js → 44116cf0bd4d6a127c96.js} +1 -1
- package/assets/esri/core/workers/chunks/4c54239974a5847b8fdd.js +1 -0
- package/assets/esri/core/workers/chunks/4fb13252a985131d3dae.js +1 -0
- package/assets/esri/core/workers/chunks/{b89aacec211c66e3a011.js → 5d8c64693830506c8776.js} +1 -1
- package/assets/esri/core/workers/chunks/5f995450f720483fcffa.js +1 -0
- package/assets/esri/core/workers/chunks/{5d0c92aaa5891e6cb8f0.js → 641ca71d7c1a07bde66a.js} +1 -1
- package/assets/esri/core/workers/chunks/{b78d00c4e493086741e1.js → 7d25f57299c642e727a6.js} +1 -1
- package/assets/esri/core/workers/chunks/81be8d23b8dfa4937eaf.js +1 -0
- package/assets/esri/core/workers/chunks/8b7f6f2d1692b6b6dbd5.js +1 -0
- package/assets/esri/core/workers/chunks/{0ec7b5f1a614a86ad3db.js → 948ecf0bfbc886ec3b52.js} +1 -1
- package/assets/esri/core/workers/chunks/9f43736d6d80c8e858b2.js +1 -0
- package/assets/esri/core/workers/chunks/a36be186ad10200c420c.js +1 -0
- package/assets/esri/core/workers/chunks/a44f17397d8589433dae.js +1 -0
- package/assets/esri/core/workers/chunks/a53f2529b7067c28f320.js +1 -0
- package/assets/esri/core/workers/chunks/a6b6915b7321f77f765f.js +1 -0
- package/assets/esri/core/workers/chunks/aa12ba96fb8c91105473.js +1 -0
- package/assets/esri/core/workers/chunks/ab73df4f809430db6249.js +1 -0
- package/assets/esri/core/workers/chunks/ae7f1499912c86973921.js +1 -0
- package/assets/esri/core/workers/chunks/b331543767c35e5edcc6.js +1 -0
- package/assets/esri/core/workers/chunks/b98a049561b12a0555b7.js +1 -0
- package/assets/esri/core/workers/chunks/bf60d4da0dff1e14da8e.js +1 -0
- package/assets/esri/core/workers/chunks/{4784af2b04fafacfcc1b.js → c6077a893d5b5c34a46c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a809042fdce7ced2a415.js → cc3ca1729af33688c1e3.js} +1 -1
- package/assets/esri/core/workers/chunks/cd150c7e1516134c7437.js +1 -0
- package/assets/esri/core/workers/chunks/cde79c3644166d4798a8.js +1 -0
- package/assets/esri/core/workers/chunks/{181f8bbe670b4468307a.js → ce8f0ed9179c0d314df8.js} +1 -1
- package/assets/esri/core/workers/chunks/d4cadde4a9cbfe2c51d8.js +1 -0
- package/assets/esri/core/workers/chunks/{ac30cf2f9a94597f7665.js → d6b2ab614f308db50c4a.js} +2 -2
- package/assets/esri/core/workers/chunks/dab82564928265b9f22d.js +1 -0
- package/assets/esri/core/workers/chunks/dec9656997683ef01ba6.js +1 -0
- package/assets/esri/core/workers/chunks/e892ed8b0b990d7eba28.js +1 -0
- package/assets/esri/core/workers/chunks/e897c5ce83db8a71b0a2.js +1 -0
- package/assets/esri/core/workers/chunks/{41071e672dcddec47492.js → f4e9640306f64b1af7a3.js} +1 -1
- package/assets/esri/core/workers/chunks/fa01d418237d7fa67efc.js +1 -0
- package/assets/esri/core/workers/chunks/ff736cb5a9fd18368244.js +1 -0
- package/chunks/arcade.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/copyright.txt +27 -0
- package/core/BidiEngine.js +1 -1
- package/core/Promise.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/sql/SqlInterval.js +1 -1
- package/core/sql/sqlDateParsingUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/geometry/support/DoubleArray.js +1 -1
- package/geometry/support/coordinateSystem.js +1 -1
- package/graphic/BuildingGraphicOrigin.d.ts +4 -0
- package/graphic/BuildingGraphicOrigin.js +5 -0
- package/graphic/CSVGraphicOrigin.d.ts +4 -0
- package/graphic/CSVGraphicOrigin.js +5 -0
- package/graphic/CatalogGraphicOrigin.d.ts +4 -0
- package/graphic/CatalogGraphicOrigin.js +5 -0
- package/graphic/FeatureGraphicOrigin.d.ts +4 -0
- package/graphic/FeatureGraphicOrigin.js +5 -0
- package/graphic/GeoJSONGraphicOrigin.d.ts +4 -0
- package/graphic/GeoJSONGraphicOrigin.js +5 -0
- package/graphic/GraphicOrigin.d.ts +4 -0
- package/graphic/GraphicOrigin.js +5 -0
- package/graphic/IntegratedMesh3DTilesGraphicOrigin.d.ts +4 -0
- package/graphic/IntegratedMesh3DTilesGraphicOrigin.js +5 -0
- package/graphic/IntegratedMeshGraphicOrigin.d.ts +4 -0
- package/graphic/IntegratedMeshGraphicOrigin.js +5 -0
- package/graphic/OGCFeatureGraphicOrigin.d.ts +4 -0
- package/graphic/OGCFeatureGraphicOrigin.js +5 -0
- package/graphic/PointCloudGraphicOrigin.d.ts +4 -0
- package/graphic/PointCloudGraphicOrigin.js +5 -0
- package/graphic/SceneGraphicOrigin.d.ts +4 -0
- package/graphic/SceneGraphicOrigin.js +5 -0
- package/graphic/StreamGraphicOrigin.d.ts +4 -0
- package/graphic/StreamGraphicOrigin.js +5 -0
- package/graphic/VectorTileGraphicOrigin.d.ts +4 -0
- package/graphic/VectorTileGraphicOrigin.js +5 -0
- package/graphic/VoxelGraphicOrigin.d.ts +4 -0
- package/graphic/VoxelGraphicOrigin.js +5 -0
- package/graphic/WFSGraphicOrigin.d.ts +4 -0
- package/graphic/WFSGraphicOrigin.js +5 -0
- package/graphic/graphicOriginUtils.js +5 -0
- package/graphic/graphicOrigins.d.ts +14 -0
- package/graphic/graphicOrigins.js +5 -0
- package/graphic/isBuildingGraphicOrigin.js +5 -0
- package/graphic/isCSVGraphicOrigin.js +5 -0
- package/graphic/isCatalogGraphicOrigin.js +5 -0
- package/graphic/isFeatureGraphicOrigin.js +5 -0
- package/graphic/isGeoJSONGraphicOrigin.js +5 -0
- package/graphic/isIntegratedMesh3DTilesGraphicOrigin.js +5 -0
- package/graphic/isIntegratedMeshGraphicOrigin.js +5 -0
- package/graphic/isOGCFeatureGraphicOrigin.js +5 -0
- package/graphic/isPointCloudGraphicOrigin.js +5 -0
- package/graphic/isSceneGraphicOrigin.js +5 -0
- package/graphic/isStreamGraphicOrigin.js +5 -0
- package/graphic/isVectorTileGraphicOrigin.js +5 -0
- package/graphic/isVoxelGraphicOrigin.js +5 -0
- package/graphic/isWFSGraphicOrigin.js +5 -0
- package/interfaces.d.ts +1025 -63
- package/kernel.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/support/Field.js +1 -1
- package/layers/support/PromiseQueue.js +1 -1
- package/layers/support/featurePopupQueryUtils.js +1 -1
- package/layers/voxel/NCTimeParser.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/smartMapping/statistics/support/utils.js +1 -1
- package/support/arcadeExpressionUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/analysis/AnalysisViewManager3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +4 -0
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +5 -0
- package/views/3d/analysis/Slice/SliceController.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementComputation.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +1 -1
- package/views/3d/environment/Clouds.js +1 -1
- package/views/3d/environment/CloudsRenderer.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/CSVLayerView3D.js +1 -1
- package/views/3d/layers/CatalogFootprintLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GeoJSONLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/GraphicsView3DDummyLayer.js +5 -0
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/OGCFeatureLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/WFSLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
- package/views/3d/layers/graphics/LabelDeconflictor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/StreamController.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
- package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SFrameTask.js +1 -1
- package/views/3d/layers/support/FeatureTileDescriptor.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
- package/views/3d/layers/support/FeatureTileTree3DDebugger.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
- package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/support/StreamDataLoader.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/analysis/ElevationProfileResult.d.ts +4 -0
- package/views/analysis/ElevationProfileResult.js +5 -0
- package/views/interactive/Tooltip.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/layers/support/popupUtils.js +1 -1
- package/views/support/ScheduledQueueProcessor.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +2 -2
- package/assets/esri/core/workers/chunks/07b2cc0f6b064277632f.js +0 -1
- package/assets/esri/core/workers/chunks/086f3bc5938bf9a37274.js +0 -1
- package/assets/esri/core/workers/chunks/13f9e92e7e5d44d9f95c.js +0 -1
- package/assets/esri/core/workers/chunks/140efe4735605258ecc9.js +0 -1
- package/assets/esri/core/workers/chunks/20aed6e1d9b6bf06a398.js +0 -1
- package/assets/esri/core/workers/chunks/28e04ef3575f164f611a.js +0 -1
- package/assets/esri/core/workers/chunks/2b76e716f478468b6798.js +0 -1
- package/assets/esri/core/workers/chunks/386ab72a45102c2d47f2.js +0 -1
- package/assets/esri/core/workers/chunks/39bff604d4b4a1295038.js +0 -1
- package/assets/esri/core/workers/chunks/3cd1ab26396052f17832.js +0 -1
- package/assets/esri/core/workers/chunks/3fb6146d914f9b410c2e.js +0 -1
- package/assets/esri/core/workers/chunks/432365fcd7becd508541.js +0 -1
- package/assets/esri/core/workers/chunks/439ce953a25b2776cb7f.js +0 -1
- package/assets/esri/core/workers/chunks/4c8d2334fcdb1354ff43.js +0 -1
- package/assets/esri/core/workers/chunks/50f58b2a933b56effd70.js +0 -1
- package/assets/esri/core/workers/chunks/5f321be63ed5447b04a1.js +0 -1
- package/assets/esri/core/workers/chunks/6006fbdb90c3bfc493a6.js +0 -1
- package/assets/esri/core/workers/chunks/674970c539d336a93ba1.js +0 -1
- package/assets/esri/core/workers/chunks/700c641347853b1034d9.js +0 -1
- package/assets/esri/core/workers/chunks/7c35c61e3673cf94cdfd.js +0 -1
- package/assets/esri/core/workers/chunks/7c75876a0c6460585055.js +0 -1
- package/assets/esri/core/workers/chunks/7d852617e91b51121ea7.js +0 -1
- package/assets/esri/core/workers/chunks/949dc266ac6f3505d357.js +0 -1
- package/assets/esri/core/workers/chunks/98f6d4ea026ed96fd3f3.js +0 -1
- package/assets/esri/core/workers/chunks/9bc6d974b0fce9db64ef.js +0 -1
- package/assets/esri/core/workers/chunks/a84af1b8b64b86b49bd3.js +0 -1
- package/assets/esri/core/workers/chunks/a9d83a442d8d7a376fc0.js +0 -1
- package/assets/esri/core/workers/chunks/abe2cdfc2eda46b00812.js +0 -1
- package/assets/esri/core/workers/chunks/ba1b21a90b257ac9a342.js +0 -1
- package/assets/esri/core/workers/chunks/c30adbead0ba4722acf9.js +0 -1
- package/assets/esri/core/workers/chunks/ca46f78aac1133d127fa.js +0 -1
- package/assets/esri/core/workers/chunks/dc5a8cf2a44a5ac201c5.js +0 -1
- package/assets/esri/core/workers/chunks/ea240d9e594bfbd8af68.js +0 -1
- package/assets/esri/core/workers/chunks/f9ad37dfbe1d14c6a352.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{16930:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(31635),i=r(69622),s=r(25482),a=r(4718),f=r(83047),u=r(56507),_=r(10107),c=r(40608),l=r(43937),P=r(21325);let d=class extends s.A{static{n=this}static{this.GCS_NAD_1927=null}static{this.WGS84=null}static{this.WebMercator=null}static{this.PlateCarree=null}static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return n.WebMercator;if(4326===e?.wkid)return n.WGS84;const t=new n;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const t="string"==typeof e?"wkt":"wkid";return{[t]:e}}get isWGS84(){return(0,P.oT)(this)}get isWebMercator(){return(0,P.K8)(this)}get isGeographic(){return(0,P.EA)(this)}get isWrappable(){return(0,P.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===n.WGS84)return new n(P.KK);if(this===n.WebMercator)return new n(P.ch);const e=new n;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,o=this.imageCoordinateSystem;return null==t||n?JSON.stringify(o)===JSON.stringify(e.imageCoordinateSystem):r?o.id===t&&o.referenceServiceName===r:o.id===t}return(0,P.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isWGS84",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isGeographic",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isWrappable",null),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"unit",null),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,o.Cg)([(0,_.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,o.Cg)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,o.Cg)([(0,_.MZ)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,o.Cg)([(0,_.MZ)()],d.prototype,"imageCoordinateSystem",void 0),d=n=(0,o.Cg)([(0,c.$)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=i.A.freeze(new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),d.WGS84=i.A.freeze(new d(P.KK)),d.WebMercator=i.A.freeze(new d(P.ch)),d.PlateCarree=i.A.freeze(new d(P.tQ))},21325:(e,t,r)=>{r.d(t,{B3:()=>p,EA:()=>d,K8:()=>T,KK:()=>R,KQ:()=>O,Mc:()=>a,Vp:()=>l,YX:()=>P,ZL:()=>y,aI:()=>c,ch:()=>G,d9:()=>A,fn:()=>U,jp:()=>g,oT:()=>E,q8:()=>M,r1:()=>h,tQ:()=>N,tl:()=>m,x1:()=>S});var n=r(799),o=(r(83290),r(22530));const i=[102100,102113,3857,3785,900913],s=[4326,...i,104905,104971],a=[-20037508.342788905,20037508.342788905],f=[-20037508.342787,20037508.342787],u={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},_={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},102100:u,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},3857:u,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:u};function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,n=t.wkid;if(null!=r||null!=n){if(r===n)return!0;if(T(e)&&T(t))return!0;const o=e.latestWkid;if(null!=o&&n===o)return!0;const i=t.latestWkid;return null!=i&&r===i}let o,i;return e.wkt2&&t.wkt2?(o=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(o=e.wkt,i=t.wkt),!(!o||!i)&&o.toUpperCase()===i.toUpperCase()}function l(e){const t=e?.wkid;return null!=t&&t>=2e3&&_[t]||null}function P(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const n=e.wkt||e.wkt2;return JSON.stringify(n?r?{wkt:n,vcsWkid:r}:{wkt:n}:{})}function d(e){if(!U(e))return!1;const{wkid:t}=e;if(t)return null==o.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function p(e){return!(M(e)||O(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function S(e){return 4490===e?.wkid}function T(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function h(e){return 32662===e?.wkid}function m(e){return 104971===e||104905===e}function M(e){return m(e?.wkid)}function y(e){return 104903===e}function O(e){return y(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function U(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,n.HC)(_[4326].wkTemplate,{Central_Meridian:"0.0"})},G={wkid:102100,latestWkid:3857},N={wkid:32662}},22530:(e,t,r)=>{let n;r.d(t,{A:()=>o});const o={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10641:0,10665:0,10674:0,10744:0,10745:0,10759:0,10773:0,10802:0,10820:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,65061:2,65062:2,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(n=2e3;n<=2045;n++)o[n]=0;for(n=2056;n<=2065;n++)o[n]=0;for(n=2067;n<=2135;n++)o[n]=0;for(n=2137;n<=2154;n++)o[n]=0;for(n=2161;n<=2170;n++)o[n]=0;for(n=2172;n<=2193;n++)o[n]=0;for(n=2195;n<=2198;n++)o[n]=0;for(n=2200;n<=2203;n++)o[n]=0;for(n=2205;n<=2217;n++)o[n]=0;for(n=2222;n<=2224;n++)o[n]=1;for(n=2225;n<=2250;n++)o[n]=2;for(n=2251;n<=2253;n++)o[n]=1;for(n=2257;n<=2264;n++)o[n]=2;for(n=2274;n<=2279;n++)o[n]=2;for(n=2280;n<=2282;n++)o[n]=1;for(n=2283;n<=2289;n++)o[n]=2;for(n=2290;n<=2292;n++)o[n]=0;for(n=2308;n<=2313;n++)o[n]=0;for(n=2315;n<=2491;n++)o[n]=0;for(n=2494;n<=2866;n++)o[n]=0;for(n=2867;n<=2869;n++)o[n]=1;for(n=2870;n<=2888;n++)o[n]=2;for(n=2891;n<=2895;n++)o[n]=2;for(n=2896;n<=2898;n++)o[n]=1;for(n=2902;n<=2908;n++)o[n]=2;for(n=2915;n<=2920;n++)o[n]=2;for(n=2921;n<=2923;n++)o[n]=1;for(n=2924;n<=2930;n++)o[n]=2;for(n=2931;n<=2962;n++)o[n]=0;for(n=2964;n<=2968;n++)o[n]=2;for(n=2969;n<=2973;n++)o[n]=0;for(n=2975;n<=2991;n++)o[n]=0;for(n=2995;n<=3051;n++)o[n]=0;for(n=3054;n<=3079;n++)o[n]=0;for(n=3081;n<=3088;n++)o[n]=0;for(n=3092;n<=3101;n++)o[n]=0;for(n=3106;n<=3138;n++)o[n]=0;for(n=3146;n<=3151;n++)o[n]=0;for(n=3153;n<=3166;n++)o[n]=0;for(n=3168;n<=3172;n++)o[n]=0;for(n=3174;n<=3203;n++)o[n]=0;for(n=3294;n<=3358;n++)o[n]=0;for(n=3367;n<=3403;n++)o[n]=0;for(n=3408;n<=3416;n++)o[n]=0;for(n=3417;n<=3438;n++)o[n]=2;for(n=3441;n<=3446;n++)o[n]=2;for(n=3447;n<=3450;n++)o[n]=0;for(n=3451;n<=3459;n++)o[n]=2;for(n=3460;n<=3478;n++)o[n]=0;for(n=3554;n<=3559;n++)o[n]=0;for(n=3560;n<=3570;n++)o[n]=2;for(n=3571;n<=3581;n++)o[n]=0;for(n=3594;n<=3597;n++)o[n]=0;for(n=3601;n<=3604;n++)o[n]=0;for(n=3637;n<=3639;n++)o[n]=0;for(n=3665;n<=3667;n++)o[n]=0;for(n=3693;n<=3695;n++)o[n]=0;for(n=3701;n<=3727;n++)o[n]=0;for(n=3728;n<=3739;n++)o[n]=2;for(n=3740;n<=3751;n++)o[n]=0;for(n=3753;n<=3760;n++)o[n]=2;for(n=3761;n<=3773;n++)o[n]=0;for(n=3775;n<=3777;n++)o[n]=0;for(n=3779;n<=3781;n++)o[n]=0;for(n=3783;n<=3785;n++)o[n]=0;for(n=3788;n<=3791;n++)o[n]=0;for(n=3797;n<=3802;n++)o[n]=0;for(n=3814;n<=3816;n++)o[n]=0;for(n=3825;n<=3829;n++)o[n]=0;for(n=3832;n<=3841;n++)o[n]=0;for(n=3844;n<=3852;n++)o[n]=0;for(n=3873;n<=3885;n++)o[n]=0;for(n=3890;n<=3893;n++)o[n]=0;for(n=3907;n<=3912;n++)o[n]=0;for(n=3942;n<=3950;n++)o[n]=0;for(n=3968;n<=3970;n++)o[n]=0;for(n=3973;n<=3976;n++)o[n]=0;for(n=3986;n<=3989;n++)o[n]=0;for(n=3994;n<=3997;n++)o[n]=0;for(n=4048;n<=4051;n++)o[n]=0;for(n=4056;n<=4063;n++)o[n]=0;for(n=4093;n<=4096;n++)o[n]=0;for(n=4390;n<=4398;n++)o[n]=0;for(n=4399;n<=4413;n++)o[n]=2;for(n=4418;n<=4433;n++)o[n]=2;for(n=4455;n<=4457;n++)o[n]=2;for(n=4484;n<=4489;n++)o[n]=0;for(n=4491;n<=4554;n++)o[n]=0;for(n=4568;n<=4589;n++)o[n]=0;for(n=4652;n<=4656;n++)o[n]=0;for(n=4766;n<=4800;n++)o[n]=0;for(n=5014;n<=5016;n++)o[n]=0;for(n=5069;n<=5072;n++)o[n]=0;for(n=5105;n<=5130;n++)o[n]=0;for(n=5167;n<=5188;n++)o[n]=0;for(n=5253;n<=5259;n++)o[n]=0;for(n=5269;n<=5275;n++)o[n]=0;for(n=5292;n<=5311;n++)o[n]=0;for(n=5329;n<=5331;n++)o[n]=0;for(n=5343;n<=5349;n++)o[n]=0;for(n=5355;n<=5357;n++)o[n]=0;for(n=5387;n<=5389;n++)o[n]=0;for(n=5459;n<=5463;n++)o[n]=0;for(n=5479;n<=5482;n++)o[n]=0;for(n=5518;n<=5520;n++)o[n]=0;for(n=5530;n<=5539;n++)o[n]=0;for(n=5550;n<=5552;n++)o[n]=0;for(n=5562;n<=5583;n++)o[n]=0;for(n=5623;n<=5625;n++)o[n]=2;for(n=5631;n<=5639;n++)o[n]=0;for(n=5649;n<=5653;n++)o[n]=0;for(n=5663;n<=5680;n++)o[n]=0;for(n=5682;n<=5685;n++)o[n]=0;for(n=5875;n<=5877;n++)o[n]=0;for(n=5896;n<=5899;n++)o[n]=0;for(n=5921;n<=5940;n++)o[n]=0;for(n=6050;n<=6125;n++)o[n]=0;for(n=6244;n<=6275;n++)o[n]=0;for(n=6328;n<=6348;n++)o[n]=0;for(n=6350;n<=6356;n++)o[n]=0;for(n=6366;n<=6372;n++)o[n]=0;for(n=6381;n<=6387;n++)o[n]=0;for(n=6393;n<=6404;n++)o[n]=0;for(n=6480;n<=6483;n++)o[n]=0;for(n=6511;n<=6514;n++)o[n]=0;for(n=6579;n<=6581;n++)o[n]=0;for(n=6619;n<=6624;n++)o[n]=0;for(n=6625;n<=6627;n++)o[n]=2;for(n=6628;n<=6632;n++)o[n]=0;for(n=6634;n<=6637;n++)o[n]=0;for(n=6669;n<=6692;n++)o[n]=0;for(n=6707;n<=6709;n++)o[n]=0;for(n=6720;n<=6723;n++)o[n]=0;for(n=6732;n<=6738;n++)o[n]=0;for(n=6931;n<=6933;n++)o[n]=0;for(n=6956;n<=6959;n++)o[n]=0;for(n=7005;n<=7007;n++)o[n]=0;for(n=7057;n<=7070;n++)o[n]=2;for(n=7074;n<=7082;n++)o[n]=0;for(n=7109;n<=7118;n++)o[n]=0;for(n=7119;n<=7127;n++)o[n]=1;for(n=7374;n<=7376;n++)o[n]=0;for(n=7528;n<=7586;n++)o[n]=0;for(n=7587;n<=7645;n++)o[n]=2;for(n=7692;n<=7696;n++)o[n]=0;for(n=7755;n<=7787;n++)o[n]=0;for(n=7791;n<=7795;n++)o[n]=0;for(n=7799;n<=7801;n++)o[n]=0;for(n=7803;n<=7805;n++)o[n]=0;for(n=7825;n<=7831;n++)o[n]=0;for(n=7845;n<=7859;n++)o[n]=0;for(n=8013;n<=8032;n++)o[n]=0;for(n=8065;n<=8068;n++)o[n]=1;for(n=8518;n<=8529;n++)o[n]=2;for(n=8533;n<=8536;n++)o[n]=2;for(n=8538;n<=8540;n++)o[n]=2;for(n=8677;n<=8679;n++)o[n]=0;for(n=8836;n<=8840;n++)o[n]=0;for(n=8857;n<=8859;n++)o[n]=0;for(n=8908;n<=8910;n++)o[n]=0;for(n=9154;n<=9159;n++)o[n]=0;for(n=9205;n<=9218;n++)o[n]=0;for(n=9271;n<=9273;n++)o[n]=0;for(n=9295;n<=9297;n++)o[n]=0;for(n=9356;n<=9360;n++)o[n]=0;for(n=9404;n<=9407;n++)o[n]=0;for(n=9476;n<=9482;n++)o[n]=0;for(n=9487;n<=9494;n++)o[n]=0;for(n=9697;n<=9699;n++)o[n]=0;for(n=9821;n<=9865;n++)o[n]=0;for(n=10285;n<=10291;n++)o[n]=0;for(n=10314;n<=10317;n++)o[n]=0;for(n=10448;n<=10465;n++)o[n]=0;for(n=10726;n<=10729;n++)o[n]=0;for(n=10731;n<=10733;n++)o[n]=0;for(n=11114;n<=11118;n++)o[n]=0;for(n=20004;n<=20032;n++)o[n]=0;for(n=20047;n<=20049;n++)o[n]=0;for(n=20062;n<=20092;n++)o[n]=0;for(n=20135;n<=20138;n++)o[n]=0;for(n=20248;n<=20258;n++)o[n]=0;for(n=20348;n<=20358;n++)o[n]=0;for(n=20436;n<=20440;n++)o[n]=0;for(n=20822;n<=20824;n++)o[n]=0;for(n=20904;n<=20932;n++)o[n]=0;for(n=20934;n<=20936;n++)o[n]=0;for(n=21004;n<=21032;n++)o[n]=0;for(n=21035;n<=21037;n++)o[n]=0;for(n=21095;n<=21097;n++)o[n]=0;for(n=21148;n<=21150;n++)o[n]=0;for(n=21207;n<=21264;n++)o[n]=0;for(n=21307;n<=21364;n++)o[n]=0;for(n=21413;n<=21423;n++)o[n]=0;for(n=21453;n<=21463;n++)o[n]=0;for(n=21473;n<=21483;n++)o[n]=0;for(n=21780;n<=21782;n++)o[n]=0;for(n=21891;n<=21894;n++)o[n]=0;for(n=21896;n<=21899;n++)o[n]=0;for(n=22171;n<=22177;n++)o[n]=0;for(n=22181;n<=22187;n++)o[n]=0;for(n=22191;n<=22197;n++)o[n]=0;for(n=22207;n<=22222;n++)o[n]=0;for(n=22229;n<=22232;n++)o[n]=0;for(n=22234;n<=22236;n++)o[n]=0;for(n=22243;n<=22250;n++)o[n]=0;for(n=22262;n<=22265;n++)o[n]=0;for(n=22307;n<=22322;n++)o[n]=0;for(n=22348;n<=22357;n++)o[n]=0;for(n=22407;n<=22422;n++)o[n]=0;for(n=22462;n<=22465;n++)o[n]=0;for(n=22521;n<=22525;n++)o[n]=0;for(n=22607;n<=22622;n++)o[n]=0;for(n=22641;n<=22646;n++)o[n]=0;for(n=22648;n<=22657;n++)o[n]=0;for(n=22707;n<=22722;n++)o[n]=0;for(n=22762;n<=22765;n++)o[n]=0;for(n=22807;n<=22822;n++)o[n]=0;for(n=22991;n<=22994;n++)o[n]=0;for(n=23028;n<=23038;n++)o[n]=0;for(n=23301;n<=23333;n++)o[n]=2;for(n=23830;n<=23853;n++)o[n]=0;for(n=23866;n<=23872;n++)o[n]=0;for(n=23877;n<=23884;n++)o[n]=0;for(n=23886;n<=23894;n++)o[n]=0;for(n=23946;n<=23948;n++)o[n]=0;for(n=24311;n<=24313;n++)o[n]=0;for(n=24342;n<=24347;n++)o[n]=0;for(n=24370;n<=24374;n++)o[n]=10;for(n=24375;n<=24381;n++)o[n]=0;for(n=24718;n<=24721;n++)o[n]=0;for(n=24817;n<=24821;n++)o[n]=0;for(n=24877;n<=24882;n++)o[n]=0;for(n=24891;n<=24893;n++)o[n]=0;for(n=25391;n<=25395;n++)o[n]=0;for(n=25828;n<=25838;n++)o[n]=0;for(n=26191;n<=26195;n++)o[n]=0;for(n=26391;n<=26393;n++)o[n]=0;for(n=26701;n<=26722;n++)o[n]=0;for(n=26729;n<=26799;n++)o[n]=2;for(n=26801;n<=26803;n++)o[n]=2;for(n=26811;n<=26813;n++)o[n]=2;for(n=26847;n<=26870;n++)o[n]=2;for(n=26891;n<=26899;n++)o[n]=0;for(n=26901;n<=26923;n++)o[n]=0;for(n=26929;n<=26946;n++)o[n]=0;for(n=26948;n<=26998;n++)o[n]=0;for(n=27037;n<=27040;n++)o[n]=0;for(n=27205;n<=27232;n++)o[n]=0;for(n=27258;n<=27260;n++)o[n]=0;for(n=27391;n<=27398;n++)o[n]=0;for(n=27561;n<=27564;n++)o[n]=0;for(n=27571;n<=27574;n++)o[n]=0;for(n=27581;n<=27584;n++)o[n]=0;for(n=27591;n<=27594;n++)o[n]=0;for(n=27700;n<=27707;n++)o[n]=0;for(n=28191;n<=28193;n++)o[n]=0;for(n=28348;n<=28358;n++)o[n]=0;for(n=28402;n<=28432;n++)o[n]=0;for(n=28462;n<=28492;n++)o[n]=0;for(n=29118;n<=29122;n++)o[n]=0;for(n=29168;n<=29172;n++)o[n]=0;for(n=29177;n<=29185;n++)o[n]=0;for(n=29187;n<=29195;n++)o[n]=0;for(n=29900;n<=29903;n++)o[n]=0;for(n=30161;n<=30179;n++)o[n]=0;for(n=30491;n<=30494;n++)o[n]=0;for(n=30729;n<=30732;n++)o[n]=0;for(n=31251;n<=31259;n++)o[n]=0;for(n=31265;n<=31268;n++)o[n]=0;for(n=31275;n<=31279;n++)o[n]=0;for(n=31281;n<=31297;n++)o[n]=0;for(n=31461;n<=31469;n++)o[n]=0;for(n=31491;n<=31495;n++)o[n]=0;for(n=31917;n<=31922;n++)o[n]=0;for(n=31965;n<=32e3;n++)o[n]=0;for(n=32001;n<=32003;n++)o[n]=2;for(n=32005;n<=32031;n++)o[n]=2;for(n=32033;n<=32060;n++)o[n]=2;for(n=32064;n<=32067;n++)o[n]=2;for(n=32074;n<=32077;n++)o[n]=2;for(n=32081;n<=32086;n++)o[n]=0;for(n=32107;n<=32130;n++)o[n]=0;for(n=32133;n<=32159;n++)o[n]=0;for(n=32164;n<=32167;n++)o[n]=2;for(n=32180;n<=32199;n++)o[n]=0;for(n=32201;n<=32260;n++)o[n]=0;for(n=32301;n<=32360;n++)o[n]=0;for(n=32401;n<=32460;n++)o[n]=0;for(n=32501;n<=32560;n++)o[n]=0;for(n=32601;n<=32662;n++)o[n]=0;for(n=32664;n<=32667;n++)o[n]=2;for(n=32701;n<=32761;n++)o[n]=0;for(n=53001;n<=53004;n++)o[n]=0;for(n=53008;n<=53019;n++)o[n]=0;for(n=53021;n<=53032;n++)o[n]=0;for(n=53034;n<=53037;n++)o[n]=0;for(n=53042;n<=53046;n++)o[n]=0;for(n=53074;n<=53080;n++)o[n]=0;for(n=54001;n<=54004;n++)o[n]=0;for(n=54008;n<=54019;n++)o[n]=0;for(n=54021;n<=54032;n++)o[n]=0;for(n=54034;n<=54037;n++)o[n]=0;for(n=54042;n<=54046;n++)o[n]=0;for(n=54048;n<=54053;n++)o[n]=0;for(n=54074;n<=54080;n++)o[n]=0;for(n=54090;n<=54096;n++)o[n]=0;for(n=54098;n<=54101;n++)o[n]=0;for(n=65161;n<=65163;n++)o[n]=0;for(n=102001;n<=102040;n++)o[n]=0;for(n=102042;n<=102063;n++)o[n]=0;for(n=102065;n<=102067;n++)o[n]=0;for(n=102070;n<=102117;n++)o[n]=0;for(n=102122;n<=102216;n++)o[n]=0;for(n=102221;n<=102377;n++)o[n]=0;for(n=102382;n<=102388;n++)o[n]=0;for(n=102389;n<=102398;n++)o[n]=2;for(n=102399;n<=102444;n++)o[n]=0;for(n=102445;n<=102447;n++)o[n]=2;for(n=102448;n<=102458;n++)o[n]=0;for(n=102459;n<=102468;n++)o[n]=2;for(n=102469;n<=102499;n++)o[n]=0;for(n=102500;n<=102519;n++)o[n]=1;for(n=102520;n<=102524;n++)o[n]=0;for(n=102525;n<=102529;n++)o[n]=2;for(n=102530;n<=102588;n++)o[n]=0;for(n=102590;n<=102598;n++)o[n]=0;for(n=102601;n<=102603;n++)o[n]=0;for(n=102605;n<=102628;n++)o[n]=0;for(n=102629;n<=102646;n++)o[n]=2;for(n=102648;n<=102700;n++)o[n]=2;for(n=102701;n<=102703;n++)o[n]=0;for(n=102707;n<=102730;n++)o[n]=2;for(n=102733;n<=102758;n++)o[n]=2;for(n=102767;n<=102900;n++)o[n]=0;for(n=102901;n<=102933;n++)o[n]=2;for(n=102934;n<=102950;n++)o[n]=13;for(n=102951;n<=102963;n++)o[n]=0;for(n=102965;n<=102969;n++)o[n]=0;for(n=102971;n<=102973;n++)o[n]=0;for(n=102975;n<=102989;n++)o[n]=0;for(n=102990;n<=102992;n++)o[n]=1;for(n=102997;n<=103002;n++)o[n]=0;for(n=103003;n<=103008;n++)o[n]=2;for(n=103009;n<=103011;n++)o[n]=0;for(n=103012;n<=103014;n++)o[n]=2;for(n=103019;n<=103021;n++)o[n]=0;for(n=103022;n<=103024;n++)o[n]=2;for(n=103029;n<=103031;n++)o[n]=0;for(n=103032;n<=103034;n++)o[n]=2;for(n=103065;n<=103068;n++)o[n]=0;for(n=103074;n<=103076;n++)o[n]=0;for(n=103077;n<=103079;n++)o[n]=1;for(n=103080;n<=103082;n++)o[n]=0;for(n=103083;n<=103085;n++)o[n]=2;for(n=103090;n<=103093;n++)o[n]=0;for(n=103097;n<=103099;n++)o[n]=0;for(n=103100;n<=103102;n++)o[n]=2;for(n=103107;n<=103109;n++)o[n]=0;for(n=103110;n<=103112;n++)o[n]=2;for(n=103113;n<=103116;n++)o[n]=0;for(n=103117;n<=103120;n++)o[n]=2;for(n=103153;n<=103157;n++)o[n]=0;for(n=103158;n<=103162;n++)o[n]=2;for(n=103163;n<=103165;n++)o[n]=0;for(n=103166;n<=103168;n++)o[n]=1;for(n=103169;n<=103171;n++)o[n]=2;for(n=103186;n<=103188;n++)o[n]=0;for(n=103189;n<=103191;n++)o[n]=2;for(n=103192;n<=103195;n++)o[n]=0;for(n=103196;n<=103199;n++)o[n]=2;for(n=103200;n<=103224;n++)o[n]=0;for(n=103225;n<=103227;n++)o[n]=1;for(n=103232;n<=103237;n++)o[n]=0;for(n=103238;n<=103243;n++)o[n]=2;for(n=103244;n<=103246;n++)o[n]=0;for(n=103247;n<=103249;n++)o[n]=2;for(n=103254;n<=103256;n++)o[n]=0;for(n=103257;n<=103259;n++)o[n]=2;for(n=103264;n<=103266;n++)o[n]=0;for(n=103267;n<=103269;n++)o[n]=2;for(n=103300;n<=103375;n++)o[n]=0;for(n=103381;n<=103383;n++)o[n]=0;for(n=103384;n<=103386;n++)o[n]=1;for(n=103387;n<=103389;n++)o[n]=0;for(n=103390;n<=103392;n++)o[n]=2;for(n=103397;n<=103399;n++)o[n]=0;for(n=103400;n<=103471;n++)o[n]=2;for(n=103476;n<=103478;n++)o[n]=0;for(n=103479;n<=103481;n++)o[n]=2;for(n=103486;n<=103488;n++)o[n]=0;for(n=103489;n<=103491;n++)o[n]=2;for(n=103492;n<=103495;n++)o[n]=0;for(n=103496;n<=103499;n++)o[n]=2;for(n=103528;n<=103543;n++)o[n]=0;for(n=103544;n<=103548;n++)o[n]=2;for(n=103549;n<=103551;n++)o[n]=0;for(n=103552;n<=103554;n++)o[n]=1;for(n=103555;n<=103557;n++)o[n]=2;for(n=103558;n<=103560;n++)o[n]=0;for(n=103571;n<=103573;n++)o[n]=0;for(n=103574;n<=103576;n++)o[n]=2;for(n=103577;n<=103580;n++)o[n]=0;for(n=103581;n<=103583;n++)o[n]=2;for(n=103595;n<=103694;n++)o[n]=0;for(n=103696;n<=103699;n++)o[n]=0;for(n=103700;n<=103793;n++)o[n]=2;for(n=103794;n<=103890;n++)o[n]=0;for(n=103891;n<=103896;n++)o[n]=2;for(n=103900;n<=103971;n++)o[n]=2;for(n=103972;n<=103977;n++)o[n]=0;for(n=112e3;n<=112101;n++)o[n]=0},34727:(e,t,r)=>{r.d(t,{$8:()=>M,Cc:()=>s,Hx:()=>p,Io:()=>m,KJ:()=>u,Sp:()=>l,XM:()=>_,YN:()=>c,ZH:()=>d,cU:()=>o,gg:()=>P,hs:()=>a,kU:()=>f,or:()=>O,pF:()=>U,pq:()=>A,qE:()=>i});const n=new Float32Array(1);function o(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function s(e,t,r){return e+(t-e)*r}function a(e,t,r,n,o){return s(n,o,(e-t)/(r-t))}function f(e){return e*Math.PI/180}function u(e){return 180*e/Math.PI}function _(e){return Math.acos(i(e,-1,1))}function c(e){return Math.asin(i(e,-1,1))}function l(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}function P(e,t,r=1e-6){return!l(e,t,r)&&e>t}function d(e,t,r=1e-6){return!l(e,t,r)&&e<t}function p(e,t,r=1e-6){return l(e,t,r)||e>t}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function g(e){return E.setFloat64(0,e),E.getBigInt64(0)}const S=1000000n,T=h(1);function h(e){const t=g(e=Math.abs(e)),r=function(e){return E.setBigInt64(0,e),E.getFloat64(0)}(t<=S?S:t-S);return Math.abs(e-r)}function m(e,t,r=T){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=r&&h(Math.min(Math.abs(e),Math.abs(t)))<r)return Math.abs(e-t)<=r;const n=g(e),o=g(t);return n<0==o<0&&!((n<o?o-n:n-o)>S)}function M(e){return y(Math.max(-A,Math.min(e,A)))}function y(e){return n[0]=e,n[0]}function O(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],n=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(l(t,1)&&l(r,1)&&l(n,1))}const A=y(34028234663852886e22);function U(e,t,r){if(void 0===r||0===+r)return Math[e](t);if(t=+t,r=+r,isNaN(t)||"number"!=typeof r||r%1!=0)return NaN;let n=t.toString().split("e");return n=(t=Math[e](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},43937:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(10107);function o(e,t,r){let o,i;return void 0===t?(i=e,o=[void 0]):"string"!=typeof t?(i=e,o=[void 0],r=t):(i=t,o=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of o){const o=(0,n.rM)(e,a,i);o.write&&"object"==typeof o.write||(o.write={}),r&&(o.write.target=r),o.write.writer=s[t]}}}},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>s,jA:()=>d,tO:()=>l,xP:()=>p,y7:()=>P});var n=r(79258),o=r(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(n.$O),a=i(n.sH),f=i(n.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${n.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},_=a.wkt.toUpperCase(),c=f.wkt.toUpperCase();function l(e){if(null!=e&&(0,o.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,o.tl)(t))return n.sH;const i=r?.toUpperCase();if(r&&i===_)return n.sH;if((0,o.ZL)(t)||i&&i===c)return n.Sw}return n.$O}function P(e){return(0,o.tl)(e)?n.sH:(0,o.ZL)(e)?n.Sw:n.$O}function d(e){return(0,o.aI)(e,s)}function p(e){return d(e)||(0,o.aI)(e,a)||(0,o.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>o,Sw:()=>s,sH:()=>i});class n{constructor(e,t,r,n,o,i){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r,this.atmosphereHeight=n,this.scaleHeight=o;const s=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*s,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const o=new n(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new n(3396190,1/169.8944472236118,23e4,6e4,.111),s=new n(1737400,0,0,0,0)},83047:(e,t,r)=>{r.d(t,{Ao:()=>k,B5:()=>b,G9:()=>R,GA:()=>N,Ij:()=>I,KX:()=>C,LA:()=>U,PQ:()=>y,Sk:()=>Y,UW:()=>O,b$:()=>L,dk:()=>x,dy:()=>f,k1:()=>G,oU:()=>M,vl:()=>A,x1:()=>F,yD:()=>P}),r(44208);var n=r(66552),o=r(73941),i=r(79258),s=r(21325),a=r(22530);const f=39.37,u=i.$O.radius*Math.PI/200,_=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,c=a.A,l=/UNIT\[([^\]]+)]/i,P=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),d=(0,n.O)()({millimeter:"millimeters",centimeter:"centimeters",meter:"meters",meter_german:"german-meters",kilometer:"kilometers",decimeter:"decimeters",micrometer:"micrometers",nanometer:"nanometers","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",fathom:"fathoms",nautical_mile:"nautical-miles",chain_us:"us-chains",link_us:"us-links",mile_us:"us-miles",yard_clarke:"clarke-yards",chain_clarke:"clarke-chains",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",link_sears:"sears-links",yard_benoit_1895_a:"benoit-1895-a-yards",foot_benoit_1895_a:"benoit-1895-a-feet",chain_benoit_1895_a:"benoit-1895-a-chains",link_benoit_1895_a:"benoit-1895-a-links",yard_benoit_1895_b:"benoit-1895-b-yards",foot_benoit_1895_b:"benoit-1895-b-feet",chain_benoit_1895_b:"benoit-1895-b-chains",link_benoit_1895_b:"benoit-1895-b-links",foot_1865:"1865-feet",foot_indian:"indian-feet",foot_indian_1937:"indian-1937-feet",foot_indian_1962:"indian-1962-feet",foot_indian_1975:"indian-1975-feet",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",yard_indian_1962:"indian-1962-yards",yard_indian_1975:"indian-1975-yards",statute_mile:"statute-miles",foot_gold_coast:"gold-coast-feet",foot_british_1936:"british-1936-feet",yard:"yards",chain:"chains",link:"links",yard_sears_1922_truncated:"sears-1922-truncated-yards",foot_sears_1922_truncated:"sears-1922-truncated-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains",link_sears_1922_truncated:"sears-1922-truncated-links",yard_us:"us-yards",inch:"inches",inch_us:"us-inches",rod:"rods",rod_us:"us-rods",nautical_mile_us:"us-nautical-miles",nautical_mile_uk:"uk-nautical-miles",smoot:"smoots",vara_tx:"tx-vara",point:"points"}),p=e=>e*e,E=e=>e*e*e,g={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},meters:{inBaseUnits:1},feet:{inBaseUnits:.3048},"us-feet":{inBaseUnits:.3048006096012192},"clarke-feet":{inBaseUnits:.3047972654},fathoms:{inBaseUnits:1.8288},"nautical-miles":{inBaseUnits:1852},"german-meters":{inBaseUnits:1.0000135965},"us-chains":{inBaseUnits:20.11684023368047},"us-links":{inBaseUnits:.2011684023368047},"us-miles":{inBaseUnits:1609.347218694438},kilometers:{inBaseUnits:1e3},"clarke-yards":{inBaseUnits:.9143917962},"clarke-chains":{inBaseUnits:20.1166195164},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"sears-links":{inBaseUnits:.2011676512155263},"benoit-1895-a-yards":{inBaseUnits:.9143992},"benoit-1895-a-feet":{inBaseUnits:.3047997333333333},"benoit-1895-a-chains":{inBaseUnits:20.1167824},"benoit-1895-a-links":{inBaseUnits:.201167824},"benoit-1895-b-yards":{inBaseUnits:.9143992042898124},"benoit-1895-b-feet":{inBaseUnits:.3047997347632708},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"benoit-1895-b-links":{inBaseUnits:.2011678249437587},"1865-feet":{inBaseUnits:.3048008333333334},"indian-feet":{inBaseUnits:.3047995102481469},"indian-1937-feet":{inBaseUnits:.30479841},"indian-1962-feet":{inBaseUnits:.3047996},"indian-1975-feet":{inBaseUnits:.3047995},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"indian-1962-yards":{inBaseUnits:.9143988},"indian-1975-yards":{inBaseUnits:.9143985},miles:{inBaseUnits:1609.344},"statute-miles":{inBaseUnits:1609.344},"gold-coast-feet":{inBaseUnits:.3047997101815088},"british-1936-feet":{inBaseUnits:.3048007491},yards:{inBaseUnits:.9144},chains:{inBaseUnits:20.1168},links:{inBaseUnits:.201168},"sears-1922-truncated-yards":{inBaseUnits:.914398},"sears-1922-truncated-feet":{inBaseUnits:.3047993333333334},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"sears-1922-truncated-links":{inBaseUnits:.20116756},"us-yards":{inBaseUnits:.9144018288036576},decimeters:{inBaseUnits:.1},inches:{inBaseUnits:.0254},"us-inches":{inBaseUnits:.0254000508001016},rods:{inBaseUnits:5.0292},"us-rods":{inBaseUnits:5.029210058420118},"us-nautical-miles":{inBaseUnits:1853.248},"uk-nautical-miles":{inBaseUnits:1853.184},smoots:{inBaseUnits:1.7018},"tx-vara":{inBaseUnits:.8466683600033867},points:{inBaseUnits:.0003527777777777778},micrometers:{inBaseUnits:1e-6},nanometers:{inBaseUnits:1e-9},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:p(.001)},"square-centimeters":{inBaseUnits:p(.01)},"square-decimeters":{inBaseUnits:p(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:p(1e3)},"square-inches":{inBaseUnits:p(.0254)},"square-feet":{inBaseUnits:p(.3048)},"square-yards":{inBaseUnits:p(.9144)},"square-miles":{inBaseUnits:p(1609.344)},"square-nautical-miles":{inBaseUnits:p(1852)},"square-us-feet":{inBaseUnits:p(1200/3937)},acres:{inBaseUnits:.0015625*p(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*E(.001)},"cubic-centimeters":{inBaseUnits:1e3*E(.01)},"cubic-decimeters":{inBaseUnits:1e3*E(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*E(1e3)},"cubic-inches":{inBaseUnits:1e3*E(.0254)},"cubic-feet":{inBaseUnits:1e3*E(.3048)},"cubic-yards":{inBaseUnits:1e3*E(.9144)},"cubic-miles":{inBaseUnits:1e3*E(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},S=(()=>{const e={};for(const t in g)for(const r in g[t].units)e[r]=t;return e})(),T=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function h(e){const t=S[e];if(!t)throw new Error("unknown type");return t}function m(e,t=null){return t=t||h(e),g[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const n=h(t);if(n!==h(r))throw new Error("incompatible units");const o=m(t,n)?e:function(e,t,r){return e*g[r].units[t].inBaseUnits}(e,t,n);return m(r,n)?o:function(e,t,r){return e/g[r].units[t].inBaseUnits}(o,r,n)}function y(e,t,r,n=!1){if(!n&&(0,s.EA)(t))throw new Error("Unable to convert from an angular unit to a linear unit.");const o=I(t);return o!==r&&(e=o?M(e,o,r):M(e*=N(t),"meters",r)),e}function O(e,t,r,n=!1){if(!n&&(0,s.EA)(r))throw new Error("Unable to convert from a linear unit to an angular unit.");const o=I(r);return t!==o&&(e=o?M(e,t,o):M(e,t,"meters")/N(r)),e}function A(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function U(e){return d.fromJSON(e.toLowerCase())||null}function R(e){if(null!=e&&!(0,s.B3)(e))return 1;const t=N(e);return t>1e5?1:t}function G(e){return N(e)>=(0,o.tO)(e).metersPerDegree?"meters":I(e)}function N(e,t=i.$O.metersPerDegree){return k(e,!0)??t}function k(e,t=!1){const r=e?.wkid??null,n=e?.wkt2??e?.wkt??null;let o=null;if(r){if((0,s.tl)(r))return i.sH.metersPerDegree;if((0,s.ZL)(r))return i.Sw.metersPerDegree;o=c.values[c[r]],!o&&t&&P.has(r)&&(o=u)}else n&&(F(n)?o=w(_.exec(n),o):B(n)&&(o=w(l.exec(n),o)));return o}function C(e){return(0,s.EA)(e)?1:N(e)}function w(e,t){return e?.[1]?D(e[1]):t}function D(e){return parseFloat(e.split(",")[1])}function I(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let n=null;if(t)n=c.units[c[t]];else if(r){const e=F(r)?_:B(r)?l:null;if(e){const t=e.exec(r);t?.[1]&&(n=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!U(r)){const t=D(e);r=null;const n=c.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<W){r=c.units[e];break}}return r}(t[1]))}}return null!=n?U(n):null}function b(e){const t=I(e);return null==t?null:T.get(t)}function B(e){return/^GEOCCS/i.test(e)}function F(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const W=1e-7,x=(0,n.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),Y=(0,n.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),L=(0,n.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},83290:(e,t,r)=>{r.d(t,{P:()=>P,a:()=>_,g:()=>O,h:()=>u,i:()=>a,j:()=>g,l:()=>f,p:()=>C});var n=r(2741),o=r(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6187).then(r.bind(r,46187)).then(({default:e})=>e({locateFile:e=>(0,n.s)(`esri/geometry/support/${e}`)})).then(e=>{U(e)}),i)}var u,_,c;!function(e){function t(e,t,r){s.ensureCache.prepare();const n=N(r),o=r===n,i=s.ensureFloat64(n),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&k(r,t,i,o),a}function r(e,t,r){return n(e,t,r,0)}function n(e,t,r,n){s.ensureCache.prepare();const o=N(r),i=r===o,a=s.ensureFloat64(o),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,n);return f&&k(r,t,a,i),f}e.geogToProj=t,e.projGeog=function(e,n,o,i){switch(i){case _.PE_TRANSFORM_P_TO_G:return r(e,n,o);case _.PE_TRANSFORM_G_TO_P:return t(e,n,o)}return 0},e.projToGeog=r,e.projToGeogCenter=n}(u||(u={})),(c=_||(_={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,c.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA};let l=null;var P;!function(e){const t={},r={},n=e=>{const t=e.getType();switch(t){case _.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case _.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case _.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&_.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e};function o(e,r){let o=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(String(r))&&(o=i[r],s.compare(o,s.NULL)&&(o=null)),!o){const t=s.PeFactory.prototype.factoryByType(e,r);s.compare(t,s.NULL)||(o=n(t),i[r]=o)}return o}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(_.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(t)&&(o=i[t],s.compare(o,s.NULL)&&(o=null)),!o){const r=s.PeFactory.prototype.fromString(e,t);s.compare(r,s.NULL)||(o=n(r),i[t]=o)}return o},e.geogcs=function(e){return o(_.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(_.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(_.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(_.PE_TYPE_UNIT,e)}}(P||(P={}));let d=null;var p,E,g,S,T,h,m,M,y,O,A;function U(e){function t(e,t,r){e[t]=r(e[t])}s=e,_.init(),p.init(),m.init(),y.init(),O.init(),l=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},d=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const r=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of r)t(e.prototype,"getName",e=>function(){return e.call(this,new Array(_.PE_NAME_MAX))});for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",e=>function(){const t=new Array(_.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const n=s.getValue(r,"*");t[e]=n?s.wrapPointer(n,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t});t(s.PeHorizon.prototype,"getCoord",e=>function(t=!1){const r=this.getSize();if(!r)return null;const n=[];return k(n,r,e.call(this),t),n}),t(s.PeGTlistExtendedEntry.prototype,"getEntries",e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=this.getSteps();if(e>1){const o=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(o+t*n,s.PeGTlistExtendedGTs))}}return r}});const n=s._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=o.getNump();if(e>1){const t=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(t+n*o,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",o),t(s.PeProjcs.prototype,"horizonPcsGenerate",o),s.PeObject.prototype.toString=function(e=_.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(_.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function R(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const n=s.getPointer(e);n&&delete r[n]}function G(e,t){const r=[],n=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(n));return r}function N(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function k(e,t,r,n=!1){if(n)for(let n=0;n<2*t;n++)e[n]=s.getValue(r+n*Float64Array.BYTES_PER_ELEMENT,"double");else{const n=0===e.length;for(let o=0;o<t;o++)n&&(e[o]=new Array(2)),e[o][0]=s.getValue(r,"double"),e[o][1]=s.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,n,o,i,a){let f=null;const u=new s.PeInteger(a);try{const _=s.PeGTlistExtended.prototype.getGTlist(e,r,n,o,i,u);if((a=u.val)&&(f=[_],a>1)){const e=s.getPointer(_);for(let r=1;r<a;r++)f.push(s.wrapPointer(e+t*r,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)R(t),t.getEntries().forEach(e=>{R(e);const t=e.getGeogtran();R(t),t.getParameters().forEach(R),[t.getGeogcs1(),t.getGeogcs2()].forEach(e=>{R(e);const t=e.getDatum();R(t),R(t.getSpheroid()),R(e.getPrimem()),R(e.getUnit())})});s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(E||(E={})),function(e){e.geogToGeog=function(e,t,r,n,o){s.ensureCache.prepare();const i=N(r),a=r===i,f=s.ensureFloat64(i);let u=0;n&&(u=s.ensureFloat64(n));const _=s._pe_geog_to_geog(s.getPointer(e),t,f,u,o);return _&&k(r,t,f,a),_}}(g||(g={})),function(e){e.geodesicCoordinate=function(e,t,r,n,o,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,t,r,n,o,i,a,f)},e.geodeticCoordinate=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.geodetic_coordinate(e,t,r,n,o,i,a,f,u)},e.geodeticDistance=function(e,t,r,n,o,i,a,f,u,_){s.PeLineType.prototype.geodetic_distance(e,t,r,n,o,i,a,f,u,_)},e.greatEllipticDistance=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.great_elliptic_distance(e,t,r,n,o,i,a,f,u)}}(S||(S={})),function(e){e.phiToEta=function(e,t){return s.PeMath.prototype.phi_to_eta(e,t)},e.etaToPhi=function(e,t){return s.PeMath.prototype.eta_to_phi(e,t)},e.phiToPhig=function(e,t){return s.PeMath.prototype.phi_to_phig(e,t)},e.q=function(e,t,r){return s.PeMath.prototype.q(e,t,r)},e.q90=function(e,t){return s.PeMath.prototype.q90(e,t)}}(T||(T={})),function(e){const t=(e,t,r,n,o,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=_.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=_.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=_.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const c=N(n),l=s.ensureFloat64(c),P=G(r,f),d=a(u,r,l,o,s.ensureInt32(P));if(d)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(P[e]);return d},r=(e,t,r,n,o)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;t&&(a=s.getPointer(t));const f=n.map(e=>s.ensureString(e)),u=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),c=i(a,r,u,_);return c&&k(o,r,_),c};e.geogToDms=function(e,r,n,o,i){return t("dms",e,r,n,o,i)},e.dmsToGeog=function(e,t,n,o){return r("dms",e,t,n,o)},e.geogToDdm=function(e,r,n,o,i){return t("ddm",e,r,n,o,i)},e.ddmToGeog=function(e,t,n,o){return r("ddm",e,t,n,o)},e.geogToDd=function(e,r,n,o,i){return t("dd",e,r,n,o,i)},e.ddToGeog=function(e,t,n,o){return r("dd",e,t,n,o)}}(h||(h={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),d=s._pe_geog_to_mgrs_extended(f,t,c,n,o,i,P);if(d)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return d},e.mgrsToGeogExtended=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map(e=>s.ensureString(e)),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_mgrs_to_geog_extended(i,t,f,n,u);return _&&k(o,t,u),_}}(m||(m={})),function(e){e.geogToUsng=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),d=s._pe_geog_to_usng(f,t,c,n,o,i,P);if(d)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return d},e.usngToGeog=function(e,t,r,n){s.ensureCache.prepare();let o=0;e&&(o=s.getPointer(e));const i=r.map(e=>s.ensureString(e)),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(o,t,a,f);return u&&k(n,t,f),u}}(M||(M={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=N(r),f=s.ensureFloat64(a),u=G(t,_.PE_UTM_MAX),c=s.ensureInt32(u),l=s._pe_geog_to_utm(i,t,f,n,c);if(l)for(let e=0;e<t;e++)o[e]=s.UTF8ToString(u[e]);return l},e.utmToGeog=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map(e=>s.ensureString(e)),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_utm_to_geog(i,t,f,n,u);return _&&k(o,t,u),_}}(y||(y={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,n=e.PE_PCSINFO_OPTION_DOMAIN){let o=null,i=null;return t.has(r)&&(i=t.get(r),i[n]&&(o=i[n])),o||(o=s.PePCSInfo.prototype.generate(r,n),i||(i=[],t.set(r,i)),i[n]=o),o}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(A||(A={}));const C=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return _},get PeDouble(){return l},get PeFactory(){return P},get PeGCSExtent(){return d},get PeGTTransformations(){return g},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return E},get PeLineType(){return S},get PeMath(){return T},get PeNotationDms(){return h},get PeNotationMgrs(){return m},get PeNotationUsng(){return M},get PeNotationUtm(){return y},get PePCSInfo(){return O},get PeVersion(){return A},_init:U,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,o.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{16930:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(31635),i=r(69622),s=r(25482),a=r(4718),f=r(83047),u=r(56507),_=r(10107),c=r(40608),l=r(43937),P=r(21325);let d=class extends s.A{static{n=this}static{this.GCS_NAD_1927=null}static{this.WGS84=null}static{this.WebMercator=null}static{this.PlateCarree=null}static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return n.WebMercator;if(4326===e?.wkid)return n.WGS84;const t=new n;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const t="string"==typeof e?"wkt":"wkid";return{[t]:e}}get isWGS84(){return(0,P.oT)(this)}get isWebMercator(){return(0,P.K8)(this)}get isGeographic(){return(0,P.EA)(this)}get isWrappable(){return(0,P.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===n.WGS84)return new n(P.KK);if(this===n.WebMercator)return new n(P.ch);const e=new n;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,o=this.imageCoordinateSystem;return null==t||n?JSON.stringify(o)===JSON.stringify(e.imageCoordinateSystem):r?o.id===t&&o.referenceServiceName===r:o.id===t}return(0,P.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isWGS84",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isGeographic",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"isWrappable",null),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,o.Cg)([(0,_.MZ)({readOnly:!0})],d.prototype,"unit",null),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,o.Cg)([(0,_.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,o.Cg)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,o.Cg)([(0,_.MZ)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,o.Cg)([(0,_.MZ)({type:u.jz,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,o.Cg)([(0,_.MZ)()],d.prototype,"imageCoordinateSystem",void 0),d=n=(0,o.Cg)([(0,c.$)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=i.A.freeze(new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),d.WGS84=i.A.freeze(new d(P.KK)),d.WebMercator=i.A.freeze(new d(P.ch)),d.PlateCarree=i.A.freeze(new d(P.tQ))},21325:(e,t,r)=>{r.d(t,{B3:()=>p,EA:()=>d,K8:()=>T,KK:()=>R,KQ:()=>O,Mc:()=>a,Vp:()=>l,YX:()=>P,ZL:()=>y,aI:()=>c,ch:()=>G,d9:()=>A,fn:()=>U,jp:()=>g,oT:()=>E,q8:()=>M,r1:()=>h,tQ:()=>N,tl:()=>m,x1:()=>S});var n=r(799),o=(r(83290),r(22530));const i=[102100,102113,3857,3785,900913],s=[4326,...i,104905,104971],a=[-20037508.342788905,20037508.342788905],f=[-20037508.342787,20037508.342787],u={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},_={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},102100:u,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},3857:u,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:u};function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,n=t.wkid;if(null!=r||null!=n){if(r===n)return!0;if(T(e)&&T(t))return!0;const o=e.latestWkid;if(null!=o&&n===o)return!0;const i=t.latestWkid;return null!=i&&r===i}let o,i;return e.wkt2&&t.wkt2?(o=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(o=e.wkt,i=t.wkt),!(!o||!i)&&o.toUpperCase()===i.toUpperCase()}function l(e){const t=e?.wkid;return null!=t&&t>=2e3&&_[t]||null}function P(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const n=e.wkt||e.wkt2;return JSON.stringify(n?r?{wkt:n,vcsWkid:r}:{wkt:n}:{})}function d(e){if(!U(e))return!1;const{wkid:t}=e;if(t)return null==o.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function p(e){return!(M(e)||O(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function S(e){return 4490===e?.wkid}function T(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function h(e){return 32662===e?.wkid}function m(e){return 104971===e||104905===e}function M(e){return m(e?.wkid)}function y(e){return 104903===e}function O(e){return y(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function U(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,n.HC)(_[4326].wkTemplate,{Central_Meridian:"0.0"})},G={wkid:102100,latestWkid:3857},N={wkid:32662}},22530:(e,t,r)=>{let n;r.d(t,{A:()=>o});const o={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10641:0,10665:0,10674:0,10744:0,10745:0,10759:0,10773:0,10802:0,10820:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,65061:2,65062:2,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(n=2e3;n<=2045;n++)o[n]=0;for(n=2056;n<=2065;n++)o[n]=0;for(n=2067;n<=2135;n++)o[n]=0;for(n=2137;n<=2154;n++)o[n]=0;for(n=2161;n<=2170;n++)o[n]=0;for(n=2172;n<=2193;n++)o[n]=0;for(n=2195;n<=2198;n++)o[n]=0;for(n=2200;n<=2203;n++)o[n]=0;for(n=2205;n<=2217;n++)o[n]=0;for(n=2222;n<=2224;n++)o[n]=1;for(n=2225;n<=2250;n++)o[n]=2;for(n=2251;n<=2253;n++)o[n]=1;for(n=2257;n<=2264;n++)o[n]=2;for(n=2274;n<=2279;n++)o[n]=2;for(n=2280;n<=2282;n++)o[n]=1;for(n=2283;n<=2289;n++)o[n]=2;for(n=2290;n<=2292;n++)o[n]=0;for(n=2308;n<=2313;n++)o[n]=0;for(n=2315;n<=2491;n++)o[n]=0;for(n=2494;n<=2866;n++)o[n]=0;for(n=2867;n<=2869;n++)o[n]=1;for(n=2870;n<=2888;n++)o[n]=2;for(n=2891;n<=2895;n++)o[n]=2;for(n=2896;n<=2898;n++)o[n]=1;for(n=2902;n<=2908;n++)o[n]=2;for(n=2915;n<=2920;n++)o[n]=2;for(n=2921;n<=2923;n++)o[n]=1;for(n=2924;n<=2930;n++)o[n]=2;for(n=2931;n<=2962;n++)o[n]=0;for(n=2964;n<=2968;n++)o[n]=2;for(n=2969;n<=2973;n++)o[n]=0;for(n=2975;n<=2991;n++)o[n]=0;for(n=2995;n<=3051;n++)o[n]=0;for(n=3054;n<=3079;n++)o[n]=0;for(n=3081;n<=3088;n++)o[n]=0;for(n=3092;n<=3101;n++)o[n]=0;for(n=3106;n<=3138;n++)o[n]=0;for(n=3146;n<=3151;n++)o[n]=0;for(n=3153;n<=3166;n++)o[n]=0;for(n=3168;n<=3172;n++)o[n]=0;for(n=3174;n<=3203;n++)o[n]=0;for(n=3294;n<=3358;n++)o[n]=0;for(n=3367;n<=3403;n++)o[n]=0;for(n=3408;n<=3416;n++)o[n]=0;for(n=3417;n<=3438;n++)o[n]=2;for(n=3441;n<=3446;n++)o[n]=2;for(n=3447;n<=3450;n++)o[n]=0;for(n=3451;n<=3459;n++)o[n]=2;for(n=3460;n<=3478;n++)o[n]=0;for(n=3554;n<=3559;n++)o[n]=0;for(n=3560;n<=3570;n++)o[n]=2;for(n=3571;n<=3581;n++)o[n]=0;for(n=3594;n<=3597;n++)o[n]=0;for(n=3601;n<=3604;n++)o[n]=0;for(n=3637;n<=3639;n++)o[n]=0;for(n=3665;n<=3667;n++)o[n]=0;for(n=3693;n<=3695;n++)o[n]=0;for(n=3701;n<=3727;n++)o[n]=0;for(n=3728;n<=3739;n++)o[n]=2;for(n=3740;n<=3751;n++)o[n]=0;for(n=3753;n<=3760;n++)o[n]=2;for(n=3761;n<=3773;n++)o[n]=0;for(n=3775;n<=3777;n++)o[n]=0;for(n=3779;n<=3781;n++)o[n]=0;for(n=3783;n<=3785;n++)o[n]=0;for(n=3788;n<=3791;n++)o[n]=0;for(n=3797;n<=3802;n++)o[n]=0;for(n=3814;n<=3816;n++)o[n]=0;for(n=3825;n<=3829;n++)o[n]=0;for(n=3832;n<=3841;n++)o[n]=0;for(n=3844;n<=3852;n++)o[n]=0;for(n=3873;n<=3885;n++)o[n]=0;for(n=3890;n<=3893;n++)o[n]=0;for(n=3907;n<=3912;n++)o[n]=0;for(n=3942;n<=3950;n++)o[n]=0;for(n=3968;n<=3970;n++)o[n]=0;for(n=3973;n<=3976;n++)o[n]=0;for(n=3986;n<=3989;n++)o[n]=0;for(n=3994;n<=3997;n++)o[n]=0;for(n=4048;n<=4051;n++)o[n]=0;for(n=4056;n<=4063;n++)o[n]=0;for(n=4093;n<=4096;n++)o[n]=0;for(n=4390;n<=4398;n++)o[n]=0;for(n=4399;n<=4413;n++)o[n]=2;for(n=4418;n<=4433;n++)o[n]=2;for(n=4455;n<=4457;n++)o[n]=2;for(n=4484;n<=4489;n++)o[n]=0;for(n=4491;n<=4554;n++)o[n]=0;for(n=4568;n<=4589;n++)o[n]=0;for(n=4652;n<=4656;n++)o[n]=0;for(n=4766;n<=4800;n++)o[n]=0;for(n=5014;n<=5016;n++)o[n]=0;for(n=5069;n<=5072;n++)o[n]=0;for(n=5105;n<=5130;n++)o[n]=0;for(n=5167;n<=5188;n++)o[n]=0;for(n=5253;n<=5259;n++)o[n]=0;for(n=5269;n<=5275;n++)o[n]=0;for(n=5292;n<=5311;n++)o[n]=0;for(n=5329;n<=5331;n++)o[n]=0;for(n=5343;n<=5349;n++)o[n]=0;for(n=5355;n<=5357;n++)o[n]=0;for(n=5387;n<=5389;n++)o[n]=0;for(n=5459;n<=5463;n++)o[n]=0;for(n=5479;n<=5482;n++)o[n]=0;for(n=5518;n<=5520;n++)o[n]=0;for(n=5530;n<=5539;n++)o[n]=0;for(n=5550;n<=5552;n++)o[n]=0;for(n=5562;n<=5583;n++)o[n]=0;for(n=5623;n<=5625;n++)o[n]=2;for(n=5631;n<=5639;n++)o[n]=0;for(n=5649;n<=5653;n++)o[n]=0;for(n=5663;n<=5680;n++)o[n]=0;for(n=5682;n<=5685;n++)o[n]=0;for(n=5875;n<=5877;n++)o[n]=0;for(n=5896;n<=5899;n++)o[n]=0;for(n=5921;n<=5940;n++)o[n]=0;for(n=6050;n<=6125;n++)o[n]=0;for(n=6244;n<=6275;n++)o[n]=0;for(n=6328;n<=6348;n++)o[n]=0;for(n=6350;n<=6356;n++)o[n]=0;for(n=6366;n<=6372;n++)o[n]=0;for(n=6381;n<=6387;n++)o[n]=0;for(n=6393;n<=6404;n++)o[n]=0;for(n=6480;n<=6483;n++)o[n]=0;for(n=6511;n<=6514;n++)o[n]=0;for(n=6579;n<=6581;n++)o[n]=0;for(n=6619;n<=6624;n++)o[n]=0;for(n=6625;n<=6627;n++)o[n]=2;for(n=6628;n<=6632;n++)o[n]=0;for(n=6634;n<=6637;n++)o[n]=0;for(n=6669;n<=6692;n++)o[n]=0;for(n=6707;n<=6709;n++)o[n]=0;for(n=6720;n<=6723;n++)o[n]=0;for(n=6732;n<=6738;n++)o[n]=0;for(n=6931;n<=6933;n++)o[n]=0;for(n=6956;n<=6959;n++)o[n]=0;for(n=7005;n<=7007;n++)o[n]=0;for(n=7057;n<=7070;n++)o[n]=2;for(n=7074;n<=7082;n++)o[n]=0;for(n=7109;n<=7118;n++)o[n]=0;for(n=7119;n<=7127;n++)o[n]=1;for(n=7374;n<=7376;n++)o[n]=0;for(n=7528;n<=7586;n++)o[n]=0;for(n=7587;n<=7645;n++)o[n]=2;for(n=7692;n<=7696;n++)o[n]=0;for(n=7755;n<=7787;n++)o[n]=0;for(n=7791;n<=7795;n++)o[n]=0;for(n=7799;n<=7801;n++)o[n]=0;for(n=7803;n<=7805;n++)o[n]=0;for(n=7825;n<=7831;n++)o[n]=0;for(n=7845;n<=7859;n++)o[n]=0;for(n=8013;n<=8032;n++)o[n]=0;for(n=8065;n<=8068;n++)o[n]=1;for(n=8518;n<=8529;n++)o[n]=2;for(n=8533;n<=8536;n++)o[n]=2;for(n=8538;n<=8540;n++)o[n]=2;for(n=8677;n<=8679;n++)o[n]=0;for(n=8836;n<=8840;n++)o[n]=0;for(n=8857;n<=8859;n++)o[n]=0;for(n=8908;n<=8910;n++)o[n]=0;for(n=9154;n<=9159;n++)o[n]=0;for(n=9205;n<=9218;n++)o[n]=0;for(n=9271;n<=9273;n++)o[n]=0;for(n=9295;n<=9297;n++)o[n]=0;for(n=9356;n<=9360;n++)o[n]=0;for(n=9404;n<=9407;n++)o[n]=0;for(n=9476;n<=9482;n++)o[n]=0;for(n=9487;n<=9494;n++)o[n]=0;for(n=9697;n<=9699;n++)o[n]=0;for(n=9821;n<=9865;n++)o[n]=0;for(n=10285;n<=10291;n++)o[n]=0;for(n=10314;n<=10317;n++)o[n]=0;for(n=10448;n<=10465;n++)o[n]=0;for(n=10726;n<=10729;n++)o[n]=0;for(n=10731;n<=10733;n++)o[n]=0;for(n=11114;n<=11118;n++)o[n]=0;for(n=20004;n<=20032;n++)o[n]=0;for(n=20047;n<=20049;n++)o[n]=0;for(n=20062;n<=20092;n++)o[n]=0;for(n=20135;n<=20138;n++)o[n]=0;for(n=20248;n<=20258;n++)o[n]=0;for(n=20348;n<=20358;n++)o[n]=0;for(n=20436;n<=20440;n++)o[n]=0;for(n=20822;n<=20824;n++)o[n]=0;for(n=20904;n<=20932;n++)o[n]=0;for(n=20934;n<=20936;n++)o[n]=0;for(n=21004;n<=21032;n++)o[n]=0;for(n=21035;n<=21037;n++)o[n]=0;for(n=21095;n<=21097;n++)o[n]=0;for(n=21148;n<=21150;n++)o[n]=0;for(n=21207;n<=21264;n++)o[n]=0;for(n=21307;n<=21364;n++)o[n]=0;for(n=21413;n<=21423;n++)o[n]=0;for(n=21453;n<=21463;n++)o[n]=0;for(n=21473;n<=21483;n++)o[n]=0;for(n=21780;n<=21782;n++)o[n]=0;for(n=21891;n<=21894;n++)o[n]=0;for(n=21896;n<=21899;n++)o[n]=0;for(n=22171;n<=22177;n++)o[n]=0;for(n=22181;n<=22187;n++)o[n]=0;for(n=22191;n<=22197;n++)o[n]=0;for(n=22207;n<=22222;n++)o[n]=0;for(n=22229;n<=22232;n++)o[n]=0;for(n=22234;n<=22236;n++)o[n]=0;for(n=22243;n<=22250;n++)o[n]=0;for(n=22262;n<=22265;n++)o[n]=0;for(n=22307;n<=22322;n++)o[n]=0;for(n=22348;n<=22357;n++)o[n]=0;for(n=22407;n<=22422;n++)o[n]=0;for(n=22462;n<=22465;n++)o[n]=0;for(n=22521;n<=22525;n++)o[n]=0;for(n=22607;n<=22622;n++)o[n]=0;for(n=22641;n<=22646;n++)o[n]=0;for(n=22648;n<=22657;n++)o[n]=0;for(n=22707;n<=22722;n++)o[n]=0;for(n=22762;n<=22765;n++)o[n]=0;for(n=22807;n<=22822;n++)o[n]=0;for(n=22991;n<=22994;n++)o[n]=0;for(n=23028;n<=23038;n++)o[n]=0;for(n=23301;n<=23333;n++)o[n]=2;for(n=23830;n<=23853;n++)o[n]=0;for(n=23866;n<=23872;n++)o[n]=0;for(n=23877;n<=23884;n++)o[n]=0;for(n=23886;n<=23894;n++)o[n]=0;for(n=23946;n<=23948;n++)o[n]=0;for(n=24311;n<=24313;n++)o[n]=0;for(n=24342;n<=24347;n++)o[n]=0;for(n=24370;n<=24374;n++)o[n]=10;for(n=24375;n<=24381;n++)o[n]=0;for(n=24718;n<=24721;n++)o[n]=0;for(n=24817;n<=24821;n++)o[n]=0;for(n=24877;n<=24882;n++)o[n]=0;for(n=24891;n<=24893;n++)o[n]=0;for(n=25391;n<=25395;n++)o[n]=0;for(n=25828;n<=25838;n++)o[n]=0;for(n=26191;n<=26195;n++)o[n]=0;for(n=26391;n<=26393;n++)o[n]=0;for(n=26701;n<=26722;n++)o[n]=0;for(n=26729;n<=26799;n++)o[n]=2;for(n=26801;n<=26803;n++)o[n]=2;for(n=26811;n<=26813;n++)o[n]=2;for(n=26847;n<=26870;n++)o[n]=2;for(n=26891;n<=26899;n++)o[n]=0;for(n=26901;n<=26923;n++)o[n]=0;for(n=26929;n<=26946;n++)o[n]=0;for(n=26948;n<=26998;n++)o[n]=0;for(n=27037;n<=27040;n++)o[n]=0;for(n=27205;n<=27232;n++)o[n]=0;for(n=27258;n<=27260;n++)o[n]=0;for(n=27391;n<=27398;n++)o[n]=0;for(n=27561;n<=27564;n++)o[n]=0;for(n=27571;n<=27574;n++)o[n]=0;for(n=27581;n<=27584;n++)o[n]=0;for(n=27591;n<=27594;n++)o[n]=0;for(n=27700;n<=27707;n++)o[n]=0;for(n=28191;n<=28193;n++)o[n]=0;for(n=28348;n<=28358;n++)o[n]=0;for(n=28402;n<=28432;n++)o[n]=0;for(n=28462;n<=28492;n++)o[n]=0;for(n=29118;n<=29122;n++)o[n]=0;for(n=29168;n<=29172;n++)o[n]=0;for(n=29177;n<=29185;n++)o[n]=0;for(n=29187;n<=29195;n++)o[n]=0;for(n=29900;n<=29903;n++)o[n]=0;for(n=30161;n<=30179;n++)o[n]=0;for(n=30491;n<=30494;n++)o[n]=0;for(n=30729;n<=30732;n++)o[n]=0;for(n=31251;n<=31259;n++)o[n]=0;for(n=31265;n<=31268;n++)o[n]=0;for(n=31275;n<=31279;n++)o[n]=0;for(n=31281;n<=31297;n++)o[n]=0;for(n=31461;n<=31469;n++)o[n]=0;for(n=31491;n<=31495;n++)o[n]=0;for(n=31917;n<=31922;n++)o[n]=0;for(n=31965;n<=32e3;n++)o[n]=0;for(n=32001;n<=32003;n++)o[n]=2;for(n=32005;n<=32031;n++)o[n]=2;for(n=32033;n<=32060;n++)o[n]=2;for(n=32064;n<=32067;n++)o[n]=2;for(n=32074;n<=32077;n++)o[n]=2;for(n=32081;n<=32086;n++)o[n]=0;for(n=32107;n<=32130;n++)o[n]=0;for(n=32133;n<=32159;n++)o[n]=0;for(n=32164;n<=32167;n++)o[n]=2;for(n=32180;n<=32199;n++)o[n]=0;for(n=32201;n<=32260;n++)o[n]=0;for(n=32301;n<=32360;n++)o[n]=0;for(n=32401;n<=32460;n++)o[n]=0;for(n=32501;n<=32560;n++)o[n]=0;for(n=32601;n<=32662;n++)o[n]=0;for(n=32664;n<=32667;n++)o[n]=2;for(n=32701;n<=32761;n++)o[n]=0;for(n=53001;n<=53004;n++)o[n]=0;for(n=53008;n<=53019;n++)o[n]=0;for(n=53021;n<=53032;n++)o[n]=0;for(n=53034;n<=53037;n++)o[n]=0;for(n=53042;n<=53046;n++)o[n]=0;for(n=53074;n<=53080;n++)o[n]=0;for(n=54001;n<=54004;n++)o[n]=0;for(n=54008;n<=54019;n++)o[n]=0;for(n=54021;n<=54032;n++)o[n]=0;for(n=54034;n<=54037;n++)o[n]=0;for(n=54042;n<=54046;n++)o[n]=0;for(n=54048;n<=54053;n++)o[n]=0;for(n=54074;n<=54080;n++)o[n]=0;for(n=54090;n<=54096;n++)o[n]=0;for(n=54098;n<=54101;n++)o[n]=0;for(n=65161;n<=65163;n++)o[n]=0;for(n=102001;n<=102040;n++)o[n]=0;for(n=102042;n<=102063;n++)o[n]=0;for(n=102065;n<=102067;n++)o[n]=0;for(n=102070;n<=102117;n++)o[n]=0;for(n=102122;n<=102216;n++)o[n]=0;for(n=102221;n<=102377;n++)o[n]=0;for(n=102382;n<=102388;n++)o[n]=0;for(n=102389;n<=102398;n++)o[n]=2;for(n=102399;n<=102444;n++)o[n]=0;for(n=102445;n<=102447;n++)o[n]=2;for(n=102448;n<=102458;n++)o[n]=0;for(n=102459;n<=102468;n++)o[n]=2;for(n=102469;n<=102499;n++)o[n]=0;for(n=102500;n<=102519;n++)o[n]=1;for(n=102520;n<=102524;n++)o[n]=0;for(n=102525;n<=102529;n++)o[n]=2;for(n=102530;n<=102588;n++)o[n]=0;for(n=102590;n<=102598;n++)o[n]=0;for(n=102601;n<=102603;n++)o[n]=0;for(n=102605;n<=102628;n++)o[n]=0;for(n=102629;n<=102646;n++)o[n]=2;for(n=102648;n<=102700;n++)o[n]=2;for(n=102701;n<=102703;n++)o[n]=0;for(n=102707;n<=102730;n++)o[n]=2;for(n=102733;n<=102758;n++)o[n]=2;for(n=102767;n<=102900;n++)o[n]=0;for(n=102901;n<=102933;n++)o[n]=2;for(n=102934;n<=102950;n++)o[n]=13;for(n=102951;n<=102963;n++)o[n]=0;for(n=102965;n<=102969;n++)o[n]=0;for(n=102971;n<=102973;n++)o[n]=0;for(n=102975;n<=102989;n++)o[n]=0;for(n=102990;n<=102992;n++)o[n]=1;for(n=102997;n<=103002;n++)o[n]=0;for(n=103003;n<=103008;n++)o[n]=2;for(n=103009;n<=103011;n++)o[n]=0;for(n=103012;n<=103014;n++)o[n]=2;for(n=103019;n<=103021;n++)o[n]=0;for(n=103022;n<=103024;n++)o[n]=2;for(n=103029;n<=103031;n++)o[n]=0;for(n=103032;n<=103034;n++)o[n]=2;for(n=103065;n<=103068;n++)o[n]=0;for(n=103074;n<=103076;n++)o[n]=0;for(n=103077;n<=103079;n++)o[n]=1;for(n=103080;n<=103082;n++)o[n]=0;for(n=103083;n<=103085;n++)o[n]=2;for(n=103090;n<=103093;n++)o[n]=0;for(n=103097;n<=103099;n++)o[n]=0;for(n=103100;n<=103102;n++)o[n]=2;for(n=103107;n<=103109;n++)o[n]=0;for(n=103110;n<=103112;n++)o[n]=2;for(n=103113;n<=103116;n++)o[n]=0;for(n=103117;n<=103120;n++)o[n]=2;for(n=103153;n<=103157;n++)o[n]=0;for(n=103158;n<=103162;n++)o[n]=2;for(n=103163;n<=103165;n++)o[n]=0;for(n=103166;n<=103168;n++)o[n]=1;for(n=103169;n<=103171;n++)o[n]=2;for(n=103186;n<=103188;n++)o[n]=0;for(n=103189;n<=103191;n++)o[n]=2;for(n=103192;n<=103195;n++)o[n]=0;for(n=103196;n<=103199;n++)o[n]=2;for(n=103200;n<=103224;n++)o[n]=0;for(n=103225;n<=103227;n++)o[n]=1;for(n=103232;n<=103237;n++)o[n]=0;for(n=103238;n<=103243;n++)o[n]=2;for(n=103244;n<=103246;n++)o[n]=0;for(n=103247;n<=103249;n++)o[n]=2;for(n=103254;n<=103256;n++)o[n]=0;for(n=103257;n<=103259;n++)o[n]=2;for(n=103264;n<=103266;n++)o[n]=0;for(n=103267;n<=103269;n++)o[n]=2;for(n=103300;n<=103375;n++)o[n]=0;for(n=103381;n<=103383;n++)o[n]=0;for(n=103384;n<=103386;n++)o[n]=1;for(n=103387;n<=103389;n++)o[n]=0;for(n=103390;n<=103392;n++)o[n]=2;for(n=103397;n<=103399;n++)o[n]=0;for(n=103400;n<=103471;n++)o[n]=2;for(n=103476;n<=103478;n++)o[n]=0;for(n=103479;n<=103481;n++)o[n]=2;for(n=103486;n<=103488;n++)o[n]=0;for(n=103489;n<=103491;n++)o[n]=2;for(n=103492;n<=103495;n++)o[n]=0;for(n=103496;n<=103499;n++)o[n]=2;for(n=103528;n<=103543;n++)o[n]=0;for(n=103544;n<=103548;n++)o[n]=2;for(n=103549;n<=103551;n++)o[n]=0;for(n=103552;n<=103554;n++)o[n]=1;for(n=103555;n<=103557;n++)o[n]=2;for(n=103558;n<=103560;n++)o[n]=0;for(n=103571;n<=103573;n++)o[n]=0;for(n=103574;n<=103576;n++)o[n]=2;for(n=103577;n<=103580;n++)o[n]=0;for(n=103581;n<=103583;n++)o[n]=2;for(n=103595;n<=103694;n++)o[n]=0;for(n=103696;n<=103699;n++)o[n]=0;for(n=103700;n<=103793;n++)o[n]=2;for(n=103794;n<=103890;n++)o[n]=0;for(n=103891;n<=103896;n++)o[n]=2;for(n=103900;n<=103971;n++)o[n]=2;for(n=103972;n<=103977;n++)o[n]=0;for(n=112e3;n<=112101;n++)o[n]=0},34727:(e,t,r)=>{r.d(t,{$8:()=>M,Cc:()=>s,Hx:()=>p,Io:()=>m,KJ:()=>u,Sp:()=>l,XM:()=>_,YN:()=>c,ZH:()=>d,cU:()=>o,gg:()=>P,hs:()=>a,kU:()=>f,or:()=>O,pF:()=>U,pq:()=>A,qE:()=>i});const n=new Float32Array(1);function o(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function s(e,t,r){return e+(t-e)*r}function a(e,t,r,n,o){return s(n,o,(e-t)/(r-t))}function f(e){return e*Math.PI/180}function u(e){return 180*e/Math.PI}function _(e){return Math.acos(i(e,-1,1))}function c(e){return Math.asin(i(e,-1,1))}function l(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}function P(e,t,r=1e-6){return!l(e,t,r)&&e>t}function d(e,t,r=1e-6){return!l(e,t,r)&&e<t}function p(e,t,r=1e-6){return l(e,t,r)||e>t}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function g(e){return E.setFloat64(0,e),E.getBigInt64(0)}const S=1000000n,T=h(1);function h(e){const t=g(e=Math.abs(e)),r=function(e){return E.setBigInt64(0,e),E.getFloat64(0)}(t<=S?S:t-S);return Math.abs(e-r)}function m(e,t,r=T){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=r&&h(Math.min(Math.abs(e),Math.abs(t)))<r)return Math.abs(e-t)<=r;const n=g(e),o=g(t);return n<0==o<0&&!((n<o?o-n:n-o)>S)}function M(e){return y(Math.max(-A,Math.min(e,A)))}function y(e){return n[0]=e,n[0]}function O(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],n=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(l(t,1)&&l(r,1)&&l(n,1))}const A=y(34028234663852886e22);function U(e,t,r){if(void 0===r||0===+r)return Math[e](t);if(t=+t,r=+r,isNaN(t)||"number"!=typeof r||r%1!=0)return NaN;let n=t.toString().split("e");return n=(t=Math[e](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},43937:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(10107);function o(e,t,r){let o,i;return void 0===t?(i=e,o=[void 0]):"string"!=typeof t?(i=e,o=[void 0],r=t):(i=t,o=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of o){const o=(0,n.rM)(e,a,i);o.write&&"object"==typeof o.write||(o.write={}),r&&(o.write.target=r),o.write.writer=s[t]}}}},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>s,jA:()=>d,tO:()=>l,xP:()=>p,y7:()=>P});var n=r(79258),o=r(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(n.$O),a=i(n.sH),f=i(n.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${n.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},_=a.wkt.toUpperCase(),c=f.wkt.toUpperCase();function l(e){if(null!=e&&(0,o.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,o.tl)(t))return n.sH;const i=r?.toUpperCase();if(r&&i===_)return n.sH;if((0,o.ZL)(t)||i&&i===c)return n.Sw}return n.$O}function P(e){return(0,o.tl)(e)?n.sH:(0,o.ZL)(e)?n.Sw:n.$O}function d(e){return(0,o.aI)(e,s)}function p(e){return d(e)||(0,o.aI)(e,a)||(0,o.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>o,Sw:()=>s,sH:()=>i});class n{constructor(e,t,r,n,o,i){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r,this.atmosphereHeight=n,this.scaleHeight=o;const s=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*s,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const o=new n(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new n(3396190,1/169.8944472236118,23e4,6e4,.111),s=new n(1737400,0,0,0,0)},83047:(e,t,r)=>{r.d(t,{Ao:()=>k,B5:()=>b,G9:()=>R,GA:()=>N,Ij:()=>I,KX:()=>C,LA:()=>U,PQ:()=>y,Sk:()=>Y,UW:()=>O,b$:()=>L,dk:()=>x,dy:()=>f,k1:()=>G,oU:()=>M,vl:()=>A,x1:()=>F,yD:()=>P}),r(44208);var n=r(66552),o=r(73941),i=r(79258),s=r(21325),a=r(22530);const f=39.37,u=i.$O.radius*Math.PI/200,_=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,c=a.A,l=/UNIT\[([^\]]+)]/i,P=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),d=(0,n.O)()({millimeter:"millimeters",centimeter:"centimeters",meter:"meters",meter_german:"german-meters",kilometer:"kilometers",decimeter:"decimeters",micrometer:"micrometers",nanometer:"nanometers","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",fathom:"fathoms",nautical_mile:"nautical-miles",chain_us:"us-chains",link_us:"us-links",mile_us:"us-miles",yard_clarke:"clarke-yards",chain_clarke:"clarke-chains",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",link_sears:"sears-links",yard_benoit_1895_a:"benoit-1895-a-yards",foot_benoit_1895_a:"benoit-1895-a-feet",chain_benoit_1895_a:"benoit-1895-a-chains",link_benoit_1895_a:"benoit-1895-a-links",yard_benoit_1895_b:"benoit-1895-b-yards",foot_benoit_1895_b:"benoit-1895-b-feet",chain_benoit_1895_b:"benoit-1895-b-chains",link_benoit_1895_b:"benoit-1895-b-links",foot_1865:"1865-feet",foot_indian:"indian-feet",foot_indian_1937:"indian-1937-feet",foot_indian_1962:"indian-1962-feet",foot_indian_1975:"indian-1975-feet",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",yard_indian_1962:"indian-1962-yards",yard_indian_1975:"indian-1975-yards",statute_mile:"statute-miles",foot_gold_coast:"gold-coast-feet",foot_british_1936:"british-1936-feet",yard:"yards",chain:"chains",link:"links",yard_sears_1922_truncated:"sears-1922-truncated-yards",foot_sears_1922_truncated:"sears-1922-truncated-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains",link_sears_1922_truncated:"sears-1922-truncated-links",yard_us:"us-yards",inch:"inches",inch_us:"us-inches",rod:"rods",rod_us:"us-rods",nautical_mile_us:"us-nautical-miles",nautical_mile_uk:"uk-nautical-miles",smoot:"smoots",vara_tx:"tx-vara",point:"points"}),p=e=>e*e,E=e=>e*e*e,g={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},meters:{inBaseUnits:1},feet:{inBaseUnits:.3048},"us-feet":{inBaseUnits:.3048006096012192},"clarke-feet":{inBaseUnits:.3047972654},fathoms:{inBaseUnits:1.8288},"nautical-miles":{inBaseUnits:1852},"german-meters":{inBaseUnits:1.0000135965},"us-chains":{inBaseUnits:20.11684023368047},"us-links":{inBaseUnits:.2011684023368047},"us-miles":{inBaseUnits:1609.347218694438},kilometers:{inBaseUnits:1e3},"clarke-yards":{inBaseUnits:.9143917962},"clarke-chains":{inBaseUnits:20.1166195164},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"sears-links":{inBaseUnits:.2011676512155263},"benoit-1895-a-yards":{inBaseUnits:.9143992},"benoit-1895-a-feet":{inBaseUnits:.3047997333333333},"benoit-1895-a-chains":{inBaseUnits:20.1167824},"benoit-1895-a-links":{inBaseUnits:.201167824},"benoit-1895-b-yards":{inBaseUnits:.9143992042898124},"benoit-1895-b-feet":{inBaseUnits:.3047997347632708},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"benoit-1895-b-links":{inBaseUnits:.2011678249437587},"1865-feet":{inBaseUnits:.3048008333333334},"indian-feet":{inBaseUnits:.3047995102481469},"indian-1937-feet":{inBaseUnits:.30479841},"indian-1962-feet":{inBaseUnits:.3047996},"indian-1975-feet":{inBaseUnits:.3047995},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"indian-1962-yards":{inBaseUnits:.9143988},"indian-1975-yards":{inBaseUnits:.9143985},miles:{inBaseUnits:1609.344},"statute-miles":{inBaseUnits:1609.344},"gold-coast-feet":{inBaseUnits:.3047997101815088},"british-1936-feet":{inBaseUnits:.3048007491},yards:{inBaseUnits:.9144},chains:{inBaseUnits:20.1168},links:{inBaseUnits:.201168},"sears-1922-truncated-yards":{inBaseUnits:.914398},"sears-1922-truncated-feet":{inBaseUnits:.3047993333333334},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"sears-1922-truncated-links":{inBaseUnits:.20116756},"us-yards":{inBaseUnits:.9144018288036576},decimeters:{inBaseUnits:.1},inches:{inBaseUnits:.0254},"us-inches":{inBaseUnits:.0254000508001016},rods:{inBaseUnits:5.0292},"us-rods":{inBaseUnits:5.029210058420118},"us-nautical-miles":{inBaseUnits:1853.248},"uk-nautical-miles":{inBaseUnits:1853.184},smoots:{inBaseUnits:1.7018},"tx-vara":{inBaseUnits:.8466683600033867},points:{inBaseUnits:.0003527777777777778},micrometers:{inBaseUnits:1e-6},nanometers:{inBaseUnits:1e-9},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:p(.001)},"square-centimeters":{inBaseUnits:p(.01)},"square-decimeters":{inBaseUnits:p(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:p(1e3)},"square-inches":{inBaseUnits:p(.0254)},"square-feet":{inBaseUnits:p(.3048)},"square-yards":{inBaseUnits:p(.9144)},"square-miles":{inBaseUnits:p(1609.344)},"square-nautical-miles":{inBaseUnits:p(1852)},"square-us-feet":{inBaseUnits:p(1200/3937)},acres:{inBaseUnits:.0015625*p(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*E(.001)},"cubic-centimeters":{inBaseUnits:1e3*E(.01)},"cubic-decimeters":{inBaseUnits:1e3*E(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*E(1e3)},"cubic-inches":{inBaseUnits:1e3*E(.0254)},"cubic-feet":{inBaseUnits:1e3*E(.3048)},"cubic-yards":{inBaseUnits:1e3*E(.9144)},"cubic-miles":{inBaseUnits:1e3*E(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},S=(()=>{const e={};for(const t in g)for(const r in g[t].units)e[r]=t;return e})(),T=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function h(e){const t=S[e];if(!t)throw new Error("unknown type");return t}function m(e,t=null){return t=t||h(e),g[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const n=h(t);if(n!==h(r))throw new Error("incompatible units");const o=m(t,n)?e:function(e,t,r){return e*g[r].units[t].inBaseUnits}(e,t,n);return m(r,n)?o:function(e,t,r){return e/g[r].units[t].inBaseUnits}(o,r,n)}function y(e,t,r,n=!1){if(!n&&(0,s.EA)(t))throw new Error("Unable to convert from an angular unit to a linear unit.");const o=I(t);return o!==r&&(e=o?M(e,o,r):M(e*=N(t),"meters",r)),e}function O(e,t,r,n=!1){if(!n&&(0,s.EA)(r))throw new Error("Unable to convert from a linear unit to an angular unit.");const o=I(r);return t!==o&&(e=o?M(e,t,o):M(e,t,"meters")/N(r)),e}function A(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function U(e){return d.fromJSON(e.toLowerCase())||null}function R(e){if(null!=e&&!(0,s.B3)(e))return 1;const t=N(e);return t>1e5?1:t}function G(e){return N(e)>=(0,o.tO)(e).metersPerDegree?"meters":I(e)}function N(e,t=i.$O.metersPerDegree){return k(e,!0)??t}function k(e,t=!1){const r=e?.wkid??null,n=e?.wkt2??e?.wkt??null;let o=null;if(r){if((0,s.tl)(r))return i.sH.metersPerDegree;if((0,s.ZL)(r))return i.Sw.metersPerDegree;o=c.values[c[r]],!o&&t&&P.has(r)&&(o=u)}else n&&(F(n)?o=w(_.exec(n),o):B(n)&&(o=w(l.exec(n),o)));return o}function C(e){return(0,s.EA)(e)?1:N(e)}function w(e,t){return e?.[1]?D(e[1]):t}function D(e){return parseFloat(e.split(",")[1])}function I(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let n=null;if(t)n=c.units[c[t]];else if(r){const e=F(r)?_:B(r)?l:null;if(e){const t=e.exec(r);t?.[1]&&(n=function(e){const t=/[\\"']([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!U(r)){const t=D(e);r=null;const n=c.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<W){r=c.units[e];break}}return r}(t[1]))}}return null!=n?U(n):null}function b(e){const t=I(e);return null==t?null:T.get(t)}function B(e){return/^GEOCCS/i.test(e)}function F(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const W=1e-7,x=(0,n.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),Y=(0,n.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),L=(0,n.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},83290:(e,t,r)=>{r.d(t,{P:()=>P,a:()=>_,g:()=>O,h:()=>u,i:()=>a,j:()=>g,l:()=>f,p:()=>C});var n=r(2741),o=r(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6187).then(r.bind(r,46187)).then(({default:e})=>e({locateFile:e=>(0,n.s)(`esri/geometry/support/${e}`)})).then(e=>{U(e)}),i)}var u,_,c;!function(e){function t(e,t,r){s.ensureCache.prepare();const n=N(r),o=r===n,i=s.ensureFloat64(n),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&k(r,t,i,o),a}function r(e,t,r){return n(e,t,r,0)}function n(e,t,r,n){s.ensureCache.prepare();const o=N(r),i=r===o,a=s.ensureFloat64(o),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,n);return f&&k(r,t,a,i),f}e.geogToProj=t,e.projGeog=function(e,n,o,i){switch(i){case _.PE_TRANSFORM_P_TO_G:return r(e,n,o);case _.PE_TRANSFORM_G_TO_P:return t(e,n,o)}return 0},e.projToGeog=r,e.projToGeogCenter=n}(u||(u={})),(c=_||(_={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,c.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA};let l=null;var P;!function(e){const t={},r={},n=e=>{const t=e.getType();switch(t){case _.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case _.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case _.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&_.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e};function o(e,r){let o=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(String(r))&&(o=i[r],s.compare(o,s.NULL)&&(o=null)),!o){const t=s.PeFactory.prototype.factoryByType(e,r);s.compare(t,s.NULL)||(o=n(t),i[r]=o)}return o}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(_.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(t)&&(o=i[t],s.compare(o,s.NULL)&&(o=null)),!o){const r=s.PeFactory.prototype.fromString(e,t);s.compare(r,s.NULL)||(o=n(r),i[t]=o)}return o},e.geogcs=function(e){return o(_.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(_.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(_.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(_.PE_TYPE_UNIT,e)}}(P||(P={}));let d=null;var p,E,g,S,T,h,m,M,y,O,A;function U(e){function t(e,t,r){e[t]=r(e[t])}s=e,_.init(),p.init(),m.init(),y.init(),O.init(),l=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},d=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const r=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of r)t(e.prototype,"getName",e=>function(){return e.call(this,new Array(_.PE_NAME_MAX))});for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",e=>function(){const t=new Array(_.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const n=s.getValue(r,"*");t[e]=n?s.wrapPointer(n,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t});t(s.PeHorizon.prototype,"getCoord",e=>function(t=!1){const r=this.getSize();if(!r)return null;const n=[];return k(n,r,e.call(this),t),n}),t(s.PeGTlistExtendedEntry.prototype,"getEntries",e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=this.getSteps();if(e>1){const o=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(o+t*n,s.PeGTlistExtendedGTs))}}return r}});const n=s._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=o.getNump();if(e>1){const t=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(t+n*o,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",o),t(s.PeProjcs.prototype,"horizonPcsGenerate",o),s.PeObject.prototype.toString=function(e=_.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(_.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function R(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const n=s.getPointer(e);n&&delete r[n]}function G(e,t){const r=[],n=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(n));return r}function N(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function k(e,t,r,n=!1){if(n)for(let n=0;n<2*t;n++)e[n]=s.getValue(r+n*Float64Array.BYTES_PER_ELEMENT,"double");else{const n=0===e.length;for(let o=0;o<t;o++)n&&(e[o]=new Array(2)),e[o][0]=s.getValue(r,"double"),e[o][1]=s.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,n,o,i,a){let f=null;const u=new s.PeInteger(a);try{const _=s.PeGTlistExtended.prototype.getGTlist(e,r,n,o,i,u);if((a=u.val)&&(f=[_],a>1)){const e=s.getPointer(_);for(let r=1;r<a;r++)f.push(s.wrapPointer(e+t*r,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)R(t),t.getEntries().forEach(e=>{R(e);const t=e.getGeogtran();R(t),t.getParameters().forEach(R),[t.getGeogcs1(),t.getGeogcs2()].forEach(e=>{R(e);const t=e.getDatum();R(t),R(t.getSpheroid()),R(e.getPrimem()),R(e.getUnit())})});s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(E||(E={})),function(e){e.geogToGeog=function(e,t,r,n,o){s.ensureCache.prepare();const i=N(r),a=r===i,f=s.ensureFloat64(i);let u=0;n&&(u=s.ensureFloat64(n));const _=s._pe_geog_to_geog(s.getPointer(e),t,f,u,o);return _&&k(r,t,f,a),_}}(g||(g={})),function(e){e.geodesicCoordinate=function(e,t,r,n,o,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,t,r,n,o,i,a,f)},e.geodeticCoordinate=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.geodetic_coordinate(e,t,r,n,o,i,a,f,u)},e.geodeticDistance=function(e,t,r,n,o,i,a,f,u,_){s.PeLineType.prototype.geodetic_distance(e,t,r,n,o,i,a,f,u,_)},e.greatEllipticDistance=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.great_elliptic_distance(e,t,r,n,o,i,a,f,u)}}(S||(S={})),function(e){e.phiToEta=function(e,t){return s.PeMath.prototype.phi_to_eta(e,t)},e.etaToPhi=function(e,t){return s.PeMath.prototype.eta_to_phi(e,t)},e.phiToPhig=function(e,t){return s.PeMath.prototype.phi_to_phig(e,t)},e.q=function(e,t,r){return s.PeMath.prototype.q(e,t,r)},e.q90=function(e,t){return s.PeMath.prototype.q90(e,t)}}(T||(T={})),function(e){const t=(e,t,r,n,o,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=_.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=_.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=_.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const c=N(n),l=s.ensureFloat64(c),P=G(r,f),d=a(u,r,l,o,s.ensureInt32(P));if(d)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(P[e]);return d},r=(e,t,r,n,o)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;t&&(a=s.getPointer(t));const f=n.map(e=>s.ensureString(e)),u=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),c=i(a,r,u,_);return c&&k(o,r,_),c};e.geogToDms=function(e,r,n,o,i){return t("dms",e,r,n,o,i)},e.dmsToGeog=function(e,t,n,o){return r("dms",e,t,n,o)},e.geogToDdm=function(e,r,n,o,i){return t("ddm",e,r,n,o,i)},e.ddmToGeog=function(e,t,n,o){return r("ddm",e,t,n,o)},e.geogToDd=function(e,r,n,o,i){return t("dd",e,r,n,o,i)},e.ddToGeog=function(e,t,n,o){return r("dd",e,t,n,o)}}(h||(h={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),d=s._pe_geog_to_mgrs_extended(f,t,c,n,o,i,P);if(d)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return d},e.mgrsToGeogExtended=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map(e=>s.ensureString(e)),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_mgrs_to_geog_extended(i,t,f,n,u);return _&&k(o,t,u),_}}(m||(m={})),function(e){e.geogToUsng=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),d=s._pe_geog_to_usng(f,t,c,n,o,i,P);if(d)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return d},e.usngToGeog=function(e,t,r,n){s.ensureCache.prepare();let o=0;e&&(o=s.getPointer(e));const i=r.map(e=>s.ensureString(e)),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(o,t,a,f);return u&&k(n,t,f),u}}(M||(M={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=N(r),f=s.ensureFloat64(a),u=G(t,_.PE_UTM_MAX),c=s.ensureInt32(u),l=s._pe_geog_to_utm(i,t,f,n,c);if(l)for(let e=0;e<t;e++)o[e]=s.UTF8ToString(u[e]);return l},e.utmToGeog=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map(e=>s.ensureString(e)),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_utm_to_geog(i,t,f,n,u);return _&&k(o,t,u),_}}(y||(y={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,n=e.PE_PCSINFO_OPTION_DOMAIN){let o=null,i=null;return t.has(r)&&(i=t.get(r),i[n]&&(o=i[n])),o||(o=s.PePCSInfo.prototype.generate(r,n),i||(i=[],t.set(r,i)),i[n]=o),o}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(A||(A={}));const C=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return _},get PeDouble(){return l},get PeFactory(){return P},get PeGCSExtent(){return d},get PeGTTransformations(){return g},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return E},get PeLineType(){return S},get PeMath(){return T},get PeNotationDms(){return h},get PeNotationMgrs(){return m},get PeNotationUsng(){return M},get PeNotationUtm(){return y},get PePCSInfo(){return O},get PeVersion(){return A},_init:U,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,o.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6719,8407],{10407:(e,t,r)=>{r.d(t,{It:()=>y,LG:()=>o,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>h,sQ:()=>c});var s=r(98988),i=r(16930),n=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const r=i.A.WGS84;return await(0,s.initializeProjection)(t,r),(0,s.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:s}=e,i=t.user?.privileges;let n=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}},17311:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(31635),i=r(69622),n=r(4576),o=r(60999),a=r(7762),l=r(10107),u=(r(44208),r(53966),r(40608)),p=r(30524),c=r(43668);let h=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,c.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??r.e(9926).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),s=this.fieldsIndex.get(r.at(-1)??"");s&&e.add(s.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const s=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(s)??""}async getTitles(e,t,r){const s=new Map,i=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:n}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:a}=this,l=a&&o;t.forEach(t=>{const r=t.getObjectId()??t.attributes[e.objectIdField],u=l?n({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:a}):"";s.set(r,u)})}catch{}return s}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(n.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,p.Kl)(e,this.requiredFields))){const s=e.createQuery();s.where="1=1",s.outFields=[...this.requiredFields],s.objectIds=r;const i=await e.queryFeatures(s);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),s=e?.name??r.fieldName;r.fieldName=s,t.set(s.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const s=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const n={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:s,attributes:n,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter(e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/")))}};(0,s.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"_featureUtils",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"displayField",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"fieldInfoMap",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"fields",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"objectIdField",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"requiredFields",null),h=(0,s.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],h)},22671:(e,t,r)=>{r.d(t,{A:()=>b});var s,i=r(31635),n=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(10107),p=(r(44208),r(53966),r(36005)),c=r(40608),h=r(43937),y=r(16930),f=r(65864),d=r(50498),g=r(20437);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=s=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,s){if(e)return void m.write(e,t,r,s);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,f.rS)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=y.A.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,i]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-s)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,i],scale:[n,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*n+s,e=>i-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const s=y.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],o=r.fromJSON(n),a=n.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=s);const l=n.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=s)}i.push(o)}return i}_quantizePoints(e,t,r){let s,i;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===s&&o===i||(n.push([e-s,o-i]),s=e,i=o)}else s=t(a[0]),i=r(a[1]),n.push([s,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=s.length;e<n;e++){const n=s[e],o=this._quantizePoints(n,t,r);o&&i.push(o)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=i(r[3])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2]),t[3]=i(t[3])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,i.Cg)([(0,p.w)("features")],b.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,i.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,p.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:y.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=s=(0,i.Cg)([(0,c.$)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>p,ne:()=>u});var s=r(31635),i=r(93637),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),a=r(91880);function l(e,t,r){if(!e)return null;const s=e.find(e=>!!e.field);if(!s)return null;const i=new a.A;return i.read(s,r),[i]}const u={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,s){const n=e.find(e=>!!e.field);n&&(0,i.sM)(r,[n.toJSON()],t)}}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,s.Cg)([(0,n.MZ)(u)],r.prototype,"orderBy",void 0),r=(0,s.Cg)([(0,o.$)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(31635),i=r(69540),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(43937),p=r(80451),c=r(29005);let h=class extends(i.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"id",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"domains",void 0),(0,s.Cg)([(0,a.w)("domains")],h.prototype,"readDomains",null),(0,s.Cg)([(0,u.K)("domains")],h.prototype,"writeDomains",null),(0,s.Cg)([(0,o.MZ)({type:[c.A],json:{write:!0}})],h.prototype,"templates",void 0),h=(0,s.Cg)([(0,l.$)("esri.layers.support.FeatureType")],h)},52106:(e,t,r)=>{r.d(t,{A:()=>_});var s,i=r(31635),n=r(13874),o=r(69540),a=r(51447),l=r(25482),u=r(53966),p=r(36708),c=r(24326),h=r(10107),y=(r(44208),r(87811),r(40608)),f=r(12195),d=r(65864),g=r(50498),m=r(54339),b=r(33910);function v(e){if(null==e)return null;const t={};for(const r in e){const s=e[r];s&&(t[r]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let _=class extends(o.A.ClonableMixin(l.A)){static{s=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const r of[t,this.sourceLayer,this.layer])if(r){if("popupTemplate"in r&&r.popupTemplate)return r.popupTemplate;if(e&&"defaultPopupTemplate"in r&&null!=r.defaultPopupTemplate)return r.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,m.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:v(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=s),"attributes"===e&&(i.attributeName=s),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const s=(0,d.rS)(e[r]);s&&(t[r]=s)}return 0!==Object.keys(t).length?t:null}}})],_.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,h.MZ)({value:null})],_.prototype,"attributes",null),(0,i.Cg)([(0,h.MZ)({value:null,types:g.yR,json:{read:d.rS}})],_.prototype,"geometry",null),(0,i.Cg)([(0,h.MZ)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,i.Cg)([(0,h.MZ)({clonable:!1})],_.prototype,"layer",void 0),(0,i.Cg)([(0,h.MZ)({clonable:"reference"})],_.prototype,"origin",void 0),(0,i.Cg)([(0,h.MZ)({type:n.A,value:null})],_.prototype,"popupTemplate",null),(0,i.Cg)([(0,h.MZ)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,h.MZ)({value:null,types:b.Es})],_.prototype,"symbol",null),(0,i.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],_.prototype,"_version",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,value:!0})],_.prototype,"visible",null),_=s=(0,i.Cg)([(0,y.$)("esri.Graphic")],_)},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>y,Tj:()=>p,UT:()=>d,jJ:()=>u});var s=r(31635),i=r(69622),n=r(97768),o=r(74887),a=r(10107),l=r(40608);function u(e,t,r){return(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))}async function p(e,t,r){return(await(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return h(e)}}async function f(e){try{return c(await e)}catch(e){return(0,o.QP)(e),h(e)}}function d(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g)},77548:(e,t,r)=>{r.d(t,{Gh:()=>d,tk:()=>c,BR:()=>p,wI:()=>u,G$:()=>y,$x:()=>h,Ov:()=>a,W_:()=>l,OP:()=>f,TU:()=>o,XX:()=>n});var s=r(70333),i=r(78888);r(7762),r(84952),r(36563),r(36708),new WeakMap;const n={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function o(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function a(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}async function u(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const n=e.toLowerCase().indexOf("/rest/services");if(-1===n)return null;const o=`${e.slice(0,n)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,i.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function c(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function h(e,t){return null}function y(e){return null}function f(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function d(e,t){if(!t||!f(e))return;const r=(e.url,null);r&&(e.url=r)}},91880:(e,t,r)=>{r.d(t,{A:()=>p});var s,i=r(31635),n=r(66552),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));const u=new n.J({asc:"ascending",desc:"descending"});let p=class extends o.A{static{s=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new s({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],p.prototype,"order",void 0),p=s=(0,i.Cg)([(0,l.$)("esri.layers.support.OrderByInfo")],p)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6719,8407],{10407:(e,t,r)=>{r.d(t,{It:()=>y,LG:()=>o,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>h,sQ:()=>c});var s=r(98988),i=r(16930),n=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const r=i.A.WGS84;return await(0,s.initializeProjection)(t,r),(0,s.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:s}=e,i=t.user?.privileges;let n=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}},17311:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(31635),i=r(69622),n=r(4576),o=r(60999),a=r(7762),l=r(10107),u=(r(44208),r(53966),r(40608)),p=r(30524),c=r(43668);let h=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,c.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??r.e(9926).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),s=this.fieldsIndex.get(r.at(-1)??"");s&&e.add(s.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const s=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(s)??""}async getTitles(e,t,r){const s=new Map,i=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:n}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:a}=this,l=a&&o;t.forEach(t=>{const r=t.getObjectId()??t.attributes[e.objectIdField],u=l?n({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:a}):"";s.set(r,u)})}catch{}return s}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(n.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,p.Kl)(e,this.requiredFields))){const s=e.createQuery();s.where="1=1",s.outFields=[...this.requiredFields],s.objectIds=r;const i=await e.queryFeatures(s);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),s=e?.name??r.fieldName;r.fieldName=s,t.set(s.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const s=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const n={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:s,attributes:n,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter(e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/")))}};(0,s.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"_featureUtils",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"displayField",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"fieldInfoMap",null),(0,s.Cg)([(0,l.MZ)()],h.prototype,"fields",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"objectIdField",void 0),(0,s.Cg)([(0,l.MZ)()],h.prototype,"requiredFields",null),h=(0,s.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],h)},22671:(e,t,r)=>{r.d(t,{A:()=>b});var s,i=r(31635),n=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(10107),p=(r(44208),r(53966),r(36005)),c=r(40608),h=r(43937),y=r(16930),f=r(65864),d=r(50498),g=r(20437);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=s=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,s){if(e)return void m.write(e,t,r,s);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,f.rS)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=y.A.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,i]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-s)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,i],scale:[n,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*n+s,e=>i-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const s=y.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],o=r.fromJSON(n),a=n.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=s);const l=n.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=s)}i.push(o)}return i}_quantizePoints(e,t,r){let s,i;const n=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===s&&o===i||(n.push([e-s,o-i]),s=e,i=o)}else s=t(a[0]),i=r(a[1]),n.push([s,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=s.length;e<n;e++){const n=s[e],o=this._quantizePoints(n,t,r);o&&i.push(o)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=i(r[3])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,a;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}if(s&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2]),t[3]=i(t[3])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,i.Cg)([(0,p.w)("features")],b.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,i.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,p.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:y.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=s=(0,i.Cg)([(0,c.$)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>p,ne:()=>u});var s=r(31635),i=r(93637),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),a=r(91880);function l(e,t,r){if(!e)return null;const s=e.find(e=>!!e.field);if(!s)return null;const i=new a.A;return i.read(s,r),[i]}const u={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,s){const n=e.find(e=>!!e.field);n&&(0,i.sM)(r,[n.toJSON()],t)}}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,s.Cg)([(0,n.MZ)(u)],r.prototype,"orderBy",void 0),r=(0,s.Cg)([(0,o.$)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(31635),i=r(69540),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(43937),p=r(80451),c=r(29005);let h=class extends(i.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"id",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"domains",void 0),(0,s.Cg)([(0,a.w)("domains")],h.prototype,"readDomains",null),(0,s.Cg)([(0,u.K)("domains")],h.prototype,"writeDomains",null),(0,s.Cg)([(0,o.MZ)({type:[c.A],json:{write:!0}})],h.prototype,"templates",void 0),h=(0,s.Cg)([(0,l.$)("esri.layers.support.FeatureType")],h)},52106:(e,t,r)=>{r.d(t,{A:()=>_});var s,i=r(31635),n=r(13874),o=r(69540),a=r(51447),l=r(25482),u=r(53966),p=r(36708),c=r(24326),h=r(10107),y=(r(44208),r(87811),r(40608)),f=r(12195),d=r(65864),g=r(50498),m=r(54339),b=r(33910);function v(e){if(null==e)return null;const t={};for(const r in e){const s=e[r];s&&(t[r]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let _=class extends(o.A.ClonableMixin(l.A)){static{s=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const r of[t,this.sourceLayer,this.layer])if(r&&"object"==typeof r){if("popupTemplate"in r&&r.popupTemplate)return r.popupTemplate;if(e&&"defaultPopupTemplate"in r&&null!=r.defaultPopupTemplate)return r.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,m.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:v(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=s),"attributes"===e&&(i.attributeName=s),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const s=(0,d.rS)(e[r]);s&&(t[r]=s)}return 0!==Object.keys(t).length?t:null}}})],_.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,h.MZ)({value:null})],_.prototype,"attributes",null),(0,i.Cg)([(0,h.MZ)({value:null,types:g.yR,json:{read:d.rS}})],_.prototype,"geometry",null),(0,i.Cg)([(0,h.MZ)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,i.Cg)([(0,h.MZ)({clonable:!1})],_.prototype,"layer",void 0),(0,i.Cg)([(0,h.MZ)({clonable:"reference"})],_.prototype,"origin",void 0),(0,i.Cg)([(0,h.MZ)({type:n.A,value:null})],_.prototype,"popupTemplate",null),(0,i.Cg)([(0,h.MZ)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,h.MZ)({value:null,types:b.Es})],_.prototype,"symbol",null),(0,i.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],_.prototype,"_version",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,value:!0})],_.prototype,"visible",null),_=s=(0,i.Cg)([(0,y.$)("esri.Graphic")],_)},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>y,Tj:()=>p,UT:()=>d,jJ:()=>u});var s=r(31635),i=r(69622),n=r(97768),o=r(74887),a=r(10107),l=r(40608);function u(e,t,r){return(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))}async function p(e,t,r){return(await(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return h(e)}}async function f(e){try{return c(await e)}catch(e){return(0,o.QP)(e),h(e)}}function d(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g)},77548:(e,t,r)=>{r.d(t,{Gh:()=>d,tk:()=>c,BR:()=>p,wI:()=>u,G$:()=>y,$x:()=>h,Ov:()=>a,W_:()=>l,OP:()=>f,TU:()=>o,XX:()=>n});var s=r(70333),i=r(78888);r(7762),r(84952),r(36563),r(36708),new WeakMap;const n={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function o(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function a(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}async function u(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const n=e.toLowerCase().indexOf("/rest/services");if(-1===n)return null;const o=`${e.slice(0,n)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,i.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function c(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function h(e,t){return null}function y(e){return null}function f(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function d(e,t){if(!t||!f(e))return;const r=(e.url,null);r&&(e.url=r)}},91880:(e,t,r)=>{r.d(t,{A:()=>p});var s,i=r(31635),n=r(66552),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));const u=new n.J({asc:"ascending",desc:"descending"});let p=class extends o.A{static{s=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new s({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],p.prototype,"order",void 0),p=s=(0,i.Cg)([(0,l.$)("esri.layers.support.OrderByInfo")],p)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1072,3549,4342,5549,7694],{4197:(e,t,i)=>{i.d(t,{cj:()=>a,jh:()=>r,l5:()=>o,xm:()=>s});var n=i(34275);function r(e,t=!1){return e<=n.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function s(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function o(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}},6797:(e,t,i)=>{i.d(t,{Mj:()=>d,Ui:()=>h,w2:()=>f});var n=i(69622),r=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof r.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=l(e),r=l(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!n.includes(e)),d=n.filter(e=>!r.includes(e)),f=n.filter(i=>r.includes(i)&&u(e,i)!==u(t,i)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const n of f){const r=u(e,n),s=u(t,n);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(i&&i[n]&&"function"==typeof i[n])o=i[n]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=m?m.diff[n]=o:m={type:"partial",diff:{[n]:o}})}}return m}function d(e,t){return function(e,t){if(null==e)return!1;const i=t.split(".");let n=e;for(const e of i){if("complete"===n.type)return!0;if("partial"!==n.type)return!1;{const t=n.diff[e];if(!t)return!1;n=t}}return!0}(e,t)}function f(e,t){if(!e)return!1;if("partial"===e.type){const i=Object.keys(e.diff);return 1===i.length&&i[0]===t}return!1}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},13069:(e,t,i)=>{i.d(t,{AG:()=>a,lk:()=>r,vD:()=>o,yS:()=>s});const n="randomUUID"in crypto;function r(){if(n)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 s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17311:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(31635),r=i(69622),s=i(4576),o=i(60999),a=i(7762),l=i(10107),u=(i(44208),i(53966),i(40608)),c=i(30524),p=i(43668);let d=class extends r.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??i.e(9926).then(i.bind(i,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),n=this.fieldsIndex.get(i.at(-1)??"");n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){const n=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],i)).get(n)??""}async getTitles(e,t,i){const n=new Map,r=i?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:s}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:a}=this,l=a&&o;t.forEach(t=>{const i=t.getObjectId()??t.attributes[e.objectIdField],u=l?s({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,r).global,layer:e,text:a}):"";n.set(i,u)})}catch{}return n}async _checkAndReQueryGraphics(e,t){const i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(s.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const n=e.createQuery();n.where="1=1",n.outFields=[...this.requiredFields],n.objectIds=i;const r=await e.queryFeatures(n);if(r?.features.length===t.length)return r.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),n=e?.name??i.fieldName;i.fieldName=n,t.set(n.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],r={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{r[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const s={...t.attributes,...r};return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:s,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/")))}};(0,n.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"_arcadeTask",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"_featureUtils",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"featureUtilsPromise",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"calculatedExpressions",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"displayField",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"effectivePopupTemplate",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"expressionsUsedInTitle",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"fieldInfoMap",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"fields",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"objectIdField",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"requiredFields",null),d=(0,n.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],d)},22671:(e,t,i)=>{i.d(t,{A:()=>b});var n,r=i(31635),s=i(52106),o=i(66552),a=i(25482),l=i(4718),u=i(10107),c=(i(44208),i(53966),i(36005)),p=i(40608),d=i(43937),f=i(16930),h=i(65864),m=i(50498),y=i(20437);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=n=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,i,n){if(e)return void g.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,h.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((r-e)/i));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[s,o]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*s+n,e=>r-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const n=f.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],o=i.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=n);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],r=i?.spatialReference;null==t||r||(t.spatialReference=n)}r.push(o)}return r}_quantizePoints(e,t,i){let n,r;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=i(a[1]);e===n&&o===r||(s.push([e-n,o-r]),n=e,r=o)}else n=t(a[0]),r=i(a[1]),s.push([n,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,i);o&&r.push(o)}return r.length>0?((0,h.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,h.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(o+=r[0],a+=r[1]):(o=r[0],a=r[1]),r[0]=t(o),r[1]=i(a)}}if(n&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=i(a)}if(n&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,r.Cg)([(0,c.w)("features")],b.prototype,"readFeatures",null),(0,r.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,r.Cg)([(0,d.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,r.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,c.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,r.Cg)([(0,p.$)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},32730:(e,t,i)=>{i.d(t,{BI:()=>y,D3:()=>h,XJ:()=>m,lc:()=>f,mX:()=>b,rU:()=>g,tH:()=>T});var n=i(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",d=" + "+c;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return b(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(_);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function b(e){let t;return e?(t=(0,n.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=l.test(t)?t.replace(l,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(a,d)):t='""',t}const _=/^\s*\{([^}]+)\}\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,w=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=x.exec(e)||v.exec(e);return t?t[1]||t[3]:(t=w.exec(e),t?t[2]:null)}},32756:(e,t,i)=>{i.d(t,{Rr:()=>l,fY:()=>c,ne:()=>u});var n=i(31635),r=i(93637),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(91880);function l(e,t,i){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const r=new a.A;return r.read(n,i),[r]}const u={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,i,n){const s=e.find(e=>!!e.field);s&&(0,r.sM)(i,[s.toJSON()],t)}}}},c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,s.MZ)(u)],i.prototype,"orderBy",void 0),i=(0,n.Cg)([(0,o.$)("esri.layers.mixins.OrderedLayer")],i),i}},33143:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(31635),r=i(69540),s=i(25482),o=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),u=i(43937),c=i(80451),p=i(29005);let d=class extends(r.A.ClonableMixin(s.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,c.rS)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n.Cg)([(0,a.w)("domains")],d.prototype,"readDomains",null),(0,n.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,n.Cg)([(0,o.MZ)({type:[p.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n.Cg)([(0,l.$)("esri.layers.support.FeatureType")],d)},39516:(e,t,i)=>{let n;async function r(){return null==n&&(n=Promise.all([i.e(8368),i.e(4123)]).then(i.bind(i,44123)).then(e=>new e.WhereClauseCache(500,500))),n}async function s(e,t){const i=await r(),n=i.get(e,t);if(null==n)throw i.getError(e,t);return n}function o(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function a(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}i.d(t,{GP:()=>s,IW:()=>a,mA:()=>o})},41366:(e,t,i)=>{i.d(t,{K:()=>d,Q:()=>u});var n=i(31635),r=i(66552),s=i(53966),o=i(10107),a=(i(44208),i(87811),i(93223)),l=i(40608);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&c||null,t&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,a.e)(u,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,n.Cg)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},41560:(e,t,i)=>{i.d(t,{Ch:()=>o,mW:()=>s});var n=i(34727),r=i(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,i){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(i)),t[1]=Math.min(t[1],p(n));return t}(e);if(s&&((0,n.gg)(t,s[0])||(0,n.ZH)(i,s[1])))return"";const o=Array.from(a(e,t,i)),l=function(e,t,i){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,n.ZH)(r,t)||(0,n.gg)(s,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],r=e[t+1];if((0,n.ZH)(c(r.minScale),p(i.maxScale)))return!0}return!1}(o,t,i)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,i){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,i)&&(yield n)}}function l(e,t,i,r){return e=c(e),i=c(i),t=p(t),!(!(0,n.Sp)(i,e)&&(r??i)>e||(0,n.Hx)(t,i)||void 0!==r&&(0,n.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},46140:(e,t,i)=>{i.d(t,{R:()=>r});var n=i(49186);let r=class e{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,i=""){const[r,s]=t.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new n.A((i&&i+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new n.A((i&&i+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(r,10),l=parseInt(s,10);return new e(a,l,i)}}},50498:(e,t,i)=>{i.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var n=i(66552),r=i(5443),s=i(91075),o=i(48526),a=i(86738),l=i(39829),u=i(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},52106:(e,t,i)=>{i.d(t,{A:()=>x});var n,r=i(31635),s=i(13874),o=i(69540),a=i(51447),l=i(25482),u=i(53966),c=i(36708),p=i(24326),d=i(10107),f=(i(44208),i(87811),i(40608)),h=i(12195),m=i(65864),y=i(50498),g=i(54339),b=i(33910);function _(e){if(null==e)return null;const t={};for(const i in e){const n=e[i];n&&(t[i]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends(o.A.ClonableMixin(l.A)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const i of[t,this.sourceLayer,this.layer])if(i&&"object"==typeof i){if("popupTemplate"in i&&i.popupTemplate)return i.popupTemplate;if(e&&"defaultPopupTemplate"in i&&null!=i.defaultPopupTemplate)return i.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,g.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:_(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=n),"attributes"===e&&(r.attributeName=n),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const n=(0,m.rS)(e[i]);n&&(t[i]=n)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,d.MZ)({value:null})],x.prototype,"attributes",null),(0,r.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:m.rS}})],x.prototype,"geometry",null),(0,r.Cg)([(0,d.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,r.Cg)([(0,d.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,d.MZ)({value:null,types:b.Es})],x.prototype,"symbol",null),(0,r.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=n=(0,r.Cg)([(0,f.$)("esri.Graphic")],x)},54339:(e,t,i)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},55674:(e,t,i)=>{i.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var n=i(66131),r=i(49186),s=(i(44208),i(44729)),o=i(15032),a=i(65864),l=i(95466),u=i(43668),c=i(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const i of p)t.hasArcadeDependency(i)&&e.add(i);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,i){return m.create(e,t,i,["$feature","$view","$config"])}class m{static async create(e,t,i,n){const{arcade:s,Dictionary:o}=await(0,u.l)();let a;try{a=s.parseScript(e)}catch(t){throw new r.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(a,c);let d=null;null!=i&&(d=new o(i),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,a,p,t,f,d,o)}constructor(e,t,i,n,r,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=i,this._compiled=n,this._spatialReference=r,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const i=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:r,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=r?null!=i?n.lY.epochToArcadeDate(r,i):n.lY.unknownEpochToArcadeDate(r):void 0,currentEnd:null!=s?null!=i?n.lY.epochToArcadeDate(s,i):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:i})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,i){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=i}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const i=this._getField(e);if(i){const t=this._boundTarget.attributes[i.name];if(null==t)return null;switch(i.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const i in e)t.push({name:i,alias:i,type:"string"==typeof e[i]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,i)=>{i.d(t,{q:()=>r});var n=i(62815);function r(e,t,i){if(!i?.features||!i.hasZ)return;const r=(0,n.N)(i.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of i.features)r(e.geometry)}},70328:(e,t,i)=>{i.d(t,{BI:()=>b,Ej:()=>d,Ie:()=>y,Jt:()=>g,Ne:()=>f,RF:()=>c,aI:()=>x,fA:()=>o,gE:()=>l,hZ:()=>m,iT:()=>p,is:()=>_,qv:()=>v,vI:()=>h,vY:()=>a,v_:()=>w,vt:()=>s,w1:()=>u});var n=i(5443),r=(i(19419),i(4197));function s(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function a(e,t=s()){return function(e,t,i,n=s()){return m(n,v),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function l(e,t=(0,r.jh)(24)){const[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function f(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function h(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?m(e,v):s(v)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function _(e){return 6===e.length}function x(e,t,i){if(null==e||null==t)return e===t;if(!_(e)||!_(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];s()},73681:(e,t,i)=>{i.d(t,{n:()=>l});var n=i(49186),r=i(53966),s=i(46140),o=i(95466),a=i(55674);class l{static async from(e,t,i){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(i))d.delete(e);d.size&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,a.xR)(e.expression,null,p);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(i,h);return new l(h,c,f,m)}constructor(e,t,i,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=i,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,i,n){try{return this._reader.bind(e,i,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},91880:(e,t,i)=>{i.d(t,{A:()=>c});var n,r=i(31635),s=i(66552),o=i(25482),a=i(10107),l=(i(44208),i(53966),i(87811),i(40608));const u=new s.J({asc:"ascending",desc:"descending"});let c=class extends o.A{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,r.Cg)([(0,a.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],c.prototype,"order",void 0),c=n=(0,r.Cg)([(0,l.$)("esri.layers.support.OrderByInfo")],c)},95466:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(49186),r=i(53966),s=i(91869),o=i(3330),a=i(12195),l=i(30524),u=i(98623),c=i(56400),p=i(96285);const d=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=m(t);if(t&&n){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,a.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,l.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,l=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):a??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.timeReference?(0,c.ZS)(n.timeReference):a:null,d=new Map([[h(r?.creationDateField??""),l],[h(r?.editDateField??""),l],[h(s),p],[h(o),p]]);for(const{name:n,type:r}of e.fields)if(y.has(r))t.set(n,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,u.L5);else{const e=d.get(h(n??""))??a;t.set(n,e)}return t}}}]);
|