@arcgis/core 4.28.0-next.20230919 → 4.28.0-next.20230921
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/Color.js +1 -1
- package/WebScene.js +1 -1
- package/arcade/ArcadeDate.js +1 -1
- package/arcade/executionError.js +1 -1
- package/arcade/featureset/support/errorsupport.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/06621efb2573fad23b45.js +1 -0
- package/assets/esri/core/workers/chunks/072b4e041b8630c513a0.js +1 -0
- package/assets/esri/core/workers/chunks/101f776316a85b708927.js +1 -0
- package/assets/esri/core/workers/chunks/107546ef77a45d31c7ac.js +1 -0
- package/assets/esri/core/workers/chunks/10fd951bd296b2beeeba.js +1 -0
- package/assets/esri/core/workers/chunks/114269dda1d296893908.js +1 -0
- package/assets/esri/core/workers/chunks/126df6237fc80608344e.js +1 -0
- package/assets/esri/core/workers/chunks/134524cf6b1ebf208338.js +1 -0
- package/assets/esri/core/workers/chunks/17a36704e63ca1b34c5d.js +1 -0
- package/assets/esri/core/workers/chunks/1c83f47d446f2bca1721.js +1 -0
- package/assets/esri/core/workers/chunks/{09d395a9786607294689.js → 1c8469fbde39d85ee622.js} +1 -1
- package/assets/esri/core/workers/chunks/1cbaba30f55f00f7498b.js +1 -0
- package/assets/esri/core/workers/chunks/21a9c8aa2a9e9990df41.js +1 -0
- package/assets/esri/core/workers/chunks/{506874f562ce11f8914a.js → 243a4eed107d363dfad8.js} +1 -1
- package/assets/esri/core/workers/chunks/24629402c647ef6b5f6b.js +1 -0
- package/assets/esri/core/workers/chunks/2a1c1be9c202462cf54d.js +1 -0
- package/assets/esri/core/workers/chunks/2bb69d76a13564e8e455.js +1 -0
- package/assets/esri/core/workers/chunks/2d0d03cbea83c868edba.js +1 -0
- package/assets/esri/core/workers/chunks/2e130cb2f1038055c07b.js +1 -0
- package/assets/esri/core/workers/chunks/32ba4eba730e9232d964.js +1 -0
- package/assets/esri/core/workers/chunks/{b428fcb53ecc82b49e66.js → 332689bf60d246485993.js} +1 -1
- package/assets/esri/core/workers/chunks/3619e04cbb6691549014.js +1 -0
- package/assets/esri/core/workers/chunks/37116fb4c68cf3c3890a.js +1 -0
- package/assets/esri/core/workers/chunks/{3a7ad0d24264e2bc2e87.js → 3ca759f72d3bb29e9ea9.js} +22 -22
- package/assets/esri/core/workers/chunks/3dbfb4f370a874393822.js +1 -0
- package/assets/esri/core/workers/chunks/3f4e9b1663ec521bfe00.js +1 -0
- package/assets/esri/core/workers/chunks/406db5c90271a3a203d4.js +1 -0
- package/assets/esri/core/workers/chunks/4339ce8aaf87fabb80cc.js +1 -0
- package/assets/esri/core/workers/chunks/4369a6c1e0a82ab4db6a.js +1 -0
- package/assets/esri/core/workers/chunks/43ba2bacd0f7d19915f7.js +1 -0
- package/assets/esri/core/workers/chunks/44b8e75593b7df1843e1.js +1 -0
- package/assets/esri/core/workers/chunks/467a821d05df8ec0dc1c.js +1 -0
- package/assets/esri/core/workers/chunks/47be4c75dd6372b96fe4.js +1 -0
- package/assets/esri/core/workers/chunks/53097659f31750c03a6d.js +1 -0
- package/assets/esri/core/workers/chunks/{c1141056581af072aee9.js → 580039dd491854ca325c.js} +1 -1
- package/assets/esri/core/workers/chunks/59c00d6fba0fd1c03d01.js +1 -0
- package/assets/esri/core/workers/chunks/5a5720caa64a46daadf9.js +1 -0
- package/assets/esri/core/workers/chunks/5edb99b58549cd66b394.js +1 -0
- package/assets/esri/core/workers/chunks/6203ddf6caad3d356327.js +1 -0
- package/assets/esri/core/workers/chunks/652749dc847fcb887234.js +1 -0
- package/assets/esri/core/workers/chunks/6c495077cc79e1898927.js +1 -0
- package/assets/esri/core/workers/chunks/{e5c3beebd507e1dda35f.js → 749fc49246093d693227.js} +1 -1
- package/assets/esri/core/workers/chunks/74d3ecb1a06d9f81e2c5.js +1 -0
- package/assets/esri/core/workers/chunks/77c15b1c2729c780f75a.js +1 -0
- package/assets/esri/core/workers/chunks/7ea33aa455c5143affb1.js +1 -0
- package/assets/esri/core/workers/chunks/7ed70c96fbfe00792e7c.js +1 -0
- package/assets/esri/core/workers/chunks/8ab832468300cc4feb5a.js +1 -0
- package/assets/esri/core/workers/chunks/90771b0de3e520a1df9a.js +1 -0
- package/assets/esri/core/workers/chunks/94188fe381239d48a975.js +1 -0
- package/assets/esri/core/workers/chunks/a277c980ba8704939688.js +1 -0
- package/assets/esri/core/workers/chunks/b1746c022fe6edaeda55.js +1 -0
- package/assets/esri/core/workers/chunks/b449d6bd5851187d419f.js +1 -0
- package/assets/esri/core/workers/chunks/bbc0dcd316c5598bc9ad.js +1 -0
- package/assets/esri/core/workers/chunks/bc1dc6383e60e7e61d50.js +1 -0
- package/assets/esri/core/workers/chunks/bc6323bdc98013da6fe5.js +1 -0
- package/assets/esri/core/workers/chunks/bde89b2684b6185992ef.js +1 -0
- package/assets/esri/core/workers/chunks/c4bb67150ccd01ea6014.js +1 -0
- package/assets/esri/core/workers/chunks/{727548fffd4e270617d3.js → c6ea5aac232d1eca04dd.js} +1 -1
- package/assets/esri/core/workers/chunks/c8438c2d9ac48afe4033.js +1 -0
- package/assets/esri/core/workers/chunks/c9dfb145f0c1d93e0fbd.js +1 -0
- package/assets/esri/core/workers/chunks/cad260881653567bc8f9.js +1 -0
- package/assets/esri/core/workers/chunks/cec607d0138351a4952e.js +1 -0
- package/assets/esri/core/workers/chunks/d24afa6d8fd0061d9f00.js +1 -0
- package/assets/esri/core/workers/chunks/{f147269d85adfb4588ed.js → d9061beaa43065316062.js} +1 -1
- package/assets/esri/core/workers/chunks/dd7508d4016715371e0c.js +1 -0
- package/assets/esri/core/workers/chunks/dff1c3c38dda2bd1a9d6.js +1 -0
- package/assets/esri/core/workers/chunks/e55f7fc7eff0074ce0fc.js +1 -0
- package/assets/esri/core/workers/chunks/eb01f4cdb9b918cc61e7.js +1 -0
- package/assets/esri/core/workers/chunks/ec8258c9dc1491e97fc8.js +1 -0
- package/assets/esri/core/workers/chunks/ed1fbc1bc8d50453e2f5.js +1 -0
- package/assets/esri/core/workers/chunks/eeac53da496de4cd4182.js +1 -0
- package/assets/esri/core/workers/chunks/eef27d305023034084a4.js +1 -0
- package/assets/esri/core/workers/chunks/f38c54ada9e7012a2960.js +1 -0
- package/assets/esri/core/workers/chunks/f508ccfde6425dabe9ac.js +1 -0
- package/assets/esri/core/workers/chunks/f5e0ff5292b9fd18fc92.js +1 -0
- package/assets/esri/core/workers/chunks/f5eb8b5021620be7538e.js +1 -0
- package/assets/esri/images/portal/onlinemedialayer16.png +0 -0
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +2 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_en.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nb.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_en.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-TW.json +1 -1
- package/chunks/LaserlinePath.glsl.js +5 -1
- package/core/HandleOwner.js +1 -1
- package/core/MemCache.js +1 -1
- package/core/date.js +5 -0
- package/core/sql.js +1 -1
- package/core/string.js +1 -1
- package/interfaces.d.ts +60 -43
- package/intl/date.js +1 -1
- package/layers/GeoJSONLayer.js +1 -1
- package/layers/ImageryLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WFSLayer.js +1 -1
- package/layers/graphics/sources/GeoJSONSource.js +1 -1
- package/layers/graphics/sources/MemorySource.js +1 -1
- package/layers/graphics/sources/WFSSource.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/csv/csv.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/{views/interactive/tooltip/tooltipInfoUnion.js → layers/graphics/sources/support/QueryEngineBuildLayer.js} +1 -0
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/ogc/wfsUtils.js +1 -1
- package/layers/save/utils.js +1 -1
- package/layers/support/editableLayers.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/labelFormatUtils.js +1 -1
- package/layers/support/layersCreator.js +1 -1
- package/layers/support/rasterFunctionUtils.js +1 -1
- package/layers/support/rasterFunctions/creators/createBandIndexFunctions.js +1 -1
- package/layers/support/rasterFunctions/creators/createDataManagementFunctions.js +1 -1
- package/layers/support/rasterFunctions/creators/createLocalFunctions.js +1 -1
- package/networks/support/utils.js +1 -1
- package/package.json +1 -1
- package/portal/PortalItem.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/rest/geometryService/cut.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/versionManagement/deleteVersion.js +1 -1
- package/rest/versionManagement/gdbVersion/alterVersion.js +1 -1
- package/rest/versionManagement/gdbVersion/post.js +1 -1
- package/rest/versionManagement/gdbVersion/reconcile.js +1 -1
- package/rest/versionManagement/gdbVersion/serverVersionUtils.js +5 -0
- package/support/revision.js +1 -1
- package/time/timeZoneUtils.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/WGLMeshFactory.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
- package/views/2d/layers/features/sources/DataTileSource.js +1 -1
- package/views/2d/layers/features/sources/StreamSource.js +1 -1
- package/views/2d/layers/features/support/whereUtils.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/LocalAtmosphere.js +1 -1
- package/views/3d/externalRenderers/StageRenderer.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/layers/support/overlayImageUtils.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/StreamDataLoader.js +1 -1
- package/views/3d/support/dito.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentIntersectionData.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js +10 -12
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js +8 -21
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/Attribute.js +1 -1
- package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/support/HighlightHelper.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/layerUtils.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/keybindings.js +1 -1
- package/views/interactive/tooltip/SketchTooltipInfo.js +1 -1
- package/views/interactive/tooltip/TooltipContentWithHelpMessage.js +1 -1
- package/views/interactive/tooltip/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/TranslateTooltipInfos.js +1 -1
- package/views/interactive/tooltip/content/Fields.js +5 -0
- package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/webdoc/saveAPIKeyUtils.js +5 -0
- package/webdoc/webdocSaveUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/Feature/FeatureRelationship.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/EditableInput.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/RelationshipInput.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/Fullscreen.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Swipe.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/UtilityHelper.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/support/SketchTooltipControls.js +1 -1
- package/widgets/support/globalCss.js +1 -1
- package/assets/esri/core/workers/chunks/0274b84548cb048562e4.js +0 -1
- package/assets/esri/core/workers/chunks/034accc7cab6c88a3b31.js +0 -1
- package/assets/esri/core/workers/chunks/0839b45999fcb556e460.js +0 -1
- package/assets/esri/core/workers/chunks/09589852b129bfb5624f.js +0 -1
- package/assets/esri/core/workers/chunks/132e9e6147304ffd128d.js +0 -1
- package/assets/esri/core/workers/chunks/1790ca4193d730f5f206.js +0 -1
- package/assets/esri/core/workers/chunks/1a449168d30a688e6128.js +0 -1
- package/assets/esri/core/workers/chunks/1c94624fd001c803a814.js +0 -1
- package/assets/esri/core/workers/chunks/25ab3bec45de900be36e.js +0 -1
- package/assets/esri/core/workers/chunks/273167b2dd46e58b8739.js +0 -1
- package/assets/esri/core/workers/chunks/2c5eb8aaad696fa16744.js +0 -1
- package/assets/esri/core/workers/chunks/353bad8530710a284592.js +0 -1
- package/assets/esri/core/workers/chunks/357d452b8522185cc433.js +0 -1
- package/assets/esri/core/workers/chunks/3c2be3d204e6bf87266a.js +0 -1
- package/assets/esri/core/workers/chunks/3c2c64832fb498bbaa83.js +0 -1
- package/assets/esri/core/workers/chunks/3c4d59018ce8502c65e7.js +0 -1
- package/assets/esri/core/workers/chunks/43eff89599f36d83924b.js +0 -1
- package/assets/esri/core/workers/chunks/4632ada4af99cab70a61.js +0 -1
- package/assets/esri/core/workers/chunks/481eab7879ed5d8a1f67.js +0 -1
- package/assets/esri/core/workers/chunks/4b3a5cc435435c81e6a5.js +0 -1
- package/assets/esri/core/workers/chunks/4f34fd8c2bb769541e9c.js +0 -1
- package/assets/esri/core/workers/chunks/4f5a0bc7411c0db33662.js +0 -1
- package/assets/esri/core/workers/chunks/56a4cea67cc579bf7547.js +0 -1
- package/assets/esri/core/workers/chunks/56afd89d08c874f620a1.js +0 -1
- package/assets/esri/core/workers/chunks/5b08d578521562b166e3.js +0 -1
- package/assets/esri/core/workers/chunks/5f938d6da9fd3f3edc74.js +0 -1
- package/assets/esri/core/workers/chunks/6108d72faf48a592c8ba.js +0 -1
- package/assets/esri/core/workers/chunks/656a8be4ce1bec721366.js +0 -1
- package/assets/esri/core/workers/chunks/7531ebc60e9ae61220e0.js +0 -1
- package/assets/esri/core/workers/chunks/77923afde29ae1ff10ca.js +0 -1
- package/assets/esri/core/workers/chunks/79683324be49aab79dd8.js +0 -1
- package/assets/esri/core/workers/chunks/7cdb4416afd5922cf5f3.js +0 -1
- package/assets/esri/core/workers/chunks/7e87bc83a0a2715e3016.js +0 -1
- package/assets/esri/core/workers/chunks/7f680cf24dd97d61bcd2.js +0 -1
- package/assets/esri/core/workers/chunks/7f797fed73cf7b48a686.js +0 -1
- package/assets/esri/core/workers/chunks/861609ebd3a77b787b0f.js +0 -1
- package/assets/esri/core/workers/chunks/869c3927f1e246cd1e42.js +0 -1
- package/assets/esri/core/workers/chunks/95371c0f5464f5daae9f.js +0 -1
- package/assets/esri/core/workers/chunks/962b99fd273709c726d3.js +0 -1
- package/assets/esri/core/workers/chunks/98fbcbb2115376d7ff62.js +0 -1
- package/assets/esri/core/workers/chunks/9abcd1d11bfd92f872ab.js +0 -1
- package/assets/esri/core/workers/chunks/9b54b5bdb6367c36f6e9.js +0 -1
- package/assets/esri/core/workers/chunks/9dab9f6c07ececa7f851.js +0 -1
- package/assets/esri/core/workers/chunks/9ff6ce486898713af7e2.js +0 -1
- package/assets/esri/core/workers/chunks/a98a435d4dbea73f7517.js +0 -1
- package/assets/esri/core/workers/chunks/b05bb6e784e5453696be.js +0 -1
- package/assets/esri/core/workers/chunks/b51d0ec283f61f638a48.js +0 -1
- package/assets/esri/core/workers/chunks/b5ee6c0c07fa50410370.js +0 -1
- package/assets/esri/core/workers/chunks/b9cf8f02974aeb3ce208.js +0 -1
- package/assets/esri/core/workers/chunks/bdf13091bd0e1ab0db7e.js +0 -1
- package/assets/esri/core/workers/chunks/bef1a1218a94ab6e2b51.js +0 -1
- package/assets/esri/core/workers/chunks/c22c2b15fe5f2c97a2ae.js +0 -1
- package/assets/esri/core/workers/chunks/c880d2f0ff06b3bf731f.js +0 -1
- package/assets/esri/core/workers/chunks/c88869d2a647c22dc3e6.js +0 -1
- package/assets/esri/core/workers/chunks/cc96be71fee49f07dcd4.js +0 -1
- package/assets/esri/core/workers/chunks/e4237360eef474d1f0ac.js +0 -1
- package/assets/esri/core/workers/chunks/e54ae2a4281dd58e0707.js +0 -1
- package/assets/esri/core/workers/chunks/e977e721f6f50e3c5f13.js +0 -1
- package/assets/esri/core/workers/chunks/ed31cf6688c0f7dac1f9.js +0 -1
- package/assets/esri/core/workers/chunks/f07a0ea10428adecea1a.js +0 -1
- package/assets/esri/core/workers/chunks/f1eab5c67ed808c18f86.js +0 -1
- package/assets/esri/core/workers/chunks/f2e7142a8db164940544.js +0 -1
- package/assets/esri/core/workers/chunks/f939b4166f76975f5da0.js +0 -1
- package/assets/esri/core/workers/chunks/ff4f4107a866e4a68386.js +0 -1
- package/layers/ogc/dateUtils.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4599],{45091:(e,t,s)=>{s.d(t,{Z:()=>c});var n,r,i=s(80442),a=s(71143);(r=n||(n={}))[r.varint=0]="varint",r[r.fixed64=1]="fixed64",r[r.delimited=2]="delimited",r[r.fixed32=5]="fixed32",r[r.unknown=99]="unknown";const o=4294967296,u=new TextDecoder("utf-8"),l=(0,i.Z)("safari")||(0,i.Z)("ios")?6:(0,i.Z)("ff")?12:32;class c{constructor(e,t,s=0,r=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,s,r)}_init(e,t,s,n){this._data=e,this._dataView=t,this._pos=s,this._end=n}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,n){const r=this.getMessage(),i=e(r,t,s,n);return r.release(),i}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,s=0,n=0;if(this._end-t>=10)do{if(n=e[t++],s|=127&n,0==(128&n))break;if(n=e[t++],s|=(127&n)<<7,0==(128&n))break;if(n=e[t++],s|=(127&n)<<14,0==(128&n))break;if(n=e[t++],s|=(127&n)<<21,0==(128&n))break;if(n=e[t++],s+=268435456*(127&n),0==(128&n))break;if(n=e[t++],s+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],s+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],s+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],s+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],s+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,s+=(127&n)*r,r*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=n*r}return this._pos=t,s}_decodeSVarint(){const e=this._data;let t=this._pos,s=0,n=0;const r=1&e[t];if(this._end-t>=10)do{if(n=e[t++],s|=127&n,0==(128&n))break;if(n=e[t++],s|=(127&n)<<7,0==(128&n))break;if(n=e[t++],s|=(127&n)<<14,0==(128&n))break;if(n=e[t++],s|=(127&n)<<21,0==(128&n))break;if(n=e[t++],s+=268435456*(127&n),0==(128&n))break;if(n=e[t++],s+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],s+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],s+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],s+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],s+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let r=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,s+=(127&n)*r,r*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=n*r}return this._pos=t,r?-(s+1)/2:s/2}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>l){const n=e.subarray(t,s);return u.decode(n)}let n="",r="";for(let i=t;i<s;++i){const t=e[i];128&t?r+="%"+t.toString(16):(n+=decodeURIComponent(r)+String.fromCharCode(t),r="")}return r.length&&(n+=decodeURIComponent(r)),n}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}}c.pool=new a.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},16306:(e,t,s)=>{s.d(t,{aX:()=>S});var n=s(68773),r=s(20102),i=s(92604),a=s(38913),o=s(58901),u=s(73913),l=s(8744),c=s(40488),f=(s(66577),s(3172)),p=s(33955),d=s(11282),h=s(17452);async function g(e,t,s){const n="string"==typeof e?(0,h.mN)(e):e,r=t[0].spatialReference,i=(0,p.Ji)(t[0]),a={...s,query:{...n.query,f:"json",sr:(0,l.B9)(r),geometries:JSON.stringify((u=t,{geometryType:(0,p.Ji)(u[0]),geometries:u.map((e=>e.toJSON()))}))}},{data:o}=await(0,f.Z)(n.path+"/simplify",a);var u;return function(e,t,s){const n=(0,p.q9)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=s,t}))}(o.geometries,i,r)}const y=i.Z.getLogger("esri.geometry.support.normalizeUtils");function m(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function b(e,t,s){if(t){const t=function(e,t){if(!(e instanceof o.Z||e instanceof a.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new r.Z(e)}const s=(0,u.x3)(e),n=[];for(const e of s){const s=[];n.push(s),s.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const r=e[n][0],i=e[n][1],a=e[n+1][0],o=e[n+1][1],u=Math.sqrt((a-r)*(a-r)+(o-i)*(o-i)),l=(o-i)/u,c=(a-r)/u,f=u/t;if(f>1){for(let e=1;e<=f-1;e++){const n=e*t,a=c*n+r,o=l*n+i;s.push([a,o])}const e=(u+Math.floor(f-1)*t)/2,n=c*e+r,a=l*e+i;s.push([n,a])}s.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new a.Z({rings:n,spatialReference:e.spatialReference}):new o.Z({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,c.Sx)(t,!0)}return s&&(e=(0,u.Sy)(e,s)),e}function k(e,t,s){if(Array.isArray(e)){const n=e[0];if(n>t){const s=(0,u.XZ)(n,t);e[0]=n+s*(-2*t)}else if(n<s){const t=(0,u.XZ)(n,s);e[0]=n+t*(-2*s)}}else{const n=e.x;if(n>t){const s=(0,u.XZ)(n,t);e=e.clone().offset(s*(-2*t),0)}else if(n<s){const t=(0,u.XZ)(n,s);e=e.clone().offset(t*(-2*s),0)}}return e}function x(e,t){let s=-1;for(let n=0;n<t.cutIndexes.length;n++){const r=t.cutIndexes[n],i=t.geometries[n],a=(0,u.x3)(i);for(let e=0;e<a.length;e++){const t=a[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const n=t[e][0];s=n>s?n:s}s=Number(s.toFixed(9));const n=-360*(0,u.XZ)(s,180);for(let s=0;s<t.length;s++){const t=i.getPoint(e,s);i.setPoint(e,s,t.clone().offset(n,0))}return!0}}))}if(r===s){if(m(e))for(const t of(0,u.x3)(i))e[r]=e[r].addRing(t);else if(_(e))for(const t of(0,u.x3)(i))e[r]=e[r].addPath(t)}else s=r,e[r]=i}return e}async function S(e,t,s){if(!Array.isArray(e))return S([e],t);t&&"string"!=typeof t&&y.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??n.default.geometryServiceUrl;let i,h,m,_,w,T,q,F,R=0;const I=[],U=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,h=(0,l.C5)(i),m=i.isWebMercator,T=m?102100:4326,_=u.UZ[T].maxX,w=u.UZ[T].minX,q=u.UZ[T].plus180Line,F=u.UZ[T].minus180Line),h)if("mesh"===t.type)U.push(t);else if("point"===t.type)U.push(k(t.clone(),_,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>k(e,_,w))),U.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,h);U.push(e.rings?new a.Z(e):e)}else if(t.extent){const e=t.extent,s=(0,u.XZ)(e.xmin,w)*(2*_);let n=0===s?t.clone():(0,u.Sy)(t.clone(),s);e.offset(s,0),e.intersects(q)&&e.xmax!==_?(R=e.xmax>R?e.xmax:R,n=b(n,m),I.push(n),U.push("cut")):e.intersects(F)&&e.xmin!==w?(R=e.xmax*(2*_)>R?e.xmax*(2*_):R,n=b(n,m,360),I.push(n),U.push("cut")):U.push(n)}else U.push(t.clone());else U.push(t);else U.push(t);let Z=(0,u.XZ)(R,_),E=-90;const V=Z,O=new o.Z;for(;Z>0;){const e=360*Z-180;O.addPath([[e,E],[e,-1*E]]),E*=-1,Z--}if(I.length>0&&V>0){const t=x(I,await async function(e,t,s,n){const r=(0,d.en)(e),i=t[0].spatialReference,a={...n,responseType:"json",query:{...r.query,f:"json",sr:(0,l.B9)(i),target:JSON.stringify({geometryType:(0,p.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},o=await(0,f.Z)(r.path+"/cut",a),{cutIndexes:u,geometries:c=[]}=o.data;return{cutIndexes:u,geometries:c.map((e=>{const t=(0,p.im)(e);return t.spatialReference=i,t}))}}(r,I,O,s)),n=[],i=[];for(let s=0;s<U.length;s++){const r=U[s];if("cut"!==r)i.push(r);else{const r=t.shift(),a=e[s];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&r.rings.length>=a.rings.length?(n.push(r),i.push("simplify")):i.push(m?(0,c.$)(r):r)}}if(!n.length)return i;const a=await g(r,n,s),o=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?o.push(t):o.push(m?(0,c.$)(a.shift()):a.shift())}return o}const N=[];for(let e=0;e<U.length;e++){const t=U[e];if("cut"!==t)N.push(t);else{const e=I.shift();N.push(!0===m?(0,c.$)(e):e)}}return N}},73913:(e,t,s)=>{s.d(t,{Sy:()=>u,UZ:()=>a,XZ:()=>o,x3:()=>l});var n=s(58901),r=s(82971),i=s(33955);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.Z.WebMercator}),minus180Line:new n.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.Z({paths:[[[180,-180],[180,180]]],spatialReference:r.Z.WGS84}),minus180Line:new n.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:r.Z.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const s=l(e);for(const e of s)for(const s of e)s[0]+=t;return e}function l(e){return(0,i.oU)(e)?e.rings:e.paths}},76497:(e,t,s)=>{function n(e){const t={};for(const s in e){if("declaredClass"===s)continue;const r=e[s];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){t[s]=[];for(let e=0;e<r.length;e++)t[s][e]=n(r[e])}else"object"==typeof r?r.toJSON&&(t[s]=JSON.stringify(r)):t[s]=r}return t}s.d(t,{A:()=>n})},77863:(e,t,s)=>{s.d(t,{G$:()=>w,K9:()=>I,wn:()=>_});var n=s(20102),r=s(45091),i=s(5428),a=s(78760);const o=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function c(e){return e>=o.length?null:o[e]}function f(e){return e>=u.length?null:u[e]}function p(e){return e>=l.length?null:l[e]}function d(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function h(e,t,s){const n=e.asUnsafe(),r=t.createPointGeometry(s);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),s=n.pos()+e;let i=0;for(;n.pos()<s;)t.addCoordinatePoint(r,n.getSInt64(),i++);break}default:n.skip()}return r}function g(e,t,s){const n=e.asUnsafe(),r=t.createGeometry(s),i=2+(s.hasZ?1:0)+(s.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),s=n.pos()+e;let i=0;for(;n.pos()<s;)t.addLength(r,n.getUInt32(),i++);break}case 3:{const e=n.getUInt32(),s=n.pos()+e;let a=0;for(t.allocateCoordinates(r);n.pos()<s;)t.addCoordinate(r,n.getSInt64(),a),a++,a===i&&(a=0);break}default:n.skip()}return r}function y(e){const t=e.asUnsafe(),s=new i.Z;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)s.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)s.coords.push(t.getSInt64());break}case 1:n=a.S[t.getEnum()];break;default:t.skip()}return{queryGeometry:s,queryGeometryType:n}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),s={type:c(0)};for(;t.next();)switch(t.tag()){case 1:s.name=t.getString();break;case 2:s.type=c(t.getEnum());break;case 3:s.alias=t.getString();break;case 4:s.sqlType=f(t.getEnum());break;case 5:default:t.skip();break;case 6:s.defaultValue=t.getString()}return s}function b(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.name=s.getString();break;case 2:t.isSystemMaintained=s.getBool();break;default:s.skip()}return t}function k(e,t,s,n){const r=t.createFeature(s);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[i++].name;r.attributes[t]=e.processMessage(m);break}case 2:r.geometry=e.processMessageWithArgs(g,t,s);break;case 4:r.centroid=e.processMessageWithArgs(h,t,s);break;default:e.skip()}return r}function x(e){const t=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function S(e){const t=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function w(e){const t={originPosition:p(0)},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.originPosition=p(s.getEnum());break;case 2:t.scale=s.processMessage(x);break;case 3:t.translate=s.processMessage(S);break;default:s.skip()}return t}function T(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.shapeAreaFieldName=s.getString();break;case 2:t.shapeLengthFieldName=s.getString();break;case 3:t.units=s.getString();break;default:s.skip()}return t}function q(e,t){const s=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:s.wkid=e.getUInt32();break;case 5:s.wkt=e.getString();break;case 2:s.latestWkid=e.getUInt32();break;case 3:s.vcsWkid=e.getUInt32();break;case 4:s.latestVcsWkid=e.getUInt32();break;default:e.skip()}return s}function F(e,t){const s=t.createFeatureResult(),n=e.asUnsafe();s.geometryType=d(t,0);let r=!1;for(;n.next();)switch(n.tag()){case 1:s.objectIdFieldName=n.getString();break;case 3:s.globalIdFieldName=n.getString();break;case 4:s.geohashFieldName=n.getString();break;case 5:s.geometryProperties=n.processMessage(T);break;case 7:s.geometryType=d(t,n.getEnum());break;case 8:s.spatialReference=n.processMessageWithArgs(q,t);break;case 10:s.hasZ=n.getBool();break;case 11:s.hasM=n.getBool();break;case 12:s.transform=n.processMessage(w);break;case 9:s.exceededTransferLimit=n.getBool();break;case 13:t.addField(s,n.processMessage(_));break;case 15:r||(t.prepareFeatures(s),r=!0),t.addFeature(s,n.processMessageWithArgs(k,t,s,s.fields));break;case 2:s.uniqueIdField=n.processMessage(b);break;default:n.skip()}return t.finishFeatureResult(s),s}function R(e,t){const s={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(y);break;case 1:s.featureResult=e.processMessageWithArgs(F,t);break;default:e.skip()}return null!=n&&s.featureResult&&t.addQueryGeometry(s,n),s}function I(e,t){try{const s=2,n=new r.Z(new Uint8Array(e),new DataView(e)),i={};for(;n.next();)n.tag()===s?i.queryResult=n.processMessageWithArgs(R,t):n.skip();return i}catch(e){throw new n.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,s)=>{s.d(t,{J:()=>l,S:()=>u});var n=s(67900),r=s(8744),i=s(70272),a=s(44876),o=s(5428);const u=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class l{constructor(e){this._options=e,this.geometryTypes=u,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,r.fS)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n._R)(this._options.sourceSpatialReference)/(0,n._R)(e.spatialReference);if(1!==t)for(const s of e.features){if(!(0,i.S6)(s))continue;const e=s.geometry.coords;for(let s=2;s<e.length;s+=3)e[s]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.u_}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,s)=>{s.d(t,{C:()=>r});var n=s(77863);function r(e,t){const s=(0,n.K9)(e,t),r=s.queryResult.featureResult,i=s.queryResult.queryGeometry,a=s.queryResult.queryGeometryType;if(r&&r.features&&r.features.length&&r.objectIdFieldName){const e=r.objectIdFieldName;for(const t of r.features)t.attributes&&(t.objectId=t.attributes[e])}return r&&(r.queryGeometry=i,r.queryGeometryType=a),r}},34599:(e,t,s)=>{s.d(t,{Ev:()=>y,JT:()=>d,Vr:()=>_,hH:()=>m,n7:()=>g,qp:()=>h});var n=s(3172),r=s(17452),i=s(33955),a=s(16306),o=s(8744),u=s(76497),l=s(45178),c=s(28694);const f="Layer does not support extent calculation.";function p(e,t){const s=e.geometry,n=e.toJSON();delete n.compactGeometryEnabled,delete n.defaultSpatialReferenceEnabled;const r=n;let a,u,l;if(null!=s&&(u=s.spatialReference,l=(0,o.B9)(u),r.geometryType=(0,i.Ji)(s),r.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const s=e.toJSON();return delete s.spatialReference,JSON.stringify(s)}(s,e.compactGeometryEnabled),r.inSR=l),n.groupByFieldsForStatistics&&(r.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds&&(r.objectIds=n.objectIds.join(",")),n.orderByFields&&(r.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete r.outFields:n.outFields.includes("*")?r.outFields="*":r.outFields=n.outFields.join(","),n.outSR?(r.outSR=(0,o.B9)(n.outSR),a=e.outSpatialReference):s&&(n.returnGeometry||n.returnCentroid)&&(r.outSR=r.inSR,a=u),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(r.outStatistics=JSON.stringify(n.outStatistics)),n.fullText&&(r.fullText=JSON.stringify(n.fullText)),n.pixelSize&&(r.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters&&null!=e.quantizationParameters.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,r.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(r.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(r.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(r.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:s}=e;null==t&&null==s||(r.time=t===s?t:`${t??"null"},${s??"null"}`),delete n.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=a&&u.equals(a)&&(r.defaultSR=r.inSR,delete r.inSR,delete r.outSR),r}async function d(e,t,s,n){const r=null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await b(e,t,"json",n);return(0,c.p)(t,s,r.data),r}async function h(e,t,s,n){if(null!=t.timeExtent&&t.timeExtent.isEmpty)return{data:s.createFeatureResult()};const r=await g(e,t,n),i=r;return i.data=(0,l.C)(r.data,s),i}function g(e,t,s){return b(e,t,"pbf",s)}function y(e,t,s){return null!=t.timeExtent&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):b(e,t,"json",s,{returnIdsOnly:!0})}function m(e,t,s){return null!=t.timeExtent&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):b(e,t,"json",s,{returnIdsOnly:!0,returnCountOnly:!0})}async function _(e,t,s){if(null!=t.timeExtent&&t.timeExtent.isEmpty)return{data:{count:0,extent:null}};const n=await b(e,t,"json",s,{returnExtentOnly:!0,returnCountOnly:!0}),r=n.data;if(r.hasOwnProperty("extent"))return n;if(r.features)throw new Error(f);if(r.hasOwnProperty("count"))throw new Error(f);return n}async function b(e,t,s,i={},o={}){const l="string"==typeof e?(0,r.mN)(e):e,c=t.geometry?[t.geometry]:[],f=await(0,a.aX)(c,null,{signal:i.signal}),d=f&&f[0];null!=d&&((t=t.clone()).geometry=d);const h=(0,u.A)({...l.query,f:s,...o,...p(t,o)});return(0,n.Z)((0,r.v_)(l.path,(g=o,null==t.formatOf3DObjects||g.returnCountOnly||g.returnExtentOnly||g.returnIdsOnly?"query":"query3d")),{...i,responseType:"pbf"===s?"array-buffer":"json",query:{...h,...i.query}});var g}},11282:(e,t,s)=>{s.d(t,{cv:()=>o,en:()=>a,lA:()=>i}),s(68773),s(40330);var n=s(22974),r=s(17452);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function a(e){return"string"==typeof e?(0,r.mN)(e):(0,n.d9)(e)}function o(e,t,s){const n={};for(const r in e){if("declaredClass"===r)continue;const i=e[r];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){n[r]=[];for(let e=0;e<i.length;e++)n[r][e]=o(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(s&&s[r]);n[r]=t?e:JSON.stringify(e)}else n[r]=t?i:JSON.stringify(i);else n[r]=i}return n}s(71058)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3694,661,5234],{95463:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>V});var r=e(40330),a=e(28228),i=e(33586),o=e(27535),s=e(77286),u=e(61363),l=e(26520),c=e(71201),f=e(67900),d=e(6570),h=e(9361),m=e(8667),y=e(65091),g=e(94139),w=e(38913),p=e(58901),Z=e(33955),H=e(48522),v=e(3172);async function F(n,t,e){const a=r.id?.findCredential(n.restUrl);if(!a)return null;if("loaded"===n.loadStatus&&""===t&&n.user&&n.user.sourceJSON&&!1===e)return n.user.sourceJSON;const i={responseType:"json",query:{f:"json"}};if(e&&(i.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,v.Z)(n.restUrl+"/community/self",i);if(t.data){const n=t.data;if(n&&n.username)return n}return null}const o=await(0,v.Z)(n.restUrl+"/community/users/"+t,i);if(o.data){const n=o.data;return n.error?null:n}return null}function A(n){return 0===r.i8.indexOf("4.")?w.Z.fromExtent(n):new w.Z({spatialReference:n.spatialReference,rings:[[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]})}function I(n,t,e){if((0,u.E)(n,2,2,t,e),n[0]instanceof h.Z&&n[1]instanceof h.Z);else if(n[0]instanceof h.Z&&null===n[1]);else if(n[1]instanceof h.Z&&null===n[0]);else if(null!==n[0]||null!==n[1])throw new o.aV(t,o.rH.InvalidParameter,e)}async function L(n,t){if("polygon"!==n.type&&"polyline"!==n.type&&"extent"!==n.type)return 0;let e=1;(n.spatialReference.vcsWkid||n.spatialReference.latestVcsWkid)&&(e=(0,c._R)(n.spatialReference)/(0,f.c9)(n.spatialReference));let r=0;if("polyline"===n.type)for(const t of n.paths)for(let n=1;n<t.length;n++)r+=(0,c.AW)(t[n],t[n-1],e);else if("polygon"===n.type)for(const t of n.rings){for(let n=1;n<t.length;n++)r+=(0,c.AW)(t[n],t[n-1],e);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,c.AW)(t[0],t[t.length-1],e))}else"extent"===n.type&&(r+=2*(0,c.AW)([n.xmin,n.ymin,0],[n.xmax,n.ymin,0],e),r+=2*(0,c.AW)([n.xmin,n.ymin,0],[n.xmin,n.ymax,0],e),r*=2,r+=4*Math.abs((0,u.H)(n.zmax,0)*e-(0,u.H)(n.zmin,0)*e));const a=new p.Z({hasZ:!1,hasM:!1,spatialReference:n.spatialReference,paths:[[0,0],[0,r]]});return(0,m.sz)(a,t)}function V(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null===a[0]||null===a[1]||(0,m.ED)(a[0],a[1]))))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.kK)(a[0],a[1]))))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.W4)(a[0],a[1]))))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.jU)(a[0],a[1]))))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.uh)(a[0],a[1]))))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.r3)(a[0],a[1]))))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.Nm)(a[0],a[1]))))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>((0,u.E)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof h.Z&&a[1]instanceof h.Z?(0,m.fS)(a[0],a[1]):((0,u.k)(a[0])&&(0,u.k)(a[1])||!!((0,u.n)(a[0])&&(0,u.n)(a[1])||(0,u.m)(a[0])&&(0,u.m)(a[1])))&&a[0].equals(a[1])))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,3,3,t,e),a[0]instanceof h.Z&&a[1]instanceof h.Z)return(0,m.LV)(a[0],a[1],(0,u.j)(a[2]));if(a[0]instanceof h.Z&&null===a[1])return!1;if(a[1]instanceof h.Z&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new o.aV(t,o.rH.InvalidParameter,e)}))},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null===a[0]||null===a[1]?null:(0,m.wf)(a[0],a[1]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{const i=[];if(0===(a=(0,u.F)(a)).length)throw new o.aV(t,o.rH.WrongNumberOfParameters,e);if(1===a.length)if((0,u.o)(a[0])){const n=(0,u.F)(a[0]);for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);i.push(n[r])}}else{if(!(0,u.q)(a[0])){if(a[0]instanceof h.Z)return(0,u.A)((0,s.r1)(a[0]),t.spatialReference);if(null===a[0])return null;throw new o.aV(t,o.rH.InvalidParameter,e)}{const n=(0,u.F)(a[0].toArray());for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);i.push(n[r])}}}else for(let n=0;n<a.length;n++)if(null!==a[n]){if(!(a[n]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);i.push(a[n])}return 0===i.length?null:(0,m.G0)(i)}))},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null!==a[0]&&null===a[1]?(0,s.r1)(a[0]):null===a[0]?null:(0,m.e5)(a[0],a[1]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(I(a=(0,u.F)(a),t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,s.r1)(a[1]):null===a[1]?(0,s.r1)(a[0]):(0,m.Sp)(a[0],a[1]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,2,t,e),!(a[1]instanceof d.Z)&&null!==a[1])throw new o.aV(t,o.rH.InvalidParameter,e);if(null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return null===a[1]?null:(0,m.oq)(a[0],a[1])}))},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,2,t,e),!(a[1]instanceof p.Z)&&null!==a[1])throw new o.aV(t,o.rH.InvalidParameter,e);if(null===a[0])return[];if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return null===a[1]?[(0,s.r1)(a[0])]:(0,m.z7)(a[0],a[1])}))},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.E)(a,1,2,t,e),null===(a=(0,u.F)(a))[0])return 0;if((0,u.u)(a[0])){const n=await a[0].sumArea((0,s.EI)((0,u.H)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new o.aV(t,o.rH.Cancelled,e);return n}if((0,u.o)(a[0])||(0,u.q)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:(0,m.CJ)(n,(0,s.EI)((0,u.H)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.CJ)(a[0],(0,s.EI)((0,u.H)(a[1],-1)))}))},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.E)(a,1,2,t,e),null===(a=(0,u.F)(a))[0])return 0;if((0,u.u)(a[0])){const n=await a[0].sumArea((0,s.EI)((0,u.H)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new o.aV(t,o.rH.Cancelled,e);return n}if((0,u.o)(a[0])||(0,u.q)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:(0,m.Y4)(n,(0,s.EI)((0,u.H)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.Y4)(a[0],(0,s.EI)((0,u.H)(a[1],-1)))}))},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.E)(a,1,2,t,e),null===(a=(0,u.F)(a))[0])return 0;if((0,u.u)(a[0])){const n=await a[0].sumLength((0,s.Lz)((0,u.H)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new o.aV(t,o.rH.Cancelled,e);return n}if((0,u.o)(a[0])||(0,u.q)(a[0])){const n=(0,u.J)(a[0],t.spatialReference);return null===n?0:(0,m.sz)(n,(0,s.Lz)((0,u.H)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.sz)(a[0],(0,s.Lz)((0,u.H)(a[1],-1)))}))},n.functions.length3d=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if((0,u.E)(a,1,2,t,e),null===(a=(0,u.F)(a))[0])return 0;if((0,u.o)(a[0])||(0,u.q)(a[0])){const n=(0,u.J)(a[0],t.spatialReference);return null===n?0:!0===n.hasZ?L(n,(0,s.Lz)((0,u.H)(a[1],-1))):(0,m.sz)(n,(0,s.Lz)((0,u.H)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return!0===a[0].hasZ?L(a[0],(0,s.Lz)((0,u.H)(a[1],-1))):(0,m.sz)(a[0],(0,s.Lz)((0,u.H)(a[1],-1)))}))},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.E)(a,1,2,t,e),null===(a=(0,u.F)(a))[0])return 0;if((0,u.u)(a[0])){const n=await a[0].sumLength((0,s.Lz)((0,u.H)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new o.aV(t,o.rH.Cancelled,e);return n}if((0,u.o)(a[0])||(0,u.q)(a[0])){const n=(0,u.J)(a[0],t.spatialReference);return null===n?0:(0,m.kQ)(n,(0,s.Lz)((0,u.H)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.kQ)(a[0],(0,s.Lz)((0,u.H)(a[1],-1)))}))},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.F)(a),(0,u.E)(a,2,3,t,e);let i=a[0];((0,u.o)(a[0])||(0,u.q)(a[0]))&&(i=(0,u.K)(a[0],t.spatialReference));let l=a[1];if(((0,u.o)(a[1])||(0,u.q)(a[1]))&&(l=(0,u.K)(a[1],t.spatialReference)),!(i instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);if(!(l instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.TE)(i,l,(0,s.Lz)((0,u.H)(a[2],-1)))}))},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.F)(a),(0,u.E)(a,2,3,t,e);const i=a[0],l=a[1];if(!(i instanceof g.Z))throw new o.aV(t,o.rH.InvalidParameter,e);if(!(l instanceof g.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const c=new p.Z({paths:[],spatialReference:i.spatialReference});return c.addPath([i,l]),(0,m.kQ)(c,(0,s.Lz)((0,u.H)(a[2],-1)))}))},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const i=(0,u.g)(a[1]);if(isNaN(i))throw new o.aV(t,o.rH.InvalidParameter,e);if(i<=0)throw new o.aV(t,o.rH.InvalidParameter,e);return a[0]instanceof w.Z||a[0]instanceof p.Z?(0,m.Cz)(a[0],i,(0,s.Lz)((0,u.H)(a[2],-1))):a[0]instanceof d.Z?(0,m.Cz)(A(a[0]),i,(0,s.Lz)((0,u.H)(a[2],-1))):a[0]}))},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const i=(0,u.g)(a[1]);if(isNaN(i))throw new o.aV(t,o.rH.InvalidParameter,e);if(i<=0)throw new o.aV(t,o.rH.InvalidParameter,e);return a[0]instanceof w.Z||a[0]instanceof p.Z?(0,m.j2)(a[0],i,(0,s.Lz)((0,u.H)(a[2],-1))):a[0]instanceof d.Z?(0,m.j2)(A(a[0]),i,(0,s.Lz)((0,u.H)(a[2],-1))):a[0]}))},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const i=(0,u.g)(a[1]);if(isNaN(i))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.D$)(a[0],i,(0,u.h)((0,u.H)(a[2],!0)),(0,s.Lz)((0,u.H)(a[3],-1)))}))},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const i=(0,u.g)(a[1]);if(isNaN(i))throw new o.aV(t,o.rH.InvalidParameter,e);return 0===i?(0,s.r1)(a[0]):(0,m.f3)(a[0],i,(0,s.Lz)((0,u.H)(a[2],-1)))}))},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const i=(0,u.g)(a[1]);if(isNaN(i))throw new o.aV(t,o.rH.InvalidParameter,e);return 0===i?(0,s.r1)(a[0]):(0,m.rd)(a[0],i,(0,s.Lz)((0,u.H)(a[2],-1)))}))},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,6,t,e),null===a[0])return null;if(!(a[0]instanceof w.Z||a[0]instanceof p.Z))throw new o.aV(t,o.rH.InvalidParameter,e);const i=(0,u.g)(a[1]);if(isNaN(i))throw new o.aV(t,o.rH.InvalidParameter,e);const l=(0,u.g)((0,u.H)(a[4],10));if(isNaN(l))throw new o.aV(t,o.rH.InvalidParameter,e);const c=(0,u.g)((0,u.H)(a[5],0));if(isNaN(c))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.cv)(a[0],i,(0,s.Lz)((0,u.H)(a[2],-1)),(0,u.j)((0,u.H)(a[3],"round")).toLowerCase(),l,c)}))},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.F)(a),(0,u.E)(a,2,3,t,e);let i=a[0];if(null===i)return null;if(!(i instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);i instanceof d.Z&&(i=w.Z.fromExtent(i));const s=(0,u.g)(a[1]);if(isNaN(s))throw new o.aV(t,o.rH.InvalidParameter,e);const l=(0,u.H)(a[2],null);if(null===l)return(0,m.U1)(i,s);if(l instanceof g.Z)return(0,m.U1)(i,s,l);throw new o.aV(t,o.rH.InvalidParameter,e)}))},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,1,1,t,e),null===a[0])return null;let i=a[0];if(((0,u.o)(a[0])||(0,u.q)(a[0]))&&(i=(0,u.K)(a[0],t.spatialReference)),null===i)return null;if(!(i instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return i instanceof g.Z?(0,u.A)((0,s.r1)(a[0]),t.spatialReference):i instanceof w.Z?i.centroid:i instanceof p.Z?(0,c.s9)(i):i instanceof y.Z?(0,c.Ay)(i):i instanceof d.Z?i.center:null}))},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,u.F)(a),(0,u.E)(a,1,1,t,e);const i=[];if(null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);if(a[0]instanceof g.Z)return[(0,u.A)((0,s.r1)(a[0]),t.spatialReference)];if(a[0]instanceof d.Z)return[(0,u.A)((0,s.r1)(a[0]),t.spatialReference)];const l=await(0,m.og)(a[0]);if(l instanceof w.Z){const n=[],t=[];for(let e=0;e<l.rings.length;e++)if(l.isClockwise(l.rings[e])){const t=(0,Z.im)({rings:[l.rings[e]],hasZ:!0===l.hasZ,hazM:!0===l.hasM,spatialReference:l.spatialReference.toJSON()});n.push(t)}else t.push({ring:l.rings[e],pt:l.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(l instanceof p.Z){const n=[];for(let t=0;t<l.paths.length;t++){const e=(0,Z.im)({paths:[l.paths[t]],hasZ:!0===l.hasZ,hazM:!0===l.hasM,spatialReference:l.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.Z){const n=(0,u.A)((0,s.r1)(a[0]),t.spatialReference);for(let t=0;t<n.points.length;t++)i.push(n.getPoint(t));return i}return null}))},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.Gg)(a[0])}))},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.og)(a[0])}))},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new o.aV(t,o.rH.InvalidParameter,e);return(0,m.JI)(a[0])}))},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,s)=>{(0,u.E)(s,0,2,t,e);let c=(0,u.H)(s[1],""),f=!0===c;if(c=!0===c||!1===c?"":(0,u.j)(c),0===s.length||s[0]instanceof a.Z){let n=null;n=t.services&&t.services.portal?t.services.portal:H.Z.getDefault(),s.length>0&&(n=(0,l._)(s[0],n));const e=await F(n,c,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return i.Z.convertObjectToArcadeDictionary(n,(0,u.L)(t))}return null}let d=null;if((0,u.u)(s[0])&&(d=s[0]),d){if(f=!1,c)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!c){const n=await d.getIdentityUser();return n?i.Z.convertObjectToArcadeDictionary({username:n},(0,u.L)(t)):null}return null}let e=null;e=t.services&&t.services.portal?t.services.portal:H.Z.getDefault(),e=(0,l._)(new a.Z(n),e);const r=await F(e,c,f);if(r){const n=JSON.parse(JSON.stringify(r));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return i.Z.convertObjectToArcadeDictionary(n,(0,u.L)(t))}return null}throw new o.aV(t,o.rH.InvalidParameter,e)}))}),n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,2,t,e),!(a[0]instanceof h.Z||null===a[0]))throw new o.aV(t,o.rH.InvalidParameter,e);if(!(a[1]instanceof g.Z||null===a[1]))throw new o.aV(t,o.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const s=await(0,m.FH)(a[0],a[1]);return null===s?null:i.Z.convertObjectToArcadeDictionary({coordinate:s.coordinate,distance:s.distance},(0,u.L)(t),!1,!0)}))},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,u.F)(a),(0,u.E)(a,2,2,t,e),!(a[0]instanceof h.Z||null===a[0]))throw new o.aV(t,o.rH.InvalidParameter,e);if(!(a[1]instanceof g.Z||null===a[1]))throw new o.aV(t,o.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const s=await(0,m._L)(a[0],a[1]);return null===s?null:i.Z.convertObjectToArcadeDictionary({coordinate:s.coordinate,distance:s.distance},(0,u.L)(t),!1,!0)}))}}},26520:(n,t,e)=>{e.d(t,{_:()=>a});var r=e(48522);function a(n,t){return null===n?t:new r.Z({url:n.field("url")})}},10661:(n,t,e)=>{e.d(t,{s:()=>a});var r=e(42100);class a extends r.s{notify(){const n=this._observers;if(n&&n.length>0){const t=n.slice();for(const n of t)n.onInvalidated(),n.onCommitted()}}}},8667:(n,t,e)=>{e.d(t,{CJ:()=>O,Cz:()=>k,D$:()=>T,ED:()=>H,FH:()=>N,G0:()=>S,Gg:()=>A,JI:()=>L,LV:()=>F,Nm:()=>v,Sp:()=>P,TE:()=>y,U1:()=>b,W4:()=>p,Y4:()=>C,_L:()=>R,cv:()=>z,e5:()=>V,f3:()=>D,fS:()=>g,j2:()=>_,jU:()=>m,kK:()=>w,kQ:()=>J,og:()=>I,oq:()=>f,r3:()=>h,rd:()=>x,sz:()=>M,uh:()=>Z,wf:()=>E,z7:()=>d}),e(66577);var r=e(56569),a=e(94139),i=e(33955);function o(n){return Array.isArray(n)?n[0]?.spatialReference:n?.spatialReference}function s(n){return n?Array.isArray(n)?n.map(s):n.toJSON?n.toJSON():n:n}function u(n){return Array.isArray(n)?n.map((n=>(0,i.im)(n))):(0,i.im)(n)}let l;async function c(n,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:n,parameters:s(t)})}async function f(n,t){return u(await c("clip",[o(n),n,t]))}async function d(n,t){return u(await c("cut",[o(n),n,t]))}function h(n,t){return c("contains",[o(n),n,t])}function m(n,t){return c("crosses",[o(n),n,t])}function y(n,t,e){return c("distance",[o(n),n,t,e])}function g(n,t){return c("equals",[o(n),n,t])}function w(n,t){return c("intersects",[o(n),n,t])}function p(n,t){return c("touches",[o(n),n,t])}function Z(n,t){return c("within",[o(n),n,t])}function H(n,t){return c("disjoint",[o(n),n,t])}function v(n,t){return c("overlaps",[o(n),n,t])}function F(n,t,e){return c("relate",[o(n),n,t,e])}function A(n){return c("isSimple",[o(n),n])}async function I(n){return u(await c("simplify",[o(n),n]))}async function L(n,t=!1){return u(await c("convexHull",[o(n),n,t]))}async function V(n,t){return u(await c("difference",[o(n),n,t]))}async function P(n,t){return u(await c("symmetricDifference",[o(n),n,t]))}async function E(n,t){return u(await c("intersect",[o(n),n,t]))}async function S(n,t=null){const e=function(n,t){let e;return Array.isArray(n)?e=n:(e=[],e.push(n),null!=t&&e.push(t)),e}(n,t);return u(await c("union",[o(e),e]))}async function z(n,t,e,r,a,i){return u(await c("offset",[o(n),n,t,e,r,a,i]))}async function D(n,t,e,r=!1){const a=[o(n),n,t,e,r];return u(await c("buffer",a))}async function x(n,t,e,r,a,i){const s=[o(n),n,t,e,r,a,i];return u(await c("geodesicBuffer",s))}async function N(n,t,e=!0){const r=await c("nearestCoordinate",[o(n),n,t,e]);return{...r,coordinate:a.Z.fromJSON(r.coordinate)}}async function R(n,t){const e=await c("nearestVertex",[o(n),n,t]);return{...e,coordinate:a.Z.fromJSON(e.coordinate)}}async function b(n,t,e){if(null==n)throw new j;const r=n.spatialReference;if(null==(e=e??function(n){return"xmin"in n?n.center:"x"in n?n:n.extent?.center}(n)))throw new j;const a=n.constructor.fromJSON(await c("rotate",[r,n,t,e]));return a.spatialReference=r,a}async function T(n,t,e,r){return u(await c("generalize",[o(n),n,t,e,r]))}async function k(n,t,e){return u(await c("densify",[o(n),n,t,e]))}async function _(n,t,e,r=0){return u(await c("geodesicDensify",[o(n),n,t,e,r]))}function O(n,t){return c("planarArea",[o(n),n,t])}function M(n,t){return c("planarLength",[o(n),n,t])}function C(n,t,e){return c("geodesicArea",[o(n),n,t,e])}function J(n,t,e){return c("geodesicLength",[o(n),n,t,e])}class j extends Error{constructor(){super("Illegal Argument Exception")}}},90344:(n,t,e)=>{e.d(t,{Xr:()=>m,Ze:()=>p,f1:()=>H,p6:()=>Z});var r=e(35454),a=e(70171),i=e(15512);e(17126);const o=Intl.DateTimeFormat().resolvedOptions().timeZone,s=(i.pt,{year:"numeric",month:"numeric",day:"numeric"}),u={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},d={...f,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...f},"short-date-short-time-24":{...s,...f,hour12:!1},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...d,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...f},"short-date-le-short-time-24":{...s,...f,hour12:!1},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...d,hour12:!1},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...f},"long-month-day-year-short-time-24":{...u,...f,hour12:!1},"long-month-day-year-long-time":{...u,...d},"long-month-day-year-long-time-24":{...u,...d,hour12:!1},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...f},"day-short-month-year-short-time-24":{...l,...f,hour12:!1},"day-short-month-year-long-time":{...l,...d},"day-short-month-year-long-time-24":{...l,...d,hour12:!1},"long-date":c,"long-date-short-time":{...c,...f},"long-date-short-time-24":{...c,...f,hour12:!1},"long-date-long-time":{...c,...d},"long-date-long-time-24":{...c,...d,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":d},m=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y={ar:"ar-u-nu-latn-ca-gregory"};let g=new WeakMap;const w=h["short-date-short-time"];function p(n){return h[n]}function Z(n,t=w){return function(n){let t=g.get(n);if(!t){const e=(0,a.Kd)(),r=y[e]||e,o=H(n.timeZone??i.By),s={...n,timeZone:o};t=new Intl.DateTimeFormat(r,s),g.set(n,t)}return t}(t).format(n)}function H(n){switch(n){case i.By:return o;case i._4:return i.pt;default:return n}}(0,a.Ze)((()=>{g=new WeakMap}))},94443:(n,t,e)=>{e.d(t,{ME:()=>m,Su:()=>y,tz:()=>h});var r=e(20102),a=e(50758),i=e(95330),o=e(70171);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,u={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(n){return n in u}Object.keys(u);const c=[],f=new Map;function d(n){for(const t of f.keys())g(n.pattern,t)&&f.delete(t)}function h(n){return c.includes(n)||(d(n),c.unshift(n)),(0,a.kB)((()=>{const t=c.indexOf(n);t>-1&&(c.splice(t,1),d(n))}))}async function m(n){const t=(0,o.Kd)();f.has(n)||f.set(n,async function(n,t){const e=[];for(const r of c)if(g(r.pattern,n))try{return await r.fetchMessageBundle(n,t)}catch(n){e.push(n)}if(e.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${n}"`,{errors:e});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${n}"`)}(n,t));const e=f.get(n);return e&&await w.add(e),e}function y(n){if(!s.test(n))return null;const t=s.exec(n);if(null===t)return null;const[,e,r]=t,a=e+(r?"-"+r.toUpperCase():"");return l(a)?a:l(e)?e:null}function g(n,t){return"string"==typeof n?t.startsWith(n):n.test(t)}(0,o.Ze)((()=>{f.clear()}));const w=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(n){return this._increase(),n.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},15512:(n,t,e)=>{e.d(t,{By:()=>r,_4:()=>a,pt:()=>i});const r="system",a="unknown",i="UTC"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3975,7873],{65845:(e,t,r)=>{r.d(t,{D:()=>a});var s=r(81153);function a(e){e&&e.writtenProperties&&e.writtenProperties.forEach((({target:e,propName:t,newOrigin:r})=>{(0,s.l)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)}))}},81153:(e,t,r)=>{function s(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{l:()=>s})},54295:(e,t,r)=>{r.d(t,{V:()=>i});var s=r(43697),a=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const i=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,a.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,s._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var s=r(43697),a=r(92604),o=r(5600),i=(r(75215),r(67676),r(80442),r(52011)),n=r(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Nm)(e,a.Z.getLogger(this)))}};return(0,s._)([(0,o.Cb)()],t.prototype,"title",null),(0,s._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,i.j)("esri.layers.mixins.ArcGISService")],t),t}},20559:(e,t,r)=>{r.d(t,{xp:()=>L,Vt:()=>T});var s=r(43697),a=r(3172),o=r(20102),i=r(92604),n=r(95330),l=r(17452),p=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),c=r(52011),d=r(30556),h=r(65845),y=r(6570),m=r(79235),f=r(82971),v=r(66677),g=r(21506),w=r(61064);var S=r(48522),I=r(15235),_=r(14769),x=r(66643),b=r(41123),R=r(97873);async function O(e,t,r=null){const s=await A(e,t,r);await K(s,t,r)}async function Z(e,t,r,s,a=null){const o=await A(r,s,a);await e.update({data:t}),await K(o,s,a)}async function A(e,t,r=null){if(!t||!t.resources)return;const s=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const a=new Set(t.resources.toKeep.map((e=>e.resource.path))),i=new Set,l=[];a.forEach((t=>{s.delete(t),e.paths.push(t)}));for(const o of t.resources.toUpdate)if(s.delete(o.resource.path),a.has(o.resource.path)||i.has(o.resource.path)){const{resource:t,content:s,finish:a,error:i}=o,n=(0,R.W7)(t,(0,b.D)());e.paths.push(n.path),l.push(C({resource:n,content:s,compress:o.compress,finish:a,error:i},r))}else e.paths.push(o.resource.path),l.push(N(o,r)),i.add(o.resource.path);for(const a of t.resources.toAdd)e.paths.push(a.resource.path),s.has(a.resource.path)?s.delete(a.resource.path):l.push(C(a,r));if(0===l.length)return s;const p=await(0,n.UO)(l);if((0,n.k_)(r),p.length>0)throw new o.Z("save:resources","Failed to save one or more resources",{errors:p});return s}async function K(e,t,r=null){if(!e||!t.portalItem)return;const s=[];for(const a of e){const e=t.portalItem.resourceFromPath(a);s.push(e.portalItem.removeResource(e,r))}await(0,n.as)(s)}async function C(e,t){const r={...null!=t?t:{},compress:e.compress},s=await(0,x.q6)(e.resource.portalItem.addResource(e.resource,await(0,R.FO)(e.content),r));if(!0!==s.ok)throw e.error?.(s.error),s.error;e.finish?.(e.resource)}async function N(e,t){const r=await(0,x.q6)(e.resource.update(await(0,R.FO)(e.content),t));if(!0!==r.ok)throw e.error?.(r.error),r.error;e.finish?.(e.resource)}const j="esri.layers.mixins.SceneService",P=i.Z.getLogger(j),T=e=>{let t=class extends e{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.indexInfo=null,this._debouncedSaveOperations=(0,n.Ds)((async(e,t,r)=>{switch(e){case L.SAVE:return this._save(t);case L.SAVE_AS:return this._saveAs(r,t)}}))}readSpatialReference(e,t){return this._readSpatialReference(t)}_readSpatialReference(e){if(null!=e.spatialReference)return f.Z.fromJSON(e.spatialReference);{const t=e.store,r=t.indexCRS||t.geographicCRS,s=r&&parseInt(r.substring(r.lastIndexOf("/")+1,r.length),10);return null!=s?new f.Z(s):null}}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const s=null==e.spatialReference?{...e,spatialReference:this._readSpatialReference(t)}:e;return y.Z.fromJSON(s,r)}const s=t.store,a=this._readSpatialReference(t);return null==a||null==s||null==s.extent||!Array.isArray(s.extent)||s.extent.some((e=>e<E))?null:new y.Z({xmin:s.extent[0],ymin:s.extent[1],xmax:s.extent[2],ymax:s.extent[3],spatialReference:a})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,s=null!=r.version?r.version.toString():"";return this.parseVersionString(s)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){const r=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return(0,v.a7)(this.url,t.name);let s=t.name;if(!s&&this.url){const e=(0,v.Qc)(this.url);null!=e&&(s=e.title)}return"item-title-and-service-name"===this.sublayerTitleMode&&r&&(s=r+" - "+s),(0,v.ld)(s)}set url(e){const t=(0,v.XG)({layer:this,url:e,nonStandardUrlAllowed:!1,logger:P});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,r,s){(0,v.wH)(this,e,"layers",t,s)}get parsedUrl(){const e=this._get("url"),t=(0,l.mN)(e);return null!=this.layerId&&(t.path=`${t.path}/layers/${this.layerId}`),t}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,w.T)(this.parsedUrl.path,this.rootNode,e,this.apiKey,P,t),null==this.fullExtent||this.fullExtent.hasZ||this._updateExtent(await this.indexInfo)}_updateExtent(e){if("page"===e?.type){const t=e.rootIndex%e.pageSize,r=e.rootPage?.nodes?.[t];if(null==r||null==r.obb||null==r.obb.center||null==r.obb.halfSize)throw new o.Z("sceneservice:invalid-node-page","Invalid node page.");if(r.obb.center[0]<E||null==this.fullExtent||this.fullExtent.hasZ)return;const s=r.obb.halfSize,a=r.obb.center[2],i=Math.sqrt(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]);this.fullExtent.zmin=a-i,this.fullExtent.zmax=a+i}else if("node"===e?.type){const t=e.rootNode?.mbs;if(!Array.isArray(t)||4!==t.length||t[0]<E)return;const r=t[2],s=t[3],{fullExtent:a}=this;a&&(a.zmin=r-s,a.zmax=r+s)}}async _fetchService(e){if(null==this.url)throw new o.Z("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,a.Z)(this.url,{query:{f:"json",token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,a.Z)(this.parsedUrl?.path??"",{query:{f:"json",token:this.apiKey},responseType:"json",signal:e});t.ssl&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const s=t.data;this.read(s,this._getServiceContext()),this.validateLayer(s)}async _fetchVoxelServiceLayer(e){const t=(await(0,a.Z)(this.parsedUrl?.path+"/layer",{query:{f:"json",token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}_updateTypeKeywords(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const s=t.getTypeKeywords();for(const t of s)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,t,r)=>r.indexOf(e)===t)),r===U.newItem&&(e.typeKeywords=e.typeKeywords.filter((e=>"Hosted Service"!==e))))}async _saveAs(e,t){const r={...F,...t};let s=I.default.from(e);if(!s)throw new o.Z("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");(0,_.w)(s),s.id&&(s=s.clone(),s.id=null);const a=s.portal||S.Z.getDefault();await this._ensureLoadBeforeSave(),s.type=q,s.portal=a;const i={origin:"portal-item",url:null,messages:[],portal:a,portalItem:s,writtenProperties:[],blockedRelativeUrls:[],resources:{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}},n={layers:[this.write({},i)]};return await Promise.all(i.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(n,i,r),s.url=this.url,s.title||(s.title=this.title),this._updateTypeKeywords(s,r,U.newItem),await a.signIn(),await(a.user?.addItem({item:s,folder:r&&r.folder,data:n})),await O(this.resourceReferences,i,null),this.portalItem=s,(0,h.D)(i),i.portalItem=s,s}async _save(e){const t={...F,...e};if(!this.portalItem)throw new o.Z("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if((0,_.w)(this.portalItem),this.portalItem.type!==q)throw new o.Z("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${q}"`);await this._ensureLoadBeforeSave();const r={origin:"portal-item",url:this.portalItem.itemUrl&&(0,l.mN)(this.portalItem.itemUrl),messages:[],portal:this.portalItem.portal||S.Z.getDefault(),portalItem:this.portalItem,writtenProperties:[],blockedRelativeUrls:[],resources:{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}},s={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(s,r,t),this.portalItem.url=this.url,this.portalItem.title||(this.portalItem.title=this.title),this._updateTypeKeywords(this.portalItem,t,U.existingItem),await Z(this.portalItem,s,this.resourceReferences,r,null),(0,h.D)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){let s=t.messages?.filter((e=>"error"===e.type)).map((e=>new o.Z(e.name,e.message,e.details)))??[];r?.validationOptions?.ignoreUnsupported&&(s=s.filter((e=>"layer:unsupported"!==e.name&&"symbol:unsupported"!==e.name&&"symbol-layer:unsupported"!==e.name&&"property:unsupported"!==e.name&&"url:unsupported"!==e.name&&"scenemodification:unsupported"!==e.name)));const a=r?.validationOptions,i=a?.enabled,n=null;if(i&&n){const t=(await n()).validate(e,r.portalItemLayerType);if(t.length>0){const e=`Layer item did not validate:\n${t.join("\n")}`;if(P.error(`_validateAgainstJSONSchema(): ${e}`),"throw"===a.failPolicy){const e=t.map((e=>new o.Z("sceneservice:schema-validation",e))).concat(s);throw new o.Z("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{combined:e})}}}if(s.length>0)throw new o.Z("sceneservice:save","Failed to save SceneService due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}};return(0,s._)([(0,p.Cb)(g.id)],t.prototype,"id",void 0),(0,s._)([(0,p.Cb)({type:f.Z})],t.prototype,"spatialReference",void 0),(0,s._)([(0,u.r)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],t.prototype,"readSpatialReference",null),(0,s._)([(0,p.Cb)({type:y.Z})],t.prototype,"fullExtent",void 0),(0,s._)([(0,u.r)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],t.prototype,"readFullExtent",null),(0,s._)([(0,p.Cb)({readOnly:!0,type:m.Z})],t.prototype,"heightModelInfo",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],t.prototype,"minScale",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],t.prototype,"maxScale",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],t.prototype,"version",void 0),(0,s._)([(0,u.r)("version",["store.version"])],t.prototype,"readVersion",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read:!1}})],t.prototype,"sublayerTitleMode",void 0),(0,s._)([(0,p.Cb)({type:String})],t.prototype,"title",void 0),(0,s._)([(0,u.r)("portal-item","title")],t.prototype,"readTitlePortalItem",null),(0,s._)([(0,u.r)("service","title",["name"])],t.prototype,"readTitleService",null),(0,s._)([(0,p.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],t.prototype,"layerId",void 0),(0,s._)([(0,p.Cb)(g.HQ)],t.prototype,"url",null),(0,s._)([(0,d.c)("url")],t.prototype,"writeUrl",null),(0,s._)([(0,p.Cb)()],t.prototype,"parsedUrl",null),(0,s._)([(0,p.Cb)({readOnly:!0})],t.prototype,"store",void 0),(0,s._)([(0,p.Cb)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],t.prototype,"rootNode",void 0),t=(0,s._)([(0,c.j)(j)],t),t},E=-1e38;var U,k;(k=U||(U={}))[k.existingItem=0]="existingItem",k[k.newItem=1]="newItem";const q="Scene Service",F={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}};var L;!function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(L||(L={}))},61064:(e,t,r)=>{r.d(t,{T:()=>o});var s=r(3172),a=r(20102);async function o(e,t,r,o,i,n){let l=null;if(null!=r){const t=`${e}/nodepages/`,a=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,s.Z)(a,{query:{f:"json",token:o},responseType:"json",signal:n})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=i&&i.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",a,e),l=e}}if(!t)return null;const p=`${e}/nodes/`,u=p+(t&&t.split("/").pop());try{return{type:"node",rootNode:(await(0,s.Z)(u,{query:{f:"json",token:o},responseType:"json",signal:n})).data,urlPrefix:p}}catch(e){throw new a.Z("sceneservice:root-node-missing","Root node missing.",{pageError:l,nodeError:e,url:u})}}},97873:(e,t,r)=>{r.d(t,{FO:()=>c,W7:()=>d,addOrUpdateResource:()=>n,fetchResources:()=>i,removeAllResources:()=>p,removeResource:()=>l});var s=r(3172),a=r(20102),o=r(17452);async function i(e,t={},r){await e.load(r);const s=(0,o.v_)(e.itemUrl,"resources"),{start:a=1,num:i=10,sortOrder:n="asc",sortField:l="created"}=t,p={query:{start:a,num:i,sortOrder:n,sortField:l,token:e.apiKey},signal:r?.signal},u=await e.portal.request(s,p);return{total:u.total,nextStart:u.nextStart,resources:u.resources.map((({created:t,size:r,resource:s})=>({created:new Date(t),size:r,resource:e.resourceFromPath(s)})))}}async function n(e,t,r,s){if(!e.hasPath())throw new a.Z(`portal-item-resource-${t}:invalid-path`,"Resource does not have a valid path");const i=e.portalItem;await i.load(s);const n=(0,o.v_)(i.userItemUrl,"add"===t?"addResources":"updateResources"),[l,p]=u(e.path),c=new FormData;return l&&"."!==l&&c.append("resourcesPrefix",l),null!=s&&s.compress&&c.append("compress","true"),c.append("fileName",p),c.append("file",r,p),c.append("f","json"),null!=s&&s.access&&c.append("access",s.access),await i.portal.request(n,{method:"post",body:c,signal:s?.signal}),e}async function l(e,t,r){if(!t.hasPath())throw new a.Z("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const s=(0,o.v_)(e.userItemUrl,"removeResources");await e.portal.request(s,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function p(e,t){await e.load(t);const r=(0,o.v_)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function u(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function c(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,s.Z)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,s]=function(e){const[t,r]=function(e){const t=(0,o.Ml)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[s,a]=u(t);return[s,a,r]}(e.path);return e.portalItem.resourceFromPath((0,o.v_)(r,t+s))}},14769:(e,t,r)=>{r.d(t,{w:()=>i});var s=r(68773),a=r(20102),o=r(71058);function i(e){if(s.default.apiKey&&(0,o.r)(e.portal.url))throw new a.Z("save-api-key-utils:api-key-not-supported",`Saving is not supported on ${e.portal.url} when using an api key`)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2971],{83305:(e,r,t)=>{t.d(r,{P:()=>l,a:()=>u,g:()=>_,h:()=>p,i:()=>f,j:()=>O,l:()=>a,p:()=>N});var o=t(99880),n=t(80442);let i,s=null;function f(){return!!s}function a(){return i||(i=t.e(6774).then(t.bind(t,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.V)(`esri/geometry/support/${e}`)}))).then((e=>{R(e)})),i)}var _,u,l,c;!function(e){function r(e,r,t){s.ensureCache.prepare();const o=m(t),n=t===o,i=s.ensureFloat64(o),f=s._pe_geog_to_proj(s.getPointer(e),r,i);return f&&G(t,r,i,n),f}function t(e,r,t){return o(e,r,t,0)}function o(e,r,t,o){s.ensureCache.prepare();const n=m(t),i=t===n,f=s.ensureFloat64(n),a=s._pe_proj_to_geog_center(s.getPointer(e),r,f,o);return a&&G(t,r,f,i),a}e.geogToProj=r,e.projGeog=function(e,o,n,i){switch(i){case u.PE_TRANSFORM_P_TO_G:return t(e,o,n);case u.PE_TRANSFORM_G_TO_P:return r(e,o,n)}return 0},e.projToGeog=t,e.projToGeogCenter=o}(_||(_={})),(c=u||(u={})).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},function(e){const r={},t={},o=e=>{if(e){const r=e.getType();switch(r){case u.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case u.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case u.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:r&u.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function n(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(String(t)))n=i[t];else{const r=s.PeFactory.prototype.factoryByType(e,t);s.compare(r,s.NULL)||(n=r,i[t]=n)}return n=o(n),n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(u.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(r))n=i[r];else{const t=s.PeFactory.prototype.fromString(e,r);s.compare(t,s.NULL)||(n=t,i[r]=n)}return n=o(n),n},e.geogcs=function(e){return n(u.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(u.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(u.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(u.PE_TYPE_UNIT,e)}}(l||(l={}));let P=null;var E,S,p,d,T,g,M,O,h;function R(e){function r(e,r,t){e[r]=t(e[r])}s=e,u.init(),E.init(),T.init(),M.init(),O.init(),P=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const t=[s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of t)r(e.prototype,"getName",(e=>function(){return e.call(this,new Array(u.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])r(e.prototype,"getParameters",(e=>function(){const r=new Array(u.PE_PARM_MAX);let t=e.call(this);for(let e=0;e<r.length;e++){const o=s.getValue(t,"*");r[e]=o?s.wrapPointer(o,s.PeParameter):null,t+=Int32Array.BYTES_PER_ELEMENT}return r}));r(s.PeHorizon.prototype,"getCoord",(e=>function(){const r=this.getSize();if(!r)return null;const t=[];return G(t,r,e.call(this)),t})),r(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const r=s._pe_getPeGTlistExtendedGTsSize();return function(){let t=null;const o=e.call(this);if(!s.compare(o,s.NULL)){t=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)t.push(s.wrapPointer(n+r*o,s.PeGTlistExtendedGTs))}}return t}}));const o=s._pe_getPeHorizonSize(),n=e=>function(){let r=this._cache;if(r||(r=new Map,this._cache=r),r.has(e))return r.get(e);let t=null;const n=e.call(this);if(!s.compare(n,s.NULL)){t=[n];const e=n.getNump();if(e>1){const r=s.getPointer(n);for(let n=1;n<e;n++)t.push(s.wrapPointer(r+o*n,s.PeHorizon))}}return r.set(e,t),t};r(s.PeProjcs.prototype,"horizonGcsGenerate",n),r(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=u.PE_STR_OPTS_NONE){s.ensureCache.prepare();const r=s.getPointer(this),t=s.ensureInt8(new Array(u.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(r,e,t))}}function y(e){if(!e)return;const r=s.getClass(e);if(!r)return;const t=s.getCache(r);if(!t)return;const o=s.getPointer(e);o&&delete t[o]}function A(e,r){const t=[],o=new Array(r);for(let r=0;r<e;r++)t.push(s.ensureInt8(o));return t}function m(e){let r;return Array.isArray(e[0])?(r=[],e.forEach((e=>{r.push(e[0],e[1])}))):r=e,r}function G(e,r,t,o=!1){if(o)for(let o=0;o<2*r;o++)e[o]=s.getValue(t+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<r;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(t,"double"),e[n][1]=s.getValue(t+Float64Array.BYTES_PER_ELEMENT,"double"),t+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let r;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,r=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,t,o,n,i,f){let a=null;const _=new s.PeInteger(f);try{const u=s.PeGTlistExtended.prototype.getGTlist(e,t,o,n,i,_);if((f=_.val)&&(a=[u],f>1)){const e=s.getPointer(u);for(let t=1;t<f;t++)a.push(s.wrapPointer(e+r*t,s.PeGTlistExtendedEntry))}}finally{s.destroy(_)}return a}}(E||(E={})),function(e){e.destroy=function(e){if(e&&e.length){for(const r of e)y(r),r.getEntries().forEach((e=>{y(e);const r=e.getGeogtran();y(r),r.getParameters().forEach(y),[r.getGeogcs1(),r.getGeogcs2()].forEach((e=>{y(e);const r=e.getDatum();y(r),y(r.getSpheroid()),y(e.getPrimem()),y(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(S||(S={})),function(e){e.geogToGeog=function(e,r,t,o,n){s.ensureCache.prepare();const i=m(t),f=t===i,a=s.ensureFloat64(i);let _=0;o&&(_=s.ensureFloat64(o));const u=s._pe_geog_to_geog(s.getPointer(e),r,a,_,n);return u&&G(t,r,a,f),u}}(p||(p={})),function(e){const r=(e,r,t,o,n,i)=>{let f,a;switch(s.ensureCache.prepare(),e){case"dd":f=s._pe_geog_to_dd,a=u.PE_DD_MAX;break;case"ddm":f=s._pe_geog_to_ddm,a=u.PE_DDM_MAX;break;case"dms":f=s._pe_geog_to_dms,a=u.PE_DMS_MAX}let _=0;r&&(_=s.getPointer(r));const l=m(o),c=s.ensureFloat64(l),P=A(t,a),E=f(_,t,c,n,s.ensureInt32(P));if(E)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(P[e]);return E},t=(e,r,t,o,n)=>{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 f=0;r&&(f=s.getPointer(r));const a=o.map((e=>s.ensureString(e))),_=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),l=i(f,t,_,u);return l&&G(n,t,u),l};e.geogToDms=function(e,t,o,n,i){return r("dms",e,t,o,n,i)},e.dmsToGeog=function(e,r,o,n){return t("dms",e,r,o,n)},e.geogToDdm=function(e,t,o,n,i){return r("ddm",e,t,o,n,i)},e.ddmToGeog=function(e,r,o,n){return t("ddm",e,r,o,n)},e.geogToDd=function(e,t,o,n,i){return r("dd",e,t,o,n,i)},e.ddToGeog=function(e,r,o,n){return t("dd",e,r,o,n)}}(d||(d={})),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,r,t,o,n,i,f){s.ensureCache.prepare();let a=0;e&&(a=s.getPointer(e));const _=m(t),l=s.ensureFloat64(_),c=A(r,u.PE_MGRS_MAX),P=s.ensureInt32(c),E=s._pe_geog_to_mgrs_extended(a,r,l,o,n,i,P);if(E)for(let e=0;e<r;e++)f[e]=s.UTF8ToString(c[e]);return E},e.mgrsToGeogExtended=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=t.map((e=>s.ensureString(e))),a=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),u=s._pe_mgrs_to_geog_extended(i,r,a,o,_);return u&&G(n,r,_),u}}(T||(T={})),function(e){e.geogToUsng=function(e,r,t,o,n,i,f){s.ensureCache.prepare();let a=0;e&&(a=s.getPointer(e));const _=m(t),l=s.ensureFloat64(_),c=A(r,u.PE_MGRS_MAX),P=s.ensureInt32(c),E=s._pe_geog_to_usng(a,r,l,o,n,i,P);if(E)for(let e=0;e<r;e++)f[e]=s.UTF8ToString(c[e]);return E},e.usngToGeog=function(e,r,t,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=t.map((e=>s.ensureString(e))),f=s.ensureInt32(i),a=s.ensureFloat64(new Array(2*r)),_=s._pe_usng_to_geog(n,r,f,a);return _&&G(o,r,a),_}}(g||(g={})),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,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=m(t),a=s.ensureFloat64(f),_=A(r,u.PE_UTM_MAX),l=s.ensureInt32(_),c=s._pe_geog_to_utm(i,r,a,o,l);if(c)for(let e=0;e<r;e++)n[e]=s.UTF8ToString(_[e]);return c},e.utmToGeog=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=t.map((e=>s.ensureString(e))),a=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),u=s._pe_utm_to_geog(i,r,a,o,_);return u&&G(n,r,_),u}}(M||(M={})),function(e){const r=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(t,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return r.has(t)&&(i=r.get(t),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(t,o),i||(i=[],r.set(t,i)),i[o]=n),n}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(h||(h={}));const N=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return _},get PeDefs(){return u},get PeFactory(){return l},get PeGCSExtent(){return P},get PeGTTransformations(){return p},get PeGTlistExtended(){return E},get PeGTlistExtendedEntry(){return S},get PeNotationDms(){return d},get PeNotationMgrs(){return T},get PeNotationUsng(){return g},get PeNotationUtm(){return M},get PePCSInfo(){return O},get PeVersion(){return h},_init:R,get _pe(){return s},isLoaded:f,isSupported:function(){return!!(0,n.Z)("esri-wasm")},load:a},Symbol.toStringTag,{value:"Module"}))},30556:(e,r,t)=>{t.d(r,{c:()=>n});var o=t(5600);function n(e,r,t){let n,i;return void 0===r?(i=e,n=[void 0]):"string"!=typeof r?(i=e,n=[void 0],t=r):(i=r,n=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;for(const f of n){const n=(0,o.CJ)(e,f,i);n.write&&"object"==typeof n.write||(n.write={}),t&&(n.write.target=t),n.write.writer=s[r]}}}},35454:(e,r,t)=>{t.d(r,{X:()=>n,w:()=>i});var o=t(78286);class n{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,r,t)=>{const n=this.toJSON(e);void 0!==n&&(0,o.RB)(t,n,r)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const r={};for(const t in e)r[e[t]]=t;return r}_getKeysSorted(e){const r=[];for(const t in e)r.push(t);return r.sort(),r}}function i(){return function(e,r){return new n(e,{ignoreUnknown:!0,...r})}}},67900:(e,r,t)=>{t.d(r,{$C:()=>R,CN:()=>b,En:()=>O,Jo:()=>W,_R:()=>y,c9:()=>m,cM:()=>A,gV:()=>I,hd:()=>a,qE:()=>w,r6:()=>G,ty:()=>h}),t(80442);var o=t(35454),n=t(2109),i=t(68441),s=t(8744),f=t(58116);const a=39.37,_=i.sv.radius*Math.PI/200,u=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=f.Z,c=/UNIT\[([^\]]+)]/i,P=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),E=(0,o.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),S=e=>e*e,p=e=>e*e*e,d={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:S(.001)},"square-centimeters":{inBaseUnits:S(.01)},"square-decimeters":{inBaseUnits:S(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:S(1e3)},"square-inches":{inBaseUnits:S(.0254)},"square-feet":{inBaseUnits:S(.3048)},"square-yards":{inBaseUnits:S(.9144)},"square-miles":{inBaseUnits:S(1609.344)},"square-us-feet":{inBaseUnits:S(1200/3937)},acres:{inBaseUnits:.0015625*S(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*p(.001)},"cubic-centimeters":{inBaseUnits:1e3*p(.01)},"cubic-decimeters":{inBaseUnits:1e3*p(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*p(1e3)},"cubic-inches":{inBaseUnits:1e3*p(.0254)},"cubic-feet":{inBaseUnits:1e3*p(.3048)},"cubic-yards":{inBaseUnits:1e3*p(.9144)},"cubic-miles":{inBaseUnits:1e3*p(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},T=(()=>{const e={};for(const r in d)for(const t in d[r].units)e[t]=r;return e})();function g(e){const r=T[e];if(!r)throw new Error("unknown type");return r}function M(e,r=null){return r=r||g(e),d[r].baseUnit===e}function O(e,r,t){if(r===t)return e;const o=g(r);if(o!==g(t))throw new Error("incompatible units");const n=M(r,o)?e:function(e,r,t){return e*d[t].units[r].inBaseUnits}(e,r,o);return M(t,o)?n:function(e,r,t){return e/d[t].units[r].inBaseUnits}(n,t,o)}function h(e,r,t){return O(e,r,"meters")/(t*Math.PI/180)}function R(e){return E.fromJSON(e.toLowerCase())||null}function y(e){if(null!=e&&!(0,s.N$)(e))return 1;const r=m(e);return r>1e5?1:r}function A(e){return m(e)>=(0,n.Iu)(e).metersPerDegree?"meters":w(e)}function m(e,r=i.sv.metersPerDegree){return function(e,r=!1){const t=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(t){if((0,s.o$)(t))return i.yr.metersPerDegree;if((0,s.ME)(t))return i.Z1.metersPerDegree;n=l.values[l[t]],!n&&r&&P.has(t)&&(n=_)}else o&&(U(o)?n=N(u.exec(o),n):k(o)&&(n=N(c.exec(o),n)));return n}(e,!0)??r}function G(e){return(0,s.sT)(e)?1:m(e)}function N(e,r){return e?.[1]?C(e[1]):r}function C(e){return parseFloat(e.split(",")[1])}function w(e){const r=e?.wkid??null,t=e?.wkt2??e?.wkt??null;let o=null;if(r)o=l.units[l[r]];else if(t){const e=U(t)?u:k(t)?c:null;if(e){const r=e.exec(t);r?.[1]&&(o=function(e){const r=/[\\"']{1}([^\\"']+)/.exec(e);let t=r?.[1];if(!t||!l.units.includes(t)){const r=C(e);t=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(r-o[e])<D){t=l.units[e];break}}return t}(r[1]))}}return null!=o?R(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const D=1e-7,I=(0,o.w)()({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"}),W=(0,o.w)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),b=(0,o.w)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},82971:(e,r,t)=>{t.d(r,{Z:()=>E});var o,n=t(43697),i=t(96674),s=t(22974),f=t(67900),a=t(75215),_=t(5600),u=t(52011),l=t(30556),c=t(8744);let P=o=class extends i.wq{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const r=new o;return r.read(e),r}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){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,c.oR)(this)}get isWebMercator(){return(0,c.sS)(this)}get isGeographic(){return(0,c.sT)(this)}get isWrappable(){return(0,c.MP)(this)}get metersPerUnit(){return(0,f.c9)(this)}get unit(){return(0,f.qE)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,r){this.wkid||(r.wkt=e)}clone(){if(this===o.WGS84)return o.WGS84;if(this===o.WebMercator)return o.WebMercator;const e=new o;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,s.d9)(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:r,referenceServiceName:t}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==r||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):t?n.id===r&&n.referenceServiceName===t:n.id===r}return(0,c.fS)(this,e)}toJSON(e){return this.write(void 0,e)}};P.GCS_NAD_1927=null,P.WGS84=null,P.WebMercator=null,P.PlateCarree=null,(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWGS84",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWebMercator",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isGeographic",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWrappable",null),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"latestWkid",void 0),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"metersPerUnit",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"unit",null),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],P.prototype,"wkid",void 0),(0,n._)([(0,_.Cb)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],P.prototype,"wkt",void 0),(0,n._)([(0,l.c)("wkt"),(0,l.c)("web-scene","wkt")],P.prototype,"writeWkt",null),(0,n._)([(0,_.Cb)({type:String,json:{write:!1}})],P.prototype,"wkt2",void 0),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"vcsWkid",void 0),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"latestVcsWkid",void 0),(0,n._)([(0,_.Cb)()],P.prototype,"imageCoordinateSystem",void 0),P=o=(0,n._)([(0,u.j)("esri.geometry.SpatialReference")],P),P.prototype.toJSON.isDefaultToJSON=!0,P.GCS_NAD_1927=new P({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]]'}),P.WGS84=new P(c.Zn),P.WebMercator=new P(c.R_),P.PlateCarree=new P(c.WR),Object.freeze&&(Object.freeze(P.GCS_NAD_1927),Object.freeze(P.WGS84),Object.freeze(P.WebMercator));const E=P},2109:(e,r,t)=>{t.d(r,{Iu:()=>u,JL:()=>f,e8:()=>l,fY:()=>c,kU:()=>s,mM:()=>a,oe:()=>P,pn:()=>_});var o=t(68441),n=t(8744);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(o.sv),f=i(o.yr),a=i(o.Z1),_={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.sv.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]`};function u(e){return null!=e&&((0,n.BZ)(e)||(0,n.fS)(e,f))?o.yr:null!=e&&((0,n.V2)(e)||(0,n.fS)(e,a))?o.Z1:o.sv}function l(e){return(0,n.o$)(e)?o.yr:(0,n.ME)(e)?o.Z1:o.sv}function c(e){return(0,n.fS)(e,s)}function P(e){return c(e)||(0,n.fS)(e,f)||(0,n.fS)(e,a)}},68441:(e,r,t)=>{t.d(r,{Z1:()=>s,sv:()=>n,yr:()=>i});class o{constructor(e,r,t,o){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=t;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,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=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4),s=new o(1737400,0,0)},56726:(e,r,t)=>{var o;t.d(r,{W:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},58116:(e,r,t)=>{let o;t.d(r,{Z:()=>n});const n={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,5167:0,5168: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,9943:0,9945:0,9947:0,9967:0,9972:0,9977: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,27700: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,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,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};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5173;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=20002;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},8744:(e,r,t)=>{t.d(r,{B9:()=>E,BZ:()=>R,C5:()=>P,JY:()=>G,ME:()=>y,MP:()=>m,N$:()=>p,QM:()=>O,R_:()=>C,V2:()=>A,WR:()=>w,Zn:()=>N,fS:()=>c,o$:()=>h,oR:()=>d,sS:()=>M,sT:()=>S,xl:()=>T,yW:()=>g});var o=t(19153),n=(t(83305),t(56726)),i=t(58116);const s={102113:!0,102100:!0,3857:!0,3785:!0},f={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},a='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]]',_=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],l={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:_,origin:u,dx:1e-5},102100:{wkTemplate:a,valid:_,origin:u,dx:1e-5},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:_,origin:u,dx:1e-5},3857:{wkTemplate:a,valid:_,origin:u,dx:1e-5},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}};function c(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(null!=e.wkid||null!=r.wkid)return e.wkid===r.wkid||M(e)&&M(r)||null!=r.latestWkid&&e.wkid===r.latestWkid||null!=e.latestWkid&&r.wkid===e.latestWkid;const t=e.wkt2??e.wkt,o=r.wkt2??r.wkt;return!(!t||!o)&&t.toUpperCase()===o.toUpperCase()}function P(e){return G(e)&&e.wkid&&l[e.wkid]||null}function E(e){if(!e)return;if(e.wkid)return String(e.wkid);const r=e.wkt||e.wkt2;return JSON.stringify(r?{wkt:r}:{})}function S(e){if(!G(e))return!1;if(e.wkid)return null==i.Z[e.wkid];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function p(e){return!(R(e)||A(e))}function d(e){return G(e)&&4326===e.wkid}function T(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function g(e){return G(e)&&e.wkid===n.W.CGCS2000}function M(e){return G(e)&&null!=e.wkid&&!0===s[e.wkid]}function O(e){return G(e)&&32662===e.wkid}function h(e){return e===n.W.GCSMARS2000||e===n.W.GCSMARS2000_SPHERE}function R(e){return G(e)&&null!=e.wkid&&h(e.wkid)}function y(e){return e===n.W.GCSMOON2000}function A(e){return G(e)&&null!=e.wkid&&y(e.wkid)}function m(e){return G(e)&&null!=e.wkid&&!0===f[e.wkid]}function G(e){return null!=e&&(null!=e.wkid&&e.wkid>=2e3||null!=e.wkt2||null!=e.wkt)}const N={wkid:4326,wkt:(0,o.gx)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},C={wkid:102100,latestWkid:3857},w={wkid:32662}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6506,5732,5935,2596],{84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),n=r(2368),o=r(96674),s=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(78981);let c=class extends((0,n.J)(o.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(p.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.j)("esri.TimeInterval")],c);const d=c},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},20188:(e,t,r)=>{function i(e){return null!=s(e)||null!=o(e)}function n(e){return s(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let r=!0;if(u&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!l.test(e[i]),i++;r=!t}}return r}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function s(e){const t=a.exec(e);if(!t?.groups)return null;const r=t.groups,i=+r.year,n=+r.month-1,o=+r.day,s=+(r.hours??"0"),l=+(r.minutes??"0"),u=+(r.seconds??"0");if(s>23)return null;if(l>59)return null;if(u>59)return null;const p=r.ms??"0",c=p?+p.padEnd(3,"0").substring(0,3):0;let d;if(r.isUTC||!r.offsetSign)d=Date.UTC(i,n,o,s,l,u,c);else{const e=+r.offsetHours,t=+r.offsetMinutes;d=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,o,s,l,u,c)}return Number.isNaN(d)?null:d}r.d(t,{o:()=>i,s:()=>n});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,u=!Number.isNaN(new Date("technology 10").getTime())},12653:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var i=r(43697),n=(r(66577),r(51773)),o=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),s=r(16453),a=r(78286),l=r(17452),u=r(5600),p=r(75215),c=(r(67676),r(80442)),d=r(52011),y=r(30556),f=r(86973),m=r(87085),h=r(20102),w=r(83379),g=r(95330),b=r(56569),v=r(25278),S=r(78089),C=r(74889),F=r(15512),x=r(6570);let _=class extends w.Z{constructor(){super(...arguments),this._connection=null,this.capabilities=(0,v.MS)(!1,!1),this.type="wfs",this.refresh=(0,g.Ds)((async e=>{await this.load();const{extent:t}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return C.Z.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:x.Z.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:i,namespaceUri:n,fields:o,geometryType:s,swapXY:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference")?void 0:this.layer.spatialReference;if(!t)throw new h.Z("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,S.FU)(t,{customParameters:r,...e}));const u=["fields","geometryType","name","namespaceUri","swapXY"].some((e=>null==this.layer[e])),p=u?await(0,S.be)(this.wfsCapabilities,i,n,{spatialReference:l,customParameters:r,signal:e?.signal}):{...(0,S.eB)(o??[]),geometryType:s,name:i,namespaceUri:n,spatialReference:l,swapXY:a},c=(0,S.ft)(this.wfsCapabilities.readFeatureTypes(),p.name,p.namespaceUri),d=f.M.toJSON(p.geometryType);return{customParameters:r,featureType:c,fields:p.fields?.map((e=>e.toJSON()))??[],geometryField:p.geometryField,geometryType:d,getFeatureUrl:this.wfsCapabilities.operations.GetFeature.url,getFeatureOutputFormat:this.wfsCapabilities.operations.GetFeature.outputFormat,objectIdField:p.objectIdField,spatialReference:p.spatialReference?.toJSON(),swapXY:!!p.swapXY}}async _startWorker(e){const[t,r]=await(0,g.as)([this._createLoadOptions(e),(0,b.bA)("WFSSourceWorker",{...e,strategy:(0,c.Z)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),i=t.error||r.error||null,n=r.value||null;if(i)throw n&&n.close(),i;const o=t.value;this._connection=r.value;const s=(await this._connection.invoke("load",o,e)).extent;this.sourceJSON={dateFieldsTimeReference:{timeZoneIANA:F.pt},extent:s,fields:o.fields,geometryType:o.geometryType,objectIdField:o.objectIdField,geometryField:o.geometryField,drawingInfo:(0,v.bU)(o.geometryType),name:o.featureType.title,wfsInfo:{name:o.featureType.name,featureUrl:o.getFeatureUrl,maxFeatures:3e3,swapXY:o.swapXY,supportedSpatialReferences:o.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:o.featureType.namespaceUri}}}};(0,i._)([(0,u.Cb)()],_.prototype,"capabilities",void 0),(0,i._)([(0,u.Cb)({constructOnly:!0})],_.prototype,"layer",void 0),(0,i._)([(0,u.Cb)()],_.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)()],_.prototype,"type",void 0),(0,i._)([(0,u.Cb)()],_.prototype,"wfsCapabilities",void 0),_=(0,i._)([(0,d.j)("esri.layers.graphics.sources.WFSSource")],_);var T,j=r(71612),R=r(17017),I=r(69637),O=r(6404),P=r(38009),E=r(68825),Z=r(16859),N=r(34760),q=r(72965),M=r(28294),U=r(21506),A=r(1231),k=r(53518),G=r(35671),D=r(54306),L=r(30707),J=r(14165),V=r(32163),z=r(80216),B=r(82971);const Q=(0,k.v)();let $=T=class extends((0,E.c)((0,R.N)((0,O.M)((0,I.b)((0,j.h)((0,M.n)((0,N.Q)((0,q.M)((0,P.q)((0,Z.I)((0,s.R)(m.Z)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:i,geometryType:n,name:o,namespaceUri:s,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c}=e;return new T({customParameters:t,fields:r,geometryField:i,geometryType:n,name:o,namespaceUri:s,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.dateFieldsTimeReference=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxFeatures=3e3,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new _({layer:this}),this.spatialReference=B.Z.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,G.YN)(this.renderer,this.fieldsIndex),(0,G.UF)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const i=e.filter((e=>e.name!==S.u2));this.geometryField&&i.unshift(new A.Z({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,a.RB)(r,i.map((e=>e.toJSON())),t)}get parsedUrl(){return(0,l.mN)(this.url)}set renderer(e){(0,G.YN)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,V.eZ)(this,e)}createQuery(){const e=new J.Z;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(J.Z.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(J.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(J.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(J.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i._)([(0,u.Cb)({readOnly:!0})],$.prototype,"capabilities",null),(0,i._)([(0,u.Cb)({type:String})],$.prototype,"copyright",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],$.prototype,"createQueryVersion",null),(0,i._)([(0,u.Cb)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],$.prototype,"customParameters",void 0),(0,i._)([(0,u.Cb)({type:z.Z})],$.prototype,"dateFieldsTimeReference",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,i._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],$.prototype,"definitionExpression",void 0),(0,i._)([(0,u.Cb)({type:String})],$.prototype,"displayField",void 0),(0,i._)([(0,u.Cb)(U.PV)],$.prototype,"elevationInfo",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"featureUrl",void 0),(0,i._)([(0,u.Cb)({type:[A.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],$.prototype,"fields",void 0),(0,i._)([(0,y.c)("fields")],$.prototype,"writeFields",null),(0,i._)([(0,u.Cb)(Q.fieldsIndex)],$.prototype,"fieldsIndex",void 0),(0,i._)([(0,u.Cb)({type:x.Z,json:{name:"extent"}})],$.prototype,"fullExtent",void 0),(0,i._)([(0,u.Cb)()],$.prototype,"geometryField",void 0),(0,i._)([(0,u.Cb)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:f.M.read},write:{target:"layerDefinition.geometryType",writer:f.M.write,ignoreOrigin:!0},origins:{service:{read:f.M.read}}}})],$.prototype,"geometryType",void 0),(0,i._)([(0,u.Cb)({type:String})],$.prototype,"id",void 0),(0,i._)([(0,u.Cb)(U.iR)],$.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:[D.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:L.r},write:!0}})],$.prototype,"labelingInfo",void 0),(0,i._)([(0,u.Cb)(U.rn)],$.prototype,"legendEnabled",void 0),(0,i._)([(0,u.Cb)({type:["show","hide"]})],$.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({type:String})],$.prototype,"objectIdField",void 0),(0,i._)([(0,u.Cb)({type:["WFS"]})],$.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({type:p.z8,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"maxFeatures",void 0),(0,i._)([(0,u.Cb)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],$.prototype,"mode",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"name",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"namespaceUri",void 0),(0,i._)([(0,u.Cb)(U.bT)],$.prototype,"opacity",void 0),(0,i._)([(0,u.Cb)(Q.outFields)],$.prototype,"outFields",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],$.prototype,"parsedUrl",null),(0,i._)([(0,u.Cb)(U.C_)],$.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,i._)([(0,u.Cb)({types:o.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:o.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],$.prototype,"renderer",null),(0,i._)([(0,u.Cb)(U.YI)],$.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],$.prototype,"source",void 0),(0,i._)([(0,u.Cb)({type:B.Z,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],$.prototype,"spatialReference",void 0),(0,i._)([(0,u.Cb)({readOnly:!0,type:[p.z8],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"spatialReferences",void 0),(0,i._)([(0,u.Cb)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"swapXY",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],$.prototype,"title",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],$.prototype,"type",void 0),(0,i._)([(0,u.Cb)(U.HQ)],$.prototype,"url",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"version",void 0),(0,i._)([(0,u.Cb)()],$.prototype,"wfsCapabilities",null),$=T=(0,i._)([(0,d.j)("esri.layers.WFSLayer")],$);const H=$},61159:(e,t,r)=>{r.d(t,{g:()=>i});const i={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},92722:(e,t,r)=>{r.d(t,{O3:()=>F,lG:()=>_,my:()=>x,q9:()=>p});var i=r(20188),n=r(20102),o=r(8744),s=r(70272),a=r(5428),l=r(35671);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function p(e){return u[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function y(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let r=0;r<e.length;r++){const i=e[r],n=e[(r+1)%e.length];t+=i[0]*n[1]-n[0]*i[1]}return t<=0}function m(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function h(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return b(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const i of t.coordinates)b(e,i,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const i of t.coordinates){w(e,i[0],r);for(let t=1;t<i.length;t++)g(e,i[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return S(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const i=t.coordinates;w(e,i[0],r);for(let t=1;t<i.length;t++)g(e,i[t],r);return e}(e,t,r)}}function w(e,t,r){const i=m(t);!function(e){return!f(e)}(i)?b(e,i,r):v(e,i,r)}function g(e,t,r){const i=m(t);!function(e){return f(e)}(i)?b(e,i,r):v(e,i,r)}function b(e,t,r){for(const i of t)S(e,i,r);e.lengths.push(t.length)}function v(e,t,r){for(let i=t.length-1;i>=0;i--)S(e,t[i],r);e.lengths.push(t.length)}function S(e,t,r){const[i,n,o]=t;e.coords.push(i,n),r.hasZ&&e.coords.push(o||0)}function C(e){switch(typeof e){case"string":return(0,i.o)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e,t=4326){if(!e)throw new n.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:r}=e;if(!r)return;const i="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,s=(0,o.oR)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!s.test(i))throw new n.Z("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function x(e,t={}){const r=[],i=new Set,n=new Set;let o,s=!1,a=null,u=!1,{geometryType:f=null}=t,m=!1;for(const t of c(e)){const{geometry:e,properties:c,id:h}=t;if((!e||(f||(f=p(e.type)),p(e.type)===f))&&(s||(s=y(d(e))),u||(u=null!=h,u&&(o=typeof h,c&&(a=Object.keys(c).filter((e=>c[e]===h))))),c&&a&&u&&null!=h&&(a.length>1?a=a.filter((e=>c[e]===h)):1===a.length&&(a=c[a[0]]===h?a:[])),!m&&c)){let e=!0;for(const t in c){if(i.has(t))continue;const o=c[t];if(null==o){e=!1,n.add(t);continue}const s=C(o);if("unknown"===s){n.add(t);continue}n.delete(t),i.add(t);const a=(0,l.q6)(t);a&&r.push({name:a,alias:t,type:s})}m=e}}const h=(0,l.q6)(1===a?.length&&a[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,l.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:f,hasZ:s,objectIdFieldName:h,objectIdFieldType:o,unknownFields:Array.from(n)}}function _(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:i}=t;for(const n of e){const{geometry:e,properties:o,id:l}=n;if(e&&p(e.type)!==r)continue;const u=o||{};let c;i&&(c=u[i],null==l||c||(u[i]=c=l));const d=new s.u_(e?h(new a.Z,e,t):null,u,null,c??void 0);yield d}}(c(e),t))}},25278:(e,t,r)=>{r.d(t,{Dm:()=>p,Hq:()=>c,MS:()=>d,bU:()=>a});var i=r(80442),n=r(22974),o=r(61159),s=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},17017:(e,t,r)=>{r.d(t,{N:()=>s});var i=r(43697),n=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,r)=>{r.d(t,{b:()=>j});var i,n=r(43697),o=r(5600),s=(r(75215),r(67676),r(80442),r(52011)),a=r(20102),l=r(96674),u=r(78286),p=r(67760),c=r(66577),d=r(92835),y=r(35454),f=r(22974),m=r(14165);const h=new y.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),w=new y.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let g=i=class extends l.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:o,units:s,distance:a}=this;return new m.Z({geometry:(0,f.d9)(r),objectIds:(0,f.d9)(o),spatialRelationship:i,timeExtent:(0,f.d9)(n),where:t,units:s,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:o,units:s,distance:a}=this;return new i({geometry:(0,f.d9)(t),objectIds:(0,f.d9)(o),spatialRelationship:r,timeExtent:(0,f.d9)(n),where:e,units:s,distance:a})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],g.prototype,"where",void 0),(0,n._)([(0,o.Cb)({types:c.qM,json:{write:!0}})],g.prototype,"geometry",void 0),(0,n._)([(0,o.Cb)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],g.prototype,"spatialRelationship",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"distance",void 0),(0,n._)([(0,o.Cb)({type:[Number],json:{write:!0}})],g.prototype,"objectIds",void 0),(0,n._)([(0,o.Cb)({type:w.apiValues,json:{read:w.read,write:{writer:w.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"units",void 0),(0,n._)([(0,o.Cb)({type:d.Z,json:{write:!0}})],g.prototype,"timeExtent",void 0),g=i=(0,n._)([(0,s.j)("esri.layers.support.FeatureFilter")],g);const b=g;var v;const S={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},F={name:"showExcludedLabels",default:!0};let x=v=class extends l.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,o.Cb)({type:b,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,u.RB)(r,n,t):(0,u.RB)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-map":S,"portal-item":S}}})],x.prototype,"includedEffect",void 0),(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":F,"portal-item":F}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n._)([(0,s.j)("esri.layers.support.FeatureEffect")],x);const _=x,T={write:{allowNull:!0}},j=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,o.Cb)({type:_,json:{origins:{"web-map":T,"portal-item":T}}})],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,s.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(43697),o=r(78286),s=r(5600),a=(r(75215),r(67676),r(80442),r(52011)),l=r(35454),u=r(96674);const p=new l.X({asc:"ascending",desc:"descending"});let c=i=class extends u.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,n._)([(0,s.Cb)({type:p.apiValues,json:{read:p.read,write:p.write}})],c.prototype,"order",void 0),c=i=(0,n._)([(0,a.j)("esri.layers.support.OrderByInfo")],c);const d=c;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const n=new d;return n.read(i,r),[n]}function f(e,t,r,i){const n=e.find((e=>!!e.field));n&&(0,o.RB)(r,[n.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,n._)([(0,s.Cb)({type:[d],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},34760:(e,t,r)=>{r.d(t,{Q:()=>b});var i=r(43697),n=r(92604),o=r(95330),s=r(5600),a=r(90578),l=(r(67676),r(80442),r(52011)),u=r(82960),p=r(46791),c=(r(66643),r(20102),r(26258),r(87538));const d=new p.Z,y=new WeakMap;function f(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&d.push(new WeakRef(e))}function m(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:m(t,e%t):0}let h=0,w=0;function g(){const e=Date.now();let t=!1;for(const r of d){const i=r.deref();i?i.refreshInterval&&e-(y.get(i)??0)+5>=6e4*i.refreshInterval&&(y.set(i,e),i.refresh(e)):t=!0}if(t)for(let e=d.length-1;e>=0;e--)d.at(e).deref()||d.removeAt(e)}(0,c.EH)((()=>{const e=Date.now();let t=0;for(const r of d){const i=r.deref();i&&(t=m(Math.round(6e4*i.refreshInterval),t),i.refreshInterval?y.get(i)||y.set(i,e):y.delete(i))}if(t!==w){if(w=t,clearInterval(h),0===w)return void(h=0);h=setInterval(g,w)}}));const b=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,o.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||f(this)}),(()=>{}))}destroy(){!function(e){const t=d.find((t=>t.deref()===e));t&&d.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,o.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,i._)([(0,s.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:u.C}}}}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,a.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,i._)([(0,s.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,s.Cb)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),n=r(92835),o=r(84552),s=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(35671),p=r(76259),c=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=c.v.fromJSON(r.timeOffsetUnits);return i&&n?new o.Z({value:i,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,s.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,s.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,s.Cb)({value:null,type:p.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},78089:(e,t,r)=>{r.d(t,{Bm:()=>k,FU:()=>I,be:()=>N,eB:()=>q,fU:()=>V,ft:()=>Z,u2:()=>g}),r(66577);var i=r(3172),n=r(20102),o=r(66374),s=r(17452),a=r(73615),l=r(8744),u=r(86973),p=r(92722),c=r(88724),d=r(66677),y=r(1231),f=r(82971),m=r(6570);const h="xlink:href",w="2.0.0",g="__esri_wfs_id__",b="wfs-layer:getWFSLayerTypeInfo-error",v="wfs-layer:empty-service",S="wfs-layer:feature-type-not-found",C="wfs-layer:geojson-not-supported",F="wfs-layer:kvp-encoding-not-supported",x="wfs-layer:malformed-json",_="wfs-layer:unknown-geometry-type",T="wfs-layer:unknown-field-type",j="wfs-layer:unsupported-spatial-reference",R="wfs-layer:unsupported-wfs-version";async function I(e,t){const r=function(e){const t=D(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new n.Z(R,`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),J(t);const r=t.firstElementChild,i=(0,o.Fs)(function(e){return(0,c.H)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,c.h)(e,{Name:e=>{const{name:r,prefix:i}=L(e.textContent);t.typeName=`${i}:${r}`,t.name=r,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=function(e){let t,r,i,n;for(const o of e.children)switch(o.localName){case"LowerCorner":[t,r]=o.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[i,n]=o.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:l.Zn}}(e)},DefaultCRS:e=>{const i=E(e);i&&(t.defaultSpatialReference=i,r.add(i))},OtherCRS:e=>{const t=E(e);t&&r.add(t)}}),t.title||(t.title=t.name),r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:P(r),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,s.$U)(e)&&((0,s.D6)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,s.hO)(t.operations.DescribeFeatureType.url)),(0,s.D6)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,s.hO)(t.operations.GetFeature.url)))}(e,r),r}const O=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function P(e){let t=!1;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,c.h)(e,{OperationsMetadata:{Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(h)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(h)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(h)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:e=>{const t=e.textContent;t&&O.has(t.toLowerCase())&&(r.GetFeature.outputFormat=t)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),!t)throw new n.Z(F,"WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new n.Z(C,"WFS service doesn't support GeoJSON output format");return r}function E(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function Z(e,t,r){return(0,o.sE)(e,(e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t))}async function N(e,t,r,i={}){const{featureType:o,extent:s}=await async function(e,t,r,i={}){const o=e.readFeatureTypes(),s=t?Z(o,t,r):o.next().value,{spatialReference:u=new f.Z({wkid:s?.defaultSpatialReference})}=i;if(null==s)throw t?new n.Z(S,`The type '${t}' could not be found in the service`):new n.Z(v,"The service is empty");let p=new m.Z({...s.extent,spatialReference:f.Z.WGS84});if(!(0,l.fS)(p.spatialReference,u))try{await(0,a.initializeProjection)(p.spatialReference,u,void 0,i),p=(0,a.project)(p,u)}catch{throw new n.Z(j,"Projection not supported")}return{extent:p,spatialReference:u,featureType:s}}(e,t,r,i),{spatialReference:u}=V(e.operations.GetFeature.url,o,i.spatialReference),{fields:p,geometryType:c,swapXY:d,objectIdField:y,geometryField:h}=await async function(e,t,r,i={}){const{typeName:o}=t,[s,a]=await Promise.allSettled([U(e.operations.DescribeFeatureType.url,o,i),M(e,o,r,i)]),l=e=>new n.Z(b,`An error occurred while getting info about the feature type '${o}'`,{error:e});if("rejected"===s.status)throw l(s.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:p}=s.value??{},c=s.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new n.Z(_,`The geometry type could not be determined for type '${o}`,{typeName:o,geometryType:c,fields:u,errors:p});return{...q(u??[]),geometryType:c,swapXY:d}}(e,o,u,i);return{url:e.operations.GetCapabilities.url,name:o.name,namespaceUri:o.namespaceUri,fields:p,geometryField:h,geometryType:c,objectIdField:y,spatialReference:i.spatialReference??new f.Z({wkid:o.defaultSpatialReference}),extent:s,swapXY:d,wfsCapabilities:e,customParameters:i.customParameters}}function q(e){const t=e.find((e=>"geometry"===e.type));let r=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),r||(r=new y.Z({name:g,type:"oid",alias:g}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function M(e,t,r,n={}){let o,s=!1;const[a,l]=await Promise.all([k(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...n,count:1}),(0,i.Z)(e.operations.GetFeature.url,{responseType:"text",query:G(t,r,void 0,{...n,count:1}),signal:n?.signal})]),c="FeatureCollection"===a.type&&a.features[0]?.geometry;if(c){let e;switch(o=u.M.fromJSON((0,p.q9)(c.type)),c.type){case"Point":e=c.coordinates;break;case"LineString":case"MultiPoint":e=c.coordinates[0];break;case"MultiLineString":case"Polygon":e=c.coordinates[0][0];break;case"MultiPolygon":e=c.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const r=e[0].toFixed(3),i=e[1].toFixed(3),n=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&i===n&&(s=!0)}}return{geometryType:o,swapXY:s}}async function U(e,t,r){return function(e,t){const{name:r}=L(e),i=D(t);J(i);const s=(0,o.sE)((0,c.H)(i.firstElementChild,{element:e=>({name:e.getAttribute("name"),typeName:L(e.getAttribute("type")).name})}),(({name:e})=>e===r));if(null!=s){const e=(0,o.sE)((0,c.H)(i.firstElementChild,{complexType:e=>e}),(e=>e.getAttribute("name")===s.typeName));if(null!=e)return function(e){const t=[],r=[];let i;const o=(0,c.H)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const s of o){const o=s.getAttribute("name");if(!o)continue;let a,l;if(s.hasAttribute("type")?a=L(s.getAttribute("type")).name:(0,c.h)(s,{simpleType:{restriction:e=>(a=L(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===s.getAttribute("nillable");let p=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new y.Z({name:o,alias:o,type:"integer",nullable:u}));break;case"float":case"double":case"decimal":r.push(new y.Z({name:o,alias:o,type:"double",nullable:u}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new y.Z({name:o,alias:o,type:"string",nullable:u,length:l??255}));break;case"datetime":case"date":r.push(new y.Z({name:o,alias:o,type:"date",nullable:u,length:l??36}));break;case"pointpropertytype":i="point",p=!0;break;case"multipointpropertytype":i="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,t.push(new n.Z(_,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new n.Z(T,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new y.Z({name:o,alias:o,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&A.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:r,errors:t}}(e)}throw new n.Z(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,...r?.customParameters},signal:r?.signal})).data)}const A=new Set(["objectid","fid"]);async function k(e,t,r,o,s){let{data:a}=await(0,i.Z)(e,{responseType:"text",query:G(t,r,o,s),signal:s?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new n.Z(x,"Error while parsing the response",{response:a,error:e})}}function G(e,t,r,i){const n="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+n,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}function D(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function L(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function J(e){let t="",r="";if((0,c.h)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new n.Z(`wfs-layer:${t}`,r)}function V(e,t,r){const i={wkid:t.defaultSpatialReference},n=null!=r?.wkid?{wkid:r.wkid}:i;return{spatialReference:n,getFeatureSpatialReference:(0,d.B5)(e)||n.wkid&&t.supportedSpatialReferences.includes(n.wkid)?{wkid:n.wkid}:{wkid:t.defaultSpatialReference}}}},88724:(e,t,r)=>{function i(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&i(r,t)}else i(r,e)}}function*n(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*n(r,e)}}r.d(t,{H:()=>n,h:()=>i})},76259:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),n=r(92835),o=r(84552),s=r(2368),a=r(96674),l=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),c=r(30556),d=r(80216);function y(e,t){return o.Z.fromJSON({value:e,unit:t})}let f=class extends((0,s.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.c)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,i._)([(0,c.c)("interval")],f.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,i._)([(0,l.Cb)({type:d.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"timeReference",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),f=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],f);const m=f},50957:(e,t,r)=>{r.d(t,{C9:()=>R,Ci:()=>C,FV:()=>S,Fr:()=>m,JD:()=>h,JY:()=>Z,Jj:()=>b,KE:()=>T,Ob:()=>A,SU:()=>F,VG:()=>_,Y5:()=>g,gG:()=>I,kZ:()=>E,kp:()=>j,nU:()=>q,rP:()=>O,rk:()=>P,sX:()=>M,tD:()=>x,uA:()=>k,uj:()=>v});var i=r(40330),n=r(9790),o=r(20102),s=r(35454),a=r(42033),l=r(63213),u=r(84230),p=r(84382),c=r(81571),d=r(56545),y=r(14165),f=r(75935);const m=new s.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function h(e,t,r,i){const n=await N(e);if(await w(e,t,i),!n.addAttachment)throw new o.Z(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function w(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new o.Z(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new o.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.Z(r,"this layer doesn't support attachments"))}async function g(e,t,r,i,n){const s=await N(e);if(await w(e,t,n),!s.updateAttachment)throw new o.Z(n,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,i)}async function b(e,t,i){const{applyEdits:n}=await r.e(4720).then(r.bind(r,14720)),o=await e.load();return n(o,o.source,t,i)}async function v(e,t,i){const{uploadAssets:n}=await r.e(4720).then(r.bind(r,14720)),o=await e.load();return n(o,o.source,t,i)}async function S(e,t,r,i){const n=await N(e);if(await w(e,t,i),!n.deleteAttachments)throw new o.Z(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function C(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function F(e,t,r,i){t=d.Z.from(t),await e.load();const n=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new o.Z(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:p,size:c,start:y,where:f}=t;if(!s?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||c?.length>0||p||y||f))throw new o.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||f))throw new o.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new o.Z(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function x(e,t,r,i){const n=await N(e);if(!n.queryObjectIds)throw new o.Z(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(y.Z.from(t)??e.createQuery(),r)}async function _(e,t,r,i){const n=await N(e);if(!n.queryFeatureCount)throw new o.Z(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(y.Z.from(t)??e.createQuery(),r)}async function T(e,t,r,i){const n=await N(e);if(!n.queryExtent)throw new o.Z(i,"Layer source does not support queryExtent capability");return n.queryExtent(y.Z.from(t)??e.createQuery(),r)}async function j(e,t,r,i){const n=await N(e);if(!n.queryRelatedFeatures)throw new o.Z(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(f.default.from(t),r)}async function R(e,t,r,i){const n=await N(e);if(!n.queryRelatedFeaturesCount)throw new o.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(f.default.from(t),r)}async function I(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function O(e){const t=new y.Z,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:n,timeExtent:o}=e;return t.timeExtent=null!=n&&null!=o?o.offset(-n.value,n.unit):o||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function P(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function E(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function Z(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function N(e){return(await e.load()).source}async function q(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,u.oP)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function M(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const U=(0,l.d)({types:n.QT});function A(e,t){if(e.defaultSymbol)return e.types&&e.types.length?new c.Z({defaultSymbol:U(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:U(e.symbol,e,t)})))}):new p.Z({symbol:U(e.defaultSymbol,e,t)})}function k(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}},53518:(e,t,r)=>{r.d(t,{v:()=>a});var i=r(92604),n=r(1231),o=r(99514),s=r(35671);function a(){return{fields:{type:[n.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new o.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,s.Q0)(this.fieldsIndex,e)}}}}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},74889:(e,t,r)=>{r.d(t,{Z:()=>b});var i,n=r(43697),o=r(66577),s=r(38171),a=r(35454),l=r(96674),u=r(22974),p=r(5600),c=(r(75215),r(71715)),d=r(52011),y=r(30556),f=r(82971),m=r(33955),h=r(1231);const w=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let g=i=class extends l.wq{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){const r=f.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],o=s.Z.fromJSON(n),a=n.geometry&&n.geometry.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=r);const l=n.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void w.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry)return void w.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=f.Z.fromJSON(t.spatialReference)),i}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 i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({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 i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.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:[i,n],scale:[o,s]}=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*o+i),(e=>n-e*s),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===i&&s===n||(o.push([e-i,s-n]),i=e,n=s)}else i=t(a[0]),n=r(a[1]),o.push([i,n])}return o.length>0?o: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 i=(0,m.oU)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],s=this._quantizePoints(o,t,r);s&&n.push(s)}return n.length>0?((0,m.oU)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths;let s,a;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=r(a)}}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(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),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],g.prototype,"displayFieldName",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.Cb)({type:[s.Z],json:{write:!0}})],g.prototype,"features",void 0),(0,n._)([(0,c.r)("features")],g.prototype,"readFeatures",null),(0,n._)([(0,p.Cb)({type:[h.Z],json:{write:!0}})],g.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:w.read}}})],g.prototype,"geometryType",void 0),(0,n._)([(0,y.c)("geometryType")],g.prototype,"writeGeometryType",null),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"hasM",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"hasZ",void 0),(0,n._)([(0,p.Cb)({types:o.qM,json:{write:!0}})],g.prototype,"queryGeometry",void 0),(0,n._)([(0,c.r)("queryGeometry")],g.prototype,"readQueryGeometry",null),(0,n._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],g.prototype,"spatialReference",void 0),(0,n._)([(0,y.c)("spatialReference")],g.prototype,"writeSpatialReference",null),(0,n._)([(0,p.Cb)({json:{write:!0}})],g.prototype,"transform",void 0),g=i=(0,n._)([(0,d.j)("esri.rest.support.FeatureSet")],g),g.prototype.toJSON.isDefaultToJSON=!0;const b=g},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var i,n=r(43697),o=(r(66577),r(96674)),s=r(22974),a=r(5600),l=r(75215),u=r(52011),p=r(30556),c=r(10158),d=r(82971);let y=i=class extends o.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,s.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:c.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,n._)([(0,p.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,n._)([(0,a.Cb)({type:d.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,n._)([(0,p.c)("start"),(0,p.c)("num")],y.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.se)(y);const f=y},58333:(e,t,r)=>{r.d(t,{ET:()=>o,I4:()=>n,eG:()=>l,lF:()=>s,lj:()=>p,qP:()=>a,wW:()=>u});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008,8062],{71592:(e,a,t)=>{t.d(a,{w:()=>u});var r=t(40330),n=t(3172),i=t(20102),l=t(95330),s=t(66677),c=t(48522),o=t(15235);async function u(e,a){const t=(0,s.Qc)(e);if(!t)throw new i.Z("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.Z)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.r9)(e)}return null}(e);null!=i&&(t.portal=new c.Z({url:i}));try{return t.load({signal:e.signal})}catch(e){return(0,l.r9)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,l.r9)(e),null}}(u);if(!f?.url)throw new i.Z("related-service-not-found","Could not find feature service through portal item relationship");const p=await d(f.url,u);return p.portalItem=f,p}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.Z)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,s.Qc)(e);if(!t)throw new i.Z("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,l=a.layerId;if(null==l)return{serverUrl:r};const c=y(a),o=e=>{const t={query:{f:"json"},responseType:"json",authMode:e,signal:a.signal};return(0,n.Z)(r,t)},u=o("anonymous").catch((()=>o("no-prompt"))),[d,f]=await Promise.all([u,c]),p=f&&f.layers,m=d.data&&d.data.layers;if(!Array.isArray(m))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,m.length);e++)if(p[e].id===l)return{serverUrl:r,layerId:m[e].id}}else if(null!=l&&l<m.length)return{serverUrl:r,layerId:m[l].id};throw new Error("could not find matching associated sublayer")}},52104:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(96187);async function n(e,a){const t=await(0,r.T)(e,a);t.layers=t.layers.filter(i);const n={serviceJSON:t};if((t.currentVersion??0)<10.5)return n;const l=await(0,r.T)(e+"/layers",a);return n.layersJSON={layers:l.layers.filter(i),tables:l.tables},n}function i(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(8153)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(8654),t.e(9238),t.e(6170),t.e(3975),t.e(1161),t.e(3554)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(8654),t.e(9238),t.e(3584)]).then(t.bind(t,45425))).default,DimensionLayer:async()=>(await Promise.all([t.e(163),t.e(9717)]).then(t.bind(t,40081))).default,ElevationLayer:async()=>(await Promise.all([t.e(163),t.e(6569),t.e(9016),t.e(2763)]).then(t.bind(t,65665))).default,FeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(8654),t.e(9238),t.e(7520)]).then(t.bind(t,19238))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(9069)]).then(t.bind(t,23477))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(1043)]).then(t.bind(t,3723))).default,GroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9059)]).then(t.bind(t,40504))).default,ImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(4165),t.e(4599),t.e(6610),t.e(3663),t.e(4608)]).then(t.bind(t,60590))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(6610),t.e(4136),t.e(3663),t.e(5913)]).then(t.bind(t,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(163),t.e(3975),t.e(1537)]).then(t.bind(t,9310))).default,KMLLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(6472)]).then(t.bind(t,42756))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(163),t.e(4998)]).then(t.bind(t,21786))).default,LinkChartLayer:async()=>(await Promise.all([t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(6404),t.e(8968),t.e(5286),t.e(801)]).then(t.bind(t,19087))).default,MapImageLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(4165),t.e(3778),t.e(4599),t.e(2863),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(8654),t.e(9238),t.e(2575)]).then(t.bind(t,62128))).default,MediaLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4828)]).then(t.bind(t,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(2341)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(6237)]).then(t.bind(t,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(8654),t.e(9238),t.e(6964)]).then(t.bind(t,76604))).default,PointCloudLayer:async()=>(await Promise.all([t.e(163),t.e(8775),t.e(3975),t.e(8643),t.e(6138)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(261)]).then(t.bind(t,40153))).default,SceneLayer:async()=>(await Promise.all([t.e(163),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(4165),t.e(3778),t.e(6170),t.e(3975),t.e(1161),t.e(1174)]).then(t.bind(t,57476))).default,StreamLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(7132)]).then(t.bind(t,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(4165),t.e(3778),t.e(8654),t.e(8324),t.e(2596)]).then(t.bind(t,20697))).default,TileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(1423),t.e(4165),t.e(3778),t.e(4599),t.e(9016),t.e(2863),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9016),t.e(4325),t.e(9805),t.e(5481)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(163),t.e(8775),t.e(3975),t.e(9327)]).then(t.bind(t,28865))).default,WFSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(3547),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(6506)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(1574)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(2594)]).then(t.bind(t,72594))).default,WebTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971)]).then(t.bind(t,16199))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>l,h:()=>i});var r=t(17452),n=t(48522);function i(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,t)=>{t.d(a,{$O:()=>b,CD:()=>p,Ld:()=>d,Ok:()=>S,Q4:()=>g,XX:()=>v,_Y:()=>I,load:()=>f});var r=t(20102),n=t(66677),i=t(71592),l=t(52104),s=t(87344),c=t(48522),o=t(33516),u=t(40555),y=t(96187);class d{constructor(){this._serviceMetadatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const r=await(0,y.T)(e,a);return this._serviceMetadatas.set(e,r),r}}async function f(e,a){const t=e.instance.portalItem;if(t&&t.id)return await t.load(a),function(e){const a=e.instance.portalItem;if(!a?.type||!e.supportedTypes.includes(a.type))throw new r.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,n=t.portalItem;if(!n)return;const{url:i,title:s}=n,c=(0,o.h)(n);if("group"===t.type)return t.read({title:s},c),async function(e,a){let t;const{portalItem:n}=e;if(!n)return;const i=n.type,s=a.layerModuleTypeMap;switch(i){case"Feature Service":case"Feature Collection":t=s.FeatureLayer;break;case"Stream Service":t=s.StreamLayer;break;case"Scene Service":t=s.SceneLayer;break;default:throw new r.Z("portal:unsupported-item-type-as-group",`The item type '${i}' is not supported as a 'IGroupLayer'`)}const c=new d;let[o,u]=await Promise.all([t(),L(a,c)]),f=()=>o;if("Feature Service"===i){u=n.url?await b(u,n.url,c):{};const a=v(u),t=I(u),r=[];if(a.length||t?.length){a.length&&r.push("SubtypeGroupLayer"),t?.length&&r.push("OrientedImageryLayer");const e=[];for(const a of r){const t=s[a];e.push(t())}const n=await Promise.all(e),i=new Map;r.forEach(((e,a)=>{i.set(e,n[a])})),f=e=>e.layerType?i.get(e.layerType)??o:o}const i=await async function(e){const{layersJSON:a}=await(0,l.V)(e);if(!a)return null;const t=[...a.layers,...a.tables];return e=>t.find((a=>a.id===e.id))}(n.url);return await w(e,f,u,i)}return"Scene Service"===i&&n.url&&(u=await p(n,u,c)),g(u)>0?await w(e,f,u):await async function(e,a){const{portalItem:t}=e;if(!t?.url)return;const r=await(0,y.T)(t.url);r&&w(e,a,{layers:r.layers?.map(m),tables:r.tables?.map(m)})}(e,f)}(t,e);i&&t.read({url:i},c);const f=new d,h=await L(e,f,a);return h&&t.read(h,c),t.resourceReferences={portalItem:n,paths:c.readResourcePaths??[]},"subtype-group"!==t.type&&t.read({title:s},c),(0,u.y)(t,c)}(e,a)}async function p(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(m)}const{serverUrl:r,portalItem:n}=await(0,i.w)(e.url,{sceneLayerItem:e}).catch((()=>({serverUrl:null,portalItem:null})));if(null==r)return a.tables=[],a;if(!a.tables&&n){const e=await n.fetchData();if(e?.tables)a.tables=e.tables.map(m);else{const e=await t.fetchServiceMetadata(r);a.tables=e?.tables?.map(m)}}if(a.tables)for(const e of a.tables)e.url=`${r}/${e.id}`;return a}function m(e){return{id:e.id,name:e.name}}async function w(e,a,t,r){let n=t.layers||[];const i=t.tables||[];if("Feature Collection"===e.portalItem?.type?(n.forEach(((e,a)=>{e.id=a,"Table"===e?.layerDefinition?.type&&i.push(e)})),n=n.filter((e=>"Table"!==e?.layerDefinition?.type))):(n.reverse(),i.reverse()),n.forEach((n=>{const i=r?.(n);if(i||!r){const r=h(e,a(n),t,n,i);e.add(r)}})),i.length){const a=await s.T.FeatureLayer();i.forEach((n=>{const i=r?.(n);if(i||!r){const r=h(e,a,t,n,i);e.tables.add(r)}}))}}function h(e,a,t,r,n){const i=e.portalItem,l={portalItem:i.clone(),layerId:r.id};null!=r.url&&(l.url=r.url);const s=new a(l);if("sourceJSON"in s&&(s.sourceJSON=n),"subtype-group"!==s.type&&(s.sublayerTitleMode="service-name"),"Feature Collection"===i.type){const e={origin:"portal-item",portal:i.portal||c.Z.getDefault()};s.read(r,e);const a=t.showLegend;null!=a&&s.read({showLegend:a},e)}return s}async function L(e,a,t){if(!1===e.supportsData)return;const r=e.instance,i=r.portalItem;if(!i)return;let l=null;try{l=await i.fetchData("json",t)}catch(e){}if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let e=null;const t=await async function(e,a,t){if(a?.layers&&a?.tables)return g(a);const r=(0,n.Qc)(e.url);if(!r)return 1;const i=await t.fetchServiceMetadata(r.url.path).catch((()=>null));return(a?.layers?.length??i?.layers?.length??0)+(a?.tables?.length??i?.tables?.length??0)}(i,l,a);if((l?.layers||l?.tables)&&t>0){if(null==r.layerId){const e=v(l);r.layerId="subtype-group"===r.type?e?.[0]:S(l)}e=function(e,a){const{layerId:t}=a,r=e.layers?.find((e=>e.id===t))||e.tables?.find((e=>e.id===t));return r&&function(e,a){return!("feature"===a.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===a.type&&!("layerType"in e))}(r,a)?r:null}(l,r),e&&null!=l.showLegend&&(e.showLegend=l.showLegend)}return t>1&&"sublayerTitleMode"in r&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),e}return l}async function b(e,a,t){if(null==e?.layers||null==e?.tables){const r=await t.fetchServiceMetadata(a);(e=e||{}).layers=e.layers||r?.layers,e.tables=e.tables||r?.tables}return e}function S(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function g(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function v(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}function I(e){return e?.layers?.filter((({layerType:e})=>"OrientedImageryLayer"===e)).map((({id:e})=>e))}},28008:(e,a,t)=>{t.d(a,{fromItem:()=>u,v:()=>y});var r=t(20102),n=t(71592),i=t(84230),l=t(87344),s=t(15235),c=t(18062),o=t(14661);async function u(e){!e.portalItem||e.portalItem instanceof s.default||(e={...e,portalItem:new s.default(e.portalItem)});const a=await async function(e){await e.load();const a=new c.Ld;return async function(e){const a=e.className,t=l.T[a];return{constructor:await t(),properties:e.properties}}(await y(e,a))}(e.portalItem);return new(0,a.constructor)({portalItem:e.portalItem,...a.properties})}async function y(e,a){switch(e.type){case"Map Service":return async function(e,a){return await async function(e,a){return(await a.fetchServiceMetadata(e.url)).tileInfo}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Feature Service":return async function(e,a){const t=await d(e,a);if("object"==typeof t){const e={};return null!=t.id&&(e.layerId=t.id),{className:t.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e,a);case"Feature Collection":return async function(e){await e.load();const a=(0,o._$)(e,"Map Notes"),t=(0,o._$)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,o._$)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,c.Q4)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e,a){const t=await d(e,a,(async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.w)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}}));if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(i.fb))if(e.typeKeywords.includes(a))return{className:i.fb[a]};const l=await a.fetchServiceMetadata(n);return{className:i.fb[l?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await e.fetchData(),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await a.fetchServiceMetadata(e.url),l=i.cacheType?.toLowerCase(),s=i.capabilities?.toLowerCase().includes("tilesonly");return"map"===l||s?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new r.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,a,t){const r=e.url;if(!r||/\/\d+$/.test(r))return{};await e.load();let n=await e.fetchData();if("Feature Service"===e.type){const e=f(await(0,c.$O)(n,r,a));if("object"==typeof e){const a=(0,c.XX)(n),t=(0,c._Y)(n);e.className=null!=e.id&&a.includes(e.id)?"SubtypeGroupLayer":null!=e.id&&t?.includes(e.id)?"OrientedImageryLayer":"FeatureLayer"}return e}if("Scene Service"===e.type&&(n=await(0,c.CD)(e,n,a)),(0,c.Q4)(n)>0)return f(n);const i=await a.fetchServiceMetadata(r);return t&&(i.tables=await t()),f(i)}function f(e){return 1===(0,c.Q4)(e)&&{id:(0,c.Ok)(e)}}},40555:(e,a,t)=>{t.d(a,{y:()=>l});var r=t(66643),n=t(95330),i=t(20941);async function l(e,a,t){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,r.q6)(l.populateFromStyle());if((0,n.k_)(t),!1===s.ok){const t=s.error;a&&a.messages&&a.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a?.origin)}}}},96187:(e,a,t)=>{t.d(a,{T:()=>n});var r=t(3172);async function n(e,a){const{data:t}=await(0,r.Z)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
|