@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([[5286],{88764:(e,t,i)=>{i.d(t,{q:()=>o});var s,n,r,a=i(5732),l={exports:{}};s=l,n=function(){function e(i,s,n,r,a){for(;r>n;){if(r-n>600){var l=r-n+1,o=s-n+1,u=Math.log(l),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(l-c)/l)*(o-l/2<0?-1:1);e(i,s,Math.max(n,Math.floor(s-o*c/l+h)),Math.min(r,Math.floor(s+(l-o)*c/l+h)),a)}var d=i[s],f=n,m=r;for(t(i,n,s),a(i[r],d)>0&&t(i,n,r);f<m;){for(t(i,f,m),f++,m--;a(i[f],d)<0;)f++;for(;a(i[m],d)>0;)m--}0===a(i[n],d)?t(i,n,m):t(i,++m,r),m<=s&&(n=m+1),s<=m&&(r=m-1)}}function t(e,t,i){var s=e[t];e[t]=e[i],e[i]=s}function i(e,t){return e<t?-1:e>t?1:0}return function(t,s,n,r,a){e(t,s,n||0,r||t.length-1,a||i)}},void 0!==(r=n())&&(s.exports=r);const o=(0,a.g)(l.exports)},95528:(e,t,i)=>{i.d(t,{t:()=>l});var s=i(22974),n=i(58971),r=i(10661);class a{constructor(e,t){this._observable=new r.s,this._value=e,this._equalityFunction=t}get value(){return(0,n.it)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=s.y7){return new a(e,t)}},82397:(e,t,i)=>{i.d(t,{G6:()=>p,Ie:()=>m,J9:()=>d,RF:()=>h,U1:()=>f,vY:()=>a}),i(33955);const s=(e,t,i)=>[t,i],n=(e,t,i)=>[t,i,e[2]],r=(e,t,i)=>[t,i,e[2],e[3]];function a(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function l({scale:e,translate:t},i){return i*e[0]+t[0]}function o({scale:e,translate:t},i){return t[1]-i*e[1]}function u(e,t,i){const s=new Array(i.length);if(!i.length)return s;const[n,r]=e.scale;let a=l(e,i[0][0]),u=o(e,i[0][1]);s[0]=t(i[0],a,u);for(let e=1;e<i.length;e++){const l=i[e];a+=l[0]*n,u-=l[1]*r,s[e]=t(l,a,u)}return s}function c(e,t,i){const s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=u(e,t,i[n]);return s}function h(e,t,i,s,n){return t.x=function({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}(e,i.x),t.y=function({scale:e,translate:t},i){return Math.round((t[1]-i)/e[1])}(e,i.y),t!==i&&(s&&(t.z=i.z),n&&(t.m=i.m)),t}function d(e,t,i,a,l){return null!=i&&(t.points=function(e,t,i,a){return u(e,i?a?r:n:a?n:s,t)}(e,i.points,a,l)),t}function f(e,t,i,s,n){return null==i||(t.x=l(e,i.x),t.y=o(e,i.y),t!==i&&(s&&(t.z=i.z),n&&(t.m=i.m))),t}function m(e,t,i,a,l){return null!=i&&(t.rings=function(e,t,i,a){return c(e,i?a?r:n:a?n:s,t)}(e,i.rings,a,l)),t}function p(e,t,i,a,l){return null!=i&&(t.paths=function(e,t,i,a){return c(e,i?a?r:n:a?n:s,t)}(e,i.paths,a,l)),t}},11028:(e,t,i)=>{i.d(t,{q:()=>Oe});var s=i(67676),n=i(20102),r=i(22974),a=i(70586),l=i(69801),o=i(95330),u=i(67900),c=i(73615),h=i(60437),d=i(24470),f=i(20322),m=i(33955),p=i(16306),g=i(8744),y=i(98732),_=i(35454),x=i(13867),T=i(8968);const S=new class{constructor(e,t){this._cache=new x.z(e),this._invalidCache=new x.z(t)}get(e,t){const i=`${t.uid}:${e}`,s=this._cache.get(i);if(s)return s;if(void 0!==this._invalidCache.get(i))return null;try{const s=T.WhereClause.create(e,t);return this._cache.put(i,s),s}catch{return this._invalidCache.put(i,null),null}}}(50,500),I="feature-store:unsupported-query",E=" as ",R=new _.X({esriFieldTypeString:"string"}),F=new _.X({esriFieldTypeOID:"oid",esriFieldTypeSmallInteger:"small-integer",esriFieldTypeBigInteger:"big-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long"}),b=new _.X({esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),w=new _.X({esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id"}),v=new Set([...F.jsonValues,...b.jsonValues,...R.jsonValues,...w.jsonValues]),A=new Intl.ListFormat("en-US",{type:"conjunction"}).format([...F.apiValues,...b.apiValues,...R.apiValues,...w.apiValues]);function N(e,t,i={}){const s=V(e,t);if(!s)throw new n.Z(I,"invalid SQL expression",{expression:e});const r=i.expressionName||"expression";if(i.validateStandardized&&!s.isStandardized)throw new n.Z(I,`${r} is not standard`,{expression:e});if(i.validateAggregate&&!s.isAggregate)throw new n.Z(I,`${r} does not contain a valid aggregate function`,{expression:e});return s.fieldNames}function C(e,t,i,s){if(!t)return!0;const r="having",a=N(t,e,{validateAggregate:!0,expressionName:r});k(e,a,{expressionName:r,query:s}),D(e,a,{expressionName:r,query:s});const l=S.get(t,e),o=l?.getExpressions().every((t=>{const{aggregateType:s,field:n}=t,r=e.get(n)?.name;return i.some((t=>{const{onStatisticField:i,statisticType:n}=t,a=e.get(i)?.name;return a===r&&n.toLowerCase().trim()===s}))}));if(!o)throw new n.Z(I,"expressions in having should also exist in outStatistics",{having:t});return!0}function V(e,t){return e?S.get(e,t):null}function k(e,t,i={}){i.errorMessage||(i.errorMessage=i.expressionName?`${i.expressionName} contains invalid fields`:"Fields are invalid"),P(e,t,((e,t)=>t.has(e)),i)}function D(e,t,i={}){i.errorMessage||(i.errorMessage=i.expressionName?`${i.expressionName} only supports ${A} field types`:`Only ${A} field types are supported`),P(e,t,((e,t)=>!M(e,t)),i)}function P(e,t,i,s={}){const r=s.verifyExpression??!0,a=[];for(const n of t){const t=i(n,e);if("*"!==n&&!t)if(r){const t=O(n);try{P(e,N(t,e,{validateStandardized:!0}),i,s)}catch(e){const t=e?.details;if(t?.expression)throw e;t?.invalidFields?a.push(...t.invalidFields):a.push(n)}}else a.push(n)}if(a.length)throw new n.Z(I,s.errorMessage,{invalidFields:a,query:s.query})}function O(e){return/\((.*?)\)/.test(e)?e:e.split(E)[0]}function M(e,t,i=v){const s=t.get(e);return!!s&&!i.has(s.type)}var L=i(37427),G=i(61159),z=i(35308),q=i(49600),Q=i(82397),U=i(11490),B=i(24452),j=i(59266);class Z{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;const s=e.outFields;if(s&&!s.includes("*")){this.outFields=s;let e=0;for(const t of s){const s=O(t),n=this.fieldsIndex.get(s),r=n?null:V(s,i),a=n?n.name:t.split(E)[1]||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){const s=i?i.name:t;let n=null;return this._fieldDataCache.has(s)?n=this._fieldDataCache.get(s)?.clause:i||(n=V(t,this.fieldsIndex),this._fieldDataCache.set(s,{alias:s,clause:n})),i?this.featureAdapter.getAttribute(e,s):n?.calculateValue(e,this.featureAdapter)}getDataValues(e,t){const i=t.normalizationType,s=t.normalizationTotal,n=this.fieldsIndex.isDateField(t.field);return e.map((e=>{let r=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(r=`${(0,B.wk)(r)}${t.fieldDelimiter}${(0,B.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,B.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):n&&"string"==typeof r&&(r=r?new Date(r).getTime():null),i&&Number.isFinite(r)){const n="field"===i&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,B.fk)(r,i,n,s)}return r}))}async getExpressionValues(e,t,i,s){const{arcadeUtils:n}=await(0,j.LC)(),r=n.hasGeometryOperations(t);r&&await n.enableGeometryOperations();const a=n.createFunction(t),l=i&&n.getViewInfo(i),o={fields:this.fieldsIndex.fields};return e.map((e=>{const t={attributes:this.featureAdapter.getAttributes(e),layer:o,geometry:r?{...(0,U.Op)(s.geometryType,s.hasZ,s.hasM,this.featureAdapter.getGeometry(e)),spatialReference:i?.spatialReference}:null},u=n.createExecContext(t,l);return n.executeFunction(a,u)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:V(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:V(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const i={};for(const s of t){const{alias:t,clause:n}=this._fieldDataCache.get(s);i[t]=n?n.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,i=[];if(t)for(const s of t){const{alias:t}=this._fieldDataCache.get(s);i.push(e[t])}else for(const t in e)i.push(e[t]);const s=`${(t||["*"]).join(",")}=${i.join(",")}`;let n=this._returnDistinctMap.get(s)||0;return this._returnDistinctMap.set(s,++n),n>1?null:e}}function Y(e,t,i){return{objectId:e,target:t,distance:i,type:"vertex"}}function H(e,t,i,s,n,r=!1){return{objectId:e,target:t,distance:i,type:"edge",start:s,end:n,draped:r}}var $=i(35671);class W{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.fieldsIndex=i.fieldsIndex,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new Z(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:i,outStatistics:s}=this.query,n=t?.length;if(!n)return 1;const r=new Map,a=new Map,l=new Set;for(const n of s){const{statisticType:s}=n,o="exceedslimit"!==s?n.onStatisticField:void 0;if(!a.has(o)){const i=[];for(const s of t){const t=this._getAttributeValues(e,s,r);i.push(t)}a.set(o,this._calculateUniqueValues(i,e.returnDistinctValues))}const u=a.get(o);for(const t in u){const{data:s,items:n}=u[t],r=s.join(",");i&&!e.validateItems(n,i)||l.add(r)}}return l.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,g.JY)(this.query.outSR)&&!(0,g.fS)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,U.S2)({spatialReference:this.query.outSR,...(0,L.iV)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,U.S2)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t){const i=this.featureAdapter,s=J(this.hasZ,this.hasM),{point:n,mode:r}=e,a="number"==typeof e.distance?e.distance:e.distance.x,l="number"==typeof e.distance?e.distance:e.distance.y,o={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=this._getPointCreator(r,this.spatialReference,t),h=new K(null,0),d=new K(null,0),f={x:0,y:0,z:0};for(const t of this.items){const r=i.getGeometry(t);if(null==r)continue;const{coords:m,lengths:p}=r;if(h.coords=m,d.coords=m,e.returnEdge){let e=0;for(let r=0;r<p.length;r++){const u=p[r];for(let r=0;r<u;r++,e+=s){const m=h;if(m.coordsIndex=e,r!==u-1){const r=d;r.coordsIndex=e+s;const u=f;X(f,n,m,r);const h=(n.x-u.x)/a,p=(n.y-u.y)/l,g=h*h+p*p;g<=1&&o.candidates.push(H(i.getObjectId(t),c(u),Math.sqrt(g),c(m),c(r)))}}}}if(e.returnVertex){const e=u?m.length-s:m.length;for(let r=0;r<e;r+=s){const e=h;e.coordsIndex=r;const s=(n.x-e.x)/a,u=(n.y-e.y)/l,d=s*s+u*u;d<=1&&o.candidates.push(Y(i.getObjectId(t),c(e),Math.sqrt(d)))}}}return o.candidates.sort(((e,t)=>e.distance-t.distance)),o}_getPointCreator(e,t,i){const s=null==i||(0,g.fS)(t,i)?e=>e:e=>(0,L.iV)(e,t,i),{hasZ:n}=this;return"3d"===e?n?({x:e,y:t,z:i})=>s({x:e,y:t,z:i}):({x:e,y:t})=>s({x:e,y:t,z:0}):({x:e,y:t})=>s({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,minValue:a,maxValue:l,scale:o}=e,u=this.fieldsIndex.isDateField(t),c=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,scale:o}),h=(0,B.S5)({normalizationType:n,normalizationField:s,minValue:a,maxValue:l}),d=this.fieldsIndex.get(t),f={value:.5,fieldType:d?.type},m=(0,$.qN)(d)?(0,B.H0)({values:c,supportsNullCount:h,percentileParams:f}):(0,B.i5)({values:c,minValue:a,maxValue:l,useSampleStdDev:!n,supportsNullCount:h,percentileParams:f});return(0,B.F_)(m,u)}async createUniqueValuesResponse(e){const{field:t,valueExpression:i,domains:s,returnAllCodedValues:n,scale:r}=e,a=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:r}),l=(0,B.eT)(a);return(0,B.Qm)(l,s,n,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:c,scale:h}=e,d=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,scale:h}),f=(0,B.G2)(d,{field:t,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:c});return(0,B.DL)(f,a)}async createHistogramResponse(e){const{field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:c,scale:h}=e,d=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:n,normalizationTotal:r,scale:h});return(0,B.oF)(d,{field:t,normalizationField:s,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:c})}_sortFeatures(e,t,i){if(e.length>1&&t&&t.length)for(const s of t.reverse()){const t=s.split(" "),n=t[0],r=this.fieldsIndex.get(n),a=!!t[1]&&"desc"===t[1].toLowerCase(),l=(0,B.Lq)(r?.type,a);e.sort(((e,t)=>{const s=i(e,n,r),a=i(t,n,r);return l(s,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:i,hasM:s,hasZ:n,objectIdField:r,spatialReference:a}=this,{outFields:l,outSR:o,quantizationParameters:u,resultRecordCount:c,resultOffset:h,returnZ:d,returnM:f}=e,m=null!=c&&t.length>(h||0)+c,p=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:m,features:this._createFeatures(e,t),fields:p,geometryType:i,hasM:s&&f,hasZ:n&&d,objectIdFieldName:r,spatialReference:(0,U.S2)(o||a),transform:u&&(0,Q.vY)(u)||null}}_createFeatures(e,t){const i=new Z(e,this.featureAdapter,this.fieldsIndex),{hasM:s,hasZ:n}=this,{orderByFields:r,quantizationParameters:a,returnGeometry:l,returnCentroid:o,maxAllowableOffset:u,resultOffset:c,resultRecordCount:h,returnZ:d=!1,returnM:f=!1}=e,m=n&&d,p=s&&f;let g=[],y=0;const _=[...t];if(this._sortFeatures(_,r,((e,t,s)=>i.getFieldValue(e,t,s))),l||o){const e=(0,Q.vY)(a)??void 0;if(l&&!o)for(const t of _)g[y++]={attributes:i.getAttributes(t),geometry:(0,U.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),u,e,m,p)};else if(!l&&o)for(const t of _)g[y++]={attributes:i.getAttributes(t),centroid:(0,U.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of _)g[y++]={attributes:i.getAttributes(t),centroid:(0,U.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,U.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),u,e,m,p)}}else for(const e of _){const t=i.getAttributes(e);t&&(g[y++]={attributes:t})}const x=c||0;if(null!=h){const e=x+h;g=g.slice(x,Math.min(g.length,e))}return g}_createExceedsLimitQueryResponse(e){let t=!1,i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const t of e.outStatistics??[])if("exceedslimit"===t.statisticType){i=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,s=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>i;else if(this.items.length>s)t=!0;else{const e=J(this.hasZ,this.hasM),i=this.featureAdapter;t=this.items.reduce(((e,t)=>{const s=i.getGeometry(t);return e+(null!=s&&s.coords.length||0)}),0)/e>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},i=[],s=new Map,n=new Map,r=new Map,a=new Map,l=new Z(e,this.featureAdapter,this.fieldsIndex),o=e.outStatistics,{groupByFieldsForStatistics:u,having:c,orderByFields:h}=e,d=u&&u.length,f=!!d,m=f?u[0]:null,p=f&&!this.fieldsIndex.get(m);for(const e of o??[]){const{outStatisticFieldName:o,statisticType:h}=e,g=e,y="exceedslimit"!==h?e.onStatisticField:void 0,_="percentile_disc"===h||"percentile_cont"===h,x="EnvelopeAggregate"===h||"CentroidAggregate"===h||"ConvexHullAggregate"===h,T=f&&1===d&&(y===m||p)&&"count"===h;if(f){if(!r.has(y)){const e=[];for(const t of u){const i=this._getAttributeValues(l,t,s);e.push(i)}r.set(y,this._calculateUniqueValues(e,!x&&l.returnDistinctValues))}const e=r.get(y);for(const t in e){const{count:i,data:n,items:r,itemPositions:h}=e[t],d=n.join(",");if(!c||l.validateItems(r,c)){const e=a.get(d)||{attributes:{}};if(x){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:i}=await this._getAggregateGeometry(g,r);e.aggregateGeometries[i]=t}else{let t=null;if(T)t=i;else{const e=this._getAttributeValues(l,y,s),i=h.map((t=>e[t]));t=_&&"statisticParameters"in g?this._getPercentileValue(g,i):this._getStatisticValue(g,i,null,l.returnDistinctValues)}e.attributes[o]=t}let t=0;u.forEach(((i,s)=>e.attributes[this.fieldsIndex.get(i)?i:"EXPR_"+ ++t]=n[s])),a.set(d,e)}}}else if(x){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:i}=await this._getAggregateGeometry(g,this.items);t.aggregateGeometries[i]=e}else{const e=this._getAttributeValues(l,y,s);t.attributes[o]=_&&"statisticParameters"in g?this._getPercentileValue(g,e):this._getStatisticValue(g,e,n,l.returnDistinctValues)}i.push({name:o,alias:o,type:"esriFieldTypeDouble"})}const g=f?Array.from(a.values()):[t];return this._sortFeatures(g,h,((e,t)=>e.attributes[t])),{fields:i,features:g}}async _getAggregateGeometry(e,t){const{convexHull:s,union:n}=await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)),{statisticType:r,outStatisticFieldName:a}=e,{featureAdapter:l,spatialReference:o,geometryType:u,hasZ:c,hasM:h}=this,d=t.map((e=>(0,U.Op)(u,c,h,l.getGeometry(e)))),f=s(o,d,!0)[0],m={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===r){const e=f?(0,q._w)(f):(0,q.aO)(n(o,d));m.aggregateGeometries={...e,spatialReference:o},m.outStatisticFieldName=a||"extent"}else if("CentroidAggregate"===r){const e=f?(0,z.tO)(f):(0,z.$G)((0,q.aO)(n(o,d)));m.aggregateGeometries={x:e[0],y:e[1],spatialReference:o},m.outStatisticFieldName=a||"centroid"}else"ConvexHullAggregate"===r&&(m.aggregateGeometries=f,m.outStatisticFieldName=a||"convexHull");return m}_getStatisticValue(e,t,i,s){const{onStatisticField:n,statisticType:r}=e;let a=null;return a=i?.has(n)?i.get(n):(0,$.qN)(this.fieldsIndex.get(n))?(0,B.H0)({values:t,returnDistinct:s}):(0,B.i5)({values:s?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(n,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:i,statisticParameters:s,statisticType:n}=e,{value:r,orderBy:a}=s,l=this.fieldsIndex.get(i);return(0,B.XL)(t,{value:r,orderBy:a,fieldType:l?.type,isDiscrete:"percentile_disc"===n})}_getAttributeValues(e,t,i){if(i.has(t))return i.get(t);const s=this.fieldsIndex.get(t),n=this.items.map((i=>e.getFieldValue(i,t,s)));return i.set(t,n),n}_calculateUniqueValues(e,t){const i={},s=this.items,n=s.length;for(let r=0;r<n;r++){const n=s[r],a=[];for(const t of e)a.push(t[r]);const l=a.join(",");null==i[l]?i[l]={count:1,data:a,items:[n],itemPositions:[r]}:(t||i[l].count++,i[l].items.push(n),i[l].itemPositions.push(r))}return i}async _getDataValues(e){const t=new Z(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:i,scale:s}=e,n=i?{viewingMode:"map",scale:s,spatialReference:this.query.outSR||this.spatialReference}:null;return i?t.getExpressionValues(this.items,i,n,{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM}):t.getDataValues(this.items,{field:e.field,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal})}}function X(e,t,i,s){const n=s.x-i.x,r=s.y-i.y,a=n*n+r*r,l=(t.x-i.x)*n+(t.y-i.y)*r,o=Math.min(1,Math.max(0,l/a));e.x=i.x+n*o,e.y=i.y+r*o}function J(e,t){return e?t?4:3:t?3:2}class K{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}var ee=i(10402),te=i(17590),ie=i(99514),se=i(61247),ne=(i(80442),i(92604)),re=i(54790),ae=i(44553),le=i(17445),oe=i(95528),ue=i(76882);class ce{constructor(){this._tasks=new Array,this._running=(0,oe.t)(!1)}get length(){return this._tasks.length}get running(){return this._running.value}destroy(){this.cancelAll()}runTask(e){for(;!e.done&&this._process(e);)e.madeProgress()}push(e,t,i){return this._running.value=!0,new Promise(((s,n)=>this._tasks.push(new he(s,n,e,t,i))))}unshift(e,t,i){return this._running.value=!0,new Promise(((s,n)=>this._tasks.unshift(new he(s,n,e,t,i))))}_process(e){if(0===this._tasks.length)return!1;const t=this._tasks.shift();try{const i=(0,o.Hc)(t.signal);if(i&&!t.abortCallback)t.reject((0,o.zE)());else{const s=i?t.abortCallback?.((0,o.zE)()):t.callback(e);(0,o.y8)(s)?s.then(t.resolve,t.reject):t.resolve(s)}}catch(e){t.reject(e)}return this._running.value=this._tasks.length>0,!0}cancelAll(){const e=(0,o.zE)();for(const t of this._tasks)if(t.abortCallback){const i=t.abortCallback(e);t.resolve(i)}else t.reject(e);this._tasks.length=0,this._running.value=!1}}class he{constructor(e,t,i,s=void 0,n=void 0){this.resolve=e,this.reject=t,this.callback=i,this.signal=s,this.abortCallback=n}}var de=i(43697),fe=i(92036),me=i(5600),pe=(i(75215),i(52011));let ge=class extends fe.Z{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,de._)([(0,me.Cb)()],ge.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,de._)([(0,me.Cb)()],ge.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),ge=(0,de._)([(0,pe.j)("esri.views.support.DebugFlags")],ge);const ye=new ge;var _e,xe,Te,Se=i(95720);(Te=_e||(_e={}))[Te.YIELD=1]="YIELD",function(e){e.RESOURCE_CONTROLLER_IMMEDIATE="immediate",e.RESOURCE_CONTROLLER="schedule",e.SLIDE="slide",e.STREAM_DATA_LOADER="stream loader",e.ELEVATION_QUERY="elevation query",e.TERRAIN_SURFACE="terrain",e.SURFACE_GEOMETRY_UPDATES="surface geometry updates",e.LOD_RENDERER="LoD renderer",e.GRAPHICS_CORE="Graphics3D",e.I3S_CONTROLLER="I3S",e.POINT_CLOUD_LAYER="point cloud",e.FEATURE_TILE_FETCHER="feature fetcher",e.OVERLAY="overlay",e.STAGE="stage",e.GRAPHICS_DECONFLICTOR="graphics deconflictor",e.FILTER_VISIBILITY="Graphics3D filter visibility",e.SCALE_VISIBILITY="Graphics3D scale visibility",e.FRUSTUM_VISIBILITY="Graphics3D frustum visibility",e.POINT_OF_INTEREST_FREQUENT="POI frequent",e.POINT_OF_INTEREST_INFREQUENT="POI infrequent",e.LABELER="labeler",e.FEATURE_QUERY_ENGINE="feature query",e.FEATURE_TILE_TREE="feature tile tree",e.FEATURE_TILE_TREE_ACTIVE="fast feature tile tree",e.ELEVATION_ALIGNMENT="elevation alignment",e.TEXT_TEXTURE_ATLAS="text texture atlas",e.TEXTURE_UNLOAD="texture unload",e.LINE_OF_SIGHT_TOOL="line of sight tool",e.LINE_OF_SIGHT_TOOL_INTERACTIVE="interactive line of sight tool",e.ELEVATION_PROFILE="elevation profile",e.SNAPPING="snapping",e.SHADOW_ACCUMULATOR="shadow accumulator",e.CLOUDS_GENERATOR="clouds generator",e[e.NONE=0]="NONE",e[e.TEST_PRIO=1]="TEST_PRIO"}(xe||(xe={}));const Ie=new Map([[xe.RESOURCE_CONTROLLER_IMMEDIATE,0],[xe.RESOURCE_CONTROLLER,4],[xe.SLIDE,0],[xe.STREAM_DATA_LOADER,0],[xe.ELEVATION_QUERY,0],[xe.TERRAIN_SURFACE,1],[xe.SURFACE_GEOMETRY_UPDATES,1],[xe.LOD_RENDERER,2],[xe.GRAPHICS_CORE,2],[xe.I3S_CONTROLLER,2],[xe.POINT_CLOUD_LAYER,2],[xe.FEATURE_TILE_FETCHER,2],[xe.OVERLAY,4],[xe.STAGE,4],[xe.GRAPHICS_DECONFLICTOR,4],[xe.FILTER_VISIBILITY,4],[xe.SCALE_VISIBILITY,4],[xe.FRUSTUM_VISIBILITY,4],[xe.CLOUDS_GENERATOR,4],[xe.POINT_OF_INTEREST_FREQUENT,6],[xe.POINT_OF_INTEREST_INFREQUENT,30],[xe.LABELER,8],[xe.FEATURE_QUERY_ENGINE,8],[xe.FEATURE_TILE_TREE,16],[xe.FEATURE_TILE_TREE_ACTIVE,0],[xe.ELEVATION_ALIGNMENT,12],[xe.TEXT_TEXTURE_ATLAS,12],[xe.TEXTURE_UNLOAD,12],[xe.LINE_OF_SIGHT_TOOL,16],[xe.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[xe.SNAPPING,0],[xe.SHADOW_ACCUMULATOR,30]]);function Ee(e){return Ie.has(e)?Ie.get(e):"number"==typeof e?e:1}const Re=(0,ue.HA)(6.5),Fe=(0,ue.HA)(1),be=(0,ue.HA)(30),we=(0,ue.HA)(1e3/30),ve=(0,ue.HA)(100);var Ae,Ne;!function(e){e.Scheduler=class{get updating(){return this._updating.value}_updatingChanged(){this._updating.value=this._tasks.some((e=>e.needsUpdate))}constructor(){this._updating=(0,oe.t)(!0),this._microTaskQueued=!1,this._frameNumber=0,this.performanceInfo={total:new re.Z("total"),tasks:new Map},this._frameTaskTimes=new Map,this._budget=new i,this._state=Se.n.INTERACTING,this._tasks=new ae.Z,this._runQueue=new ae.Z,this._load=0,this._idleStateCallbacks=new ae.Z,this._idleUpdatesStartFired=!1,this._forceTask=!1,this._debug=!1,this._debugHandle=(0,le.YP)((()=>ye.SCHEDULER_LOG_SLOW_TASKS),(e=>this._debug=e),le.nn);for(const e of Object.keys(xe))this.performanceInfo.tasks.set(xe[e],new re.Z(xe[e]));const e=this;this._test={FRAME_SAFETY_BUDGET:Re,INTERACTING_BUDGET:we,IDLE_BUDGET:ve,get availableBudget(){return e._budget.budget},usedBudget:0,getBudget:()=>e._budget,setBudget:t=>e._budget=t,updateTask:e=>this._updateTask(e),getState:e=>this._getState(e),getRuntime:e=>this._getRuntime(e),frameTaskTimes:this._frameTaskTimes,resetRuntimes:()=>this._resetRuntimes(),getRunning:()=>this._getRunning()}}destroy(){this._tasks.toArray().forEach((e=>e.remove())),this._tasks.clear(),(0,a.hw)(this._debugHandle),this._microTaskQueued=!1,this._updatingChanged()}taskRunningChanged(e){this._updatingChanged(),e&&this._budget.remaining>0&&!this._microTaskQueued&&(this._microTaskQueued=!0,queueMicrotask((()=>{this._microTaskQueued&&(this._microTaskQueued=!1,this._budget.remaining>0&&this._schedule()&&this.frame())})))}registerTask(e,i){const s=Ee(e),n=new t(this,e,i,s);return this._tasks.push(n),this._updatingChanged(),this.performanceInfo.tasks.has(e)||this.performanceInfo.tasks.set(e,new re.Z(e)),n}registerIdleStateCallbacks(e,t){const i={idleBegin:e,idleEnd:t};this._idleStateCallbacks.push(i),this.state===Se.n.IDLE&&this._idleUpdatesStartFired&&i.idleBegin();const s=this;return{remove:()=>this._removeIdleStateCallbacks(i),set idleBegin(e){s._idleUpdatesStartFired&&(i.idleEnd(),s._state===Se.n.IDLE&&e()),i.idleBegin=e},set idleEnd(e){i.idleEnd=e}}}get load(){return this._load}set state(e){this._state!==e&&(this._state=e,this.state!==Se.n.IDLE&&this._idleUpdatesStartFired&&(this._idleUpdatesStartFired=!1,this._idleStateCallbacks.forAll((e=>e.idleEnd()))))}get state(){return this._state}updateBudget(e){this._test.usedBudget=0,++this._frameNumber;let t=Re,i=e.frameDuration,s=Fe;switch(this.state){case Se.n.IDLE:t=(0,ue.HA)(0),i=(0,ue.HA)(Math.max(ve,e.frameDuration)),s=be;break;case Se.n.INTERACTING:i=(0,ue.HA)(Math.max(we,e.frameDuration));case Se.n.ANIMATING:}return i=(0,ue.HA)(i-e.elapsedFrameTime-t),this.state!==Se.n.IDLE&&i<Fe&&!this._forceTask?(this._forceTask=!0,!1):(i=(0,ue.HA)(Math.max(i,s)),this._budget.reset(i,this.state),this._updateLoad(),this._schedule())}frame(){switch(this._forceTask=!1,this._microTaskQueued=!1,this.state){case Se.n.IDLE:this._idleUpdatesStartFired||(this._idleUpdatesStartFired=!0,this._idleStateCallbacks.forAll((e=>e.idleBegin()))),this._runIdle();break;case Se.n.INTERACTING:this._runInteracting();break;default:this._runAnimating()}this._test.usedBudget=this._budget.elapsed}stopFrame(){this._budget.reset((0,ue.HA)(0),this._state),this._budget.madeProgress()}_removeIdleStateCallbacks(e){this._idleUpdatesStartFired&&e.idleEnd(),this._idleStateCallbacks.removeUnordered(e)}removeTask(e){this._tasks.removeUnordered(e),this._runQueue.removeUnordered(e),this._updatingChanged()}_updateTask(e){this._tasks.forAll((t=>{t.name===e&&t.setPriority(e)}))}_getState(e){if(this._runQueue.some((t=>t.name===e)))return Ne.SCHEDULED;let t=Ne.IDLE;return this._tasks.forAll((i=>{i.name===e&&i.needsUpdate&&(i.schedulePriority<=1?t=Ne.READY:t!==Ne.READY&&(t=Ne.WAITING))})),t}_getRuntime(e){let t=0;return this._tasks.forAll((i=>{i.name===e&&(t+=i.runtime)})),t}_resetRuntimes(){this._tasks.forAll((e=>e.runtime=0))}_getRunning(){const e=new Map;if(this._tasks.forAll((t=>{t.needsUpdate&&e.set(t.name,(e.get(t.name)||0)+1)})),0===e.size)return null;let t="";return e.forEach(((e,i)=>{t+=e>1?` ${e}x ${i}`:` ${i}`})),t}_runIdle(){this._run()}_runInteracting(){this._run()}_runAnimating(){this._run()}_updateLoad(){const e=this._tasks.reduce(((e,t)=>t.needsUpdate?++e:e),0);this._load=.9*this._load+e*(1-.9)}_schedule(){for(this._runQueue.filterInPlace((e=>!!e.needsUpdate||(e.schedulePriority=e.basePriority,!1))),this._tasks.forAll((e=>{0===e.basePriority&&e.needsUpdate&&!this._runQueue.includes(e)&&e.blockFrame!==this._frameNumber&&this._runQueue.unshift(e)}));0===this._runQueue.length;){let e=!1,t=0;if(this._tasks.forAll((i=>{i.needsUpdate&&0!==i.schedulePriority&&0!==i.basePriority&&i.blockFrame!==this._frameNumber&&(e=!0,t=Math.max(t,i.basePriority),1===i.schedulePriority?(i.schedulePriority=0,this._runQueue.push(i)):--i.schedulePriority)})),!e)return this._updatingChanged(),!1}return this._updatingChanged(),!0}_run(){const e=this._budget.now();this._startFrameTaskTimes();do{for(;this._runQueue.length>0;){const t=this._budget.now(),i=this._runQueue.pop();this._budget.resetProgress();try{i.task.runTask(this._budget)===_e.YIELD&&(i.blockFrame=this._frameNumber)}catch(e){ne.Z.getLogger("esri.views.support.Scheduler").error(`Exception in task "${i.name}"`,e),i.blockFrame=this._frameNumber}!this._budget.hasProgressed&&i.blockFrame!==this._frameNumber&&i.needsUpdate&&(i.name,xe.I3S_CONTROLLER,i.blockFrame=this._frameNumber),i.schedulePriority=i.basePriority;const s=this._budget.now()-t;if(i.runtime+=s,this._frameTaskTimes.set(i.priority,this._frameTaskTimes.get(i.priority)+s),this._debug&&s>2*this._budget.budget&&console.log("Task",i.name,"used",s,"of max",this._budget.budget,"ms"),this._budget.remaining<=0)return this._updatingChanged(),void this._recordFrameTaskTimes(this._budget.now()-e)}}while(this._schedule());this._updatingChanged(),this._recordFrameTaskTimes(this._budget.now()-e)}_startFrameTaskTimes(){for(const e of Object.keys(xe))this._frameTaskTimes.set(xe[e],0)}_recordFrameTaskTimes(e){this._frameTaskTimes.forEach(((e,t)=>this.performanceInfo.tasks.get(t).record(e))),this.performanceInfo.total.record(e)}get test(){return this._test}};class t{get task(){return this._task.value}get updating(){return this._queue.running}constructor(e,t,i,s){this._scheduler=e,this.name=t,this._basePriority=s,this.blockFrame=0,this.runtime=0,this._queue=new ce,this._handles=new se.Z,this.schedulePriority=this._basePriority,this._task=(0,oe.t)(null!=i?i:this._queue),this._handles.add((0,le.gx)((()=>this.task.running),(t=>e.taskRunningChanged(t))))}remove(){this.processQueue(Ce),this._scheduler.removeTask(this),this.schedule=Ve.schedule,this.reschedule=Ve.reschedule,this._handles.destroy()}get basePriority(){return this._basePriority}setPriority(e){this.name=e;const t=Ee(e);0!==this._basePriority&&0===this.schedulePriority||(this.schedulePriority=t),this._basePriority=t}get priority(){return this.name}set priority(e){this.setPriority(e)}get needsUpdate(){return this.updating||this.task.running}schedule(e,t,i){return this._queue.push(e,t,i)}reschedule(e,t,i){return this._queue.unshift(e,t,i)}processQueue(e){this._queue.runTask(e)}}class i{constructor(){this._begin="undefined"!=typeof performance?performance.now():0,this._budget=0,this._state=Se.n.IDLE,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get state(){return this._state}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e,t){this._begin=this.now(),this._budget=e,this._state=t,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return performance.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}}e.Budget=i}(Ae||(Ae={})),function(e){e.SCHEDULED="s",e.READY="r",e.WAITING="w",e.IDLE="i"}(Ne||(Ne={}));const Ce=(()=>{const e=new Ae.Budget;return e.enabled=!1,e})(),Ve=new class{remove(){}processQueue(){}schedule(e,t,i){try{if((0,o.Hc)(t)){const e=(0,o.zE)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,o.gx)(e(Ce))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}},ke="feature-store:unsupported-query",De=new l.WJ(2e6);let Pe=0;class Oe{constructor(e){this._geometryQueryCache=null,this._changeHandle=null,this.capabilities={query:G.g},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.objectIdField=e.objectIdField,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._changeHandle=this.featureStore.events.on("changed",(()=>this.clearCache())),this.timeInfo=e.timeInfo,e.cacheSpatialQueries&&(this._geometryQueryCache=new l.Xq(Pe+++"$$",De)),this.fieldsIndex=new ie.Z(e.fields),e.scheduler&&e.priority&&(this._frameTask=e.scheduler.registerTask(e.priority))}destroy(){this._frameTask=(0,a.hw)(this._frameTask),this.clearCache(),(0,a.SC)(this._geometryQueryCache),this._changeHandle=(0,a.hw)(this._changeHandle),(0,a.SC)(this.fieldsIndex)}get featureAdapter(){return this.featureStore.featureAdapter}clearCache(){this._geometryQueryCache?.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async executeQuery(e,t){try{return(await this._executeQuery(e,{},t)).createQueryResponse()}catch(t){if(t!==U.Ti)throw t;return new W([],e,this).createQueryResponse()}}async executeQueryForCount(e={},t){try{return(await this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null},t)).createQueryResponseForCount()}catch(e){if(e!==U.Ti)throw e;return 0}}async executeQueryForExtent(e,t){const i=e.outSR;try{const s=await this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},t),n=s.size;return n?{count:n,extent:await this._getBounds(s.items,s.spatialReference,i||this.spatialReference)}:{count:0,extent:null}}catch(e){if(e===U.Ti)return{count:0,extent:null};throw e}}async executeQueryForIds(e,t){return this.executeQueryForIdSet(e,t).then((e=>Array.from(e)))}async executeQueryForIdSet(e,t){try{const i=await this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},t),s=i.items,n=new Set;return await this._reschedule((()=>{for(const e of s)n.add(i.featureAdapter.getObjectId(e))}),t),n}catch(e){if(e===U.Ti)return new Set;throw e}}async executeQueryForSnapping(e,t){const{point:i,distance:s,returnEdge:n,returnVertex:a}=e;if(!n&&!a)return{candidates:[]};let l=(0,r.d9)(e.query);l=await this._schedule((()=>(0,U.j6)(l,this.definitionExpression,this.spatialReference)),t),l=await this._reschedule((()=>this._checkQuerySupport(l)),t);const o=!(0,g.fS)(i.spatialReference,this.spatialReference);o&&await(0,L._W)(i.spatialReference,this.spatialReference);const u="number"==typeof s?s:s.x,c="number"==typeof s?s:s.y,h={xmin:i.x-u,xmax:i.x+u,ymin:i.y-c,ymax:i.y+c,spatialReference:i.spatialReference},d=o?(0,L.iV)(h,this.spatialReference):h;if(!d)return{candidates:[]};const f=(await(0,p.aX)((0,m.im)(i),null,{signal:t}))[0],y=(await(0,p.aX)((0,m.im)(d),null,{signal:t}))[0];if(null==f||null==y)return{candidates:[]};const _=new W(await this._reschedule((()=>this._searchFeatures(this._getQueryBBoxes(y.toJSON()))),t),l,this);await this._reschedule((()=>this._executeObjectIdsQuery(_)),t),await this._reschedule((()=>this._executeTimeQuery(_)),t),await this._reschedule((()=>this._executeAttributesQuery(_)),t),await this._reschedule((()=>this._executeGeometryQueryForSnapping(_,t)),t);const x=f.toJSON(),T=o?(0,L.iV)(x,this.spatialReference):x,S=o?Math.max(d.xmax-d.xmin,d.ymax-d.ymin)/2:s;return _.createSnappingResponse({...e,point:T,distance:S},i.spatialReference)}async executeQueryForLatestObservations(e,t){if(!this.timeInfo||!this.timeInfo.trackIdField)throw new n.Z(ke,"Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});try{const i=await this._executeQuery(e,{},t);return await this._reschedule((()=>this._filterLatest(i)),t),i.createQueryResponse()}catch(t){if(t!==U.Ti)throw t;return new W([],e,this).createQueryResponse()}}async executeQueryForSummaryStatistics(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createSummaryStatisticsResponse(t)}async executeQueryForUniqueValues(e={},t,i){const{field:s,field2:n,field3:r,valueExpression:a}=t;return(await this._getQueryEngineResultForStats(e,{field:s,field2:n,field3:r,valueExpression:a},i)).createUniqueValuesResponse(t)}async executeQueryForClassBreaks(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createClassBreaksResponse(t)}async executeQueryForHistogram(e={},t,i){const{field:s,normalizationField:n,valueExpression:r}=t;return(await this._getQueryEngineResultForStats(e,{field:s,normalizationField:n,valueExpression:r},i)).createHistogramResponse(t)}async fetchRecomputedExtents(e){this._timeExtentPromise||=(0,te.R)(this.timeInfo,this.featureStore);const[t,i]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,o.k_)(e),{fullExtent:t,timeExtent:i}}async _getBounds(e,t,i){const s=(0,h.t8)((0,h.Ue)(),h.G_);await this.featureStore.forEachBounds(e,(e=>(0,h.TC)(s,e)));const n={xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:(0,U.S2)(this.spatialReference)};this.hasZ&&isFinite(s[2])&&isFinite(s[5])&&(n.zmin=s[2],n.zmax=s[5]);const r=(0,L.iV)(n,t,i);if(r.spatialReference=(0,U.S2)(i),r.xmax-r.xmin==0){const e=(0,u.c9)(r.spatialReference);r.xmin-=e,r.xmax+=e}if(r.ymax-r.ymin==0){const e=(0,u.c9)(r.spatialReference);r.ymin-=e,r.ymax+=e}if(this.hasZ&&null!=r.zmin&&null!=r.zmax&&r.zmax-r.zmin==0){const e=(0,u.c9)(r.spatialReference);r.zmin-=e,r.zmax+=e}return r}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then((e=>this._getBounds(e,this.spatialReference,this.spatialReference))),this._fullExtentPromise}async _schedule(e,t){return null!=this._frameTask?this._frameTask.schedule(e,t):e(Ce)}async _reschedule(e,t){return null!=this._frameTask?this._frameTask.reschedule(e,t):e(Ce)}async _getAllFeaturesQueryEngineResult(e){return new W(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){const e=[];this._allFeaturesPromise=(async()=>{await this.featureStore.forEach((t=>e.push(t)))})().then((()=>e))}const e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async _executeQuery(e,t,i){e=(0,r.d9)(e),e=await this._schedule((()=>(0,U.Up)(e,this.definitionExpression,this.spatialReference)),i),e=await this._reschedule((()=>this._checkQuerySupport(e)),i),e={...e,...t};const s=await this._reschedule((()=>this._executeSceneFilterQuery(e,i)),i),n=await this._reschedule((()=>this._executeGeometryQuery(e,s,i)),i);return await this._reschedule((()=>this._executeAggregateIdsQuery(n)),i),await this._reschedule((()=>this._executeObjectIdsQuery(n)),i),await this._reschedule((()=>this._executeTimeQuery(n)),i),await this._reschedule((()=>this._executeAttributesQuery(n)),i),n}async _executeSceneFilterQuery(e,t){if(null==e.sceneFilter)return null;const{outSR:i,returnGeometry:s,returnCentroid:n}=e,r=this.featureStore.featureSpatialReference,a=e.sceneFilter.geometry,l=null==r||(0,g.fS)(r,a.spatialReference)?a:(0,L.iV)(a,r);if(!l)return null;const o=s||n,u=(0,g.JY)(i)&&!(0,g.fS)(this.spatialReference,i)&&o?async e=>this._project(e,i):e=>e,c=this.featureAdapter,h=await this._reschedule((()=>this._searchFeatures(this._getQueryBBoxes(l))),t);if("disjoint"===e.sceneFilter.spatialRelationship){if(!h.length)return null;const i=new Set;for(const e of h)i.add(c.getObjectId(e));const s=await this._reschedule((()=>this._getAllFeatures()),t),n=await this._reschedule((async()=>{const n=await(0,ee.cW)("esriSpatialRelDisjoint",l,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(s,(e=>!i.has(c.getObjectId(e))||n(c.getGeometry(e))),t);return new W(r,e,this)}),t);return u(n)}if(!h.length)return new W([],e,this);if(this._canExecuteSinglePass(l,e))return u(new W(h,e,this));const d=await(0,ee.cW)("esriSpatialRelContains",l,this.geometryType,this.hasZ,this.hasM),f=await this._runSpatialFilter(h,(e=>d(c.getGeometry(e))),t);return u(new W(f,e,this))}async _executeGeometryQuery(e,t,i){if(null!=t&&0===t.items.length)return t;e=null!=t?t.query:e;const{geometry:n,outSR:r,spatialRel:a,returnGeometry:l,returnCentroid:o}=e,u=this.featureStore.featureSpatialReference,c=!n||null==u||(0,g.fS)(u,n.spatialReference)?n:(0,L.iV)(n,u),h=l||o,d=(0,g.JY)(r)&&!(0,g.fS)(this.spatialReference,r),f=this._geometryQueryCache&&null==t?d&&h?JSON.stringify({originalFilterGeometry:n,spatialRelationship:a,outSpatialReference:r}):JSON.stringify({originalFilterGeometry:n,spatialRelationship:a}):null,m=f?this._geometryQueryCache.get(f):null;if(null!=m)return new W(m,e,this);const p=async e=>(d&&h&&await this._project(e,r),f&&this._geometryQueryCache.put(f,e.items,e.items.length+1),e);if(!c)return p(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const y=this.featureAdapter;let _=await this._reschedule((()=>this._searchFeatures(this._getQueryBBoxes(n))),i);if("esriSpatialRelDisjoint"===a){if(!_.length)return p(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const s=new Set;for(const e of _)s.add(y.getObjectId(e));const n=null!=t?t.items:await this._reschedule((()=>this._getAllFeatures()),i),r=await this._reschedule((async()=>{const t=await(0,ee.cW)(a,c,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(n,(e=>!s.has(y.getObjectId(e))||t(y.getGeometry(e))),i);return new W(r,e,this)}),i);return p(r)}if(null!=t){const e=new s.SO;_=_.filter((i=>(0,s.cq)(t.items,i,t.items.length,e)>=0))}if(!_.length){const t=new W([],e,this);return f&&this._geometryQueryCache.put(f,t.items,1),t}if(this._canExecuteSinglePass(c,e))return p(new W(_,e,this));const x=await(0,ee.cW)(a,c,this.geometryType,this.hasZ,this.hasM),T=await this._runSpatialFilter(_,(e=>x(y.getGeometry(e))),i);return p(new W(T,e,this))}async _executeGeometryQueryForSnapping(e,t){const{query:i}=e,{spatialRel:s}=i;if(!(null!=e&&e.items&&e.items.length&&i.geometry&&s))return;const n=await(0,ee.cW)(s,i.geometry,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(e.items,(e=>n(e.geometry)),t);e.items=r}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds||!e.query.aggregateIds.length||null==this.aggregateAdapter)return;const t=new Set;for(const i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach((e=>t.add(e)));const i=this.featureAdapter.getObjectId;e.items=e.items.filter((e=>t.has(i(e))))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds||!e.query.objectIds.length)return;const t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter((e=>t.has(i(e))))}_executeTimeQuery(e){if(0===e.items.length)return;const t=(0,te.y)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;const t=V(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw new TypeError("Where clause is not standardized");e.items=e.items.filter((e=>t.testFeature(e,this.featureAdapter)))}}async _runSpatialFilter(e,t,i){if(!t)return e;if(null==this._frameTask)return e.filter((e=>t(e)));let s=0;const n=new Array,r=async a=>{for(;s<e.length;){const l=e[s++];t(l)&&(n.push(l),a.madeProgress()),a.done&&await this._reschedule((e=>r(e)),i)}};return this._reschedule((e=>r(e)),i).then((()=>n))}_filterLatest(e){const{trackIdField:t,startTimeField:i,endTimeField:s}=this.timeInfo,n=s||i,r=new Map,a=this.featureAdapter.getAttribute;for(const i of e.items){const e=a(i,t),s=a(i,n),l=r.get(e);(!l||s>a(l,n))&&r.set(e,i)}e.items=Array.from(r.values())}_canExecuteSinglePass(e,t){const{spatialRel:i}=t;return(0,ee.hN)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,g.fS)(this.spatialReference,t))return e;const i=this.featureAdapter;let s;try{const e=await this._getFullExtent();s=(0,c.getTransformation)(this.spatialReference,t,e)}catch{}const n=await(0,L.oj)(e.items.map((e=>(0,U.Op)(this.geometryType,this.hasZ,this.hasM,i.getGeometry(e)))),this.spatialReference,t,s);return e.items=n.map(((t,s)=>i.cloneWithGeometry(e.items[s],(0,y.GH)(t,this.hasZ,this.hasM)))),e}_getQueryBBoxes(e){if((0,ee.hN)(e)){if((0,m.YX)(e))return[(0,d.al)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.oU)(e))return e.rings.map((e=>(0,d.al)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1]))))}return[(0,f.$P)((0,d.Ue)(),e)]}async _searchFeatures(e){const t=new Set;await Promise.all(e.map((e=>this.featureStore.forEachInBounds(e,(e=>t.add(e))))));const i=Array.from(t.values());return t.clear(),i}async _checkStatisticsSupport(e,t){if((e.distance??0)<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new n.Z(ke,"Unsupported query options",{query:e});return this._checkAttributesQuerySupport(e),Promise.all([this._checkStatisticsParamsSupport(t,e),(0,ee.P0)(e,this.geometryType,this.spatialReference),(0,L._W)(this.spatialReference,e.outSR)]).then((()=>e))}async _checkStatisticsParamsSupport(e,t){let i=[];if(e.valueExpression){const{arcadeUtils:t}=await(0,j.LC)();i=t.extractFieldNames(e.valueExpression)}if(e.field&&i.push(e.field),e.field2&&i.push(e.field2),e.field3&&i.push(e.field3),e.normalizationField&&i.push(e.normalizationField),!i.length&&!e.valueExpression)throw new n.Z(ke,"field or valueExpression is required",{params:e});k(this.fieldsIndex,i,{errorMessage:"Cannot calculate statistics for missing fields",query:t}),D(this.fieldsIndex,i,{expressionName:"statistics",query:t})}async _checkQuerySupport(e){if((e.distance??0)<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new n.Z(ke,"Unsupported query options",{query:e});return this._checkAttributesQuerySupport(e),this._checkStatisticsQuerySupport(e),Promise.all([(0,ee.P0)(e,this.geometryType,this.spatialReference),(0,L._W)(this.spatialReference,e.outSR)]).then((()=>e))}_checkAttributesQuerySupport(e){const{outFields:t,orderByFields:i,returnDistinctValues:s,outStatistics:r}=e,a=r?r.map((e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase())).filter(Boolean):[];if(i&&i.length>0){const t=" asc",s=" desc",n=i.map((e=>{const i=e.toLowerCase();return i.includes(t)?i.split(t)[0]:i.includes(s)?i.split(s)[0]:e})).filter((e=>!a.includes(e)));k(this.fieldsIndex,n,{expressionName:"orderByFields",query:e})}if(t&&t.length>0)k(this.fieldsIndex,t,{expressionName:"outFields",query:e});else if(s)throw new n.Z(ke,"outFields should be specified for returnDistinctValues",{query:e});!function(e,t,i){if(!t)return!0;const s="where clause",n=N(t,e,{validateStandardized:!0,expressionName:s});k(e,n,{expressionName:s,query:i}),D(e,n,{expressionName:s,query:i})}(this.fieldsIndex,e.where,e)}_checkStatisticsQuerySupport(e){const{outStatistics:t,groupByFieldsForStatistics:i,having:s}=e,r=i&&i.length,a=t&&t.length;if(s){if(!r||!a)throw new n.Z(ke,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:e});C(this.fieldsIndex,s,t,e)}if(a){if(!function(e){return null!=e&&e.every((e=>"exceedslimit"!==e.statisticType))}(t))return;const s=t.map((e=>e.onStatisticField)).filter(Boolean);k(this.fieldsIndex,s,{expressionName:"onStatisticFields",query:e}),r&&k(this.fieldsIndex,i,{expressionName:"groupByFieldsForStatistics",query:e});const a=new Set([...F.jsonValues,...b.jsonValues]),l=new Intl.ListFormat("en-US",{type:"conjunction"}).format([...F.apiValues,...b.apiValues]);for(const i of t){const{onStatisticField:t,statisticType:s}=i;if("percentile_disc"!==s&&"percentile_cont"!==s||!("statisticParameters"in i)){if("count"!==s&&"min"!==s&&"max"!==s&&t&&M(t,this.fieldsIndex,a))throw new n.Z(ke,`outStatistics with '${s}' statistic type, only supports ${l} field types`,{definition:i,query:e})}else{const{statisticParameters:t}=i;if(!t)throw new n.Z(ke,"statisticParameters should be set for percentile type",{definition:i,query:e})}}}}async _getQueryEngineResultForStats(e,t,i){e=(0,r.d9)(e);try{e=await this._schedule((()=>(0,U.Up)(e,this.definitionExpression,this.spatialReference)),i),e=await this._reschedule((()=>this._checkStatisticsSupport(e,t)),i);const s=await this._reschedule((()=>this._executeSceneFilterQuery(e,i)),i),n=await this._reschedule((()=>this._executeGeometryQuery(e,s,i)),i);return await this._reschedule((()=>this._executeAggregateIdsQuery(n)),i),await this._reschedule((()=>this._executeObjectIdsQuery(n)),i),await this._reschedule((()=>this._executeTimeQuery(n)),i),await this._reschedule((()=>this._executeAttributesQuery(n)),i),n}catch(t){if(t!==U.Ti)throw t;return new W([],e,this)}}}},10402:(e,t,i)=>{i.d(t,{hN:()=>S,P0:()=>T,cW:()=>x});var s=i(20102),n=i(54102),r=i(87416),a=i(33955),l=i(8744);function o(e,t){return e?t?4:3:t?3:2}function u(e,t,i,s,n,r){const a=o(n,r),{coords:l,lengths:u}=s;if(!u)return!1;for(let s=0,n=0;s<u.length;s++,n+=a)if(!c(e,t,i,l[n],l[n+1]))return!1;return!0}function c(e,t,i,s,n){if(!e)return!1;const r=o(t,i),{coords:a,lengths:l}=e;let u=!1,c=0;for(const e of l)u=h(u,a,r,c,e,s,n),c+=e*r;return u}function h(e,t,i,s,n,r,a){let l=e,o=s;for(let e=s,u=s+n*i;e<u;e+=i){o=e+i,o===u&&(o=s);const n=t[e],c=t[e+1],h=t[o],d=t[o+1];(c<a&&d>=a||d<a&&c>=a)&&n+(a-c)/(d-c)*(h-n)<r&&(l=!l)}return l}var d=i(98732),f=i(5428),m=i(37427),p=i(11490);const g="feature-store:unsupported-query",y={esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"intersects",esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:null},_={spatialRelationship:{esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},queryGeometry:{esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},layerGeometry:{esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1}};function x(e,t,s,l,o){if((0,a.oU)(t)&&"esriGeometryPoint"===s&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){const e=(0,d.Uy)(new f.Z,t,!1,!1);return Promise.resolve((t=>function(e,t,i,s){return c(e,!1,!1,s.coords[0],s.coords[1])}(e,0,0,t)))}if((0,a.oU)(t)&&"esriGeometryMultipoint"===s){const i=(0,d.Uy)(new f.Z,t,!1,!1);if("esriSpatialRelContains"===e)return Promise.resolve((e=>u(i,!1,!1,e,l,o)))}if((0,a.YX)(t)&&"esriGeometryPoint"===s&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return Promise.resolve((e=>(0,n.aV)(t,(0,p.Op)(s,l,o,e))));if((0,a.YX)(t)&&"esriGeometryMultipoint"===s&&"esriSpatialRelContains"===e)return Promise.resolve((e=>(0,n.lQ)(t,(0,p.Op)(s,l,o,e))));if((0,a.YX)(t)&&"esriSpatialRelIntersects"===e){const e="mesh"===(h=s)?r.h_:(0,r.IY)(h);return Promise.resolve((i=>e(t,(0,p.Op)(s,l,o,i))))}var h;return Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)).then((i=>{const n=i[y[e]].bind(null,t.spatialReference,t);return e=>n((0,p.Op)(s,l,o,e))}))}async function T(e,t,i){const{spatialRel:n,geometry:r}=e;if(r){if(!function(e){return null!=e&&!0===_.spatialRelationship[e]}(n))throw new s.Z(g,"Unsupported query spatial relationship",{query:e});if((0,l.JY)(r.spatialReference)&&(0,l.JY)(i)){if(!function(e){return null!=e&&!0===_.queryGeometry[(0,a.Ji)(e)]}(r))throw new s.Z(g,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===_.layerGeometry[e]}(t))throw new s.Z(g,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,m._W)(e.geometry&&e.geometry.spatialReference,e.outSR)}}}function S(e){if((0,a.YX)(e))return!0;if((0,a.oU)(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},17590:(e,t,i)=>{async function s(e,t){if(!e)return null;const i=t.featureAdapter,{startTimeField:s,endTimeField:n}=e;let r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(s&&n)await t.forEach((e=>{const t=i.getAttribute(e,s),l=i.getAttribute(e,n);null==t||isNaN(t)||(r=Math.min(r,t)),null==l||isNaN(l)||(a=Math.max(a,l))}));else{const e=s||n;await t.forEach((t=>{const s=i.getAttribute(t,e);null==s||isNaN(s)||(r=Math.min(r,s),a=Math.max(a,s))}))}return{start:r,end:a}}function n(e,t,i){if(!t||!e)return null;const{startTimeField:s,endTimeField:n}=e;if(!s&&!n)return null;const{start:r,end:a}=t;if(null===r&&null===a)return null;if(void 0===r&&void 0===a)return()=>!1;const l=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return s&&n?function(e,t,i,s,n){return null!=s&&null!=n?r=>{const a=e(r,t),l=e(r,i);return(null==a||a<=n)&&(null==l||l>=s)}:null!=s?t=>{const n=e(t,i);return null==n||n>=s}:null!=n?i=>{const s=e(i,t);return null==s||s<=n}:void 0}(l,s,n,r,a):function(e,t,i,s){return null!=i&&null!=s&&i===s?s=>e(s,t)===i:null!=i&&null!=s?n=>{const r=e(n,t);return r>=i&&r<=s}:null!=i?s=>e(s,t)>=i:null!=s?i=>e(i,t)<=s:void 0}(l,s||n,r,a)}i.d(t,{R:()=>s,y:()=>n})},11490:(e,t,i)=>{i.d(t,{EG:()=>x,Op:()=>T,S2:()=>R,Ti:()=>m,Up:()=>S,j6:()=>I});var s=i(35454),n=i(67900),r=i(73615),a=i(49600),l=i(33955),o=i(16306),u=i(8744),c=i(98732),h=i(5428),d=i(37427);const f=new s.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({}),p=new h.Z,g=new h.Z,y=new h.Z,_={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function x(e,t,i,s=e.hasZ,n=e.hasM){if(null==t)return null;const r=e.hasZ&&s,a=e.hasM&&n;if(i){const l=(0,c.Nh)(y,t,e.hasZ,e.hasM,"esriGeometryPoint",i,s,n);return(0,c.fQ)(l,r,a)}return(0,c.fQ)(t,r,a)}function T(e,t,i,s,n,r,a=t,l=i){const o=t&&a,u=i&&l,h=null!=s?"coords"in s?s:s.geometry:null;if(null==h)return null;if(n){let s=(0,c.zj)(g,h,t,i,e,n,a,l);return r&&(s=(0,c.Nh)(y,s,o,u,e,r)),_[e]?.(s,o,u)??null}if(r){const s=(0,c.Nh)(y,h,t,i,e,r,a,l);return _[e]?.(s,o,u)??null}return(0,c.hY)(p,h,t,i,a,l),_[e]?.(p,o,u)??null}async function S(e,t,i){const{outFields:s,orderByFields:n,groupByFieldsForStatistics:r,outStatistics:a}=e;if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),I(e,t,i)}async function I(e,t,s){if(!e)return null;let{where:r}=e;if(e.where=r=r&&r.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let c=await async function(e){const{distance:t,units:s}=e,r=e.geometry;if(null==t||"vertexAttributes"in r)return r;const a=r.spatialReference,l=s?f.fromJSON(s):(0,n.qE)(a),o=a&&((0,u.sT)(a)||(0,u.sS)(a))?r:await(0,d._W)(a,u.Zn).then((()=>(0,d.iV)(r,u.Zn)));return(await async function(){return(await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247))).geodesicBuffer}())(o.spatialReference,o,t,l)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;c=(0,a.aO)(c),c.spatialReference=t}if(c){await(0,d._W)(c.spatialReference,s),c=function(e,t){const i=e.spatialReference;return E(e,t)&&(0,l.YX)(e)?{spatialReference:i,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(c,s);const t=(await(0,o.aX)((0,l.im)(c)))[0];if(null==t)throw m;const i="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=i&&E(c,s)?{densificationStep:8*i}:void 0,r=t.toJSON(),a=await(0,d.iV)(r,r.spatialReference,s,n);if(!a)throw m;a.spatialReference=s,e.geometry=a}return e}function E(e,t){if(!e)return!1;const i=e.spatialReference;return((0,l.YX)(e)||(0,l.oU)(e)||(0,l.l9)(e))&&!(0,u.fS)(i,t)&&!(0,r.canProjectWithoutEngine)(i,t)}function R(e){return e&&F in e?JSON.parse(JSON.stringify(e,b)):e}const F="_geVersion",b=(e,t)=>e!==F?t:void 0},10278:(e,t,i)=>{i.d(t,{Z:()=>d});var s=i(43697),n=i(35454),r=i(96674),a=i(5600),l=(i(75215),i(67676),i(80442),i(36030)),o=i(52011);const u=new n.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let h=class extends r.wq{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,l.J)({classBreaksDef:"class-breaks-definition"})],h.prototype,"type",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"breakCount",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"classificationField",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:u.read,write:u.write}})],h.prototype,"classificationMethod",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,s._)([(0,a.Cb)({json:{read:c.read,write:c.write}})],h.prototype,"normalizationType",void 0),(0,s._)([(0,a.Cb)({value:null,json:{write:!0}})],h.prototype,"standardDeviationInterval",null),(0,s._)([(0,a.Cb)({value:null,json:{write:!0}})],h.prototype,"definedInterval",null),h=(0,s._)([(0,o.j)("esri.rest.support.ClassBreaksDefinition")],h);const d=h},622:(e,t,i)=>{i.d(t,{k:()=>r});const s=i(92604).Z.getLogger("esri.rest.support.generateRendererUtils");function n(e,t){return Number(e.toFixed(t))}function r(e){const{normalizationTotal:t}=e;return{classBreaks:a(e),normalizationTotal:t}}function a(e){const t=e.definition,{classificationMethod:i,normalizationType:s,definedInterval:r}=t,a=t.breakCount??1,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,t)=>e-t));const h=c[0],d=c[c.length-1];if("equal-interval"===i)if(c.length>=a){const e=(d-h)/a;let t=h;for(let i=1;i<a;i++){const r=n(h+i*e,6);u.push({minValue:t,maxValue:r,label:l(t,r,s)}),t=r}u.push({minValue:t,maxValue:d,label:l(t,d,s)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:l(e,e,s)})}));else if("natural-breaks"===i){const t=function(e){const t=[],i=[];let s=Number.MIN_VALUE,n=1,r=-1;for(let a=0;a<e.length;a++){const l=e[a];l===s?(n++,i[r]=n):null!==l&&(t.push(l),s=l,n=1,i.push(n),r++)}return{uniqueValues:t,valueFrequency:i}}(c),i=e.valueFrequency||t.valueFrequency,r=o(t.uniqueValues,i,a);let f=h;for(let e=1;e<a;e++)if(t.uniqueValues.length>e){const i=n(t.uniqueValues[r[e]],6);u.push({minValue:f,maxValue:i,label:l(f,i,s)}),f=i}u.push({minValue:f,maxValue:d,label:l(f,d,s)})}else if("quantile"===i)if(c.length>=a&&h!==d){let e=h,t=Math.ceil(c.length/a),i=0;for(let n=1;n<a;n++){let r=t+i-1;r>c.length&&(r=c.length-1),r<0&&(r=0),u.push({minValue:e,maxValue:c[r],label:l(e,c[r],s)}),e=c[r],i+=t,t=Math.ceil((c.length-i)/(a-n))}u.push({minValue:e,maxValue:d,label:l(e,d,s)})}else{let e=-1;for(let t=0;t<c.length;t++){const i=c[t];i!==e&&(e=i,u.push({minValue:e,maxValue:i,label:l(e,i,s)}),e=i)}}else if("standard-deviation"===i){const e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(c),t=function(e,t){let i=0;for(let s=0;s<e.length;s++){const n=e[s];i+=(n-t)*(n-t)}return i/=e.length,Math.sqrt(i)}(c,e);if(0===t)u.push({minValue:c[0],maxValue:c[0],label:l(c[0],c[0],s)});else{const i=function(e,t,i,s,n){let r=Math.max(s-e,t-s)/n/i;return r=r>=1?1:r>=.5?.5:.25,r}(h,d,a,e,t)*t;let r=0,o=h;for(let t=a;t>=1;t--){const a=n(e-(t-.5)*i,6);u.push({minValue:o,maxValue:a,label:l(o,a,s)}),o=a,r++}let c=n(e+.5*i,6);u.push({minValue:o,maxValue:c,label:l(o,c,s)}),o=c,r++;for(let t=1;t<=a;t++)c=r===2*a?d:n(e+(t+.5)*i,6),u.push({minValue:o,maxValue:c,label:l(o,c,s)}),o=c,r++}}else if("defined-interval"===i){if(!r)return u;const e=c[0],t=c[c.length-1],i=Math.ceil((t-e)/r);let a=e;for(let t=1;t<i;t++){const i=n(e+t*r,6);u.push({minValue:a,maxValue:i,label:l(a,i,s)}),a=i}u.push({minValue:a,maxValue:t,label:l(a,t,s)})}return u}function l(e,t,i){let s=null;return s=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,s}function o(e,t,i){const s=e.length,n=[];i>s&&(i=s);for(let e=0;e<i;e++)n.push(Math.round(e*s/i-1));n.push(s-1);let r=u(n,e,t,i);return function(e,t,i,s,n,r){let a=0,l=0,o=0,u=0,h=!0;for(let d=0;d<2&&h;d++){0===d&&(h=!1);for(let d=0;d<r-1;d++)for(;i[d+1]+1!==i[d+2];){i[d+1]=i[d+1]+1;const r=c(d,i,s,n);o=r.sbMean,a=r.sbSdcm;const f=c(d+1,i,s,n);if(u=f.sbMean,l=f.sbSdcm,!(a+l<t[d]+t[d+1])){i[d+1]=i[d+1]-1;break}t[d]=a,t[d+1]=l,e[d]=o,e[d+1]=u,h=!0}for(let d=r-1;d>0;d--)for(;i[d]!==i[d-1]+1;){i[d]=i[d]-1;const r=c(d-1,i,s,n);o=r.sbMean,a=r.sbSdcm;const f=c(d,i,s,n);if(u=f.sbMean,l=f.sbSdcm,!(a+l<t[d-1]+t[d])){i[d]=i[d]+1;break}t[d-1]=a,t[d]=l,e[d-1]=o,e[d]=u,h=!0}}return h}(r.mean,r.sdcm,n,e,t,i)&&(r=u(n,e,t,i)),n}function u(e,t,i,s){let n=[],r=[],a=[],l=0;const o=[],u=[];for(let n=0;n<s;n++){const s=c(n,e,t,i);o.push(s.sbMean),u.push(s.sbSdcm),l+=u[n]}let h,d=l,f=!0;for(;f||l<d;){f=!1,n=[];for(let t=0;t<s;t++)n.push(e[t]);for(let i=0;i<s;i++)for(let n=e[i]+1;n<=e[i+1];n++)if(h=t[n],i>0&&n!==e[i+1]&&Math.abs(h-o[i])>Math.abs(h-o[i-1]))e[i]=n;else if(i<s-1&&e[i]!==n-1&&Math.abs(h-o[i])>Math.abs(h-o[i+1])){e[i+1]=n-1;break}d=l,l=0,r=[],a=[];for(let n=0;n<s;n++){r.push(o[n]),a.push(u[n]);const s=c(n,e,t,i);o[n]=s.sbMean,u[n]=s.sbSdcm,l+=u[n]}}if(l>d){for(let t=0;t<s;t++)e[t]=n[t],o[t]=r[t],u[t]=a[t];l=d}return{mean:o,sdcm:u}}function c(e,t,i,n){let r=0,a=0;for(let s=t[e]+1;s<=t[e+1];s++){const e=n[s];r+=i[s]*e,a+=e}a<=0&&s.warn("Exception in Natural Breaks calculation");const l=r/a;let o=0;for(let s=t[e]+1;s<=t[e+1];s++)o+=n[s]*(i[s]-l)**2;return{sbMean:l,sbSdcm:o}}},24452:(e,t,i)=>{i.d(t,{DL:()=>A,F_:()=>I,G2:()=>w,H0:()=>p,Lq:()=>_,Qm:()=>F,S5:()=>m,XL:()=>y,eT:()=>E,fk:()=>b,i5:()=>g,oF:()=>N,wk:()=>f});var s=i(10278),n=i(622);const r="<Null>",a="equal-interval",l=1,o=5,u=10,c=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,h=new Set(["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]),d=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function f(e){return null==e||"string"==typeof e&&!e?r:e}function m(e){const t=null!=e.normalizationField||null!=e.normalizationType,i=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!i&&!s}function p(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,i=t.filter((e=>null!=e)).sort(),s=i.length,n={count:s,min:i[0],max:i[s-1]};return e.supportsNullCount&&(n.nullcount=t.length-s),e.percentileParams&&(n.median=y(t,e.percentileParams)),n}function g(e){const{values:t,useSampleStdDev:i,supportsNullCount:s}=e;let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,a=null,l=null,o=null,u=null,c=0;const h=null==e.minValue?-1/0:e.minValue,d=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=h&&e<=d&&(a=null===a?e:a+e,n=Math.min(n,e),r=Math.max(r,e),c++):"string"==typeof e&&c++;if(c&&null!=a){l=a/c;let e=0;for(const i of t)Number.isFinite(i)&&i>=h&&i<=d&&(e+=(i-l)**2);u=i?c>1?e/(c-1):0:c>0?e/c:0,o=Math.sqrt(u)}else n=null,r=null;const f={avg:l,count:c,max:r,min:n,stddev:o,sum:a,variance:u};return s&&(f.nullcount=t.length-c),e.percentileParams&&(f.median=y(t,e.percentileParams)),f}function y(e,t){const{fieldType:i,value:s,orderBy:n,isDiscrete:r}=t,a=_(i,"desc"===n);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>a(e,t)))).length)return null;if(s<=0)return e[0];if(s>=1)return e[e.length-1];const l=(e.length-1)*s,o=Math.floor(l),u=o+1,c=l%1,h=e[o],d=e[u];return u>=e.length||r||"string"==typeof h||"string"==typeof d?h:h*(1-c)+d*c}function _(e,t){const i=t?1:-1,s=function(e){return e?(e,t)=>{const i=x(e,t,!0);return null!=i?i:t-e}:(e,t)=>{const i=x(e,t,!1);return null!=i?i:e-t}}(t),n=T(t);if(!e||!["esriFieldTypeDate","esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...h].includes(e))return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?n(e,t):i;if("esriFieldTypeDate"===e)return(e,t)=>{const n=new Date(e).getTime(),r=new Date(t).getTime();return isNaN(n)||isNaN(r)?i:s(n,r)};if(h.has(e))return(e,t)=>s(e,t);if("esriFieldTypeString"===e)return(e,t)=>n(e,t);if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e){const e=T(t);return(t,i)=>e(S(t),S(i))}return t?(e,t)=>1:(e,t)=>-1}function x(e,t,i){if(i){if(null==e)return null==t?0:1;if(null==t)return-1}else{if(null==e)return null==t?0:-1;if(null==t)return 1}return null}function T(e){return e?(e,t)=>{const i=x(e,t,!0);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=x(e,t,!1);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}function S(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function I(e,t){let i;for(i in e)d.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return t?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))})),e):e}function E(e){const t={};for(let i of e)(null==i||"string"==typeof i&&""===i.trim())&&(i=null),null==t[i]?t[i]={count:1,data:i}:t[i].count++;return{count:t}}function R(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function F(e,t,i,s){const n=e.count,r=[];if(i&&t){const e=[],i=R(t[0]);for(const n of i)if(t[1]){const i=R(t[1]);for(const r of i)if(t[2]){const i=R(t[2]);for(const t of i)e.push(`${f(n)}${s}${f(r)}${s}${f(t)}`)}else e.push(`${f(n)}${s}${f(r)}`)}else e.push(n);for(const t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(const e in n){const t=n[e];r.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:r}}function b(e,t,i,s){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(n=e/s*100);break;case"field":Number.isFinite(i)&&0!==i&&(n=e/i);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function w(e,t){const i=v({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||o});return e=function(e,t,i){const s=t??-1/0,n=i??1/0;return e.filter((e=>Number.isFinite(e)&&e>=s&&e<=n))}(e,t.minValue,t.maxValue),(0,n.k)({definition:i,values:e,normalizationTotal:t.normalizationTotal})}function v(e){const{breakCount:t,field:i,normalizationField:n,normalizationType:r}=e,o=e.classificationMethod||a,u="standard-deviation"===o?e.standardDeviationInterval||l:void 0;return new s.Z({breakCount:t,classificationField:i,classificationMethod:o,normalizationField:"field"===r?n:void 0,normalizationType:r,standardDeviationInterval:u})}function A(e,t){let i=e.classBreaks;const s=i.length,n=i[0]?.minValue,r=i[s-1]?.maxValue,a="standard-deviation"===t,l=c;return i=i.map((e=>{const t=e.label,i={minValue:e.minValue,maxValue:e.maxValue,label:t};if(a&&t){const e=t.match(l),s=e?.map((e=>+e.trim()))??[];2===s.length?(i.minStdDev=s[0],i.maxStdDev=s[1],s[0]<0&&s[1]>0&&(i.hasAvg=!0)):1===s.length&&(t.includes("<")?(i.minStdDev=null,i.maxStdDev=s[0]):t.includes(">")&&(i.minStdDev=s[0],i.maxStdDev=null))}return i})),{minValue:n,maxValue:r,classBreakInfos:i,normalizationTotal:e.normalizationTotal}}function N(e,t){const i=C(e,t);if(null==i.min&&null==i.max)return{bins:[],minValue:i.min,maxValue:i.max,normalizationTotal:t.normalizationTotal};const s=i.intervals,n=i.min??0,r=i.max??0,a=s.map(((e,t)=>({minValue:s[t][0],maxValue:s[t][1],count:0})));for(const t of e)if(null!=t&&t>=n&&t<=r){const e=V(s,t);e>-1&&a[e].count++}return{bins:a,minValue:n,maxValue:r,normalizationTotal:t.normalizationTotal}}function C(e,t){const{field:i,classificationMethod:s,standardDeviationInterval:n,normalizationType:r,normalizationField:a,normalizationTotal:l,minValue:o,maxValue:c}=t,h=t.numBins||u;let d=null,f=null,p=null;if(s&&"equal-interval"!==s||r){const{classBreaks:t}=w(e,{field:i,normalizationType:r,normalizationField:a,normalizationTotal:l,classificationMethod:s,standardDeviationInterval:n,minValue:o,maxValue:c,numClasses:h});d=t[0].minValue,f=t[t.length-1].maxValue,p=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=o&&null!=c)d=o,f=c;else{const t=g({values:e,minValue:o,maxValue:c,useSampleStdDev:!r,supportsNullCount:m({normalizationType:r,normalizationField:a,minValue:o,maxValue:c})});d=t.min??null,f=t.max??null}p=function(e,t,i){const s=(t-e)/i,n=[];let r,a=e;for(let e=1;e<=i;e++)r=a+s,r=Number(r.toFixed(16)),n.push([a,e===i?t:r]),a=r;return n}(d??0,f??0,h)}return{min:d,max:f,intervals:p}}function V(e,t){let i=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){i=s;break}return i}},95720:(e,t,i)=>{var s;i.d(t,{n:()=>s}),function(e){e[e.ANIMATING=0]="ANIMATING",e[e.INTERACTING=1]="INTERACTING",e[e.IDLE=2]="IDLE"}(s||(s={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5235],{15235:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var r=i(43697),o=i(99880),a=i(40330),s=i(20102),n=i(96674),l=i(22974),p=i(83379),c=i(17452),d=i(5600),u=i(75215),h=i(71715),m=i(52011),g=i(6570),y=i(48522),b=i(92036),v=i(92604),w=i(90578);i(67676),i(80442);let f=class extends b.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){null!=e&&(0,c.YP)(e)?v.Z.getLogger(this).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get cdnUrl(){return this.portalItem&&this.path?`${this.portalItem.itemCdnUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const i=this.cdnUrl;if(null==i)throw new s.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal.request(i,{responseType:e,query:{token:this.portalItem.apiKey},signal:t?.signal})}async update(e,t){const{addOrUpdateResource:r}=await i.e(7873).then(i.bind(i,97873));return r(this,"update",e,t)}hasPath(){return null!=this.path}_normalizePath(e,t){return null==e?e:(e=e.replace(/^\/+/,""),null!=t&&(0,c.YP)(e)&&(e=(0,c.PF)(e,t.itemUrl)),e?.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,r._)([(0,d.Cb)()],f.prototype,"portalItem",void 0),(0,r._)([(0,d.Cb)({type:String,value:null})],f.prototype,"path",null),(0,r._)([(0,w.p)("path")],f.prototype,"_castPath",null),(0,r._)([(0,d.Cb)({type:String,readOnly:!0})],f.prototype,"url",null),(0,r._)([(0,d.Cb)({type:String,readOnly:!0})],f.prototype,"cdnUrl",null),(0,r._)([(0,d.Cb)({type:String,readOnly:!0})],f.prototype,"itemRelativeUrl",null),f=(0,r._)([(0,m.j)("esri.portal.PortalItemResource")],f);const k=f;let C=class extends b.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,r._)([(0,d.Cb)()],C.prototype,"created",void 0),(0,r._)([(0,d.Cb)()],C.prototype,"rating",void 0),C=(0,r._)([(0,m.j)("esri.portal.PortalRating")],C);const S=C;var _;const I=new Set(["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","GeoJson","CSV","KML","WFS","WMTS","WMS","Feed"]),x=new Set(["KML","GeoJson","CSV"]);let U=_=class extends((0,n.eC)(p.Z)){static from(e){return(0,u.TJ)(_,e)}constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.isOrgItem=!1,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.sourceUrl=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let i=e;return"Feature Service"===e||"Feature Collection"===e?i=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":"Image Service"===e?i=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?i="Scene Layer":"Video Service"===e?i="Video Layer":"Scene Package"===e?i="Scene Layer Package":"Stream Service"===e?i="Feature Layer":"Geoprocessing Service"===e?i=t.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===e?i="Locator":"Geoenrichment Service"===e?i="GeoEnrichment Service":"Microsoft Powerpoint"===e?i="Microsoft PowerPoint":"GeoJson"===e?i="GeoJSON":"Globe Service"===e?i="Globe Layer":"Vector Tile Service"===e?i="Tile Layer":"netCDF"===e?i="NetCDF":"Map Service"===e?i=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e&&e.toLowerCase().includes("add in")?i=e.replaceAll(/(add in)/gi,"Add-In"):"datastore catalog service"===e?i="Big Data File Share":"Compact Tile Package"===e?i="Tile Package (tpkx)":"OGCFeatureServer"===e?i="OGC Feature Layer":"web mapping application"===e&&t.includes("configurableApp")?i="Instant App":"Insights Page"===e?i="Insights Report":"Excalibur Imagery Project"===e&&(i="Excalibur Project"),i}readExtent(e){return e&&e.length?new g.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[];let i,r=!1,a=!1,s=!1,n=!1,l=!1,p=!1,c=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(r=t.includes("Hosted Service"),"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(a=t.includes("Table"),s=t.includes("Route Layer"),n=t.includes("Markup"),l=t.includes("Spatiotemporal"),p=t.includes("UtilityNetwork"),i=l&&a?"spatiotemporaltable":a?"table":s?"routelayer":n?"markup":l?"spatiotemporal":r?"featureshosted":p?"utilitynetwork":"features"):i="map service"===e||"wms"===e||"wmts"===e?r||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"video service"===e?t.includes("Live Stream")?"livestreamvideolayer":"videolayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e?t.includes("Web Tool")?"tool":"layers":"geodata service"===e?"geodataservice":"3dtiles service"===e?"3dtileslayer":"layers"):"web map"===e||"cityengine web scene"===e?i="maps":"web scene"===e?i=t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.includes("configurableApp")?i="instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?i="apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.includes("ArcGIS Pro")||"explorer map"===e&&t.indexOf("Explorer Document")?i="mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"netcdf"===e||"administrative report"===e?i="datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?i="appsgray":"360 vr experience"===e?i="360vr":"arcgis pro add in"===e||"arcgis pro configuration"===e?i="addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"form"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.includes("Explorer Mapping Application")||t.includes("Document")?i="datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?i="toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?i="layersgray":"scene package"===e?i="scenepackage":"3dtiles package"===e?i="3dtileslayerpackage":"mobile scene package"===e?i="mobilescenepackage":"tile package"===e||"compact tile package"===e?i="tilepackage":"task file"===e?i="taskfile":"report template"===e?i="report-template":"statistical data collection"===e?i="statisticaldatacollection":"insights workbook"===e?i="workbook":"insights model"===e?i="insightsmodel":"insights page"===e?i="insightspage":"insights theme"===e?i="insightstheme":"hub initiative"===e?i="hubinitiative":"hubpage"===e?i="hubpage":"hub event"===e?i="hubevent":"hub site application"===e?i="hubsite":"hub project"===e?i="hubproject":"relational database connection"===e?i="relationaldatabaseconnection":"big data file share"===e?i="datastorecollection":"image collection"===e?i="imagecollection":"style"===e?i="style":"desktop style"===e?i="desktopstyle":"dashboard"===e?i="dashboard":"raster function template"===e?i="rasterprocessingtemplate":"vector tile package"===e?i="vectortilepackage":"ortho mapping project"===e?i="orthomappingproject":"ortho mapping template"===e?i="orthomappingtemplate":"solution"===e?i="solutions":"geopackage"===e?i="geopackage":"deep learning package"===e?i="deeplearningpackage":"real time analytic"===e?i="realtimeanalytics":"big data analytic"===e?i="bigdataanalytics":"feed"===e?i="feed":"excalibur imagery project"===e?i="excaliburimageryproject":"notebook"===e?i="notebook":"storymap"===e?i="storymap":"survey123 add in"===e?i="survey123addin":"mission"===e?i="mission":"mission report"===e?i="missionreport":"mission template"===e?i="missiontemplate":"quickcapture project"===e?i="quickcaptureproject":"pro report"===e?i="proreport":"pro report template"===e?i="proreporttemplate":"urban model"===e?i="urbanmodel":"web experience"===e?i="experiencebuilder":"web experience template"===e?i="webexperiencetemplate":"experience builder widget"===e?i="experiencebuilderwidget":"experience builder widget package"===e?i="experiencebuilderwidgetpackage":"workflow"===e?i="workflow":"insights script"===e?i="insightsscript":"kernel gateway connection"===e?i="kernelgatewayconnection":"hub initiative template"===e?i="hubinitiativetemplate":"storymap theme"===e?i="storymaptheme":"knowledge graph"===e?i="knowledgegraph":"knowledge studio project"===e?i="knowledgestudio":"native application"===e?i="nativeapp":"native application installer"===e?i="nativeappinstaller":"link chart"===e?i="linkchart":"investigation"===e?i="investigation":"ogcfeatureserver"===e?i="features":"pro project"===e?i="proproject":"insights workbook package"===e?i="insightsworkbookpackage":"apache parquet"===e?i="apacheparquet":"notebook code snippets"===e||"notebook code snippet library"===e?i="notebookcodesnippets":"suitability model"===e?i="suitabilitymodel":"esri classifier definition"===e?i="classifierdefinition":"esri classification schema"===e?i="classificationschema":"insights data engineering workbook"===e?i="dataengineeringworkbook":"insights data engineering model"===e?i="dataengineeringmodel":"deep learning studio project"===e?i="deeplearningproject":"discussion"===e?i="discussion":"allsource project"===e?i="allsourceproject":"api key"===e?i="apikey":"data pipeline"===e?i="datapipelines":"group layer"===e?(c=t.includes("Map"),i=c?"layergroup2d":"layergroup"):i="maps",i?(0,o.V)("esri/images/portal/"+i+"16.png"):null}get isLayer(){return null!=this.type&&I.has(this.type)}get itemCdnUrl(){let e=this.itemUrl;return e&&a.id&&!a.id.findCredential(e)&&(e=a.id._normalizeAGOLorgDomain(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}get itemPageUrl(){const e=this.portal?.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){const e=this.portal?.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`)??null:null}get userItemUrl(){const e=this.portal?.restUrl;if(!e)return null;const t=this.owner||this.portal?.user?.username;return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){const t=this.portal??(this.portal=y.Z.getDefault()),i=t.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t.request(this.itemUrl,{signal:null!=e?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(i),Promise.resolve(this)}async addRating(e){const t={method:"post",query:{}};return e instanceof S&&(e=e.rating),null==e||isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal?(await this.portal.request(this.itemUrl+"/addRating",t),new S({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,l.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,l.d9)(this.categories),created:(0,l.d9)(this.created),culture:this.culture,description:this.description,extent:(0,l.d9)(this.extent),groupCategories:(0,l.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,l.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,l.d9)(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus="loaded");const t=new _({sourceJSON:this.sourceJSON}).set(e);return t._set("isOrgItem",this.isOrgItem),t}createPostQuery(){const e=this.toJSON();for(const t of["tags","typeKeywords","categories"])e[t]=e[t]?.join(", ");const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await this.portal.request(this.itemUrl+"/deleteRating",{method:"post"})}fetchData(e="json",t){return this.portal.request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await this.portal.request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e});return null!=t.rating?(t.created=new Date(t.created),new S(t)):null}fetchRelatedItems(e,t){return this.portal.requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},_)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal.request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e&&e.data,i={method:"post"};i.query=this.createPostQuery();for(const e in i.query)null===i.query[e]&&(i.query[e]="");return i.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?i.query.text=t:"object"==typeof t&&(i.query.text=JSON.stringify(t))),this.portal.request(`${this.userItemUrl}/update`,i).then((()=>this.reload()))})):Promise.reject(new s.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async copy(e){if(!this.id)throw new s.Z("portal:item-does-not-exist","The item does not exist yet");await this.load();const{portal:t,itemUrl:i}=this;await t.signIn();const{copyResources:r,folder:o,tags:a,title:n}=e||{},l={method:"post",query:{copyPrivateResources:"all"===r,folder:"string"==typeof o?o:o?.id,includeResources:!!r,tags:a?.join(","),title:n}},{itemId:p}=await t.request(`${i}/copy`,l);return new _({id:p,portal:t})}updateThumbnail(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e.thumbnail,i=e.filename,r={method:"post"};if("string"==typeof t)(0,c.HK)(t)?r.query={data:t}:r.query={url:(0,c.hF)(t)},null!=i&&(r.query.filename=i);else{const e=new FormData;null!=i?e.append("file",t,i):e.append("file",t),r.body=e}return this.portal.request(`${this.userItemUrl}/updateThumbnail`,r).then((()=>this.reload()))})):Promise.reject(new s.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){const{fetchResources:r}=await i.e(7873).then(i.bind(i,97873));return r(this,e,t)}async addResource(e,t,r){const{addOrUpdateResource:o}=await i.e(7873).then(i.bind(i,97873));return e.portalItem=this,o(e,"add",t,r)}async removeResource(e,t){const{removeResource:r}=await i.e(7873).then(i.bind(i,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new s.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return r(this,e,t)}async removeAllResources(e){const{removeAllResources:t}=await i.e(7873).then(i.bind(i,97873));return t(this,e)}resourceFromPath(e){return new k({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:(0,l.d9)(this.categories),created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,isOrgItem:this.isOrgItem,licenseInfo:this.licenseInfo,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};return(0,l.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new _({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,r._)([(0,d.Cb)({type:["private","shared","org","public"]})],U.prototype,"access",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"accessInformation",void 0),(0,r._)([(0,d.Cb)({type:String})],U.prototype,"apiKey",void 0),(0,r._)([(0,d.Cb)({json:{read:{source:"appProxies"}}})],U.prototype,"applicationProxies",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"avgRating",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"categories",void 0),(0,r._)([(0,d.Cb)({type:Date})],U.prototype,"created",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"culture",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"description",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"displayName",null),(0,r._)([(0,d.Cb)({type:g.Z})],U.prototype,"extent",void 0),(0,r._)([(0,h.r)("extent")],U.prototype,"readExtent",null),(0,r._)([(0,d.Cb)()],U.prototype,"groupCategories",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"iconUrl",null),(0,r._)([(0,d.Cb)()],U.prototype,"id",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"isLayer",null),(0,r._)([(0,d.Cb)({type:Boolean,readOnly:!0})],U.prototype,"isOrgItem",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"itemControl",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"itemPageUrl",null),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"itemUrl",null),(0,r._)([(0,d.Cb)()],U.prototype,"licenseInfo",void 0),(0,r._)([(0,d.Cb)({type:Date})],U.prototype,"modified",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"name",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"numComments",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"numRatings",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"numViews",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"owner",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"ownerFolder",void 0),(0,r._)([(0,d.Cb)({type:y.Z})],U.prototype,"portal",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"screenshots",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"size",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"snippet",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"sourceJSON",void 0),(0,r._)([(0,d.Cb)({type:String})],U.prototype,"sourceUrl",void 0),(0,r._)([(0,d.Cb)({type:String})],U.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"tags",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"thumbnail",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"thumbnailUrl",null),(0,r._)([(0,d.Cb)()],U.prototype,"title",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"type",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"typeKeywords",void 0),(0,r._)([(0,d.Cb)({type:String,json:{read(e,t){if(x.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],U.prototype,"url",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"userItemUrl",null),U=_=(0,r._)([(0,m.j)("esri.portal.PortalItem")],U);const P=U}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5235],{15235:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var r=i(43697),o=i(99880),a=i(40330),s=i(20102),n=i(96674),l=i(22974),p=i(83379),c=i(17452),d=i(5600),u=i(75215),h=i(71715),m=i(52011),g=i(6570),y=i(48522),b=i(92036),v=i(92604),w=i(90578);i(67676),i(80442);let f=class extends b.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){null!=e&&(0,c.YP)(e)?v.Z.getLogger(this).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get cdnUrl(){return this.portalItem&&this.path?`${this.portalItem.itemCdnUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const i=this.cdnUrl;if(null==i)throw new s.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal.request(i,{responseType:e,query:{token:this.portalItem.apiKey},signal:t?.signal})}async update(e,t){const{addOrUpdateResource:r}=await i.e(7873).then(i.bind(i,97873));return r(this,"update",e,t)}hasPath(){return null!=this.path}_normalizePath(e,t){return null==e?e:(e=e.replace(/^\/+/,""),null!=t&&(0,c.YP)(e)&&(e=(0,c.PF)(e,t.itemUrl)),e?.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,r._)([(0,d.Cb)()],f.prototype,"portalItem",void 0),(0,r._)([(0,d.Cb)({type:String,value:null})],f.prototype,"path",null),(0,r._)([(0,w.p)("path")],f.prototype,"_castPath",null),(0,r._)([(0,d.Cb)({type:String,readOnly:!0})],f.prototype,"url",null),(0,r._)([(0,d.Cb)({type:String,readOnly:!0})],f.prototype,"cdnUrl",null),(0,r._)([(0,d.Cb)({type:String,readOnly:!0})],f.prototype,"itemRelativeUrl",null),f=(0,r._)([(0,m.j)("esri.portal.PortalItemResource")],f);const k=f;let C=class extends b.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,r._)([(0,d.Cb)()],C.prototype,"created",void 0),(0,r._)([(0,d.Cb)()],C.prototype,"rating",void 0),C=(0,r._)([(0,m.j)("esri.portal.PortalRating")],C);const S=C;var _;const I=new Set(["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","GeoJson","CSV","KML","WFS","WMTS","WMS","Feed"]),x=new Set(["KML","GeoJson","CSV"]);let U=_=class extends((0,n.eC)(p.Z)){static from(e){return(0,u.TJ)(_,e)}constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.isOrgItem=!1,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.sourceUrl=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let i=e;return"Feature Service"===e||"Feature Collection"===e?i=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":"Image Service"===e?i=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?i="Scene Layer":"Video Service"===e?i="Video Layer":"Scene Package"===e?i="Scene Layer Package":"Stream Service"===e?i="Feature Layer":"Geoprocessing Service"===e?i=t.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===e?i="Locator":"Geoenrichment Service"===e?i="GeoEnrichment Service":"Microsoft Powerpoint"===e?i="Microsoft PowerPoint":"GeoJson"===e?i="GeoJSON":"Globe Service"===e?i="Globe Layer":"Vector Tile Service"===e?i="Tile Layer":"netCDF"===e?i="NetCDF":"Map Service"===e?i=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e&&e.toLowerCase().includes("add in")?i=e.replaceAll(/(add in)/gi,"Add-In"):"datastore catalog service"===e?i="Big Data File Share":"Compact Tile Package"===e?i="Tile Package (tpkx)":"OGCFeatureServer"===e?i="OGC Feature Layer":"web mapping application"===e&&t.includes("configurableApp")?i="Instant App":"Insights Page"===e?i="Insights Report":"Excalibur Imagery Project"===e&&(i="Excalibur Project"),i}readExtent(e){return e&&e.length?new g.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[];let i,r=!1,a=!1,s=!1,n=!1,l=!1,p=!1,c=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(r=t.includes("Hosted Service"),"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(a=t.includes("Table"),s=t.includes("Route Layer"),n=t.includes("Markup"),l=t.includes("Spatiotemporal"),p=t.includes("UtilityNetwork"),i=l&&a?"spatiotemporaltable":a?"table":s?"routelayer":n?"markup":l?"spatiotemporal":r?"featureshosted":p?"utilitynetwork":"features"):i="map service"===e||"wms"===e||"wmts"===e?r||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"video service"===e?t.includes("Live Stream")?"livestreamvideolayer":"videolayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e?t.includes("Web Tool")?"tool":"layers":"geodata service"===e?"geodataservice":"3dtiles service"===e?"3dtileslayer":"layers"):"web map"===e||"cityengine web scene"===e?i="maps":"web scene"===e?i=t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.includes("configurableApp")?i="instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?i="apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.includes("ArcGIS Pro")||"explorer map"===e&&t.indexOf("Explorer Document")?i="mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"netcdf"===e||"administrative report"===e?i="datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?i="appsgray":"360 vr experience"===e?i="360vr":"arcgis pro add in"===e||"arcgis pro configuration"===e?i="addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"form"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.includes("Explorer Mapping Application")||t.includes("Document")?i="datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?i="toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?i="layersgray":"scene package"===e?i="scenepackage":"3dtiles package"===e?i="3dtileslayerpackage":"mobile scene package"===e?i="mobilescenepackage":"tile package"===e||"compact tile package"===e?i="tilepackage":"task file"===e?i="taskfile":"report template"===e?i="report-template":"statistical data collection"===e?i="statisticaldatacollection":"insights workbook"===e?i="workbook":"insights model"===e?i="insightsmodel":"insights page"===e?i="insightspage":"insights theme"===e?i="insightstheme":"hub initiative"===e?i="hubinitiative":"hubpage"===e?i="hubpage":"hub event"===e?i="hubevent":"hub site application"===e?i="hubsite":"hub project"===e?i="hubproject":"relational database connection"===e?i="relationaldatabaseconnection":"big data file share"===e?i="datastorecollection":"image collection"===e?i="imagecollection":"style"===e?i="style":"desktop style"===e?i="desktopstyle":"dashboard"===e?i="dashboard":"raster function template"===e?i="rasterprocessingtemplate":"vector tile package"===e?i="vectortilepackage":"ortho mapping project"===e?i="orthomappingproject":"ortho mapping template"===e?i="orthomappingtemplate":"solution"===e?i="solutions":"geopackage"===e?i="geopackage":"deep learning package"===e?i="deeplearningpackage":"real time analytic"===e?i="realtimeanalytics":"big data analytic"===e?i="bigdataanalytics":"feed"===e?i="feed":"excalibur imagery project"===e?i="excaliburimageryproject":"notebook"===e?i="notebook":"storymap"===e?i="storymap":"survey123 add in"===e?i="survey123addin":"mission"===e?i="mission":"mission report"===e?i="missionreport":"mission template"===e?i="missiontemplate":"quickcapture project"===e?i="quickcaptureproject":"pro report"===e?i="proreport":"pro report template"===e?i="proreporttemplate":"urban model"===e?i="urbanmodel":"web experience"===e?i="experiencebuilder":"web experience template"===e?i="webexperiencetemplate":"experience builder widget"===e?i="experiencebuilderwidget":"experience builder widget package"===e?i="experiencebuilderwidgetpackage":"workflow"===e?i="workflow":"insights script"===e?i="insightsscript":"kernel gateway connection"===e?i="kernelgatewayconnection":"hub initiative template"===e?i="hubinitiativetemplate":"storymap theme"===e?i="storymaptheme":"knowledge graph"===e?i="knowledgegraph":"knowledge studio project"===e?i="knowledgestudio":"native application"===e?i="nativeapp":"native application installer"===e?i="nativeappinstaller":"link chart"===e?i="linkchart":"investigation"===e?i="investigation":"ogcfeatureserver"===e?i="features":"pro project"===e?i="proproject":"insights workbook package"===e?i="insightsworkbookpackage":"apache parquet"===e?i="apacheparquet":"notebook code snippets"===e||"notebook code snippet library"===e?i="notebookcodesnippets":"suitability model"===e?i="suitabilitymodel":"esri classifier definition"===e?i="classifierdefinition":"esri classification schema"===e?i="classificationschema":"insights data engineering workbook"===e?i="dataengineeringworkbook":"insights data engineering model"===e?i="dataengineeringmodel":"deep learning studio project"===e?i="deeplearningproject":"discussion"===e?i="discussion":"allsource project"===e?i="allsourceproject":"api key"===e?i="apikey":"data pipeline"===e?i="datapipelines":"group layer"===e?(c=t.includes("Map"),i=c?"layergroup2d":"layergroup"):i="media layer"===e?"onlinemedialayer":"maps",i?(0,o.V)("esri/images/portal/"+i+"16.png"):null}get isLayer(){return null!=this.type&&I.has(this.type)}get itemCdnUrl(){let e=this.itemUrl;return e&&a.id&&!a.id.findCredential(e)&&(e=a.id._normalizeAGOLorgDomain(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}get itemPageUrl(){const e=this.portal?.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){const e=this.portal?.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`)??null:null}get userItemUrl(){const e=this.portal?.restUrl;if(!e)return null;const t=this.owner||this.portal?.user?.username;return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){const t=this.portal??(this.portal=y.Z.getDefault()),i=t.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t.request(this.itemUrl,{signal:null!=e?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(i),Promise.resolve(this)}async addRating(e){const t={method:"post",query:{}};return e instanceof S&&(e=e.rating),null==e||isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal?(await this.portal.request(this.itemUrl+"/addRating",t),new S({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,l.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,l.d9)(this.categories),created:(0,l.d9)(this.created),culture:this.culture,description:this.description,extent:(0,l.d9)(this.extent),groupCategories:(0,l.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,l.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,l.d9)(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus="loaded");const t=new _({sourceJSON:this.sourceJSON}).set(e);return t._set("isOrgItem",this.isOrgItem),t}createPostQuery(){const e=this.toJSON();for(const t of["tags","typeKeywords","categories"])e[t]=e[t]?.join(", ");const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await this.portal.request(this.itemUrl+"/deleteRating",{method:"post"})}fetchData(e="json",t){return this.portal.request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await this.portal.request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e});return null!=t.rating?(t.created=new Date(t.created),new S(t)):null}fetchRelatedItems(e,t){return this.portal.requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},_)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal.request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e&&e.data,i={method:"post"};i.query=this.createPostQuery();for(const e in i.query)null===i.query[e]&&(i.query[e]="");return i.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?i.query.text=t:"object"==typeof t&&(i.query.text=JSON.stringify(t))),this.portal.request(`${this.userItemUrl}/update`,i).then((()=>this.reload()))})):Promise.reject(new s.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async copy(e){if(!this.id)throw new s.Z("portal:item-does-not-exist","The item does not exist yet");await this.load();const{portal:t,itemUrl:i}=this;await t.signIn();const{copyResources:r,folder:o,tags:a,title:n}=e||{},l={method:"post",query:{copyPrivateResources:"all"===r,folder:"string"==typeof o?o:o?.id,includeResources:!!r,tags:a?.join(","),title:n}},{itemId:p}=await t.request(`${i}/copy`,l);return new _({id:p,portal:t})}updateThumbnail(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e.thumbnail,i=e.filename,r={method:"post"};if("string"==typeof t)(0,c.HK)(t)?r.query={data:t}:r.query={url:(0,c.hF)(t)},null!=i&&(r.query.filename=i);else{const e=new FormData;null!=i?e.append("file",t,i):e.append("file",t),r.body=e}return this.portal.request(`${this.userItemUrl}/updateThumbnail`,r).then((()=>this.reload()))})):Promise.reject(new s.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){const{fetchResources:r}=await i.e(7873).then(i.bind(i,97873));return r(this,e,t)}async addResource(e,t,r){const{addOrUpdateResource:o}=await i.e(7873).then(i.bind(i,97873));return e.portalItem=this,o(e,"add",t,r)}async removeResource(e,t){const{removeResource:r}=await i.e(7873).then(i.bind(i,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new s.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return r(this,e,t)}async removeAllResources(e){const{removeAllResources:t}=await i.e(7873).then(i.bind(i,97873));return t(this,e)}resourceFromPath(e){return new k({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:(0,l.d9)(this.categories),created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,isOrgItem:this.isOrgItem,licenseInfo:this.licenseInfo,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};return(0,l.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new _({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,r._)([(0,d.Cb)({type:["private","shared","org","public"]})],U.prototype,"access",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"accessInformation",void 0),(0,r._)([(0,d.Cb)({type:String})],U.prototype,"apiKey",void 0),(0,r._)([(0,d.Cb)({json:{read:{source:"appProxies"}}})],U.prototype,"applicationProxies",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"avgRating",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"categories",void 0),(0,r._)([(0,d.Cb)({type:Date})],U.prototype,"created",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"culture",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"description",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"displayName",null),(0,r._)([(0,d.Cb)({type:g.Z})],U.prototype,"extent",void 0),(0,r._)([(0,h.r)("extent")],U.prototype,"readExtent",null),(0,r._)([(0,d.Cb)()],U.prototype,"groupCategories",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"iconUrl",null),(0,r._)([(0,d.Cb)()],U.prototype,"id",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"isLayer",null),(0,r._)([(0,d.Cb)({type:Boolean,readOnly:!0})],U.prototype,"isOrgItem",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"itemControl",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"itemPageUrl",null),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"itemUrl",null),(0,r._)([(0,d.Cb)()],U.prototype,"licenseInfo",void 0),(0,r._)([(0,d.Cb)({type:Date})],U.prototype,"modified",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"name",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"numComments",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"numRatings",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"numViews",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"owner",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"ownerFolder",void 0),(0,r._)([(0,d.Cb)({type:y.Z})],U.prototype,"portal",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"screenshots",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"size",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"snippet",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"sourceJSON",void 0),(0,r._)([(0,d.Cb)({type:String})],U.prototype,"sourceUrl",void 0),(0,r._)([(0,d.Cb)({type:String})],U.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"tags",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"thumbnail",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"thumbnailUrl",null),(0,r._)([(0,d.Cb)()],U.prototype,"title",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"type",void 0),(0,r._)([(0,d.Cb)()],U.prototype,"typeKeywords",void 0),(0,r._)([(0,d.Cb)({type:String,json:{read(e,t){if(x.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],U.prototype,"url",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],U.prototype,"userItemUrl",null),U=_=(0,r._)([(0,m.j)("esri.portal.PortalItem")],U);const P=U}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4828,5732,2596],{92835:(t,e,n)=>{n.d(e,{Z:()=>p});var o,r=n(43697),i=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),c=n(30556);let h=o=class extends i.wq{static get allTime(){return d}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(o.allTime)}get isEmpty(){return this.equals(o.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new o({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,o=t.start?.getTime()??t.start,r=t.end?.getTime()??t.end;return e===o&&n===r}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let r=this.end;if(r){const n=(0,s.JE)(r,t,e);r=r.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new o({start:n,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return o.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,r=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let s,a;if(r>=e&&r<=n?s=r:e>=r&&e<=i&&(s=e),n>=r&&n<=i?a=n:i>=e&&i<=n&&(a=i),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new o;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return o.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const r=new o,{start:i,end:a}=this;return null!=i&&(r.start=(0,s.Nm)(i,t,e,n)),null!=a&&(r.end=(0,s.Nm)(a,t,e,n)),r}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new o({start:e,end:n})}};(0,r._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,r._)([(0,c.c)("end")],h.prototype,"writeEnd",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,r._)([(0,c.c)("start")],h.prototype,"writeStart",null),h=o=(0,r._)([(0,u.j)("esri.TimeExtent")],h);const d=new h,m=new h({start:void 0,end:void 0}),p=h},5732:(t,e,n)=>{n.d(e,{c:()=>o,g:()=>r});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{a:()=>l,d:()=>a,f:()=>r,i:()=>d,m:()=>u,n:()=>c,s:()=>i,t:()=>s});var o=n(46851);function r(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,o,r,i,s,a,l,u){return t[0]=e,t[1]=n,t[2]=o,t[3]=r,t[4]=i,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],o=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=o,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],o=e[1],r=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l;let p=n*h+o*d+r*m;return p?(p=1/p,t[0]=h*p,t[1]=(-c*o+r*u)*p,t[2]=(a*o-r*s)*p,t[3]=d*p,t[4]=(c*n-r*l)*p,t[5]=(-a*n+r*i)*p,t[6]=m*p,t[7]=(-u*n+o*l)*p,t[8]=(s*n-o*i)*p,t):null}function l(t,e){const n=e[0],o=e[1],r=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=r*u-o*c,t[2]=o*a-r*s,t[3]=a*l-i*c,t[4]=n*c-r*l,t[5]=r*i-n*a,t[6]=i*u-s*l,t[7]=o*l-n*u,t[8]=n*s-o*i,t}function u(t,e,n){const o=e[0],r=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1],p=n[2],f=n[3],y=n[4],g=n[5],_=n[6],x=n[7],b=n[8];return t[0]=d*o+m*s+p*u,t[1]=d*r+m*a+p*c,t[2]=d*i+m*l+p*h,t[3]=f*o+y*s+g*u,t[4]=f*r+y*a+g*c,t[5]=f*i+y*l+g*h,t[6]=_*o+x*s+b*u,t[7]=_*r+x*a+b*c,t[8]=_*i+x*l+b*h,t}function c(t,e){const n=e[0],o=e[1],r=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],m=e[11],p=e[12],f=e[13],y=e[14],g=e[15],_=n*a-o*s,x=n*l-r*s,b=n*u-i*s,v=o*l-r*a,M=o*u-i*a,w=r*u-i*l,P=c*f-h*p,C=c*y-d*p,S=c*g-m*p,T=h*y-d*f,I=h*g-m*f,R=d*g-m*y;let Z=_*R-x*I+b*T+v*S-M*C+w*P;return Z?(Z=1/Z,t[0]=(a*R-l*I+u*T)*Z,t[1]=(l*S-s*R-u*C)*Z,t[2]=(s*I-a*S+u*P)*Z,t[3]=(r*I-o*R-i*T)*Z,t[4]=(n*R-r*S+i*C)*Z,t[5]=(o*S-n*I-i*P)*Z,t[6]=(f*w-y*M+g*v)*Z,t[7]=(y*b-p*w-g*x)*Z,t[8]=(p*M-f*b+g*_)*Z,t):null}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,o.g)(),n=t[0],r=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(r*r+a*a+c*c))<=e&&Math.abs(1-(i*i+l*l+h*h))<=e}const m=u,p=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],o=t[2],r=t[3],i=t[4],s=t[5],a=t[6],l=t[7],u=t[8];return e*(u*i-s*l)+n*(-u*r+s*a)+o*(l*r-i*a)},equals:function(t,e){const n=t[0],r=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],m=e[1],p=e[2],f=e[3],y=e[4],g=e[5],_=e[6],x=e[7],b=e[8],v=(0,o.g)();return Math.abs(n-d)<=v*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-m)<=v*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-f)<=v*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(a-y)<=v*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=v*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=v*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-x)<=v*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-b)<=v*Math.max(1,Math.abs(h),Math.abs(b))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:r,fromQuat:function(t,e){const n=e[0],o=e[1],r=e[2],i=e[3],s=n+n,a=o+o,l=r+r,u=n*s,c=o*s,h=o*a,d=r*s,m=r*a,p=r*l,f=i*s,y=i*a,g=i*l;return t[0]=1-h-p,t[3]=c-g,t[6]=d+y,t[1]=c+g,t[4]=1-u-p,t[7]=m-f,t[2]=d-y,t[5]=m+f,t[8]=1-u-h,t},fromRotation:function(t,e){const n=Math.sin(e),o=Math.cos(e);return t[0]=o,t[1]=n,t[2]=0,t[3]=-n,t[4]=o,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:m,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,o){return t[0]=e[0]+n[0]*o,t[1]=e[1]+n[1]*o,t[2]=e[2]+n[2]*o,t[3]=e[3]+n[3]*o,t[4]=e[4]+n[4]*o,t[5]=e[5]+n[5]*o,t[6]=e[6]+n[6]*o,t[7]=e[7]+n[7]*o,t[8]=e[8]+n[8]*o,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],o=e[1],r=e[2],i=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l,p=n*h+o*d+r*m;if(!p)return null;const f=1/p;return t[0]=h*f,t[1]=(-c*o+r*u)*f,t[2]=(a*o-r*s)*f,t[3]=d*f,t[4]=(c*n-r*l)*f,t[5]=(-a*n+r*i)*f,t[6]=m*f,t[7]=(-u*n+o*l)*f,t[8]=(s*n-o*i)*f,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const o=e[0],r=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),m=Math.cos(n);return t[0]=m*o+d*s,t[1]=m*r+d*a,t[2]=m*i+d*l,t[3]=m*s-d*o,t[4]=m*a-d*r,t[5]=m*l-d*i,t[6]=u,t[7]=c,t[8]=h,t},scale:function(t,e,n){const o=n[0],r=n[1],i=n[2];return t[0]=o*e[0],t[1]=o*e[1],t[2]=o*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t},scaleByVec2:function(t,e,n){const o=n[0],r=n[1];return t[0]=o*e[0],t[1]=o*e[1],t[2]=o*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:h,translate:function(t,e,n){const o=e[0],r=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1];return t[0]=o,t[1]=r,t[2]=i,t[3]=s,t[4]=a,t[5]=l,t[6]=d*o+m*s+u,t[7]=d*r+m*a+c,t[8]=d*i+m*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function o(){return[1,0,0,0,1,0,0,0,1]}function r(t,e,n,o,r,i,s,a,l){return[t,e,n,o,r,i,s,a,l]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>o,c:()=>i,f:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:o,createView:i,fromValues:r},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var o,r,i,s=n(5732),a={exports:{}};o=a,r=function(){function t(n,o,r,i,s){for(;i>r;){if(i-r>600){var a=i-r+1,l=o-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,o,Math.max(r,Math.floor(o-l*c/a+h)),Math.min(i,Math.floor(o+(a-l)*c/a+h)),s)}var d=n[o],m=r,p=i;for(e(n,r,o),s(n[i],d)>0&&e(n,r,i);m<p;){for(e(n,m,p),m++,p--;s(n[m],d)<0;)m++;for(;s(n[p],d)>0;)p--}0===s(n[r],d)?e(n,r,p):e(n,++p,i),p<=o&&(r=p+1),o<=p&&(i=p-1)}}function e(t,e,n){var o=t[e];t[e]=t[n],t[n]=o}function n(t,e){return t<e?-1:t>e?1:0}return function(e,o,r,i,s){t(e,o,r||0,i||e.length-1,s||n)}},void 0!==(i=r())&&(o.exports=i);const l=(0,s.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>p,s:()=>r,t:()=>m});var o=n(46851);function r(t,e,n){return t[0]=e,t[1]=n,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],o=e[1]-t[1];return Math.sqrt(n*n+o*o)}function u(t,e){const n=e[0]-t[0],o=e[1]-t[1];return n*n+o*o}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,o){const r=e[0],i=e[1];return t[0]=r+o*(n[0]-r),t[1]=i+o*(n[1]-i),t}function m(t,e,n){const o=e[0],r=e[1];return t[0]=n[0]*o+n[2]*r+n[4],t[1]=n[1]*o+n[3]*r+n[5],t}function p(t,e,n,o){const r=e[0]-n[0],i=e[1]-n[1],s=Math.sin(o),a=Math.cos(o);return t[0]=r*a-i*s+n[0],t[1]=r*s+i*a+n[1],t}const f=c,y=i,g=s,_=a,x=l,b=u,v=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],o=t[1],r=e[0],i=e[1];let s=n*n+o*o;s>0&&(s=1/Math.sqrt(s));let a=r*r+i*i;a>0&&(a=1/Math.sqrt(a));const l=(n*r+o*i)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const o=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=o,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],r=t[1],i=e[0],s=e[1],a=(0,o.g)();return Math.abs(n-i)<=a*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-s)<=a*Math.max(1,Math.abs(r),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:f,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],o=e[1];let r=n*n+o*o;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},projectAndScale:function(t,e,n,o,r){let i=e[0]-n[0],s=e[1]-n[1];const a=(o[0]*i+o[1]*s)*(r-1);return i=o[0]*a,s=o[1]*a,t[0]=e[0]+i,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,o.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,o){return t[0]=e[0]+n[0]*o,t[1]=e[1]+n[1]*o,t},set:r,sqrDist:b,sqrLen:v,squaredDistance:u,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:i,transformMat2:function(t,e,n){const o=e[0],r=e[1];return t[0]=n[0]*o+n[2]*r,t[1]=n[1]*o+n[3]*r,t},transformMat2d:m,transformMat3:function(t,e,n){const o=e[0],r=e[1];return t[0]=n[0]*o+n[3]*r+n[6],t[1]=n[1]*o+n[4]*r+n[7],t},transformMat4:function(t,e,n){const o=e[0],r=e[1];return t[0]=n[0]*o+n[4]*r+n[12],t[1]=n[1]*o+n[5]*r+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function o(){return[0,0]}function r(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function s(){return r(1,1)}function a(){return r(1,0)}function l(){return r(0,1)}n.d(e,{a:()=>o,c:()=>i,f:()=>r});const u=s(),c=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:o,createView:i,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let o=0;o<n;++o)e[o]=t[o];return e},fromValues:r,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var o=n(43697),r=n(52011);let i=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return e=(0,o._)([(0,r.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return e=(0,o._)([(0,r.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,o._)([(0,r.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>i,Z:()=>r});var o=n(46791);function r(t,e,n=o.Z){return e||(e=new n),e===t||(e.removeAll(),(r=t)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?e.addMany(t):t&&e.add(t)),e;var r}function i(t){return t}},70163:(t,e,n)=>{n.d(e,{Jl:()=>c,n$:()=>h});var o=n(3172),r=n(20102),i=n(95330),s=n(17452),a=n(49917);let l=null,u=!0;function c(t,e,n,o){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const r=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,o);return r.data.set(t,0),r}async function h(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const r=await(0,o.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:r.data,mediaType:r.getHeader("Content-Type")}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:o}=await n.e(3310).then(n.bind(n,83310));if(t(l))return o(l,e)}if(c){const{isAnimatedPNG:t,parseApng:o}=await n.e(4492).then(n.bind(n,54492));if(t(l))return o(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,o.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,i.D_)(t))throw new r.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},24133:(t,e,n)=>{n.d(e,{Q:()=>s});var o=n(67676),r=n(44553),i=n(88764);class s{constructor(t=9,e){this._compareMinX=c,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),b.prune(),v.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const o=this._toBBox;if(g(t,n))for(x.clear();n;){for(let r=0,i=n.children.length;r<i;r++){const i=n.children[r],s=n.leaf?o(i):i;g(t,s)&&(n.leaf?e(i):y(t,s)?this._all(i,e):x.push(i))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let o=0,r=e.children.length;o<r;o++){const r=e.children[o],i=e.leaf?n(r):r;if(g(t,i)){if(e.leaf||y(t,i))return!0;x.push(r)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new C([]),this}remove(t){if(!t)return this;let e,n=this._data,r=null,i=0,s=!1;const a=this._toBBox(t);for(v.clear(),M.clear();n||v.length>0;){if(n||(n=v.pop(),r=v.data[v.length-1],i=M.pop()??0,s=!0),n.leaf&&(e=(0,o.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),v.push(n),this._condense(v),this;s||n.leaf||!y(n,a)?r?(i++,n=r.children[i],s=!1):n=null:(v.push(n),M.push(i),i=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else b.pushArray(n.children);n=b.pop()??null}}_build(t,e,n,o){const r=n-e+1;let i=this._maxEntries;if(r<=i){const o=new C(t.slice(e,n+1));return a(o,this._toBBox),o}o||(o=Math.ceil(Math.log(r)/Math.log(i)),i=Math.ceil(r/i**(o-1)));const s=new S([]);s.height=o;const l=Math.ceil(r/i),u=l*Math.ceil(Math.sqrt(i));_(t,e,n,u,this._compareMinX);for(let r=e;r<=n;r+=u){const e=Math.min(r+u-1,n);_(t,r,e,l,this._compareMinY);for(let n=r;n<=e;n+=l){const r=Math.min(n+l-1,e);s.children.push(this._build(t,n,r,o-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,o){for(;o.push(e),!0!==e.leaf&&o.length-1!==n;){let n,o=1/0,r=1/0;for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],a=d(s),l=p(t,s)-a;l<r?(r=l,o=a<o?a:o,n=s):l===r&&a<o&&(o=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const o=this._toBBox,r=n?t:o(t);v.clear();const i=this._chooseSubtree(r,this._data,e,v);for(i.children.push(t),u(i,r);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;this._adjustParentBBoxes(r,v,e)}_split(t,e){const n=t.data[e],o=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,o);const i=this._chooseSplitIndex(n,r,o);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(i,n.children.length-i),l=n.leaf?new C(s):new S(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let o,r,i;o=r=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),u=f(e,a),c=d(e)+d(a);u<o?(o=u,i=s,r=c<r?c:r):u===o&&c<r&&(r=c,i=s)}return i}_chooseSplitAxis(t,e,n){const o=t.leaf?this._compareMinX:c,r=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,o)<this._allDistMargin(t,e,n,r)&&t.children.sort(o)}_allDistMargin(t,e,n,o){t.children.sort(o);const r=this._toBBox,i=l(t,0,e,r),s=l(t,n-e,n,r);let a=m(i)+m(s);for(let o=e;o<n-e;o++){const e=t.children[o];u(i,t.leaf?r(e):e),a+=m(i)}for(let o=n-e-1;o>=e;o--){const e=t.children[o];u(s,t.leaf?r(e):e),a+=m(s)}return a}_adjustParentBBoxes(t,e,n){for(let o=n;o>=0;o--)u(e.data[o],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const r=t.data[e-1],i=r.children;i.splice((0,o.cq)(i,n,i.length,r.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,o,r){r||(r=new C([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let i,s=e;s<n;s++)i=t.children[s],u(r,t.leaf?o(i):i);return r}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){const n=Math.max(t.minX,e.minX),o=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,i-o)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,o,r){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=o)continue;const a=n+Math.ceil((e-n)/o/2)*o;(0,i.q)(t,a,n,e,r),s.push(n,a,a,e)}}const x=new r.Z,b=new r.Z,v=new r.Z,M=new r.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new o.SO}}class C extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>h,tX:()=>g}),n(66643),n(46791);var o=n(91460),r=n(50758),i=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,m)}function u(t,e,n={}){return c(t,e,n,p)}function c(t,e,n={},o){let r=null;const s=n.once?(t,n)=>{o(t)&&((0,i.hw)(r),e(t,n))}:(t,n)=>{o(t)&&e(t,n)};if(r=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return r}function h(t,e,n,s={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function d(t){s.once&&s.once&&(0,i.hw)(c),n(t)}const m=l(t,((t,n)=>{h(),(0,o.vT)(t)&&(a=t,u=(0,o.on)(t,e,d),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,r.kB)((()=>{m.remove(),h()})),c}function d(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const o=t();if(e?.(o))return Promise.resolve(o);let a=null;function l(){a=(0,i.hw)(a)}return new Promise(((o,i)=>{a=(0,r.AL)([(0,s.fu)(n,(()=>{l(),i((0,s.zE)())})),c(t,(t=>{l(),o(t)}),{sync:!1,once:!0},e??m)])}))}(t,p,e)}function m(t){return!0}function p(t){return!!t}n(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var o=n(90344),r=n(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,i="system"){const s=new r.vF((0,o.f1)(i)),a=r.ou.fromJSDate(t,{zone:s}),l="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),a.plus({[l]:e}).toJSDate()}function a(t,e,n="system"){const i=new r.vF((0,o.f1)(n)),s=r.ou.fromJSDate(t,{zone:i});if("decades"===e||"centuries"===e){const t=s.startOf("year"),{year:n}=t,o=n-n%("decades"===e?10:100);return t.set({year:o}).toJSDate()}const a=u(e);return s.startOf(a).toJSDate()}function l(t,e,n){return 0===t?0:t*i[e]/i[n]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(t,e,n)=>{n.d(e,{D:()=>r,z:()=>i});const o="randomUUID"in crypto;function r(){if(o)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function i(){return`{${r()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>s,XZ:()=>a,x3:()=>u});var o=n(58901),r=n(82971),i=n(33955);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new o.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.Z.WebMercator}),minus180Line:new o.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new o.Z({paths:[[[180,-180],[180,180]]],spatialReference:r.Z.WGS84}),minus180Line:new o.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:r.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,i.oU)(t)?t.rings:t.paths}},90344:(t,e,n)=>{n.d(e,{Xr:()=>p,Ze:()=>_,f1:()=>b,p6:()=>x});var o=n(35454),r=n(70171),i=n(15512);n(17126);const s=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(i.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},d={...h,second:"numeric"},m={"short-date":a,"short-date-short-time":{...a,...h},"short-date-short-time-24":{...a,...h,hour12:!1},"short-date-long-time":{...a,...d},"short-date-long-time-24":{...a,...d,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...h},"short-date-le-short-time-24":{...a,...h,hour12:!1},"short-date-le-long-time":{...a,...d},"short-date-le-long-time-24":{...a,...d,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...h},"long-month-day-year-short-time-24":{...l,...h,hour12:!1},"long-month-day-year-long-time":{...l,...d},"long-month-day-year-long-time-24":{...l,...d,hour12:!1},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...h},"day-short-month-year-short-time-24":{...u,...h,hour12:!1},"day-short-month-year-long-time":{...u,...d},"day-short-month-year-long-time-24":{...u,...d,hour12:!1},"long-date":c,"long-date-short-time":{...c,...h},"long-date-short-time-24":{...c,...h,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":h,"long-time":d},p=(0,o.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"}),f={ar:"ar-u-nu-latn-ca-gregory"};let y=new WeakMap;const g=m["short-date-short-time"];function _(t){return m[t]}function x(t,e=g){return function(t){let e=y.get(t);if(!e){const n=(0,r.Kd)(),o=f[n]||n,s=b(t.timeZone??i.By),a={...t,timeZone:s};e=new Intl.DateTimeFormat(o,a),y.set(t,e)}return e}(e).format(t)}function b(t){switch(t){case i.By:return s;case i._4:return i.pt;default:return t}}(0,r.Ze)((()=>{y=new WeakMap}))},87085:(t,e,n)=>{n.d(e,{Z:()=>x});var o=n(43697),r=(n(66577),n(3172)),i=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),c=n(95330),h=n(17452),d=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),p=n(68773),f=n(6570),y=n(82971);let g=0,_=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:o}=await n.e(8008).then(n.bind(n,28008));try{return await o(e)}catch(t){const n=e&&e.portalItem,o=n&&n.id||"unset",r=n&&n.portal&&n.portal.url||p.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+o+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,r.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,d.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,o._)([(0,d.Cb)({type:f.Z})],_.prototype,"fullExtent",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,o._)([(0,d.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,o._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,o._)([(0,d.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,o._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,o._)([(0,d.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,o._)([(0,d.Cb)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,o._)([(0,d.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,o._)([(0,d.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,o._)([(0,d.Cb)({type:y.Z})],_.prototype,"spatialReference",void 0),(0,o._)([(0,d.Cb)({type:String})],_.prototype,"title",void 0),(0,o._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,o._)([(0,d.Cb)()],_.prototype,"url",void 0),(0,o._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,o._)([(0,m.j)("esri.layers.Layer")],_);const x=_},57765:(t,e,n)=>{n.r(e),n.d(e,{default:()=>se});var o=n(43697),r=n(46791),i=n(20102),s=n(92604),a=n(16453),l=n(5600),u=n(90578),c=(n(67676),n(80442),n(71715)),h=n(52011),d=n(30556),m=n(87085),p=n(71612),f=n(38009),y=n(72965),g=n(3172),_=n(70163),x=n(17452),b=n(41123),v=(n(75215),n(10699)),M=n(96674),w=n(83379),P=n(92036),C=n(21787),S=n(46521),T=n(4307),I=n(17896);const R=(0,n(65617).c)(),Z=(0,S.a)(),L=(0,S.a)(),B=(0,S.a)();function j(t,e,n){return(0,I.s)(R,e[0],e[1],1),(0,I.t)(R,R,(0,C.t)(Z,n)),0===R[2]?(0,T.s)(t,R[0],R[1]):(0,T.s)(t,R[0]/R[2],R[1]/R[2])}function O(t,e,n){return E(L,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),E(B,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,C.m)(t,(0,C.a)(L,L),B),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function E(t,e,n,o,r,i,s,a,l){(0,C.s)(t,e,o,i,n,r,s,1,1,1),(0,I.s)(R,a,l,1),(0,C.a)(Z,t);const[u,c,h]=(0,I.t)(R,R,(0,C.t)(Z,Z));return(0,C.s)(Z,u,0,0,0,c,0,0,0,h),(0,C.m)(t,Z,t)}var Y=n(62357),X=n(97323),D=n(94139),A=n(38913),N=n(73615),z=n(82971),H=n(2368);let U=class extends H.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:o}=(0,N.projectOrLoad)(t,e);return o?null:o||n?n:(s.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};U=(0,o._)([(0,h.j)("esri.layers.support.GeoreferenceBase")],U);const W=U,q=(0,S.a)(),V=(0,X.a)();let F=class extends P.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,o._)([(0,l.Cb)()],F.prototype,"sourcePoint",void 0),(0,o._)([(0,l.Cb)({type:D.Z})],F.prototype,"mapPoint",void 0),F=(0,o._)([(0,h.j)("esri.layers.support.ControlPoint")],F);let J=class extends((0,M.eC)(W)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=z.Z.fromJSON(e.spatialReference),o=(0,S.f)(...e.coefficients,1);return t.map((t=>((0,T.s)(V,t.x,t.y),j(V,V,o),{sourcePoint:t,mapPoint:new D.Z({x:V[0],y:V[1],spatialReference:n})})))}writeControlPoints(t,e,n,o){if(null!=this.transform)null!=t&&k(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new i.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:o?.layer,georeference:this});o?.messages?o.messages.push(t):s.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(q);if(null==t||!k(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,o){const r=(0,X.f)(0,n),i=(0,X.f)(0,0),s=(0,X.f)(e,0),a=(0,X.f)(e,n);return j(r,r,t),j(i,i,t),j(s,s,t),j(a,a,t),new A.Z({rings:[[r,i,s,a,r]],spatialReference:o})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!k(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:o}=this,{rings:[[r,i,s,a]]}=t,l={sourcePoint:(0,Y.vW)(0,o),mapPoint:new D.Z({x:r[0],y:r[1],spatialReference:e})},u={sourcePoint:(0,Y.vW)(0,0),mapPoint:new D.Z({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,Y.vW)(n,0),mapPoint:new D.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,Y.vW)(n,o),mapPoint:new D.Z({x:a[0],y:a[1],spatialReference:e})};k(l)&&k(u)&&k(c)&&k(h)&&(st(q,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,T.s)(V,t.x,t.y),j(V,V,q),{sourcePoint:t,mapPoint:new D.Z({x:V[0],y:V[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,C.d)((0,S.a)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!k(this.controlPoints[0]))return null;(0,T.s)(V,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return j(V,V,this.transform),new D.Z({x:V[0],y:V[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!k(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,N.projectOrLoad)(t,e).geometry)?null:((0,T.s)(V,t.x,t.y),j(V,V,this.inverseTransform),(0,Y.vW)(V[0],V[1]))}toSourceNormalized(t){const e=this.toSource(t);return null!=e&&(e.x/=this.width,e.y/=this.height),e}_updateTransform(t){const{controlPoints:e,width:n,height:o}=this;if(!(null!=e&&n>0&&o>0))return null;const[r,i,s,a]=e;if(!k(r))return null;const l=r.mapPoint.spatialReference,u=this._projectControlPoint(i,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!k(u.controlPoint))return null;null==t&&(t=(0,S.a)());let d=null;return d=k(c.controlPoint)&&k(h.controlPoint)?st(t,r,u.controlPoint,c.controlPoint,h.controlPoint):k(c.controlPoint)?function(t,e,n,o){return it(G,tt,e),it($,et,n),it(K,nt,o),(0,T.l)(Q,G,$,.5),(0,T.r)(Q,K,Q,Math.PI),(0,T.l)(ot,tt,et,.5),(0,T.r)(ot,nt,ot,Math.PI),ct(t,G,$,K,Q,tt,et,nt,ot)}(t,r,u.controlPoint,c.controlPoint):function(t,e,n){return it(G,tt,e),it($,et,n),(0,T.r)(K,$,G,rt),(0,T.r)(Q,G,$,rt),(0,T.r)(nt,et,tt,-rt),(0,T.r)(ot,tt,et,-rt),ct(t,G,$,K,Q,tt,et,nt,ot)}(t,r,u.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!k(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:o}=t,{geometry:r,pending:i}=(0,N.projectOrLoad)(o,e);return i?{valid:!1,controlPoint:null}:i||r?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:r}}:(s.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:o.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function k(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,o._)([(0,l.Cb)({type:[F],json:{write:{allowNull:!1,isRequired:!0}}})],J.prototype,"controlPoints",void 0),(0,o._)([(0,c.r)("controlPoints")],J.prototype,"readControlPoints",null),(0,o._)([(0,d.c)("controlPoints")],J.prototype,"writeControlPoints",null),(0,o._)([(0,l.Cb)()],J.prototype,"coords",null),(0,o._)([(0,l.Cb)({json:{write:!0}})],J.prototype,"height",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],J.prototype,"inverseTransform",null),(0,o._)([(0,l.Cb)({readOnly:!0})],J.prototype,"transform",null),(0,o._)([(0,l.Cb)({json:{write:!0}})],J.prototype,"width",void 0),J=(0,o._)([(0,h.j)("esri.layers.support.ControlPointsGeoreference")],J);const G=(0,X.a)(),$=(0,X.a)(),K=(0,X.a)(),Q=(0,X.a)(),tt=(0,X.a)(),et=(0,X.a)(),nt=(0,X.a)(),ot=(0,X.a)(),rt=Math.PI/2;function it(t,e,n){(0,T.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,T.s)(e,n.mapPoint.x,n.mapPoint.y)}function st(t,e,n,o,r){return it(G,tt,e),it($,et,n),it(K,nt,o),it(Q,ot,r),ct(t,G,$,K,Q,tt,et,nt,ot)}const at=new Array(8).fill(0),lt=new Array(8).fill(0);function ut(t,e,n,o,r){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=o[0],t[5]=o[1],t[6]=r[0],t[7]=r[1],t}function ct(t,e,n,o,r,i,s,a,l){return O(t,ut(at,e,n,o,r),ut(lt,i,s,a,l))}const ht=J,dt=(0,X.a)();let mt=class extends W{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:o}=this;if(null==t||null==e||null==n||null==o)return null;const r=t.spatialReference;return e=this.projectOrWarn(e,r),n=this.projectOrWarn(n,r),o=this.projectOrWarn(o,r),null==e||null==n||null==o?null:new A.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[o.x,o.y],[n.x,n.y]]],spatialReference:r})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[o,r,i,s]]}=t;this.bottomLeft=new D.Z({x:o[0],y:o[1],spatialReference:n}),this.topLeft=new D.Z({x:r[0],y:r[1],spatialReference:n}),this.topRight=new D.Z({x:i[0],y:i[1],spatialReference:n}),this.bottomRight=new D.Z({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(t){const{topLeft:e,topRight:n,bottomRight:o,bottomLeft:r}=this;if(null==t||null==e||null==n||null==o||null==r)return null;const i=e.spatialReference;t=t.normalize();const s=(0,N.projectOrLoad)(t,i).geometry;if(null==s)return null;(0,T.s)(dt,s.x,s.y);const a=O((0,S.a)(),[e.x,e.y,r.x,r.y,n.x,n.y,o.x,o.y],[0,0,0,1,1,0,1,1]);return j(dt,dt,a),(0,Y.vW)(dt[0],dt[1])}};(0,o._)([(0,l.Cb)()],mt.prototype,"coords",null),(0,o._)([(0,l.Cb)({type:D.Z})],mt.prototype,"bottomLeft",void 0),(0,o._)([(0,l.Cb)({type:D.Z})],mt.prototype,"bottomRight",void 0),(0,o._)([(0,l.Cb)({type:D.Z})],mt.prototype,"topLeft",void 0),(0,o._)([(0,l.Cb)({type:D.Z})],mt.prototype,"topRight",void 0),mt=(0,o._)([(0,h.j)("esri.layers.support.CornersGeoreference")],mt);const pt=mt;var ft=n(22021),yt=n(46851),gt=n(6570);let _t=class extends W{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:o,spatialReference:r}=this.extent;let i;if(this.rotation){const{x:r,y:s}=this.extent.center,a=xt(r,s,this.rotation);i=[a(t,e),a(t,o),a(n,o),a(n,e)],i.push(i[0])}else i=[[t,e],[t,o],[n,o],[n,e],[t,e]];return new A.Z({rings:[i],spatialReference:r})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,o,r]],extent:{center:{x:i,y:s}}}=t,a=(0,ft.BV)(Math.PI/2-Math.atan2(o[1]-n[1],o[0]-n[0])),l=xt(i,s,-a),[u,c]=l(n[0],n[1]),[h,d]=l(r[0],r[1]);this.extent=new gt.Z({xmin:u,ymin:c,xmax:h,ymax:d,spatialReference:e}),this.rotation=a}toSourceNormalized(t){const{extent:e,rotation:n}=this;if(null==t||null==e)return null;const{xmin:o,ymin:r,xmax:i,ymax:s,center:a,spatialReference:l}=e;t=t.normalize();const u=(0,N.projectOrLoad)(t,l).geometry;if(null==u)return null;let c=u.x,h=u.y;return n&&([c,h]=xt(a.x,a.y,-n)(c,h)),(0,Y.vW)((0,ft.bA)(c,o,i,0,1),(0,ft.bA)(h,s,r,0,1))}};function xt(t,e,n){const o=(0,yt.t)(n),r=Math.cos(o),i=Math.sin(o);return(n,o)=>[r*(n-t)+i*(o-e)+t,r*(o-e)-i*(n-t)+e]}(0,o._)([(0,l.Cb)()],_t.prototype,"coords",null),(0,o._)([(0,l.Cb)({type:gt.Z})],_t.prototype,"extent",void 0),(0,o._)([(0,l.Cb)({type:Number})],_t.prototype,"rotation",void 0),_t=(0,o._)([(0,h.j)("esri.layers.support.ExtentAndRotationGeoreference")],_t);const bt={key:"type",base:W,typeMap:{"control-points":ht,corners:pt,"extent-and-rotation":_t}};let vt=class extends((0,v.iv)((0,M.eC)(w.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ht.fromJSON(t)}get contentWidth(){return 0}get contentHeight(){return 0}toSource(t){const{georeference:e,contentWidth:n,contentHeight:o}=this;if(null==t||null==e||0===n||0===o)return null;const r=e.toSourceNormalized(t);return null==r?null:(r.x*=n,r.y*=o,r)}};(0,o._)([(0,l.Cb)({types:bt,json:{write:!0}})],vt.prototype,"georeference",void 0),(0,o._)([(0,c.r)("georeference")],vt.prototype,"readGeoreference",null),(0,o._)([(0,l.Cb)()],vt.prototype,"opacity",void 0),vt=(0,o._)([(0,h.j)("esri.layers.support.MediaElementBase")],vt);const Mt=vt;var wt=n(66094),Pt=n(25929);let Ct=class extends Mt{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,_.n$)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new i.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(t,e,n){return(0,Pt.f)(e.url,n)}writeImage(t,e,n,o){if(null==t)return;const r=o?.portalItem,i=o?.resources;if(!r||!i)return void("string"==typeof t&&(e[n]=(0,Pt.t)(t,o)));const s="string"!=typeof t||(0,x.HK)(t)||(0,x.jc)(t)?null:t;if(s){if(null==(0,Pt.i)(s))return void(e[n]=s);const t=(0,Pt.t)(s,{...o,verifyItemRelativeUrls:o&&o.verifyItemRelativeUrls?{writtenUrls:o.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},Pt.M.NO);if(r&&t&&!(0,x.YP)(t))return i.toKeep.push({resource:r.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",i.pendingOperations.push(Tt(t).then((t=>{const o=function(t,e){const n=(0,b.D)(),o=`${(0,x.v_)("media",n)}.${(0,wt.B)({type:"blob",blob:t})}`;return e.resourceFromPath(o)}(t,r);e[n]=o.itemRelativeUrl,i.toAdd.push({resource:o,content:{type:"blob",blob:t},compress:!1,finish:t=>{this.image=t.url}})})))}};(0,o._)([(0,l.Cb)()],Ct.prototype,"animationOptions",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],Ct.prototype,"content",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],Ct.prototype,"contentWidth",null),(0,o._)([(0,l.Cb)({readOnly:!0})],Ct.prototype,"contentHeight",null),(0,o._)([(0,l.Cb)({json:{name:"url",type:String}})],Ct.prototype,"image",void 0),(0,o._)([(0,c.r)("image",["url"])],Ct.prototype,"readImage",null),(0,o._)([(0,d.c)("image")],Ct.prototype,"writeImage",null),(0,o._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],Ct.prototype,"type",void 0),Ct=(0,o._)([(0,h.j)("esri.layers.support.ImageElement")],Ct);const St=Ct;async function Tt(t){if("string"==typeof t){if((0,x.jc)(t)){const{data:e}=await(0,g.Z)(t,{responseType:"blob"});return e}return(0,x.HK)(t)?(0,x.fw)(t):Tt((await(0,g.Z)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,o=document.createElement("canvas"),r=o.getContext("2d");return o.width=e,o.height=n,t instanceof HTMLImageElement?r.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&r.putImageData(t,0,0),o}(t).toBlob(e)))}n(66577);var It=n(70921),Rt=n(32448),Zt=n(609),Lt=n(95330),Bt=n(17445),jt=n(24470),Ot=n(87416),Et=n(8744),Yt=n(37549),Xt=n(20322),Dt=n(86662),At=n(33955),Nt=n(73913);function zt(t,e,n){if(Array.isArray(t)){const o=t[0];if(o>e){const n=(0,Nt.XZ)(o,e);t[0]=o+n*(-2*e)}else if(o<n){const e=(0,Nt.XZ)(o,n);t[0]=o+e*(-2*n)}}else{const o=t.x;if(o>e){const n=(0,Nt.XZ)(o,e);t.x+=n*(-2*e)}else if(o<n){const e=(0,Nt.XZ)(o,n);t.x+=e*(-2*n)}}return t}function Ht(t,e){const n=[],{ymin:o,ymax:r,xmin:i,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=Ut(t.xmin,e),{x:d,frameId:m}=Ut(t.xmax,e),p=c===d&&a>0;if(a>2*u){const t={xmin:i<s?c:d,ymin:o,xmax:u,ymax:r},e={xmin:l,ymin:o,xmax:i<s?d:c,ymax:r},a={xmin:0,ymin:o,xmax:u,ymax:r},p={xmin:l,ymin:o,xmax:0,ymax:r},f=[],y=[];Wt(t,a)&&f.push(h),Wt(t,p)&&y.push(h),Wt(e,a)&&f.push(m),Wt(e,p)&&y.push(m);for(let t=h+1;t<m;t++)f.push(t),y.push(t);n.push(new Ft(t,[h]),new Ft(e,[m]),new Ft(a,f),new Ft(p,y))}else c>d||p?n.push(new Ft({xmin:c,ymin:o,xmax:u,ymax:r},[h]),new Ft({xmin:l,ymin:o,xmax:d,ymax:r},[m])):n.push(new Ft({xmin:c,ymin:o,xmax:d,ymax:r},[h]));return n}function Ut(t,e){const[n,o]=e.valid,r=2*o;let i,s=0;return t>o?(i=Math.ceil(Math.abs(t-o)/r),t-=i*r,s=i):t<n&&(i=Math.ceil(Math.abs(t-n)/r),t+=i*r,s=-i),{x:t,frameId:s}}function Wt(t,e){const{xmin:n,ymin:o,xmax:r,ymax:i}=e;return qt(t,n,o)&&qt(t,n,i)&&qt(t,r,i)&&qt(t,r,o)}function qt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function Vt(t,e,n=!0){const o=!(0,At.l9)(t);if(o&&(0,Dt.Zy)(t),n)return(new kt).cut(t,e);const r=o?t.rings:t.paths,i=o?4:2,s=r.length,a=-2*e;for(let t=0;t<s;t++){const e=r[t];if(e&&e.length>=i){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);r.push(t)}}return o?t.rings=r:t.paths=r,t}class Ft{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,jt.Ue)();class kt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const o=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=o;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const o=t.length;o>1&&t[o-1][0]===e&&t[o-2][0]===e?t[o-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Gt=class extends P.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,jt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,N.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return A.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,o=(0,Et.C5)(n),r=(0,M.AK)(t)?t.toJSON():t;if(!o)return r;const i=(0,Et.sS)(n)?102100:4326,s=Nt.UZ[i].maxX,a=Nt.UZ[i].minX;if((0,At.wp)(r))return zt(r,s,a);if((0,At.aW)(r))return r.points=r.points.map((t=>zt(t,s,a))),r;if((0,At.YX)(r))return function(t,e){if(!e)return t;const n=Ht(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(r,o);if((0,At.oU)(r)||(0,At.l9)(r)){const t=(0,Xt.$P)(Jt,r),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},o=(0,Nt.XZ)(n.xmin,a)*(2*s),i=0===o?r:(0,Nt.Sy)(r,o);return n.xmin+=o,n.xmax+=o,n.xmax>s?Vt(i,s,e):n.xmin<a?Vt(i,a,e):i}return r}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,jt.oJ)(t):null}};(0,o._)([(0,l.Cb)()],Gt.prototype,"spatialReference",void 0),(0,o._)([(0,l.Cb)()],Gt.prototype,"element",void 0),(0,o._)([(0,l.Cb)()],Gt.prototype,"bounds",null),(0,o._)([(0,l.Cb)()],Gt.prototype,"coords",null),(0,o._)([(0,l.Cb)()],Gt.prototype,"normalizedCoords",null),(0,o._)([(0,l.Cb)()],Gt.prototype,"normalizedBounds",null),Gt=(0,o._)([(0,h.j)("esri.layers.support.MediaElementView")],Gt);var $t=n(91460);let Kt=class extends Mt{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new i.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const o=(0,$t.IH)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(o,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,o._)([(0,l.Cb)()],Kt.prototype,"autoplay",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],Kt.prototype,"content",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],Kt.prototype,"contentWidth",null),(0,o._)([(0,l.Cb)({readOnly:!0})],Kt.prototype,"contentHeight",null),(0,o._)([(0,l.Cb)()],Kt.prototype,"video",null),Kt=(0,o._)([(0,h.j)("esri.layers.support.VideoElement")],Kt);const Qt=Kt,te={key:"type",defaultKeyValue:"image",base:Mt,typeMap:{image:St,video:Qt}},ee=r.Z.ofType(te);let ne=class extends(w.Z.LoadableMixin((0,Zt.v)(Rt.Z.EventedAccessor))){constructor(t){super(t),this._index=new Yt.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Gt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const o=(0,Bt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(o,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new ee}async load(t){if((0,Lt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:z.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,It.Z)(t,this._get("elements"),ee))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new gt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,N.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,Et.fS)(t.spatialReference,this.spatialReference)?t:(0,N.project)(t,this.spatialReference);if(!n)return[];const o=n.normalize(),r=[];for(const t of o)this._index.forEachInBounds((0,jt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Ot.Nl)(t,e)&&r.push(n)}));return r.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),r}_updateIndexForElement(t,e){const n=t.normalizedBounds,o=this._index.has(t),r=null!=n;this._index.delete(t),r&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(o!==r?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,o._)([(0,l.Cb)()],ne.prototype,"elements",null),(0,o._)([(0,l.Cb)({readOnly:!0})],ne.prototype,"fullExtent",null),(0,o._)([(0,l.Cb)()],ne.prototype,"spatialReference",null),ne=(0,o._)([(0,h.j)("esri.layers.support.LocalMediaElementSource")],ne);const oe=ne;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let ie=class extends((0,p.h)((0,y.M)((0,f.q)((0,a.R)(m.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new oe}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new i.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new oe({elements:new r.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const o=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(o),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):s.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new oe({elements:new r.Z(t)}):t instanceof r.Z?new oe({elements:t}):t:null}readSource(t,e,n){const o="image"===e.mediaType?new St:"video"===e.mediaType?new Qt:null;return o?.read(e,n),o}writeSource(t,e,n,o){t&&re(t)&&"image"===t.type?t.write(e,o):o?.messages&&o?.messages?.push(new i.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,o._)([(0,l.Cb)({readOnly:!0})],ie.prototype,"effectiveSource",void 0),(0,o._)([(0,l.Cb)({type:String})],ie.prototype,"copyright",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],ie.prototype,"fullExtent",null),(0,o._)([(0,l.Cb)({type:["MediaLayer"]})],ie.prototype,"operationalLayerType",void 0),(0,o._)([(0,l.Cb)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],ie.prototype,"source",null),(0,o._)([(0,u.p)("source")],ie.prototype,"castSource",null),(0,o._)([(0,c.r)("source",["url"])],ie.prototype,"readSource",null),(0,o._)([(0,d.c)("source")],ie.prototype,"writeSource",null),(0,o._)([(0,l.Cb)()],ie.prototype,"spatialReference",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],ie.prototype,"type",void 0),ie=(0,o._)([(0,h.j)("esri.layers.MediaLayer")],ie);const se=ie},37549:(t,e,n)=>{n.d(e,{H:()=>a});var o=n(80442),r=n(24133),i=n(24470);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.Q(9,(0,o.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,o)=>{t[e++]=o})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,i.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>r});var o=n(17452);function r(t){return i[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,o.Ml)(t);return l[e]||s}(t.url)}(t)]||a}const i={},s="text/plain",a=i[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)i[l[t]]=t},15512:(t,e,n)=>{n.d(e,{By:()=>o,_4:()=>r,pt:()=>i});const o="system",r="unknown",i="UTC"}}]);
|