@arcgis/core 4.22.0-next.20211205 → 4.22.1
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/PopupTemplate.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{44ccee36f8c74f4f134e.js → 025df54bafc05c183182.js} +1 -1
- package/assets/esri/core/workers/chunks/{23af0b02208e20d5c07e.js → 04adf8c6c5e8ad67aa06.js} +1 -1
- package/assets/esri/core/workers/chunks/0677ed519c51710d7629.js +1 -0
- package/assets/esri/core/workers/chunks/2174266668fa6f2df8cc.js +1 -0
- package/assets/esri/core/workers/chunks/25017204ffbd1bbac91f.js +1 -0
- package/assets/esri/core/workers/chunks/28f9b48b59bf1347facd.js +1 -0
- package/assets/esri/core/workers/chunks/2d97adeb48adeecd7607.js +1 -0
- package/assets/esri/core/workers/chunks/{52aa3b44bddb10caa343.js → 2f29fb12452d363a1b17.js} +1 -1
- package/assets/esri/core/workers/chunks/{96a62dc1e07f3ef20a30.js → 32efb77e3dabd2c11446.js} +1 -1
- package/assets/esri/core/workers/chunks/{6a1ce00bcb689ea95bcb.js → 3a4885bf1cfc82cf2b67.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff9a9e705237c55f78ff.js → 49bf6ce6b31a0028cee1.js} +1 -1
- package/assets/esri/core/workers/chunks/{02ce52ca0084536bc066.js → 4f4cc4ebd68dbd5ee9c3.js} +1 -1
- package/assets/esri/core/workers/chunks/5a31dfbac9c7e15a4dc5.js +1 -0
- package/assets/esri/core/workers/chunks/60bfe5450b85b0d4605f.js +1 -0
- package/assets/esri/core/workers/chunks/{f3da8b797c8e1fcb1c21.js → 63161320a58a0b1702a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7f77fe32bb2d69b5714.js → 762f45a7ecd40d564be2.js} +1 -1
- package/assets/esri/core/workers/chunks/7b12bf4be88ca0e14683.js +1 -0
- package/assets/esri/core/workers/chunks/{07bfb7bb4447aeacd87a.js → 7db1818ed9e834402e98.js} +1 -1
- package/assets/esri/core/workers/chunks/{8bc4ea821be16a752226.js → 8b98fc7d115469e6ae5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{6210b23872c362f51b12.js → a3b7217566347ab595d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc0b85bc1e5116836ba4.js → ac9b25ce30f2cd569944.js} +1 -1
- package/assets/esri/core/workers/chunks/{058955b87ce2aa1b1809.js → c535188091d83fd50d74.js} +1 -1
- package/assets/esri/core/workers/chunks/{4417dfcb2ba50ac9f199.js → d431b35c274b76150724.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f2718cd77cbd5ba7920.js → da62f8159ec2fdbdeb58.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6b46f8e6a7d8d3cef50.js → db00e63a7c4fdf635a8c.js} +1 -1
- package/assets/esri/core/workers/chunks/{489147cf21d55f47d0e6.js → e7117121160907a593d4.js} +1 -1
- package/assets/esri/core/workers/chunks/{44145763617ea985cce4.js → fa9c5dd90d19d4061b40.js} +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-TW.json +1 -1
- package/chunks/Clouds.glsl.js +4 -4
- package/chunks/RibbonLine.glsl.js +55 -61
- package/config.js +1 -1
- package/copyright.txt +47 -19
- package/interfaces.d.ts +184 -47
- package/layers/CSVLayer.js +1 -1
- package/layers/GeoJSONLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/operationalLayers.js +1 -1
- package/layers/support/layersCreator.js +1 -1
- package/package.json +1 -1
- package/renderers/VectorFieldRenderer.js +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/smartMapping/raster/renderers/classBreaks.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/constraints/ZoomConstraint.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
- package/views/2d/engine/webgl/collisions/CollisionGrid.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
- package/views/2d/layers/graphics/GraphicStore.js +1 -1
- package/views/2d/layers/imagery/ImageryGraphicsView2D.js +1 -1
- package/views/3d/environment/Clouds.glsl.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/NoiseTextureAtlas.js +1 -1
- package/views/MapView.js +1 -1
- package/views/MapViewBase.js +1 -1
- package/views/webgl/Program.js +1 -1
- package/widgets/Histogram.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/assets/esri/core/t9n/Units_no.json +0 -1
- package/assets/esri/core/workers/chunks/49bb222ee07a768e998d.js +0 -1
- package/assets/esri/core/workers/chunks/650f04de72c173beaebc.js +0 -1
- package/assets/esri/core/workers/chunks/aa57f2c380132c746730.js +0 -1
- package/assets/esri/core/workers/chunks/af6251cc7973b43a1523.js +0 -1
- package/assets/esri/core/workers/chunks/b17afdfe4450f69298ad.js +0 -1
- package/assets/esri/core/workers/chunks/bad899fd3564ec97f69b.js +0 -1
- package/assets/esri/core/workers/chunks/deba37055be7c2d7da26.js +0 -1
- package/assets/esri/core/workers/chunks/e02a3d456525e76ddb60.js +0 -1
- package/assets/esri/identity/t9n/identity_no.json +0 -1
- package/assets/esri/smartMapping/t9n/smartMapping_no.json +0 -1
- package/assets/esri/t9n/basemaps_no.json +0 -1
- package/assets/esri/t9n/common_no.json +0 -1
- package/assets/esri/widgets/AreaMeasurement2D/t9n/AreaMeasurement2D_no.json +0 -1
- package/assets/esri/widgets/AreaMeasurement3D/t9n/AreaMeasurement3D_no.json +0 -1
- package/assets/esri/widgets/Attachments/t9n/Attachments_no.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/Attribution_no.json +0 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_no.json +0 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_no.json +0 -1
- package/assets/esri/widgets/BasemapToggle/t9n/BasemapToggle_no.json +0 -1
- package/assets/esri/widgets/Bookmarks/t9n/Bookmarks_no.json +0 -1
- package/assets/esri/widgets/BuildingExplorer/t9n/BuildingExplorer_no.json +0 -1
- package/assets/esri/widgets/Compass/t9n/Compass_no.json +0 -1
- package/assets/esri/widgets/CoordinateConversion/t9n/CoordinateConversion_no.json +0 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_no.json +0 -1
- package/assets/esri/widgets/DirectLineMeasurement3D/t9n/DirectLineMeasurement3D_no.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Directions_no.json +0 -1
- package/assets/esri/widgets/Directions/t9n/Printout_no.json +0 -1
- package/assets/esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D_no.json +0 -1
- package/assets/esri/widgets/Editor/t9n/Editor_no.json +0 -1
- package/assets/esri/widgets/ElevationProfile/t9n/ElevationProfile_no.json +0 -1
- package/assets/esri/widgets/Expand/t9n/Expand_no.json +0 -1
- package/assets/esri/widgets/Feature/t9n/Feature_no.json +0 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_no.json +0 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +0 -1
- package/assets/esri/widgets/FeatureTemplates/t9n/FeatureTemplates_no.json +0 -1
- package/assets/esri/widgets/FloorFilter/t9n/FloorFilter_no.json +0 -1
- package/assets/esri/widgets/Fullscreen/t9n/Fullscreen_no.json +0 -1
- package/assets/esri/widgets/Histogram/t9n/Histogram_no.json +0 -1
- package/assets/esri/widgets/HistogramRangeSlider/t9n/HistogramRangeSlider_no.json +0 -1
- package/assets/esri/widgets/Home/t9n/Home_no.json +0 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_no.json +0 -1
- package/assets/esri/widgets/Legend/t9n/Legend_no.json +0 -1
- package/assets/esri/widgets/LineOfSight/t9n/LineOfSight_no.json +0 -1
- package/assets/esri/widgets/Locate/t9n/Locate_no.json +0 -1
- package/assets/esri/widgets/Measurement/t9n/Measurement_no.json +0 -1
- package/assets/esri/widgets/NavigationToggle/t9n/NavigationToggle_no.json +0 -1
- package/assets/esri/widgets/Popup/t9n/Popup_no.json +0 -1
- package/assets/esri/widgets/Print/t9n/Print_no.json +0 -1
- package/assets/esri/widgets/ScaleBar/t9n/ScaleBar_no.json +0 -1
- package/assets/esri/widgets/ScaleRangeSlider/t9n/ScaleRangeSlider_no.json +0 -1
- package/assets/esri/widgets/Search/t9n/Search_no.json +0 -1
- package/assets/esri/widgets/ShadowCast/t9n/ShadowCast_no.json +0 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +0 -1
- package/assets/esri/widgets/Slice/t9n/Slice_no.json +0 -1
- package/assets/esri/widgets/Slider/t9n/Slider_no.json +0 -1
- package/assets/esri/widgets/Swipe/t9n/Swipe_no.json +0 -1
- package/assets/esri/widgets/TableList/t9n/TableList_no.json +0 -1
- package/assets/esri/widgets/TimeSlider/t9n/TimeSlider_no.json +0 -1
- package/assets/esri/widgets/Track/t9n/Track_no.json +0 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_no.json +0 -1
- package/assets/esri/widgets/Zoom/t9n/Zoom_no.json +0 -1
- package/assets/esri/widgets/smartMapping/ClassedColorSlider/t9n/ClassedColorSlider_no.json +0 -1
- package/assets/esri/widgets/smartMapping/ClassedSizeSlider/t9n/ClassedSizeSlider_no.json +0 -1
- package/assets/esri/widgets/smartMapping/ColorSizeSlider/t9n/ColorSizeSlider_no.json +0 -1
- package/assets/esri/widgets/smartMapping/ColorSlider/t9n/ColorSlider_no.json +0 -1
- package/assets/esri/widgets/smartMapping/HeatmapSlider/t9n/HeatmapSlider_no.json +0 -1
- package/assets/esri/widgets/smartMapping/OpacitySlider/t9n/OpacitySlider_no.json +0 -1
- package/assets/esri/widgets/smartMapping/SizeSlider/t9n/SizeSlider_no.json +0 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/SelectionToolbar_no.json +0 -1
- package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_no.json +0 -1
- package/assets/esri/widgets/support/t9n/ColorPicker_no.json +0 -1
- package/assets/esri/widgets/support/t9n/DatePicker_no.json +0 -1
- package/assets/esri/widgets/support/t9n/TimePicker_no.json +0 -1
- package/assets/esri/widgets/support/t9n/timezone_no.json +0 -1
- package/assets/esri/widgets/support/t9n/uriUtils_no.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3942],{45091:(e,t,r)=>{r.d(t,{Z:()=>u});var s=r(80442),n=r(71143);const i=4294967296,a=(0,s.Z)("esri-text-decoder")?new TextDecoder("utf-8"):null,o=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class u{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this.init(e,t,r,s)}init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*i;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*i;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t.init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t,r=this._pos,s=0;if(this._end-r>=10)do{if(t=e[r++],s|=127&t,0==(128&t))break;if(t=e[r++],s|=(127&t)<<7,0==(128&t))break;if(t=e[r++],s|=(127&t)<<14,0==(128&t))break;if(t=e[r++],s|=(127&t)<<21,0==(128&t))break;if(t=e[r++],s+=268435456*(127&t),0==(128&t))break;if(t=e[r++],s+=34359738368*(127&t),0==(128&t))break;if(t=e[r++],s+=4398046511104*(127&t),0==(128&t))break;if(t=e[r++],s+=562949953421312*(127&t),0==(128&t))break;if(t=e[r++],s+=72057594037927940*(127&t),0==(128&t))break;if(t=e[r++],s+=0x8000000000000000*(127&t),0==(128&t))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;r!==this._end&&(t=e[r],0!=(128&t));)++r,s+=(127&t)*n,n*=128;if(r===this._end)throw new Error("Varint overrun!");++r,s+=t*n}return this._pos=r,s}_decodeSVarint(){const e=this._decodeVarint();return e%2?-(e+1)/2:e/2}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>o&&a){const s=e.subarray(t,r);return a.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}u.pool=new n.Z(u,null,(e=>{e._data=null,e._dataView=null}))},91040:(e,t,r)=>{r.d(t,{yZ:()=>n});var s=r(67900);function n(e,t){const r=t||e.extent,n=e.width,i=(0,s.c9)(r&&r.spatialReference);return r&&n?r.width/n*i*s.hd*96:0}},41818:(e,t,r)=>{r.d(t,{P:()=>a});var s=r(11282),n=r(34599),i=r(57444);async function a(e,t,r){const a=(0,s.en)(e);return(0,n.executeQueryForCount)(a,i.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>a});var s=r(11282),n=r(34599),i=r(57444);async function a(e,t,r){const a=(0,s.en)(e);return(0,n.executeQueryForIds)(a,i.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{e:()=>o,F:()=>u});var s=r(11282),n=r(34599),i=r(74889),a=r(57444);async function o(e,t,r){const s=await u(e,t,r);return i.default.fromJSON(s)}async function u(e,t,r){const i=(0,s.en)(e),o={...r},u=a.Z.from(t),{data:c}=await(0,n.executeQuery)(i,u,u.sourceSpatialReference,o);return c}},77863:(e,t,r)=>{r.d(t,{K9:()=>R,O7:()=>d,G$:()=>w});var s=r(20102),n=r(70586),i=r(45091),a=r(5428),o=r(78760);const u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function d(e){return e>=u.length?null:u[e]}function p(e){return e>=c.length?null:c[e]}function h(e){return e>=l.length?null:l[e]}function g(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const s=t.createPointGeometry(r);for(;e.next();)switch(e.tag()){case 3:{const r=e.getUInt32(),n=e.pos()+r;let i=0;for(;e.pos()<n;)t.addCoordinatePoint(s,e.getSInt64(),i++);break}default:e.skip()}return s}function f(e,t,r){const s=t.createGeometry(r),n=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;e.next();)switch(e.tag()){case 2:{const r=e.getUInt32(),n=e.pos()+r;let i=0;for(;e.pos()<n;)t.addLength(s,e.getUInt32(),i++);break}case 3:{const r=e.getUInt32(),i=e.pos()+r;let a=0;for(t.allocateCoordinates(s);e.pos()<i;)t.addCoordinate(s,e.getSInt64(),a),a++,a===n&&(a=0);break}default:e.skip()}return s}function m(e){const t=new a.Z;let r="esriGeometryPoint";for(;e.next();)switch(e.tag()){case 2:{const r=e.getUInt32(),s=e.pos()+r;for(;e.pos()<s;)t.lengths.push(e.getUInt32());break}case 3:{const r=e.getUInt32(),s=e.pos()+r;for(;e.pos()<s;)t.coords.push(e.getSInt64());break}case 1:r=o.A[e.getEnum()];break;default:e.skip()}return{queryGeometry:t,queryGeometryType:r}}function _(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function b(e){const t={type:d(0)};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.type=d(e.getEnum());break;case 3:t.alias=e.getString();break;case 4:t.sqlType=p(e.getEnum());break;case 5:default:e.skip();break;case 6:t.defaultValue=e.getString()}return t}function k(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.isSystemMaintained=e.getBool();break;default:e.skip()}return t}function S(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(_);break}case 2:n.geometry=e.processMessageWithArgs(f,t,r);break;case 4:n.centroid=e.processMessageWithArgs(y,t,r);break;default:e.skip()}return n}function x(e){const t=[1,1,1,1];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function I(e){const t=[0,0,0,0];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function w(e){const t={originPosition:h(0)};for(;e.next();)switch(e.tag()){case 1:t.originPosition=h(e.getEnum());break;case 2:t.scale=e.processMessage(x);break;case 3:t.translate=e.processMessage(I);break;default:e.skip()}return t}function T(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.shapeAreaFieldName=e.getString();break;case 2:t.shapeLengthFieldName=e.getString();break;case 3:t.units=e.getString();break;default:e.skip()}return t}function F(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function q(e,t){const r=t.createFeatureResult();r.geometryType=g(t,0);let s=!1;for(;e.next();)switch(e.tag()){case 1:r.objectIdFieldName=e.getString();break;case 3:r.globalIdFieldName=e.getString();break;case 4:r.geohashFieldName=e.getString();break;case 5:r.geometryProperties=e.processMessage(T);break;case 7:r.geometryType=g(t,e.getEnum());break;case 8:r.spatialReference=e.processMessageWithArgs(F,t);break;case 10:r.hasZ=e.getBool();break;case 11:r.hasM=e.getBool();break;case 12:r.transform=e.processMessage(w);break;case 9:{const t=e.getBool();r.exceededTransferLimit=t;break}case 13:t.addField(r,e.processMessage(b));break;case 15:s||(t.prepareFeatures(r),s=!0),t.addFeature(r,e.processMessageWithArgs(S,t,r,r.fields));break;case 2:r.uniqueIdField=e.processMessage(k);break;default:e.skip()}return t.finishFeatureResult(r),r}function C(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(m);break;case 1:r.featureResult=e.processMessageWithArgs(q,t);break;default:e.skip()}return(0,n.pC)(s)&&r.featureResult&&t.addQueryGeometry(r,s),r}function R(e,t){try{const r=2,s=new i.Z(new Uint8Array(e),new DataView(e)),n={};for(;s.next();)s.tag()===r?n.queryResult=s.processMessageWithArgs(C,t):s.skip();return n}catch(e){throw new s.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,r)=>{r.d(t,{A:()=>u,J:()=>c});var s=r(67900),n=r(8744),i=r(70272),a=r(44876),o=r(5428);const u=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class c{constructor(e){this.options=e,this.geometryTypes=u,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this.options.sourceSpatialReference||!e.spatialReference||(0,n.fS)(e.spatialReference,this.options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s._R)(this.options.sourceSpatialReference)/(0,s._R)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.S6)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.ZP}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,r)=>{r.d(t,{C:()=>n});var s=r(77863);function n(e,t){const r=(0,s.K9)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,a=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=a),n}},34599:(e,t,r)=>{r.r(t),r.d(t,{executeQuery:()=>h,executeQueryForCount:()=>m,executeQueryForExtent:()=>_,executeQueryForIds:()=>f,executeQueryPBF:()=>g,executeQueryPBFBuffer:()=>y,queryToQueryStringParameters:()=>p,runQuery:()=>b});var s=r(3172),n=r(70586),i=r(17452),a=r(33955),o=r(38581),u=r(45178),c=r(28694),l=r(99306);const d="Layer does not support extent calculation.";function p(e,t){const r=e.geometry,s=e.toJSON(),i=s,o=e.outSpatialReference;let u,c;if((0,n.pC)(r)){if(u=r.spatialReference,c=r.spatialReference.wkid||JSON.stringify(r.spatialReference),i.geometryType=(0,a.Ji)(r),"extent"===r.type)i.geometry=`${r.xmin},${r.ymin},${r.xmax},${r.ymax}`;else if("point"===r.type)i.geometry=`${r.x},${r.y}`;else{const e=r.toJSON();delete e.spatialReference,i.geometry=JSON.stringify(e)}i.inSR=c}if(u||(u=o),s.groupByFieldsForStatistics&&(i.groupByFieldsForStatistics=s.groupByFieldsForStatistics.join(",")),s.objectIds&&(i.objectIds=s.objectIds.join(",")),s.orderByFields&&(i.orderByFields=s.orderByFields.join(",")),!s.outFields||!s.returnDistinctValues&&(null!=t&&t.returnCountOnly||null!=t&&t.returnExtentOnly||null!=t&&t.returnIdsOnly)?delete i.outFields:-1!==s.outFields.indexOf("*")?i.outFields="*":i.outFields=s.outFields.join(","),s.outSR?i.outSR=s.outSR.wkid||JSON.stringify(s.outSR):r&&(s.returnGeometry||s.returnCentroid)&&(i.outSR=i.inSR),s.returnGeometry&&delete s.returnGeometry,s.outStatistics&&(i.outStatistics=JSON.stringify(s.outStatistics)),s.pixelSize&&(i.pixelSize=JSON.stringify(s.pixelSize)),s.quantizationParameters&&((0,n.pC)(u)&&(0,n.pC)(e.quantizationParameters)&&(0,n.pC)(e.quantizationParameters.extent)&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete s.quantizationParameters.extent.spatialReference,i.quantizationParameters=JSON.stringify(s.quantizationParameters)),s.parameterValues&&(i.parameterValues=JSON.stringify(s.parameterValues)),s.rangeValues&&(i.rangeValues=JSON.stringify(s.rangeValues)),s.dynamicDataSource&&(i.layer=JSON.stringify({source:s.dynamicDataSource}),delete s.dynamicDataSource),s.timeExtent){const e=s.timeExtent,{start:t,end:r}=e;null==t&&null==r||(i.time=t===r?t:`${null==t?"null":t},${null==r?"null":r}`),delete s.timeExtent}return i}async function h(e,t,r,s){const i=(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?{data:{features:[]}}:await b(e,t,"json",s);return(0,c.p)(t,r,i.data),i}async function g(e,t,r,s){if((0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty)return Promise.resolve({data:r.createFeatureResult()});const i=await y(e,t,s),a=i;return a.data=(0,u.C)(i.data,r),a}function y(e,t,r){return b(e,t,"pbf",r)}function f(e,t,r){return(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):b(e,t,"json",r,{returnIdsOnly:!0})}function m(e,t,r){return(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):b(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function _(e,t,r){return(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):b(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then((e=>{const t=e.data;if(t.hasOwnProperty("extent"))return e;if(t.features)throw new Error(d);if(t.hasOwnProperty("count"))throw new Error(d);return e}))}function b(e,t,r,a={},u={}){const c="string"==typeof e?(0,i.mN)(e):e,d=t.geometry?[t.geometry]:[];return a.responseType="pbf"===r?"array-buffer":"json",(0,o.aX)(d,null,a).then((e=>{const o=e&&e[0];(0,n.pC)(o)&&((t=t.clone()).geometry=o);const d=(0,l.A)({...c.query,f:r,...u,...p(t,u)});return(0,s.default)((0,i.v_)(c.path,"query"),{...a,query:{...d,...a.query}})}))}},98326:(e,t,r)=>{r.d(t,{Z:()=>d});var s,n=r(43697),i=r(10736),a=r(5600),o=(r(67676),r(80442),r(75215)),u=r(52011);const c={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let l=s=class extends i.wq{constructor(e){super(e),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:e}=this,t=function(e){const{exifInfo:t,exifName:r,tagName:s}=e;if(!t||!r||!s)return null;const n=t.find((e=>e.name===r));return n?function(e){const{tagName:t,tags:r}=e;if(!r||!t)return null;const s=r.find((e=>e.name===t));return s&&s.value||null}({tagName:s,tags:n.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:e});return c[t]||null}clone(){return new s({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,n._)([(0,a.Cb)({type:String})],l.prototype,"contentType",void 0),(0,n._)([(0,a.Cb)()],l.prototype,"exifInfo",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],l.prototype,"orientationInfo",null),(0,n._)([(0,a.Cb)({type:o.z8})],l.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"globalId",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"keywords",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"name",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"parentGlobalId",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"parentObjectId",void 0),(0,n._)([(0,a.Cb)({type:o.z8})],l.prototype,"size",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"url",void 0),l=s=(0,n._)([(0,u.j)("esri.layers.support.AttachmentInfo")],l);const d=l},11282:(e,t,r)=>{r.d(t,{lA:()=>n,cv:()=>a,en:()=>i});var s=r(17452);function n(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,s.mN)(e):e}function a(e,t,r){const s={};for(const n in e){if("declaredClass"===n)continue;const i=e[n];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[n]=[];for(let e=0;e<i.length;e++)s[n][e]=a(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r&&r[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?i:JSON.stringify(i);else s[n]=i}return s}r(91040)},99306:(e,t,r)=>{function s(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=s(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{A:()=>s})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3942],{45091:(e,t,r)=>{r.d(t,{Z:()=>u});var s=r(80442),n=r(71143);const i=4294967296,a=(0,s.Z)("esri-text-decoder")?new TextDecoder("utf-8"):null,o=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class u{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this.init(e,t,r,s)}init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*i;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*i;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t.init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t,r=this._pos,s=0;if(this._end-r>=10)do{if(t=e[r++],s|=127&t,0==(128&t))break;if(t=e[r++],s|=(127&t)<<7,0==(128&t))break;if(t=e[r++],s|=(127&t)<<14,0==(128&t))break;if(t=e[r++],s|=(127&t)<<21,0==(128&t))break;if(t=e[r++],s+=268435456*(127&t),0==(128&t))break;if(t=e[r++],s+=34359738368*(127&t),0==(128&t))break;if(t=e[r++],s+=4398046511104*(127&t),0==(128&t))break;if(t=e[r++],s+=562949953421312*(127&t),0==(128&t))break;if(t=e[r++],s+=72057594037927940*(127&t),0==(128&t))break;if(t=e[r++],s+=0x8000000000000000*(127&t),0==(128&t))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;r!==this._end&&(t=e[r],0!=(128&t));)++r,s+=(127&t)*n,n*=128;if(r===this._end)throw new Error("Varint overrun!");++r,s+=t*n}return this._pos=r,s}_decodeSVarint(){const e=this._decodeVarint();return e%2?-(e+1)/2:e/2}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>o&&a){const s=e.subarray(t,r);return a.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}u.pool=new n.Z(u,null,(e=>{e._data=null,e._dataView=null}))},91040:(e,t,r)=>{r.d(t,{yZ:()=>n});var s=r(67900);function n(e,t){const r=t||e.extent,n=e.width,i=(0,s.c9)(r&&r.spatialReference);return r&&n?r.width/n*i*s.hd*96:0}},41818:(e,t,r)=>{r.d(t,{P:()=>a});var s=r(11282),n=r(34599),i=r(57444);async function a(e,t,r){const a=(0,s.en)(e);return(0,n.executeQueryForCount)(a,i.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>a});var s=r(11282),n=r(34599),i=r(57444);async function a(e,t,r){const a=(0,s.en)(e);return(0,n.executeQueryForIds)(a,i.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{e:()=>o,F:()=>u});var s=r(11282),n=r(34599),i=r(74889),a=r(57444);async function o(e,t,r){const s=await u(e,t,r);return i.default.fromJSON(s)}async function u(e,t,r){const i=(0,s.en)(e),o={...r},u=a.Z.from(t),{data:c}=await(0,n.executeQuery)(i,u,u.sourceSpatialReference,o);return c}},77863:(e,t,r)=>{r.d(t,{K9:()=>R,O7:()=>d,G$:()=>w});var s=r(20102),n=r(70586),i=r(45091),a=r(5428),o=r(78760);const u=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],l=["upperLeft","lowerLeft"];function d(e){return e>=u.length?null:u[e]}function p(e){return e>=c.length?null:c[e]}function h(e){return e>=l.length?null:l[e]}function g(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const s=t.createPointGeometry(r);for(;e.next();)switch(e.tag()){case 3:{const r=e.getUInt32(),n=e.pos()+r;let i=0;for(;e.pos()<n;)t.addCoordinatePoint(s,e.getSInt64(),i++);break}default:e.skip()}return s}function f(e,t,r){const s=t.createGeometry(r),n=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;e.next();)switch(e.tag()){case 2:{const r=e.getUInt32(),n=e.pos()+r;let i=0;for(;e.pos()<n;)t.addLength(s,e.getUInt32(),i++);break}case 3:{const r=e.getUInt32(),i=e.pos()+r;let a=0;for(t.allocateCoordinates(s);e.pos()<i;)t.addCoordinate(s,e.getSInt64(),a),a++,a===n&&(a=0);break}default:e.skip()}return s}function m(e){const t=new a.Z;let r="esriGeometryPoint";for(;e.next();)switch(e.tag()){case 2:{const r=e.getUInt32(),s=e.pos()+r;for(;e.pos()<s;)t.lengths.push(e.getUInt32());break}case 3:{const r=e.getUInt32(),s=e.pos()+r;for(;e.pos()<s;)t.coords.push(e.getSInt64());break}case 1:r=o.A[e.getEnum()];break;default:e.skip()}return{queryGeometry:t,queryGeometryType:r}}function _(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function b(e){const t={type:d(0)};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.type=d(e.getEnum());break;case 3:t.alias=e.getString();break;case 4:t.sqlType=p(e.getEnum());break;case 5:default:e.skip();break;case 6:t.defaultValue=e.getString()}return t}function k(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.isSystemMaintained=e.getBool();break;default:e.skip()}return t}function S(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(_);break}case 2:n.geometry=e.processMessageWithArgs(f,t,r);break;case 4:n.centroid=e.processMessageWithArgs(y,t,r);break;default:e.skip()}return n}function x(e){const t=[1,1,1,1];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function I(e){const t=[0,0,0,0];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function w(e){const t={originPosition:h(0)};for(;e.next();)switch(e.tag()){case 1:t.originPosition=h(e.getEnum());break;case 2:t.scale=e.processMessage(x);break;case 3:t.translate=e.processMessage(I);break;default:e.skip()}return t}function T(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.shapeAreaFieldName=e.getString();break;case 2:t.shapeLengthFieldName=e.getString();break;case 3:t.units=e.getString();break;default:e.skip()}return t}function F(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function q(e,t){const r=t.createFeatureResult();r.geometryType=g(t,0);let s=!1;for(;e.next();)switch(e.tag()){case 1:r.objectIdFieldName=e.getString();break;case 3:r.globalIdFieldName=e.getString();break;case 4:r.geohashFieldName=e.getString();break;case 5:r.geometryProperties=e.processMessage(T);break;case 7:r.geometryType=g(t,e.getEnum());break;case 8:r.spatialReference=e.processMessageWithArgs(F,t);break;case 10:r.hasZ=e.getBool();break;case 11:r.hasM=e.getBool();break;case 12:r.transform=e.processMessage(w);break;case 9:{const t=e.getBool();r.exceededTransferLimit=t;break}case 13:t.addField(r,e.processMessage(b));break;case 15:s||(t.prepareFeatures(r),s=!0),t.addFeature(r,e.processMessageWithArgs(S,t,r,r.fields));break;case 2:r.uniqueIdField=e.processMessage(k);break;default:e.skip()}return t.finishFeatureResult(r),r}function C(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(m);break;case 1:r.featureResult=e.processMessageWithArgs(q,t);break;default:e.skip()}return(0,n.pC)(s)&&r.featureResult&&t.addQueryGeometry(r,s),r}function R(e,t){try{const r=2,s=new i.Z(new Uint8Array(e),new DataView(e)),n={};for(;s.next();)s.tag()===r?n.queryResult=s.processMessageWithArgs(C,t):s.skip();return n}catch(e){throw new s.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,r)=>{r.d(t,{A:()=>u,J:()=>c});var s=r(67900),n=r(8744),i=r(70272),a=r(44876),o=r(5428);const u=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class c{constructor(e){this.options=e,this.geometryTypes=u,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this.options.sourceSpatialReference||!e.spatialReference||(0,n.fS)(e.spatialReference,this.options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s._R)(this.options.sourceSpatialReference)/(0,s._R)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.S6)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.ZP}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,r)=>{r.d(t,{C:()=>n});var s=r(77863);function n(e,t){const r=(0,s.K9)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,a=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=a),n}},34599:(e,t,r)=>{r.r(t),r.d(t,{executeQuery:()=>g,executeQueryForCount:()=>_,executeQueryForExtent:()=>b,executeQueryForIds:()=>m,executeQueryPBF:()=>y,executeQueryPBFBuffer:()=>f,queryToQueryStringParameters:()=>h,runQuery:()=>k});var s=r(3172),n=r(70586),i=r(17452),a=r(33955),o=r(38581),u=r(66677),c=r(45178),l=r(28694),d=r(99306);const p="Layer does not support extent calculation.";function h(e,t,r=!1){const s=e.geometry,i=e.toJSON(),o=i,u=e.outSpatialReference;let c,l;if((0,n.pC)(s)){if(c=s.spatialReference,l=s.spatialReference.wkid||JSON.stringify(s.spatialReference),o.geometryType=(0,a.Ji)(s),"extent"===s.type)o.geometry=`${s.xmin},${s.ymin},${s.xmax},${s.ymax}`;else if("point"===s.type)o.geometry=`${s.x},${s.y}`;else{const e=s.toJSON();delete e.spatialReference,o.geometry=JSON.stringify(e)}o.inSR=l}if(c||(c=u),i.groupByFieldsForStatistics&&(o.groupByFieldsForStatistics=i.groupByFieldsForStatistics.join(",")),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),!i.outFields||!i.returnDistinctValues&&(null!=t&&t.returnCountOnly||null!=t&&t.returnExtentOnly||null!=t&&t.returnIdsOnly)?delete o.outFields:-1!==i.outFields.indexOf("*")?o.outFields="*":o.outFields=i.outFields.join(","),i.outSR?o.outSR=i.outSR.wkid||JSON.stringify(i.outSR):s&&(i.returnGeometry||i.returnCentroid)&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.outStatistics&&(o.outStatistics=JSON.stringify(i.outStatistics)),i.pixelSize&&(o.pixelSize=JSON.stringify(i.pixelSize)),i.quantizationParameters&&(r&&(0,n.pC)(c)&&(0,n.pC)(e.quantizationParameters)&&(0,n.pC)(e.quantizationParameters.extent)&&c.equals(e.quantizationParameters.extent.spatialReference)&&delete i.quantizationParameters.extent.spatialReference,o.quantizationParameters=JSON.stringify(i.quantizationParameters)),i.parameterValues&&(o.parameterValues=JSON.stringify(i.parameterValues)),i.rangeValues&&(o.rangeValues=JSON.stringify(i.rangeValues)),i.dynamicDataSource&&(o.layer=JSON.stringify({source:i.dynamicDataSource}),delete i.dynamicDataSource),i.timeExtent){const e=i.timeExtent,{start:t,end:r}=e;null==t&&null==r||(o.time=t===r?t:`${null==t?"null":t},${null==r?"null":r}`),delete i.timeExtent}return o}async function g(e,t,r,s){const i=(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?{data:{features:[]}}:await k(e,t,"json",s);return(0,l.p)(t,r,i.data),i}async function y(e,t,r,s){if((0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty)return Promise.resolve({data:r.createFeatureResult()});const i=await f(e,t,s),a=i;return a.data=(0,c.C)(i.data,r),a}function f(e,t,r){return k(e,t,"pbf",r)}function m(e,t,r){return(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):k(e,t,"json",r,{returnIdsOnly:!0})}function _(e,t,r){return(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):k(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function b(e,t,r){return(0,n.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):k(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then((e=>{const t=e.data;if(t.hasOwnProperty("extent"))return e;if(t.features)throw new Error(p);if(t.hasOwnProperty("count"))throw new Error(p);return e}))}function k(e,t,r,a={},c={}){const l="string"==typeof e?(0,i.mN)(e):e,p=t.geometry?[t.geometry]:[];return a.responseType="pbf"===r?"array-buffer":"json",(0,o.aX)(p,null,a).then((e=>{const o=e&&e[0];(0,n.pC)(o)&&((t=t.clone()).geometry=o);const p=(0,u.M8)(l.path),g=(0,d.A)({...l.query,f:r,...c,...h(t,c,p)});return(0,s.default)((0,i.v_)(l.path,"query"),{...a,query:{...g,...a.query}})}))}},98326:(e,t,r)=>{r.d(t,{Z:()=>d});var s,n=r(43697),i=r(10736),a=r(5600),o=(r(67676),r(80442),r(75215)),u=r(52011);const c={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let l=s=class extends i.wq{constructor(e){super(e),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:e}=this,t=function(e){const{exifInfo:t,exifName:r,tagName:s}=e;if(!t||!r||!s)return null;const n=t.find((e=>e.name===r));return n?function(e){const{tagName:t,tags:r}=e;if(!r||!t)return null;const s=r.find((e=>e.name===t));return s&&s.value||null}({tagName:s,tags:n.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:e});return c[t]||null}clone(){return new s({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,n._)([(0,a.Cb)({type:String})],l.prototype,"contentType",void 0),(0,n._)([(0,a.Cb)()],l.prototype,"exifInfo",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],l.prototype,"orientationInfo",null),(0,n._)([(0,a.Cb)({type:o.z8})],l.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"globalId",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"keywords",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"name",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"parentGlobalId",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"parentObjectId",void 0),(0,n._)([(0,a.Cb)({type:o.z8})],l.prototype,"size",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"url",void 0),l=s=(0,n._)([(0,u.j)("esri.layers.support.AttachmentInfo")],l);const d=l},11282:(e,t,r)=>{r.d(t,{lA:()=>n,cv:()=>a,en:()=>i});var s=r(17452);function n(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,s.mN)(e):e}function a(e,t,r){const s={};for(const n in e){if("declaredClass"===n)continue;const i=e[n];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[n]=[];for(let e=0;e<i.length;e++)s[n][e]=a(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r&&r[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?i:JSON.stringify(i);else s[n]=i}return s}r(91040)},99306:(e,t,r)=>{function s(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=s(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{A:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5158,5732],{92835:(e,t,s)=>{s.d(t,{Z:()=>y});var r,i=s(43697),n=s(10736),a=s(70586),o=s(35463),l=s(5600),u=(s(67676),s(80442),s(75215),s(71715)),d=s(52011),c=s(30556);let h=r=class extends n.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return p}static get empty(){return g}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,a.pC)(this.start)?this.start.getTime():this.start,s=(0,a.pC)(this.end)?this.end.getTime():this.end,r=(0,a.pC)(e.start)?e.start.getTime():e.start,i=(0,a.pC)(e.end)?e.end.getTime():e.end;return t===r&&s===i}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,a.Po)(this.start,(t=>(0,o.JE)(t,e))),s=(0,a.Po)(this.end,(t=>(0,o.Nm)((0,o.JE)(t,e),1,e)));return new r({start:t,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,a.R2)(this.start,-1/0,(e=>e.getTime())),s=(0,a.R2)(this.end,1/0,(e=>e.getTime())),i=(0,a.R2)(e.start,-1/0,(e=>e.getTime())),n=(0,a.R2)(e.end,1/0,(e=>e.getTime()));let o,l;if(i>=t&&i<=s?o=i:t>=i&&t<=n&&(o=t),s>=i&&s<=n?l=s:n>=t&&n<=s&&(l=n),!isNaN(o)&&!isNaN(l)){const e=new r;return e.start=o===-1/0?null:new Date(o),e.end=l===1/0?null:new Date(l),e}return r.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:i,end:n}=this;return(0,a.pC)(i)&&(s.start=(0,o.Nm)(i,e,t)),(0,a.pC)(n)&&(s.end=(0,o.Nm)(n,e,t)),s}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=(0,a.pC)(this.start)&&(0,a.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=(0,a.pC)(this.end)&&(0,a.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:s})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,i._)([(0,u.r)("end")],h.prototype,"readEnd",null),(0,i._)([(0,c.c)("end")],h.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,i._)([(0,u.r)("start")],h.prototype,"readStart",null),(0,i._)([(0,c.c)("start")],h.prototype,"writeStart",null),h=r=(0,i._)([(0,d.j)("esri.TimeExtent")],h);const p=new h,g=new h({start:void 0,end:void 0}),y=h},84552:(e,t,s)=>{s.d(t,{Z:()=>c});var r,i=s(43697),n=s(10736),a=s(35463),o=s(5600),l=(s(67676),s(80442),s(75215),s(52011)),u=s(78981);let d=r=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}clone(){return new r({value:this.value,unit:this.unit})}};(0,i._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),(0,i._)([(0,o.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],d.prototype,"unit",void 0),d=r=(0,i._)([(0,l.j)("esri.TimeInterval")],d);const c=d},5732:(e,t,s)=>{s.d(t,{a:()=>n,c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},25929:(e,t,s)=>{s.d(t,{f:()=>n,i:()=>c,p:()=>p,r:()=>o,t:()=>a,w:()=>l});var r=s(70586),i=s(17452);function n(e,t){const s=t&&t.url&&t.url.path;if(e&&s&&(e=(0,i.hF)(e,s,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const s=(0,i.PF)(e,t.portalItem.itemUrl);d.test(s)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(s).path)}return h(e,t&&t.portal)}function a(e,t,s=0){if(!e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let r=(0,i.hF)(e);if(t){const s=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(s){const n=h(s,t.portal);r=(0,i.PF)(h(r,t.portal),n,n),r!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(r)}}return r=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(r,t&&t.portal),(0,i.YP)(r)&&(r=(0,i.Fv)(r)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,i.YP)(r)&&!(0,i.HK)(r)&&0===s&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(r)}),r}function o(e,t,s){return n(e,s)}function l(e,t,s,r){const i=a(e,r);void 0!==i&&(t[s]=i)}const u=/\/items\/([^\/]+)\/resources\//,d=/^\.\/resources\//;function c(e){const t=(0,r.pC)(e)?e.match(u):null;return(0,r.pC)(t)?t[1]:null}function h(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const s=`${t.urlKey}.${t.customBaseUrl}`;return(0,i.D6)(i.Gd,`${i.Gd.scheme}://${s}`)?(0,i.Ie)(e,t.portalHostname,s):(0,i.Ie)(e,s,t.portalHostname)}const p=Object.freeze({__proto__:null,fromJSON:n,toJSON:a,read:o,write:l,itemIdFromResourceUrl:c})},3920:(e,t,s)=>{s.d(t,{r:()=>d,p:()=>u});var r=s(43697),i=s(15923),n=s(61247),a=s(5600),o=s(52011),l=s(89749);const u=e=>{let t=class extends e{destroy(){var e,t;this.destroyed||(null==(e=this._get("handles"))||e.destroy(),null==(t=this._get("updatingHandles"))||t.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,o.j)("esri.core.HandleOwner")],t),t};let d=class extends(u(i.Z)){};d=(0,r._)([(0,o.j)("esri.core.HandleOwner")],d)},66643:(e,t,s)=>{s.d(t,{Ed:()=>n,UI:()=>a,q6:()=>o,mt:()=>l});var r=s(70586),i=s(95330);function n(e,t,s){return(0,i.as)(e.map(((e,r)=>t.apply(s,[e,r]))))}function a(e,t,s){return(0,i.as)(e.map(((e,r)=>t.apply(s,[e,r])))).then((e=>e.map((e=>e.value))))}function o(e){return(0,r.Wi)(e)?(0,i.DB)():e.then((e=>({ok:!0,value:e}))).catch((e=>({ok:!1,error:e})))}function l(e){return e.then((e=>({ok:!0,value:e}))).catch((e=>((0,i.r9)(e),{ok:!1,error:e})))}},45091:(e,t,s)=>{s.d(t,{Z:()=>l});var r=s(80442),i=s(71143);const n=4294967296,a=(0,r.Z)("esri-text-decoder")?new TextDecoder("utf-8"):null,o=(0,r.Z)("safari")||(0,r.Z)("ios")?6:(0,r.Z)("ff")?12:32;class l{constructor(e,t,s=0,r=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this.init(e,t,s,r)}init(e,t,s,r){this._data=e,this._dataView=t,this._pos=s,this._end=r}clone(){return new l(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*n;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*n;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,r){const i=this.getMessage(),n=e(i,t,s,r);return i.release(),n}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=l.pool.acquire();return t.init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t,s=this._pos,r=0;if(this._end-s>=10)do{if(t=e[s++],r|=127&t,0==(128&t))break;if(t=e[s++],r|=(127&t)<<7,0==(128&t))break;if(t=e[s++],r|=(127&t)<<14,0==(128&t))break;if(t=e[s++],r|=(127&t)<<21,0==(128&t))break;if(t=e[s++],r+=268435456*(127&t),0==(128&t))break;if(t=e[s++],r+=34359738368*(127&t),0==(128&t))break;if(t=e[s++],r+=4398046511104*(127&t),0==(128&t))break;if(t=e[s++],r+=562949953421312*(127&t),0==(128&t))break;if(t=e[s++],r+=72057594037927940*(127&t),0==(128&t))break;if(t=e[s++],r+=0x8000000000000000*(127&t),0==(128&t))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;s!==this._end&&(t=e[s],0!=(128&t));)++s,r+=(127&t)*i,i*=128;if(s===this._end)throw new Error("Varint overrun!");++s,r+=t*i}return this._pos=s,r}_decodeSVarint(){const e=this._decodeVarint();return e%2?-(e+1)/2:e/2}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>o&&a){const r=e.subarray(t,s);return a.decode(r)}let r="",i="";for(let n=t;n<s;++n){const t=e[n];128&t?i+="%"+t.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}}l.pool=new i.Z(l,null,(e=>{e._data=null,e._dataView=null}))},35463:(e,t,s)=>{s.d(t,{rJ:()=>o,Nm:()=>n,JE:()=>a}),s(80442);const r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function n(e,t,s){const r=new Date(e.getTime());if(t&&s){const e=i[s],{getter:n,setter:a,multiplier:o}=e;r[a](r[n]()+t*o)}return r}function a(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function o(e,t,s){return 0===e?0:e*r[t]/r[s]}},60437:(e,t,s)=>{s.d(t,{Gv:()=>f,Ue:()=>i,cS:()=>h,fS:()=>y,TC:()=>a,pp:()=>o,JR:()=>p,al:()=>n,t8:()=>c,Tn:()=>d,op:()=>u,dp:()=>l});var r=s(70586);function i(e=m){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,s,r,n,a,o=i()){return o[0]=e,o[1]=t,o[2]=s,o[3]=r,o[4]=n,o[5]=a,o}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function l(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function u(e,t,s=e){return s[0]=t[0],s[1]=t[1],s[2]=t[2],s!==e&&(s[3]=e[3],s[4]=e[4],s[5]=e[5]),s}function d(e,t,s=e){return s[3]=t[0],s[4]=t[1],s[5]=t[2],s!==e&&(s[0]=e[0],s[1]=e[1],s[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?c(e,f):i(f)}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function y(e,t,s){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!g(e)||!g(t))return!1;if(s){for(let r=0;r<e.length;r++)if(!s(e[r],t[r]))return!1}else for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}s(6570),s(24470);const f=[1/0,1/0,1/0,-1/0,-1/0,-1/0],m=[0,0,0,0,0,0];i()},37549:(e,t,s)=>{s.d(t,{H:()=>a});var r=s(80442),i=s(24133);const n={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.QB(9,(0,r.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((s,r)=>{e[t++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,s){n.minX=t[0],n.minY=t[1],n.maxX=t[2],n.maxY=t[3],e.search(n,s)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,s)=>{s.d(t,{Z:()=>y});var r=s(20102),i=s(32448),n=s(92604),a=s(70586),o=s(60437),l=s(24470),u=s(98732),d=s(37549),c=s(29730),h=s(70272),p=s(5428);const g={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new h.ZP(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(e.centroid||(e.centroid=(0,c.Y)(new p.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class y{constructor(e){this.geometryInfo=e,this._boundsStore=new d.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new i.Z,this.featureAdapter=g}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,l.Ue)(l.Gv);return this._featuresById.forEach((t=>{const s=this._boundsStore.get(t.objectId);s&&(e[0]=Math.min(s[0],e[0]),e[1]=Math.min(s[1],e[1]),e[2]=Math.max(s[2],e[2]),e[3]=Math.max(s[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,a.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,s){for(const r of e){const e=this._boundsStore.get(r.objectId);e&&t((0,o.JR)(s,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,s)=>{this._markedIds.has(s)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void n.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let i;if(this._markedIds.add(t),s?(e.displayId=s.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,a.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,a.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.$)((0,a.pC)(i)?i:(0,l.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,a.pC)(i)&&this._boundsStore.set(t,i),this._featuresById.set(t,e)}_remove(e){return(0,a.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},1231:(e,t,s)=>{s.d(t,{Z:()=>f});var r,i=s(43697),n=s(35454),a=s(10736),o=s(5600),l=(s(67676),s(80442),s(75215)),u=s(36030),d=s(71715),c=s(52011),h=s(72729),p=s(86719);const g=new n.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=r=class extends a.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let s;try{s=JSON.parse(t)}catch(e){}return s?s.value:null}readValueType(e,{description:t}){let s;try{s=JSON.parse(t)}catch(e){}return s?g.fromJSON(s.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i._)([(0,o.Cb)()],y.prototype,"description",void 0),(0,i._)([(0,d.r)("description")],y.prototype,"readDescription",null),(0,i._)([(0,o.Cb)({types:h.V5,json:{read:{reader:h.im},write:!0}})],y.prototype,"domain",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i._)([(0,o.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"length",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i._)([(0,u.J)(p.v)],y.prototype,"type",void 0),(0,i._)([(0,o.Cb)()],y.prototype,"valueType",void 0),(0,i._)([(0,d.r)("valueType",["description"])],y.prototype,"readValueType",null),y=r=(0,i._)([(0,c.j)("esri.layers.support.Field")],y);const f=y},30547:(e,t,s)=>{s.d(t,{Z:()=>b});var r,i=s(43697),n=s(92835),a=s(84552),o=s(10736),l=s(22974),u=s(70586),d=s(5600),c=(s(75215),s(71715)),h=s(52011),p=s(30556);s(67676),s(80442);let g=r=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new r({respectsDaylightSaving:e,timezone:t})}};(0,i._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"respectsDaylightSaving",void 0),(0,i._)([(0,c.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],g.prototype,"readRespectsDaylightSaving",null),(0,i._)([(0,d.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],g.prototype,"timezone",void 0),g=r=(0,i._)([(0,h.j)("esri.layers.support.TimeReference")],g);const y=g;var f,m=s(78981);let v=f=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const s=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new n.Z({start:s,end:r})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new a.Z({value:t.timeInterval,unit:m.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new a.Z({value:t.defaultTimeInterval,unit:m.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const s=e.toJSON();t.timeInterval=s.value,t.timeIntervalUnits=s.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:s,interval:r,startField:i,timeReference:n,fullTimeExtent:a,trackIdField:o,useTime:u}=this;return new f({cumulative:e,endField:t,hasLiveData:s,interval:r,startField:i,timeReference:(0,l.d9)(n),fullTimeExtent:(0,l.d9)(a),trackIdField:o,useTime:u})}};(0,i._)([(0,d.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],v.prototype,"cumulative",void 0),(0,i._)([(0,d.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],v.prototype,"endField",void 0),(0,i._)([(0,d.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"fullTimeExtent",void 0),(0,i._)([(0,c.r)("fullTimeExtent",["timeExtent"])],v.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.c)("fullTimeExtent")],v.prototype,"writeFullTimeExtent",null),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],v.prototype,"hasLiveData",void 0),(0,i._)([(0,d.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"interval",void 0),(0,i._)([(0,c.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],v.prototype,"readInterval",null),(0,i._)([(0,p.c)("interval")],v.prototype,"writeInterval",null),(0,i._)([(0,d.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],v.prototype,"startField",void 0),(0,i._)([(0,d.Cb)({type:y,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"timeReference",void 0),(0,i._)([(0,d.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"trackIdField",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],v.prototype,"useTime",void 0),v=f=(0,i._)([(0,h.j)("esri.layers.support.TimeInfo")],v);const b=v},66677:(e,t,s)=>{s.d(t,{ld:()=>g,B5:()=>c,M8:()=>f,G:()=>_,Qc:()=>h,DR:()=>p,Nm:()=>m,XG:()=>v,a7:()=>y,wH:()=>b});var r=s(70586),i=s(17452),n=s(25929);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},o=Object.values(a),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${o.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${o.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),d=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function c(e){return!!l.test(e)}function h(e){const t=(0,i.mN)(e),s=t.path.match(l)||t.path.match(u);if(!s)return null;const[,r,n,o,d]=s,c=n.indexOf("/");return{title:g(-1!==c?n.slice(c+1):n),serverType:a[o.toLowerCase()],sublayer:null!=d&&""!==d?parseInt(d,10):null,url:{path:r}}}function p(e){const t=(0,i.mN)(e).path.match(d);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function g(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function y(e,t){const s=[];if(e){const t=h(e);(0,r.pC)(t)&&t.title&&s.push(t.title)}if(t){const e=g(t);s.push(e)}if(2===s.length){if(-1!==s[0].toLowerCase().indexOf(s[1].toLowerCase()))return s[0];if(-1!==s[1].toLowerCase().indexOf(s[0].toLowerCase()))return s[1]}return s.join(" - ")}function f(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),s=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&s}function m(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function v(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const s=(0,i.mN)(t),n=h(s.path);let a;if((0,r.pC)(n))null!=n.sublayer&&null==e.layer.layerId&&(a=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=p(s.path);(0,r.pC)(e)&&(t=e.serviceUrl,a=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:a}}function b(e,t,s,r,a){(0,n.w)(t,r,"url",a),r.url&&null!=e.layerId&&(r.url=(0,i.v_)(r.url,s,e.layerId.toString()))}function _(e){if(!e)return!1;const t=e.toLowerCase(),s=-1!==t.indexOf("/services/"),r=-1!==t.indexOf("/mapserver/wmsserver"),i=-1!==t.indexOf("/imageserver/wmsserver"),n=-1!==t.indexOf("/wmsserver");return s&&(r||i||n)}},72729:(e,t,s)=>{s.d(t,{im:()=>T,V5:()=>C}),s(80442);var r,i=s(43697),n=s(22974),a=s(5600),o=(s(75215),s(36030)),l=s(52011),u=s(10736);s(67676);let d=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:!0}})],d.prototype,"code",void 0),d=r=(0,i._)([(0,l.j)("esri.layers.support.CodedValue")],d);const c=d,h=new(s(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,o.J)(h)],p.prototype,"type",void 0),p=(0,i._)([(0,l.j)("esri.layers.support.Domain")],p);const g=p;var y;let f=y=class extends g{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const s=String(e);this.codedValues.some((e=>(String(e.code)===s&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,n.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,a.Cb)({type:[c],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,i._)([(0,o.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=y=(0,i._)([(0,l.j)("esri.layers.support.CodedValueDomain")],f);const m=f;var v;s(92604),s(37697);let b=v=class extends g{constructor(e){super(e),this.type="inherited"}clone(){return new v}};(0,i._)([(0,o.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=v=(0,i._)([(0,l.j)("esri.layers.support.InheritedDomain")],b);const _=b;var w;let I=w=class extends g{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,s){t[s]=[this.minValue||0,e]}}}})],I.prototype,"maxValue",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,s){t[s]=[e,this.maxValue||0]}}}})],I.prototype,"minValue",void 0),(0,i._)([(0,o.J)({range:"range"})],I.prototype,"type",void 0),I=w=(0,i._)([(0,l.j)("esri.layers.support.RangeDomain")],I);const S=I,C={key:"type",base:g,typeMap:{range:I,"coded-value":m,inherited:_}};function T(e){if(!e||!e.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},86719:(e,t,s)=>{s.d(t,{v:()=>r});const r=new(s(35454).Xn)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},78981:(e,t,s)=>{s.d(t,{v:()=>r});const r=(0,s(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},77863:(e,t,s)=>{s.d(t,{K9:()=>E,O7:()=>c,G$:()=>C});var r=s(20102),i=s(70586),n=s(45091),a=s(5428),o=s(78760);const l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],d=["upperLeft","lowerLeft"];function c(e){return e>=l.length?null:l[e]}function h(e){return e>=u.length?null:u[e]}function p(e){return e>=d.length?null:d[e]}function g(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,s){const r=t.createPointGeometry(s);for(;e.next();)switch(e.tag()){case 3:{const s=e.getUInt32(),i=e.pos()+s;let n=0;for(;e.pos()<i;)t.addCoordinatePoint(r,e.getSInt64(),n++);break}default:e.skip()}return r}function f(e,t,s){const r=t.createGeometry(s),i=2+(s.hasZ?1:0)+(s.hasM?1:0);for(;e.next();)switch(e.tag()){case 2:{const s=e.getUInt32(),i=e.pos()+s;let n=0;for(;e.pos()<i;)t.addLength(r,e.getUInt32(),n++);break}case 3:{const s=e.getUInt32(),n=e.pos()+s;let a=0;for(t.allocateCoordinates(r);e.pos()<n;)t.addCoordinate(r,e.getSInt64(),a),a++,a===i&&(a=0);break}default:e.skip()}return r}function m(e){const t=new a.Z;let s="esriGeometryPoint";for(;e.next();)switch(e.tag()){case 2:{const s=e.getUInt32(),r=e.pos()+s;for(;e.pos()<r;)t.lengths.push(e.getUInt32());break}case 3:{const s=e.getUInt32(),r=e.pos()+s;for(;e.pos()<r;)t.coords.push(e.getSInt64());break}case 1:s=o.A[e.getEnum()];break;default:e.skip()}return{queryGeometry:t,queryGeometryType:s}}function v(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getSInt32();case 5:return e.getUInt32();case 6:return e.getInt64();case 7:return e.getUInt64();case 8:return e.getSInt64();case 9:return e.getBool();default:return e.skip(),null}return null}function b(e){const t={type:c(0)};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.type=c(e.getEnum());break;case 3:t.alias=e.getString();break;case 4:t.sqlType=h(e.getEnum());break;case 5:default:e.skip();break;case 6:t.defaultValue=e.getString()}return t}function _(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.name=e.getString();break;case 2:t.isSystemMaintained=e.getBool();break;default:e.skip()}return t}function w(e,t,s,r){const i=t.createFeature(s);let n=0;for(;e.next();)switch(e.tag()){case 1:{const t=r[n++].name;i.attributes[t]=e.processMessage(v);break}case 2:i.geometry=e.processMessageWithArgs(f,t,s);break;case 4:i.centroid=e.processMessageWithArgs(y,t,s);break;default:e.skip()}return i}function I(e){const t=[1,1,1,1];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function S(e){const t=[0,0,0,0];for(;e.next();)switch(e.tag()){case 1:t[0]=e.getDouble();break;case 2:t[1]=e.getDouble();break;case 4:t[2]=e.getDouble();break;case 3:t[3]=e.getDouble();break;default:e.skip()}return t}function C(e){const t={originPosition:p(0)};for(;e.next();)switch(e.tag()){case 1:t.originPosition=p(e.getEnum());break;case 2:t.scale=e.processMessage(I);break;case 3:t.translate=e.processMessage(S);break;default:e.skip()}return t}function T(e){const t={};for(;e.next();)switch(e.tag()){case 1:t.shapeAreaFieldName=e.getString();break;case 2:t.shapeLengthFieldName=e.getString();break;case 3:t.units=e.getString();break;default:e.skip()}return t}function F(e,t){const s=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:s.wkid=e.getUInt32();break;case 5:s.wkt=e.getString();break;case 2:s.latestWkid=e.getUInt32();break;case 3:s.vcsWkid=e.getUInt32();break;case 4:s.latestVcsWkid=e.getUInt32();break;default:e.skip()}return s}function x(e,t){const s=t.createFeatureResult();s.geometryType=g(t,0);let r=!1;for(;e.next();)switch(e.tag()){case 1:s.objectIdFieldName=e.getString();break;case 3:s.globalIdFieldName=e.getString();break;case 4:s.geohashFieldName=e.getString();break;case 5:s.geometryProperties=e.processMessage(T);break;case 7:s.geometryType=g(t,e.getEnum());break;case 8:s.spatialReference=e.processMessageWithArgs(F,t);break;case 10:s.hasZ=e.getBool();break;case 11:s.hasM=e.getBool();break;case 12:s.transform=e.processMessage(C);break;case 9:{const t=e.getBool();s.exceededTransferLimit=t;break}case 13:t.addField(s,e.processMessage(b));break;case 15:r||(t.prepareFeatures(s),r=!0),t.addFeature(s,e.processMessageWithArgs(w,t,s,s.fields));break;case 2:s.uniqueIdField=e.processMessage(_);break;default:e.skip()}return t.finishFeatureResult(s),s}function k(e,t){const s={};let r=null;for(;e.next();)switch(e.tag()){case 4:r=e.processMessageWithArgs(m);break;case 1:s.featureResult=e.processMessageWithArgs(x,t);break;default:e.skip()}return(0,i.pC)(r)&&s.featureResult&&t.addQueryGeometry(s,r),s}function E(e,t){try{const s=2,r=new n.Z(new Uint8Array(e),new DataView(e)),i={};for(;r.next();)r.tag()===s?i.queryResult=r.processMessageWithArgs(k,t):r.skip();return i}catch(e){throw new r.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,s)=>{s.d(t,{A:()=>l,J:()=>u});var r=s(67900),i=s(8744),n=s(70272),a=s(44876),o=s(5428);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this.options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new a.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this.options.sourceSpatialReference||!e.spatialReference||(0,i.fS)(e.spatialReference,this.options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,r._R)(this.options.sourceSpatialReference)/(0,r._R)(e.spatialReference);if(1!==t)for(const s of e.features){if(!(0,n.S6)(s))continue;const e=s.geometry.coords;for(let s=2;s<e.length;s+=3)e[s]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new n.ZP}createSpatialReference(){return{wkid:0}}createGeometry(){return new o.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new o.Z}}},45178:(e,t,s)=>{s.d(t,{C:()=>i});var r=s(77863);function i(e,t){const s=(0,r.K9)(e,t),i=s.queryResult.featureResult,n=s.queryResult.queryGeometry,a=s.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=n,i.queryGeometryType=a),i}},34599:(e,t,s)=>{s.r(t),s.d(t,{executeQuery:()=>g,executeQueryForCount:()=>v,executeQueryForExtent:()=>b,executeQueryForIds:()=>m,executeQueryPBF:()=>y,executeQueryPBFBuffer:()=>f,queryToQueryStringParameters:()=>p,runQuery:()=>_});var r=s(3172),i=s(70586),n=s(17452),a=s(33955),o=s(38581),l=s(66677),u=s(45178),d=s(28694),c=s(99306);const h="Layer does not support extent calculation.";function p(e,t,s=!1){const r=e.geometry,n=e.toJSON(),o=n,l=e.outSpatialReference;let u,d;if((0,i.pC)(r)){if(u=r.spatialReference,d=r.spatialReference.wkid||JSON.stringify(r.spatialReference),o.geometryType=(0,a.Ji)(r),"extent"===r.type)o.geometry=`${r.xmin},${r.ymin},${r.xmax},${r.ymax}`;else if("point"===r.type)o.geometry=`${r.x},${r.y}`;else{const e=r.toJSON();delete e.spatialReference,o.geometry=JSON.stringify(e)}o.inSR=d}if(u||(u=l),n.groupByFieldsForStatistics&&(o.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds&&(o.objectIds=n.objectIds.join(",")),n.orderByFields&&(o.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(null!=t&&t.returnCountOnly||null!=t&&t.returnExtentOnly||null!=t&&t.returnIdsOnly)?delete o.outFields:-1!==n.outFields.indexOf("*")?o.outFields="*":o.outFields=n.outFields.join(","),n.outSR?o.outSR=n.outSR.wkid||JSON.stringify(n.outSR):r&&(n.returnGeometry||n.returnCentroid)&&(o.outSR=o.inSR),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(o.outStatistics=JSON.stringify(n.outStatistics)),n.pixelSize&&(o.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(s&&(0,i.pC)(u)&&(0,i.pC)(e.quantizationParameters)&&(0,i.pC)(e.quantizationParameters.extent)&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,o.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(o.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(o.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(o.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:s}=e;null==t&&null==s||(o.time=t===s?t:`${null==t?"null":t},${null==s?"null":s}`),delete n.timeExtent}return o}async function g(e,t,s,r){const n=(0,i.pC)(t.timeExtent)&&t.timeExtent.isEmpty?{data:{features:[]}}:await _(e,t,"json",r);return(0,d.p)(t,s,n.data),n}async function y(e,t,s,r){if((0,i.pC)(t.timeExtent)&&t.timeExtent.isEmpty)return Promise.resolve({data:s.createFeatureResult()});const n=await f(e,t,r),a=n;return a.data=(0,u.C)(n.data,s),a}function f(e,t,s){return _(e,t,"pbf",s)}function m(e,t,s){return(0,i.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):_(e,t,"json",s,{returnIdsOnly:!0})}function v(e,t,s){return(0,i.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):_(e,t,"json",s,{returnIdsOnly:!0,returnCountOnly:!0})}function b(e,t,s){return(0,i.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):_(e,t,"json",s,{returnExtentOnly:!0,returnCountOnly:!0}).then((e=>{const t=e.data;if(t.hasOwnProperty("extent"))return e;if(t.features)throw new Error(h);if(t.hasOwnProperty("count"))throw new Error(h);return e}))}function _(e,t,s,a={},u={}){const d="string"==typeof e?(0,n.mN)(e):e,h=t.geometry?[t.geometry]:[];return a.responseType="pbf"===s?"array-buffer":"json",(0,o.aX)(h,null,a).then((e=>{const o=e&&e[0];(0,i.pC)(o)&&((t=t.clone()).geometry=o);const h=(0,l.M8)(d.path),g=(0,c.A)({...d.query,f:s,...u,...p(t,u,h)});return(0,r.default)((0,n.v_)(d.path,"query"),{...a,query:{...g,...a.query}})}))}},28694:(e,t,s)=>{s.d(t,{p:()=>n});var r=s(70586),i=s(69285);function n(e,t,s){if(!s||!s.features||!s.hasZ)return;const n=(0,i.k)(s.geometryType,t,e.outSpatialReference);if(!(0,r.Wi)(n))for(const e of s.features)n(e.geometry)}},98046:(e,t,s)=>{s.d(t,{Z:()=>p});var r,i=s(43697),n=s(22303),a=s(22974),o=s(5600),l=s(75215),u=s(36030),d=s(52011),c=s(899);let h=r=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new r({fromColor:(0,a.d9)(this.fromColor),toColor:(0,a.d9)(this.toColor),algorithm:this.algorithm})}};(0,i._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,i._)([(0,o.Cb)({type:n.Z,json:{type:[l.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,i._)([(0,o.Cb)({type:n.Z,json:{type:[l.z8],write:!0}})],h.prototype,"toColor",void 0),(0,i._)([(0,o.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=r=(0,i._)([(0,d.j)("esri.rest.support.AlgorithmicColorRamp")],h);const p=h},899:(e,t,s)=>{s.d(t,{Z:()=>l});var r=s(43697),i=s(10736),n=s(5600),a=(s(67676),s(80442),s(75215),s(52011));let o=class extends i.wq{constructor(e){super(e),this.type=null}};(0,r._)([(0,n.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,r._)([(0,a.j)("esri.rest.support.ColorRamp")],o);const l=o},1515:(e,t,s)=>{s.d(t,{Z:()=>c});var r,i=s(43697),n=s(22974),a=s(5600),o=(s(75215),s(52011)),l=s(98046),u=s(899);let d=r=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new r({colorRamps:(0,n.d9)(this.colorRamps)})}};(0,i._)([(0,a.Cb)({type:[l.Z],json:{write:!0}})],d.prototype,"colorRamps",void 0),(0,i._)([(0,a.Cb)({type:["multipart"]})],d.prototype,"type",void 0),d=r=(0,i._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],d);const c=d},94593:(e,t,s)=>{s.d(t,{i:()=>o,V:()=>a});var r=s(98046),i=s(899),n=s(1515);const a={key:"type",base:i.Z,typeMap:{algorithmic:r.Z,multipart:n.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?r.Z.fromJSON(e):"multipart"===e.type?n.Z.fromJSON(e):null:null}},89164:(e,t,s)=>{s.d(t,{Z:()=>p});var r=s(43697),i=s(22303),n=s(35454),a=s(10736),o=s(5600),l=(s(67676),s(80442),s(75215),s(71715)),u=s(52011);const d=new n.Xn({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 c=0,h=class extends a.wq{constructor(e){super(e),this.id="sym"+c++,this.type=null}set color(e){this._set("color",e)}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,r._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:d.write}}})],h.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:i.Z,value:new i.Z([0,0,0,1]),json:{write:{allowNull:!0}}})],h.prototype,"color",null),(0,r._)([(0,l.r)("color")],h.prototype,"readColor",null),h=(0,r._)([(0,u.j)("esri.symbols.Symbol")],h);const p=h},99306:(e,t,s)=>{function r(e){const t={};for(const s in e){if("declaredClass"===s)continue;const i=e[s];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){t[s]=[];for(let e=0;e<i.length;e++)t[s][e]=r(i[e])}else"object"==typeof i?i.toJSON&&(t[s]=JSON.stringify(i)):t[s]=i}return t}s.d(t,{A:()=>r})},41650:(e,t,s)=>{s.r(t),s.d(t,{FeatureServiceSnappingSourceWorker:()=>Y,default:()=>Q});var r=s(43697),i=s(32448),n=s(61247),a=s(70586),o=s(95330),l=s(43050),u=s(5600),d=s(67676),c=(s(80442),s(75215),s(52011)),h=s(82971),p=s(57191),g=s(7673),y=s(11145),f=s(30547),m=s(57444),v=s(15923);let b=class extends v.Z{constructor(){super(...arguments),this.updating=!1,this.pending=[]}push(e,t){this.pending.push({promise:e,callback:t}),1===this.pending.length&&this.process()}process(){if(!this.pending.length)return void(this.updating=!1);this.updating=!0;const e=this.pending[0];e.promise.then((t=>e.callback(t))).catch((()=>{})).then((()=>{this.pending.shift(),this.process()}))}};(0,r._)([(0,u.Cb)()],b.prototype,"updating",void 0),b=(0,r._)([(0,c.j)("esri.core.AsyncSequence")],b);var _=s(3920),w=s(50758),I=s(92604),S=s(6570),C=s(24470),T=s(98732),F=s(78760),x=s(34599),k=s(66643);class E{constructor(e,t){this.data=e,this.resolution=t,this.state={type:0},this.alive=!0}process(e){switch(this.state.type){case 0:return this.state=this.gotoFetchCount(this.state,e),this.state.task.promise.then(e.resume,e.resume);case 1:case 3:break;case 2:return this.state=this.gotoFetchFeatures(this.state,e),this.state.task.promise.then(e.resume,e.resume);case 4:this.state=this.goToDone(this.state,e)}return null}get debugInfo(){return{data:this.data,featureCount:this.featureCount,state:this.stateToString}}get featureCount(){switch(this.state.type){case 0:case 1:return 0;case 2:return this.state.featureCount;case 3:return this.state.previous.featureCount;case 4:return this.state.features.length;case 5:return this.state.previous.features.length}}get stateToString(){switch(this.state.type){case 0:return"created";case 1:return"fetch-count";case 2:return"fetched-count";case 3:return"fetch-features";case 4:return"fetched-features";case 5:return"done"}}gotoFetchCount(e,t){return{type:1,previous:e,task:(0,o.vr)((async e=>{const s=await(0,k.mt)(t.fetchCount(this,e));1===this.state.type&&(this.state=this.gotoFetchedCount(this.state,s.ok?s.value:1/0))}))}}gotoFetchedCount(e,t){return{type:2,featureCount:t,previous:e}}gotoFetchFeatures(e,t){return{type:3,previous:e,task:(0,o.vr)((async s=>{const r=await(0,k.mt)(t.fetchFeatures(this,e.featureCount,s));3===this.state.type&&(this.state=this.gotoFetchedFeatures(this.state,r.ok?r.value:[]))}))}}gotoFetchedFeatures(e,t){return{type:4,previous:e,features:t}}goToDone(e,t){return t.finish(this,e.features),{type:5,previous:e}}reset(){const e=this.state;switch(this.state={type:0},e.type){case 0:case 2:case 4:case 5:break;case 1:case 3:e.task.abort()}}intersects(e){return!(!(0,a.Wi)(e)&&this.data.extent)||((0,C.oJ)(e,O),(0,C.kK)(this.data.extent,O))}}const O=(0,C.Ue)(),R=I.Z.getLogger("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher");let j=class extends _.r{constructor(e){super(e),this.tilesOfInterest=[],this.availability=0,this.pendingTiles=new Map,this.pendingEdits=new b,this.pendingEditsAbortController=new AbortController}get minimumVerticesPerFeature(){var e;switch(null==(e=this.store)?void 0:e.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}set filter(e){const t=this._get("filter"),s=this.filterProperties(e);JSON.stringify(t)!==JSON.stringify(s)&&this._set("filter",s)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&((0,a.pC)(e)&&(0,a.pC)(t)&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this.updatingHandles.updating||this.pendingEdits.updating}initialize(){this.initializeFetchExtent(),this.updatingHandles.add(this,"configuration",(()=>this.refresh())),this.updatingHandles.add(this,"tilesOfInterest",((e,t)=>{(0,d.fS)(e,t,(({id:e},{id:t})=>e===t))||this.process()}),1)}destroy(){this.pendingTiles.forEach((e=>this.deletePendingTile(e))),this.pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this.pendingEditsAbortController.abort(),this.pendingEditsAbortController=null}refresh(){this.store.refresh(),this.pendingTiles.forEach((e=>this.deletePendingTile(e))),this.process()}applyEdits(e){this.pendingEdits.push(e,(async e=>{if(0===e.addedFeatures.length&&0===e.updatedFeatures.length&&0===e.deletedFeatures.length)return;for(const[,e]of this.pendingTiles)e.reset();const t={...e,deletedFeatures:e.deletedFeatures.map((({objectId:e,globalId:t})=>e&&-1!==e?e:this.lookupObjectIdByGlobalId(t)))};await this.updatingHandles.addPromise(this.store.processEdits(t,((e,t)=>this.queryFeaturesById(e,t)),this.pendingEditsAbortController.signal)),this.processPendingTiles()}))}initializeFetchExtent(){if(!this.capabilities.query.supportsExtent)return;const e=(0,o.vr)((async e=>{try{var t;const s=await(0,x.executeQueryForExtent)(this.url,new m.Z({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:!!this.capabilities.query.supportsCacheHint||void 0}),{query:this.configuration.customParameters,signal:e});this.store.extent=S.Z.fromJSON(null==(t=s.data)?void 0:t.extent)}catch(e){(0,o.r9)(e),R.warn("Failed to fetch data extent",e)}}));this.updatingHandles.addPromise(e.promise.then((()=>this.process()))),this.handles.add((0,w.kB)((()=>e.abort())))}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this.pendingTiles.values()).map((e=>e.debugInfo)),storedTiles:this.store.debugInfo}}process(){this.markTilesNotAlive(),this.createPendingTiles(),this.deletePendingTiles(),this.processPendingTiles()}markTilesNotAlive(){for(const[,e]of this.pendingTiles)e.alive=!1}createPendingTiles(){const e=this.collectMissingTilesInfo();if(this.setAvailability((0,a.Wi)(e)?1:e.coveredArea/e.fullArea),!(0,a.Wi)(e))for(const{data:t,resolution:s}of e.missingTiles){const e=this.pendingTiles.get(t.id);e?(e.resolution=s,e.alive=!0):this.createPendingTile(t,s)}}collectMissingTilesInfo(){let e=null;for(let t=this.tilesOfInterest.length-1;t>=0;t--){const s=this.tilesOfInterest[t],r=this.store.process(s,((e,t)=>this.verifyTileComplexity(e,t)));(0,a.Wi)(e)?e=r:e.prepend(r)}return e}deletePendingTiles(){for(const[,e]of this.pendingTiles)e.alive||this.deletePendingTile(e)}processPendingTiles(){const e={fetchCount:(e,t)=>this.fetchCount(e,t),fetchFeatures:(e,t,s)=>this.fetchFeatures(e,t,s),finish:(e,t)=>this.finishPendingTile(e,t),resume:()=>this.processPendingTiles()};if(this.ensureFetchAllCounts(e))for(const[,t]of this.pendingTiles)this.verifyTileComplexity(this.store.getFeatureCount(t.data),t.resolution)&&this.updatingHandles.addPromise(t.process(e))}verifyTileComplexity(e,t){return this.verifyVertexComplexity(e)&&this.verifyFeatureDensity(e,t)}verifyVertexComplexity(e){return e*this.minimumVerticesPerFeature<B}verifyFeatureDensity(e,t){if((0,a.Wi)(this.tileInfo))return!1;const s=this.tileSize*t;return e*(D/(s*s))<q}ensureFetchAllCounts(e){let t=!0;for(const[,s]of this.pendingTiles)s.state.type<2&&this.updatingHandles.addPromise(s.process(e)),s.state.type<=1&&(t=!1);return t}finishPendingTile(e,t){this.store.add(e.data,t),this.deletePendingTile(e),this.updateAvailability()}updateAvailability(){const e=this.collectMissingTilesInfo();this.setAvailability((0,a.Wi)(e)?1:e.coveredArea/e.fullArea)}setAvailability(e){this._set("availability",e)}createPendingTile(e,t){const s=new E(e,t);return this.pendingTiles.set(e.id,s),s}deletePendingTile(e){e.reset(),this.pendingTiles.delete(e.data.id)}async fetchCount(e,t){return this.store.fetchCount(e.data,this.url,this.createCountQuery(e),{query:this.customParameters,timeout:P,signal:t})}async fetchFeatures(e,t,s){let r,i=0,n=0,o=t;for(;;){const l=this.createFeaturesQuery(e),u=this.setPagingParameters(l,i,o),{features:d,exceededTransferLimit:c}=await this.queryFeatures(l,s);if(u&&(i+=(0,a.Wg)(l.num)),n+=d.length,r=r?r.concat(d):d,o=t-n,!u||!c||o<=0)return r}}filterProperties(e){return(0,a.Wi)(e)?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}lookupObjectIdByGlobalId(e){const t=this.globalIdField,s=this.objectIdField;if((0,a.Wi)(t))throw new Error("Expected globalIdField to be defined");let r=null;if(this.store.featureStore.forEach((i=>{var n;e===i.attributes[t]&&(r=null!=(n=i.objectId)?n:i.attributes[s])})),(0,a.Wi)(r))throw new Error(`Expected to find a feature with globalId ${e}`);return r}queryFeaturesById(e,t){const s=this.createFeaturesQuery(null);return s.objectIds=e,this.queryFeatures(s,t)}queryFeatures(e,t){return this.capabilities.query.supportsFormatPBF?this.queryFeaturesPBF(e,t):this.queryFeaturesJSON(e,t)}async queryFeaturesPBF(e,t){const{sourceSpatialReference:s}=this,{data:r}=await(0,x.executeQueryPBF)(this.url,e,new F.J({sourceSpatialReference:s}),{query:this.configuration.customParameters,timeout:P,signal:t});return(0,T.lM)(r)}async queryFeaturesJSON(e,t){const{sourceSpatialReference:s}=this,{data:r}=await(0,x.executeQuery)(this.url,e,s,{query:this.configuration.customParameters,timeout:P,signal:t});return(0,T.h_)(r,this.objectIdField)}createCountQuery(e){const t=this.createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}createFeaturesQuery(e){const t=this.createBaseQuery(e);return t.outFields=this.globalIdField?[this.globalIdField,this.objectIdField]:[this.objectIdField],t.returnGeometry=!0,(0,a.pC)(e)&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}createBaseQuery(e){const t=new m.Z({returnZ:!1,returnM:!1,geometry:(0,a.pC)(this.tileInfo)&&(0,a.pC)(e)?(0,C.HH)(e.data.extent,this.tileInfo.spatialReference):void 0}),s=this.configuration.filter;return(0,a.pC)(s)&&(t.where=s.where,t.gdbVersion=s.gdbVersion,t.timeExtent=s.timeExtent),t.outSpatialReference=this.spatialReference,t}setPagingParameters(e,t,s){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:r,supportsCacheHint:i,tileMaxRecordCount:n,maxRecordCount:a,supportsResultType:o}=this.capabilities.query,l=r?m.Z.MAX_MAX_RECORD_COUNT_FACTOR:1,u=l*((o||i)&&n?n:a||M);return e.start=t,r?(e.maxRecordCountFactor=Math.min(l,Math.ceil(s/u)),e.num=Math.min(s,e.maxRecordCountFactor*u)):e.num=Math.min(s,u),!0}};(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"url",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"objectIdField",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"globalIdField",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"capabilities",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"sourceSpatialReference",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"spatialReference",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],j.prototype,"store",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"minimumVerticesPerFeature",null),(0,r._)([(0,u.Cb)()],j.prototype,"filter",null),(0,r._)([(0,u.Cb)()],j.prototype,"customParameters",null),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"configuration",null),(0,r._)([(0,u.Cb)()],j.prototype,"tileInfo",null),(0,r._)([(0,u.Cb)()],j.prototype,"tileSize",null),(0,r._)([(0,u.Cb)()],j.prototype,"tilesOfInterest",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"updating",null),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"availability",void 0),j=(0,r._)([(0,c.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],j);const M=2e3,P=6e5,B=1e6,D=25,q=1;function N(e){return 32+e.length}function A(e,t){return 32+e.length*t}var V=s(37549);class U{constructor(){this._store=new Map,this._byteSize=0}set(e,t){this.delete(e),this._store.set(e,t),this._byteSize+=t.byteSize}delete(e){const t=this._store.get(e);return!!this._store.delete(e)&&(this._byteSize-=t.byteSize,!0)}get(e){return this.used(e),this._store.get(e)}has(e){return this.used(e),this._store.has(e)}clear(){this._store.clear()}applyByteSizeLimit(e,t){for(const[s,r]of this._store){if(this._byteSize<=e)break;this.delete(s),t(r)}}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}used(e){const t=this._store.get(e);t&&(this._store.delete(e),this._store.set(e,t))}}let Z=class extends v.Z{constructor(e){super(e),this.tileInfo=null,this.extent=null,this.maximumByteSize=10485760,this.tileBounds=new V.H,this.tiles=new U,this.refCounts=new Map,this.tileFeatureCounts=new Map,this.tmpBoundingRect=(0,C.Ue)()}add(e,t){const s=[];for(const e of t)0===this.referenceFeature(e.objectId)&&s.push(e);this.addTileStorage(e,new Set(t.map((({objectId:e})=>e))),function(e){return e.reduce(((e,t)=>e+function(e){return 32+function(e){if((0,a.Wi)(e))return 0;const t=A(e.lengths,4);return 32+A(e.coords,8)+t}(e.geometry)+function(e){if(!e)return 0;let t=32;for(const s in e)if(e.hasOwnProperty(s)){const r=e[s];switch(typeof r){case"string":t+=N(r);break;case"number":t+=16;break;case"boolean":t+=4}}return t}(e.attributes)}(t)),0)}(t)),this.featureStore.addMany(s),this.tiles.applyByteSizeLimit(this.maximumByteSize,(e=>this.removeTileStorage(e)))}destroy(){this.clear(),this.tileFeatureCounts.clear()}clear(){this.featureStore.clear(),this.tileBounds.clear(),this.tiles.clear(),this.refCounts.clear()}refresh(){this.clear(),this.tileFeatureCounts.clear()}processEdits(e,t,s){return this.processEditsDelete(e.deletedFeatures.concat(e.updatedFeatures)),this.processEditsRefetch(e.addedFeatures.concat(e.updatedFeatures),t,s)}addTileStorage(e,t,s){this.tiles.set(e.id,new L(e,t,s)),this.tileBounds.set(e.id,e.extent),this.tileFeatureCounts.set(e.id,t.size)}remove({id:e}){const t=this.tiles.get(e);t&&this.removeTileStorage(t)}removeTileStorage(e){const t=[];for(const s of e.objectIds)1===this.unreferenceFeature(s)&&t.push(s);this.featureStore.removeManyById(t);const s=e.data.id;this.tiles.delete(s),this.tileBounds.delete(s)}processEditsDelete(e){this.featureStore.removeManyById(e);for(const[,t]of this.tiles){for(const s of e)t.objectIds.delete(s);this.tileFeatureCounts.set(t.data.id,t.objectIds.size)}for(const t of e)this.refCounts.delete(t)}async processEditsRefetch(e,t,s){const r=(await t(e,s)).features,{hasZ:i,hasM:n}=this.featureStore;for(const e of r){const t=(0,T.$)(this.tmpBoundingRect,e.geometry,i,n);(0,a.Wi)(t)||this.tileBounds.forEachInBounds(t,(t=>{const s=this.tiles.get(t);this.featureStore.add(e),s.objectIds.has(e.objectId)||(s.objectIds.add(e.objectId),this.referenceFeature(e.objectId),this.tileFeatureCounts.set(s.data.id,s.objectIds.size))}))}}process(e,t=(()=>!0)){if((0,a.Wi)(this.tileInfo)||!e.extent||(0,a.pC)(this.extent)&&!(0,C.kK)((0,C.oJ)(this.extent,this.tmpBoundingRect),e.extent))return new z(e);if(this.tiles.has(e.id))return new z(e);const s=this.createTileTree(e,this.tileInfo);return this.simplify(s,t,null,0,1),this.collectMissingTiles(e,s,this.tileInfo)}get debugInfo(){return Array.from(this.tiles.values()).map((({data:e})=>({data:e,featureCount:this.tileFeatureCounts.get(e.id)||0})))}getFeatureCount(e){const t=this.tileFeatureCounts.get(e.id);return null!=t?t:0}async fetchCount(e,t,s,r){const i=this.tileFeatureCounts.get(e.id);if(null!=i)return i;const n=await(0,x.executeQueryForCount)(t,s,r);return this.tileFeatureCounts.set(e.id,n.data.count),n.data.count}createTileTree(e,t){const s=new J(e.level,e.row,e.col);return t.updateTileInfo(s,1),this.tileBounds.forEachInBounds(e.extent,(r=>{const i=this.tiles.get(r).data;this.tilesAreRelated(e,i)&&this.populateChildren(s,i,t,this.tileFeatureCounts.get(i.id)||0)})),s}tilesAreRelated(e,t){if(!e||!t)return!1;if(e.level===t.level)return e.row===t.row&&e.col===t.col;const s=e.level<t.level,r=s?e:t,i=s?t:e,n=1<<i.level-r.level;return Math.floor(i.row/n)===r.row&&Math.floor(i.col/n)===r.col}populateChildren(e,t,s,r){const i=t.level-e.level-1;if(i<0)return void(e.isLeaf=!0);const n=t.row>>i,o=t.col>>i,l=e.row<<1,u=o-(e.col<<1)+(n-l<<1),d=e.children[u];if((0,a.pC)(d))this.populateChildren(d,t,s,r);else{const i=new J(e.level+1,n,o);s.updateTileInfo(i,1),e.children[u]=i,this.populateChildren(i,t,s,r)}}simplify(e,t,s,r,i){const n=i*i;if(e.isLeaf)return t(this.getFeatureCount(e),i)?0:(this.remove(e),(0,a.pC)(s)&&(s.children[r]=null),n);const o=i/2,l=o*o;let u=0;for(let s=0;s<e.children.length;s++){const r=e.children[s];u+=(0,a.pC)(r)?this.simplify(r,t,e,s,o):l}return 0===u?this.mergeChildren(e):1-u/n<G&&(this.purge(e),(0,a.pC)(s)&&(s.children[r]=null),u=n),u}mergeChildren(e){const t=new Set;let s=0;this.forEachLeaf(e,(e=>{const r=this.tiles.get(e.id);if(r){s+=r.byteSize;for(const e of r.objectIds)t.has(e)||(t.add(e),this.referenceFeature(e));this.remove(e)}})),this.addTileStorage(e,t,s),e.isLeaf=!0,e.children[0]=e.children[1]=e.children[2]=e.children[3]=null,this.tileFeatureCounts.set(e.id,t.size)}forEachLeaf(e,t){for(const s of e.children)(0,a.Wi)(s)||(s.isLeaf?t(s):this.forEachLeaf(s,t))}purge(e){if(!(0,a.Wi)(e))if(e.isLeaf)this.remove(e);else for(let t=0;t<e.children.length;t++){const s=e.children[t];this.purge(s),e.children[t]=null}}collectMissingTiles(e,t,s){const r=new H(s,e,this.extent);return this.collectMissingTilesRecurse(t,r,1),r.info}collectMissingTilesRecurse(e,t,s){if(e.isLeaf)return;if(!e.hasChildren)return void t.addMissing(e.level,e.row,e.col,s);const r=s/2;for(let s=0;s<e.children.length;s++){const i=e.children[s];(0,a.Wi)(i)?t.addMissing(e.level+1,(e.row<<1)+((2&s)>>1),(e.col<<1)+(1&s),r):this.collectMissingTilesRecurse(i,t,r)}}referenceFeature(e){const t=(this.refCounts.get(e)||0)+1;return this.refCounts.set(e,t),1===t?0:2}unreferenceFeature(e){const t=(this.refCounts.get(e)||0)-1;return 0===t?(this.refCounts.delete(e),1):(t>0&&this.refCounts.set(e,t),2)}get test(){return{tiles:Array.from(this.tiles.values()).map((e=>`${e.data.id}:[${Array.from(e.objectIds)}]`)),featureReferences:Array.from(this.refCounts.keys()).map((e=>`${e}:${this.refCounts.get(e)}`))}}};(0,r._)([(0,u.Cb)({constructOnly:!0})],Z.prototype,"featureStore",void 0),(0,r._)([(0,u.Cb)()],Z.prototype,"tileInfo",void 0),(0,r._)([(0,u.Cb)()],Z.prototype,"extent",void 0),(0,r._)([(0,u.Cb)()],Z.prototype,"maximumByteSize",void 0),Z=(0,r._)([(0,c.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTileStore")],Z);class L{constructor(e,t,s){this.data=e,this.objectIds=t,this.byteSize=s}}class J{constructor(e,t,s){this.level=e,this.row=t,this.col=s,this.isLeaf=!1,this.extent=null,this.children=[null,null,null,null]}get hasChildren(){return!this.isLeaf&&((0,a.pC)(this.children[0])||(0,a.pC)(this.children[1])||(0,a.pC)(this.children[2])||(0,a.pC)(this.children[3]))}}class z{constructor(e,t=[]){this.missingTiles=t,this.fullArea=0,this.coveredArea=0,this.fullArea=(0,C.SO)(e.extent),this.coveredArea=this.fullArea}prepend(e){this.missingTiles=e.missingTiles.concat(this.missingTiles),this.coveredArea+=e.coveredArea,this.fullArea+=e.fullArea}}class H{constructor(e,t,s){this.tileInfo=e,this.extent=null,this.info=new z(t),(0,a.pC)(s)&&(this.extent=(0,C.oJ)(s))}addMissing(e,t,s,r){const i={id:null,level:e,row:t,col:s};this.tileInfo.updateTileInfo(i,1),!(0,a.pC)(i.extent)||(0,a.pC)(this.extent)&&!(0,C.kK)(this.extent,i.extent)||(this.info.missingTiles.push({data:i,resolution:r}),this.info.coveredArea-=(0,C.SO)(i.extent))}}const G=.18751;var W=s(89749);let Y=class extends i.Z.EventedAccessor{constructor(){super(...arguments),this.isInitializing=!0,this.whenSetup=(0,o.dD)(),this.handles=new n.Z,this.updatingHandles=new W.t,this.pendingApplyEdits=new Map}get updating(){return this.featureFetcher.updating||this.isInitializing||this.updatingHandles.updating}destroy(){this.featureFetcher.destroy(),this.queryEngine.destroy(),this.featureStore.clear(),this.handles.destroy()}async setup(e){const{geometryType:t,objectIdField:s,timeInfo:r,fields:i}=e.serviceInfo;return this.featureStore=new p.Z({...e.serviceInfo,hasZ:!1,hasM:!1}),this.queryEngine=new g.Z({spatialReference:e.spatialReference,featureStore:this.featureStore,geometryType:t,fields:i,hasZ:!1,hasM:!1,objectIdField:s,timeInfo:r?f.Z.fromJSON(r):null}),this.featureFetcher=new j({store:new Z({featureStore:this.featureStore}),url:e.serviceInfo.url,objectIdField:e.serviceInfo.objectIdField,globalIdField:e.serviceInfo.globalIdField,capabilities:e.serviceInfo.capabilities,spatialReference:h.Z.fromJSON(e.spatialReference),sourceSpatialReference:h.Z.fromJSON(e.serviceInfo.spatialReference)}),this.handles.add([this.featureFetcher.watch("availability",(e=>this.emit("notify-availability",{availability:e})),!0),this.watch("updating",(()=>this.notifyUpdating()))]),this.whenSetup.resolve(),this.isInitializing=!1,this.configure(e.configuration)}async configure(e){return await this.updatingHandles.addPromise(this.whenSetup.promise),this.updateFeatureFetcherConfiguration(e),{result:{}}}async fetchCandidates(e,t){return await this.whenSetup.promise,(0,o.k_)(t),{result:await this.queryEngine.executeQueryForSnapping({point:e.point,distance:e.distance,types:e.types,query:(0,a.pC)(e.filter)?e.filter:{where:"1=1"}},(0,a.pC)(t)?t.signal:null)}}async updateTiles(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t),this.featureFetcher.tileSize=e.tileSize,this.featureFetcher.tilesOfInterest=e.tiles,this.featureFetcher.tileInfo=(0,a.pC)(e.tileInfo)?y.Z.fromJSON(e.tileInfo):null,{result:{}}}async refresh(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t),this.featureFetcher.refresh(),{result:{}}}async whenNotUpdating(e,t){return await this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t),await(0,o.Hl)((0,l.cm)(this,"updating"),t),{result:{}}}async getDebugInfo(e,t){return(0,o.k_)(t),{result:this.featureFetcher.debugInfo}}async beginApplyEdits(e,t){this.updatingHandles.addPromise(this.whenSetup.promise),(0,o.k_)(t);const s=(0,o.dD)();return this.pendingApplyEdits.set(e.id,s),this.featureFetcher.applyEdits(s.promise),this.updatingHandles.addPromise(s.promise),{result:{}}}async endApplyEdits(e,t){const s=this.pendingApplyEdits.get(e.id);return s&&s.resolve(e.edits),(0,o.k_)(t),{result:{}}}updateFeatureFetcherConfiguration(e){this.featureFetcher.filter=(0,a.pC)(e.filter)?m.Z.fromJSON(e.filter):null,this.featureFetcher.customParameters=e.customParameters}notifyUpdating(){this.emit("notify-updating",{updating:this.updating})}};function Q(){return new Y}(0,r._)([(0,u.Cb)({readOnly:!0})],Y.prototype,"updating",null),(0,r._)([(0,u.Cb)()],Y.prototype,"isInitializing",void 0),Y=(0,r._)([(0,c.j)("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceSnappingSourceWorker")],Y)},89749:(e,t,s)=>{s.d(t,{t:()=>p});var r=s(43697),i=s(15923),n=s(61247),a=s(70586),o=s(17445),l=s(1654),u=s(43050),d=s(67723),c=s(5600),h=s(52011);let p=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new n.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,s,r=0){const i=0!=(1&r),n=++this.handleId;i||this.installSyncUpdatingWatch(e,t,n);const a=0!=(2&r)?(0,u.S1)(e,t,s,i):e.watch(t,s,i);return this.handles.add(a,n),{remove:()=>this.handles.remove(n)}}addOnCollectionPropertyChange(e,t,s,r=0){const i=0!=(2&r),n=++this.handleId;return this.handles.add([(0,u.on)(e,t,"after-changes",this.createSyncUpdatingCallback()),(0,u.on)(e,t,"change",s,i?e=>{s({added:e.items,removed:[],moved:[],target:e})}:void 0)],n),{remove:()=>{this.handles.remove(n)}}}addOnCollectionChange(e,t,s=0){const r=0!=(2&s),i=++this.handleId;return this.handles.add([e.on("after-changes",this.createSyncUpdatingCallback()),e.on("change",t)],i),r&&t({added:e.items,removed:[],moved:[],target:e}),{remove:()=>{this.handles.remove(i)}}}addPromise(e){if((0,a.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(g)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const s=()=>this.handles.remove(t);return e.then(s,s),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}installSyncUpdatingWatch(e,t,s){const r=this.createSyncUpdatingCallback(),i=(0,o.Ym)((()=>(0,d.$z)(e,t)),r,{sync:!0,equals:()=>!1});return this.handles.add(i,s),i}createSyncUpdatingCallback(){return()=>{this.handles.remove(g),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(g))})),g)}}};(0,r._)([(0,c.Cb)({readOnly:!0})],p.prototype,"updating",void 0),p=(0,r._)([(0,h.j)("esri.views.support.WatchUpdatingTracking")],p);const g=-42}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6968],{10937:(e,t,r)=>{function n(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}r.d(t,{c:()=>n});const i=n();Object.freeze({__proto__:null,create:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},fromValues:function(e,t,r,n,i,a,o,s,u,l,c,p,f,h,d,y){const m=new Float32Array(16);return m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=o,m[7]=s,m[8]=u,m[9]=l,m[10]=c,m[11]=p,m[12]=f,m[13]=h,m[14]=d,m[15]=y,m},createView:function(e,t){return new Float32Array(e,t,16)},IDENTITY:i})},57520:(e,t,r)=>{r.d(t,{ij:()=>$,cW:()=>F});var n=r(20102),i=r(78286),a=r(35270),o=r(62357),s=r(10937),u=r(52138);class l{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=y(e.strength,t.strength,r),this.radius=y(e.radius,t.radius,r),this.threshold=y(e.threshold,t.threshold,r)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(y(e.radius,t.radius,r))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class p{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=y(e.amount,t.amount,r),this._updateMatrix()}clone(){return new p(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||(0,s.c)();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,u.s)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,u.t)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,u.s)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,u.t)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,u.s)(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return(0,u.t)(n,n)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,n=(0,u.s)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,u.t)(n,n)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,u.s)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,u.t)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,u.s)(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return(0,u.t)(n,n)})(e)}}}class f{constructor(e,t,r,n){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=n,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=y(e.offsetX,t.offsetX,r),this.offsetY=y(e.offsetY,t.offsetY,r),this.blurRadius=y(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(y(e.color[0],t.color[0],r)),this.color[1]=Math.round(y(e.color[1],t.color[1],r)),this.color[2]=Math.round(y(e.color[2],t.color[2],r)),this.color[3]=y(e.color[3],t.color[3],r)}clone(){return new f(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:e}}}class h{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=y(e.angle,t.angle,r),this._updateMatrix()}clone(){return new h(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||(0,s.c)();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),n=Math.cos(t*Math.PI/180),i=(0,u.s)(e,.213+.787*n-.213*r,.715-.715*n-.715*r,.072-.072*n+.928*r,0,.213-.213*n+.143*r,.715+.285*n+.14*r,.072-.072*n-.283*r,0,.213-.213*n-.787*r,.715-.715*n+.715*r,.072+.928*n+.072*r,0,0,0,0,1);return(0,u.t)(i,i)})(e,this.angle)}}class d{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=y(e.amount,t.amount,r)}clone(){return new d(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function y(e,t,r){return e+(t-e)*r}function m(e){return Math.round(1e3*(0,o.Wz)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new p(e.type,0);case"saturate":case"brightness":case"contrast":return new p(e.type,1);case"opacity":return new d(1);case"hue-rotate":return new h(0);case"blur":return new c(0);case"drop-shadow":return new f(0,0,0,[...(0,a.h$)("transparent")]);case"bloom":return new l(0,0,1)}}function w(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function v(e,t){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;for(let e=n.length;e<r.length;e++)n.push(g(r[e]))}r(5732);var b,x,S={exports:{}};function A(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=I(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new n.Z("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:I(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!w(t[e].effects,t[e+1].effects))throw new n.Z("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});v(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function I(e){let t;if(!e)return[];try{t=S.exports.parse(e)}catch(t){throw new n.Z("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=O(e.parameters[0])),new p(e.name,t)}(e);case"opacity":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=O(e.parameters[0])),new d(t)}(e);case"hue-rotate":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=C[e.unit]))throw new n.Z("effect:type-error",`Expected <angle>, Actual: ${M(e)}`,{term:e})}(e),e.value*C[e.unit]||0}(e.parameters[0])),new h(t)}(e);case"blur":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=T(e.parameters[0]),_(t,e.parameters[0])),new c(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const i of e.parameters)if("color"===i.type){if(t.length&&Object.freeze(t),r)throw new n.Z("effect:type-error","Accepts only one color",{});r=E(i)}else{const e=T(i);if(Object.isFrozen(t))throw new n.Z("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&_(e,i)}if(t.length<2||t.length>3)throw new n.Z("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new f(t[0],t[1],t[2]||0,r||G("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return L(e.parameters,3),e.parameters[0]&&(t=O(e.parameters[0])),e.parameters[1]&&(r=T(e.parameters[1]),_(r,e.parameters[1])),e.parameters[2]&&(n=O(e.parameters[2])),new l(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new n.Z("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function L(e,t){if(e.length>t)throw new n.Z("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function M(e){if("color"===e.type)return"<color>";if(e.unit){if(j[e.unit])return"<length>";if(C[e.unit])return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function _(e,t){if(e<0)throw new n.Z("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}x=function(){function e(t,r,n,i){var a=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(a,e.prototype),a.expected=r,a.found=n,a.location=i,a.name="SyntaxError",a}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,o=this.location.source+":"+a.line+":"+a.column;if(i){var s=this.location.end,u=t("",a.line.toString().length),l=i[a.line-1],c=a.line===s.line?s.column:l.length+1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+l+"\n"+u+" | "+t("",a.column-1)+t("",c-a.column,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},a=(r=void 0!==r?r:{}).grammarSource,o={start:se},s=se,u="none",l="grad",c="turn",p=/^[ \t\n\r]/,f=/^[a-z\-]/,h=/^[0-9a-fA-F]/,d=/^[+\-]/,y=/^[0-9]/,m=ne("none"),g=te("none",!1),w=te(")",!1),v=te(",",!1),b=ne("whitespace"),x=re([" ","\t","\n","\r"],!1,!1),S=ne("function"),A=te("(",!1),I=ne("identifier"),L=re([["a","z"],"-"],!1,!1),M=ne("percentage"),_=te("%",!1),C=ne("length"),j=te("px",!1),O=te("cm",!1),T=te("mm",!1),E=te("in",!1),G=te("pt",!1),N=te("pc",!1),R=ne("angle"),$=te("deg",!1),F=te("rad",!1),Z=te("grad",!1),k=te("turn",!1),B=ne("number"),q=ne("color"),V=te("#",!1),D=re([["0","9"],["a","f"],["A","F"]],!1,!1),W=re(["+","-"],!1,!1),z=re([["0","9"]],!1,!1),J=te(".",!1),P=te("e",!1),Y=0,X=0,H=[{line:1,column:1}],U=0,K=[],Q=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=o[r.startRule]}function ee(){return t.substring(X,Y)}function te(e,t){return{type:"literal",text:e,ignoreCase:t}}function re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ne(e){return{type:"other",description:e}}function ie(e){var r,n=H[e];if(n)return n;for(r=e-1;!H[r];)r--;for(n={line:(n=H[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return H[e]=n,n}function ae(e,t){var r=ie(e),n=ie(t);return{source:a,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function oe(e){Y<U||(Y>U&&(U=Y,K=[]),K.push(e))}function se(){var e;return(e=ue())===i&&(e=function(){var e,t;if(e=[],(t=le())!==i)for(;t!==i;)e.push(t),t=le();else e=i;return e}()),e}function ue(){var e,r;return Q++,e=Y,pe(),t.substr(Y,4)===u?(r=u,Y+=4):(r=i,0===Q&&oe(g)),r!==i?(pe(),X=e,e=[]):(Y=e,e=i),Q--,e===i&&0===Q&&oe(m),e}function le(){var e,r,n,a;return e=Y,pe(),(r=function(){var e,r,n;return Q++,e=Y,(r=fe())!==i?(40===t.charCodeAt(Y)?(n="(",Y++):(n=i,0===Q&&oe(A)),n!==i?(X=e,e=r):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&(r=i,0===Q&&oe(S)),e}())!==i?(pe(),(n=function(){var e,r,n,a,o,s,u,l;if(e=Y,(r=ce())!==i){for(n=[],a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(v)),s===i&&(s=null),u=pe(),(l=ce())!==i?a=o=[o,s,u,l]:(Y=a,a=i);a!==i;)n.push(a),a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(v)),s===i&&(s=null),u=pe(),(l=ce())!==i?a=o=[o,s,u,l]:(Y=a,a=i);X=e,e=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]}(r,n)}else Y=e,e=i;return e}())===i&&(n=null),pe(),41===t.charCodeAt(Y)?(a=")",Y++):(a=i,0===Q&&oe(w)),a!==i?(pe(),X=e,e=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,n)):(Y=e,e=i)):(Y=e,e=i),e}function ce(){var e,t;return e=Y,(t=he())===i&&(t=de())===i&&(t=ye())===i&&(t=function(){var e,t;return Q++,e=Y,pe(),(t=ge())!==i?(X=e,e=function(e){return{value:e,unit:null}}(t)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(B),e}()),t!==i&&(X=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),(e=t)===i&&(e=Y,(t=me())!==i&&(X=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function pe(){var e,r;for(Q++,e=[],p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));r!==i;)e.push(r),p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));return Q--,r=i,0===Q&&oe(b),e}function fe(){var e,r,n;if(Q++,e=Y,r=[],f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L)),n!==i)for(;n!==i;)r.push(n),f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L));else r=i;return r!==i&&(X=e,r=ee()),Q--,(e=r)===i&&(r=i,0===Q&&oe(I)),e}function he(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?(37===t.charCodeAt(Y)?(n="%",Y++):(n=i,0===Q&&oe(_)),n!==i?(X=e,e=function(e){return{value:e,unit:"%"}}(r)):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(M),e}function de(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?("px"===t.substr(Y,2)?(n="px",Y+=2):(n=i,0===Q&&oe(j)),n!==i?(X=e,e=function(e){return{value:e,unit:"px"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("cm"===t.substr(Y,2)?(n="cm",Y+=2):(n=i,0===Q&&oe(O)),n!==i?(X=e,e=function(e){return{value:e,unit:"cm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("mm"===t.substr(Y,2)?(n="mm",Y+=2):(n=i,0===Q&&oe(T)),n!==i?(X=e,e=function(e){return{value:e,unit:"mm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("in"===t.substr(Y,2)?(n="in",Y+=2):(n=i,0===Q&&oe(E)),n!==i?(X=e,e=function(e){return{value:e,unit:"in"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pt"===t.substr(Y,2)?(n="pt",Y+=2):(n=i,0===Q&&oe(G)),n!==i?(X=e,e=function(e){return{value:e,unit:"pt"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pc"===t.substr(Y,2)?(n="pc",Y+=2):(n=i,0===Q&&oe(N)),n!==i?(X=e,e=function(e){return{value:e,unit:"pc"}}(r)):(Y=e,e=i)):(Y=e,e=i)))))),Q--,e===i&&0===Q&&oe(C),e}function ye(){var e,r,n;return Q++,e=Y,(r=ge())!==i?("deg"===t.substr(Y,3)?(n="deg",Y+=3):(n=i,0===Q&&oe($)),n!==i?(X=e,e=function(e){return{value:e,unit:"deg"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?("rad"===t.substr(Y,3)?(n="rad",Y+=3):(n=i,0===Q&&oe(F)),n!==i?(X=e,e=function(e){return{value:e,unit:"rad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===l?(n=l,Y+=4):(n=i,0===Q&&oe(Z)),n!==i?(X=e,e=function(e){return{value:e,unit:"grad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===c?(n=c,Y+=4):(n=i,0===Q&&oe(k)),n!==i?(X=e,e=function(e){return{value:e,unit:"turn"}}(r)):(Y=e,e=i)):(Y=e,e=i)))),Q--,e===i&&(r=i,0===Q&&oe(R)),e}function me(){var e,r,n,a;if(Q++,e=Y,35===t.charCodeAt(Y)?(r="#",Y++):(r=i,0===Q&&oe(V)),r!==i){if(n=[],h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D)),a!==i)for(;a!==i;)n.push(a),h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D));else n=i;n!==i?(X=e,e={type:"hex",value:ee()}):(Y=e,e=i)}else Y=e,e=i;return e===i&&(e=Y,(r=le())!==i&&(X=e,r=function(e){return{type:"function",value:e}}(r)),(e=r)===i&&(e=Y,(r=fe())!==i&&(X=e,r={type:"named",value:ee()}),e=r)),Q--,e===i&&(r=i,0===Q&&oe(q)),e}function ge(){var e,r,n,a,o,s,u;for(e=Y,d.test(t.charAt(Y))?(t.charAt(Y),Y++):0===Q&&oe(W),r=Y,n=[],y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(z));a!==i;)n.push(a),y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(z));if(46===t.charCodeAt(Y)?(a=".",Y++):(a=i,0===Q&&oe(J)),a!==i){if(o=[],y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(z)),s!==i)for(;s!==i;)o.push(s),y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(z));else o=i;o!==i?r=n=[n,a,o]:(Y=r,r=i)}else Y=r,r=i;if(r===i)if(r=[],y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(z)),n!==i)for(;n!==i;)r.push(n),y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(z));else r=i;if(r!==i){if(n=Y,101===t.charCodeAt(Y)?(a="e",Y++):(a=i,0===Q&&oe(P)),a!==i){if(d.test(t.charAt(Y))?(o=t.charAt(Y),Y++):(o=i,0===Q&&oe(W)),o===i&&(o=null),s=[],y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(z)),u!==i)for(;u!==i;)s.push(u),y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(z));else s=i;s!==i?n=a=[a,o,s]:(Y=n,n=i)}else Y=n,n=i;n===i&&(n=null),X=e,e=parseFloat(ee())}else Y=e,e=i;return e}if((n=s())!==i&&Y===t.length)return n;throw n!==i&&Y<t.length&&oe({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(K,U<t.length?t.charAt(U):null,U<t.length?ae(U,U+1):ae(U,U))}}},(b=S).exports&&(b.exports=x());const C={deg:1,grad:.9,rad:180/Math.PI,turn:360},j={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function O(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new n.Z("effect:type-error",`Expected <double> or <percentage>, Actual: ${M(e)}`,{term:e})}(e);const t=e.value;return _(t,e),"%"===e.unit?.01*t:t}function T(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=j[e.unit]))throw new n.Z("effect:type-error",`Expected <length>, Actual: ${M(e)}`,{term:e})}(e),e.value*j[e.unit]||0}function E(e){switch(e.colorType){case"hex":return(0,a.rW)(e.value);case"named":return G(e.value);case"function":return function(e){if(L(e.parameters,4),N.test(e.name))return[O(e.parameters[0]),O(e.parameters[1]),O(e.parameters[2]),e.parameters[3]?O(e.parameters[3]):1];if(R.test(e.name))return(0,a.B7)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new n.Z("effect:type-error",`Expected <double>, Actual: ${M(e)}`,{term:e})}(e),_(e.value,e),e.value}(e.parameters[0]),O(e.parameters[1]),O(e.parameters[2]),e.parameters[3]?O(e.parameters[3]):1);throw new n.Z("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function G(e){if(!(0,a.St)(e))throw new n.Z("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,a.VL)(e)}const N=/^rgba?/i,R=/^hsla?/i;function $(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:Z(r.value)});return t}return Z(e)}(e)}catch(e){var n;null==r||null==(n=r.messages)||n.push(e)}return null}function F(e,t,r,n){try{const n=function(e){const t=A(e);return t?function(e){const t=e[0];return!!t&&"type"in t}(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,i.RB)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function Z(e){if(!e||!e.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[k(r,"amount")];break;case"blur":e=[k(r,"radius","pt")];break;case"hue-rotate":e=[k(r,"angle","deg")];break;case"drop-shadow":e=[k(r,"xoffset","pt"),k(r,"yoffset","pt"),k(r,"blurRadius","pt"),B(r,"color")];break;case"bloom":e=[k(r,"strength"),k(r,"radius","pt"),k(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`;A(n),t.push(n)}return t.join(" ")}function k(e,t,r){if(null==e[t])throw new n.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function B(e,t){if(null==e[t])throw new n.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},71612:(e,t,r)=>{r.d(t,{h:()=>s});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),o=r(57520);const s=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.Cb)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.Cb)({json:{read:!1,write:!1,origins:{"web-map":{read:{reader:o.ij},write:{allowNull:!0,writer:o.cW}}}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.BlendLayer")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>h});var n=r(43697),i=r(20102),a=r(17452),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011)),u=r(30556),l=r(50549),c=r(76169);const p={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var f=r(21506);const h=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,c.df)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r,n){!e||n&&"tables"===n.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,l.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,n=p[e];let a=n&&n[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(a=!1),!a)return null==(r=t.messages)||r.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const n=super.write(e,{...t,layer:this}),o=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;var s;return(0,a.jc)(null==n?void 0:n.url)?(null==t||null==(s=t.messages)||s.push(new i.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:n}beforeSave(){}};return(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,n._)([(0,o.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,n._)([(0,u.c)("listMode")],t.prototype,"writeListMode",null),(0,n._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,n._)([(0,u.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,n._)([(0,o.Cb)(f.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,n._)([(0,u.c)("title")],t.prototype,"writeTitle",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],t.prototype,"visible",void 0),t=(0,n._)([(0,s.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get scaleRangeId(){return`${this.minScale},${this.maxScale}`}};return(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],t.prototype,"scaleRangeId",null),t=(0,n._)([(0,a.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>b,PV:()=>m,id:()=>S,iR:()=>h,rn:()=>y,u1:()=>I,rO:()=>A,Oh:()=>w,bT:()=>v,C_:()=>f,Lx:()=>g,vg:()=>x,YI:()=>p,HQ:()=>d});var n=r(92835),i=r(6570),a=r(82971),o=r(25929),s=r(70586),u=(r(95330),r(35463)),l=r(20682),c=r(65242);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},f={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},h={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},d={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},y={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},m={value:null,type:l.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const w={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},v={...w,json:{...w.json,origins:{"web-document":{...w.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,c.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,c.b)(t.drawingInfo.transparency)}}},b={type:n.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:a}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let l=this.layer.timeExtent;r&&(l=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(l));let c=a?o&&l?o.intersection(l):o||l:l;if(!c||c.isEmpty||c.isAllTime)return c;i&&(c=c.offset(-i.value,i.unit)),r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(c));const p=this._get("timeExtent");return c.equals(p)?p:c}},x={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=a.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},A={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>x});var n,i=r(43697),a=r(35454),o=r(10736),s=r(70586),u=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),p=r(30556),f=r(35671);let h=n=class extends o.wq{async collectRequiredFields(e,t){return(0,f.io)(e,t,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}};(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"expression",void 0),(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),h=n=(0,i._)([(0,c.j)("esri.layers.support.FeatureExpressionInfo")],h);const d=h;var y=r(99282);const m=function(){const e=Object.keys(y.a);return e.sort(),e}();var g;const w=(0,a.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new a.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=g=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,n){t[r]=e.write({},n),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,s.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new g({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,u.Cb)({type:d,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,l.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,p.c)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,u.Cb)({type:w.apiValues,nonNullable:!0,json:{type:w.jsonValues,read:w.read,write:{writer:w.write,isRequired:!0}}})],b.prototype,"mode",null),(0,i._)([(0,u.Cb)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,i._)([(0,u.Cb)({type:m,json:{type:String,read:v.read,write:v.write}})],b.prototype,"unit",null),b=g=(0,i._)([(0,c.j)("esri.layers.support.ElevationInfo")],b);const x=b}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6968],{10937:(e,t,r)=>{function n(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}r.d(t,{c:()=>n});const i=n();Object.freeze({__proto__:null,create:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},fromValues:function(e,t,r,n,i,a,o,s,u,l,c,p,f,h,d,y){const m=new Float32Array(16);return m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=o,m[7]=s,m[8]=u,m[9]=l,m[10]=c,m[11]=p,m[12]=f,m[13]=h,m[14]=d,m[15]=y,m},createView:function(e,t){return new Float32Array(e,t,16)},IDENTITY:i})},57520:(e,t,r)=>{r.d(t,{ij:()=>$,cW:()=>F});var n=r(20102),i=r(78286),a=r(35270),o=r(62357),s=r(10937),u=r(52138);class l{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=y(e.strength,t.strength,r),this.radius=y(e.radius,t.radius,r),this.threshold=y(e.threshold,t.threshold,r)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(y(e.radius,t.radius,r))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class p{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=y(e.amount,t.amount,r),this._updateMatrix()}clone(){return new p(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||(0,s.c)();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,u.s)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,u.t)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,u.s)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,u.t)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,u.s)(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return(0,u.t)(n,n)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,n=(0,u.s)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,u.t)(n,n)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,u.s)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,u.t)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,u.s)(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return(0,u.t)(n,n)})(e)}}}class f{constructor(e,t,r,n){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=n,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=y(e.offsetX,t.offsetX,r),this.offsetY=y(e.offsetY,t.offsetY,r),this.blurRadius=y(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(y(e.color[0],t.color[0],r)),this.color[1]=Math.round(y(e.color[1],t.color[1],r)),this.color[2]=Math.round(y(e.color[2],t.color[2],r)),this.color[3]=y(e.color[3],t.color[3],r)}clone(){return new f(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:e}}}class h{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=y(e.angle,t.angle,r),this._updateMatrix()}clone(){return new h(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||(0,s.c)();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),n=Math.cos(t*Math.PI/180),i=(0,u.s)(e,.213+.787*n-.213*r,.715-.715*n-.715*r,.072-.072*n+.928*r,0,.213-.213*n+.143*r,.715+.285*n+.14*r,.072-.072*n-.283*r,0,.213-.213*n-.787*r,.715-.715*n+.715*r,.072+.928*n+.072*r,0,0,0,0,1);return(0,u.t)(i,i)})(e,this.angle)}}class d{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=y(e.amount,t.amount,r)}clone(){return new d(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function y(e,t,r){return e+(t-e)*r}function m(e){return Math.round(1e3*(0,o.Wz)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new p(e.type,0);case"saturate":case"brightness":case"contrast":return new p(e.type,1);case"opacity":return new d(1);case"hue-rotate":return new h(0);case"blur":return new c(0);case"drop-shadow":return new f(0,0,0,[...(0,a.h$)("transparent")]);case"bloom":return new l(0,0,1)}}function w(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function v(e,t){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;for(let e=n.length;e<r.length;e++)n.push(g(r[e]))}r(5732);var b,x,S={exports:{}};function A(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=I(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new n.Z("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:I(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!w(t[e].effects,t[e+1].effects))throw new n.Z("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});v(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function I(e){let t;if(!e)return[];try{t=S.exports.parse(e)}catch(t){throw new n.Z("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=O(e.parameters[0])),new p(e.name,t)}(e);case"opacity":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=O(e.parameters[0])),new d(t)}(e);case"hue-rotate":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=C[e.unit]))throw new n.Z("effect:type-error",`Expected <angle>, Actual: ${M(e)}`,{term:e})}(e),e.value*C[e.unit]||0}(e.parameters[0])),new h(t)}(e);case"blur":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=T(e.parameters[0]),_(t,e.parameters[0])),new c(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const i of e.parameters)if("color"===i.type){if(t.length&&Object.freeze(t),r)throw new n.Z("effect:type-error","Accepts only one color",{});r=E(i)}else{const e=T(i);if(Object.isFrozen(t))throw new n.Z("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&_(e,i)}if(t.length<2||t.length>3)throw new n.Z("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new f(t[0],t[1],t[2]||0,r||G("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return L(e.parameters,3),e.parameters[0]&&(t=O(e.parameters[0])),e.parameters[1]&&(r=T(e.parameters[1]),_(r,e.parameters[1])),e.parameters[2]&&(n=O(e.parameters[2])),new l(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new n.Z("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function L(e,t){if(e.length>t)throw new n.Z("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function M(e){if("color"===e.type)return"<color>";if(e.unit){if(j[e.unit])return"<length>";if(C[e.unit])return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function _(e,t){if(e<0)throw new n.Z("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}x=function(){function e(t,r,n,i){var a=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(a,e.prototype),a.expected=r,a.found=n,a.location=i,a.name="SyntaxError",a}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,o=this.location.source+":"+a.line+":"+a.column;if(i){var s=this.location.end,u=t("",a.line.toString().length),l=i[a.line-1],c=a.line===s.line?s.column:l.length+1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+l+"\n"+u+" | "+t("",a.column-1)+t("",c-a.column,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},a=(r=void 0!==r?r:{}).grammarSource,o={start:se},s=se,u="none",l="grad",c="turn",p=/^[ \t\n\r]/,f=/^[a-z\-]/,h=/^[0-9a-fA-F]/,d=/^[+\-]/,y=/^[0-9]/,m=ne("none"),g=te("none",!1),w=te(")",!1),v=te(",",!1),b=ne("whitespace"),x=re([" ","\t","\n","\r"],!1,!1),S=ne("function"),A=te("(",!1),I=ne("identifier"),L=re([["a","z"],"-"],!1,!1),M=ne("percentage"),_=te("%",!1),C=ne("length"),j=te("px",!1),O=te("cm",!1),T=te("mm",!1),E=te("in",!1),G=te("pt",!1),N=te("pc",!1),R=ne("angle"),$=te("deg",!1),F=te("rad",!1),Z=te("grad",!1),k=te("turn",!1),B=ne("number"),q=ne("color"),V=te("#",!1),D=re([["0","9"],["a","f"],["A","F"]],!1,!1),W=re(["+","-"],!1,!1),z=re([["0","9"]],!1,!1),J=te(".",!1),P=te("e",!1),Y=0,X=0,H=[{line:1,column:1}],U=0,K=[],Q=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=o[r.startRule]}function ee(){return t.substring(X,Y)}function te(e,t){return{type:"literal",text:e,ignoreCase:t}}function re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ne(e){return{type:"other",description:e}}function ie(e){var r,n=H[e];if(n)return n;for(r=e-1;!H[r];)r--;for(n={line:(n=H[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return H[e]=n,n}function ae(e,t){var r=ie(e),n=ie(t);return{source:a,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function oe(e){Y<U||(Y>U&&(U=Y,K=[]),K.push(e))}function se(){var e;return(e=ue())===i&&(e=function(){var e,t;if(e=[],(t=le())!==i)for(;t!==i;)e.push(t),t=le();else e=i;return e}()),e}function ue(){var e,r;return Q++,e=Y,pe(),t.substr(Y,4)===u?(r=u,Y+=4):(r=i,0===Q&&oe(g)),r!==i?(pe(),X=e,e=[]):(Y=e,e=i),Q--,e===i&&0===Q&&oe(m),e}function le(){var e,r,n,a;return e=Y,pe(),(r=function(){var e,r,n;return Q++,e=Y,(r=fe())!==i?(40===t.charCodeAt(Y)?(n="(",Y++):(n=i,0===Q&&oe(A)),n!==i?(X=e,e=r):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&(r=i,0===Q&&oe(S)),e}())!==i?(pe(),(n=function(){var e,r,n,a,o,s,u,l;if(e=Y,(r=ce())!==i){for(n=[],a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(v)),s===i&&(s=null),u=pe(),(l=ce())!==i?a=o=[o,s,u,l]:(Y=a,a=i);a!==i;)n.push(a),a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(v)),s===i&&(s=null),u=pe(),(l=ce())!==i?a=o=[o,s,u,l]:(Y=a,a=i);X=e,e=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]}(r,n)}else Y=e,e=i;return e}())===i&&(n=null),pe(),41===t.charCodeAt(Y)?(a=")",Y++):(a=i,0===Q&&oe(w)),a!==i?(pe(),X=e,e=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,n)):(Y=e,e=i)):(Y=e,e=i),e}function ce(){var e,t;return e=Y,(t=he())===i&&(t=de())===i&&(t=ye())===i&&(t=function(){var e,t;return Q++,e=Y,pe(),(t=ge())!==i?(X=e,e=function(e){return{value:e,unit:null}}(t)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(B),e}()),t!==i&&(X=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),(e=t)===i&&(e=Y,(t=me())!==i&&(X=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function pe(){var e,r;for(Q++,e=[],p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));r!==i;)e.push(r),p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));return Q--,r=i,0===Q&&oe(b),e}function fe(){var e,r,n;if(Q++,e=Y,r=[],f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L)),n!==i)for(;n!==i;)r.push(n),f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L));else r=i;return r!==i&&(X=e,r=ee()),Q--,(e=r)===i&&(r=i,0===Q&&oe(I)),e}function he(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?(37===t.charCodeAt(Y)?(n="%",Y++):(n=i,0===Q&&oe(_)),n!==i?(X=e,e=function(e){return{value:e,unit:"%"}}(r)):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(M),e}function de(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?("px"===t.substr(Y,2)?(n="px",Y+=2):(n=i,0===Q&&oe(j)),n!==i?(X=e,e=function(e){return{value:e,unit:"px"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("cm"===t.substr(Y,2)?(n="cm",Y+=2):(n=i,0===Q&&oe(O)),n!==i?(X=e,e=function(e){return{value:e,unit:"cm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("mm"===t.substr(Y,2)?(n="mm",Y+=2):(n=i,0===Q&&oe(T)),n!==i?(X=e,e=function(e){return{value:e,unit:"mm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("in"===t.substr(Y,2)?(n="in",Y+=2):(n=i,0===Q&&oe(E)),n!==i?(X=e,e=function(e){return{value:e,unit:"in"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pt"===t.substr(Y,2)?(n="pt",Y+=2):(n=i,0===Q&&oe(G)),n!==i?(X=e,e=function(e){return{value:e,unit:"pt"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pc"===t.substr(Y,2)?(n="pc",Y+=2):(n=i,0===Q&&oe(N)),n!==i?(X=e,e=function(e){return{value:e,unit:"pc"}}(r)):(Y=e,e=i)):(Y=e,e=i)))))),Q--,e===i&&0===Q&&oe(C),e}function ye(){var e,r,n;return Q++,e=Y,(r=ge())!==i?("deg"===t.substr(Y,3)?(n="deg",Y+=3):(n=i,0===Q&&oe($)),n!==i?(X=e,e=function(e){return{value:e,unit:"deg"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?("rad"===t.substr(Y,3)?(n="rad",Y+=3):(n=i,0===Q&&oe(F)),n!==i?(X=e,e=function(e){return{value:e,unit:"rad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===l?(n=l,Y+=4):(n=i,0===Q&&oe(Z)),n!==i?(X=e,e=function(e){return{value:e,unit:"grad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===c?(n=c,Y+=4):(n=i,0===Q&&oe(k)),n!==i?(X=e,e=function(e){return{value:e,unit:"turn"}}(r)):(Y=e,e=i)):(Y=e,e=i)))),Q--,e===i&&(r=i,0===Q&&oe(R)),e}function me(){var e,r,n,a;if(Q++,e=Y,35===t.charCodeAt(Y)?(r="#",Y++):(r=i,0===Q&&oe(V)),r!==i){if(n=[],h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D)),a!==i)for(;a!==i;)n.push(a),h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D));else n=i;n!==i?(X=e,e={type:"hex",value:ee()}):(Y=e,e=i)}else Y=e,e=i;return e===i&&(e=Y,(r=le())!==i&&(X=e,r=function(e){return{type:"function",value:e}}(r)),(e=r)===i&&(e=Y,(r=fe())!==i&&(X=e,r={type:"named",value:ee()}),e=r)),Q--,e===i&&(r=i,0===Q&&oe(q)),e}function ge(){var e,r,n,a,o,s,u;for(e=Y,d.test(t.charAt(Y))?(t.charAt(Y),Y++):0===Q&&oe(W),r=Y,n=[],y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(z));a!==i;)n.push(a),y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(z));if(46===t.charCodeAt(Y)?(a=".",Y++):(a=i,0===Q&&oe(J)),a!==i){if(o=[],y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(z)),s!==i)for(;s!==i;)o.push(s),y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(z));else o=i;o!==i?r=n=[n,a,o]:(Y=r,r=i)}else Y=r,r=i;if(r===i)if(r=[],y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(z)),n!==i)for(;n!==i;)r.push(n),y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(z));else r=i;if(r!==i){if(n=Y,101===t.charCodeAt(Y)?(a="e",Y++):(a=i,0===Q&&oe(P)),a!==i){if(d.test(t.charAt(Y))?(o=t.charAt(Y),Y++):(o=i,0===Q&&oe(W)),o===i&&(o=null),s=[],y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(z)),u!==i)for(;u!==i;)s.push(u),y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(z));else s=i;s!==i?n=a=[a,o,s]:(Y=n,n=i)}else Y=n,n=i;n===i&&(n=null),X=e,e=parseFloat(ee())}else Y=e,e=i;return e}if((n=s())!==i&&Y===t.length)return n;throw n!==i&&Y<t.length&&oe({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(K,U<t.length?t.charAt(U):null,U<t.length?ae(U,U+1):ae(U,U))}}},(b=S).exports&&(b.exports=x());const C={deg:1,grad:.9,rad:180/Math.PI,turn:360},j={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function O(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new n.Z("effect:type-error",`Expected <double> or <percentage>, Actual: ${M(e)}`,{term:e})}(e);const t=e.value;return _(t,e),"%"===e.unit?.01*t:t}function T(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=j[e.unit]))throw new n.Z("effect:type-error",`Expected <length>, Actual: ${M(e)}`,{term:e})}(e),e.value*j[e.unit]||0}function E(e){switch(e.colorType){case"hex":return(0,a.rW)(e.value);case"named":return G(e.value);case"function":return function(e){if(L(e.parameters,4),N.test(e.name))return[O(e.parameters[0]),O(e.parameters[1]),O(e.parameters[2]),e.parameters[3]?O(e.parameters[3]):1];if(R.test(e.name))return(0,a.B7)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new n.Z("effect:type-error",`Expected <double>, Actual: ${M(e)}`,{term:e})}(e),_(e.value,e),e.value}(e.parameters[0]),O(e.parameters[1]),O(e.parameters[2]),e.parameters[3]?O(e.parameters[3]):1);throw new n.Z("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function G(e){if(!(0,a.St)(e))throw new n.Z("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,a.VL)(e)}const N=/^rgba?/i,R=/^hsla?/i;function $(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:Z(r.value)});return t}return Z(e)}(e)}catch(e){var n;null==r||null==(n=r.messages)||n.push(e)}return null}function F(e,t,r,n){try{const n=function(e){const t=A(e);return t?function(e){const t=e[0];return!!t&&"type"in t}(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,i.RB)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function Z(e){if(!e||!e.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[k(r,"amount")];break;case"blur":e=[k(r,"radius","pt")];break;case"hue-rotate":e=[k(r,"angle","deg")];break;case"drop-shadow":e=[k(r,"xoffset","pt"),k(r,"yoffset","pt"),k(r,"blurRadius","pt"),B(r,"color")];break;case"bloom":e=[k(r,"strength"),k(r,"radius","pt"),k(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`;A(n),t.push(n)}return t.join(" ")}function k(e,t,r){if(null==e[t])throw new n.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function B(e,t){if(null==e[t])throw new n.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},71612:(e,t,r)=>{r.d(t,{h:()=>s});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),o=r(57520);const s=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.Cb)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.Cb)({json:{read:!1,write:!1,origins:{"web-map":{read:{reader:o.ij},write:{allowNull:!0,writer:o.cW}}}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.BlendLayer")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>h});var n=r(43697),i=r(20102),a=r(17452),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011)),u=r(30556),l=r(50549),c=r(76169);const p={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!1},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var f=r(21506);const h=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,c.df)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r,n){!e||n&&"tables"===n.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,l.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,n=p[e];let a=n&&n[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(a=!1),!a)return null==(r=t.messages)||r.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const n=super.write(e,{...t,layer:this}),o=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;var s;return(0,a.jc)(null==n?void 0:n.url)?(null==t||null==(s=t.messages)||s.push(new i.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:n}beforeSave(){}};return(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,n._)([(0,o.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,n._)([(0,u.c)("listMode")],t.prototype,"writeListMode",null),(0,n._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,n._)([(0,u.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,n._)([(0,o.Cb)(f.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,n._)([(0,u.c)("title")],t.prototype,"writeTitle",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],t.prototype,"visible",void 0),t=(0,n._)([(0,s.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get scaleRangeId(){return`${this.minScale},${this.maxScale}`}};return(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],t.prototype,"scaleRangeId",null),t=(0,n._)([(0,a.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>b,PV:()=>m,id:()=>S,iR:()=>h,rn:()=>y,u1:()=>I,rO:()=>A,Oh:()=>w,bT:()=>v,C_:()=>f,Lx:()=>g,vg:()=>x,YI:()=>p,HQ:()=>d});var n=r(92835),i=r(6570),a=r(82971),o=r(25929),s=r(70586),u=(r(95330),r(35463)),l=r(20682),c=r(65242);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},f={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},h={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},d={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},y={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},m={value:null,type:l.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const w={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},v={...w,json:{...w.json,origins:{"web-document":{...w.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,c.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,c.b)(t.drawingInfo.transparency)}}},b={type:n.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:a}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let l=this.layer.timeExtent;r&&(l=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(l));let c=a?o&&l?o.intersection(l):o||l:l;if(!c||c.isEmpty||c.isAllTime)return c;i&&(c=c.offset(-i.value,i.unit)),r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(c));const p=this._get("timeExtent");return c.equals(p)?p:c}},x={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=a.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},A={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>x});var n,i=r(43697),a=r(35454),o=r(10736),s=r(70586),u=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),p=r(30556),f=r(35671);let h=n=class extends o.wq{async collectRequiredFields(e,t){return(0,f.io)(e,t,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}};(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"expression",void 0),(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),h=n=(0,i._)([(0,c.j)("esri.layers.support.FeatureExpressionInfo")],h);const d=h;var y=r(99282);const m=function(){const e=Object.keys(y.a);return e.sort(),e}();var g;const w=(0,a.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new a.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=g=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,n){t[r]=e.write({},n),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,s.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new g({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,u.Cb)({type:d,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,l.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,p.c)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,u.Cb)({type:w.apiValues,nonNullable:!0,json:{type:w.jsonValues,read:w.read,write:{writer:w.write,isRequired:!0}}})],b.prototype,"mode",null),(0,i._)([(0,u.Cb)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,i._)([(0,u.Cb)({type:m,json:{type:String,read:v.read,write:v.write}})],b.prototype,"unit",null),b=g=(0,i._)([(0,c.j)("esri.layers.support.ElevationInfo")],b);const x=b}}]);
|