@arcgis/core 4.23.0-next.20220131 → 4.23.0-next.20220205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Graphic.js +1 -1
- package/TimeExtent.js +1 -1
- package/assets/components/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/assets/components/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- package/assets/components/assets/calcite-icon/clipboard16.json +1 -0
- package/assets/components/assets/calcite-icon/clipboard24.json +1 -0
- package/assets/components/assets/calcite-icon/clipboard32.json +1 -0
- package/assets/components/assets/calcite-icon/folders16.json +1 -0
- package/assets/components/assets/calcite-icon/folders24.json +1 -0
- package/assets/components/assets/calcite-icon/folders32.json +1 -0
- package/assets/components/assets/calcite-icon/initiative16.json +1 -0
- package/assets/components/assets/calcite-icon/initiative24.json +1 -0
- package/assets/components/assets/calcite-icon/initiative32.json +1 -0
- package/assets/components/assets/calcite-icon/initiativeTemplate16.json +1 -0
- package/assets/components/assets/calcite-icon/initiativeTemplate24.json +1 -0
- package/assets/components/assets/calcite-icon/initiativeTemplate32.json +1 -0
- package/assets/components/assets/calcite-icon/multipleVariables16.json +1 -0
- package/assets/components/assets/calcite-icon/multipleVariables24.json +1 -0
- package/assets/components/assets/calcite-icon/multipleVariables32.json +1 -0
- package/assets/components/assets/calcite-icon/paletteCheck16.json +1 -0
- package/assets/components/assets/calcite-icon/paletteCheck24.json +1 -0
- package/assets/components/assets/calcite-icon/paletteCheck32.json +1 -0
- package/assets/components/assets/calcite-icon/pentagon16.json +1 -0
- package/assets/components/assets/calcite-icon/pentagon24.json +1 -0
- package/assets/components/assets/calcite-icon/pentagon32.json +1 -0
- package/assets/components/assets/calcite-icon/puzzlePiece16.json +1 -0
- package/assets/components/assets/calcite-icon/puzzlePiece24.json +1 -0
- package/assets/components/assets/calcite-icon/puzzlePiece32.json +1 -0
- package/assets/components/assets/calcite-icon/ribbonRosette16.json +1 -0
- package/assets/components/assets/calcite-icon/ribbonRosette24.json +1 -0
- package/assets/components/assets/calcite-icon/ribbonRosette32.json +1 -0
- package/assets/components/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
- package/assets/components/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
- package/assets/components/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
- package/assets/components/assets/calcite-icon/survey16.json +1 -0
- package/assets/components/assets/calcite-icon/survey24.json +1 -0
- package/assets/components/assets/calcite-icon/survey32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{7a5f5acfbd4ca1a5c1f3.js → 06116433eb6e669f146b.js} +1 -1
- package/assets/esri/core/workers/chunks/0a4401a148c3cb73d6ff.js +1 -0
- package/assets/esri/core/workers/chunks/{83d00afae4406ec78bc9.js → 0c6be307709523eb8a05.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0c8d61c7a85ce15499a.js → 0d9adefd00c44585be2e.js} +1 -1
- package/assets/esri/core/workers/chunks/{44f0c3663b293afbd172.js → 0e09691edb44641de5f0.js} +1 -1
- package/assets/esri/core/workers/chunks/0e215fa28a0448169132.js +1 -0
- package/assets/esri/core/workers/chunks/{391e96192d1ec4e55ce2.js → 101b4f02f0572afb666f.js} +1 -1
- package/assets/esri/core/workers/chunks/{db3c729ce0c0b2690dc9.js → 1180ffd523c6292bc04e.js} +1 -1
- package/assets/esri/core/workers/chunks/{826c983100569586b61f.js → 1571e8213feb518ff100.js} +1 -1
- package/assets/esri/core/workers/chunks/{929c9b7cdab7c4ca3d87.js → 17c51f5a13f471e6656a.js} +1 -1
- package/assets/esri/core/workers/chunks/{37c03cfc19086ce631c6.js → 18a8b9e2f6bd89827189.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed0bcc66fb1e0ee75a4b.js → 1f34957ef42e5b5977d0.js} +1 -1
- package/assets/esri/core/workers/chunks/236de5f0476f6080ee62.js +1 -0
- package/assets/esri/core/workers/chunks/288ca064cd0472439276.js +1 -0
- package/assets/esri/core/workers/chunks/29aa6046534a43d7ce19.js +1 -0
- package/assets/esri/core/workers/chunks/2e1291cd831592216446.js +1 -0
- package/assets/esri/core/workers/chunks/{68a59ce98177d8513337.js → 3403cb53e4e60923c5fc.js} +1 -1
- package/assets/esri/core/workers/chunks/34bed896b68993cabaa1.js +1 -0
- package/assets/esri/core/workers/chunks/{99619fcb772807c74f3b.js → 444829a840b8ded16fd7.js} +1 -1
- package/assets/esri/core/workers/chunks/467b5faa1c90d9821609.js +1 -0
- package/assets/esri/core/workers/chunks/49353182a16218a84251.js +1 -0
- package/assets/esri/core/workers/chunks/{fc046a15466c25d081ff.js → 4a2e93b12d60e8d92491.js} +1 -1
- package/assets/esri/core/workers/chunks/4de996ebc432f5e149bc.js +1 -0
- package/assets/esri/core/workers/chunks/50976921acf7bd636123.js +1 -0
- package/assets/esri/core/workers/chunks/5144ef135e0deb48c7bf.js +1 -0
- package/assets/esri/core/workers/chunks/584bbb675ed225f68171.js +1 -0
- package/assets/esri/core/workers/chunks/5a90d121ba79613cc2aa.js +1 -0
- package/assets/esri/core/workers/chunks/5b286f3f3deea10bdd91.js +1 -0
- package/assets/esri/core/workers/chunks/{0463ba46df855a92b9c0.js → 65ccd204ec3053687a77.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f8c6a179e39fd4c5e6f.js → 6a2b8d6a9bada45ab66d.js} +1 -1
- package/assets/esri/core/workers/chunks/6be326edd9829781d926.js +1 -0
- package/assets/esri/core/workers/chunks/6ea99a6e21b09674f6b3.js +1 -0
- package/assets/esri/core/workers/chunks/{5bcb3240b3c005e5fe72.js → 7215af7810d15e89aa5a.js} +1 -1
- package/assets/esri/core/workers/chunks/7509c1693ffedc0fa018.js +1 -0
- package/assets/esri/core/workers/chunks/7b0b75878370b3475fe5.js +1 -0
- package/assets/esri/core/workers/chunks/{bfedd6ebff817c9b31c0.js → 7b618c449d793aacd874.js} +1 -1
- package/assets/esri/core/workers/chunks/{2460f3b6ada6ae900dec.js → 7c0ff01f081c7e9050d2.js} +1 -1
- package/assets/esri/core/workers/chunks/806a7db0084214a53c79.js +1 -0
- package/assets/esri/core/workers/chunks/{8fa0a14165d43ffe87a5.js → 8325b577f52936f86cff.js} +1 -1
- package/assets/esri/core/workers/chunks/84d8e77d78d0d5134083.js +1 -0
- package/assets/esri/core/workers/chunks/{dd13772a5e2eccc6a2bc.js → 8598f762f15ca68d52b7.js} +1 -1
- package/assets/esri/core/workers/chunks/85b1ae51da3689bccf92.js +1 -0
- package/assets/esri/core/workers/chunks/873b0cbd343dc71755ed.js +1 -0
- package/assets/esri/core/workers/chunks/8804b8489eeab888275b.js +1 -0
- package/assets/esri/core/workers/chunks/{5ec98f4ddac707d0fbd1.js → 88815d533808aabb1fa9.js} +1 -1
- package/assets/esri/core/workers/chunks/8c8c0ecdf44fdbb56000.js +1 -0
- package/assets/esri/core/workers/chunks/{f2124f4d0f2b8a91f0ea.js → 90c5edcd8a609224ce55.js} +1 -1
- package/assets/esri/core/workers/chunks/{bac9fc90e6756e211160.js → 94d9951509c0db09547a.js} +1 -1
- package/assets/esri/core/workers/chunks/996d6ae7f2e2273f9bce.js +1 -0
- package/assets/esri/core/workers/chunks/{c1135cb02ec46c491459.js → 9ce961bc390202c87941.js} +1 -1
- package/assets/esri/core/workers/chunks/9fbc7d2e0326be41b382.js +1 -0
- package/assets/esri/core/workers/chunks/a363fb40096679b011f6.js +1 -0
- package/assets/esri/core/workers/chunks/a41522b0a853b85c8269.js +1 -0
- package/assets/esri/core/workers/chunks/a763c11d2b02b3ec36ad.js +1 -0
- package/assets/esri/core/workers/chunks/{aeaa1667c2d9f1b3366b.js → a85ed251d3d3668e474f.js} +1 -1
- package/assets/esri/core/workers/chunks/{69fd99b7c76e9992ccf3.js → b32bf9808cb4be3a6bd0.js} +1 -1
- package/assets/esri/core/workers/chunks/b33a6fbbc8de2969b1ca.js +1 -0
- package/assets/esri/core/workers/chunks/b548e6b3add4154ac4e6.js +1 -0
- package/assets/esri/core/workers/chunks/b6c55bdd8c957b062bc1.js +1 -0
- package/assets/esri/core/workers/chunks/b90509b2088fd444fc39.js +1 -0
- package/assets/esri/core/workers/chunks/{b9e9cb354822c6d995a4.js → bea473dba8e57617a71d.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d02c6ad1f4688bfa374.js → bf7c44644fe7b0aa60cf.js} +1 -1
- package/assets/esri/core/workers/chunks/c1a70f025e90d97fac6d.js +1 -0
- package/assets/esri/core/workers/chunks/{d72488db62fcf39447b6.js → c23d965a55215168a1a2.js} +1 -1
- package/assets/esri/core/workers/chunks/c3192cfe115ce354ffbc.js +1 -0
- package/assets/esri/core/workers/chunks/c3d768801f2f6cb9d5d0.js +1 -0
- package/assets/esri/core/workers/chunks/d09a0b2dc3a6fc10fa41.js +1 -0
- package/assets/esri/core/workers/chunks/d21526570300597aa6ae.js +1 -0
- package/assets/esri/core/workers/chunks/d2ffb0f21363c0d3d2a9.js +1 -0
- package/assets/esri/core/workers/chunks/{ec10151a2a95e95a0bb5.js → d304fe0ac836afd46e3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{37a7bd30352b1309b8f8.js → d3f05b8e4bd53eb1eb9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{17de7a324dfa7f57ad5d.js → d780e946149b1c3d1246.js} +1 -1
- package/assets/esri/core/workers/chunks/dc037f1496bb4aa40d10.js +1 -0
- package/assets/esri/core/workers/chunks/{8cbb04a9065aa3756638.js → dc04a8ba6c770bdc2bd4.js} +1 -1
- package/assets/esri/core/workers/chunks/dd5a71818a989a6edb00.js +1 -0
- package/assets/esri/core/workers/chunks/{89820b200ee44e678af5.js → dd891a98105904f8a06b.js} +1 -1
- package/assets/esri/core/workers/chunks/e17edd48179d41ddf1e7.js +1 -0
- package/assets/esri/core/workers/chunks/e323086de328a164f7f0.js +1 -0
- package/assets/esri/core/workers/chunks/ea50a6a994e5ee578d97.js +1 -0
- package/assets/esri/core/workers/chunks/{655b55ac0cd533d7e9d7.js → ecf074743183c1749581.js} +1 -1
- package/assets/esri/core/workers/chunks/f067b4fc65b835437afd.js +1 -0
- package/assets/esri/core/workers/chunks/f0e5c82e9c4fbe3c9d0a.js +1 -0
- package/assets/esri/core/workers/chunks/f96b24c075771d028e20.js +1 -0
- package/assets/esri/core/workers/chunks/{5790d171072b3c7d108f.js → f9a6de00c628538f07f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{2c607d30ff8ca1b61286.js → fe0c3b7c9b428d9c3f25.js} +1 -1
- package/assets/esri/core/workers/chunks/{49a1a633bb0d93764aae.js → fffea9587ec14c6d34e8.js} +1 -1
- package/assets/esri/themes/base/_mixins.scss +1 -1
- package/assets/esri/themes/base/widgets/_Directions.scss +0 -6
- package/assets/esri/themes/base/widgets/_Legend.scss +8 -7
- 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/Directions/t9n/Directions.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_en.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_nb.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
- package/chunks/Fog.glsl.js +12 -24
- package/chunks/Heatmap.glsl.js +10 -0
- package/chunks/HeatmapDensity.glsl.js +21 -0
- package/chunks/Precipitation.glsl.js +2 -2
- package/core/maybe.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/interfaces.d.ts +2432 -231
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/rasterFunctions/vectorFieldUtils.js +1 -1
- package/package.json +2 -2
- package/rasterRenderers.js +1 -1
- package/renderers/DictionaryRenderer.js +1 -1
- package/renderers/FlowRenderer.d.ts +4 -0
- package/renderers/FlowRenderer.js +5 -0
- package/renderers/support/DictionaryLoader.js +5 -0
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/renderers/support/rendererConversion.js +1 -1
- package/rest/geoprocessor/GPOptions.js +1 -1
- package/rest/print.js +1 -1
- package/rest/support/DirectionLine.js +1 -1
- package/rest/support/DirectionPoint.js +1 -1
- package/rest/support/FeatureSet.js +1 -1
- package/rest/support/LegendLayer.js +1 -1
- package/rest/support/LinearUnit.js +1 -1
- package/rest/support/PointBarrier.js +1 -1
- package/rest/support/PolygonBarrier.js +1 -1
- package/rest/support/PolylineBarrier.js +1 -1
- package/rest/support/RasterData.js +1 -1
- package/smartMapping/raster/renderers/flow.js +5 -0
- package/smartMapping/raster/support/utils.js +1 -1
- package/support/basemapUtils.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/TextSymbol3DLayer.js +1 -1
- package/symbols/cim/effects/EffectArrow.js +1 -1
- package/symbols/support/Symbol3DHalo.js +1 -1
- package/symbols/support/Symbol3DTextBackground.js +5 -0
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/tasks/Geoprocessor.js +1 -1
- package/views/2d/FrameTask.js +1 -1
- package/views/2d/ViewState.js +1 -1
- package/views/2d/constraints/GeometryConstraint.js +1 -1
- package/views/2d/engine/BitmapTileContainer.js +1 -1
- package/views/2d/engine/DisplayObject.js +1 -1
- package/views/2d/engine/RasterTileContainer.js +1 -1
- package/views/2d/engine/RasterVFContainer.js +5 -0
- package/views/2d/engine/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/RasterVFTileContainer.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/flow/BrushFlow.js +1 -1
- package/views/2d/engine/flow/FlowDisplayData.js +1 -1
- package/views/2d/engine/flow/FlowGLResources.js +1 -1
- package/views/2d/engine/flow/FlowStyle.js +1 -1
- package/views/2d/engine/flow/FlowView2D.js +5 -0
- package/views/2d/engine/flow/dataUtils.js +1 -1
- package/views/2d/engine/flow/flowRendererUtils.js +5 -0
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/brushes/raster/BrushVectorField.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLBaseTextTemplate.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/util/Matcher.js +1 -1
- package/views/2d/input/handlers/DragPan.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/KMLLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/WMSLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/createSymbolSchema.js +5 -0
- package/views/2d/layers/features/processors/HeatmapProcessor.js +1 -1
- package/views/2d/layers/features/processors/SymbolProcessor.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/features/tileRenderers/SymbolTileRenderer.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryVFStrategy.js +5 -0
- package/views/2d/layers/imagery/ImageryView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldView2D.js +5 -0
- package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
- package/views/2d/navigation/MapViewNavigation.js +1 -1
- package/views/2d/navigation/actions/Pan.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/Precipitation.js +1 -1
- package/views/3d/environment/PrecipitationTechnique.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/lineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/IRouteLayerView3D.js +4 -0
- package/views/3d/layers/RouteLayerView3D.js +5 -0
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/labelPlacement.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +5 -0
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextTexture.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +5 -0
- package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +5 -0
- package/views/MapView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/HighlightHelper.js +5 -0
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/layerUtils.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/support/WatchUpdatingTracking.js +1 -1
- package/views/support/projectionUtils.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
- package/widgets/BasemapToggle.js +1 -1
- package/widgets/Directions/support/resources.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/Widget.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/widgets/support/vnodeCache.js +5 -0
- package/widgets/support/widgetUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +0 -1
- package/assets/esri/core/workers/chunks/0c15d77d8e817cf45a9a.js +0 -1
- package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +0 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +0 -1
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +0 -1
- package/assets/esri/core/workers/chunks/1877ab1b6a115dbba1c5.js +0 -1
- package/assets/esri/core/workers/chunks/197ec52641aed20029c6.js +0 -1
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +0 -1
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +0 -1
- package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +0 -1
- package/assets/esri/core/workers/chunks/2629adf79e7fd9f25f07.js +0 -1
- package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +0 -1
- package/assets/esri/core/workers/chunks/2b25fc7945a187c2bb9d.js +0 -1
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +0 -1
- package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +0 -1
- package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +0 -1
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +0 -1
- package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +0 -1
- package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +0 -1
- package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +0 -1
- package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +0 -1
- package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +0 -1
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +0 -1
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +0 -1
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +0 -1
- package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +0 -1
- package/assets/esri/core/workers/chunks/952980635afc7ec81804.js +0 -1
- package/assets/esri/core/workers/chunks/96f148a556a2418038de.js +0 -1
- package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +0 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +0 -1
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +0 -1
- package/assets/esri/core/workers/chunks/b3f5e91116112b0b612a.js +0 -1
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +0 -1
- package/assets/esri/core/workers/chunks/be588873c16770ceb9ef.js +0 -1
- package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +0 -1
- package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +0 -1
- package/assets/esri/core/workers/chunks/c984b3040e120e502b11.js +0 -1
- package/assets/esri/core/workers/chunks/cdbc005eebec1503b99d.js +0 -1
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +0 -1
- package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +0 -1
- package/assets/esri/core/workers/chunks/d98dab12b71912fa397b.js +0 -1
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +0 -1
- package/assets/esri/core/workers/chunks/e218bde41ffbcc5194f5.js +0 -1
- package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +0 -1
- package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +0 -1
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +0 -1
- package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +0 -1
- package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +0 -1
- package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +0 -1
- package/renderers/AnimatedFlowRenderer.d.ts +0 -4
- package/renderers/AnimatedFlowRenderer.js +0 -5
- package/views/2d/engine/flow/AnimatedFlowView2D.js +0 -5
- package/views/2d/engine/flow/animatedFlowRendererUtils.js +0 -5
- package/views/2d/layers/imagery/ImageryGraphicsView2D.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8062],{87344:(e,a,t)=>{t.d(a,{T:()=>n});const n={BingMapsLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(3749)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(3792),t.e(8216),t.e(223)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(9938)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(7668),t.e(3485),t.e(9151),t.e(9932),t.e(1765)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(6104)]).then(t.bind(t,67284))).default,GroupLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(6401),t.e(7049)]).then(t.bind(t,63144))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(9201)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(3307)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(9101),t.e(3578),t.e(3942),t.e(176),t.e(3081),t.e(4464)]).then(t.bind(t,66984))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4547),t.e(3485),t.e(3578),t.e(9151),t.e(176),t.e(3081),t.e(2398),t.e(7622)]).then(t.bind(t,52294))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(4547),t.e(3792),t.e(8589)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(8014)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(4369),t.e(5823),t.e(6204)]).then(t.bind(t,75823))).default,MapNotesLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(4547),t.e(635),t.e(9101),t.e(7284),t.e(4859)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(2730),t.e(7616)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(8659),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(1773),t.e(3792),t.e(9294),t.e(6726)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4273),t.e(368),t.e(4889)]).then(t.bind(t,66277))).default,SceneLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(3792),t.e(8216),t.e(9254)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(3667)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(3485),t.e(9151),t.e(4369),t.e(9767)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(4166)]).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(9296)]).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7668),t.e(3485),t.e(9151),t.e(4325),t.e(1785),t.e(6434)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(7668),t.e(3792),t.e(5410)]).then(t.bind(t,58092))).default,WebTileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(8659)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(4547),t.e(635),t.e(4556),t.e(3516)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(5845)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(8659),t.e(5853)]).then(t.bind(t,55853))).default}},33516:(e,a,t)=>{t.d(a,{m:()=>l});var n=t(17452),r=t(65587);function l(e){return{origin:"portal-item",url:(0,n.mN)(e.itemUrl),portal:e.portal||r.Z.getDefault(),portalItem:e,readResourcePaths:[]}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>f,load:()=>u,preprocessFSItemData:()=>m});var n=t(20102),r=t(87344),l=t(65587),i=t(33516),s=t(40555),o=t(96187);async function u(e,a){const t=e.instance.portalItem;return t&&t.id?(await t.load(a),function(e){const a=e.instance.portalItem;if(-1===e.supportedTypes.indexOf(a.type))throw new n.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,l=t.portalItem,{url:u,title:y}=l,p=(0,i.m)(l);if("group"===t.type)return t.read({title:y},p),function(e,a){let t;const l=e.portalItem.type;switch(l){case"Feature Service":case"Feature Collection":t=r.T.FeatureLayer;break;case"Stream Service":t=r.T.StreamLayer;break;case"Scene Service":t=r.T.SceneLayer;break;default:throw new n.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let i;return t().then((e=>(i=e,c(a)))).then((async a=>"Feature Service"===l?(a=await m(a,e.portalItem.url),d(e,i,a)):f(a)>0?d(e,i,a):function(e,a){return e.portalItem.url?(0,o.b)(e.portalItem.url).then((t=>{var n,r;function l(e){return{id:e.id,name:e.name}}t&&d(e,a,{layers:null==(n=t.layers)?void 0:n.map(l),tables:null==(r=t.tables)?void 0:r.map(l)})})):Promise.resolve()}(e,i)))}(t,e);u&&t.read({url:u},p);const h=await c(e,a);return h&&t.read(h,p),t.resourceReferences={portalItem:l,paths:p.readResourcePaths},t.read({title:y},p),(0,s.y)(t,p)}(e,a)):Promise.resolve()}function d(e,a,t){let n=t.layers||[];const r=t.tables||[];"Feature Collection"===e.portalItem.type&&(n.forEach((e=>{var a;"Table"===(null==e||null==(a=e.layerDefinition)?void 0:a.type)&&r.push(e)})),n=n.filter((e=>{var a;return"Table"!==(null==e||null==(a=e.layerDefinition)?void 0:a.type)}))),n.reverse().forEach((n=>{const r=y(e,a,t,n);e.add(r)})),r.reverse().forEach((n=>{const r=y(e,a,t,n);e.tables.add(r)}))}function y(e,a,t,n){const r=new a({portalItem:e.portalItem.clone(),layerId:n.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||l.Z.getDefault()};r.read(n,a);const i=t.showLegend;null!=i&&r.read({showLegend:i},a)}return r}function c(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const t=e.instance;return t.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(t)){let a,n=!0;return e&&f(e)>0&&(null==t.layerId&&(t.layerId=p(e)),a=function(e,a){const t=e.layers;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];const n=e.tables;if(n)for(let e=0;e<n.length;e++)if(n[e].id===a)return n[e];return null}(e,t.layerId),a&&(1===f(e)&&(n=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),n&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function m(e,a){var t,n;if(null==(null==(t=e)?void 0:t.layers)||null==(null==(n=e)?void 0:n.tables)){const t=await(0,o.b)(a);(e=e||{}).layers=e.layers||(null==t?void 0:t.layers),e.tables=e.tables||(null==t?void 0:t.tables)}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function f(e){var a,t,n,r;return(null!=(a=null==e||null==(t=e.layers)?void 0:t.length)?a:0)+(null!=(n=null==e||null==(r=e.tables)?void 0:r.length)?n:0)}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var n=t(66643),r=t(95330),l=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const s=await(0,n.q6)(i.populateFromStyle());if((0,r.k_)(t),!1===s.ok){const t=s.error;a&&a.messages&&a.messages.push(new l.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,t)=>{t.d(a,{b:()=>r});var n=t(3172);async function r(e){const{data:a}=await(0,n.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1648,6006],{74085:(e,t,r)=>{function i(e){}r.d(t,{Bg:()=>i}),r(80442)},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>s,qh:()=>l,i8:()=>a,Nv:()=>o});var i=r(80442),n=r(17452);const a="4.23",o={async request(e,t){var i;const{default:a}=await r.e(3172).then(r.bind(r,3172)),o=e.options,s=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===s||"native-request-init"===s?"native-request-init":["blob","json","text"].includes(s)&&null!=(i=(0,n.oh)(e.url))&&i.after?s:"array-buffer";const l=await a(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let s;function l(e){s=e}function u(e){const t=s&&s.findCredential(e);return t&&t.token?(0,n.ZN)(e,"token",t.token):e}(0,i.Z)("host-webworker")||((0,i.Z)("edge")||(0,i.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},99282:(e,t,r)=>{r.d(t,{a:()=>a});var i=r(67900),n=r(68441);const a={inches:(0,i.En)(1,"meters","inches"),feet:(0,i.En)(1,"meters","feet"),"us-feet":(0,i.En)(1,"meters","us-feet"),yards:(0,i.En)(1,"meters","yards"),miles:(0,i.En)(1,"meters","miles"),"nautical-miles":(0,i.En)(1,"meters","nautical-miles"),millimeters:(0,i.En)(1,"meters","millimeters"),centimeters:(0,i.En)(1,"meters","centimeters"),decimeters:(0,i.En)(1,"meters","decimeters"),meters:(0,i.En)(1,"meters","meters"),kilometers:(0,i.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.ty)(1,"meters",n.sv.radius)}},51706:(e,t,r)=>{var i,n;function a(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?i.Expression:e.field&&"string"==typeof e.field?i.Field:i.Unknown}function l(e,t){const r=t||s(e),a=e.valueUnit||"unknown";return r===i.Unknown?n.Constant:e.stops?n.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?n.ClampedLinear:"unknown"===a?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?n.Proportional:n.Additive:n.Identity:n.RealWorldSize}r.d(t,{RY:()=>i,hL:()=>n,PS:()=>s,QW:()=>l,iY:()=>a,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(i||(i={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(n||(n={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>x,Lq:()=>f,Km:()=>m,cM:()=>h,ap:()=>b,V3:()=>w,B3:()=>y});var i=r(22303),n=r(1692),a=r(74085),o=r(92604),s=r(70586),l=r(99282),u=r(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),p=new n.Z,d=Math.PI,y=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function f(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.ColorVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const a="number"==typeof t,o=a?null:t,l=o&&o.attributes;let u=a?t:null;const p=n.field,{ipData:d,hasExpression:y}=n.cache;let f=n.cache.compiledFunc;if(!p&&!y){const e=n.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(y){if(!(0,s.pC)(r)||!(0,s.pC)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),a=t.createExecContext(o,i);if(!f){const e=t.createSyntaxTree(n.valueExpression);f=t.createFunction(e),n.cache.compiledFunc=f}u=t.executeFunction(f,a)}else l&&(u=l[p]);const m=n.normalizationField,h=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||a||!isNaN(h)&&0!==h)){isNaN(h)||a||(u/=h);const e=S(u,d);if(e){const t=e[0],a=e[1],o=t===a?n.stops[t].color:i.Z.blendColors(n.stops[t].color,n.stops[a].color,e[2],(0,s.pC)(r)?r.color:void 0);return new i.Z(o)}}}function m(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.OpacityVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const n="number"==typeof t,a=n?null:t,o=a&&a.attributes;let l=n?t:null;const u=i.field,{ipData:p,hasExpression:d}=i.cache;let y=i.cache.compiledFunc;if(!u&&!d){const e=i.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(d){if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),o=t.createExecContext(a,n);if(!y){const e=t.createSyntaxTree(i.valueExpression);y=t.createFunction(e),i.cache.compiledFunc=y}l=t.executeFunction(y,o)}else o&&(l=o[u]);const f=i.normalizationField,m=o?parseFloat(o[f]):void 0;if(null!=l&&(!f||n||!isNaN(m)&&0!==m)){isNaN(m)||n||(l/=m);const e=S(l,p);if(e){const t=e[0],r=e[1];if(t===r)return i.stops[t].opacity;{const n=i.stops[t].opacity;return n+(i.stops[r].opacity-n)*e[2]}}}}function h(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.RotationVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const n=i.axis||"heading",a="heading"===n&&"arithmetic"===i.rotationType?90:0,o="heading"===n&&"arithmetic"===i.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,p=i.field,{hasExpression:d}=i.cache;let y=i.cache.compiledFunc,f=0;if(!p&&!d)return f;if(d){if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),a=t.createExecContext(l,n);if(!y){const e=t.createSyntaxTree(i.valueExpression);y=t.createFunction(e),i.cache.compiledFunc=y}f=t.executeFunction(y,a)}else u&&(f=u[p]||0);return f="number"!=typeof f||isNaN(f)?null:a+o*f,f}function b(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.SizeVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const n=function(e,t,r,i,n){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,i){return e+(g(t.minSize,r,i)||t.minDataValue)}(e,t,r,i);case u.hL.Constant:return function(e,t,r){const i=e.stops;let n=i&&i.length&&i[0].size;return null==n&&(n=e.minSize),g(n,t,r)}(t,r,i);case u.hL.ClampedLinear:return function(e,t,r,i){const n=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),a=g(t.minSize,r,i),o=g(t.maxSize,r,i),l=(0,s.pC)(i)?i.shape:void 0;if(e<=t.minDataValue)return a;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?d*(a/2)**2:a*a,r=t+n*((e?d*(o/2)**2:o*o)-t);return e?2*Math.sqrt(r/d):Math.sqrt(r)}return a+n*(o-a)}(e,t,r,i);case u.hL.Proportional:return function(e,t,r,i){const n=(0,s.pC)(i)?i.shape:void 0,a=e/t.minDataValue,o=g(t.minSize,r,i),l=g(t.maxSize,r,i);let u=null;return u="circle"===n?2*Math.sqrt(a*(o/2)**2):"square"===n||"diamond"===n||"image"===n?Math.sqrt(a*o**2):a*o,v(u,o,l)}(e,t,r,i);case u.hL.Stops:return function(e,t,r,i,n){const[a,o,s]=S(e,n);if(a===o)return g(t.stops[a].size,r,i);{const e=g(t.stops[a].size,r,i);return e+(g(t.stops[o].size,r,i)-e)*s}}(e,t,r,i,n);case u.hL.RealWorldSize:return function(e,t,r,i){const n=((0,s.pC)(i)&&i.resolution?i.resolution:1)*l.a[t.valueUnit],a=g(t.minSize,r,i),o=g(t.maxSize,r,i),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/d)/n:"radius"===u||"distance"===u?2*e/n:e/n,v(c,a,o)}(e,t,r,i);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const i="number"==typeof t,n=i?null:t,a=n&&n.attributes;let o=i?t:null;const{isScaleDriven:l}=e.cache;let p=e.cache.compiledFunc;if(l){const t=(0,s.pC)(r)?r.scale:void 0,i=(0,s.pC)(r)?r.view:void 0;o=null==t||"3d"===i?function(e){let t=null,r=null;const i=e.stops;return i?(t=i[0].value,r=i[i.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!i)switch(e.inputValueType){case u.RY.Expression:{if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},i=r.arcade.arcadeUtils,a=i.getViewInfo(t),l=i.createExecContext(n,a);if(!p){const t=i.createSyntaxTree(e.valueExpression);p=i.createFunction(t),e.cache.compiledFunc=p}o=i.executeFunction(p,l);break}case u.RY.Field:a&&(o=a[e.field]);break;case u.RY.Unknown:o=null}if(!(0,u.qh)(o))return null;if(i||!e.normalizationField)return o;const d=a?parseFloat(a[e.normalizationField]):null;return(0,u.qh)(d)&&0!==d?o/d:null}(i,t,r),i,t,r,i.cache.ipData);return null==n||isNaN(n)?0:n}function g(e,t,r){return null==e?null:(0,u.iY)(e)?b(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function w(e,t,r){const{isScaleDriven:i}=e.cache;if(!(i&&"3d"===r||t))return null;const n={scale:t,view:r};let a=g(e.minSize,p,n),o=g(e.maxSize,p,n);if(null!=a||null!=o){if(a>o){const e=o;o=a,a=e}return{minSize:a,maxSize:o}}}function S(e,t){if(!t)return;let r=0,i=t.length-1;return t.some(((t,n)=>e<t?(i=n,!0):(r=n,!1))),[r,i,(e-t[r])/(t[i]-t[r])]}function x(e,t,r){const i=["proportional","proportional","proportional"];for(const n of e){const e=n.useSymbolValue?"symbol-value":b(n,t,r);switch(n.axis){case"width":i[0]=e;break;case"depth":i[1]=e;break;case"height":i[2]=e;break;case"width-and-depth":i[0]=e,i[1]=e;break;case"all":case void 0:case null:i[0]=e,i[1]=e,i[2]=e;break;default:(0,a.Bg)(n.axis)}}return i}},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var i,n=r(43697),a=r(66577),o=r(1692),s=r(35454),l=r(96674),u=r(22974),c=r(70586),p=r(5600),d=(r(75215),r(71715)),y=r(52011),f=r(30556),m=r(82971),h=r(33955),b=r(1231);const g=new s.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=m.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],a=o.Z.fromJSON(n),s=n.geometry&&n.geometry.spatialReference;(0,c.pC)(a.geometry)&&!s&&(a.geometry.spatialReference=r),i.push(a)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(e&&(0,c.pC)(e.geometry))return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,h.im)(e);return!r&&t.spatialReference&&(i.spatialReference=m.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,c.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,a=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=a.length;e<t;e++)o((0,c.Wg)(a[e].geometry))||(a.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[a,o]}=r,s=this._getHydrationFunction(e,(e=>e*a+i),(e=>n-e*o));for(const{geometry:e}of t)(0,c.pC)(e)&&s(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const a=[];for(let o=0,s=e.length;o<s;o++){const s=e[o];if(o>0){const e=t(s[0]),o=r(s[1]);e===i&&o===n||(a.push([e-i,o-n]),i=e,n=o)}else i=t(s[0]),n=r(s[1]),a.push([i,n])}return a.length>0?a:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths,n=[];for(let e=0,a=i.length;e<a;e++){const a=i[e],o=this._quantizePoints(a,t,r);o&&n.push(o)}return n.length>0?((0,h.oU)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths;let n,a;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],a+=i[1]):(n=i[0],a=i[1]),i[0]=t(n),i[1]=r(a)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let n,a;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],a+=o[1]):(n=o[0],a=o[1]),o[0]=t(n),o[1]=r(a)}}:void 0}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.Cb)({type:[o.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,n._)([(0,d.r)("features")],v.prototype,"readFeatures",null),(0,n._)([(0,p.Cb)({type:[b.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n._)([(0,f.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n._)([(0,p.Cb)({types:a.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n._)([(0,d.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n._)([(0,p.Cb)({type:m.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n._)([(0,f.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n._)([(0,p.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n._)([(0,y.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v},89164:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),n=r(22303),a=r(35454),o=r(96674),s=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const c=new a.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,d=class extends o.wq{constructor(e){super(e),this.id="sym"+p++,this.type=null,this.color=new n.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i._)([(0,s.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],d.prototype,"type",void 0),(0,i._)([(0,s.Cb)({type:n.Z,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,i._)([(0,l.r)("color")],d.prototype,"readColor",null),d=(0,i._)([(0,u.j)("esri.symbols.Symbol")],d);const y=d},16619:(e,t,r)=>{r.r(t),r.d(t,{default:()=>lt});var i=r(43697),n=r(35454),a=r(5600),o=(r(67676),r(80442),r(75215)),s=r(52011),l=r(68773),u=r(40330),c=r(3172),p=r(20102),d=r(70586),y=r(62357),f=r(17452),m=r(17332),h=r(35671),b=r(28101),g=r(15923),v=r(6570),w=r(82971);let S=class extends g.Z{constructor(){super(...arguments),this.outSpatialReference=null,this.processExtent=null,this.processSpatialReference=null,this.returnFeatureCollection=!1,this.returnM=!1,this.returnZ=!1}};(0,i._)([(0,a.Cb)({type:w.Z})],S.prototype,"outSpatialReference",void 0),(0,i._)([(0,a.Cb)({type:v.Z})],S.prototype,"processExtent",void 0),(0,i._)([(0,a.Cb)({type:w.Z})],S.prototype,"processSpatialReference",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0})],S.prototype,"returnFeatureCollection",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0})],S.prototype,"returnM",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0})],S.prototype,"returnZ",void 0),S=(0,i._)([(0,s.j)("esri/rest/geoprocessor/GPOptions")],S),S.from=(0,o.se)(S);const x=S;var P=r(38581),V=r(1231),D=r(96674);let C=class extends D.wq{constructor(){super(...arguments),this.extent=null,this.height=null,this.href=null,this.opacity=1,this.rotation=0,this.scale=null,this.visible=!0,this.width=null}};(0,i._)([(0,a.Cb)({type:v.Z})],C.prototype,"extent",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"height",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"href",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"opacity",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"rotation",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"scale",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"visible",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"width",void 0),C=(0,i._)([(0,s.j)("esri.layer.support.MapImage")],C);const M=C;var I=r(11282);let L=class extends D.wq{constructor(e){super(e),this.itemId=null,this.url=null}};(0,i._)([(0,a.Cb)({type:String,json:{read:{source:"itemID"},write:{target:"itemID"}}})],L.prototype,"itemId",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],L.prototype,"url",void 0),L=(0,i._)([(0,s.j)("esri.rest.support.DataFile")],L);const T=L;var F=r(74889);const _=new n.X({esriMeters:"meters",esriFeet:"feet",esriKilometers:"kilometers",esriMiles:"miles",esriNauticalMiles:"nautical-miles",esriYards:"yards"},{ignoreUnknown:!1});let O=class extends D.wq{constructor(e){super(e),this.distance=0,this.units=null}};(0,i._)([(0,a.Cb)({json:{write:!0}})],O.prototype,"distance",void 0),(0,i._)([(0,a.Cb)({json:{read:_.read,write:_.write}})],O.prototype,"units",void 0),O=(0,i._)([(0,s.j)("esri/rest/support/LinearUnit")],O);const G=O,N=new n.X({GPBoolean:"boolean",GPDataFile:"data-file",GPDate:"date",GPDouble:"double",GPFeatureRecordSetLayer:"feature-record-set-layer",GPField:"field",GPLinearUnit:"linear-unit",GPLong:"long",GPRasterData:"raster-data",GPRasterDataLayer:"raster-data-layer",GPRecordSet:"record-set",GPString:"string","GPMultiValue:GPBoolean":"multi-value","GPMultiValue:GPDataFile":"multi-value","GPMultiValue:GPDate":"multi-value","GPMultiValue:GPDouble":"multi-value","GPMultiValue:GPFeatureRecordSetLayer":"multi-value","GPMultiValue:GPField":"multi-value","GPMultiValue:GPLinearUnit":"multi-value","GPMultiValue:GPLong":"multi-value","GPMultiValue:GPRasterData":"multi-value","GPMultiValue:GPRasterDataLayer":"multi-value","GPMultiValue:GPRecordSet":"multi-value","GPMultiValue:GPString":"multi-value"});let R=class extends D.wq{constructor(e){super(e),this.dataType=null,this.value=null}};(0,i._)([(0,a.Cb)({json:{read:N.read,write:N.write}})],R.prototype,"dataType",void 0),(0,i._)([(0,a.Cb)()],R.prototype,"value",void 0),R=(0,i._)([(0,s.j)("esri.rest.support.ParameterValue")],R);const E=R;let j=class extends D.wq{constructor(e){super(e),this.format=null,this.itemId=null,this.url=null}};(0,i._)([(0,a.Cb)()],j.prototype,"format",void 0),(0,i._)([(0,a.Cb)({json:{read:{source:"itemID"},write:{target:"itemID"}}})],j.prototype,"itemId",void 0),(0,i._)([(0,a.Cb)()],j.prototype,"url",void 0),j=(0,i._)([(0,s.j)("esri/rest/support/RasterData")],j);const J=j;async function k(e,t,r,i,n){const a={},o={},s=[];return function(e,t,r){for(const i in e){const n=e[i];if(n&&"object"==typeof n&&n instanceof F.default){const{features:e}=n;r[i]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}}}(i,s,a),(0,P.aX)(s).then((s=>{const{outSpatialReference:l,processExtent:u,processSpatialReference:p,returnFeatureCollection:d,returnM:y,returnZ:f}=r,{path:m}=(0,I.en)(e);for(const e in a){const t=a[e];o[e]=s.slice(t[0],t[1])}const h=l?l.wkid||l:null,b=p?p.wkid||p:null,g="execute"===t?{returnFeatureCollection:d||void 0,returnM:y||void 0,returnZ:f||void 0}:null,v=q({...u?{context:{extent:u,outSR:h,processSR:b}}:{"env:outSR":h,"env:processSR":b},...i,...g,f:"json"},null,o),w={...n,query:v};return(0,c.default)(`${m}/${t}`,w)}))}function z(e){const t=e.dataType,r=E.fromJSON(e);switch(t){case"GPBoolean":case"GPDouble":case"GPLong":case"GPString":case"GPMultiValue:GPBoolean":case"GPMultiValue:GPDouble":case"GPMultiValue:GPLong":case"GPMultiValue:GPString":return r;case"GPDate":r.value=new Date(r.value);break;case"GPDataFile":r.value=T.fromJSON(r.value);break;case"GPLinearUnit":r.value=G.fromJSON(r.value);break;case"GPFeatureRecordSetLayer":case"GPRecordSet":{const t=e.value.url;r.value=t?T.fromJSON(r.value):F.default.fromJSON(r.value);break}case"GPRasterData":case"GPRasterDataLayer":{const t=e.value.mapImage;r.value=t?M.fromJSON(t):J.fromJSON(r.value);break}case"GPField":r.value=V.Z.fromJSON(r.value);break;case"GPMultiValue:GPDate":{const e=r.value;r.value=e.map((e=>new Date(e)));break}case"GPMultiValue:GPDataFile":r.value=r.value.map((e=>T.fromJSON(e)));break;case"GPMultiValue:GPLinearUnit":r.value=r.value.map((e=>G.fromJSON(e)));break;case"GPMultiValue:GPFeatureRecordSetLayer":case"GPMultiValue:GPRecordSet":r.value=r.value.map((e=>F.default.fromJSON(e)));break;case"GPMultiValue:GPRasterData":case"GPMultiValue:GPRasterDataLayer":r.value=r.value.map((e=>e?M.fromJSON(e):J.fromJSON(r.value)));break;case"GPMultiValue:GPField":r.value=r.value.map((e=>V.Z.fromJSON(e)))}return r}function q(e,t,r){for(const t in e){const r=e[t];Array.isArray(r)?e[t]=JSON.stringify(r.map((e=>q({item:e},!0).item))):r instanceof Date&&(e[t]=r.getTime())}return(0,I.cv)(e,t,r)}var U,A=r(51623),Z=r(95330);const $=new n.X({esriJobCancelled:"job-cancelled",esriJobCancelling:"job-cancelling",esriJobDeleted:"job-deleted",esriJobDeleting:"job-deleting",esriJobTimedOut:"job-timed-out",esriJobExecuting:"job-executing",esriJobFailed:"job-failed",esriJobNew:"job-new",esriJobSubmitted:"job-submitted",esriJobSucceeded:"job-succeeded",esriJobWaiting:"job-waiting"});let W=U=class extends D.wq{constructor(e){super(e),this.jobId=null,this.jobStatus=null,this.messages=null,this.requestOptions=null,this.sourceUrl=null,this._timer=null}cancelJob(e){const{jobId:t,sourceUrl:r}=this,{path:i}=(0,I.en)(r),n={...this.requestOptions,...e,query:{f:"json"}};return this._clearTimer(),(0,c.default)(`${i}/jobs/${t}/cancel`,n).then((e=>{const t=U.fromJSON(e.data);return this.messages=t.messages,this.jobStatus=t.jobStatus,this}))}destroy(){clearInterval(this._timer)}checkJobStatus(e){const{path:t}=(0,I.en)(this.sourceUrl),r={...this.requestOptions,...e,query:{f:"json"}},i=`${t}/jobs/${this.jobId}`;return(0,c.default)(i,r).then((({data:e})=>{const t=U.fromJSON(e);return this.messages=t.messages,this.jobStatus=t.jobStatus,this}))}fetchResultData(e,t,r){t=x.from(t||{});const{returnFeatureCollection:i,returnM:n,returnZ:a,outSpatialReference:o}=t,{path:s}=(0,I.en)(this.sourceUrl),l=q({returnFeatureCollection:i,returnM:n,returnZ:a,outSR:o,returnType:"data",f:"json"},null),u={...this.requestOptions,...r,query:l},p=`${s}/jobs/${this.jobId}/results/${e}`;return(0,c.default)(p,u).then((e=>z(e.data)))}fetchResultImage(e,t,r){const{path:i}=(0,I.en)(this.sourceUrl),n=q({...t.toJSON(),f:"json"}),a={...this.requestOptions,...r,query:n},o=`${i}/jobs/${this.jobId}/results/${e}`;return(0,c.default)(o,a).then((e=>z(e.data)))}async fetchResultMapImageLayer(){const{path:e}=(0,I.en)(this.sourceUrl),t=e.indexOf("/GPServer/"),i=`${e.substring(0,t)}/MapServer/jobs/${this.jobId}`;return new(0,(await Promise.all([r.e(6968),r.e(755),r.e(3471),r.e(511),r.e(4369),r.e(5823),r.e(9664)]).then(r.bind(r,75823))).default)({url:i})}async waitForJobCompletion(e={}){const{interval:t=1e3,signal:r,statusCallback:i}=e;return new Promise(((e,n)=>{(0,Z.fu)(r,(()=>{this._clearTimer(),n((0,Z.zE)())})),this._clearTimer();const a=setInterval((()=>{this._timer||n((0,Z.zE)()),this.checkJobStatus(this.requestOptions).then((t=>{const{jobStatus:r}=t;switch(this.jobStatus=r,r){case"job-succeeded":this._clearTimer(),e(this);break;case"job-submitted":case"job-executing":case"job-waiting":case"job-new":i&&i(this);break;case"job-cancelled":case"job-cancelling":case"job-deleted":case"job-deleting":case"job-timed-out":case"job-failed":this._clearTimer(),n(this)}}))}),t);this._timer=a}))}_clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)}};(0,i._)([(0,a.Cb)()],W.prototype,"jobId",void 0),(0,i._)([(0,a.Cb)({json:{read:$.read}})],W.prototype,"jobStatus",void 0),(0,i._)([(0,a.Cb)({type:[A.Z]})],W.prototype,"messages",void 0),(0,i._)([(0,a.Cb)()],W.prototype,"requestOptions",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],W.prototype,"sourceUrl",void 0),W=U=(0,i._)([(0,s.j)("esri.rest.support.JobInfo")],W);const B=W,K=new n.X({PDF:"pdf",PNG32:"png32",PNG8:"png8",JPG:"jpg",GIF:"gif",EPS:"eps",SVG:"svg",SVGZ:"svgz"}),X=(K.fromJSON.bind(K),K.toJSON.bind(K)),Q=new n.X({MAP_ONLY:"map-only","A3 Landscape":"a3-landscape","A3 Portrait":"a3-portrait","A4 Landscape":"a4-landscape","A4 Portrait":"a4-portrait","Letter ANSI A Landscape":"letter-ansi-a-landscape","Letter ANSI A Portrait":"letter-ansi-a-portrait","Tabloid ANSI B Landscape":"tabloid-ansi-b-landscape","Tabloid ANSI B Portrait":"tabloid-ansi-b-portrait"}),Y=(Q.fromJSON.bind(Q),Q.toJSON.bind(Q)),H="simple-marker",ee="simple-line";function te(e,t){const{graphic:r,renderer:i,symbol:n}=t,a=n.type;if("text"===a||"shield-label-symbol"===a||!("visualVariables"in i)||!i.visualVariables)return;const o=i.getVisualVariablesForType("size"),s=i.getVisualVariablesForType("color"),l=i.getVisualVariablesForType("opacity"),u=i.getVisualVariablesForType("rotation"),c=o[0],p=s[0],d=l[0],f=u[0];if(c){const t=a===H?n.style:null,i=(0,b.ap)(c,r,{shape:t});null!=i&&(a===H?e.size=(0,y.Wz)(i):"picture-marker"===a?(e.width=(0,y.Wz)(i),e.height=(0,y.Wz)(i)):a===ee?e.width=(0,y.Wz)(i):e.outline&&(e.outline.width=(0,y.Wz)(i)))}if(p){const t=(0,b.Lq)(p,r);(t&&a===H||a===ee||"simple-fill"===a)&&(e.color=t?t.toJSON():void 0)}if(d){const t=(0,b.Km)(d,r);null!=t&&e.color&&(e.color[3]=Math.round(255*t))}f&&(e.angle=-(0,b.cM)(i,r))}function re(e){return e&&"bing-maps"===e.type}function ie(e){return e&&"blendMode"in e&&"effect"in e}function ne(e){return e&&"csv"===e.type}function ae(e){return e&&"feature"===e.type}function oe(e){return e&&"geojson"===e.type}function se(e){return e&&"graphics"===e.type}function le(e){return e&&"group"===e.type}function ue(e){return e&&"esri.views.2d.layers.GroupLayerView2D"===e.declaredClass}function ce(e){return e&&"imagery"===e.type}function pe(e){return e&&"imagery-tile"===e.type}function de(e){return e&&"kml"===e.type}function ye(e){return e&&"map-image"===e.type}function fe(e){return e&&"map-notes"===e.type}function me(e){return e&&"open-street-map"===e.type}function he(e){const t=e.layer;if(ie(t)){const r=t.blendMode;if((!r||"normal"===r)&&(t.effect||"featureEffect"in e&&e.featureEffect))return!0}return!1}function be(e){return e&&"stream"===e.type}function ge(e){return e&&"tile"===e.type}function ve(e){return e&&"vector-tile"===e.type}function we(e){return e&&"web-tile"===e.type}function Se(e){return e&&"wms"===e.type}function xe(e){return e&&"wmts"===e.type}let Pe=class extends g.Z{constructor(e){super(e),this.attributionVisible=!0,this.exportOptions={width:800,height:1100,dpi:96},this.forceFeatureAttributes=!1,this.format="png32",this.label=null,this.layout="map-only",this.layoutOptions=null,this.outScale=0,this.scalePreserved=!0,this.showLabels=!0}};(0,i._)([(0,a.Cb)()],Pe.prototype,"attributionVisible",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"exportOptions",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"forceFeatureAttributes",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"format",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"label",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"layout",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"layoutOptions",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"outScale",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"scalePreserved",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"showLabels",void 0),Pe=(0,i._)([(0,s.j)("esri.rest.support.PrintTemplate")],Pe);const Ve=Pe;var De=r(71058),Ce=r(410);const Me={Feet:"ft",Kilometers:"km",Meters:"m",Miles:"mi"},Ie=new n.X({esriFeet:"Feet",esriKilometers:"Kilometers",esriMeters:"Meters",esriMiles:"Miles"}),Le=new n.X({esriExecutionTypeSynchronous:"sync",esriExecutionTypeAsynchronous:"async"}),Te=new Map;async function Fe(e,t,r){const i=Oe(e);let n=Te.get(i);return Promise.resolve().then((()=>n?{data:n.gpMetadata}:(n={gpServerUrl:i,is11xService:!1,legendLayerNameMap:{},legendLayers:[]},(0,c.default)(i,{query:{f:"json"}})))).then((e=>(n.gpMetadata=e.data,n.cimVersion=n.gpMetadata.cimVersion,n.is11xService=!!n.cimVersion,Te.set(i,n),_e(t,n)))).then((i=>{const a=function(e){return e.gpMetadata&&e.gpMetadata.executionType?Le.fromJSON(e.gpMetadata.executionType):"sync"}(n);let o;const s=e=>"sync"===a?e.results&&e.results[0]&&e.results[0].value:o.fetchResultData("Output_File",null,r).then((e=>e.value));return"async"===a?async function(e,t,r,i){return r=x.from(r||{}),k(e,"submitJob",r,t,i).then((t=>{const r=B.fromJSON(t.data);return r.sourceUrl=e,r}))}(e,i,null,r).then((e=>(o=e,e.waitForJobCompletion({interval:t.updateDelay}).then(s)))):async function(e,t,r,i){return k(e,"execute",r=x.from(r||{}),t,i).then((e=>{const t=e.data.results||[],r=e.data.messages||[];return{results:t.map(z),messages:r.map((e=>A.Z.fromJSON(e)))}}))}(e,i,null,r).then(s)}))}async function _e(e,t){t=t||{is11xService:!1,legendLayerNameMap:{},legendLayers:[]};const r=e.template||new Ve;null==r.showLabels&&(r.showLabels=!0);const i=r.exportOptions;let n;const a=Y(r.layout);if(i&&(n={dpi:i.dpi},"map_only"===a.toLowerCase()||""===a)){const e=i.width,t=i.height;n.outputSize=[e,t]}const o=r.layoutOptions;let s;if(o){let e,t;"Miles"===o.scalebarUnit||"Kilometers"===o.scalebarUnit?(e="Kilometers",t="Miles"):"Meters"!==o.scalebarUnit&&"Feet"!==o.scalebarUnit||(e="Meters",t="Feet"),s={titleText:o.titleText,authorText:o.authorText,copyrightText:o.copyrightText,customTextElements:o.customTextElements,scaleBarOptions:{metricUnit:Ie.toJSON(e),metricLabel:Me[e],nonMetricUnit:Ie.toJSON(t),nonMetricLabel:Me[t]}}}let l=null;null!=o&&o.legendLayers&&(l=o.legendLayers.map((e=>{t.legendLayerNameMap[e.layerId]=e.title;const r={id:e.layerId};return e.subLayerIds&&(r.subLayerIds=e.subLayerIds),r})));const u=await async function(e,t,r){const i=e.view;let n=i.spatialReference;const a={operationalLayers:await Ge(i,t,r)};let o=r.ssExtent||e.extent||i.extent;if(n&&n.isWrappable&&(o=o.clone()._normalize(!0),n=o.spatialReference),a.mapOptions={extent:o&&o.toJSON(),spatialReference:n&&n.toJSON(),showAttribution:t.attributionVisible},r.ssExtent=null,i.background&&(a.background=i.background.toJSON()),i.rotation&&(a.mapOptions.rotation=-i.rotation),t.scalePreserved&&(a.mapOptions.scale=t.outScale||i.scale),(0,d.pC)(i.timeExtent)){const e=(0,d.pC)(i.timeExtent.start)?i.timeExtent.start.getTime():null,t=(0,d.pC)(i.timeExtent.end)?i.timeExtent.end.getTime():null;a.mapOptions.time=[e,t]}return a}(e,r,t);if(u.operationalLayers){const e=new RegExp("[\\u4E00-\\u9FFF\\u0E00-\\u0E7F\\u0900-\\u097F\\u3040-\\u309F\\u30A0-\\u30FF\\u31F0-\\u31FF]"),r=/[\u0600-\u06FF]/,i=t=>{const i=t.text,n=t.font,a=n&&n.family&&n.family.toLowerCase();i&&n&&("arial"===a||"arial unicode ms"===a)&&(n.family=e.test(i)?"Arial Unicode MS":"Arial","normal"!==n.style&&r.test(i)&&(n.family="Arial Unicode MS"))},n=()=>{throw new p.Z("print:cim-symbol-unsupported","CIMSymbol is not supported by a print service published from ArcMap")};u.operationalLayers.forEach((e=>{var r,a,o;null!=(r=e.featureCollection)&&r.layers?e.featureCollection.layers.forEach((e=>{var r,a,o,s;if(null!=(r=e.layerDefinition)&&null!=(a=r.drawingInfo)&&null!=(o=a.renderer)&&o.symbol){const r=e.layerDefinition.drawingInfo.renderer;"esriTS"===r.symbol.type?i(r.symbol):"CIMSymbolReference"!==r.symbol.type||t.is11xService||n()}null!=(s=e.featureSet)&&s.features&&e.featureSet.features.forEach((e=>{e.symbol&&("esriTS"===e.symbol.type?i(e.symbol):"CIMSymbolReference"!==e.symbol.type||t.is11xService||n())}))})):!t.is11xService&&null!=(a=e.layerDefinition)&&null!=(o=a.drawingInfo)&&o.renderer&&JSON.stringify(e.layerDefinition.drawingInfo.renderer).includes('"type":"CIMSymbolReference"')&&n()}))}e.outSpatialReference&&(u.mapOptions.spatialReference=e.outSpatialReference.toJSON()),Object.assign(u,{exportOptions:n,layoutOptions:s||{}}),Object.assign(u.layoutOptions,{legendOptions:{operationalLayers:null!=l?l:t.legendLayers.slice()}}),t.legendLayers.length=0,Te.set(t.gpServerUrl,t);const c={Web_Map_as_JSON:JSON.stringify(u),Format:X(r.format),Layout_Template:a};return e.extraParameters&&Object.assign(c,e.extraParameters),c}function Oe(e){let t=e;const r=t.lastIndexOf("/GPServer/");return r>0&&(t=t.slice(0,r+9)),t}async function Ge(e,t,r){const i=[],n={layerView:null,printTemplate:t,view:e};let a=0;t.scalePreserved&&(a=t.outScale||e.scale);const o=function(e,t){const r=e.allLayerViews.items;if(t===e.scale)return r.filter((e=>!e.suspended));const i=new Array;for(const e of r)ue(e.parent)&&!i.includes(e.parent)||!e.visible||t&&"isVisibleAtScale"in e&&!e.isVisibleAtScale(t)||i.push(e);return i}(e,a);for(const e of o){const t=e.layer;if(!t.loaded||le(t))continue;let a;n.layerView=e,a=he(e)?await $e(t,n,r):re(t)?Ne(t):ne(t)?await Re(t,n,r):ae(t)?await je(t,n,r):oe(t)?await Je(t,n,r):se(t)?await ke(t,n,r):ce(t)?ze(t,r):pe(t)?await qe(t,n,r):de(t)?await Ue(t,n,r):ye(t)?Ae(t,n,r):fe(t)?await Ze(n,r):me(t)?{type:"OpenStreetMap"}:be(t)?await We(t,n,r):ge(t)?Be(t,r):ve(t)?await Ke(t,n,r):we(t)?Xe(t):Se(t)?Qe(t):xe(t)?Ye(t):await $e(t,n,r),a&&(Array.isArray(a)?i.push(...a):(a.id=t.id,a.title=r.legendLayerNameMap[t.id]||t.title,a.opacity=t.opacity,a.minScale=t.minScale||0,a.maxScale=t.maxScale||0,ie(t)&&t.blendMode&&"normal"!==t.blendMode&&(a.blendMode=t.blendMode),i.push(a)))}if(a&&i.forEach((e=>{e.minScale=0,e.maxScale=0})),e.graphics&&e.graphics.length){const n=await Ee(null,e.graphics,t,r);n&&i.push(n)}return i}function Ne(e){return{culture:e.culture,key:e.key,type:"BingMaps"+("aerial"===e.style?"Aerial":"hybrid"===e.style?"Hybrid":"Road")}}async function Re(e,t,r){e.legendEnabled&&r.legendLayers.push({id:e.id});const i=t.layerView,n=t.printTemplate;let a;return!r.is11xService||i.filter?Ee(e,await it(i),n,r):(a={type:"CSV"},e.write(a,{origin:"web-map"}),delete a.popupInfo,delete a.layerType,a.showLabels=n.showLabels&&e.labelsVisible,a)}async function Ee(e,t,r,i){let n;const a={layerDefinition:{name:"polygonLayer",geometryType:"esriGeometryPolygon",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPolygon",features:[]}},o={layerDefinition:{name:"polylineLayer",geometryType:"esriGeometryPolyline",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPolyline",features:[]}},s={layerDefinition:{name:"pointLayer",geometryType:"esriGeometryPoint",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPoint",features:[]}},l={layerDefinition:{name:"multipointLayer",geometryType:"esriGeometryMultipoint",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryMultipoint",features:[]}},u={layerDefinition:{name:"pointLayer",geometryType:"esriGeometryPoint",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPoint",features:[]}};if(u.layerDefinition.name="textLayer",delete u.layerDefinition.drawingInfo,e){if("esri.layers.FeatureLayer"===e.declaredClass||"esri.layers.StreamLayer"===e.declaredClass?a.layerDefinition.name=o.layerDefinition.name=s.layerDefinition.name=l.layerDefinition.name=i.legendLayerNameMap[e.id]||e.get("arcgisProps.title")||e.title:"esri.layers.GraphicsLayer"===e.declaredClass&&(t=e.graphics.items),e.renderer){const t=e.renderer.toJSON();a.layerDefinition.drawingInfo.renderer=t,o.layerDefinition.drawingInfo.renderer=t,s.layerDefinition.drawingInfo.renderer=t,l.layerDefinition.drawingInfo.renderer=t}if(r.showLabels&&e.labelsVisible&&"function"==typeof e.write){var c,p;const t=null==(c=e.write({},{origin:"web-map"}).layerDefinition)||null==(p=c.drawingInfo)?void 0:p.labelingInfo;t&&(n=!0,a.layerDefinition.drawingInfo.labelingInfo=t,o.layerDefinition.drawingInfo.labelingInfo=t,s.layerDefinition.drawingInfo.labelingInfo=t,l.layerDefinition.drawingInfo.labelingInfo=t)}}let d;null!=e&&e.renderer||n||(delete a.layerDefinition.drawingInfo,delete o.layerDefinition.drawingInfo,delete s.layerDefinition.drawingInfo,delete l.layerDefinition.drawingInfo);const y=null==e?void 0:e.fieldsIndex,f=null==e?void 0:e.renderer;if(y){const t=new Set;n&&await(0,h.Mu)(t,e),f&&"function"==typeof f.collectRequiredFields&&await f.collectRequiredFields(t,y),d=Array.from(t);const r=y.fields.map((e=>e.toJSON()));a.layerDefinition.fields=r,o.layerDefinition.fields=r,s.layerDefinition.fields=r,l.layerDefinition.fields=r}const b=t&&t.length;let g;for(let n=0;n<b;n++){var v;const c=t[n]||t.getItemAt(n);if(!1===c.visible||!c.geometry)continue;if(g=c.toJSON(),g.hasOwnProperty("popupTemplate")&&delete g.popupTemplate,g.geometry&&g.geometry.z&&delete g.geometry.z,g.symbol&&g.symbol.outline&&"esriCLS"===g.symbol.outline.type&&!i.is11xService)continue;!i.is11xService&&g.symbol&&g.symbol.outline&&g.symbol.outline.color&&g.symbol.outline.color[3]&&(g.symbol.outline.color[3]=255);const p=e&&e.renderer&&("valueExpression"in e.renderer&&e.renderer.valueExpression||"hasVisualVariables"in e.renderer&&e.renderer.hasVisualVariables());if(!g.symbol&&e&&e.renderer&&p&&!i.is11xService){const t=e.renderer,r=await t.getSymbolAsync(c);if(!r)continue;g.symbol=r.toJSON(),"hasVisualVariables"in t&&t.hasVisualVariables()&&te(g.symbol,{renderer:t,graphic:c,symbol:r})}if(g.symbol&&(g.symbol.angle||delete g.symbol.angle,nt(g.symbol)?g.symbol=await tt(g.symbol,i):g.symbol.text&&delete g.attributes),(!r||!r.forceFeatureAttributes)&&null!=(v=d)&&v.length){const e={};d.forEach((t=>{g.attributes&&g.attributes.hasOwnProperty(t)&&(e[t]=g.attributes[t])})),g.attributes=e}"polygon"===c.geometry.type?a.featureSet.features.push(g):"polyline"===c.geometry.type?o.featureSet.features.push(g):"point"===c.geometry.type?g.symbol&&g.symbol.text?u.featureSet.features.push(g):s.featureSet.features.push(g):"multipoint"===c.geometry.type?l.featureSet.features.push(g):"extent"===c.geometry.type&&(g.geometry=m.Z.fromExtent(c.geometry).toJSON(),a.featureSet.features.push(g))}const w=[a,o,l,s,u].filter((e=>e.featureSet.features.length>0));for(const e of w){const t=e.featureSet.features.every((e=>e.symbol));!t||r&&r.forceFeatureAttributes||e.featureSet.features.forEach((e=>{delete e.attributes})),t&&delete e.layerDefinition.drawingInfo,e.layerDefinition.drawingInfo&&e.layerDefinition.drawingInfo.renderer&&await rt(e.layerDefinition.drawingInfo.renderer,i)}return w.length?{featureCollection:{layers:w},showLabels:n}:null}async function je(e,t,r){var i,n;let a;const o=e.renderer,s=parseFloat(r.cimVersion);if(e.featureReduction&&(!r.is11xService||s<2.9)||"dot-density"===(null==o?void 0:o.type)&&(!r.is11xService||s<2.6))return $e(e,t,r);e.legendEnabled&&r.legendLayers.push({id:e.id});const l=t.layerView,{printTemplate:u,view:c}=t,p=o&&("valueExpression"in o&&o.valueExpression||"hasVisualVariables"in o&&o.hasVisualVariables()),d="feature-layer"!==(null==(i=e.source)?void 0:i.type)&&"ogc-feature"!==(null==(n=e.source)?void 0:n.type);if(!r.is11xService&&p||l.filter||d||!o||"field"in o&&null!=o.field&&("string"!=typeof o.field||!e.getField(o.field))){const t=await it(l);a=await Ee(e,t,u,r)}else{var y,f;if(a={id:(m=e.write()).id,title:m.title,opacity:m.opacity,minScale:m.minScale,maxScale:m.maxScale,url:m.url,layerType:m.layerType,customParameters:m.customParameters,layerDefinition:m.layerDefinition},a.showLabels=u.showLabels&&e.labelsVisible,He(a,e),null!=(y=a.layerDefinition)&&null!=(f=y.drawingInfo)&&f.renderer&&(delete a.layerDefinition.minScale,delete a.layerDefinition.maxScale,await rt(a.layerDefinition.drawingInfo.renderer,r),"visualVariables"in o&&o.visualVariables&&o.visualVariables[0])){const e=o.visualVariables[0];if("size"===e.type&&e.maxSize&&"number"!=typeof e.maxSize&&e.minSize&&"number"!=typeof e.minSize){const t=(0,b.V3)(e,c.scale);a.layerDefinition.drawingInfo.renderer.visualVariables[0].minSize=t.minSize,a.layerDefinition.drawingInfo.renderer.visualVariables[0].maxSize=t.maxSize}}const t=(0,Ce.cx)(l);t&&(a.layerDefinition||(a.layerDefinition={}),a.layerDefinition.definitionExpression=a.layerDefinition.definitionExpression?`(${a.layerDefinition.definitionExpression}) AND (${t})`:t)}var m;return a}async function Je(e,{layerView:t,printTemplate:r},i){return e.legendEnabled&&i.legendLayers.push({id:e.id}),Ee(e,await it(t),r,i)}async function ke(e,{printTemplate:t},r){return Ee(e,null,t,r)}function ze(e,t){e.legendEnabled&&t.legendLayers.push({id:e.id});const r={layerType:(i=e.write()).layerType,customParameters:i.customParameters};var i;if(r.bandIds=e.bandIds,r.compressionQuality=e.compressionQuality,r.format=e.format,r.interpolation=e.interpolation,(e.mosaicRule||e.definitionExpression)&&(r.mosaicRule=e.exportImageServiceParameters.mosaicRule.toJSON()),e.renderingRule||e.renderer)if(t.is11xService)e.renderingRule&&(r.renderingRule=e.renderingRule.toJSON()),e.renderer&&(r.layerDefinition=r.layerDefinition||{},r.layerDefinition.drawingInfo=r.layerDefinition.drawingInfo||{},r.layerDefinition.drawingInfo.renderer=e.renderer.toJSON());else{const t=e.exportImageServiceParameters.combineRendererWithRenderingRule();t&&(r.renderingRule=t.toJSON())}return He(r,e),r}async function qe(e,t,r){var i;if("animated-flow"===(null==(i=e.renderer)?void 0:i.type))return $e(e,t,r);e.legendEnabled&&r.legendLayers.push({id:e.id});const n={bandIds:(a=e.write()||{}).bandIds,customParameters:a.customParameters,interpolation:a.interpolation,layerDefinition:a.layerDefinition};var a;return n.layerType="ArcGISImageServiceLayer",He(n,e),n}async function Ue(e,t,r){const i=t.printTemplate;if(r.is11xService){const t={type:"kml"};return e.write(t,{origin:"web-map"}),delete t.layerType,t.url=(0,f.Fv)(e.url),t}{const n=[],a=t.layerView;a.allVisibleMapImages.forEach(((t,r)=>{const i={id:`${e.id}_image${r}`,type:"image",title:e.id,minScale:e.minScale||0,maxScale:e.maxScale||0,opacity:e.opacity,extent:t.extent};"data:image/png;base64,"===t.href.substr(0,22)?i.imageData=t.href.substr(22):i.url=t.href,n.push(i)}));const o=[...a.allVisiblePoints.items,...a.allVisiblePolylines.items,...a.allVisiblePolygons.items],s={id:e.id,...await Ee(null,o,i,r)};return n.push(s),n}}function Ae(e,{view:t},r){let i;const n={id:e.id,subLayerIds:[]};let a=[];const o=t.scale,s=e=>{const t=0===o,r=0===e.minScale||o<=e.minScale,i=0===e.maxScale||o>=e.maxScale;if(e.visible&&(t||r&&i))if(e.sublayers)e.sublayers.forEach(s);else{const t=e.toExportImageJSON(),r={id:e.id,name:e.title,layerDefinition:{drawingInfo:t.drawingInfo,definitionExpression:t.definitionExpression,source:t.source}};a.unshift(r),n.subLayerIds.push(e.id)}};var l;return e.sublayers&&e.sublayers.forEach(s),a.length&&(a=a.map((({id:e,name:t,layerDefinition:r})=>({id:e,name:t,layerDefinition:r}))),i={layerType:(l=e.write()).layerType,customParameters:l.customParameters},i.layers=a,i.visibleLayers=e.capabilities.exportMap.supportsDynamicLayers?void 0:n.subLayerIds,He(i,e),e.legendEnabled&&r.legendLayers.push(n)),i}async function Ze({layerView:e,printTemplate:t},r){const i=[],n=e.layer;if((0,d.pC)(n.featureCollections))for(const e of n.featureCollections){const n=await Ee(e,e.source,t,r);n&&i.push(...n.featureCollection.layers)}else if((0,d.pC)(n.sublayers))for(const e of n.sublayers){const n=await Ee(null,e.graphics,t,r);n&&i.push(...n.featureCollection.layers)}return{featureCollection:{layers:i}}}async function $e(e,{printTemplate:t,view:r},i){const n={type:"image"},a={format:"png",ignoreBackground:!0,layers:[e],rotation:0},o=i.ssExtent||r.extent.clone();let s=96,l=!0,u=!0;if(t.exportOptions){const e=t.exportOptions;e.dpi>0&&(s=e.dpi),e.width>0&&(l=e.width%2==r.width%2),e.height>0&&(u=e.height%2==r.height%2)}if("map-only"===t.layout&&t.scalePreserved&&(!t.outScale||t.outScale===r.scale)&&96===s&&(!l||!u)&&(a.area={x:0,y:0,width:r.width,height:r.height},l||(a.area.width-=1),u||(a.area.height-=1),!i.ssExtent)){const e=r.toMap((0,y.vW)(a.area.width,a.area.height));o.ymin=e.y,o.xmax=e.x,i.ssExtent=o}n.extent=o.clone()._normalize(!0).toJSON();const c=await r.takeScreenshot(a),{data:p}=(0,f.sJ)(c.dataUrl);return n.imageData=p,n}async function We(e,{layerView:t,printTemplate:r},i){return e.legendEnabled&&i.legendLayers.push({id:e.id}),Ee(e,await it(t),r,i)}function Be(e,t){e.legendEnabled&&t.legendLayers.push({id:e.id});const r={layerType:(i=e.write()).layerType,customParameters:i.customParameters};var i;return He(r,e),r}async function Ke(e,t,r){if(r.is11xService&&e.serviceUrl&&e.styleUrl){const t=et(e.styleUrl,e.apiKey),i=et(e.serviceUrl,e.apiKey);if(!t&&!i||"2.1.0"!==r.cimVersion){const r={type:"VectorTileLayer"};return r.styleUrl=(0,f.Fv)(e.styleUrl),r.token=t,i!==t&&(r.additionalTokens=[{url:e.serviceUrl,token:i}]),r}}return $e(e,t,r)}function Xe(e){const t={type:"WebTiledLayer",urlTemplate:e.urlTemplate.replace(/\${/g,"{"),credits:e.copyright};return e.subDomains&&e.subDomains.length>0&&(t.subDomains=e.subDomains),t}function Qe(e){let t;const r=[],i=e=>{e.visible&&(e.sublayers?e.sublayers.forEach(i):e.name&&r.unshift(e.name))};return e.sublayers&&e.sublayers.forEach(i),r.length&&(t={type:"wms",customLayerParameters:e.customLayerParameters,customParameters:e.customParameters,transparentBackground:e.imageTransparency,visibleLayers:r,url:(0,f.Fv)(e.url),version:e.version}),t}function Ye(e){const t=e.activeLayer;return{type:"wmts",customLayerParameters:e.customLayerParameters,customParameters:e.customParameters,format:t.imageFormat,layer:t.id,style:t.styleId,tileMatrixSet:t.tileMatrixSetId,url:(0,f.Fv)(e.url)}}function He(e,t){t.url&&(e.url=(0,f.Fv)(e.url||t.url),e.token=et(e.url,t.apiKey))}function et(e,t){var r,i;return(0,De.r)(e)&&(t||l.Z.apiKey)?t||l.Z.apiKey:null==(r=u.id)||null==(i=r.findCredential(e))?void 0:i.token}async function tt(e,t){t.canvas||(t.canvas=document.createElement("canvas"));const r=1024;t.canvas.width=r,t.canvas.height=r;const i=t.canvas.getContext("2d");let n,a;if(e.path){var o;const t=new Path2D(e.path);t.closePath(),i.fillStyle=Array.isArray(e.color)?`rgba(${e.color[0]},${e.color[1]},${e.color[2]},${e.color[3]/255})`:"rgb(0,0,0)",i.fill(t);const s=function(e,t=15){const r=e.canvas.width,i=e.canvas.height,n=e.getImageData(0,0,r,i).data;let a,o,s,l,u,c;e:for(o=i;o--;)for(a=r;a--;)if(n[4*(r*o+a)+3]>t){c=o;break e}if(!c)return null;e:for(a=r;a--;)for(o=c+1;o--;)if(n[4*(r*o+a)+3]>t){u=a;break e}e:for(a=0;a<=u;++a)for(o=c+1;o--;)if(n[4*(r*o+a)+3]>t){s=a;break e}e:for(o=0;o<=c;++o)for(a=s;a<=u;++a)if(n[4*(r*o+a)+3]>t){l=o;break e}return{x:s,y:l,width:u-s,height:c-l}}(i);if(!s)return null;i.clearRect(0,0,r,r);const l=(0,y.F2)(e.size)/Math.max(s.width,s.height);i.scale(l,l);const u=r/l,c=u/2-s.width/2-s.x,p=u/2-s.height/2-s.y;if(i.translate(c,p),Array.isArray(e.color)&&i.fill(t),null!=(o=e.outline)&&o.width&&Array.isArray(e.outline.color)){const r=e.outline;i.lineWidth=(0,y.F2)(r.width)/l,i.lineJoin="round",i.strokeStyle=`rgba(${r.color[0]},${r.color[1]},${r.color[2]},${r.color[3]/255})`,i.stroke(t),s.width+=i.lineWidth,s.height+=i.lineWidth}s.width*=l,s.height*=l;const d=i.getImageData(512-s.width/2,512-s.height/2,Math.ceil(s.width),Math.ceil(s.height));n=d.width,a=d.height,i.canvas.width=n,i.canvas.height=a,i.putImageData(d,0,0)}else{const t="image/svg+xml"===e.contentType?"data:image/svg+xml;base64,"+e.imageData:e.url,r=(await(0,c.default)(t,{responseType:"image"})).data;n=(0,y.F2)(e.width),a=(0,y.F2)(e.height),i.canvas.width=n,i.canvas.height=a,i.drawImage(r,0,0,i.canvas.width,i.canvas.height)}return{type:"esriPMS",imageData:i.canvas.toDataURL("image/png").substr(22),angle:e.angle,contentType:"image/png",height:(0,y.Wz)(a),width:(0,y.Wz)(n),xoffset:e.xoffset,yoffset:e.yoffset}}async function rt(e,t){const r=e.type;if("simple"===r&&nt(e.symbol))e.symbol=await tt(e.symbol,t);else if("uniqueValue"===r||"classBreaks"===r){nt(e.defaultSymbol)&&(e.defaultSymbol=await tt(e.defaultSymbol,t));const i=e["uniqueValue"===r?"uniqueValueInfos":"classBreakInfos"];if(i)for(const e of i)nt(e.symbol)&&(e.symbol=await tt(e.symbol,t))}}async function it(e){return e.queryFeatures(e.createQuery()).then((e=>e.features))}function nt(e){return e&&(e.path||"image/svg+xml"===e.contentType||e.url&&e.url.endsWith(".svg"))}var at=r(59633);const ot=new n.X({esriExecutionTypeSynchronous:"sync",esriExecutionTypeAsynchronous:"async"});let st=class extends at.Z{constructor(...e){super(...e),this._gpMetadata=null,this.updateDelay=1e3}get mode(){return this._gpMetadata&&this._gpMetadata.executionType?ot.fromJSON(this._gpMetadata.executionType):"sync"}execute(e,t){return e&&(e.updateDelay=this.updateDelay),Fe(this.url,e,{...this.requestOptions,...t})}async _getGpPrintParams(e){const t=Oe(this.url);return _e(e,Te.get(t))}};(0,i._)([(0,a.Cb)()],st.prototype,"_gpMetadata",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],st.prototype,"mode",null),(0,i._)([(0,a.Cb)()],st.prototype,"updateDelay",void 0),st=(0,i._)([(0,s.j)("esri.tasks.PrintTask")],st);const lt=st},59633:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),n=r(15923),a=r(17452),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011));let l=class extends n.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,a.mN)(e):null}_encode(e,t,r){const i={};for(const n in e){if("declaredClass"===n)continue;const a=e[n];if(null!=a&&"function"!=typeof a)if(Array.isArray(a)){i[n]=[];for(let e=0;e<a.length;e++)i[n][e]=this._encode(a[e])}else if("object"==typeof a)if(a.toJSON){const e=a.toJSON(r&&r[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?a:JSON.stringify(a);else i[n]=a}return i}};(0,i._)([(0,o.Cb)({readOnly:!0})],l.prototype,"parsedUrl",null),(0,i._)([(0,o.Cb)()],l.prototype,"requestOptions",void 0),(0,i._)([(0,o.Cb)({type:String})],l.prototype,"url",void 0),l=(0,i._)([(0,s.j)("esri.tasks.Task")],l);const u=l},410:(e,t,r)=>{function i(e){var t;const r=e.layer;return"floorInfo"in r&&null!=(t=r.floorInfo)&&t.floorField&&"floors"in e.view?o(e.view.floors,r.floorInfo.floorField):null}function n(e,t){var r;return"floorInfo"in t&&null!=(r=t.floorInfo)&&r.floorField?o(e,t.floorInfo.floorField):null}function a(e,t){const{definitionExpression:r}=t;return e?r?`(${r}) AND (${e})`:e:r}function o(e,t){if(null==e||!e.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}r.d(t,{Hp:()=>a,cx:()=>i,ff:()=>n})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,4579,8062],{70024:(e,a,r)=>{r.r(a),r.d(a,{populateOperationalLayers:()=>c});var t=r(80539),n=(r(80442),r(95330)),l=r(87344),i=r(15235);function y(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var s=r(44579),o=r(40555);async function c(e,a,r){if(!a)return;const t=[];for(const e of a){const a=S(e,r);"GroupLayer"===e.layerType?t.push(h(a,e,r)):t.push(a)}const l=await(0,n.as)(t);for(const a of l)!a.value||r.filter&&!r.filter(a.value)||e.add(a.value)}const u={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer"},d={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},L={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",DefaultTileLayer:"TileLayer"},p={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",OGCFeatureLayer:"OGCFeatureLayer",SubtypeGroupLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"};async function S(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&I(a)&&await async function(e,a,r){const t=l.T.FeatureLayer,n=await t(),i=a.featureCollection,y=i.showLegend,s=i.layers.map(((t,l)=>{var i,s;const o=new n;o.read(t,r);const c={...r,ignoreDefaults:!0};return o.read({id:`${e.id}-sublayer-${l}`,visibility:null==(i=null==(s=a.visibleLayers)?void 0:s.includes(l))||i},c),null!=y&&o.read({showLegend:y},c),o}));e.layers.addMany(s)}(t,a,r.context),await(0,o.y)(t,r.context),t}(await async function(e,a){const r=a.context,t=g(r);let n=e.layerType||e.type;!n&&a&&a.defaultLayerType&&(n=a.defaultLayerType);const o=t[n];let c=o?l.T[o]:l.T.UnknownLayer;if(T(e)){const a=null==r?void 0:r.portal;if(e.itemId){const r=new i.default({id:e.itemId,portal:a});await r.load();const t=(await(0,s.selectLayerClassPath)(r)).className||"UnknownLayer";c=l.T[t]}}else"ArcGISFeatureLayer"===n?function(e){return y(e,"notes")}(e)?c=l.T.MapNotesLayer:function(e){return y(e,"route")}(e)?c=l.T.RouteLayer:I(e)&&(c=l.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?c=l.T.WMTSLayer:"WFS"===n&&"2.0.0"!==e.wfsInfo.version&&(c=l.T.UnsupportedLayer);return c()}(e,a),e,a)}function I(e){var a,r,t;return"ArcGISFeatureLayer"===e.layerType&&!T(e)&&(null!=(a=null==(r=e.featureCollection)||null==(t=r.layers)?void 0:t.length)?a:0)>1}function T(e){return"Feature Collection"===e.type}function g(e){let a;if("web-scene"===e.origin)switch(e.layerContainerType){case"basemap":a=L;break;case"ground":a=d;break;default:a=u}else switch(e.layerContainerType){case"basemap":a=f;break;case"tables":a=m;break;default:a=p}return a}async function h(e,a,r){const n=new t.Z,l=c(n,Array.isArray(a.layers)?a.layers:[],r),i=await e;if(await l,"group"===i.type)return i.layers.addMany(n),i}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(6968),r.e(3485),r.e(3749)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(9101),r.e(7284),r.e(3792),r.e(8216),r.e(223)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(9101),r.e(7284),r.e(9938)]).then(r.bind(r,45425))).default,ElevationLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(7668),r.e(3485),r.e(9151),r.e(9932),r.e(1765)]).then(r.bind(r,49932))).default,FeatureLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(9101),r.e(7284),r.e(6104)]).then(r.bind(r,67284))).default,GroupLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(6968),r.e(6401),r.e(7049)]).then(r.bind(r,63144))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(9201)]).then(r.bind(r,3723))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(3307)]).then(r.bind(r,23477))).default,ImageryLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(9101),r.e(3578),r.e(3942),r.e(176),r.e(3081),r.e(4464)]).then(r.bind(r,66984))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4547),r.e(3485),r.e(3578),r.e(9151),r.e(176),r.e(3081),r.e(2398),r.e(7622)]).then(r.bind(r,52294))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(4547),r.e(3792),r.e(8589)]).then(r.bind(r,4717))).default,KMLLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(8014)]).then(r.bind(r,42756))).default,MapImageLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(4369),r.e(5823),r.e(6204)]).then(r.bind(r,75823))).default,MapNotesLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(4547),r.e(635),r.e(9101),r.e(7284),r.e(4859)]).then(r.bind(r,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(2730),r.e(7616)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(6968),r.e(3485),r.e(8659),r.e(6237)]).then(r.bind(r,66237))).default,PointCloudLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(1773),r.e(3792),r.e(9294),r.e(6726)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(755),r.e(3471),r.e(5638),r.e(4273),r.e(368),r.e(4889)]).then(r.bind(r,66277))).default,SceneLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(9101),r.e(7284),r.e(3792),r.e(8216),r.e(9254)]).then(r.bind(r,49254))).default,StreamLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(635),r.e(3667)]).then(r.bind(r,88387))).default,TileLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(3485),r.e(9151),r.e(4369),r.e(9767)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(4166)]).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(9296)]).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7668),r.e(3485),r.e(9151),r.e(4325),r.e(1785),r.e(6434)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(7668),r.e(3792),r.e(5410)]).then(r.bind(r,58092))).default,WebTileLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(6968),r.e(3485),r.e(8659)]).then(r.bind(r,16199))).default,WFSLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(755),r.e(3471),r.e(5638),r.e(4588),r.e(511),r.e(4547),r.e(635),r.e(4556),r.e(3516)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(2303),r.e(6968),r.e(7319),r.e(1773),r.e(7668),r.e(5845)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(102),r.e(6968),r.e(3485),r.e(8659),r.e(5853)]).then(r.bind(r,55853))).default}},33516:(e,a,r)=>{r.d(a,{m:()=>l});var t=r(17452),n=r(65587);function l(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}},18062:(e,a,r)=>{r.r(a),r.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>m,load:()=>o,preprocessFSItemData:()=>L});var t=r(20102),n=r(87344),l=r(65587),i=r(33516),y=r(40555),s=r(96187);async function o(e,a){const r=e.instance.portalItem;return r&&r.id?(await r.load(a),function(e){const a=e.instance.portalItem;if(-1===e.supportedTypes.indexOf(a.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const r=e.instance,l=r.portalItem,{url:o,title:u}=l,p=(0,i.m)(l);if("group"===r.type)return r.read({title:u},p),function(e,a){let r;const l=e.portalItem.type;switch(l){case"Feature Service":case"Feature Collection":r=n.T.FeatureLayer;break;case"Stream Service":r=n.T.StreamLayer;break;case"Scene Service":r=n.T.SceneLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let i;return r().then((e=>(i=e,d(a)))).then((async a=>"Feature Service"===l?(a=await L(a,e.portalItem.url),c(e,i,a)):m(a)>0?c(e,i,a):function(e,a){return e.portalItem.url?(0,s.b)(e.portalItem.url).then((r=>{var t,n;function l(e){return{id:e.id,name:e.name}}r&&c(e,a,{layers:null==(t=r.layers)?void 0:t.map(l),tables:null==(n=r.tables)?void 0:n.map(l)})})):Promise.resolve()}(e,i)))}(r,e);o&&r.read({url:o},p);const f=await d(e,a);return f&&r.read(f,p),r.resourceReferences={portalItem:l,paths:p.readResourcePaths},r.read({title:u},p),(0,y.y)(r,p)}(e,a)):Promise.resolve()}function c(e,a,r){let t=r.layers||[];const n=r.tables||[];"Feature Collection"===e.portalItem.type&&(t.forEach((e=>{var a;"Table"===(null==e||null==(a=e.layerDefinition)?void 0:a.type)&&n.push(e)})),t=t.filter((e=>{var a;return"Table"!==(null==e||null==(a=e.layerDefinition)?void 0:a.type)}))),t.reverse().forEach((t=>{const n=u(e,a,r,t);e.add(n)})),n.reverse().forEach((t=>{const n=u(e,a,r,t);e.tables.add(n)}))}function u(e,a,r,t){const n=new a({portalItem:e.portalItem.clone(),layerId:t.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||l.Z.getDefault()};n.read(t,a);const i=r.showLegend;null!=i&&n.read({showLegend:i},a)}return n}function d(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const r=e.instance;return r.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let a,t=!0;return e&&m(e)>0&&(null==r.layerId&&(r.layerId=p(e)),a=function(e,a){const r=e.layers;if(r)for(let e=0;e<r.length;e++)if(r[e].id===a)return r[e];const t=e.tables;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];return null}(e,r.layerId),a&&(1===m(e)&&(t=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),t&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function L(e,a){var r,t;if(null==(null==(r=e)?void 0:r.layers)||null==(null==(t=e)?void 0:t.tables)){const r=await(0,s.b)(a);(e=e||{}).layers=e.layers||(null==r?void 0:r.layers),e.tables=e.tables||(null==r?void 0:r.tables)}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const r=e.tables;return r&&r.length?r[0].id:null}function m(e){var a,r,t,n;return(null!=(a=null==e||null==(r=e.layers)?void 0:r.length)?a:0)+(null!=(t=null==e||null==(n=e.tables)?void 0:n.length)?t:0)}},44579:(e,a,r)=>{r.r(a),r.d(a,{fromItem:()=>o,selectLayerClassPath:()=>c});var t=r(20102),n=r(87344),l=r(15235),i=r(18062);function y(e,a){return!!e.typeKeywords&&e.typeKeywords.indexOf(a)>-1}var s=r(96187);function o(e){return!e.portalItem||e.portalItem instanceof l.default||(e={...e,portalItem:new l.default(e.portalItem)}),function(e){return e.load().then(c).then(u)}(e.portalItem).then((a=>{const r={portalItem:e.portalItem,...a.properties},t=a.constructor;return Promise.resolve(new t(r))}))}function c(e){switch(e.type){case"Map Service":return function(e){return(0,s.b)(e.url).then((e=>e.tileInfo))}(e).then((e=>e?{className:"TileLayer"}:{className:"MapImageLayer"}));case"Feature Service":return function(e){return d(e).then((e=>{if("object"==typeof e){const a={};return null!=e.id&&(a.layerId=e.id),{className:"FeatureLayer",properties:a}}return{className:"GroupLayer"}}))}(e);case"Feature Collection":return async function(e){if(await e.load(),y(e,"Map Notes"))return{className:"MapNotesLayer"};if(y(e,"Route Layer"))return{className:"RouteLayer"};const a=await e.fetchData();return 1===(0,i.getNumLayersAndTables)(a)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return function(e){return d(e).then((a=>{if("object"==typeof a){const r={};let t;if(null!=a.id?(r.layerId=a.id,t=`${e.url}/layers/${a.id}`):t=e.url,Array.isArray(e.typeKeywords)&&e.typeKeywords.length>0){const a={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const r of Object.keys(a))if(-1!==e.typeKeywords.indexOf(r))return{className:a[r]}}return(0,s.b)(t).then((e=>{let a="SceneLayer";const t={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};return e&&e.layerType&&t[e.layerType]&&(a=t[e.layerType]),{className:a,properties:r}}))}return!1===a?(0,s.b)(e.url).then((e=>"Voxel"===(null==e?void 0:e.layerType)?{className:"VoxelLayer"}:{className:"GroupLayer"})):{className:"GroupLayer"}}))}(e);case"Image Service":return async function(e){var a,r,t;await e.load();const n=null!=(a=null==(r=e.typeKeywords)?void 0:r.map((e=>e.toLowerCase())))?a:[];if(n.indexOf("elevation 3d layer")>-1)return{className:"ElevationLayer"};if(n.indexOf("tiled imagery")>-1)return{className:"ImageryTileLayer"};const l=await e.fetchData(),i=null==l?void 0:l.layerType;return"ArcGISTiledImageServiceLayer"===i?{className:"ImageryTileLayer"}:"ArcGISImageServiceLayer"===i?{className:"ImageryLayer"}:"map"===(null==(t=(await(0,s.b)(e.url)).cacheType)?void 0:t.toLowerCase())?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:return Promise.reject(new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type}))}}function u(e){return(0,n.T[e.className])().then((a=>({constructor:a,properties:e.properties})))}function d(e){return!e.url||e.url.match(/\/\d+$/)?Promise.resolve({}):e.load().then((()=>e.fetchData())).then((async a=>"Feature Service"===e.type?L(a=await(0,i.preprocessFSItemData)(a,e.url)):(0,i.getNumLayersAndTables)(a)>0?L(a):(0,s.b)(e.url).then(L)))}function L(e){return 1===(0,i.getNumLayersAndTables)(e)&&{id:(0,i.getFirstLayerOrTableId)(e)}}},40555:(e,a,r)=>{r.d(a,{y:()=>i});var t=r(66643),n=r(95330),l=r(20941);async function i(e,a,r){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const y=await(0,t.q6)(i.populateFromStyle());if((0,n.k_)(r),!1===y.ok){const r=y.error;a&&a.messages&&a.messages.push(new l.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,r)=>{r.d(a,{b:()=>n});var t=r(3172);async function n(e){const{data:a}=await(0,t.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4325],{95648:(E,_,R)=>{var T,e,A,n,N,C,S,i,t,O,I,o,r,L,P,D,M,u,l,B,U,a,G,c,F,f,d,s,H,p,g,m,Y,X,h,V,W,x,y,v,b,k,w,K,Z,Q,J,q,z,j,$,EE,_E,RE,TE,eE,AE,nE,NE,CE;R.d(_,{v2:()=>A,UR:()=>D,zV:()=>P,RL:()=>T,Tx:()=>N,eZ:()=>S,DD:()=>i,Ky:()=>t,TF:()=>l,Em:()=>B,$y:()=>U,id:()=>c,zQ:()=>d,Dd:()=>s,AH:()=>e,kP:()=>h,sj:()=>V,r4:()=>y,JS:()=>K,bj:()=>Z,CS:()=>Q,Lh:()=>J,UX:()=>TE,Qb:()=>eE,RS:()=>nE}),function(E){E[E.BUTT=0]="BUTT",E[E.ROUND=1]="ROUND",E[E.SQUARE=2]="SQUARE",E[E.UNKNOWN=4]="UNKNOWN"}(T||(T={})),function(E){E[E.BEVEL=0]="BEVEL",E[E.ROUND=1]="ROUND",E[E.MITER=2]="MITER",E[E.UNKNOWN=4]="UNKNOWN"}(e||(e={})),function(E){E[E.SCREEN=0]="SCREEN",E[E.MAP=1]="MAP"}(A||(A={})),function(E){E[E.Tint=0]="Tint",E[E.Ignore=1]="Ignore",E[E.Multiply=99]="Multiply"}(n||(n={})),function(E){E.Both="Both",E.JustBegin="JustBegin",E.JustEnd="JustEnd",E.None="None"}(N||(N={})),function(E){E[E.Mosaic=0]="Mosaic",E[E.Centered=1]="Centered"}(C||(C={})),function(E){E[E.Normal=0]="Normal",E[E.Superscript=1]="Superscript",E[E.Subscript=2]="Subscript"}(S||(S={})),function(E){E[E.MSSymbol=0]="MSSymbol",E[E.Unicode=1]="Unicode"}(i||(i={})),function(E){E[E.Unspecified=0]="Unspecified",E[E.TrueType=1]="TrueType",E[E.PSOpenType=2]="PSOpenType",E[E.TTOpenType=3]="TTOpenType",E[E.Type1=4]="Type1"}(t||(t={})),function(E){E[E.Display=0]="Display",E[E.Map=1]="Map"}(O||(O={})),function(E){E[E.Z=0]="Z",E[E.X=1]="X",E[E.Y=2]="Y"}(I||(I={})),function(E){E[E.XYZ=0]="XYZ",E[E.ZXY=1]="ZXY",E[E.YXZ=2]="YXZ"}(o||(o={})),function(E){E[E.Rectangle=0]="Rectangle",E[E.RoundedRectangle=1]="RoundedRectangle",E[E.Oval=2]="Oval"}(r||(r={})),function(E){E[E.None=0]="None",E[E.Alpha=1]="Alpha",E[E.Screen=2]="Screen",E[E.Multiply=3]="Multiply",E[E.Add=4]="Add"}(L||(L={})),function(E){E[E.TTB=0]="TTB",E[E.RTL=1]="RTL",E[E.BTT=2]="BTT"}(P||(P={})),function(E){E[E.None=0]="None",E[E.SignPost=1]="SignPost",E[E.FaceNearPlane=2]="FaceNearPlane"}(D||(D={})),function(E){E[E.Float=0]="Float",E[E.String=1]="String",E[E.Boolean=2]="Boolean"}(M||(M={})),function(E){E[E.Intersect=0]="Intersect",E[E.Subtract=1]="Subtract"}(u||(u={})),function(E){E.OpenEnded="OpenEnded",E.Block="Block",E.Crossed="Crossed"}(l||(l={})),function(E){E.FullGeometry="FullGeometry",E.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",E.ReversedFirstSegment="ReversedFirstSegment",E.PerpendicularToSecondSegment="PerpendicularToSecondSegment",E.SecondSegmentWithTicks="SecondSegmentWithTicks",E.DoublePerpendicular="DoublePerpendicular",E.OppositeToFirstSegment="OppositeToFirstSegment",E.TriplePerpendicular="TriplePerpendicular",E.HalfCircleFirstSegment="HalfCircleFirstSegment",E.HalfCircleSecondSegment="HalfCircleSecondSegment",E.HalfCircleExtended="HalfCircleExtended",E.OpenCircle="OpenCircle",E.CoverageEdgesWithTicks="CoverageEdgesWithTicks",E.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",E.GapExtentMidline="GapExtentMidline",E.Chevron="Chevron",E.PerpendicularWithArc="PerpendicularWithArc",E.ClosedHalfCircle="ClosedHalfCircle",E.TripleParallelExtended="TripleParallelExtended",E.ParallelWithTicks="ParallelWithTicks",E.Parallel="Parallel",E.PerpendicularToFirstSegment="PerpendicularToFirstSegment",E.ParallelOffset="ParallelOffset",E.OffsetOpposite="OffsetOpposite",E.OffsetSame="OffsetSame",E.CircleWithArc="CircleWithArc",E.DoubleJog="DoubleJog",E.PerpendicularOffset="PerpendicularOffset",E.LineExcludingLastSegment="LineExcludingLastSegment",E.MultivertexArrow="MultivertexArrow",E.CrossedArrow="CrossedArrow",E.ChevronArrow="ChevronArrow",E.ChevronArrowOffset="ChevronArrowOffset",E.PartialFirstSegment="PartialFirstSegment",E.Arch="Arch",E.CurvedParallelTicks="CurvedParallelTicks",E.Arc90Degrees="Arc90Degrees"}(B||(B={})),function(E){E.Mitered="Mitered",E.Bevelled="Bevelled",E.Rounded="Rounded",E.Square="Square",E.TrueBuffer="TrueBuffer"}(U||(U={})),function(E){E.ClosePath="ClosePath",E.ConvexHull="ConvexHull",E.RectangularBox="RectangularBox"}(a||(a={})),function(E){E.BeginningOfLine="BeginningOfLine",E.EndOfLine="EndOfLine"}(G||(G={})),function(E){E.Mitered="Mitered",E.Bevelled="Bevelled",E.Rounded="Rounded",E.Square="Square"}(c||(c={})),function(E){E.Fast="Fast",E.Accurate="Accurate"}(F||(F={})),function(E){E.BeginningOfLine="BeginningOfLine",E.EndOfLine="EndOfLine"}(f||(f={})),function(E){E.Sinus="Sinus",E.Square="Square",E.Triangle="Triangle",E.Random="Random"}(d||(d={})),function(E){E[E.None=0]="None",E[E.Default=1]="Default",E[E.Force=2]="Force"}(s||(s={})),function(E){E[E.Buffered=0]="Buffered",E[E.Left=1]="Left",E[E.Right=2]="Right",E[E.AlongLine=3]="AlongLine"}(H||(H={})),function(E){E[E.Linear=0]="Linear",E[E.Rectangular=1]="Rectangular",E[E.Circular=2]="Circular",E[E.Buffered=3]="Buffered"}(p||(p={})),function(E){E[E.Discrete=0]="Discrete",E[E.Continuous=1]="Continuous"}(g||(g={})),function(E){E[E.AcrossLine=0]="AcrossLine",E[E.AloneLine=1]="AloneLine"}(m||(m={})),function(E){E[E.Left=0]="Left",E[E.Right=1]="Right",E[E.Center=2]="Center",E[E.Justify=3]="Justify"}(Y||(Y={})),function(E){E[E.Base=0]="Base",E[E.MidPoint=1]="MidPoint",E[E.ThreePoint=2]="ThreePoint",E[E.FourPoint=3]="FourPoint",E[E.Underline=4]="Underline",E[E.CircularCW=5]="CircularCW",E[E.CircularCCW=6]="CircularCCW"}(X||(X={})),function(E){E.Butt="Butt",E.Round="Round",E.Square="Square"}(h||(h={})),function(E){E.NoConstraint="NoConstraint",E.HalfPattern="HalfPattern",E.HalfGap="HalfGap",E.FullPattern="FullPattern",E.FullGap="FullGap",E.Custom="Custom"}(V||(V={})),function(E){E[E.None=-1]="None",E[E.Custom=0]="Custom",E[E.Circle=1]="Circle",E[E.OpenArrow=2]="OpenArrow",E[E.ClosedArrow=3]="ClosedArrow",E[E.Diamond=4]="Diamond"}(W||(W={})),function(E){E[E.ExtraLeading=0]="ExtraLeading",E[E.Multiple=1]="Multiple",E[E.Exact=2]="Exact"}(x||(x={})),function(E){E.Bevel="Bevel",E.Round="Round",E.Miter="Miter"}(y||(y={})),function(E){E[E.Default=0]="Default",E[E.String=1]="String",E[E.Numeric=2]="Numeric"}(v||(v={})),function(E){E[E.InsidePolygon=0]="InsidePolygon",E[E.PolygonCenter=1]="PolygonCenter",E[E.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(b||(b={})),function(E){E[E.Tint=0]="Tint",E[E.Replace=1]="Replace",E[E.Multiply=2]="Multiply"}(k||(k={})),function(E){E[E.ClipAtBoundary=0]="ClipAtBoundary",E[E.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",E[E.DoNotTouchBoundary=2]="DoNotTouchBoundary",E[E.DoNotClip=3]="DoNotClip"}(w||(w={})),function(E){E.NoConstraint="NoConstraint",E.WithMarkers="WithMarkers",E.WithFullGap="WithFullGap",E.WithHalfGap="WithHalfGap",E.Custom="Custom"}(K||(K={})),function(E){E.Fixed="Fixed",E.Random="Random",E.RandomFixedQuantity="RandomFixedQuantity"}(Z||(Z={})),function(E){E.LineMiddle="LineMiddle",E.LineBeginning="LineBeginning",E.LineEnd="LineEnd",E.SegmentMidpoint="SegmentMidpoint"}(Q||(Q={})),function(E){E.OnPolygon="OnPolygon",E.CenterOfMass="CenterOfMass",E.BoundingBoxCenter="BoundingBoxCenter"}(J||(J={})),function(E){E[E.Low=0]="Low",E[E.Medium=1]="Medium",E[E.High=2]="High"}(q||(q={})),function(E){E[E.MarkerCenter=0]="MarkerCenter",E[E.MarkerBounds=1]="MarkerBounds"}(z||(z={})),function(E){E[E.None=0]="None",E[E.PropUniform=1]="PropUniform",E[E.PropNonuniform=2]="PropNonuniform",E[E.DifUniform=3]="DifUniform",E[E.DifNonuniform=4]="DifNonuniform"}(j||(j={})),function(E){E.Tube="Tube",E.Strip="Strip",E.Wall="Wall"}($||($={})),function(E){E[E.Random=0]="Random",E[E.Increasing=1]="Increasing",E[E.Decreasing=2]="Decreasing",E[E.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(EE||(EE={})),function(E){E[E.Relative=0]="Relative",E[E.Absolute=1]="Absolute"}(_E||(_E={})),function(E){E[E.Normal=0]="Normal",E[E.LowerCase=1]="LowerCase",E[E.Allcaps=2]="Allcaps"}(RE||(RE={})),function(E){E[E.LTR=0]="LTR",E[E.RTL=1]="RTL"}(TE||(TE={})),function(E){E.Draft="Draft",E.Picture="Picture",E.Text="Text"}(eE||(eE={})),function(E){E[E.Top=0]="Top",E[E.Center=1]="Center",E[E.Baseline=2]="Baseline",E[E.Bottom=3]="Bottom"}(AE||(AE={})),function(E){E[E.Right=0]="Right",E[E.Upright=1]="Upright"}(nE||(nE={})),function(E){E[E.Small=0]="Small",E[E.Medium=1]="Medium",E[E.Large=2]="Large"}(NE||(NE={})),function(E){E[E.Calm=0]="Calm",E[E.Rippled=1]="Rippled",E[E.Slight=2]="Slight",E[E.Moderate=3]="Moderate"}(CE||(CE={}))},16534:(E,_,R)=>{R.d(_,{xl:()=>i,aK:()=>t,eF:()=>S,Uh:()=>M,_6:()=>a,Tz:()=>l,CQ:()=>u,oK:()=>B,e0:()=>U,SD:()=>G,XJ:()=>L,Ex:()=>N,uG:()=>I,xm:()=>n,m4:()=>O,MI:()=>D,AI:()=>T,Ip:()=>P,ru:()=>e,fL:()=>r,Iw:()=>C,tQ:()=>o,I_:()=>A});const T=1e-30,e=4294967295,A=512,n=29,N=24,C=8,S={metrics:{width:15,height:17,left:0,top:-7,advance:14}},i=1,t=2,O=2,I=1,o=1.05,r=2,L=8,P=500,D=10,M=2,u=0,l=1,B=4,U=8,a=4,G=1},35371:(E,_,R)=>{var T,e,A,n,N,C,S,i,t,O,I,o,r,L,P,D,M,u,l,B,U,a,G,c;R.d(_,{zi:()=>A,db:()=>n,w0:()=>N,VY:()=>c,wb:()=>t,q_:()=>f,Wf:()=>S,g:()=>i,Lu:()=>F,OU:()=>a,LR:()=>C,qi:()=>B,VI:()=>L,Br:()=>D,MX:()=>e,Tg:()=>M,_g:()=>G,lP:()=>P,xS:()=>O,Lm:()=>U,cw:()=>I,No:()=>r,e8:()=>o,l1:()=>u}),function(E){E[E.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",E[E.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",E[E.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(T||(T={})),function(E){E[E.POINTS=0]="POINTS",E[E.LINES=1]="LINES",E[E.LINE_LOOP=2]="LINE_LOOP",E[E.LINE_STRIP=3]="LINE_STRIP",E[E.TRIANGLES=4]="TRIANGLES",E[E.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",E[E.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(e||(e={})),function(E){E[E.ZERO=0]="ZERO",E[E.ONE=1]="ONE",E[E.SRC_COLOR=768]="SRC_COLOR",E[E.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",E[E.SRC_ALPHA=770]="SRC_ALPHA",E[E.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",E[E.DST_ALPHA=772]="DST_ALPHA",E[E.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",E[E.DST_COLOR=774]="DST_COLOR",E[E.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",E[E.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",E[E.CONSTANT_COLOR=32769]="CONSTANT_COLOR",E[E.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",E[E.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",E[E.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(A||(A={})),function(E){E[E.ADD=32774]="ADD",E[E.SUBTRACT=32778]="SUBTRACT",E[E.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(n||(n={})),function(E){E[E.ARRAY_BUFFER=34962]="ARRAY_BUFFER",E[E.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",E[E.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",E[E.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",E[E.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",E[E.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",E[E.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(N||(N={})),function(E){E[E.FRONT=1028]="FRONT",E[E.BACK=1029]="BACK",E[E.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(C||(C={})),function(E){E[E.CW=2304]="CW",E[E.CCW=2305]="CCW"}(S||(S={})),function(E){E[E.BYTE=5120]="BYTE",E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.SHORT=5122]="SHORT",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.INT=5124]="INT",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.FLOAT=5126]="FLOAT"}(i||(i={})),function(E){E[E.NEVER=512]="NEVER",E[E.LESS=513]="LESS",E[E.EQUAL=514]="EQUAL",E[E.LEQUAL=515]="LEQUAL",E[E.GREATER=516]="GREATER",E[E.NOTEQUAL=517]="NOTEQUAL",E[E.GEQUAL=518]="GEQUAL",E[E.ALWAYS=519]="ALWAYS"}(t||(t={})),function(E){E[E.ZERO=0]="ZERO",E[E.KEEP=7680]="KEEP",E[E.REPLACE=7681]="REPLACE",E[E.INCR=7682]="INCR",E[E.DECR=7683]="DECR",E[E.INVERT=5386]="INVERT",E[E.INCR_WRAP=34055]="INCR_WRAP",E[E.DECR_WRAP=34056]="DECR_WRAP"}(O||(O={})),function(E){E[E.NEAREST=9728]="NEAREST",E[E.LINEAR=9729]="LINEAR",E[E.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",E[E.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",E[E.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",E[E.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(I||(I={})),function(E){E[E.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",E[E.REPEAT=10497]="REPEAT",E[E.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(o||(o={})),function(E){E[E.TEXTURE_2D=3553]="TEXTURE_2D",E[E.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",E[E.TEXTURE_3D=32879]="TEXTURE_3D",E[E.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",E[E.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",E[E.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",E[E.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",E[E.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(r||(r={})),function(E){E[E.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E[E.ALPHA=6406]="ALPHA",E[E.RGB=6407]="RGB",E[E.RGBA=6408]="RGBA",E[E.LUMINANCE=6409]="LUMINANCE",E[E.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",E[E.RED=6403]="RED",E[E.RG=33319]="RG",E[E.RED_INTEGER=36244]="RED_INTEGER",E[E.RG_INTEGER=33320]="RG_INTEGER",E[E.RGB_INTEGER=36248]="RGB_INTEGER",E[E.RGBA_INTEGER=36249]="RGBA_INTEGER"}(L||(L={})),function(E){E[E.RGBA4=32854]="RGBA4",E[E.R16F=33325]="R16F",E[E.RG16F=33327]="RG16F",E[E.RGB32F=34837]="RGB32F",E[E.RGBA16F=34842]="RGBA16F",E[E.R32F=33326]="R32F",E[E.RG32F=33328]="RG32F",E[E.RGBA32F=34836]="RGBA32F",E[E.R11F_G11F_B10F=35898]="R11F_G11F_B10F",E[E.RGB8=32849]="RGB8",E[E.RGBA8=32856]="RGBA8",E[E.RGB5_A1=32855]="RGB5_A1",E[E.R8=33321]="R8",E[E.RG8=33323]="RG8",E[E.R8I=33329]="R8I",E[E.R8UI=33330]="R8UI",E[E.R16I=33331]="R16I",E[E.R16UI=33332]="R16UI",E[E.R32I=33333]="R32I",E[E.R32UI=33334]="R32UI",E[E.RG8I=33335]="RG8I",E[E.RG8UI=33336]="RG8UI",E[E.RG16I=33337]="RG16I",E[E.RG16UI=33338]="RG16UI",E[E.RG32I=33339]="RG32I",E[E.RG32UI=33340]="RG32UI",E[E.RGB16F=34843]="RGB16F",E[E.RGB9_E5=35901]="RGB9_E5",E[E.SRGB8=35905]="SRGB8",E[E.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",E[E.RGB565=36194]="RGB565",E[E.RGBA32UI=36208]="RGBA32UI",E[E.RGB32UI=36209]="RGB32UI",E[E.RGBA16UI=36214]="RGBA16UI",E[E.RGB16UI=36215]="RGB16UI",E[E.RGBA8UI=36220]="RGBA8UI",E[E.RGB8UI=36221]="RGB8UI",E[E.RGBA32I=36226]="RGBA32I",E[E.RGB32I=36227]="RGB32I",E[E.RGBA16I=36232]="RGBA16I",E[E.RGB16I=36233]="RGB16I",E[E.RGBA8I=36238]="RGBA8I",E[E.RGB8I=36239]="RGB8I",E[E.R8_SNORM=36756]="R8_SNORM",E[E.RG8_SNORM=36757]="RG8_SNORM",E[E.RGB8_SNORM=36758]="RGB8_SNORM",E[E.RGBA8_SNORM=36759]="RGBA8_SNORM",E[E.RGB10_A2=32857]="RGB10_A2",E[E.RGB10_A2UI=36975]="RGB10_A2UI"}(P||(P={})),function(E){E[E.FLOAT=5126]="FLOAT",E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",E[E.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",E[E.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",E[E.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",E[E.BYTE=5120]="BYTE",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.SHORT=5122]="SHORT",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.INT=5124]="INT",E[E.HALF_FLOAT=5131]="HALF_FLOAT",E[E.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",E[E.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",E[E.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",E[E.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(D||(D={})),function(E){E[E.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",E[E.STENCIL_INDEX8=36168]="STENCIL_INDEX8",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E[E.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",E[E.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",E[E.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",E[E.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(M||(M={})),function(E){E[E.STATIC_DRAW=35044]="STATIC_DRAW",E[E.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",E[E.STREAM_DRAW=35040]="STREAM_DRAW",E[E.STATIC_READ=35045]="STATIC_READ",E[E.DYNAMIC_READ=35049]="DYNAMIC_READ",E[E.STREAM_READ=35041]="STREAM_READ",E[E.STATIC_COPY=35046]="STATIC_COPY",E[E.DYNAMIC_COPY=35050]="DYNAMIC_COPY",E[E.STREAM_COPY=35042]="STREAM_COPY"}(u||(u={})),function(E){E[E.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",E[E.VERTEX_SHADER=35633]="VERTEX_SHADER"}(l||(l={})),function(E){E[E.FRAMEBUFFER=36160]="FRAMEBUFFER",E[E.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",E[E.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(B||(B={})),function(E){E[E.TEXTURE=0]="TEXTURE",E[E.RENDER_BUFFER=1]="RENDER_BUFFER",E[E.CUBEMAP=2]="CUBEMAP"}(U||(U={})),function(E){E[E.NONE=0]="NONE",E[E.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",E[E.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",E[E.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",E[E.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(a||(a={})),function(E){E[E.Texture=0]="Texture",E[E.Buffer=1]="Buffer",E[E.VAO=2]="VAO",E[E.Shader=3]="Shader",E[E.Program=4]="Program",E[E.Framebuffer=5]="Framebuffer",E[E.Renderbuffer=6]="Renderbuffer",E[E.COUNT=7]="COUNT"}(G||(G={})),function(E){E[E.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",E[E.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",E[E.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",E[E.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",E[E.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",E[E.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",E[E.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",E[E.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",E[E.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",E[E.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",E[E.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",E[E.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",E[E.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",E[E.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",E[E.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",E[E.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(c||(c={}));const F=33306;var f,d,s,H,p,g,m;!function(E){E[E.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",E[E.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",E[E.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",E[E.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",E[E.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",E[E.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",E[E.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",E[E.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",E[E.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",E[E.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",E[E.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(f||(f={})),function(E){E[E.FLOAT=5126]="FLOAT",E[E.FLOAT_VEC2=35664]="FLOAT_VEC2",E[E.FLOAT_VEC3=35665]="FLOAT_VEC3",E[E.FLOAT_VEC4=35666]="FLOAT_VEC4",E[E.INT=5124]="INT",E[E.INT_VEC2=35667]="INT_VEC2",E[E.INT_VEC3=35668]="INT_VEC3",E[E.INT_VEC4=35669]="INT_VEC4",E[E.BOOL=35670]="BOOL",E[E.BOOL_VEC2=35671]="BOOL_VEC2",E[E.BOOL_VEC3=35672]="BOOL_VEC3",E[E.BOOL_VEC4=35673]="BOOL_VEC4",E[E.FLOAT_MAT2=35674]="FLOAT_MAT2",E[E.FLOAT_MAT3=35675]="FLOAT_MAT3",E[E.FLOAT_MAT4=35676]="FLOAT_MAT4",E[E.SAMPLER_2D=35678]="SAMPLER_2D",E[E.SAMPLER_CUBE=35680]="SAMPLER_CUBE",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",E[E.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",E[E.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",E[E.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",E[E.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",E[E.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",E[E.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",E[E.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",E[E.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",E[E.SAMPLER_3D=35679]="SAMPLER_3D",E[E.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",E[E.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",E[E.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",E[E.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",E[E.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",E[E.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",E[E.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",E[E.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",E[E.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",E[E.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",E[E.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",E[E.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(d||(d={})),function(E){E[E.OBJECT_TYPE=37138]="OBJECT_TYPE",E[E.SYNC_CONDITION=37139]="SYNC_CONDITION",E[E.SYNC_STATUS=37140]="SYNC_STATUS",E[E.SYNC_FLAGS=37141]="SYNC_FLAGS"}(s||(s={})),function(E){E[E.UNSIGNALED=37144]="UNSIGNALED",E[E.SIGNALED=37145]="SIGNALED"}(H||(H={})),function(E){E[E.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",E[E.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",E[E.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",E[E.WAIT_FAILED=37149]="WAIT_FAILED"}(p||(p={})),function(E){E[E.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(g||(g={})),function(E){E[E.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(m||(m={}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>E});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(95330),l=n(6570),c=n(9361),u=n(8667),h=n(65091),f=n(13473),d=n(17332),m=n(58901),g=n(33955),p=n(67900);function w(e){return 0===r.i8.indexOf("4.")?d.Z.fromExtent(e):new d.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function y(e){if((0,s.p)(e,2,2),e[0]instanceof c.Z&&e[1]instanceof c.Z);else if(e[0]instanceof c.Z&&null===e[1]);else if(e[1]instanceof c.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}function b(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return(0,a.DB)(0);let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,p.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.E)(e.zmax,0)*n-(0,s.E)(e.zmin,0)*n));const o=new m.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,u.sz)(o,t)}function E(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null===n[0]||null===n[1]||(0,u.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null!==n[1]&&(0,u.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof c.Z&&n[1]instanceof c.Z?(0,u.fS)(n[0],n[1]):!(!(0,s.n)(n[0])||!(0,s.n)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,3,3),n[0]instanceof c.Z&&n[1]instanceof c.Z)return(0,u.LV)(n[0],n[1],(0,s.d)(n[2]));if(n[0]instanceof c.Z&&null===n[1])return!1;if(n[1]instanceof c.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null===n[0]||null===n[1]?null:(0,u.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.K)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.a)(r[0])){const e=(0,s.K)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof c.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.b)(r[0])){if(r[0]instanceof c.Z)return(0,s.r)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.K)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof c.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof c.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,u.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,u.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return y(n=(0,s.K)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,u.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,2),!(n[1]instanceof l.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,u.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,2),!(n[1]instanceof m.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,u.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumArea((0,o.EI)((0,s.E)(r[1],-1)),!1,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.M)(r[0],t.spatialReference);return null===e?0:(0,u.CJ)(e,(0,o.EI)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.CJ)(r[0],(0,o.EI)((0,s.E)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumArea((0,o.EI)((0,s.E)(r[1],-1)),!0,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.M)(r[0],t.spatialReference);return null===e?0:(0,u.Y4)(e,(0,o.EI)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.Y4)(r[0],(0,o.EI)((0,s.E)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumLength((0,o.Lz)((0,s.E)(r[1],-1)),!1,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.L)(r[0],t.spatialReference);return null===e?0:(0,u.sz)(e,(0,o.Lz)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.sz)(r[0],(0,o.Lz)((0,s.E)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.L)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?b(e,(0,o.Lz)((0,s.E)(r[1],-1))):(0,u.sz)(e,(0,o.Lz)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?b(r[0],(0,o.Lz)((0,s.E)(r[1],-1))):(0,u.sz)(r[0],(0,o.Lz)((0,s.E)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.K)(r))[0])return 0;if((0,s.o)(r[0]))return r[0].sumLength((0,o.Lz)((0,s.E)(r[1],-1)),!0,t.abortSignal).then((e=>{if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}));if((0,s.a)(r[0])||(0,s.b)(r[0])){const e=(0,s.L)(r[0],t.spatialReference);return null===e?0:(0,u.kQ)(e,(0,o.Lz)((0,s.E)(r[1],-1)))}if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.kQ)(r[0],(0,o.Lz)((0,s.E)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.K)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.a)(r[0])||(0,s.b)(r[0]))&&(i=(0,s.O)(r[0],t.spatialReference));let a=r[1];if(((0,s.a)(r[1])||(0,s.b)(r[1]))&&(a=(0,s.O)(r[1],t.spatialReference)),!(i instanceof c.Z))throw new Error("Illegal Argument");if(!(a instanceof c.Z))throw new Error("Illegal Argument");return(0,u.TE)(i,a,(0,o.Lz)((0,s.E)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.K)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof f.Z))throw new Error("Illegal Argument");if(!(i instanceof f.Z))throw new Error("Illegal Argument");const a=new m.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,u.kQ)(a,(0,o.Lz)((0,s.E)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof d.Z||n[0]instanceof m.Z?(0,u.Cz)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]instanceof l.Z?(0,u.Cz)(w(n[0]),r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof d.Z||n[0]instanceof m.Z?(0,u.j2)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]instanceof l.Z?(0,u.j2)(w(n[0]),r,(0,o.Lz)((0,s.E)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,u.D$)(n[0],r,(0,s.y)((0,s.E)(n[2],!0)),(0,o.Lz)((0,s.E)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,u.f3)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,u.rd)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof d.Z||n[0]instanceof m.Z))throw new Error("Illegal Argument");const r=(0,s.t)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.t)((0,s.E)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.t)((0,s.E)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,u.cv)(n[0],r,(0,o.Lz)((0,s.E)(n[2],-1)),(0,s.d)((0,s.E)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.K)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof c.Z))throw new Error("Illegal Argument");r instanceof l.Z&&(r=d.Z.fromExtent(r));const o=(0,s.t)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.E)(n[2],null);if(null===i)return(0,u.U1)(r,o);if(i instanceof f.Z)return(0,u.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.K)(r),(0,s.p)(r,1,1),null===r[0])return null;let a=r[0];if(((0,s.a)(r[0])||(0,s.b)(r[0]))&&(a=(0,s.O)(r[0],t.spatialReference)),null===a)return null;if(!(a instanceof c.Z))throw new Error("Illegal Argument");return a instanceof f.Z?(0,s.r)((0,o.r1)(r[0]),t.spatialReference):a instanceof d.Z?a.centroid:a instanceof m.Z?(0,i.s9)(a):a instanceof h.Z?(0,i.Ay)(a):a instanceof l.Z?a.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.K)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof c.Z))throw new Error("Illegal Argument");return r[0]instanceof f.Z||r[0]instanceof l.Z?[(0,s.r)((0,o.r1)(r[0]),t.spatialReference)]:(0,u.og)(r[0]).then((e=>{if(e instanceof d.Z){const t=[],n=[];for(let r=0;r<e.rings.length;r++)if(e.isClockwise(e.rings[r])){const n=(0,g.im)({rings:[e.rings[r]],hasZ:!0===e.hasZ,hazM:!0===e.hasM,spatialReference:e.spatialReference.toJSON()});t.push(n)}else n.push({ring:e.rings[r],pt:e.getPoint(r,0)});for(let e=0;e<n.length;e++)for(let r=0;r<t.length;r++)if(t[r].contains(n[e].pt)){t[r].addRing(n[e].ring);break}return t}if(e instanceof m.Z){const t=[];for(let n=0;n<e.paths.length;n++){const r=(0,g.im)({paths:[e.paths[n]],hasZ:!0===e.hasZ,hazM:!0===e.hasM,spatialReference:e.spatialReference.toJSON()});t.push(r)}return t}if(r[0]instanceof h.Z){const e=(0,s.r)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.K)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof c.Z))throw new Error("Illegal Argument");return(0,u.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},80903:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(50758),o=n(92604),s=n(95330),i=n(25045);const a=o.Z.getLogger("esri.core.workers.Connection");class l{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const a=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new i.default(e,t),a(n),this._clients[o])),(()=>(a(r),null))):(this._clients[o]=new i.default(l,t),this._clientPromises[o]=Promise.resolve(this._clients[o]),a(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r.invoke(e,t,n)))}return r}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const n=this._clients[t];if(n){if(!n.isBusy())return Promise.resolve(n)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,n){let r=null;return Array.isArray(n)?(a.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((n=>n.invoke(e,t,r)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{t[r]=o.openPort(),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),l=n(94362),c=n(17202);const u={statsWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(966)]).then(n.bind(n,27793)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(8936)]).then(n.bind(n,18936)),ElevationSamplerWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(4547),n.e(2781),n.e(6481),n.e(6459),n.e(3553)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4588),n.e(4547),n.e(1534),n.e(3485),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(5404)]).then(n.bind(n,2255)),GeoJSONSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(6348),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(6348),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(8961),n.e(147)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(5638),n.e(4588),n.e(4547),n.e(1534),n.e(3485),n.e(3578),n.e(8961),n.e(7054),n.e(4325),n.e(2730),n.e(7783)]).then(n.bind(n,97783)),PointCloudWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(4547),n.e(9294),n.e(9474)]).then(n.bind(n,16583)),RasterWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(4547),n.e(176),n.e(2398),n.e(5340)]).then(n.bind(n,61576)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(2785),n.e(6570),n.e(9928),n.e(2303),n.e(7668),n.e(4547),n.e(1534),n.e(3578),n.e(8961),n.e(7054),n.e(2781),n.e(6348),n.e(4556),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(2303),n.e(4325),n.e(1785),n.e(6810),n.e(9872)]).then(n.bind(n,56456))},{CLOSE:h,ABORT:f,INVOKE:d,RESPONSE:m,OPEN_PORT:g,ON:p}=l.Cs;class w{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,l.jt)();return new Promise(((n,o)=>{const l=(0,a.$F)(r,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:f,jobId:i}),o((0,a.zE)()))})),c={resolve:n,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(i,c),this._post({type:d,jobId:i,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:l.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case m:this._onResponseMessage(t);break;case d:this._invokeQueue.push(t);break;case f:this._onAbortMessage(t);break;case h:this._onCloseMessage();break;case g:this._onOpenPortMessage(t);break;case p:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let c,u=this._client,h=u[t];try{if(!h&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],h=u[e[t+1]]}if("function"!=typeof h)throw new TypeError(`${t} is not a function`);c=h.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:m,jobId:n,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(n,{controller:s,promise:c}),c.then((e=>{i.has(n)&&(i.delete(n),this._post({type:m,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:m,jobId:n,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:m,jobId:n},c)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:n,error:r,data:s}=e,i=this._outJobs;if(!i.has(n))return;const a=i.get(n);i.delete(n),null==(t=a.abortHandle)||t.remove(),r?a.reject(o.Z.fromJSON(JSON.parse(r))):a.resolve(s)}_post(e,t,n){return(0,l.oi)(this._port,e,t,n)}}y.kernelInfo={revision:c.$,version:r.i8,buildDate:c.r},y.clients=new Map},94362:(e,t,n)=>{n.d(t,{Cs:()=>r,jt:()=>a,oi:()=>c,QM:()=>u,AB:()=>l});var r,o,s=n(80442);(o=r||(r={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,o){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(s=h(o),t.data=n):(s=h(n.transferList),t.data=n.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},78346:(e,t,n)=>{n.d(t,{bA:()=>F});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),c=n(92604),u=n(94362),h=n(99880),f=n(68773),d=(n(2587),n(17452));const m={};function g(e){var t;const n={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(n.async=!0),e.hasOwnProperty("isDebug")||(n.isDebug=!1),e.baseUrl||(n.baseUrl=m.baseUrl),null==(t=m.packages)||t.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(n.packages,e)})),n}var p=n(41213);class w{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class y{constructor(){this._dispatcher=new w,this._workerPostMessage({type:u.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,p.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,p.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,u.QM)(e);if(t&&t.type===u.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:u.Cs.OPENED,jobId:n,data:o})}}}var b=n(70171),E=n(17202);const k=c.Z.getLogger("esri.core.workers"),{HANDSHAKE:_}=u.Cs;let v,A;const O="Failed to create Worker. Fallback to execute module in main thread";async function P(e){return new Promise((t=>{function n(o){const s=(0,u.QM)(o);s&&s.type===_&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),k.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new y).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let L=0;const S=c.Z.getLogger("esri.core.workers"),{ABORT:Z,INVOKE:I,OPEN:M,OPENED:C,RESPONSE:N}=u.Cs;class T{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),S.error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return P(new y);if(!v&&!A)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=f.Z.default){const t={...f.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(f.Z));e.assetsPath=(0,d.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,d.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,d.hF)(e.workers.workerPath):e.workers.workerPath=(0,d.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=f.Z.workers.loaderConfig,n=g({baseUrl:null==t?void 0:t.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);v=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){A=e||{}}let e;if(v)try{e=new Worker(v,{name:"esri-worker-"+L++})}catch(t){k.warn(O,A),e=new y}else k.warn(O,A),e=new y;return P(e)}();return new T(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,u.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:Z,jobId:r})}))};this._outJobs.set(r,i),this._post({type:M,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,u.QM)(e);if(t)switch(t.type){case C:this._onOpenedMessage(t);break;case N:this._onResponseMessage(t);break;case Z:this._onAbortMessage(t);break;case I:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,c=l.Nv[t];let h;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);h=c.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:N,jobId:n,error:(0,u.AB)(e)})}(0,s.y8)(h)?(a.set(n,{controller:i,promise:h}),h.then((e=>{a.has(n)&&(a.delete(n),this._post({type:N,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:N,jobId:n,error:(0,u.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:N,jobId:n},h)}_onOpenedMessage(e){var t;const{jobId:n,data:r}=e,o=this._outJobs.get(n);o&&(this._outJobs.delete(n),null==(t=o.abortHandle)||t.remove(),o.resolve(r))}_onResponseMessage(e){var t;const{jobId:n,error:o,data:s}=e,i=this._outJobs.get(n);i&&(this._outJobs.delete(n),null==(t=i.abortHandle)||t.remove(),o?i.reject(r.Z.fromJSON(JSON.parse(o))):i.resolve(s))}_post(e,t,n){return(0,u.oi)(this.worker,e,t,n)}}let R=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;R||(R=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let x=0;const D=[];async function j(e,t){const n=new i.Z;return await n.open(e,t),n}async function F(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return j([a.default.connect(n)],{...t,client:r})}if(await async function(){if(K)return K;q=new AbortController;const e=[];for(let t=0;t<R;t++){const n=T.create(t).then((e=>(D[t]=e,e)));e.push(n)}return K=Promise.all(e),K}(),(0,s.k_)(t.signal),"dedicated"===n){const n=x++%R;return j([await D[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,R);if(n<R){const r=new Array(n);for(let o=0;o<n;++o){const n=x++%R;r[o]=D[n].open(e,t)}return j(r,t)}}return j(D.map((n=>n.open(e,t))),t)}let q,K=null},8667:(e,t,n)=>{n.d(t,{f3:()=>Z,oq:()=>u,r3:()=>f,jU:()=>d,z7:()=>h,Cz:()=>N,e5:()=>A,ED:()=>b,TE:()=>m,fS:()=>g,D$:()=>C,Y4:()=>D,rd:()=>I,j2:()=>T,kQ:()=>j,wf:()=>P,kK:()=>p,Gg:()=>_,cv:()=>S,Nm:()=>E,CJ:()=>R,sz:()=>x,LV:()=>k,U1:()=>M,og:()=>v,Sp:()=>O,W4:()=>w,G0:()=>L,uh:()=>y}),n(66577);var r=n(78346),o=(n(13473),n(33955));function s(e){var t;return Array.isArray(e)?null==(t=e[0])?void 0:t.spatialReference:null==e?void 0:e.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function u(e,t){return a(await c("clip",[s(e),e,t]))}async function h(e,t){return a(await c("cut",[s(e),e,t]))}function f(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function p(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function y(e,t){return c("within",[s(e),e,t])}function b(e,t){return c("disjoint",[s(e),e,t])}function E(e,t){return c("overlaps",[s(e),e,t])}function k(e,t,n){return c("relate",[s(e),e,t,n])}function _(e){return c("isSimple",[s(e),e])}async function v(e){return a(await c("simplify",[s(e),e]))}async function A(e,t){return a(await c("difference",[s(e),e,t]))}async function O(e,t){return a(await c("symmetricDifference",[s(e),e,t]))}async function P(e,t){return a(await c("intersect",[s(e),e,t]))}async function L(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await c("offset",[s(e),e,t,n,r,o,i]))}async function Z(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await c("buffer",o))}async function I(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await c("geodesicBuffer",l))}async function M(e,t,n){var r;if(null==e)throw new Error("Illegal Argument Exception");const o=e.spatialReference;n=null!=(r=n)?r:function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const s=e.constructor.fromJSON(await c("rotate",[o,e,t,n]));return s.spatialReference=o,s}async function C(e,t,n,r){return a(await c("generalize",[s(e),e,t,n,r]))}async function N(e,t,n){return a(await c("densify",[s(e),e,t,n]))}async function T(e,t,n,r=0){return a(await c("geodesicDensify",[s(e),e,t,n,r]))}function R(e,t){return c("planarArea",[s(e),e,t])}function x(e,t){return c("planarLength",[s(e),e,t])}function D(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function j(e,t,n){return c("geodesicLength",[s(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],u=(0,r.Su)(o),h=`${l}${c}.json`,f=u?`${l}${c}_${u}.json`:h;let d;try{d=await a(e(f))}catch(t){if(f===h)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(h))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...u},"long-month-day-year-long-time-24":{...i,...u,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...u},"day-short-month-year-long-time-24":{...a,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},f=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(f.apiValues,f.toJSON.bind(f),f.fromJSON.bind(f),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=h["short-date-short-time"];function p(e){return h[e]||null}function w(e,t){return function(e){const t=e||g;if(!m.has(t)){const e=(0,o.Kd)(),n=d[(0,o.Kd)()]||e;m.set(t,new Intl.DateTimeFormat(n,t))}return m.get(t)}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=h["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>f});var r=n(20102),o=n(95330),s=n(70171);const i=/^([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 c=[],u=new Map;function h(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function f(e){return c.includes(e)||(h(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),h(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return await p.add(n),n}function m(e){if(!i.test(e))return null;const[,t,n]=i.exec(e),r=t+(n?"-"+n.toUpperCase():"");return l(r)?r:l(t)?t:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const p=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,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=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 c(e,t){return function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=n[s]||n[r];return l?u(a,l):s?h(a,s):f(a)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),f(e)}}function h(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.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,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):f(e)}}function f(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,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),h=n(71058),f=n(85958);async function d(e,t){var a;const f=(0,u.HK)(e),w=(0,u.jc)(e);w||f||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=v("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=v("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(b,y);if(null!=e)return{data:e,getHeader:E,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(f)throw v("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(f||w)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await Promise.all([n.e(102),n.e(9884)]).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const k=new AbortController;(0,c.fu)(t,(()=>k.abort()));const _={controller:k,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},L=await async function(e){var t,n;let s,i;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null,u=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(l=i,a=new FormData(l))),"string"==typeof i&&(u=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query&&n.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&r.Z.apiKey&&(0,h.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await A(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await A(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[s,i]=await P(e)}while(!await S(e,s,i))}catch(t){const n=v("request:server",t,e.params,s);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=i)&&null!=(n=t.user)&&n.username&&!(0,u.kl)(a)){const e=(0,u.P$)(a,!0);e&&g.trustedServers.push(e)}const l=e.credential;if(l&&o.id){const e=o.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,l.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:i,getHeader:s?e=>s.headers.get(e):E,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(_);return null==(a=b)||null==a.after||a.after(L),L}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],E=()=>null,k=Symbol();function _(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function v(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:E,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=k in t?t[k]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function A(){o.id||await Promise.all([n.e(280),n.e(2785),n.e(102),n.e(8536)]).then(n.bind(n,85976))}function O(e){return b.some((t=>t.test(e)))}async function P(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions,s=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let h=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;h="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const f=n.useProxy||!!(0,u.ed)(t);if(f){const e=(0,u.b7)(t);c=e.path,!h&&c.length+1+l>g.maxUrlLength&&(h=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(h||f)){if(h){if(l>g.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,s):(r.body=(0,u.B7)(s),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),f&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&p&&r.body instanceof FormData){const e=r.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include")}let f,m,w=0,y=!1;l>0&&(w=setTimeout((()=>{y=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)m=r,m.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!_(t)){if(f=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)m=f;else if("HEAD"!==r.method)if(f.ok){switch(a){case"array-buffer":m=await f.arrayBuffer();break;case"blob":case"image":m=await f.blob();break;default:m=await f.text()}if(w&&(clearTimeout(w),w=0),"json"===a||"xml"===a||"document"===a)if(m)switch(a){case"json":m=JSON.parse(m);break;case"xml":m=L(m,"application/xml");break;case"document":m=L(m,"text/html")}else m=null;if(m){if("array-buffer"===a||"blob"===a){const e=f.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&m["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===a&&m instanceof Blob&&(m=await Z(URL.createObjectURL(m),e,!0))}}else m=await f.text()}else m=await Z(t,e)}catch(r){if("AbortError"===r.name){if(y)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!f&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||_(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,u.P$)(t)})}finally{w&&clearTimeout(w)}return[f,m]}function L(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[k]=n,s;null!=n&&n.error&&(s=n.error),s&&(i=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const c=r.authMode;if(403===i&&(4===a||s.message&&s.message.toLowerCase().indexOf("ssl")>-1&&-1===s.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&-1!==w.indexOf(i)&&!O(e.params.url)&&(403!==i||-1===y.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await A();try{const t=await o.id.getCredential(e.params.url,{error:v("request:server",s,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function Z(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.src=e,(0,f.f)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(80442),o=n(70586),s=n(95330);function i(e,t,n=!1,i){return new Promise(((l,c)=>{if((0,s.Hc)(i))return void c(a());let u=()=>{d(),c(new Error(`Unable to load ${t}`))},h=()=>{const t=e;d(),l(t)},f=()=>{if(!e)return;const t=e;d(),t.src="",c(a())};const d=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",h)),u=null,h=null,e=null,(0,o.pC)(i)&&i.removeEventListener("abort",f),f=null,n&&URL.revokeObjectURL(t)};(0,o.pC)(i)&&i.addEventListener("abort",f),(0,r.Z)("esri-image-decode")?e.decode().then(h,u):(e.addEventListener("error",u),e.addEventListener("load",h))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4720],{38581:(e,t,a)=>{a.d(t,{aX:()=>Z});var r=a(68773),s=a(20102),n=a(92604),i=a(70586),o=a(17332),l=a(58901),u=a(73913),d=a(8744),p=a(40488),c=(a(66577),a(3172)),h=a(17452),f=a(33955);const y=n.Z.getLogger("esri.geometry.support.normalizeUtils");function m(e){return"polygon"===e[0].type}function g(e){return"polyline"===e[0].type}function w(e,t,a){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof o.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new s.Z(e)}const a=(0,u.x3)(e),r=[];for(const e of a){const a=[];r.push(a),a.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],n=e[r][1],i=e[r+1][0],o=e[r+1][1],l=Math.sqrt((i-s)*(i-s)+(o-n)*(o-n)),u=(o-n)/l,d=(i-s)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const r=e*t,i=d*r+s,o=u*r+n;a.push([i,o])}const e=(l+Math.floor(p-1)*t)/2,r=d*e+s,i=u*e+n;a.push([r,i])}a.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new o.Z({rings:r,spatialReference:e.spatialReference}):new l.Z({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.Sx)(t,!0)}return a&&(e=(0,u.Sy)(e,a)),e}function b(e,t,a){if(Array.isArray(e)){const r=e[0];if(r>t){const a=(0,u.XZ)(r,t);e[0]=r+a*(-2*t)}else if(r<a){const t=(0,u.XZ)(r,a);e[0]=r+t*(-2*a)}}else{const r=e.x;if(r>t){const a=(0,u.XZ)(r,t);e=e.clone().offset(a*(-2*t),0)}else if(r<a){const t=(0,u.XZ)(r,a);e=e.clone().offset(t*(-2*a),0)}}return e}function F(e,t){let a=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],n=t.geometries[r],i=(0,u.x3)(n);for(let e=0;e<i.length;e++){const t=i[e];t.some((a=>{if(a[0]<180)return!0;{let a=0;for(let e=0;e<t.length;e++){const r=t[e][0];a=r>a?r:a}a=Number(a.toFixed(9));const r=-360*(0,u.XZ)(a,180);for(let a=0;a<t.length;a++){const t=n.getPoint(e,a);n.setPoint(e,a,t.clone().offset(r,0))}return!0}}))}if(s===a){if(m(e))for(const t of(0,u.x3)(n))e[s]=e[s].addRing(t);else if(g(e))for(const t of(0,u.x3)(n))e[s]=e[s].addPath(t)}else a=s,e[s]=n}return e}async function Z(e,t,a){var s;if(!Array.isArray(e))return Z([e],t);const n=null!=(s=null==t?void 0:t.url)?s:r.Z.geometryServiceUrl;let y,m,g,v,A,R,S,I,x=0;const $=[],E=[];for(const t of e)if((0,i.Wi)(t))E.push(t);else if(y||(y=t.spatialReference,m=(0,d.C5)(y),g=y.isWebMercator,R=g?102100:4326,v=u.UZ[R].maxX,A=u.UZ[R].minX,S=u.UZ[R].plus180Line,I=u.UZ[R].minus180Line),m)if("mesh"===t.type)E.push(t);else if("point"===t.type)E.push(b(t.clone(),v,A));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>b(e,v,A))),E.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,m);E.push(e.rings?new o.Z(e):e)}else if(t.extent){const e=t.extent,a=(0,u.XZ)(e.xmin,A)*(2*v);let r=0===a?t.clone():(0,u.Sy)(t.clone(),a);e.offset(a,0),e.intersects(S)&&e.xmax!==v?(x=e.xmax>x?e.xmax:x,r=w(r,g),$.push(r),E.push("cut")):e.intersects(I)&&e.xmin!==A?(x=e.xmax*(2*v)>x?e.xmax*(2*v):x,r=w(r,g,360),$.push(r),E.push("cut")):E.push(r)}else E.push(t.clone());else E.push(t);let O=(0,u.XZ)(x,v),U=-90;const X=O,k=new l.Z;for(;O>0;){const e=360*O-180;k.addPath([[e,U],[e,-1*U]]),U*=-1,O--}if($.length>0&&X>0){const t=F($,await async function(e,t,a,r){const s="string"==typeof e?(0,h.mN)(e):e,n=t[0].spatialReference,i={...r,query:{...s.query,f:"json",sr:JSON.stringify(n),target:JSON.stringify({geometryType:(0,f.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(a)}},o=await(0,c.default)(s.path+"/cut",i),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,f.im)(e);return t.spatialReference=n,t}))}}(n,$,k,a)),r=[],s=[];for(let a=0;a<E.length;a++){const n=E[a];if("cut"!==n)s.push(n);else{const n=t.shift(),o=e[a];(0,i.pC)(o)&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(r.push(n),s.push("simplify")):s.push(g?(0,p.$)(n):n)}}if(!r.length)return s;const o=await async function(e,t,a){const r="string"==typeof e?(0,h.mN)(e):e,s=t[0].spatialReference,n=(0,f.Ji)(t[0]),i={...a,query:{...r.query,f:"json",sr:s.wkid?s.wkid:JSON.stringify(s),geometries:JSON.stringify((o=t,{geometryType:(0,f.Ji)(o[0]),geometries:o.map((e=>e.toJSON()))}))}};var o;return function(e,t,a){const r=(0,f.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=a,t}))}((await(0,c.default)(r.path+"/simplify",i)).data,n,s)}(n,r,a),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(g?(0,p.$)(o.shift()):o.shift())}return l}const L=[];for(let e=0;e<E.length;e++){const t=E[e];if("cut"!==t)L.push(t);else{const e=$.shift();L.push(!0===g?(0,p.$)(e):e)}}return Promise.resolve(L)}},73913:(e,t,a)=>{a.d(t,{UZ:()=>i,x3:()=>u,XZ:()=>o,Sy:()=>l});var r=a(58901),s=a(82971),n=a(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const a=u(e);for(const e of a)for(const a of e)a[0]+=t;return e}function u(e){return(0,n.oU)(e)?e.rings:e.paths}},14720:(e,t,a)=>{a.r(t),a.d(t,{applyEdits:()=>d});var r=a(1692),s=a(80539),n=a(20102),i=a(22974),o=a(70586),l=a(17452),u=a(38581);async function d(e,t,a,r={}){let s,n;const o={edits:a,result:new Promise(((e,t)=>{s=e,n=t}))};e.emit("apply-edits",o);try{var l;const{results:n,edits:o}=await p(e,t,a,r),u=e=>e.filter((e=>!e.error)).map(i.d9),d={edits:o,addedFeatures:u(n.addFeatureResults),updatedFeatures:u(n.updateFeatureResults),deletedFeatures:u(n.deleteFeatureResults),addedAttachments:u(n.addAttachmentResults),updatedAttachments:u(n.updateAttachmentResults),deletedAttachments:u(n.deleteAttachmentResults)};return null!=(l=n.editedFeatureResults)&&l.length&&(d.editedFeatures=n.editedFeatureResults),(d.addedFeatures.length||d.updatedFeatures.length||d.deletedFeatures.length||d.addedAttachments.length||d.updatedAttachments.length||d.deletedAttachments.length)&&e.emit("edits",d),s(d),n}catch(e){throw n(e),e}}async function p(e,t,a,r){if(await e.load(),!function(e){return e&&null!=e.applyEdits}(t))return Promise.reject(new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e}));if(!e.editingEnabled)throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,a){const r=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments);if(!t||!r&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!e.capabilities.data.isVersioned&&a&&a.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!e.capabilities.editing.supportsRollbackOnFailure&&a&&a.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!e.capabilities.editing.supportsGlobalId&&a&&a.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!e.capabilities.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if((!a||!a.globalIdUsed)&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const l={...a};if(null!=l.rollbackOnFailureEnabled||e.capabilities.editing.supportsRollbackOnFailure||(l.rollbackOnFailureEnabled=!0),!1===l.rollbackOnFailureEnabled&&"original-and-current-features"===l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!e.capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference&&l.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(l.returnServiceEditsInSourceSR&&"original-and-current-features"!==l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsOption' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const u={...t};if(u.addFeatures=t&&s.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():u.addFeatures||[],u.updateFeatures=t&&s.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():u.updateFeatures||[],u.deleteFeatures=t&&s.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():u.deleteFeatures||[],u.addFeatures.length&&!e.capabilities.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(u.updateFeatures.length&&!e.capabilities.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(u.deleteFeatures.length&&!e.capabilities.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");u.addAttachments=u.addAttachments||[],u.updateAttachments=u.updateAttachments||[],u.deleteAttachments=u.deleteAttachments||[],u.addFeatures=u.addFeatures.map(y),u.updateFeatures=u.updateFeatures.map(y);const d=a&&a.globalIdUsed;return u.addFeatures.forEach((t=>function(e,t,a){c(e,t,a)}(t,e,d))),u.updateFeatures.forEach((t=>function(e,t,a){if(c(e,t,a),"geometry"in e&&(0,o.pC)(e.geometry)&&!t.capabilities.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,d))),u.deleteFeatures.forEach((t=>function(e,t,a){c(e,t,a)}(t,e,d))),u.addAttachments.forEach((t=>h(t,e))),u.updateAttachments.forEach((t=>h(t,e))),{edits:await f(u),options:l}}(e,a,r);return i.addFeatures.length||i.updateFeatures.length||i.deleteFeatures.length||i.addAttachments.length||i.updateAttachments.length||i.deleteAttachments.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}function c(e,t,a){if(a){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&(0,o.pC)(e.geometry)){if(e.geometry.hasZ&&!1===t.capabilities.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function h(e,t){const{feature:a,attachment:r}=e;if(!a||"attributes"in a&&!a.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in a)&&!a.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!r.data&&!r.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(r.data instanceof File&&r.data.name||r.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities.editing.supportsUploadWithItemId&&r.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof r.data){const e=(0,l.sJ)(r.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function f(e){const t=e.addFeatures,a=e.updateFeatures,r=t.concat(a).map((e=>e.geometry)),s=await(0,u.aX)(r),n=t.length,i=a.length;return s.slice(0,n).forEach(((t,a)=>e.addFeatures[a].geometry=t)),s.slice(n,n+i).forEach(((t,a)=>e.updateFeatures[a].geometry=t)),e}function y(e){const t=new r.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8163],{95401:(t,e,n)=>{n.d(e,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function t(t,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:t.length,d=e(t,0,g,o,!0),x=[];if(!d||d.next===d.prev)return x;if(f&&(d=l(t,n,d,o)),t.length>80*o){i=a=t[0],s=c=t[1];for(var m=o;m<g;m+=o)(u=t[m])<i&&(i=u),(p=t[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(d,x,o,i,s,h),x}function e(t,e,n,r,o){var i,s;if(o===F(t,e,n,r)>0)for(i=e;i<n;i+=r)s=Z(i,t[i],t[i+1],s);else for(i=n-r;i>=e;i-=r)s=Z(i,t[i],t[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=e=o)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,p,h){if(t){!h&&p&&f(t,c,u,p);for(var g,d,x=t;t.prev!==t.next;)if(g=t.prev,d=t.next,p?i(t,c,u,p):o(t))e.push(g.i/l),e.push(t.i/l),e.push(d.i/l),_(t),t=d.next,x=d.next;else if((t=d)===x){h?1===h?r(t=s(n(t),e,l),e,l,c,u,p,2):2===h&&a(t,e,l,c,u,p):r(n(t),e,l,c,u,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(x(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(t,e,n,r){var o=t.prev,i=t,s=t.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,e,n,r),h=g(c,u,e,n,r),f=t.prevZ,d=t.nextZ;f&&f.z>=p&&d&&d.z<=h;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=p;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function s(t,e,r){var o=t;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(e.push(i.i/r),e.push(o.i/r),e.push(s.i/r),_(o),_(o.next),o=t=s),o=o.next}while(o!==t);return n(o)}function a(t,e,o,i,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=M(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,o,i,s,a),void r(u,e,o,i,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*i,s<a-1?r[s+1]*i:t.length,i,!1))===l.next&&(l.steiner=!0),u.push(d(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function p(t,e){var r=function(t,e){var n,r=e,o=t.x,i=t.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&x(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var o=M(r,t),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(e===r?i:e)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,n,r){var o=t;do{null===o.z&&(o.z=g(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,s,a,l,c=1;do{for(n=t,t=null,i=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function x(t,e,n,r,o,i,s,a){return(o-s)*(e-a)-(t-s)*(i-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var o=C(y(t,e,n)),i=C(y(t,e,r)),s=C(y(n,r,t)),a=C(y(n,r,e));return o!==i&&s!==a||!(0!==o||!b(t,n,e))||!(0!==i||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function C(t){return t>0?1:t<0?-1:0}function A(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function M(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(t,e,n,r){var o=new T(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(t,e,n,r){for(var o=0,i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}return t.deviation=function(t,e,n,r){var o=e&&e.length,i=o?e[0]*n:t.length,s=Math.abs(F(t,0,i,n));if(o)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(F(t,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((t[h]-t[g])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[g+1]-t[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var s=0;s<e;s++)n.vertices.push(t[o][i][s]);o>0&&(r+=t[o-1].length,n.holes.push(r))}return n},t},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(t,e,n)=>{n.d(e,{Z:()=>m});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const d=a.Z.getLogger("esri.geometry.support.MeshComponent");let x=r=class extends i.wq{constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(t){return(0,p.TJ)(r,t)}castFaces(t){return(0,g.XQ)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(t){return(0,p.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.Z:h.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],x.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],x.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],x.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],x.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],x.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],x.prototype,"trustSourceNormals",void 0),x=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshComponent")],x);const m=x},65542:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(81118);let p=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,a.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,a.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(t):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(t):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(81118);let p=r=class extends c.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,s.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,s.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(t):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(t):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(t):null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},81118:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),o=(n(80442),n(96674)),i=n(5600),s=(n(67676),n(75215)),a=n(71715),l=n(52011),c=n(30556),u=n(25929);n(22021);let p=null,h=!0;var f;const g=new WeakMap;let d=0,x=f=class extends o.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,u.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=o}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,u.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){null!=t?this._override("transparent",t):this._clearOverride("transparent")}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++d),e(g.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new f(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return function(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(h)try{return new ImageData(t,e,n)}catch(t){h=!1}const o=function(t,e,n){return n||(p||(p=document.createElement("canvas"),p.width=1,p.height=1),n=p),n.getContext("2d").createImageData(t,e)}(e,n,void 0);return o.data.set(t,0),o}(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new f({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new f({data:t}):(0,s.TJ)(f,t)}};(0,r._)([(0,i.Cb)({type:String,json:{write:u.w}})],x.prototype,"url",null),(0,r._)([(0,i.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,i.Cb)()],x.prototype,"data",null),(0,r._)([(0,c.c)("data")],x.prototype,"writeData",null),(0,r._)([(0,a.r)("data")],x.prototype,"readData",null),(0,r._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],x.prototype,"transparent",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],x.prototype,"wrap",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],x.prototype,"contentHash",null),x=f=(0,r._)([(0,l.j)("esri.geometry.support.MeshTexture")],x);const m=x},71630:(t,e,n)=>{n.d(e,{QL:()=>h,XQ:()=>g,ZP:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p=a.Z.getLogger("esri.geometry.support.MeshVertexAttributes");let h=r=class extends i.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},p)}castPosition(t){return t&&t instanceof Float32Array&&p.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},p)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},p)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},p)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},p)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}};function f(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function g(t,e,n,r,o){if(!t)return t;if(t instanceof e)return f(t,r,e,o);for(const i of n)if(t instanceof i)return f(new e(t),r,e,o);if(Array.isArray(t))return f(new e(t),r,e,o);{const r=n.map((t=>`'${t.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function d(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],h.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],h.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],h.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],h.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],h.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],h.prototype,"castTangent",null),h=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshVertexAttributes")],h);const x=h},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021);function o(t,e,n){var o;const c=t.byteLength/(4*e),u=new Uint32Array(t,0,c*e);let p=new Uint32Array(c);const h=null!=(o=null==n?void 0:n.minReduction)?o:0,f=(null==n?void 0:n.originalIndices)||null,g=f?f.length:0,d=(null==n?void 0:n.componentOffsets)||null;let x=0;if(d)for(let t=0;t<d.length-1;t++){const e=d[t+1]-d[t];e>x&&(x=e)}else x=c;const m=Math.floor(1.1*x)+1;(null==l||l.length<2*m)&&(l=new Uint32Array((0,r.Sf)(2*m)));for(let t=0;t<2*m;t++)l[t]=0;let y=0;const v=!!d&&!!f,w=v?g:c,b=v?new Uint32Array(g):null,C=1.96;let A=0!==h?Math.ceil(4*C*C/(h*h)*h*(1-h)):w,M=1,Z=d?d[1]:w;for(let t=0;t<w;t++){if(t===A){const e=1-y/t;if(e+C*Math.sqrt(e*(1-e)/t)<h)return null;A*=2}if(t===Z){for(let t=0;t<2*m;t++)l[t]=0;if(f)for(let t=d[M-1];t<d[M];t++)b[t]=p[f[t]];Z=d[++M]}const n=v?f[t]:t,r=n*e,o=a(u,r,e);let s=o%m,c=y;for(;0!==l[2*s+1];){if(l[2*s]===o){const t=l[2*s+1]-1;if(i(u,r,t*e,e)){c=p[t];break}}s++,s>=m&&(s-=m)}c===y&&(l[2*s]=o,l[2*s+1]=n+1,y++),p[n]=c}if(0!==h&&1-y/c<h)return null;if(v){for(let t=d[M-1];t<b.length;t++)b[t]=p[f[t]];p=b}const _=new Uint32Array(e*y);y=0;for(let t=0;t<w;t++)p[t]===y&&(s(u,(v?f[t]:t)*e,_,y*e,e),y++);if(f&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=p[f[e]];p=t}return{buffer:_.buffer,indices:p,uniqueCount:y}}function i(t,e,n,r){for(let o=0;o<r;o++)if(t[e+o]!==t[n+o])return!1;return!0}function s(t,e,n,r,o){for(let i=0;i<o;i++)n[r+i]=t[e+i]}function a(t,e,n){let r=0;for(let o=0;o<n;o++)r=t[e+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},38163:(t,e,n)=>{n.r(e),n.d(e,{meshFeatureSetFromJSON:()=>Et});var r,o,i=n(1692),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),d=n(17445),x=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(13473),b=n(17332),C=n(3709),A=n(62540),M=n(2674),Z=n(71630),_=n(95401),T=n(86662),F=n(47545);function R(t,e,n){const o=t.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let e=0;e<o;++e)p+=t[e].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=t[p],d=n===r.CCW_IS_HOLE&&I(g);if(d&&1!==o)i[l++]=g;else{let t=g.length;for(let e=0;e<l;++e)t+=i[e].length;const n={index:f,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=d?D(g,g.length-1,-1,h,f,g.length,e):D(g,0,1,h,f,g.length,e);for(let t=0;t<l;++t){const r=i[t];n.holeIndices[t]=f,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=D(r,0,1,h,f,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=i[t];n.length>0&&(a[u++]={index:f,count:n.length}),f=D(n,0,1,h,f,n.length,e)}return c<o&&(s.length=c),u<o&&(a.length=u),{position:h,polygons:s,outlines:a}}function D(t,e,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=t[e];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,e+=n}return o/3}function I(t){return!(0,T.bu)(t,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var L=n(44547),E=n(13442),O=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const S=(0,y.c)(),j=(0,y.c)();var z=n(17452);function N(t){const e=(0,z.Yd)(t.url);return n=>{var r;const o=(0,z.PF)(n,e,e),i=o?o.replace(/^ *\.\//,""):null;return null!=(r=t.files.get(i))?r:n}}async function U(t,e){return t instanceof Blob?W.fromBlob(t):"string"==typeof t?new W(t):Array.isArray(t)?async function(t,e){const n=new Map;let r=null;const o=await(0,g.WW)(t.map((async t=>({name:t.name,source:await U(t instanceof Blob?t:t.source,e)})))),i=[];for(const t of o)t&&((0,g.Hc)(e)?t.source.dispose():i.push(t));(0,g.k_)(e);for(const{name:t,source:e}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(t))&&(r=e.url),n.set(t,e.url),e.files&&e.files.forEach(((t,e)=>n.set(e,t)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new W(r,(()=>i.forEach((({source:t})=>t.dispose()))),n)}(t,e):async function(t,e){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),e),o="string"==typeof t.multipart[0]?await Promise.all(t.multipart.map((async t=>(await r(t,{responseType:"array-buffer"})).data))):t.multipart;return W.fromBlob(new Blob(o))}(t,e)}class W{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new W(e,(()=>URL.revokeObjectURL(e)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),q=n(56493);const Y=h.Z.getLogger("esri.geometry.support.meshUtils.offset");function X(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const K=(0,y.c)(),V=(0,H.c)(),J=(0,$.c)(),Q={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function tt(t,e,n){(function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5})(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];ot[0]=n[0],ot[4]=n[1],ot[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.position[e+n];(0,B.t)(rt,rt,ot);for(let n=0;n<3;n++)t.position[e+n]=rt[n]}if(n[0]!==n[1]||n[1]!==n[2]){ot[0]=1/n[0],ot[4]=1/n[1],ot[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.normal[e+n];(0,B.t)(rt,rt,ot),(0,B.n)(rt,rt);for(let n=0;n<3;n++)t.normal[e+n]=rt[n]}}}(t,n&&n.size);const{vertexAttributes:r,transform:o}=(0,O.w1)(t,e,n);return{vertexAttributes:new Z.ZP({...r,uv:t.uv}),transform:o,components:[new A.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const et={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},nt={south:0,east:1,north:2,west:3,up:4,down:5},rt=(0,y.c)(),ot=(0,$.c)();var it=n(52138);const st=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function at(t,e,n,r=y.Z){if(!(0,s.Wi)(t)){(0,it.d)(pt,(0,C.WH)(e),(0,C.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)lt[n]=t[e+n]-r[n];(0,B.m)(lt,lt,pt);for(let n=0;n<3;n++)t[e+n]=lt[n]+r[n]}}}const lt=(0,y.c)(),ct=(0,y.c)(),ut=(0,C.Ue)(),pt=(0,H.c)(),ht=(0,$.c)(),ft=(0,y.c)(),gt=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function dt(t,e,n=y.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)xt[e]=t[r+e]-n[e];(0,B.a)(xt,xt,e);for(let e=0;e<3;e++)t[r+e]=xt[e]+n[e]}}const xt=(0,y.c)(),mt=(0,y.c)(),yt=(0,y.c)();var vt;const wt=h.Z.getLogger("esri.geometry.Mesh");let bt=vt=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(t){super(t),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.QL,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,d.YP)((()=>{var t;return{vertexAttributes:this.vertexAttributes,components:null==(t=this.components)?void 0:t.map((t=>t.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null}}),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get boundingInfo(){const t=this.vertexAttributes.position,e=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e}),center:new w.Z({x:0,y:0,z:0,spatialReference:e})};const n=(0,s.pC)(this.transform)?this.transform.project(t,e):t;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,d=1/(g/3);let x=0;for(;x<g;){const t=n[x++],e=n[x++],s=n[x++];r=Math.min(r,t),o=Math.min(o,e),i=Math.min(i,s),l=Math.max(l,t),c=Math.max(c,e),u=Math.max(u,s),p+=d*t,h+=d*e,f+=d*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:e}),center:new w.Z({x:p,y:h,z:f,spatialReference:e})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const t=this.boundingInfo;return new w.Z({x:t.center.x,y:t.center.y,z:t.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this.boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this.boundingInfo.extent}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(t)),this.notifyChange("components")):wt.error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}wt.error("removeComponent()","Provided component is not part of the list of components")}else wt.error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,C.uT)(Ct.x,t,At),(0,C.uT)(Ct.y,e,Mt),(0,C.uT)(Ct.z,n,Zt),(0,C.qC)(At,Mt,At),(0,C.qC)(At,Zt,At),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&st.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(lt,n.x,n.y,n.z),o=(0,B.f)(lt,r,t.origin);t.applyLocalInverse(o,ct),t.rotation=(0,C.qC)(t.rotation,e,(0,C.Ue)()),t.applyLocalInverse(o,o),(0,B.f)(o,o,ct),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{var i;const r=null!=(i=null==n?void 0:n.origin)?i:t.origin;(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=ft;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,L.Bm)(o,i,pt,o),(0,k.f)(ht,pt);const f=ut;(0,B.t)((0,C.ZZ)(ut),(0,C.ZZ)(e),ht),f[3]=e[3],(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),at(u,f,3,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(at(p,f,3),(0,q.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(at(h,f,4),(0,q.M2)(h,a,u,r,c)),t.vertexAttributesChanged()}(t,e,r):function(t,e,n){const r=ft;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,st.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}at(t.vertexAttributes.position,e,3,r),at(t.vertexAttributes.normal,e,3),at(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,r)}}(this,At,r),this}offset(t,e,n,r){return this.loaded?(_t[0]=t,_t[1]=e,_t[2]=n,function(t,e,n){t.vertexAttributes&&t.vertexAttributes.position&&((0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&Y.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e){const n=t.origin;t.origin=(0,B.b)((0,y.c)(),n,e)}(t.transform,e)):(0,E.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,o=t.vertexAttributes.normal,i=t.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=t.extent.center,p=K;(0,L.Bm)(n,[u.x,u.y,u.z],V,(0,G.rS)(n)),(0,k.f)(J,V),(0,B.t)(p,e,J),(0,q.XO)(r,n,a),(0,s.pC)(o)&&(0,q.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,q.wi)(i,r,a,n,c),X(a,p),(0,q.To)(a,r,n),(0,s.pC)(o)&&(0,q.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,q.M2)(c,r,a,n,i),t.vertexAttributesChanged()}(t,e):function(t,e){X(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e))}(this,_t,r),this):(wt.error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&>.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(xt,n.x,n.y,n.z),o=(0,B.f)(xt,r,t.origin);t.applyLocalInverse(o,mt);const i=(0,B.a)((0,y.c)(),t.scale,e);t.scale=i,t.applyLocalInverse(o,o),(0,B.f)(o,o,mt),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{const r=(0,E.h)(t.spatialReference,n),o=n&&n.origin||t.origin;r?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=yt;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),dt(u,e,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,q.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,q.M2)(h,a,u,r,c),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=yt;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,gt.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}dt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,o)}}(this,t,e),this):(wt.error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){var r;if(!t.vertexAttributes||!t.vertexAttributes.position)return;const o=null!=(r=null==n?void 0:n.origin)?r:t.origin;(0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e,n){const r=e.x-n.x,o=e.y-n.y,i=e.hasZ&&n.hasZ?e.z-n.z:0,s=t.origin;t.origin=[s[0]+r,s[1]+o,s[2]+i]}(t.transform,e,o)):(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=(0,O.FF)(t.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,O.iv)(r,e,{geographic:!0});t.vertexAttributes.position=o,t.vertexAttributes.normal=i,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=j,o=S;if((0,L.KC)(e,o,t.spatialReference)){if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid})`)}(t,e,o)}(this,t,e),this):(wt.error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(t,e,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await U(e,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;t.vertexAttributes=l,t.components=c}(this,this.external.source,t)),Promise.resolve(this)}clone(){const t=this.components?new Map:null,e=this.components?new Map:null,n={components:this.components?this.components.map((n=>n.cloneWithDeduplication(t,e))):null,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new vt(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const{toBinaryGLTF:e}=await n.e(7277).then(n.bind(n,7277));return e(this,t)}static createBox(t,e){if(!(t instanceof w.Z))return wt.error(".createBox()","expected location to be a Point instance"),null;const n=new vt(tt(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=et,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<t.length;r++){const h=t[r],f=l/3;for(const t of e)a[p++]=f+t;const g=h.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==h.axis[t]?(o[l++]=.5*h.axis[t],i[c++]=h.axis[t]):(o[l++]=.5*e[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,o=nt[e],i=6*o,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let t=0;t<r.length;t++)t>=i&&t<i+6?a[c++]=r[t]:l[u++]=r[t];if((0,s.pC)(t.vertexAttributes.uv)){const e=new Float32Array(t.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);rt[2]=f;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const f=r/d*2*Math.PI;rt[0]=-Math.sin(f)*h,rt[1]=Math.cos(f)*h;for(let t=0;t<3;t++)o[l]=.5*rt[t],i[l]=rt[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==t&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,p=0;for(let t=0;t<=5;t++){const n=0===t||5===t,h=t<=1||t>=4,f=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const x=d/g*2*Math.PI,m=n?0:.5;rt[0]=m*Math.sin(x),rt[1]=m*-Math.cos(x),rt[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=rt[e],o[l++]=h?2===e?t<=1?1:-1:0:2===e?0:rt[e]/m;i[c++]=(d+(n?.5:0))/e,i[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,f||0===t||d===e||(5!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-e),1!==t&&(s[u++]=p,s[u++]=p-e,s[u++]=p-e-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){var n;if(!(t instanceof w.Z))return wt.error(".createPlane()","expected location to be a Point instance"),null;const r=null!=(n=null==e?void 0:e.facing)?n:"up",o=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(r,null==e?void 0:e.size);return new vt(tt(function(t){const e=Q.facingAxisOrderSwap[t],n=Q.position,r=Q.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[t+c]*u,i[s]=r[t+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(Q.uv),faces:new Uint32Array(Q.faces)}}(r),t,{...e,size:o}))}static createFromPolygon(t,e){if(!(t instanceof b.Z))return wt.error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=R(t.rings,t.hasZ,r.CCW_IS_HOLE),n=[];let o=0,i=0;for(const t of e.polygons){const r=t.count,s=t.index,a=new Float64Array(e.position.buffer,3*s*e.position.BYTES_PER_ELEMENT,3*r),l=t.holeIndices.map((t=>t-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(t,e,n){if(1===t.length)return t[0];const r=new Float64Array(e),o=new Uint32Array(n);let i=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[i++]=e.position[t];for(let t=0;t<e.faces.length;t++)o[s++]=e.faces[t]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(t);return new vt({vertexAttributes:new Z.QL({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:e&&e.material||null})],spatialReference:t.spatialReference})}static async createFromGLTF(t,e,r){if(!(t instanceof w.Z))throw wt.error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new vt(await o(t,e,r))}static createWithExternalSource(t,e,n){var r,o,i;const s=null!=(r=null==n?void 0:n.extent)?r:null,a=null!=(o=null==n?void 0:n.transform.clone())?o:new M.Z;a.origin=[t.x,t.y,null!=(i=t.z)?i:0];const l=t.spatialReference;return new vt({external:{source:e,extent:s},transform:a,spatialReference:l})}static createIncomplete(t,e){var n,r;const o=null!=(n=null==e?void 0:e.transform.clone())?n:new M.Z;o.origin=[t.x,t.y,null!=(r=t.z)?r:0];const i=t.spatialReference,s=new vt({transform:o,spatialReference:i});return s.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),s}};(0,l._)([(0,x.Cb)({type:[A.Z],json:{write:!0}})],bt.prototype,"components",void 0),(0,l._)([(0,x.Cb)({type:M.Z,json:{write:!0}})],bt.prototype,"transform",void 0),(0,l._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"external",void 0),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"hasExtent",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"boundingInfo",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"anchor",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"origin",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],bt.prototype,"extent",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],bt.prototype,"hasZ",void 0),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],bt.prototype,"hasM",void 0),(0,l._)([(0,x.Cb)({type:Z.QL,nonNullable:!0,json:{write:!0}})],bt.prototype,"vertexAttributes",void 0),bt=vt=(0,l._)([(0,m.j)("esri.geometry.Mesh")],bt);const Ct={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},At=(0,C.Ue)(),Mt=(0,C.Ue)(),Zt=(0,C.Ue)(),_t=(0,y.c)(),Tt=bt;var Ft,Rt;!function(t){t.featureGUID="featureGUID",t.assetName="assetName",t.hash="hash",t.type="type",t.conversionStatus="conversionStatus",t.flags="flags",t.complexity="complexity",t.size="size",t.seqNo="seqNo",t.sourceHash="sourceHash",t.assetURL="assetURL"}(Ft||(Ft={})),function(t){t.SUBMITTED="SUBMITTED",t.INPROGRESS="INPROGRESS",t.FAILED="FAILED",t.COMPLETED="COMPLETED"}(Rt||(Rt={}));var Dt,It,Lt=n(74889);function Et(t,e,n){const r=n.features;n.features=[],delete n.geometryType;const o=Lt.default.fromJSON(n);o.geometryType="mesh";const a=o.spatialReference,l=(0,s.Wi)(t.outFields)||!t.outFields.length?()=>({}):(c=t.outFields.includes("*")?null:new Set(t.outFields),({attributes:t})=>{if(!t)return{};if(!c)return t;for(const e in t)c.has(e)||delete t[e];return t});var c;for(const t of r){const n=Ot(t,a,e);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:l(t)}))}return o}function Ot(t,e,n){const{status:r,source:o}=function(t){if(!t.assetMappings)return{status:Dt.FAILED};const e=[],n=new Map;for(const r of t.assetMappings){const t=r[Ft.seqNo],o=r[Ft.assetName],i=r[Ft.assetURL],s=r[Ft.conversionStatus];if(s===Rt.FAILED)return{status:Dt.FAILED};if(s!==Rt.COMPLETED)return{status:Dt.PENDING};if(null==t)e.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],e.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[t]=i}}return{status:Dt.COMPLETED,source:e}}(t);if(r===Dt.FAILED)return null;const i=function({attributes:t},e,{transformFieldRoles:n}){return new w.Z({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}(t,e,n),s=a.Z.fromJSON(t.geometry);s.spatialReference=e;const l=function({attributes:t,assetMappings:e},{transformFieldRoles:n}){var r;return new M.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,C.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:!(null!=(r=e[Ft.flags])&&r.includes("PROJECT_VERTICES"))})}(t,n);return r===Dt.PENDING?Tt.createIncomplete(i,{extent:s,transform:l}):Tt.createWithExternalSource(i,o,{extent:s,transform:l})}(It=Dt||(Dt={}))[It.FAILED=0]="FAILED",It[It.PENDING=1]="PENDING",It[It.COMPLETED=2]="COMPLETED"}}]);
|