@arcgis/core 4.23.0-next.20220126 → 4.23.0-next.20220130
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/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
- package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
- package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +1 -0
- package/assets/esri/core/workers/chunks/{97ec9eef0048760fa260.js → 0d02c6ad1f4688bfa374.js} +1 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
- package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
- package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → 17de7a324dfa7f57ad5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
- package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
- package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +1 -0
- package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
- package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
- package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
- package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +1 -0
- package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
- package/assets/esri/core/workers/chunks/2c8fe9bc988c3c5760a5.js +1 -0
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
- package/assets/esri/core/workers/chunks/357033117dfe61eb81ea.js +1 -0
- package/assets/esri/core/workers/chunks/{b2ebe4f6d100e15b512d.js → 37c03cfc19086ce631c6.js} +1 -1
- package/assets/esri/core/workers/chunks/386f86f961146f530aa7.js +1 -0
- package/assets/esri/core/workers/chunks/{e6165e17fbb07bfc40a1.js → 391e96192d1ec4e55ce2.js} +1 -1
- package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
- package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
- package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{438f0b5ae5c53ae4f06a.js → 4954fd86b48cc68b737c.js} +1 -1
- package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
- package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +1 -0
- package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +1 -0
- package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
- package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
- package/assets/esri/core/workers/chunks/{5dfe1f8d520025e2118b.js → 57b349d1dbc0bed75b79.js} +1 -1
- package/assets/esri/core/workers/chunks/{97a28641b3b2fd31bea2.js → 5bcb3240b3c005e5fe72.js} +1 -1
- package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +1 -0
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
- package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
- package/assets/esri/core/workers/chunks/{ba5eb394f098968c22d2.js → 655b55ac0cd533d7e9d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
- package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
- package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
- package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
- package/assets/esri/core/workers/chunks/{434b16731c6a81f868ef.js → 85b1f36790df95b17659.js} +1 -1
- package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
- package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
- package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
- package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
- package/assets/esri/core/workers/chunks/{601e697dc7414bda128a.js → 952980635afc7ec81804.js} +1 -1
- package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +1 -0
- package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
- package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
- package/assets/esri/core/workers/chunks/{f760a3e030b0f358a92a.js → aeaa1667c2d9f1b3366b.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f343f792fd9f44d6f25.js → b3f5e91116112b0b612a.js} +1 -1
- package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
- package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b84ca8ddfd48dd79b1.js → bac9fc90e6756e211160.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c76146014dc15143ba3.js → be588873c16770ceb9ef.js} +1 -1
- package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
- package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
- package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
- package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
- package/assets/esri/core/workers/chunks/{e4e2036373166c1d5cf5.js → c2253a9f29c1aabb2b75.js} +1 -1
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
- package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
- package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
- package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → db3c729ce0c0b2690dc9.js} +1 -1
- package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
- package/assets/esri/core/workers/chunks/{6f50a9647f026a8d4729.js → e0c8d61c7a85ce15499a.js} +1 -1
- package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
- package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
- package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +1 -0
- package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
- package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
- package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
- package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +1 -0
- package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
- package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
- package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
- package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +1 -0
- package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
- package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
- package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/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/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
- package/chunks/BlendLayers.glsl.js +2 -2
- package/chunks/ChapmanAtmosphere.glsl.js +17 -17
- package/chunks/CheckerBoard.glsl.js +3 -3
- package/chunks/Clouds.glsl.js +2 -2
- package/chunks/CloudsComposition.glsl.js +1 -1
- package/chunks/ColorMaterial.glsl.js +12 -12
- package/chunks/ComponentShader.glsl.js +3 -3
- package/chunks/Compositing.glsl.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +33 -33
- package/chunks/EdgeShaderProgram.glsl.js +7 -7
- package/chunks/Fog.glsl.js +10 -12
- package/chunks/HUDMaterial.glsl.js +2 -2
- package/chunks/HighlightComposition.glsl.js +5 -5
- package/chunks/ImageMaterial.glsl.js +6 -6
- package/chunks/LaserlinePath.glsl.js +8 -8
- package/chunks/LineCallout.glsl.js +6 -6
- package/chunks/MeasurementArrow.glsl.js +1 -1
- package/chunks/NativeLine.glsl.js +1 -1
- package/chunks/Path.glsl.js +5 -5
- package/chunks/Pattern.glsl.js +9 -9
- package/chunks/PointRenderer.glsl.js +14 -14
- package/chunks/Precipitation.glsl.js +91 -0
- package/chunks/RealisticTree.glsl.js +21 -21
- package/chunks/RibbonLine.glsl.js +11 -11
- package/chunks/SMAA.glsl.js +40 -40
- package/chunks/ShadedColorMaterial.glsl.js +12 -12
- package/chunks/ShadowCast.glsl.js +6 -6
- package/chunks/ShadowHighlight.glsl.js +4 -4
- package/chunks/SimpleAtmosphere.glsl.js +3 -3
- package/chunks/SlicePlaneMaterial.glsl.js +3 -3
- package/chunks/Stars.glsl.js +3 -3
- package/chunks/Terrain.glsl.js +11 -11
- package/chunks/TextureOnly.glsl.js +2 -2
- package/chunks/WaterSurface.glsl.js +5 -5
- package/chunks/boundedPlane.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/clock.js +1 -1
- package/core/jsonMap.js +1 -1
- package/core/loadAll.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/form/ExpressionInfo.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +232 -38
- package/layers/VectorTileLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
- package/support/arcadeOnDemand.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/FillSymbol3DLayer.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/ObjectSymbol3DLayer.js +1 -1
- package/symbols/Symbol3D.js +1 -1
- package/symbols/WebStyleSymbol.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/support/IconSymbol3DLayerResource.js +1 -1
- package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
- package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
- package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DIconOutline.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/symbols/support/Thumbnail.js +1 -1
- package/symbols/support/webStyleSymbolUtils.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/CloudsPresets.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.glsl.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/Precipitation.glsl.js +5 -0
- package/views/3d/environment/Precipitation.js +5 -0
- package/views/3d/environment/PrecipitationTechnique.js +5 -0
- package/views/3d/environment/RainyWeather.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/environment/SnowyWeather.js +5 -0
- package/views/3d/environment/Stars.glsl.js +1 -1
- package/views/3d/environment/Stars.js +1 -1
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.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/ParallelLineVisualElement.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/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.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/Graphics3DFeatureProcessor.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/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/lineUtils.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/symbolComplexity.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
- package/views/3d/layers/support/overlayImageUtils.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/LaserlinePathData.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/terrain/tileUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
- package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +10 -10
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.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/MagnifierHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/TextureUniformName.js +4 -0
- package/views/3d/webgl-engine/lib/UniformName.js +4 -0
- package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
- package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.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/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.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/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.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/internal/waterMaterialUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
- package/views/MapView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/input/recognizers/DoubleTapDrag.js +1 -1
- package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
- package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
- package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/WatchUpdatingTracking.js +1 -1
- package/views/support/projectionUtils.js +5 -0
- package/views/webgl/BufferObject.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/Program.js +1 -1
- package/webdoc/support/{Thumbnail.js → SlideThumbnail.js} +1 -1
- package/webmap/Bookmark.js +1 -1
- package/webmap/Version.js +1 -1
- package/webscene/Slide.js +1 -1
- package/webscene/Version.js +1 -1
- package/webscene/support/SlideVisibleLayer.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Search/support/locatorUtils.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather/enums.js +5 -0
- package/widgets/Weather.js +1 -1
- package/widgets/support/InteractiveToolViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +0 -1
- package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +0 -1
- package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +0 -1
- package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
- package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
- package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
- package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +0 -1
- package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
- package/assets/esri/core/workers/chunks/22b09e276c9b9f22f0f8.js +0 -1
- package/assets/esri/core/workers/chunks/23b15e7c2f96d260e16c.js +0 -1
- package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
- package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +0 -1
- package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +0 -1
- package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +0 -1
- package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
- package/assets/esri/core/workers/chunks/36e250278b5622ccf068.js +0 -1
- package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +0 -1
- package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
- package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +0 -1
- package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
- package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +0 -1
- package/assets/esri/core/workers/chunks/46b4bb66a54bbd8e2e57.js +0 -1
- package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
- package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
- package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
- package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +0 -1
- package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
- package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
- package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
- package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
- package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +0 -1
- package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +0 -1
- package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
- package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
- package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
- package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
- package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +0 -1
- package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +0 -1
- package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
- package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +0 -1
- package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
- package/assets/esri/core/workers/chunks/af5694b4d278cf1db2d9.js +0 -1
- package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +0 -1
- package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +0 -1
- package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +0 -1
- package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
- package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
- package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +0 -1
- package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
- package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +0 -1
- package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +0 -1
- package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
- package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
- package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
- package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
- package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
- package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +0 -1
- package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
- package/assets/esri/core/workers/chunks/ec89466f76d0ba22525e.js +0 -1
- package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +0 -1
- package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
- package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +0 -1
- package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +0 -1
- package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[147],{46851:(e,t,n)=>{n.d(t,{E:()=>r,R:()=>i});const r=1e-6,i=Math.random,s=Math.PI/180,a=180/Math.PI;Object.freeze({__proto__:null,EPSILON:r,RANDOM:i,toRadian:function(e){return e*s},toDegree:function(e){return e*a},equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))}})},17896:(e,t,n)=>{n.d(t,{E:()=>h,a:()=>d,b:()=>u,c:()=>b,d:()=>g,e:()=>_,f:()=>c,g:()=>a,h:()=>p,i:()=>f,k:()=>S,l:()=>s,m:()=>M,n:()=>y,p:()=>m,q:()=>T,r:()=>x,s:()=>o,t:()=>k,u:()=>C});var r=n(65617),i=n(46851);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function u(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function f(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function p(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function m(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function y(e,t){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function b(e,t,n){const r=t[0],i=t[1],s=t[2],a=n[0],o=n[1],u=n[2];return e[0]=i*u-s*o,e[1]=s*a-r*u,e[2]=r*o-i*a,e}function _(e,t,n,r){const i=t[0],s=t[1],a=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=a+r*(n[2]-a),e}function M(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function k(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function T(e,t,n){const r=n[0],i=n[1],s=n[2],a=n[3],o=t[0],u=t[1],c=t[2];let l=i*c-s*u,h=s*o-r*c,d=r*u-i*o,f=i*d-s*h,p=s*l-r*d,m=r*h-i*l;const y=2*a;return l*=y,h*=y,d*=y,f*=2,p*=2,m*=2,e[0]=o+l+f,e[1]=u+h+p,e[2]=c+d+m,e}const w=(0,r.c)(),v=(0,r.c)();function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function x(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let a=r*r+i*i+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=r*a,e[1]=i*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const I=c,q=l,G=h,U=f,P=p,C=s,F=m;Object.freeze({__proto__:null,length:s,copy:a,set:o,add:u,subtract:c,multiply:l,divide:h,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},min:function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},max:function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:d,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},distance:f,squaredDistance:p,squaredLength:m,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},normalize:y,dot:g,cross:b,lerp:_,hermite:function(e,t,n,r,i,s){const a=s*s,o=a*(2*s-3)+1,u=a*(s-2)+s,c=a*(s-1),l=a*(3-2*s);return e[0]=t[0]*o+n[0]*u+r[0]*c+i[0]*l,e[1]=t[1]*o+n[1]*u+r[1]*c+i[1]*l,e[2]=t[2]*o+n[2]*u+r[2]*c+i[2]*l,e},bezier:function(e,t,n,r,i,s){const a=1-s,o=a*a,u=s*s,c=o*a,l=3*s*o,h=3*u*a,d=u*s;return e[0]=t[0]*c+n[0]*l+r[0]*h+i[0]*d,e[1]=t[1]*c+n[1]*l+r[1]*h+i[1]*d,e[2]=t[2]*c+n[2]*l+r[2]*h+i[2]*d,e},random:function(e,t){t=t||1;const n=2*(0,i.R)()*Math.PI,r=2*(0,i.R)()-1,s=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*s,e[1]=Math.sin(n)*s,e[2]=r*t,e},transformMat4:M,transformMat3:k,transformQuat:T,rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},angle:function(e,t){a(w,e),a(v,t),y(w,w),y(v,v);const n=g(w,v);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},exactEquals:S,equals:function(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],a=t[0],o=t[1],u=t[2];return Math.abs(n-a)<=i.E*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.E*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-u)<=i.E*Math.max(1,Math.abs(s),Math.abs(u))},direction:x,sub:I,mul:q,div:G,dist:U,sqrDist:P,len:C,sqrLen:F})},65617:(e,t,n)=>{function r(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function s(e,t,n){return[e,t,n]}function a(e){const t=[0,0,0],n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function o(e,t){return new Float64Array(e,t,3)}function u(){return s(1,1,1)}function c(){return s(1,0,0)}function l(){return s(0,1,0)}function h(){return s(0,0,1)}n.d(t,{O:()=>f,Z:()=>d,a:()=>i,b:()=>o,c:()=>r,d:()=>a,f:()=>s});const d=[0,0,0],f=u(),p=c(),m=l(),y=h();Object.freeze({__proto__:null,create:r,clone:i,fromValues:s,fromArray:a,createView:o,zeros:function(){return[0,0,0]},ones:u,unitX:c,unitY:l,unitZ:h,ZEROS:d,ONES:f,UNIT_X:p,UNIT_Y:m,UNIT_Z:y})},98766:(e,t,n)=>{n.d(t,{a:()=>a,b:()=>l,c:()=>i,d:()=>y,e:()=>f,f:()=>p,g:()=>b,h:()=>_,l:()=>g,n:()=>m,s:()=>s});var r=n(46851);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function o(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function u(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function l(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function h(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function d(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return n*n+r*r+i*i+s*s}function f(e){const t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)}function p(e){const t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}function m(e,t){const n=t[0],r=t[1],i=t[2],s=t[3];let a=n*n+r*r+i*i+s*s;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=r*a,e[2]=i*a,e[3]=s*a),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function g(e,t,n,r){const i=t[0],s=t[1],a=t[2],o=t[3];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=a+r*(n[2]-a),e[3]=o+r*(n[3]-o),e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function _(e,t){const n=e[0],i=e[1],s=e[2],a=e[3],o=t[0],u=t[1],c=t[2],l=t[3];return Math.abs(n-o)<=r.E*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-u)<=r.E*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=r.E*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(a-l)<=r.E*Math.max(1,Math.abs(a),Math.abs(l))}const M=o,k=u,T=c,w=h,v=d,S=f,x=p;Object.freeze({__proto__:null,copy:i,set:s,add:a,subtract:o,multiply:u,divide:c,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},min:function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e},max:function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:l,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},distance:h,squaredDistance:d,length:f,squaredLength:p,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},normalize:m,dot:y,lerp:g,random:function(e,t){let n,i,s,a,o,u;t=t||1;do{n=2*(0,r.R)()-1,i=2*(0,r.R)()-1,o=n*n+i*i}while(o>=1);do{s=2*(0,r.R)()-1,a=2*(0,r.R)()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-o)/u);return e[0]=t*n,e[1]=t*i,e[2]=t*s*c,e[3]=t*a*c,e},transformMat4:function(e,t,n){const r=t[0],i=t[1],s=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*a,e},transformQuat:function(e,t,n){const r=t[0],i=t[1],s=t[2],a=n[0],o=n[1],u=n[2],c=n[3],l=c*r+o*s-u*i,h=c*i+u*r-a*s,d=c*s+a*i-o*r,f=-a*r-o*i-u*s;return e[0]=l*c+f*-a+h*-u-d*-o,e[1]=h*c+f*-o+d*-a-l*-u,e[2]=d*c+f*-u+l*-o-h*-a,e[3]=t[3],e},str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},exactEquals:b,equals:_,sub:M,mul:k,div:T,dist:w,sqrDist:v,len:S,sqrLen:x})},36030:(e,t,n)=>{n.d(t,{J:()=>s});var r=n(35454),i=n(5600);function s(e,t={}){var n;const s=e instanceof r.Xn?e:new r.Xn(e,t),a={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(a.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(a.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(a.json.name=t.name),(0,i.Cb)(a)}},43090:(e,t,n)=>{function r(e){return 32+e.length}function i(e){if(!e)return 0;let t=32;for(const n in e)if(e.hasOwnProperty(n)){const i=e[n];switch(typeof i){case"string":t+=r(i);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function s(e,t){return 32+e.length*t}var a;n.d(t,{Y8:()=>a,f2:()=>i,do:()=>s}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(a||(a={}))},74085:(e,t,n)=>{function r(e){}n.d(t,{Bg:()=>r}),n(80442)},22021:(e,t,n)=>{n.d(t,{ZF:()=>d,Kt:()=>f,jE:()=>y,uZ:()=>a,oK:()=>p,Vl:()=>l,wt:()=>o,t7:()=>c,Sf:()=>s,fp:()=>u,BV:()=>h});var r=n(17896);n(98766);const i=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function a(e,t,n){return Math.min(Math.max(e,t),n)}function o(e){return 0==(e&e-1)}function u(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function c(e,t,n){return e+(t-e)*n}function l(e){return e*Math.PI/180}function h(e){return 180*e/Math.PI}function d(e){return Math.acos(a(e,-1,1))}function f(e){return Math.asin(a(e,-1,1))}function p(e){return m(Math.max(-g,Math.min(e,g)))}function m(e){return i[0]=e,i[0]}function y(e,t){const n=(0,r.l)(e),i=f(e[2]/n),s=Math.atan2(e[1]/n,e[0]/n);return(0,r.s)(t,n,i,s),t}const g=m(34028234663852886e22)},45091:(e,t,n)=>{n.d(t,{Z:()=>l});var r,i,s=n(80442),a=n(71143);(i=r||(r={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const o=4294967296,u=new TextDecoder("utf-8"),c=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class l{constructor(e,t,n=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=r.unknown,this._init(e,t,n,i)}_init(e,t,n,r){this._data=e,this._dataView=t,this._pos=n,this._end=r}clone(){return new l(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),n}getSFixed64(){const e=this._dataView,t=this._pos,n=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),n}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,n=this._toString(this._data,t,t+e);return this._skip(e),n}getBytes(){const e=this._getLength(),t=this._pos,n=this._toBytes(this._data,t,t+e);return this._skip(e),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,n,r){const i=this.getMessage(),s=e(i,t,n,r);return i.release(),s}processMessage(e){const t=this.getMessage(),n=e(t);return t.release(),n}getMessage(){const e=this._getLength(),t=l.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case r.varint:this._decodeVarint();break;case r.fixed64:this._skip(8);break;case r.delimited:this._skip(this._getLength());break;case r.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t,n=this._pos,r=0;if(this._end-n>=10)do{if(t=e[n++],r|=127&t,0==(128&t))break;if(t=e[n++],r|=(127&t)<<7,0==(128&t))break;if(t=e[n++],r|=(127&t)<<14,0==(128&t))break;if(t=e[n++],r|=(127&t)<<21,0==(128&t))break;if(t=e[n++],r+=268435456*(127&t),0==(128&t))break;if(t=e[n++],r+=34359738368*(127&t),0==(128&t))break;if(t=e[n++],r+=4398046511104*(127&t),0==(128&t))break;if(t=e[n++],r+=562949953421312*(127&t),0==(128&t))break;if(t=e[n++],r+=72057594037927940*(127&t),0==(128&t))break;if(t=e[n++],r+=0x8000000000000000*(127&t),0==(128&t))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;n!==this._end&&(t=e[n],0!=(128&t));)++n,r+=(127&t)*i,i*=128;if(n===this._end)throw new Error("Varint overrun!");++n,r+=t*i}return this._pos=n,r}_decodeSVarint(){const e=this._decodeVarint();return e%2?-(e+1)/2:e/2}_getLength(){if(this._dataType!==r.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,n){if((n=Math.min(this._end,n))-t>c){const r=e.subarray(t,n);return u.decode(r)}let r="",i="";for(let s=t;s<n;++s){const t=e[s];128&t?i+="%"+t.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(e,t,n){return n=Math.min(this._end,n),new Uint8Array(e.buffer,t,n-t)}}l.pool=new a.Z(l,null,(e=>{e._data=null,e._dataView=null}))},67900:(e,t,n)=>{n.d(t,{gV:()=>E,En:()=>w,Z7:()=>G,c9:()=>q,_R:()=>x,qE:()=>C,cM:()=>I,hd:()=>l,ty:()=>v,Jo:()=>Z,$C:()=>S}),n(80442);var r=n(35454),i=n(70586),s=n(24678),a=n(82971),o=n(68441),u=n(8744),c=n(58116);const l=39.37,h=o.sv.radius*Math.PI/200,d=/UNIT\[([^\]]+)\]\]$/i,f=c.Z,p=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.wY)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,b=e=>e*e*e,_={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},M=function(){const e={};for(const t in _)for(const n in _[t].units)e[n]=t;return e}();function k(e){const t=M[e];if(t)return t;throw new Error("unknown measure")}function T(e,t=null){return t=t||k(e),_[t].baseUnit===e}function w(e,t,n){if(t===n)return e;const r=k(t);if(r!==k(n))throw new Error("incompatible units");const i=T(t,r)?e:function(e,t,n){return e*_[n].units[t].inBaseUnits}(e,t,r);return T(n,r)?i:function(e,t,n){return e/_[n].units[t].inBaseUnits}(i,n,r)}function v(e,t,n){return w(e,t,"meters")/(n*Math.PI/180)}function S(e){return y.fromJSON(e.toLowerCase())||null}function x(e){if(e&&"object"==typeof e&&!(0,u.N$)(e))return 1;const t=q(e);return t>1e5?1:t}function I(e){return q(e)>=(e instanceof a.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":C(e)}function q(e,t=o.sv.metersPerDegree){return G(e,!0)||t}function G(e,t=!1){let n,r,i=null;if(null!=e&&("object"==typeof e?(n=e.wkid,r=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(r=e)),n){if((0,u.o$)(n))return o.yr.metersPerDegree;if((0,u.ME)(n))return o.Z1.metersPerDegree;i=f.values[f[n]],!i&&t&&m.has(n)&&(i=h)}else r&&(R(r)?i=U(d.exec(r),i):F(r)&&(i=U(p.exec(r),i)));return i}function U(e,t){return e&&e[1]?P(e[1]):t}function P(e){return parseFloat(e.split(",")[1])}function C(e){let t,n,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)r=f.units[f[t]];else if(n){const e=R(n)?d:F(n)?p:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||-1===f.units.indexOf(n)){const t=P(e);n=null;const r=f.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=f.units[e];break}}return n}(t[1]))}}return(0,i.pC)(r)?S(r):null}function F(e){return/^GEOCCS/i.test(e)}function R(e){return/^PROJCS/i.test(e)}const V={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},B={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},E=(0,r.wY)()(V),Z=(0,r.wY)()(B);(0,r.wY)()({...V,...B})},24678:(e,t,n)=>{n.d(t,{GG:()=>o,HQ:()=>u,VY:()=>c,wY:()=>l,Iu:()=>d,e8:()=>f,rS:()=>h});var r=n(82971),i=n(68441),s=n(8744);function a(e){return new r.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const o=a(i.sv),u=a(i.yr),c=a(i.Z1),l=new r.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function h(e){return e&&((0,s.BZ)(e)||e===u)?u:e&&((0,s.V2)(e)||e===c)?c:o}function d(e){return e&&((0,s.BZ)(e)||e===u)?i.yr:e&&((0,s.V2)(e)||e===c)?i.Z1:i.sv}function f(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},60437:(e,t,n)=>{n.d(t,{Gv:()=>y,Ue:()=>i,cS:()=>d,fS:()=>m,TC:()=>a,pp:()=>o,JR:()=>f,al:()=>s,t8:()=>h,Tn:()=>l,op:()=>c,dp:()=>u});var r=n(70586);function i(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,s,a,o=i()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=s,o[5]=a,o}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function l(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function d(e){return e?h(e,y):i(y)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function p(e){return 6===e.length}function m(e,t,n){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!p(e)||!p(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(6570),n(24470);const y=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];i()},24470:(e,t,n)=>{n.d(t,{Gv:()=>d,SO:()=>c,r3:()=>h,Ue:()=>s,oJ:()=>o,al:()=>a,kK:()=>l,HH:()=>u}),n(80442),n(22021);var r=n(70586),i=n(6570);function s(e=f){return[e[0],e[1],e[2],e[3]]}function a(e,t,n,r,i=s()){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function o(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e){return function(e){return(0,r.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function l(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const d=[1/0,1/0,-1/0,-1/0],f=[0,0,0,0]},33955:(e,t,n)=>{n.d(t,{im:()=>m,q9:()=>b,Ji:()=>y,YX:()=>l,aW:()=>h,wp:()=>d,oU:()=>p,l9:()=>f});var r=n(70586),i=n(6570),s=n(9361),a=n(65091),o=n(13473),u=n(17332),c=n(58901);function l(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function p(e){return void 0!==e.rings}function m(e){return(0,r.Wi)(e)?null:e instanceof s.Z?e:d(e)?o.Z.fromJSON(e):f(e)?c.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):h(e)?a.Z.fromJSON(e):l(e)?i.Z.fromJSON(e):null}function y(e){return e?d(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":l(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.Z,esriGeometryPolyline:c.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:a.Z};function b(e){return e&&g[e]||null}},86973:(e,t,n)=>{n.d(t,{Mk:()=>i,P$:()=>s});var r=n(35454);const i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(70586),i=n(67900),s=n(8744);function a(e,t,n){if((0,r.Wi)(t)||(0,r.Wi)(n)||n.vcsWkid||(0,s.fS)(t,n))return null;const a=(0,i._R)(t)/(0,i._R)(n);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},1231:(e,t,n)=>{n.d(t,{Z:()=>y});var r,i=n(43697),s=n(35454),a=n(96674),o=n(5600),u=(n(67676),n(80442),n(75215)),c=n(36030),l=n(71715),h=n(52011),d=n(72729),f=n(86719);const p=new s.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends a.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?p.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,o.Cb)()],m.prototype,"description",void 0),(0,i._)([(0,l.r)("description")],m.prototype,"readDescription",null),(0,i._)([(0,o.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,o.Cb)({type:u.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,c.J)(f.v)],m.prototype,"type",void 0),(0,i._)([(0,o.Cb)()],m.prototype,"valueType",void 0),(0,i._)([(0,l.r)("valueType",["description"])],m.prototype,"readValueType",null),m=r=(0,i._)([(0,h.j)("esri.layers.support.Field")],m);const y=m},72729:(e,t,n)=>{n.d(t,{im:()=>S,V5:()=>v}),n(80442);var r,i=n(43697),s=n(22974),a=n(5600),o=(n(75215),n(36030)),u=n(52011),c=n(96674);n(67676);let l=r=class extends c.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:!0}})],l.prototype,"code",void 0),l=r=(0,i._)([(0,u.j)("esri.layers.support.CodedValue")],l);const h=l,d=new(n(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let f=class extends c.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,i._)([(0,o.J)(d)],f.prototype,"type",void 0),f=(0,i._)([(0,u.j)("esri.layers.support.Domain")],f);const p=f;var m;let y=m=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,a.Cb)({type:[h],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,o.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=m=(0,i._)([(0,u.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var b;n(92604),n(37697);let _=b=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,i._)([(0,o.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=b=(0,i._)([(0,u.j)("esri.layers.support.InheritedDomain")],_);const M=_;var k;let T=k=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new k({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,i._)([(0,o.J)({range:"range"})],T.prototype,"type",void 0),T=k=(0,i._)([(0,u.j)("esri.layers.support.RangeDomain")],T);const w=T,v={key:"type",base:p,typeMap:{range:T,"coded-value":g,inherited:M}};function S(e){if(!e||!e.type)return null;switch(e.type){case"range":return w.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return M.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=new(n(35454).Xn)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},77863:(e,t,n)=>{n.d(t,{K9:()=>G,O7:()=>h,G$:()=>v});var r=n(20102),i=n(70586),s=n(45091),a=n(5428),o=n(78760);const u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function h(e){return e>=u.length?null:u[e]}function d(e){return e>=c.length?null:c[e]}function f(e){return e>=l.length?null:l[e]}function p(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function m(e,t,n){const r=t.createPointGeometry(n);for(;e.next();)switch(e.tag()){case 3:{const n=e.getUInt32(),i=e.pos()+n;let s=0;for(;e.pos()<i;)t.addCoordinatePoint(r,e.getSInt64(),s++);break}default:e.skip()}return r}function y(e,t,n){const r=t.createGeometry(n),i=2+(n.hasZ?1:0)+(n.hasM?1:0);for(;e.next();)switch(e.tag()){case 2:{const n=e.getUInt32(),i=e.pos()+n;let s=0;for(;e.pos()<i;)t.addLength(r,e.getUInt32(),s++);break}case 3:{const n=e.getUInt32(),s=e.pos()+n;let a=0;for(t.allocateCoordinates(r);e.pos()<s;)t.addCoordinate(r,e.getSInt64(),a),a++,a===i&&(a=0);break}default:e.skip()}return r}function g(e){const t=new a.Z;let n="esriGeometryPoint";for(;e.next();)switch(e.tag()){case 2:{const n=e.getUInt32(),r=e.pos()+n;for(;e.pos()<r;)t.lengths.push(e.getUInt32());break}case 3:{const n=e.getUInt32(),r=e.pos()+n;for(;e.pos()<r;)t.coords.push(e.getSInt64());break}case 1:n=o.A[e.getEnum()];break;default:e.skip()}return{queryGeometry:t,queryGeometryType:n}}function b(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function _(e){const t={type:h(0)};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.type=h(e.getEnum());break;case 3:t.alias=e.getString();break;case 4:t.sqlType=d(e.getEnum());break;case 5:default:e.skip();break;case 6:t.defaultValue=e.getString()}return t}function M(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.isSystemMaintained=e.getBool();break;default:e.skip()}return t}function k(e,t,n,r){const i=t.createFeature(n);let s=0;for(;e.next();)switch(e.tag()){case 1:{const t=r[s++].name;i.attributes[t]=e.processMessage(b);break}case 2:i.geometry=e.processMessageWithArgs(y,t,n);break;case 4:i.centroid=e.processMessageWithArgs(m,t,n);break;default:e.skip()}return i}function T(e){const t=[1,1,1,1];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function w(e){const t=[0,0,0,0];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function v(e){const t={originPosition:f(0)};for(;e.next();)switch(e.tag()){case 1:t.originPosition=f(e.getEnum());break;case 2:t.scale=e.processMessage(T);break;case 3:t.translate=e.processMessage(w);break;default:e.skip()}return t}function S(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.shapeAreaFieldName=e.getString();break;case 2:t.shapeLengthFieldName=e.getString();break;case 3:t.units=e.getString();break;default:e.skip()}return t}function x(e,t){const n=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:n.wkid=e.getUInt32();break;case 5:n.wkt=e.getString();break;case 2:n.latestWkid=e.getUInt32();break;case 3:n.vcsWkid=e.getUInt32();break;case 4:n.latestVcsWkid=e.getUInt32();break;default:e.skip()}return n}function I(e,t){const n=t.createFeatureResult();n.geometryType=p(t,0);let r=!1;for(;e.next();)switch(e.tag()){case 1:n.objectIdFieldName=e.getString();break;case 3:n.globalIdFieldName=e.getString();break;case 4:n.geohashFieldName=e.getString();break;case 5:n.geometryProperties=e.processMessage(S);break;case 7:n.geometryType=p(t,e.getEnum());break;case 8:n.spatialReference=e.processMessageWithArgs(x,t);break;case 10:n.hasZ=e.getBool();break;case 11:n.hasM=e.getBool();break;case 12:n.transform=e.processMessage(v);break;case 9:{const t=e.getBool();n.exceededTransferLimit=t;break}case 13:t.addField(n,e.processMessage(_));break;case 15:r||(t.prepareFeatures(n),r=!0),t.addFeature(n,e.processMessageWithArgs(k,t,n,n.fields));break;case 2:n.uniqueIdField=e.processMessage(M);break;default:e.skip()}return t.finishFeatureResult(n),n}function q(e,t){const n={};let r=null;for(;e.next();)switch(e.tag()){case 4:r=e.processMessageWithArgs(g);break;case 1:n.featureResult=e.processMessageWithArgs(I,t);break;default:e.skip()}return(0,i.pC)(r)&&n.featureResult&&t.addQueryGeometry(n,r),n}function G(e,t){try{const n=2,r=new s.Z(new Uint8Array(e),new DataView(e)),i={};for(;r.next();)r.tag()===n?i.queryResult=r.processMessageWithArgs(q,t):r.skip();return i}catch(e){throw new r.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,n)=>{n.d(t,{A:()=>u,J:()=>c});var r=n(67900),i=n(8744),s=n(70272),a=n(44876),o=n(5428);const u=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class c{constructor(e){this.options=e,this.geometryTypes=u,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this.options.sourceSpatialReference||!e.spatialReference||(0,i.fS)(e.spatialReference,this.options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,r._R)(this.options.sourceSpatialReference)/(0,r._R)(e.spatialReference);if(1!==t)for(const n of e.features){if(!(0,s.S6)(n))continue;const e=n.geometry.coords;for(let n=2;n<e.length;n+=3)e[n]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new s.ZP}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(77863);function i(e,t){const n=(0,r.K9)(e,t),i=n.queryResult.featureResult,s=n.queryResult.queryGeometry,a=n.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=s,i.queryGeometryType=a),i}},61916:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(74085),i=n(70586),s=n(99001),a=n(82971),o=n(69285),u=(n(43090),n(80442),n(60437)),c=n(24470),l=(n(82397),n(86973),n(1231));class h{constructor(e,t,n){this.uid=e,this.geometry=t,this.attributes=n,this.visible=!0,this.objectId=null,this.centroid=null}}class d{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}(0,u.Ue)(),(0,c.Ue)();var f=n(98732);function p(e,t){return t}function m(e,t,n,r){switch(n){case 0:return _(e,t+r,0);case 1:return"lowerLeft"===e.originPosition?_(e,t+r,1):function({translate:e,scale:t},n,r){return e[r]-n*t[r]}(e,t+r,1)}}function y(e,t,n,r){return 2===n?_(e,t,2):m(e,t,n,r)}function g(e,t,n,r){return 2===n?_(e,t,3):m(e,t,n,r)}function b(e,t,n,r){return 3===n?_(e,t,3):y(e,t,n,r)}function _({translate:e,scale:t},n,r){return e[r]+n*t[r]}class M{constructor(e){this.options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=p,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this._attributesConstructor=function(){}}createFeatureResult(){return new d}finishFeatureResult(e){if(this.options.applyTransform&&(e.transform=null),this._attributesConstructor=function(){},this.coordinateBuffer=null,this.lengths.length=0,!e.hasZ)return;const t=(0,o.k)(e.geometryType,this.options.sourceSpatialReference,e.spatialReference);if(!(0,i.Wi)(t))for(const n of e.features)t(n.geometry)}createSpatialReference(){return new a.Z}addField(e,t){e.fields.push(l.Z.fromJSON(t));const n=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){const n=this.options.maxStringAttributeLength?this.options.maxStringAttributeLength:0;if(n>0)for(const e in t.attributes){const r=t.attributes[e];"string"==typeof r&&r.length>n&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:n,queryGeometryType:r}=t,i=(0,f.$g)(n.clone(),n,!1,!1,this.transform),s=(0,f.di)(i,r,!1,!1);let a=null;switch(r){case"esriGeometryPoint":a="point";break;case"esriGeometryPolygon":a="polygon";break;case"esriGeometryPolyline":a="polyline";break;case"esriGeometryMultipoint":a="multipoint"}s.type=a,e.queryGeometryType=r,e.queryGeometry=s}prepareFeatures(e){switch(this.transform=e.transform,this.options.applyTransform&&e.transform&&(this.applyTransform=this._deriveApplyTransform(e)),this.vertexDimension=2,e.hasZ&&this.vertexDimension++,e.hasM&&this.vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,n)=>this.addCoordinatePoint(e,t,n),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,n)=>this._addCoordinatePolygon(e,t,n),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,n)=>this._addCoordinatePolyline(e,t,n),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,n)=>this._addCoordinateMultipoint(e,t,n),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,r.Bg)(e.geometryType)}}createFeature(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,new h((0,s.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this.lengths.reduce(((e,t)=>e+t),0);this.coordinateBuffer=new Float64Array(e*this.vertexDimension),this.coordinateBufferPtr=0}addLength(e,t,n){0===this.lengths.length&&(this.toAddInCurrentPath=t),this.lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,n){switch(t=this.applyTransform(this.transform,t,n,0),n){case 0:e.x=t;break;case 1:e.y=t;break;case 2:e.hasZ?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let n=0;return t<=1&&(n=this.previousCoordinate[t],this.previousCoordinate[t]+=e),this.applyTransform(this.transform,e,t,n)}_addCoordinatePolyline(e,t,n){this._dehydratedAddPointsCoordinate(e.paths,t,n)}_addCoordinatePolygon(e,t,n){this._dehydratedAddPointsCoordinate(e.rings,t,n)}_addCoordinateMultipoint(e,t,n){0===n&&e.points.push([]);const r=this._transformPathLikeValue(t,n);e.points[e.points.length-1].push(r)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,n){0===n&&0==this.toAddInCurrentPath--&&(e.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);const r=this._transformPathLikeValue(t,n),i=e[e.length-1];0===n&&i.push(new Float64Array(this.coordinateBuffer.buffer,this.coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT,this.vertexDimension)),this.coordinateBuffer[this.coordinateBufferPtr++]=r}_deriveApplyTransform(e){const{hasZ:t,hasM:n}=e;return t&&n?b:t?y:n?g:m}}var k=n(45178);class T{_parseFeatureQuery(e){const t=(0,k.C)(e.buffer,new M(e.options)),n={...t,spatialReference:t.spatialReference.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(n)}}function w(){return new T}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8536],{41993:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=41993,e.exports=t},99880:(e,t,r)=>{"use strict";r.d(t,{V:()=>l});var s=r(68773),n=(r(3172),r(20102)),i=r(92604),o=r(17452);const a=i.Z.getLogger("esri.assets");function l(e){if(!s.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(s.Z.assetsPath,e)}},80539:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var s,n=r(43697),i=r(3894),o=r(32448),a=r(22974),l=r(70586),h=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(s||(s={}));var c,u=r(1654),d=r(5600),p=r(75215),f=r(52421),m=r(52011),g=r(58971),_=r(39020);class v{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new _.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),w=()=>{};function b(e){return e?e instanceof U?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e&&e.length)return e[0]}function I(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function A(e,t,r,s){t&&t.forEach(((t,n,i)=>{e.push(t),A(e,r.call(s,t,n,i),r,s)}))}const C=new Set,k=new Set,x=new Set,O=new Map;let T=0,U=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new v,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:T++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,g.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(s.ADD)||(this._splice(0,this.length,b(e)),this._emitAfterChanges(s.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=w,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,g.it)(this._observable),this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(s.ADD),this}addMany(e,t=this._items.length){if((0,g.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,b(e)),this._emitAfterChanges(s.ADD),this}removeAll(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(s.REMOVE),e}clone(){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,g.it)(this._observable);const t=e.map(b);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),n=r.length;for(let s=0;s<n;s++)e.call(t,r[s],s,r);this._emitAfterChanges(s.REMOVE)}every(e,t){return(0,g.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,g.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,g.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,g.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,g.it)(this._observable);const r=[];return A(r,this,e,t),new c(r)}forEach(e,t){return(0,g.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,g.it)(this._observable),this._items[e]}getNextIndex(e){(0,g.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,g.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,g.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,g.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,g.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,g.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,g.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(s.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(s.MOVE)}return e}}pop(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(s.REMOVE),e}push(...e){return(0,g.it)(this._observable),this._emitBeforeChanges(s.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(s.ADD)),this.length}reduce(e,t){(0,g.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,g.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,g.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,g.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(s.REMOVE))return;const t=S(this._splice(e,1));return this._emitAfterChanges(s.REMOVE),t}removeMany(e){if((0,g.it)(this._observable),!e||!e.length||this._emitBeforeChanges(s.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+I(t,r,e+1,i+1),o=this._splice(i,s);o&&o.length>0&&n.push.apply(n,o),e+=s-1}}return this._emitAfterChanges(s.REMOVE),n}reverse(){if((0,g.it)(this._observable),this._emitBeforeChanges(s.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(s.MOVE),this}shift(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=S(this._splice(0,1));return this._emitAfterChanges(s.REMOVE),e}slice(e=0,t=this.length){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,g.it)(this._observable),this._items.some(e,t)}sort(e){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(s.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(s.MOVE),this}splice(e,t,...r){(0,g.it)(this._observable);const n=(t?s.REMOVE:0)|(r.length?s.ADD:0);if(this._emitBeforeChanges(n))return[];const i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return(0,g.it)(this._observable),this._items.slice()}toJSON(){return(0,g.it)(this._observable),this.toArray()}toLocaleString(){return(0,g.it)(this._observable),this._items.toLocaleString()}toString(){return(0,g.it)(this._observable),this._items.toString()}unshift(...e){return(0,g.it)(this._observable),!e.length||this._emitBeforeChanges(s.ADD)||(this._splice(0,0,e),this._emitAfterChanges(s.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),t){if(o=s.splice(e,t),this.hasEventListener("before-remove")){const t=y.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=o.length;r<n;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);y.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=y.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);y.release(e)}}if(r&&r.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),o=e===this.length;if(t||i){const n=y.acquire();n.target=this,n.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(o?s.push(l):s.splice(e++,0,l),this._set("length",s.length),i&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(e++,0,l),this._set("length",s.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(n)}else{if(o)for(const e of r)s.push(e);else s.splice(e,0,...r);this._set("length",s.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=y.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,y.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=y.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),y.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;C.clear(),k.clear(),x.clear();for(const{added:t,removed:r}of e){if(t)if(0===x.size&&0===k.size)for(const e of t)C.add(e);else for(const e of t)k.has(e)?(x.add(e),k.delete(e)):x.has(e)||C.add(e);if(r)if(0===x.size&&0===C.size)for(const e of r)k.add(e);else for(const e of r)C.has(e)?C.delete(e):(x.delete(e),k.add(e))}const r=i.Z.acquire();C.forEach((e=>{r.push(e)}));const s=i.Z.acquire();k.forEach((e=>{s.push(e)}));const n=this._items,o=t.items,a=i.Z.acquire();if(x.forEach((e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||s.length||a.length)){const e={target:this,added:r,removed:s,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.Z.release(r),i.Z.release(s),i.Z.release(a)}C.clear(),k.clear(),x.clear()}};U.ofType=e=>{if(!e)return c;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends c{};return(0,n._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],r.prototype,"itemType",void 0),r=(0,n._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),O.set(e,r),r},(0,n._)([(0,d.Cb)()],U.prototype,"length",void 0),(0,n._)([(0,d.Cb)()],U.prototype,"items",null),U=c=(0,n._)([(0,m.j)("esri.core.Collection")],U);const E=U},32448:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var s=r(43697),n=r(15923),i=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const s=this.target||this;return[...r].forEach((e=>{e.call(s,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,i.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],s=r.indexOf(t);s>=0&&r.splice(s,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,s._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends n.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,s._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},61247:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var s=r(43697),n=r(15923),i=r(80539),o=r(70586),a=r(5600),l=r(52011);let h=class extends n.Z{constructor(e){super(e),this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if(!this._isHandle(e)&&!Array.isArray(e)&&!i.Z.isCollection(e))return this;const r=this._getOrCreateGroup(t);return Array.isArray(e)||i.Z.isCollection(e)?e.forEach((e=>this._isHandle(e)&&r.push(e))):r.push(e),this.notifyChange("size"),this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if(Array.isArray(e)||i.Z.isCollection(e))return e.forEach(this.remove,this),this;if(!this.has(e))return this;const t=this._getGroup(e);for(let e=0;e<t.length;e++)t[e].remove();return this._deleteGroup(e),this.notifyChange("size"),this}removeAll(){return this._groups.forEach((e=>{for(let t=0;t<e.length;t++)e[t].remove()})),this._groups.clear(),this.notifyChange("size"),this}_isHandle(e){return e&&!!e.remove}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,o.j0)(this._groups.get(this._ensureGroupKey(e)))}_deleteGroup(e){return this._groups.delete(this._ensureGroupKey(e))}_ensureGroupKey(e){return e||"_default_"}};(0,s._)([(0,a.Cb)({readOnly:!0})],h.prototype,"size",null),h=(0,s._)([(0,l.j)("esri.core.Handles")],h);const c=h},609:(e,t,r)=>{"use strict";r.d(t,{D:()=>d,v:()=>u});var s,n,i=r(43697),o=r(15923),a=r(70586),l=r(95330),h=r(52011);(n=s||(s={}))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class c{constructor(e){this.instance=e,this._resolver=(0,l.dD)(),this._status=s.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=s.RESOLVED,this._cleanUp()}),(()=>{this._status=s.REJECTED,this._cleanUp()}))}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===s.RESOLVED}isRejected(){return this._status===s.REJECTED}isFulfilled(){return this._status!==s.PENDING}abort(){this._resolver.reject((0,l.zE)())}when(e,t){return this._resolver.promise.then(e,t)}_cleanUp(){this._allPromise=this._resolvingPromises=this._allPromise=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,l.dD)(),t=[...this._resolvingPromises,(0,a.j0)(e.promise)],r=this._allPromise=Promise.all(t);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve(this.instance)}),(e=>{this.isFulfilled()||this._allPromise!==r||(0,l.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const u=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new c(this),this.addResolvingPromise(Promise.resolve())}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return new Promise(((e,t)=>{this._promiseProps.when(e,t)})).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,i._)([(0,h.j)("esri.core.Promise")],t),t};let d=class extends(u(o.Z)){};d=(0,i._)([(0,h.j)("esri.core.Promise")],d)},52421:(e,t,r)=>{"use strict";function s(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>s})},91460:(e,t,r)=>{"use strict";function s(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function n(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const s=t.slice();for(const t of s)e.addEventListener(t,r);return{remove(){for(const t of s)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const i=n(e,t,(t=>{i.remove(),r.call(e,t)}));return{remove(){i.remove()}}}r.d(t,{vT:()=>s,on:()=>n,IH:()=>i})},35454:(e,t,r)=>{"use strict";r.d(t,{Xn:()=>n,wY:()=>i});var s=r(78286);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this.jsonToAPI=e,this.options=t,this.apiValues=[],this.jsonValues=[],this.apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this.apiToJSON),this.jsonValues=this._getKeysSorted(this.jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,s.RB)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(this.apiToJSON.hasOwnProperty(e)){const t=this.apiToJSON[e];return this.options.useNumericKeys?+t:t}return this.options.ignoreUnknown?void 0:e}fromJSON(e){return this.jsonToAPI.hasOwnProperty(e)?this.jsonToAPI[e]:this.options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}_getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>k,$6:()=>l,Ue:()=>h,zE:()=>c,dD:()=>b,hh:()=>U,vr:()=>E,Ds:()=>T,as:()=>S,WW:()=>I,R8:()=>w,D_:()=>y,Hc:()=>p,y8:()=>x,fu:()=>g,$F:()=>_,d1:()=>A,DB:()=>C,r9:()=>f,k_:()=>u,H9:()=>m,Yn:()=>R,gx:()=>O,Hl:()=>v});const s=(n=globalThis,{setTimeout:(e,t)=>{const r=n.setTimeout(e,t);return{remove:()=>n.clearTimeout(r)}}});var n,i=r(20102),o=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function h(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function u(e,t="Aborted"){if(p(e))throw c(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function f(e){if(y(e))throw e}function m(e){if(!y(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function _(e,t){const r=d(e);if(!(0,a.Wi)(r))return u(r),(0,o.IH)(r,"abort",(()=>t(c())))}function v(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,s)=>{let n=g(t,(()=>s(c())));const i=()=>n=(0,a.hw)(n);e.then(i,i),e.then(r,s)}))}function y(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!y(e))throw e}))}function b(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function S(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return S(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,s)=>r[t]=e[s])),r}))}const t=e;return h((e=>{const r=[];let s=t.length;0===s&&e(r),t.forEach((t=>{const n={promise:t||Promise.resolve(t)};r.push(n),n.promise.then((e=>{n.value=e})).catch((e=>{n.error=e})).then((()=>{--s,0===s&&e(r)}))}))}))}function I(e){return S(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function A(e){return Promise.reject(e)}function C(e){return Promise.resolve(e)}function k(e,t,r){const s=new AbortController;return g(r,(()=>s.abort())),new Promise(((r,n)=>{let i=setTimeout((()=>{i=0,r(t)}),e);g(s,(()=>{i&&(clearTimeout(i),n(c()))}))}))}function x(e){return e&&"function"==typeof e.then}function O(e){return x(e)?e:Promise.resolve(e)}function T(e,t=-1){let r,s,n,i,o=null;const l=(...h)=>{if(r){s=h,i&&i.reject(c()),i=b();const e=(0,a.j0)(i.promise);if(o){const e=o;o=null,e.abort()}return e}if(n=i||b(),i=null,t>0){const s=new AbortController;r=O(e(...h,s.signal));const n=r;k(t).then((()=>{r===n&&(i?s.abort():o=s)}))}else r=1,r=O(e(...h));const u=()=>{const e=s;s=n=r=o=null,null!=e&&l(...e)},d=r,p=n;return d.then(u,u),d.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function U(){let e,t;const r=new Promise(((r,s)=>{e=r,t=s})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}function E(e,t){let r,s=new AbortController;const n=e(s.signal);let i={promise:n,finished:!1,abort:()=>{s&&(s.abort(),s=null)}};const o=()=>{i&&(i.finished=!0,i=null),(0,a.pC)(r)&&(r.remove(),r=null),s=null};return n.then(o,o),r=g(t,(()=>{(0,a.pC)(i)&&i.abort()})),i}function R(e){return Promise.resolve().then((()=>{u(e)}))}},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>T,tD:()=>P,ZN:()=>de,fl:()=>pe,Ie:()=>he,sJ:()=>K,AH:()=>G,io:()=>Q,L:()=>I,TI:()=>S,vt:()=>ae,oh:()=>L,P$:()=>V,Ml:()=>fe,ed:()=>D,b7:()=>O,D6:()=>M,tm:()=>N,YP:()=>z,jc:()=>J,HK:()=>W,$U:()=>re,oC:()=>ee,kl:()=>q,v_:()=>F,hF:()=>B,_l:()=>X,PF:()=>Z,Fv:()=>H,B7:()=>x,u0:()=>C,Yd:()=>oe,Hu:()=>ue,Qj:()=>le,hO:()=>se,mN:()=>A});var s=r(68773),n=r(20102),i=r(92604),o=r(70586);const a=i.Z.getLogger("esri.core.urlUtils"),l=s.Z.request,h="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,u=/^\s*http:/i,d=/^\s*https:/i,p=/^\s*file:/i,f=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),_=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,o.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,o.j0)(this.authority.match(_)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const y={};let w=new v(s.Z.applicationUrl);let b=function(){const e=(0,o.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const S=()=>w,I=()=>b;function A(e){const t={path:null,query:null},r=new v(e),s=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,s),t.query=C(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function C(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let s,n;t<0?(s=decodeURIComponent(e),n=""):(s=decodeURIComponent(e.slice(0,t)),n=decodeURIComponent(e.slice(t+1)));let i=r[s];"string"==typeof i&&(i=r[s]=[i]),Array.isArray(i)?i.push(n):r[s]=n}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const s=e[r];if(null==s)return"";const n=encodeURIComponent(r)+"=",i=t&&t[r];return i?n+encodeURIComponent(i(s)):Array.isArray(s)?s.map((e=>k(e)?n+encodeURIComponent(JSON.stringify(e)):n+encodeURIComponent(e))).join("&"):k(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)})).filter((e=>e)).join("&"):""}function O(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=re(e);const s=D(e);s&&(r=s.proxyUrl)}else t=!!e;if(!r)throw a.warn(h),new n.Z("urlutils:proxy-not-set",h);return t&&ne()&&(r=se(r)),A(r)}function T(e){const t=D(e);let r,s;if(t){const e=E(t.proxyUrl);r=e.path,s=e.query?C(e.query):null}if(r){const t=A(e);e=r+"?"+t.path;const n=x({...s,...t.query});n&&(e=`${e}?${n}`)}return e}const U={path:"",query:""};function E(e){const t=e.indexOf("?");return-1!==t?(U.path=e.slice(0,t),U.query=e.slice(t+1)):(U.path=e,U.query=null),U}function R(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=E(e).path),!0)).toLowerCase()}function P(e){const t={proxyUrl:e.proxyUrl,urlPrefix:R(e.urlPrefix)},r=l.proxyRules,s=t.urlPrefix;let n=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===s.indexOf(t)){if(s.length===t.length)return-1;n=e;break}0===t.indexOf(s)&&(n=e+1)}return r.splice(n,0,t),n}function D(e){const t=l.proxyRules,r=R(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function N(e,t){return e=j(e),t=j(t),ie(e)===ie(t)}function j(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function L(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function M(e,t,r=!1){const s=ce(e),n=ce(t);return!(!r&&s.scheme!==n.scheme)&&null!=s.host&&null!=n.host&&s.host.toLowerCase()===n.host.toLowerCase()&&s.port===n.port}function q(e){if("string"==typeof e){if(!z(e))return!0;e=ce(e)}if(M(e,w))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const s=$(t[r]);for(let t=0;t<s.length;t++)if(M(e,s[t]))return!0}return!1}function $(e){return y[e]||(te(e)||ee(e)?y[e]=[new v(B(e))]:y[e]=[new v(`http://${e}`),new v(`https://${e}`)]),y[e]}function B(e,t=b,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===V(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(F("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function Z(e,t=b,r){if(!z(e))return e;const s=H(e),n=s.toLowerCase(),i=H(t).toLowerCase().replace(/\/+$/,""),o=r?H(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==i.indexOf(o))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(n,"/",n.indexOf("//")+2),h=-1;for(;n.slice(0,l+1)===i.slice(0,l)+"/"&&(h=l+1,l!==n.length);)l=a(n,"/",l+1);if(-1===h)return e;if(o&&h<o.length)return e;e=s.slice(h);const c=i.slice(h-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=l.httpsDomains;if(!function(e){return u.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const r=e.indexOf("/",7);let s;if(s=-1===r?e:e.slice(0,r),s=s.toLowerCase().slice(7),f.test(s)){if(!s.endsWith(":80"))return e;s=s.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&s===w.authority&&!m.test(e)||(ne()&&s===w.authority||t&&t.some((e=>s===e||s.endsWith(`.${e}`)))||ne()&&!D(e))&&(e=se(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=E(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=B(e=e.trim()))))}function F(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(z(t[0])){const e=t[0],s=e.indexOf("//");-1!==s&&(r.push(e.slice(0,s+1)),function(e){return p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(s+2))}else"/"===t[0][0]&&r.push("");const s=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<s.length;e++){const t=s[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===s.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function V(e,t=!1){if(J(e)||W(e))return null;let r=e.indexOf("://");if(-1===r&&ee(e))r=2;else{if(-1===r)return null;r+=3}const s=e.indexOf("/",r);return-1!==s&&(e=e.slice(0,s)),t&&(e=ie(e,!0)),e}function z(e){return ee(e)||te(e)}function J(e){return null!=e&&"blob:"===e.slice(0,5)}function W(e){return"data:"===e.slice(0,5)}function G(e){const t=K(e);if(!t||!t.isBase64)return null;const r=atob(t.data),s=new Uint8Array(r.length);for(let e=0;e<r.length;e++)s[e]=r.charCodeAt(e);return s.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function K(e){const t=e.match(Y);if(!t)return null;const[,r,s,n]=t;return{mediaType:r,isBase64:!!s,data:n}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function Q(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const s=URL.createObjectURL(e);return r.download=t,r.href=s,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(s),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function re(e){return d.test(e)||"https"===w.scheme&&ee(e)}function se(e){return ee(e)?`https:${e}`:e.replace(u,"https:")}function ne(){return"https"===w.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function oe(e){let t=0;if(z(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ae(e,t){if(!e)return"";const r=A(e).path.replace(/\/+$/,""),s=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return s;const n=new RegExp(`.(${t.join("|")})$`,"ig");return s.replace(n,"")}function le(e){return e.replace(/\/+$/,"")}function he(e,t,r){if(!(t&&r&&e&&z(e)))return e;const s=e.indexOf("//"),n=e.indexOf("/",s+2),i=e.indexOf(":",s+2),o=Math.min(n<0?e.length:n,i<0?e.length:i);return e.slice(s+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,s+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new v(B(e)):(e.scheme||(e.scheme=w.scheme),e)}function ue(e,t){const r=A(e),s=Object.keys(r.query||{});return s.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${s.join(", ")}.`),r.path}function de(e,t,r){const s=A(e),n=s.query||{};return n[t]=String(r),`${s.path}?${x(n)}`}function pe(e,t){const r=A(e),s=r.query||{};for(const e in t)s[e]=t[e];const n=x(s);return n?`${r.path}?${n}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},41123:(e,t,r)=>{"use strict";function s(){const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16);return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}r.d(t,{D:()=>s})},43050:(e,t,r)=>{"use strict";r.d(t,{S1:()=>o,on:()=>u,OY:()=>c,cm:()=>l,N1:()=>a,LR:()=>h,tH:()=>d});var s=r(91460),n=(r(22974),r(95330));const i=/\?(\.|$)/g;function o(e,t,r,s){const n=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],o=function(e,t,r,s){return e.watch(t,r,s)}(e,t,r,s);for(const t of n){const s=t.trim().replace(i,"$1"),n=e.get(s);r.call(e,n,n,s,e)}return o}function a(e,t,r,s){return d(e,t,p,r,s)}function l(e,t,r,s){return d(e,t,f,r,s)}function h(e,t,r,s){return d(e,t,m,r,s)}function c(e,t,r,s){return d(e,t,g,r,s)}function u(e,t,r,n,i,a,l){const h={};function c(t){const s=h[t];s&&(a&&a(s.target,t,e,r),s.handle.remove(),delete h[t])}const u=o(e,t,((t,o,a)=>{c(a),(0,s.vT)(t)&&(h[a]={handle:(0,s.on)(t,r,n),target:t},i&&i(t,a,e,r))}),l);return{remove(){u.remove();for(const e in h)c(e)}}}function d(e,t,r,s,i){const o="function"==typeof s?s:null,a="object"==typeof s?s:null;"boolean"==typeof s&&(i=s);let l,h=!1;function c(){l&&(l.remove(),l=null)}const u=(0,n.dD)();(0,n.fu)(a,(()=>{c(),u.reject((0,n.zE)())}));const d={then:u.promise.then.bind(u.promise),catch:u.promise.catch.bind(u.promise),remove:c};return Object.freeze(d),l=function(e,t,r,s,n){const i=e.watch(t,((t,n,i,o)=>{r&&!r(t)||null==s||s.call(e,t,n,i,o)}),n);if(Array.isArray(t))for(const n of t){const i=e.get(n);r&&r(i)&&(null==s||s.call(e,i,i,t,e))}else{const n=e.get(t);r&&r(n)&&(null==s||s.call(e,n,n,t,e))}return i}(e,t,r,((t,r,s,n)=>{h=!0,c(),o&&o.call(e,t,r,s,n),u.resolve({value:t,oldValue:r,propertyName:s,target:n})}),i),h&&c(),d}function p(e){return!!e}function f(e){return!e}function m(e){return!0===e}function g(e){return!1===e}},85976:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>dt});var s=r(40330),n=r(43697),i=r(68773),o=r(3172),a=r(20102),l=r(32448),h=r(91460),c=r(22974),u=r(78286),d=r(95330),p=r(17452),f=r(5600),m=(r(75215),r(52011)),g=(r(67676),r(80442),r(940)),_=(r(2587),r(60235));(()=>{if("function"==typeof Element.prototype.closest)return(e,t)=>e.closest(t);Element.prototype.matches||Element.prototype.msMatchesSelector})();var v=r(61247),y=r(92604),w=r(70586),b=r(609),S=r(41123),I=r(43050),A=r(90578),C=r(58971),k=r(38805),x=r(8728),O=r(3894),T=r(50758);y.Z.getLogger("esri.widgets.support.widgetUtils");function U(e){const t=O.Z.acquire();for(let e=0;e<arguments.length;e++){const r=arguments[e],s=typeof r;if("string"===s)t.push(r);else if(Array.isArray(r))t.push.apply(t,r);else if("object"===s)for(const e in r)r[e]&&t.push(e)}const r=t.join(" ");return O.Z.release(t),r}function E(e){this[e.getAttribute("data-node-ref")]=e}(()=>{const e=new Map;new ResizeObserver((t=>{for(const r of t)e.get(r.target)(r)}))})();const R=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce(((e,t)=>(e[t]=[],e)),{}),P=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],D=new x.Z({whiteList:R,onTagAttr:(e,t,r)=>{const s=`${t}="${r}"`;if(P.includes(t))return s},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),N="http://www.w3.org/",j=`${N}2000/svg`,L=`${N}1999/xlink`;let M,q=[],$=(e,t)=>{let r={};return Object.keys(e).forEach((t=>{r[t]=e[t]})),t&&Object.keys(t).forEach((e=>{r[e]=t[e]})),r},B=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),Z=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},H=(e,t,r)=>{if(""!==t.vnodeSelector)for(let s=r;s<e.length;s++)if(B(e[s],t))return s;return-1},F=(e,t,r,s)=>{let n=e[t];if(""===n.vnodeSelector)return;let i=n.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(let i=0;i<e.length;i++)if(i!==t){let t=e[i];if(B(t,n))throw new Error(`${r.vnodeSelector} had a ${n.vnodeSelector} child ${"added"===s?s:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},V=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},z=[],J=!1,W=e=>{(e.children||[]).forEach(W),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},G=()=>{J=!1,z.forEach(W),z.length=0},Y=e=>{z.push(e),J||(J=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(G,{timeout:16}):setTimeout(G,16))},K=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let s=()=>{t.parentNode&&(t.parentNode.removeChild(t),Y(e))};return void r(t,s,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),Y(e))},X=(e,t,r)=>{if(!t)return;let s=r.eventHandlerInterceptor,n=Object.keys(t),i=n.length;for(let o=0;o<i;o++){let i=n[o],a=t[i];if("className"===i)throw new Error('Property "className" is not supported, use "class".');if("class"===i)te(e,a,!0);else if("classes"===i){let t=Object.keys(a),r=t.length;for(let s=0;s<r;s++){let r=t[s];a[r]&&e.classList.add(r)}}else if("styles"===i){let t=Object.keys(a),s=t.length;for(let n=0;n<s;n++){let s=t[n],i=a[s];i&&(Z(i),r.styleApplyer(e,s,i))}}else if("key"!==i&&null!=a){let n=typeof a;"function"===n?(0===i.lastIndexOf("on",0)&&(s&&(a=s(i,a,e,t)),"oninput"===i&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[i]=a):r.namespace===j?"href"===i?e.setAttributeNS(L,i,a):e.setAttribute(i,a):"string"===n&&"value"!==i?"innerHTML"===i?e[i]=D.sanitize(a):e.setAttribute(i,a):e[i]=a}}},Q=(e,t,r)=>{((e,t,r)=>{if(t)for(let s of t)ee(s,e,void 0,r)})(e,t.children,r),t.text&&(e.textContent=t.text),X(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},ee=(e,t,r,s)=>{let n,i=0,o=e.vnodeSelector,a=t.ownerDocument;if(""===o)n=e.domNode=a.createTextNode(e.text),void 0!==r?t.insertBefore(n,r):t.appendChild(n);else{for(let l=0;l<=o.length;++l){let h=o.charAt(l);if(l===o.length||"."===h||"#"===h){let h=o.charAt(i-1),c=o.slice(i,l);"."===h?n.classList.add(c):"#"===h?n.id=c:("svg"===c&&(s=$(s,{namespace:j})),void 0!==s.namespace?n=e.domNode=a.createElementNS(s.namespace,c):(n=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&n.setAttribute("type",e.properties.type)),void 0!==r?t.insertBefore(n,r):n.parentNode!==t&&t.appendChild(n)),i=l+1}}Q(n,e,s)}},te=(e,t,r)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,r)}))};M=(e,t,r)=>{let s=e.domNode,n=!1;if(e===t)return!1;let i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=s.ownerDocument.createTextNode(t.text);return s.parentNode.replaceChild(e,s),t.domNode=e,n=!0,n}t.domNode=s}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=$(r,{namespace:j})),e.text!==t.text&&(i=!0,void 0===t.text?s.removeChild(s.firstChild):s.textContent=t.text),t.domNode=s,i=((e,t,r,s,n)=>{if(r===s)return!1;s=s||q;let i,o=(r=r||q).length,a=s.length,l=0,h=0,c=!1;for(;h<a;){let a=l<o?r[l]:void 0,u=s[h];if(void 0!==a&&B(a,u))c=M(a,u,n)||c,l++;else{let a=H(r,u,l+1);if(a>=0){for(i=l;i<a;i++)K(r[i]),F(r,i,e,"removed");c=M(r[a],u,n)||c,l=a+1}else ee(u,t,l<o?r[l].domNode:void 0,n),V(u),F(s,h,e,"added")}h++}if(o>l)for(i=l;i<o;i++)K(r[i]),F(r,i,e,"removed");return c})(t,s,e.children,t.children,r)||i,i=((e,t,r,s)=>{if(!r)return;let n=!1,i=Object.keys(r),o=i.length;for(let a=0;a<o;a++){let o=i[a],l=r[o],h=t[o];if("class"===o)h!==l&&(te(e,h,!1),te(e,l,!0));else if("classes"===o){let t=e.classList,r=Object.keys(l),s=r.length;for(let e=0;e<s;e++){let s=r[e],i=!!l[s];i!==!!h[s]&&(n=!0,i?t.add(s):t.remove(s))}}else if("styles"===o){let t=Object.keys(l),r=t.length;for(let i=0;i<r;i++){let r=t[i],o=l[r];o!==h[r]&&(n=!0,o?(Z(o),s.styleApplyer(e,r,o)):s.styleApplyer(e,r,""))}}else if(l||"string"!=typeof h||(l=""),"value"===o){let t=e[o];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==h)&&(e[o]=l,e["oninput-value"]=void 0),l!==h&&(n=!0)}else if(l!==h){let t=typeof l;"function"===t&&s.eventHandlerInterceptor||(s.namespace===j?"href"===o?e.setAttributeNS(L,o,l):e.setAttribute(o,l):"string"===t?"innerHTML"===o?e[o]=D.sanitize(l):"role"===o&&""===l?e.removeAttribute(o):e.setAttribute(o,l):e[o]!==l&&(e[o]=l),n=!0)}}return n})(s,e.properties,t.properties,r)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[s,r,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(s,t.properties,e.properties),n};let re=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let s=e;e=r,M(s,r,t)},domNode:e.domNode});const se={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}};let ne,ie=e=>$(se,e),oe=(e,t,r)=>(r=ie(r),ee(t,e,void 0,r),re(t,r)),ae=(e,t,r)=>(r=ie(r),ee(t,e.parentNode,e,r),re(t,r)),le=(e,t,r)=>(r=ie(r),t.domNode=e,Q(e,t,r),re(t,r)),he=(e,t,r)=>(r=ie(r),ee(t,e.parentNode,e,r),e.parentNode.removeChild(e),re(t,r));ne=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const ce={handleInterceptedEvent:(e,t,r,s)=>(e.scheduleRender(),t.properties[`on${s.type}`].apply(t.properties.bind||r,[s]))},ue={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{e.style[t]=r}},de=(e,t,r=!1)=>{let s=e;return t.forEach(((e,n)=>{var i;const o=null!=(i=s)&&i.children?((e,t)=>e.find(t))(s.children,(t=>t.domNode===e)):void 0;r&&!o&&n!==t.length-1||(s=o)})),s};var pe=r(77210),fe=r(99880);let me;me="components/assets";const ge=Symbol("widget"),_e=[],ve={},ye=new WeakMap;function we(e,t){let r=t.children;if(r&&r.length)for(let t=0;t<r.length;++t)r[t]=we(e,r[t]);else r=_e;const s=t.vnodeSelector;if(Ae(s)){const n=t.properties||ve,i=n.key||s;return{vnodeSelector:"div",properties:{key:i,afterCreate:be,afterUpdate:Se,afterRemoved:Ie,parentWidget:e,widgetConstructor:s,widgetProperties:{...n,key:i,children:r}},children:void 0,text:void 0,domNode:null}}return t}function be(e,t,r,{parentWidget:s,widgetConstructor:n,widgetProperties:i}){const o=new n(i);o.container=e,ye.set(e,o),null==o.afterCreate||o.afterCreate(o,e),s._internalHandles.add((0,T.kB)((()=>Ie(e))))}function Se(e,t,r,{widgetProperties:s}){const n=ye.get(e);n&&(n.set(s),null==n.afterUpdate||n.afterUpdate(n,e))}function Ie(e){const t=ye.get(e);t&&(t.destroy(),ye.delete(e))}function Ae(e){return"function"==typeof e&&e[ge]}var Ce=r(70171),ke=r(94443);const xe="esri.widgets.Widget",Oe=y.Z.getLogger(xe);let Te=0;const Ue=new Map;function Ee(e,t){for(const r in t)null!=e[r]&&("object"==typeof e[r]&&"object"==typeof t[r]?Ee(e[r],t[r]):e[r]=t[r]);return e}const Re=(e=>{let t;const r={...ce,...e},s=(i=r,{...ue,...i}),n=s.performanceLogger;var i;let o,a=!0,l=!1;const h=[],c=[],u=(e,i,o)=>{let a;s.eventHandlerInterceptor=(e,s,i,o)=>function(e){let s;n("domEvent",e);const i=((e,t)=>{const r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r})(e.currentTarget,a.domNode),o=i.some((e=>{var t;return customElements.get(null==e||null==(t=e.tagName)?void 0:t.toLowerCase())}));if(e.eventPhase!==Event.CAPTURING_PHASE&&o){const t=e.composedPath(),r=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).filter((e=>e.getRootNode()===e.ownerDocument)).reverse();s=de(a.getLastRender(),r,!0)}else i.reverse(),s=de(a.getLastRender(),i);let l;return s&&(l=r.handleInterceptedEvent(t,s,this,e)),n("domEventProcessed",e),l},null==r.postProcessProjectionOptions||r.postProcessProjectionOptions(s);const l=o();a=e(i,l,s),h.push(a),c.push(o),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(a,l)};let d=()=>{if(o=void 0,a){a=!1,n("renderStart",void 0);for(let e=0;e<h.length;e++){const t=c[e]();n("rendered",void 0),h[e].update(t),n("patched",void 0)}n("renderDone",void 0),a=!0}};return r.modifyDoRenderImplementation&&(d=r.modifyDoRenderImplementation(d,h,c)),t={renderNow:d,scheduleRender:()=>{o||l||(o=requestAnimationFrame(d))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,a=!0,t.scheduleRender()},append:(e,t)=>{u(oe,e,t)},insertBefore:(e,t)=>{u(ae,e,t)},merge:(e,t)=>{u(le,e,t)},replace:(e,t)=>{u(he,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),h.splice(t,1)[0];throw new Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,n,i)=>{const o=t(e,s,n,i),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in n)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>o.call(n,e);n.addEventListener(t,r,a);const s=()=>n.removeEventListener(t,r,a),l=i.afterRemoved;i.afterRemoved=e=>{null==l||l(e),s()}}return o}},handleInterceptedEvent(e,t,r,s){const{eventPhase:n,type:i}=s,o=n===Event.CAPTURING_PHASE;let a=`on${i}${o?"capture":""}`;const l=t.properties;(a in l||(a=`on${i[0].toUpperCase()}${i.slice(1)}${o?"Capture":""}`,a in l))&&(Ue.clear(),e.scheduleRender(),l[a].call(l.bind||r,s))}});let Pe=!1,De=class extends((0,b.v)(l.Z.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._internalHandles=new v.Z,this._projector=Re,this._readyForTrueRender=!1,this.domNode=null,this.iconClass="esri-icon-checkbox-unchecked",this.label=this.declaredClass.split(".").pop(),this.visible=!0,this.key=this,this._loadLocale=(0,d.Ds)((async()=>{if(this._messageBundleProps&&this._messageBundleProps.length){const e=await(0,d.as)(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{let r=await(0,ke.ME)(e);this.uiStrings&&Object.keys(this.uiStrings)&&(r=Ee((0,c.d9)(r),this.uiStrings)),this[t]=r})));for(const t of e)t.error&&Oe.error("widget-intl:locale-error",this.declaredClass,t.error)}await this.loadLocale()})),(0,pe.YY)((0,p.hF)((0,fe.V)("components/assets")));const r=getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"")||"light";["light","dark"].includes(r)||(0,_.x9)(Oe,"The following themes are deprecated: light-blue, dark-blue, light-green, dark-green, light-purple, dark-purple, light-red, and dark-red.",{version:"4.19",warnOnce:!0,see:"https://developers.arcgis.com/javascript/latest/styling/"});const s="esri-widget-uid-"+(0,S.D)(),n=this.render.bind(this);this._trackingTarget=new k.M((()=>this.scheduleRender()));const i=()=>{var e;if(!this._readyForTrueRender||this.destroyed)return null;if(!this.visible)return{vnodeSelector:"div",properties:{key:s,class:"",styles:{display:"none"}},domNode:void 0,children:void 0,text:void 0};const t=n();let{properties:r}=t;r||(t.properties=r={});let{key:i,styles:o}=r;i||(r.key=s),o||(r.styles=o={}),o.display||(o.display="");let a=0;return null==(e=t.children)||e.forEach((e=>{if(Ae(e.vnodeSelector))return;let{properties:t}=e;t||(e.properties=t={}),t.key||(t.key=`${this.id}--${a++}`)})),we(this,t)};this.render=()=>{if(Pe)return i();let e=Ue.get(this);if(e)return e;this._trackingTarget.clear(),Pe=!0;try{e=(0,C.LJ)(this._trackingTarget,i)}finally{Pe=!1}return Ue.set(this,e),e},this.addResolvingPromise(this._resourcesFetch=this.beforeFirstRender().then((()=>{this._readyForTrueRender=!0,this._postInitialize()})))}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){return Promise.all([this.loadDependencies(),this._loadLocale()]).then((()=>{})).catch(d.H9)}async loadDependencies(){}async loadLocale(){}destroy(){this.destroyed||(this._trackingTarget=(0,w.SC)(this._trackingTarget),this.viewModel=(0,w.SC)(this.viewModel),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null,Ue.delete(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return function(e){return"string"==typeof e?document.getElementById(e):e}(e)}get id(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+Te++}set id(e){e&&this._set("id",e)}get renderable(){return this._resourcesFetch}get test(){return{projector:this._projector,handles:this._internalHandles}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(Ue.delete(this),this._projector.scheduleRender())}classes(...e){return U.apply(this,e)}own(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments)),this._internalHandles.add(e)}renderNow(){Ue.delete(this),this._projector.renderNow()}_postInitialize(){var e;if(this.destroyed)return;this.scheduleRender(),null!=(e=this._delegatedEventNames)&&e.length&&this._internalHandles.add((0,I.S1)(this,"viewModel",((e,t)=>{t&&this._internalHandles.remove("delegated-events"),e&&this._internalHandles.add(this._delegatedEventNames.map((t=>e.on(t,(e=>{this.emit(t,e)})))),"delegated-events")}))),this.postInitialize();const t=async()=>{await this._loadLocale().catch(d.H9),this.scheduleRender()};this._internalHandles.add([(0,Ce.qe)(t),this.watch("uiStrings",t),(0,I.N1)(this,"container",(async e=>{this.destroyed||this._attach(e)}))])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){e&&this._attached&&(this._projector.detach(this.render),e.parentNode&&e.parentNode.removeChild(e),this._attached=!1)}};De[ge]=!0,(0,n._)([(0,f.Cb)()],De.prototype,"_readyForTrueRender",void 0),(0,n._)([(0,f.Cb)({value:null})],De.prototype,"container",null),(0,n._)([(0,A.p)("container")],De.prototype,"castContainer",null),(0,n._)([(0,f.Cb)({aliasOf:"container"})],De.prototype,"domNode",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"iconClass",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"id",null),(0,n._)([(0,f.Cb)()],De.prototype,"label",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"renderable",null),(0,n._)([(0,f.Cb)()],De.prototype,"uiStrings",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"viewModel",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"visible",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"key",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"children",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"afterCreate",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"afterUpdate",void 0),(0,n._)([(0,f.Cb)()],De.prototype,"afterRemoved",void 0),De=(0,n._)([(0,m.j)(xe)],De);const Ne=De;function je(e){return function(t,r){t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Le=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Me=function(e,t){for(var r=0,s=e.length;r<s;r++){var n=e[r];Array.isArray(n)?Me(n,t):null!=n&&!1!==n&&(n.hasOwnProperty("vnodeSelector")||(n=Le(n)),t.push(n))}};function qe(e,t,...r){return"function"!=typeof e||Ae(e)?function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(1===r.length&&"string"==typeof r[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var n=[];return Me(r,n),{vnodeSelector:e,properties:t||void 0,children:n,text:void 0,domNode:null}}(e,t,...r):e(t,...r)}const $e="esri-identity-form__group",Be="esri-identity-form__label",Ze="esri-input",He="esri-button";let Fe=class extends Ne{constructor(e,t){super(e,t),this._usernameInputNode=null,this._passwordInputNode=null,this.messages=null,this.signingIn=!1,this.server=null,this.resource=null,this.error=null,this.oAuthPrompt=!1}render(){const{error:e,server:t,resource:r,signingIn:s,oAuthPrompt:n,messages:i}=this,o=qe("div",{class:$e},(0,g.n)(n?i.oAuthInfo:i.info,{server:/\.arcgis\.com/i.test(t)?"ArcGIS Online":t,resource:`(${r||i.lblItem})`})),a=n?null:qe("div",{class:$e,key:"username"},qe("label",{class:Be},i.lblUser,qe("input",{value:"",required:!0,autocomplete:"off",spellcheck:!1,type:"text",bind:this,afterCreate:E,"data-node-ref":"_usernameInputNode",class:Ze}))),l=n?null:qe("div",{class:$e,key:"password"},qe("label",{class:Be},i.lblPwd,qe("input",{value:"",required:!0,type:"password",bind:this,afterCreate:E,"data-node-ref":"_passwordInputNode",class:Ze}))),h=qe("div",{class:this.classes($e,"esri-identity-form__footer")},qe("input",{type:"submit",disabled:!!s,value:s?i.lblSigning:i.lblOk,class:He}),qe("input",{type:"button",value:i.lblCancel,bind:this,onclick:this._cancel,class:this.classes(He,"esri-button--secondary")})),c=e?qe("div",null,e.details&&e.details.httpStatus?i.invalidUser:i.noAuthService):null;return qe("form",{class:"esri-identity-form",bind:this,onsubmit:this._submit},o,c,a,l,h)}_cancel(){this._set("signingIn",!1),this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode&&this._usernameInputNode.value,password:this._passwordInputNode&&this._passwordInputNode.value};this.emit("submit",t)}};(0,n._)([(0,f.Cb)(),je("esri/identity/t9n/identity")],Fe.prototype,"messages",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"signingIn",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"server",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"resource",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"error",void 0),(0,n._)([(0,f.Cb)()],Fe.prototype,"oAuthPrompt",void 0),Fe=(0,n._)([(0,m.j)("esri.identity.IdentityForm")],Fe);const Ve=Fe;var ze=r(44291);const Je="esri-identity-modal__content";let We=class extends Ne{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.content=null,this.open=!1,this._close=()=>{this.open=!1},document.body.appendChild(this.container),this.own(this.watch("open",(()=>this._toggleFocusTrap())))}destroy(){this._destroyFocusTrap()}render(){const e=this.id,{open:t,content:r,title:s,messages:n}=this,i=t&&!!r,o={"esri-identity-modal--open":i,"esri-identity-modal--closed":!i},a=qe("button",{class:"esri-identity-modal__close-button","aria-label":n.close,title:n.close,bind:this,onclick:this._close},qe("span",{"aria-hidden":"true",class:"esri-icon-close"})),l=`${e}_title`,h=`${e}_content`,c=s?qe("h1",{id:l,class:"esri-identity-modal__title"},s):null,u=i?qe("div",{bind:this,class:"esri-identity-modal__dialog",role:"dialog","aria-labelledby":l,"aria-describedby":h,afterCreate:this._createFocusTrap},a,c,this._renderContent(h)):null;return qe("div",{tabIndex:-1,class:this.classes("esri-identity-modal",o)},u)}_destroyFocusTrap(){var e;null==(e=this._focusTrap)||e.deactivate({onDeactivate:null}),this._focusTrap=null}_toggleFocusTrap(){const{_focusTrap:e,open:t}=this;e&&(t?e.activate():e.deactivate())}_createFocusTrap(e){this._destroyFocusTrap();const t=requestAnimationFrame((()=>{this._focusTrap=(0,ze.v)(e,{initialFocus:"input",onDeactivate:this._close}),this._toggleFocusTrap()}));this.own((0,T.kB)((()=>cancelAnimationFrame(t))))}_renderContent(e){const t=this.content;return"string"==typeof t?qe("div",{class:Je,id:e,innerHTML:t}):function(e){return e&&"function"==typeof e.render}(t)?qe("div",{class:Je,id:e},t.render()):t instanceof HTMLElement?qe("div",{class:Je,id:e,bind:t,afterCreate:this._attachToNode}):null}_attachToNode(e){e.appendChild(this)}};(0,n._)([(0,f.Cb)({readOnly:!0})],We.prototype,"container",void 0),(0,n._)([(0,f.Cb)()],We.prototype,"content",void 0),(0,n._)([(0,f.Cb)()],We.prototype,"open",void 0),(0,n._)([(0,f.Cb)(),je("esri/t9n/common")],We.prototype,"messages",void 0),(0,n._)([(0,f.Cb)({aliasOf:"messages.auth.signIn"})],We.prototype,"title",void 0),We=(0,n._)([(0,m.j)("esri.identity.IdentityModal")],We);const Ge=We,Ye="esriJSAPIOAuth";class Ke{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.expires=null,this.ssl=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.token&&this.userId){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r||(r=e[t.authNamespace]={}),r[t.portalUrl]={appId:this.appId=t.appId,expires:this.expires,ssl:this.ssl,token:this.token,userId:this.userId};try{this.storage.setItem(Ye,JSON.stringify(e))}catch(e){console.log(e)}}}destroy(){const e=this._load(),t=this.oAuthInfo;if(t&&t.appId&&t.portalUrl&&this.token&&this.expires>Date.now()){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",r=new FormData;if(r.append("f","json"),r.append("auth_token",this.token),r.append("client_id",t.appId),r.append("token_type_hint","access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(e,r);else{const t=new XMLHttpRequest;t.open("POST",e),t.send(r)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const r=e[t.authNamespace];if(r){delete r[t.portalUrl];try{this.storage.setItem(Ye,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.expires=r.expires,this.ssl=r.ssl,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(Ye);if(t)try{e=JSON.parse(t)}catch(e){console.log(e)}}return e}}Ke.prototype.declaredClass="esri.identity.OAuthCredential";var Xe,Qe=r(96674);let et=Xe=class extends Qe.wq{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return Xe.fromJSON(this.toJSON())}};(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"appId",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"authNamespace",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"expiration",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"forceLogin",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"forceUserId",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"locale",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"minTimeUntilExpiration",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"popup",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"popupCallbackUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"popupWindowFeatures",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"portalUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"preserveUrlHash",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],et.prototype,"userId",void 0),et=Xe=(0,n._)([(0,m.j)("esri.identity.OAuthInfo")],et);const tt=et;let rt=class extends Qe.wq{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"adminTokenServiceUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"currentVersion",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"hasPortal",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"hasServer",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"owningSystemUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"owningTenant",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"server",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"shortLivedTokenValidity",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"tokenServiceUrl",void 0),(0,n._)([(0,f.Cb)({json:{write:!0}})],rt.prototype,"webTierAuth",void 0),rt=(0,n._)([(0,m.j)("esri.identity.ServerInfo")],rt);const st=rt,nt={},it=e=>{const t=new p.R9(e.owningSystemUrl).host,r=new p.R9(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},ot=(e,t)=>!!(it(e)&&t&&t.some((t=>t.test(e.server))));let at=null,lt=null;try{at=window.localStorage,lt=window.sessionStorage}catch{}class ht extends l.Z{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this.defaultOAuthInfo=null,this.defaultTokenValidity=60,this.dialog=null,this.formConstructor=Ve,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,p.mN)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthHash=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|MapServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthHash(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e)}))}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)}))}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,n=this.findServerInfo(t),i=!0;n||(n=new st,n.server=this._getServerInstanceRoot(t),r?n.hasServer=!0:(n.tokenServiceUrl=this._getTokenSvcUrl(t),n.hasPortal=!0),this.registerServers([n])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),i=!1):(s=new ct({userId:e.userId,server:n.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),i||s.refreshServerTokens()}toJSON(){return(0,c.yd)({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new st(t))})),e.length&&this.registerServers(e)}if(r){const e=[];r.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new tt(t))})),e.length&&this.registerOAuthInfos(e)}s&&s.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new ct(e)).emitTokenChange(),this.credentials.push(e))}))}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const n of this.credentials)if(this._hasSameServerInstance(n.server,e)&&t===n.userId&&n.scope===s){r=n;break}}else for(const t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===s){r=t;break}return r}getCredential(e,t){let r,s,n=!0;t&&(r=!!t.token,s=t.error,n=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const i=new AbortController,o=(0,d.hh)();if(t.signal&&(0,d.fu)(t.signal,(()=>{i.abort()})),(0,d.fu)(i,(()=>{o.reject(new a.Z("identity-manager:user-aborted","ABORTED"))})),(0,d.Hc)(i))return o.promise;t.signal=i.signal;const l=this._isAdminResource(e),h=r?this.findCredential(e):null;let c;if(h&&s&&s.details&&498===s.details.httpStatus)h.destroy();else if(h)return c=new a.Z("identity-manager:not-authorized","You are currently signed in as: '"+h.userId+"'. You do not have access to this resource: "+e,{error:s}),o.reject(c),o.promise;const u=this._findCredential(e,t);if(u)return o.resolve(u),o.promise;let f=this.findServerInfo(e);if(f)!f.hasServer&&this._isServerRsrc(e)&&(f._restInfoPms=this._getTokenSvcUrl(e),f.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return c=new a.Z("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),o.reject(c),o.promise;f=new st,f.server=this._getServerInstanceRoot(e),"string"==typeof t?(f.tokenServiceUrl=t,f.hasPortal=!0):(f._restInfoPms=t,f.hasServer=!0),this.registerServers([f])}return f.hasPortal&&void 0===f._selfReq&&(n||(0,p.D6)(f.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===f.tokenServiceUrl)))&&(f._selfReq={owningTenant:t&&t.owningTenant,selfDfd:this._getPortalSelf(f.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,f,t,o,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const s=this._rePortalTokenSvc.test(e.tokenServiceUrl),n=new p.R9(this._appOrigin),i=e.shortLivedTokenValidity;let l,h,c,u,d,f,m,g;t&&(g=this.tokenValidity||i||this.defaultTokenValidity,g>i&&i>0&&(g=i)),r&&(l=r.isAdmin,h=r.serverUrl,c=r.token,f=r.signal,m=r.ssl,e.customParameters=r.customParameters),l?u=e.adminTokenServiceUrl:(u=e.tokenServiceUrl,d=new p.R9(u.toLowerCase()),e.webTierAuth&&null!=r&&r.serverUrl&&!m&&"http"===n.scheme&&((0,p.D6)(n.uri,u,!0)||"https"===d.scheme&&n.host===d.host&&"7080"===n.port&&"7443"===d.port)&&(u=u.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const _={query:{request:"getToken",username:null==t?void 0:t.username,password:null==t?void 0:t.password,serverUrl:h,token:c,expiration:g,referer:l||s?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:f,...null==r?void 0:r.ioArgs};return s||(_.withCredentials=!1),(0,o.default)(u,_).then((r=>{const s=r.data;if(!s||!s.token)return new a.Z("identity-manager:authentication-failed","Unable to generate token");const n=e.server;return nt[n]||(nt[n]={}),t&&(nt[n][t.username]=t.password),s.validity=g,s}))}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then((e=>e.credential))}checkAppAccess(e,t,r){let s=!1;return this.getCredential(e,{prompt:!1}).then((n=>{let i;const l={f:"json"};if("portal"===n.scope)if(t&&(this._doPortalSignIn(e)||r&&r.force))i=n.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!n.token)return{credential:n};i=n.server+"/sharing/rest"}else{if(!n.token)return{credential:n};i=n.server+"/rest/services"}return n.token&&(l.token=n.token),(0,o.default)(i,{query:l,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new a.Z("identity-manager:not-authorized",`You are currently signed in as: '${n.userId}'.`,e.data);return s=!!e.data.viewOnlyUserTypeApp,{credential:n}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details&&e.details.httpStatus;if(498===t)throw n.destroy(),new a.Z("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new a.Z("identity-manager:invalid-request");return{credential:n}}))})).then((e=>({credential:e.credential,viewOnly:s})))}setOAuthResponseHash(e){var t;const r=this._oAuthDfd;if(this._oAuthDfd=null,!r||!e)return;clearInterval(this._oAuthIntervalId),null==(t=this._oAuthOnHashHandle)||t.remove(),"#"===e.charAt(0)&&(e=e.substring(1));const s=(0,p.u0)(e);if(s.error){const e="access_denied"===s.error,t=new a.Z(e?"identity-manager:user-aborted":"identity-manager:authentication-failed",e?"ABORTED":"OAuth: "+s.error+" - "+s.error_description);r.reject(t)}else{const e=r.sinfo_,t=r.oinfo_,n=t._oAuthCred,i=new ct({userId:s.username,server:e.server,token:s.access_token,expires:Date.now()+1e3*Number(s.expires_in),ssl:"true"===s.ssl,_oAuthCred:n});t.userId=i.userId,n.storage=s.persist?at:lt,n.token=i.token,n.expires=i.expires,n.userId=i.userId,n.ssl=i.ssl,n.save(),r.resolve(i)}}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){const s=(0,d.hh)(),n=()=>{var e,t,r,s,n;null==(e=l)||e.remove(),null==(t=h)||t.remove(),null==(r=c)||r.remove(),null==(s=o)||s.destroy(),null==(n=this.dialog)||n.destroy(),this.dialog=o=l=h=c=null},i=()=>{n(),this._oAuthDfd=null,s.reject(new a.Z("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,d.fu)(r.signal,(()=>{i()}));let o=new this.formConstructor;o.resource=this.getResourceName(e),o.server=t.server,this.dialog=new Ge,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");let l=o.on("cancel",i),h=this.dialog.watch("open",i),c=o.on("submit",(e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then((i=>{n();const o=new ct({userId:e.username,server:t.server,token:i.token,expires:null!=i.expires?Number(i.expires):null,ssl:!!i.ssl,isAdmin:r.isAdmin,validity:i.validity});s.resolve(o)})).catch((e=>{o.error=e,o.signingIn=!1}))}));return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=(0,d.hh)();const n=this._oAuthDfd;null!=s&&s.signal&&(0,d.fu)(s.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&l()})),n.resUrl_=e,n.sinfo_=t,n.oinfo_=r;const i=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!i)return this._doOAuthSignIn(e,t,r),n.promise;const o=new this.formConstructor;o.oAuthPrompt=!0,o.server=t.server,this.dialog=new Ge,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");const l=()=>{p(),this._oAuthDfd=null,n.reject(new a.Z("identity-manager:user-aborted","ABORTED"))},h=o.on("cancel",l),c=this.dialog.watch("open",l),u=o.on("submit",(()=>{p(),this._doOAuthSignIn(e,t,r)})),p=()=>{h.remove(),c.remove(),u.remove(),o.destroy(),this.dialog.destroy(),this.dialog=null};return n.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach((e=>{e.destroy()})),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,h.on)(window,"message",(t=>{var r;if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===(null==(r=t.data)?void 0:r.type)){const r=t.source;this.getCredential(e).then((e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)})).catch((e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)}))}}))}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthHash(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const t=(0,p.u0)(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),"object"==typeof t.state&&t.state.portalUrl&&(this._oAuthHash=t,r=!0)}catch{}else t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0));r&&(window.location.hash="object"==typeof t.state&&t.state.hash||"")}}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new a.Z("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let r,s,n,i,o=-1;const a=t&&t.token,l=t&&t.resource,h=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===h));if(e=l||e,c.length)if(1===c.length){if(r=c[0],i=this.findServerInfo(r.server),s=i&&i.owningSystemUrl,n=s&&this.findCredential(s,r.userId),o=this._getIdenticalSvcIdx(e,r),!a)return-1===o&&r.resources.push(e),this._addResource(e,n),r;-1!==o&&(r.resources.splice(o,1),this._removeResource(e,n))}else{let t,r;if(c.some((a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,i=this.findServerInfo(t.server),s=i&&i.owningSystemUrl,n=s&&this.findCredential(s,t.userId),o=r,!0)))),a)t&&(t.resources.splice(o,1),this._removeResource(e,n));else if(t)return this._addResource(e,n),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t&&t.isAdmin&&!(0,p.D6)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,p.D6)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new p.R9(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1===r&&(r=t.indexOf("/sharing")),-1===r&&"/"===t.substr(-1)&&(r=t.length-1),r>-1?e.substring(0,r):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,s=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):s.test(e)&&(e=e.replace(s,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(i.Z.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.substring(r+t.length+1)),e=(0,p.Fv)(e),(0,p.mN)(e).path}_isRESTService(e){return e.indexOf(this._agsRest)>-1}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),n=this._getSuffix(t).toLowerCase();if(r=s===n,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replace(e,"$1")===n.replace(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const t=new p.R9(e.toLowerCase()),r=this._portalConfig;let s=this._gwDomains.some((e=>e.regex.test(t.uri)));return!s&&r&&(s=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),s||i.Z.portalUrl&&(s=(0,p.D6)(t,i.Z.portalUrl,!0)),s||(s=this._portals.some((e=>this._hasSameServerInstance(e,t.uri)))),s=s||this._agsPortal.test(t.path),s}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach(((n,i)=>{-1===r&&n.regex.test(e)&&(r=i),-1===s&&n.regex.test(t)&&(s=i)}));let n=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(n=!0):1===r?1!==s&&2!==s||(n=!0):2===r?2===s&&(n=!0):3===r&&3===s&&(n=!0)),!n){const r=this.findServerInfo(t),s=r&&r.owningSystemUrl;s&&it(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(n=!0)}return n}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){const n=t.resources[s];if(this._isIdenticalService(e,n)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,s;if(this._isRESTService(e)||this._isAdminResource(e)){const s=this._getServerInstanceRoot(e);return t=s+"/admin/generateToken",r=(0,o.default)(e=s+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t))),t||this._portals.some((r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t))),t||(s=e.toLowerCase().indexOf("/sharing"),-1!==s&&(t=e.substring(0,s)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new p.R9(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}if(-1!==e.toLowerCase().indexOf("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_exchangeToken(e,t,r){return(0,o.default)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}}).then((e=>e.data.token))}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,o.default)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json"},withCredentials:!0}).then((e=>e.data))}_getPortalSelf(e,t){let r;return this._gwDomains.some((t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r))),r?Promise.resolve({allSSL:!0,currentVersion:"4.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,o.default)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data)))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,p.D6)(r,e,!0)))}_checkProtocol(e,t,r,s){let n=!0;const i=s?t.adminTokenServiceUrl:t.tokenServiceUrl;return i.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,p.ed)(i)&&(n=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!n)&&r(new a.Z("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),n}_enqueue(e,t,r,s,n,i){return s||(s=(0,d.hh)()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=n,s.refresh_=i,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e.options_&&e.options_.resource,s=e.resUrl_,n=e.refresh_;let i=!1;-1===this.credentials.indexOf(t)&&(n&&-1!==this.credentials.indexOf(n)?(n.userId=t.userId,n.token=t.token,n.expires=t.expires,n.validity=t.validity,n.ssl=t.ssl,n.creationTime=t.creationTime,i=!0,t=n):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.push(r||s),t.scope=this._isServerRsrc(s)?"server":"portal",t.emitTokenChange();const o=this._soReqs,a={};this._soReqs=[],o.forEach((e=>{if(!this._isIdenticalService(s,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_))}})),e.resolve(t),o.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(s),e.resUrl_)?e.resolve(t):this._soReqs.push(e)})),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,i||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=(s,n,i,o)=>{var l,c;const u=e.sinfo_,f=!e.options_||!1!==e.options_.prompt,m=u.hasPortal&&this._findOAuthInfo(e.resUrl_);let g,_;if(s)t(new ct({userId:s,server:u.server,token:i||null,expires:null!=o?Number(o):null,ssl:!!n}));else if(window!==window.parent&&null!=(l=this._appUrlObj.query)&&l["arcgis-auth-origin"]&&null!=(c=this._appUrlObj.query)&&c["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){var v;window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const s=(0,h.on)(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),e.data.credential.expires<Date.now()?r(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new ct(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),"tokenExpiredError"===e.data.error.name?r(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):r(a.Z.fromJSON(e.data.error))))}));(0,d.fu)(null==(v=e.options_)?void 0:v.signal,(()=>{s.remove()}))}else if(m){let s=m._oAuthCred;if(!s){const e=new Ke(m,at),t=new Ke(m,lt);e.isValid()&&t.isValid()?e.expires>t.expires?(s=e,t.destroy()):(s=t,e.destroy()):s=e.isValid()?e:t,m._oAuthCred=s}if(s.isValid())g=new ct({userId:s.userId,server:u.server,token:s.token,expires:s.expires,ssl:s.ssl,_oAuthCred:s}),m.appId!==s.appId&&this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._exchangeToken(g.server,m.appId,g.token).then((e=>{g.token=e,s.token=e,s.save(),t(g)})).catch((()=>{t(g)})):t(g);else if(this._oAuthHash&&this._hasSameServerInstance(m.portalUrl,this._oAuthHash.state.portalUrl)){const e=this._oAuthHash;g=new ct({userId:e.username,server:u.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s}),m.userId=g.userId,s.storage=e.persist?at:lt,s.token=g.token,s.expires=g.expires,s.userId=g.userId,s.ssl=g.ssl,s.save(),this._oAuthHash=null,t(g)}else{const s=()=>{f?e._pendingDfd=this.oAuthSignIn(e.resUrl_,u,m,e.options_).then(t,r):(_=new a.Z("identity-manager:not-authenticated","User is not signed in."),r(_))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(u.server,m.appId).then((({portalUrl:e,token:r,username:n})=>{!e||(0,p.D6)(e,this._appOrigin,!0)?(g=new ct({server:u.server,userId:n,token:r}),t(g)):s()})).catch(s):s()}}else if(f){if(this._checkProtocol(e.resUrl_,u,r,e.admin_)){let s=e.options_;e.admin_&&(s=s||{},s.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,u,s).then(t,r)}}else _=new a.Z("identity-manager:not-authenticated","User is not signed in."),r(_)},n=()=>{const s=e.sinfo_,n=s.owningSystemUrl,i=e.options_;let o,a,l,h;if(i&&(o=i.token,a=i.error,l=i.prompt),h=this._findCredential(n,{token:o,resource:e.resUrl_}),!h)for(const e of this.credentials)if(this._isIdProvider(n,e.server)){h=e;break}if(h){const n=this.findCredential(e.resUrl_,h.userId);if(n)t(n);else if(ot(s,this._legacyFed)){const e=h.toJSON();e.server=s.server,e.resources=null,t(new ct(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(h.server),null,{serverUrl:e.resUrl_,token:h.token,signal:e.options_.signal,ssl:h.ssl})).then((r=>{t(new ct({userId:h.userId,server:s.server,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e.admin_,validity:r.validity}))}),r)}else this._busy=null,o&&(e.options_.token=null),(e._pendingDfd=this.getCredential(n.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:s.owningTenant,signal:e.options_.signal,token:o,error:a,prompt:l})).then((()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)}),(t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)}))};this._errbackFunc=r;const i=e.sinfo_.owningSystemUrl,o=this._isServerRsrc(e.resUrl_),l=e.sinfo_._restInfoPms;l?l.promise.then((t=>{const r=e.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=(0,u.hS)("authInfo.tokenServicesUrl",t)||(0,u.hS)("authInfo.tokenServiceUrl",t)||(0,u.hS)("tokenServiceUrl",t),r.shortLivedTokenValidity=(0,u.hS)("authInfo.shortLivedTokenValidity",t),r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}o&&r.owningSystemUrl?n():s()}),(()=>{e.sinfo_._restInfoPms=null;const t=new a.Z("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t)})):o&&i?n():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then((t=>{const r={};let s,n,i,o;return t&&(s=t.user&&t.user.username,r.username=s,r.allSSL=t.allSSL,n=t.supportsOAuth,i=t.currentVersion,"multitenant"===t.portalMode&&(o=t.customBaseUrl)),e.sinfo_.webTierAuth=!!s,s&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:r.allSSL}).catch((()=>null)).then((e=>(r.portalToken=e&&e.token,r.tokenExpiration=e&&e.expires,r))):!s&&n&&parseFloat(i)>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:o,owningTenant:e.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>r)):r})).catch((()=>null)).then((t=>{e.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s()})):s()}_generateOAuthInfo(e){let t,r,s=e.portalUrl;const n=e.customBaseUrl,i=e.owningTenant,a=!this.defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=window.location.href;let e=r.indexOf("?");e>-1&&(r=r.slice(0,e)),e=r.search(/\/(apps|home)\//),r=e>-1?r.slice(0,e):null}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,o.default)(r+"/sharing/rest",{query:{f:"json"}}).then((()=>{this.defaultOAuthInfo=new tt({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})}))):t=Promise.resolve(),t.then((()=>{if(this.defaultOAuthInfo)return s=s.replace(/^http:/i,"https:"),(0,o.default)(s+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:i,client_id:this.defaultOAuthInfo.appId,redirect_uri:(0,p.hF)(this.defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this.defaultOAuthInfo.clone();e.data.urlKey&&n?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+n:t.portalUrl=s,t.popup=window!==window.top||!((0,p.D6)(s,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(s)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t)}}))}))}_doOAuthSignIn(e,t,r){const s={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash);const n={client_id:r.appId,response_type:"token",state:JSON.stringify(s),expiration:r.expiration,locale:r.locale,redirect_uri:r.popup?(0,p.hF)(r.popupCallbackUrl):window.location.href.replace(/#.*$/,"")};r.forceLogin&&(n.force_login=!0),r.forceUserId&&r.userId&&(n.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(n.redirectToUserOrgUrl=!0);const i=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",o=i+"?"+(0,p.B7)(n);if(r.popup){const e=window.open(o,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnHashHandle.remove();const e=this._oAuthDfd;if(e){const t=new a.Z("identity-manager:user-aborted","ABORTED");e.reject(t)}}}),500),this._oAuthOnHashHandle=(0,h.on)(window,"arcgis:auth:hash",(e=>{this.setOAuthResponseHash(e.detail)}));else{const e=new a.Z("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:n,authorizeUrl:i,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=o}}ht.prototype.declaredClass="esri.identity.IdentityManagerBase";let ct=class extends l.Z.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e&&e._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const e=s.id.findServerInfo(this.server),t=e&&e.owningSystemUrl,r=!!t&&"server"===this.scope,n=r&&ot(e,s.id._legacyFed),i=e.webTierAuth,o=i&&s.id.normalizeWebTierAuth,a=nt[this.server],l=a&&a[this.userId];let h,c=this.resources&&this.resources[0],u=r&&s.id.findServerInfo(t),d={username:this.userId,password:l};if(i&&!o)return;r&&!u&&s.id.serverInfos.some((e=>(s.id._isIdProvider(t,e.server)&&(u=e),!!u)));const p=u&&s.id.findCredential(u.server,this.userId);if(!r||p){if(!n){if(r)h={serverUrl:c,token:p&&p.token,ssl:p&&p.ssl};else if(o)d=null,h={ssl:this.ssl};else{if(!l){let t;return c&&(c=s.id._sanitizeUrl(c),this._enqueued=1,t=s.id._enqueue(c,e,null,null,this.isAdmin,this),t.then((()=>{this._enqueued=0,this.refreshServerTokens()})).catch((()=>{this._enqueued=0}))),t}this.isAdmin&&(h={isAdmin:!0})}return s.id.generateToken(r?u:e,r?null:d,h).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens()})).catch((()=>{}))}p.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&s.id.credentials.forEach((e=>{const t=s.id.findServerInfo(e.server),r=t&&t.owningSystemUrl;e!==this&&e.userId===this.userId&&r&&"server"===e.scope&&(s.id._hasSameServerInstance(this.server,r)||s.id._isIdProvider(r,this.server))&&(ot(t,s.id._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())}))}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=this.server&&s.id.findServerInfo(this.server),r=t&&t.owningSystemUrl,n=r&&s.id.findServerInfo(r);!1===e||r&&"portal"!==this.scope&&(!n||!n.webTierAuth||s.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=s.id.credentials.indexOf(this);e>-1&&s.id.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,c.yd)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};(0,n._)([(0,f.Cb)()],ct.prototype,"creationTime",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"expires",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"isAdmin",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"oAuthState",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"resources",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"scope",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"server",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"ssl",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"token",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"tokenRefreshBuffer",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"userId",void 0),(0,n._)([(0,f.Cb)()],ct.prototype,"validity",void 0),ct=(0,n._)([(0,m.j)("esri.identity.Credential")],ct);class ut extends ht{}ut.prototype.declaredClass="esri.identity.IdentityManager";const dt=new ut;(0,s.qh)(dt)},2587:(e,t,r)=>{"use strict";r(90344),r(18848),r(940),r(70171);var s=r(94443),n=r(3172),i=r(20102),o=r(70586);async function a(e){if((0,o.pC)(h.fetchBundleAsset))return h.fetchBundleAsset(e);const t=await(0,n.default)(e,{responseType:"text"});return JSON.parse(t.data)}class l{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,n){const o=t.exec(r);if(!o)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=o[1]?`${o[1]}/`:"",h=o[2],c=(0,s.Su)(n),u=`${l}${h}.json`,d=c?`${l}${h}_${c}.json`:u;let p;try{p=await a(e(d))}catch(t){if(d===u)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{p=await a(e(u))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const h={};var c,u=r(99880);(0,s.tz)((c={pattern:"esri/",location:u.V},new l(c)))},90344:(e,t,r)=>{"use strict";r.d(t,{Ze:()=>g,p6:()=>_});var s=r(35454),n=r(70171);const i={year:"numeric",month:"numeric",day:"numeric"},o={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},c={...h,second:"numeric"},u={"short-date":i,"short-date-short-time":{...i,...h},"short-date-short-time-24":{...i,...h,hour12:!1},"short-date-long-time":{...i,...c},"short-date-long-time-24":{...i,...c,hour12:!1},"short-date-le":i,"short-date-le-short-time":{...i,...h},"short-date-le-short-time-24":{...i,...h,hour12:!1},"short-date-le-long-time":{...i,...c},"short-date-le-long-time-24":{...i,...c,hour12:!1},"long-month-day-year":o,"long-month-day-year-short-time":{...o,...h},"long-month-day-year-short-time-24":{...o,...h,hour12:!1},"long-month-day-year-long-time":{...o,...c},"long-month-day-year-long-time-24":{...o,...c,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...h},"day-short-month-year-short-time-24":{...a,...h,hour12:!1},"day-short-month-year-long-time":{...a,...c},"day-short-month-year-long-time-24":{...a,...c,hour12:!1},"long-date":l,"long-date-short-time":{...l,...h},"long-date-short-time-24":{...l,...h,hour12:!1},"long-date-long-time":{...l,...c},"long-date-long-time-24":{...l,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":c},d=(0,s.wY)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p=(d.apiValues,d.toJSON.bind(d),d.fromJSON.bind(d),{ar:"ar-u-nu-latn-ca-gregory"});let f=new WeakMap,m=u["short-date-short-time"];function g(e){return u[e]||null}function _(e,t){return function(e){const t=e||m;if(!f.has(t)){const e=(0,n.Kd)(),r=p[(0,n.Kd)()]||e;f.set(t,new Intl.DateTimeFormat(r,t))}return f.get(t)}(t).format(e)}(0,n.Ze)((()=>{f=new WeakMap,m=u["short-date-short-time"]}))},70171:(e,t,r)=>{"use strict";var s,n,i;let o;r.d(t,{Ze:()=>p,Kd:()=>h,qe:()=>u});const a=null!=(s=null==(n=globalThis.esriConfig)?void 0:n.locale)?s:null==(i=globalThis.dojoConfig)?void 0:i.locale;function l(){var e,t;return null!=(e=null!=a?a:null==(t=globalThis.navigator)?void 0:t.language)?e:"en"}function h(){return void 0===o&&(o=l()),o}const c=[];function u(e){return c.push(e),{remove(){c.splice(c.indexOf(e),1)}}}const d=[];function p(e){return d.push(e),{remove(){c.splice(d.indexOf(e),1)}}}null==globalThis.addEventListener||globalThis.addEventListener("languagechange",(function(){const e=null!=undefined?undefined:l();o!==e&&(o=e,[...d].forEach((t=>{t.call(null,e)})),[...c].forEach((t=>{t.call(null,e)})))}))},94443:(e,t,r)=>{"use strict";r.d(t,{ME:()=>p,Su:()=>f,tz:()=>d});var s=r(20102),n=r(95330),i=r(70171);const o=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const h=[],c=new Map;function u(e){for(const t of c.keys())m(e.pattern,t)&&c.delete(t)}function d(e){return h.includes(e)||(u(e),h.unshift(e)),{remove(){const t=h.indexOf(e);t>-1&&(h.splice(t,1),u(e))}}}async function p(e){const t=(0,i.Kd)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of h)if(m(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return await g.add(r),r}function f(e){if(!o.test(e))return null;const[,t,r]=o.exec(e),s=t+(r?"-"+r.toUpperCase():"");return l(s)?s:l(t)?t:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,r)=>{"use strict";r.d(t,{sh:()=>l,uf:()=>h});var s=r(70586),n=r(70171);const i={ar:"ar-u-nu-latn"};let o=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function h(e,t){return function(e){const t=e||a;if(!o.has(t)){const r=(0,n.Kd)(),s=i[(0,n.Kd)()]||r;o.set(t,new Intl.NumberFormat(s,e))}return(0,s.j0)(o.get(t))}(t).format(e)}(0,n.Ze)((()=>{o=new WeakMap,a={}}))},940:(e,t,r)=>{"use strict";r.d(t,{n:()=>h});var s=r(92604),n=r(78286),i=r(19153),o=r(90344),a=r(18848);const l=s.Z.getLogger("esri.intl");function h(e,t,r={}){const{format:s={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let s,i;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!s)return"";const a=(0,n.hS)(s,t);if(null==a)return"";const l=r[i]||r[s];return l?c(a,l):i?u(a,i):d(a)}(e,t,s)))}function c(e,t){switch(t.type){case"date":return(0,o.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),d(e)}}function u(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):d(e)}}function d(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.p6)(e):""}}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>h,id:()=>a,qh:()=>l,i8:()=>i,Nv:()=>o});var s=r(80442),n=r(17452);const i="4.23",o={async request(e,t){var s;const{default:i}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(s=(0,n.oh)(e.url))&&s.after?a:"array-buffer";const l=await i(e.url,o),h={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete h.data.signal,h;case"blob":h.data=await h.data.arrayBuffer();break;case"json":h.data=(new TextEncoder).encode(JSON.stringify(h.data)).buffer;break;case"text":h.data=(new TextEncoder).encode(h.data).buffer}return{result:h,transferList:[h.data]}}};let a;function l(e){a=e}function h(e){const t=a&&a.findCredential(e);return t&&t.token?(0,n.ZN)(e,"token",t.token):e}(0,s.Z)("host-webworker")||((0,s.Z)("edge")||(0,s.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8961],{82397:(e,t,n)=>{n.d(t,{vY:()=>l,J9:()=>f,U1:()=>g,Ie:()=>d,G6:()=>m});var r=n(70586);n(33955);const o=(e,t,n)=>[t,n],s=(e,t,n)=>[t,n,e[2]],i=(e,t,n)=>[t,n,e[2],e[3]];function l(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:(0,r.pC)(e.extent)?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function c({scale:e,translate:t},n){return n*e[0]+t[0]}function u({scale:e,translate:t},n){return t[1]-n*e[1]}function h(e,t,n){const r=new Array(n.length);if(!n.length)return r;const[o,s]=e.scale;let i=c(e,n[0][0]),l=u(e,n[0][1]);r[0]=t(n[0],i,l);for(let e=1;e<n.length;e++){const c=n[e];i+=c[0]*o,l-=c[1]*s,r[e]=t(c,i,l)}return r}function a(e,t,n){const r=new Array(n.length);for(let o=0;o<n.length;o++)r[o]=h(e,t,n[o]);return r}function f(e,t,n,l,c){return(0,r.pC)(n)&&(t.points=function(e,t,n,r){return h(e,n?r?i:s:r?s:o,t)}(e,n.points,l,c)),t}function g(e,t,n,o,s){return(0,r.Wi)(n)||(t.x=c(e,n.x),t.y=u(e,n.y),t!==n&&(o&&(t.z=n.z),s&&(t.m=n.m))),t}function d(e,t,n,l,c){return(0,r.pC)(n)&&(t.rings=function(e,t,n,r){return a(e,n?r?i:s:r?s:o,t)}(e,n.rings,l,c)),t}function m(e,t,n,l,c){return(0,r.pC)(n)&&(t.paths=function(e,t,n,r){return a(e,n?r?i:s:r?s:o,t)}(e,n.paths,l,c)),t}},70272:(e,t,n)=>{n.d(t,{nd:()=>i,ZP:()=>o,S6:()=>s});var r=n(70586);class o{constructor(e=null,t={},n,r){this.geometry=e,this.attributes=t,this.centroid=n,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function s(e){return!((0,r.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends o{}},44876:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=[],t=[],n=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=n}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)e(this.coords[2*(n+t)],this.coords[2*(n+t)+1]);t+=r}}clone(e){return e?(e.set(this.coords),new r(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(e,t,n)=>{n.d(t,{XA:()=>U,h_:()=>X,Yn:()=>S,GH:()=>A,Uy:()=>W,EI:()=>$,cn:()=>_,di:()=>O,Iv:()=>q,fQ:()=>G,eG:()=>L,J6:()=>v,oB:()=>se,zj:()=>Q,$:()=>ee,lz:()=>oe,RZ:()=>B,Nh:()=>H,Jd:()=>I,IN:()=>b,hY:()=>ne,lM:()=>J,$g:()=>te});var r=n(20102),o=n(92604),s=n(70586),i=n(33955),l=n(70272),c=n(44876),u=n(5428);function h(e,t){return e?t?4:3:t?3:2}const a=o.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},g=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s},d=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+2]},m=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+3]},y=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+2],e[n+3]=t[r+3]};function p(e,t,n,r){if(e){if(n)return t&&r?y:d;if(t&&r)return m}else if(t&&r)return d;return g}function I({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function b({scale:e,translate:t},n){return Math.round((t[1]-n)/e[1])}function w({scale:e,translate:t},n){return n*e[0]+t[0]}function Z({scale:e,translate:t},n){return t[1]-n*e[1]}function G(e,t,n){return e?t?n?k(e):F(e):n?T(e):M(e):null}function M(e){const t=e.coords;return{x:t[0],y:t[1]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function F(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function T(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function k(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function C(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function j(e,t){return e&&t?C:e?P:t?x:N}function q(e,t,n){if((0,s.Wi)(e))return null;const r=h(t,n),o=[];for(let t=0;t<e.coords.length;t+=r){const n=[];for(let o=0;o<r;o++)n.push(e.coords[t+o]);o.push(n)}return t?n?{points:o,hasZ:t,hasM:n}:{points:o,hasZ:t}:n?{points:o,hasM:n}:{points:o}}function R(e,t,n=h(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let o=0;for(const e of t.points)for(let t=0;t<n;t++)r[o++]=e[t];return e}function v(e,t,n){if(!e)return null;const r=h(t,n),{coords:o,lengths:s}=e,i=[];let l=0;for(const e of s){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(o[l++]);t.push(e)}i.push(t)}return t?n?{paths:i,hasZ:t,hasM:n}:{paths:i,hasZ:t}:n?{paths:i,hasM:n}:{paths:i}}function z(e,t,n=h(t.hasZ,t.hasM)){const{lengths:r,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<n;e++)o[s++]=t[e];r.push(e.length)}return e}function L(e,t,n){if(!e)return null;const r=h(t,n),{coords:o,lengths:s}=e,i=[];let l=0;for(const e of s){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(o[l++]);t.push(e)}i.push(t)}return t?n?{rings:i,hasZ:t,hasM:n}:{rings:i,hasZ:t}:n?{rings:i,hasM:n}:{rings:i}}function W(e,t,n=t.hasZ,r=t.hasM){return function(e,t,n,r){const o=h(n,r),{lengths:s,coords:i}=e;let l=0;s.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[l++]=t[e];s.push(e.length)}}(e,t.rings,n,r),e}const Y=[],E=[];function U(e,t,n,r,o){Y[0]=e;const[s]=S(E,Y,t,n,r,o);return Y.length=E.length=0,s}function S(e,t,n,o,i,c){if(e.length=0,!n){for(const n of t){const t=n.attributes[c];e.push(new l.ZP(null,n.attributes,null,t))}return e}switch(n){case"esriGeometryPoint":return function(e,t,n,r,o){const s=j(n,r);for(const n of t){const{geometry:t,attributes:r}=n;let i;t&&(i=s(new u.Z,t)),e.push(new l.ZP(i,r,null,r[o]))}return e}(e,t,o,i,c);case"esriGeometryMultipoint":return function(e,t,n,r,o){const s=h(n,r);for(const n of t){const t=n.geometry,r=n.attributes;let i;t&&(i=R(new u.Z,t,s)),e.push(new l.ZP(i,r,null,r[o]))}return e}(e,t,o,i,c);case"esriGeometryPolyline":return function(e,t,n,r,o){const s=h(n,r);for(const n of t){const t=n.geometry,r=n.attributes;let i;t&&(i=z(new u.Z,t,s)),e.push(new l.ZP(i,r,null,r[o]))}return e}(e,t,o,i,c);case"esriGeometryPolygon":return function(e,t,n,r,o){for(const i of t){const t=i.geometry,c=i.centroid,h=i.attributes;let a;t&&(a=W(new u.Z,t,n,r)),(0,s.pC)(c)?e.push(new l.ZP(a,h,N(new u.Z,c),h[o])):e.push(new l.ZP(a,h,null,h[o]))}return e}(e,t,o,i,c);default:a.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`)),e.length=0}return e}function $(e,t,n,r){E[0]=e,V(Y,E,t,n,r);const o=Y[0];return Y.length=E.length=0,o}function A(e,t,n){if((0,s.Wi)(e))return null;const o=new u.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==n&&(n=e.hasM),(0,i.wp)(e)?j(null!=t?t:null!=e.z,null!=n?n:null!=e.m)(o,e):(0,i.oU)(e)?W(o,e,t,n):(0,i.l9)(e)?z(o,e,h(t,n)):(0,i.aW)(e)?R(o,e,h(t,n)):void a.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function O(e,t,n,o){const i=e&&("coords"in e?e:e.geometry);if((0,s.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=M;return n&&o?e=k:n?e=F:o&&(e=T),e(i)}case"esriGeometryMultipoint":return q(i,n,o);case"esriGeometryPolyline":return v(i,n,o);case"esriGeometryPolygon":return L(i,n,o);default:return void a.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}}function V(e,t,n,o,i){if(e.length=0,(0,s.Wi)(n))return function(e,t){for(const n of t)e.push({attributes:n.attributes});return e}(e,t);switch(n){case"esriGeometryPoint":return function(e,t,n,r){let o=M;n&&r?o=k:n?o=F:r&&(o=T);for(const n of t){const{geometry:t,attributes:r}=n,i=(0,s.pC)(t)?o(t):null;e.push({attributes:r,geometry:i})}return e}(e,t,o,i);case"esriGeometryMultipoint":return function(e,t,n,r){for(const o of t){const{geometry:t,attributes:s}=o;let i;t&&(i=q(t,n,r)),e.push({attributes:s,geometry:i})}return e}(e,t,o,i);case"esriGeometryPolyline":return function(e,t,n,r){for(const o of t){const{geometry:t,attributes:i}=o;let l;(0,s.pC)(t)&&(l=v(t,n,r)),e.push({attributes:i,geometry:l})}return e}(e,t,o,i);case"esriGeometryPolygon":return function(e,t,n,r){for(const o of t){const{geometry:t,attributes:i,centroid:l}=o;let c;if((0,s.pC)(t)&&(c=L(t,n,r)),l){const t=M(l);e.push({attributes:i,centroid:t,geometry:c})}else e.push({attributes:i,geometry:c})}return e}(e,t,o,i);default:a.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`))}return e}function _(e){const{objectIdFieldName:t,spatialReference:n,transform:r,fields:o,hasM:s,hasZ:i,features:l,geometryType:c,exceededTransferLimit:u,uniqueIdField:h,queryGeometry:a,queryGeometryType:f}=e,g={features:V([],l,c,i,s),fields:o,geometryType:c,objectIdFieldName:t,spatialReference:n,uniqueIdField:h,queryGeometry:O(a,f,!1,!1)};return r&&(g.transform=r),u&&(g.exceededTransferLimit=u),s&&(g.hasM=s),i&&(g.hasZ=i),g}function X(e,t){const n=new c.Z,{hasM:o,hasZ:s,features:i,objectIdFieldName:l,spatialReference:u,geometryType:h,exceededTransferLimit:f,transform:g,fields:d}=e;return d&&(n.fields=d),n.geometryType=h,n.objectIdFieldName=l||t,n.spatialReference=u,n.objectIdFieldName?(i&&S(n.features,i,h,s,o,n.objectIdFieldName),f&&(n.exceededTransferLimit=f),o&&(n.hasM=o),s&&(n.hasZ=s),g&&(n.transform=g),n):(a.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function J(e){const{transform:t,features:n,hasM:r,hasZ:o}=e;if(!t)return e;for(const e of n)(0,s.pC)(e.geometry)&&te(e.geometry,e.geometry,r,o,t),e.centroid&&te(e.centroid,e.centroid,r,o,t);return e.transform=null,e}function B(e,t){const{geometryType:n,features:r,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<r.length;t++){const i=r[t],l=i.weakClone();l.geometry=new u.Z,H(l.geometry,i.geometry,o,s,n,e),i.centroid&&(l.centroid=new u.Z,H(l.centroid,i.centroid,o,s,"esriGeometryPoint",e)),r[t]=l}return t.transform=e,t}function H(e,t,n,r,o,i,l=n,c=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,s.Wi)(t)||!t.coords.length)return null;const u=f[o],{coords:a,lengths:g}=t,d=h(n,r),m=h(n&&l,r&&c),y=p(n,r,l,c);if(!g.length)return y(e.coords,a,0,0,I(i,a[0]),b(i,a[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=d,e;let w,Z,G,M,N=0,F=0,P=F;for(const t of g){if(t<u)continue;let n=0;F=P,G=w=I(i,a[N]),M=Z=b(i,a[N+1]),y(e.coords,a,F,N,G,M),n++,N+=d,F+=m;for(let r=1;r<t;r++,N+=d)G=I(i,a[N]),M=b(i,a[N+1]),G===w&&M===Z||(y(e.coords,a,F,N,G-w,M-Z),F+=m,n++,w=G,Z=M);n>=u&&(e.lengths.push(n),P=F)}return e.coords.length=P,e.coords.length?e:null}function Q(e,t,n,r,o,s,i=n,l=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const c=f[o],{coords:u,lengths:a}=t,g=h(n,r),d=h(n&&i,r&&l),m=p(n,r,i,l);if(!a.length)return m(e.coords,u,0,0,u[0],u[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=g,e;let y=0;const I=s*s;for(const t of a){if(t<c){y+=t*g;continue}const n=e.coords.length/d,r=y,o=y+(t-1)*g;m(e.coords,u,e.coords.length,r,u[r],u[r+1]),K(e.coords,u,g,I,m,r,o),m(e.coords,u,e.coords.length,o,u[o],u[o+1]);const s=e.coords.length/d-n;s>=c?e.lengths.push(s):e.coords.length=n*d,y+=t*g}return e.coords.length?e:null}function D(e,t,n,r){const o=e[t],s=e[t+1],i=e[n],l=e[n+1],c=e[r],u=e[r+1];let h=i,a=l,f=c-h,g=u-a;if(0!==f||0!==g){const e=((o-h)*f+(s-a)*g)/(f*f+g*g);e>1?(h=c,a=u):e>0&&(h+=f*e,a+=g*e)}return f=o-h,g=s-a,f*f+g*g}function K(e,t,n,r,o,s,i){let l,c=r,u=0;for(let e=s+n;e<i;e+=n)l=D(t,e,s,i),l>c&&(u=e,c=l);c>r&&(u-s>n&&K(e,t,n,r,o,s,u),o(e,t,e.length,u,t[u],t[u+1]),i-u>n&&K(e,t,n,r,o,u,i))}function ee(e,t,n,r){if((0,s.Wi)(t)||!t.coords||!t.coords.length)return null;const o=h(n,r);let i=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const n=e[t],r=e[t+1];i=Math.min(i,n),c=Math.max(c,n),l=Math.min(l,r),u=Math.max(u,r)}}return e[0]=i,e[1]=l,e[2]=c,e[3]=u,e}function te(e,t,n,r,o){const{coords:s,lengths:i}=t,l=n?r?y:d:r?d:g,c=h(n,r);if(!s.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return l(e.coords,s,0,0,w(o,s[0]),Z(o,s[1])),e!==t&&(e.lengths.length=0,e.coords.length=c),e;const[u,a]=o.scale;let f=0;for(let t=0;t<i.length;t++){const n=i[t];e.lengths[t]=n;let r=w(o,s[f]),h=Z(o,s[f+1]);l(e.coords,s,f,f,r,h),f+=c;for(let t=1;t<n;t++,f+=c)r+=s[f]*u,h-=s[f+1]*a,l(e.coords,s,f,f,r,h)}return e!==t&&(e.lengths.length=i.length,e.coords.length=s.length),e}function ne(e,t,n,r,o,s){const i=h(n,r),l=p(n,r,o,s),c=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<c.length;t+=i)l(e.coords,c,e.coords.length,t,c[t],c[t+1]);return e}function re(e,t,n,r){let o=0,s=e[r*t],i=e[r*(t+1)];for(let l=1;l<n;l++){const n=s+e[r*(t+l)],c=i+e[r*(t+l)+1],u=(n-s)*(c+i);s=n,i=c,o+=u}return.5*o}function oe(e,t){const{coords:n,lengths:r}=e;let o=0,s=0;for(let e=0;e<r.length;e++)s+=re(n,o,r[e],t),o+=e;return Math.abs(s)}function se(e,t){if((0,s.Wi)(e))return null;const n=e.clone(),r=e.coords,o=e.lengths;let i=0;for(let e=0;e<o.length;e++){const s=o[e];let l=r[t*i],c=r[t*i+1];for(let e=1;e<s;e++){const o=l+r[t*(i+e)],s=c+r[t*(i+e)+1];n.coords[t*(i+e)]=o,n.coords[t*(i+e)+1]=s,l=o,c=s}i+=s}return n}}}]);
|