@arcgis/core 4.27.0-next.20230521 → 4.27.0-next.20230522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Graphic.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0d02856e55d20b99fc8b.js +1 -0
- package/assets/esri/core/workers/chunks/{69242c66492717c7388c.js → 0fcb8d408696075338e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{1edc5c06874cb12c5478.js → 17f313e548281bb5db3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b91c155de9a89e4e6971.js → 187c3b971ed0fc4363ef.js} +1 -1
- package/assets/esri/core/workers/chunks/{85c6ce93aa41e6b65997.js → 18db07d739a713cc0465.js} +1 -1
- package/assets/esri/core/workers/chunks/28286014a575042619ee.js +1 -0
- package/assets/esri/core/workers/chunks/{692dfeb2e255fdc0ade2.js → 39288fa69561d21f04f8.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b9d3e60977934a6d471.js → 3bc6b5f0643364749ef8.js} +1 -1
- package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +1 -0
- package/assets/esri/core/workers/chunks/{62d9d15f0d00a75da42c.js → 4670b17ae2ed3c13d344.js} +1 -1
- package/assets/esri/core/workers/chunks/4d24efa01d1accc5a5f0.js +1 -0
- package/assets/esri/core/workers/chunks/52575f021a14dd961de8.js +1 -0
- package/assets/esri/core/workers/chunks/{6312783626bacf52df7a.js → 55486c644e8b01326a0d.js} +1 -1
- package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +1 -0
- package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +1 -0
- package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +1 -0
- package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +1 -0
- package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +1 -0
- package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +1 -0
- package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +1 -0
- package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +1 -0
- package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +1 -0
- package/assets/esri/core/workers/chunks/97cdbec7532cfcdf9ad2.js +1 -0
- package/assets/esri/core/workers/chunks/{f3f6035a17f7dcd19675.js → 9ab400a89dd701778d2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1488b3d48232844b8bb4.js → 9fe349f43d5ff5a4ac2d.js} +1 -1
- package/assets/esri/core/workers/chunks/{22396dd3717d17a5d235.js → a1c31bb8c12831539328.js} +1 -1
- package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +1 -0
- package/assets/esri/core/workers/chunks/{48abcb2d88f22e6e9fde.js → c2cb9fa18c77f0c5104e.js} +1 -1
- package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +1 -0
- package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +1 -0
- package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +1 -0
- package/assets/esri/core/workers/chunks/{4d5f71d84c85f45c97ea.js → ed6f6e539a915ba9e64d.js} +1 -1
- package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +1 -0
- package/assets/esri/themes/base/_core.scss +2 -0
- package/assets/esri/themes/base/widgets/_FloorFilter.scss +6 -0
- package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +40 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/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/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
- package/chunks/mat4.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/fontUtils.js +1 -1
- package/core/libs/gl-matrix-2/math/mat4.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/MeshGeoreferencedRelativeVertexSpace.d.ts +4 -0
- package/geometry/support/MeshGeoreferencedRelativeVertexSpace.js +5 -0
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +4 -0
- package/geometry/support/MeshGeoreferencedVertexSpace.js +5 -0
- package/geometry/support/MeshLocalVertexSpace.d.ts +4 -0
- package/geometry/support/MeshLocalVertexSpace.js +5 -0
- package/geometry/support/MeshTransform.d.ts +4 -0
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/geographicUtils.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/offset.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/interfaces.d.ts +227 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/data/attributeSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +1 -1
- package/popup/FieldInfo.js +1 -1
- package/portal/Portal.js +1 -1
- package/rest/support/FeatureSet.js +1 -1
- package/rest/support/meshFeatureSet.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
- package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +5 -0
- package/widgets/UtilityNetworkValidateTopology.js +5 -0
- package/assets/esri/core/workers/chunks/163bf2e13abbdd298374.js +0 -1
- package/assets/esri/core/workers/chunks/23f73f81aea461c0c6e6.js +0 -1
- package/assets/esri/core/workers/chunks/2640204c4655aa535ccb.js +0 -1
- package/assets/esri/core/workers/chunks/2bf42d060f877566b989.js +0 -1
- package/assets/esri/core/workers/chunks/34ec9623a1bece86a82b.js +0 -1
- package/assets/esri/core/workers/chunks/3bf52139340827794c3b.js +0 -1
- package/assets/esri/core/workers/chunks/52d02021e858820bc4fa.js +0 -1
- package/assets/esri/core/workers/chunks/64b8f65e2ef6cbf08380.js +0 -1
- package/assets/esri/core/workers/chunks/78aede1e114deefacb54.js +0 -1
- package/assets/esri/core/workers/chunks/7ef100158ca28631fcaf.js +0 -1
- package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +0 -1
- package/assets/esri/core/workers/chunks/964795dfb57f0d0635d0.js +0 -1
- package/assets/esri/core/workers/chunks/99ce0a202dcd3d7dc290.js +0 -1
- package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +0 -1
- package/assets/esri/core/workers/chunks/c3bf44146fddfe8990f7.js +0 -1
- package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +0 -1
- package/assets/esri/core/workers/chunks/e15b5d7e46a834eacc57.js +0 -1
- package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +0 -1
- package/assets/esri/core/workers/chunks/e305d20e4424451cab5b.js +0 -1
- package/assets/esri/core/workers/chunks/e6836c84470fb6bd25bf.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2462,5732],{38171:(e,t,r)=>{r.d(t,{Z:()=>f});var i,s=r(43697),n=r(66577),a=r(51773),o=r(9790),l=r(2368),u=r(96674),p=r(99001),c=r(5600),d=(r(75215),r(67676),r(80442),r(52011)),y=r(33955);function h(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let m=i=class extends((0,l.J)(u.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,i){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:i}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:h(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(e={}){"mesh"===this.geometry?.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform,e.action)}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}};(0,s._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,y.im)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,s._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,s._)([(0,c.Cb)({value:null,types:n.qM,json:{read:y.im}})],m.prototype,"geometry",null),(0,s._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,s._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,s._)([(0,c.Cb)({type:a.Z})],m.prototype,"popupTemplate",void 0),(0,s._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,s._)([(0,c.Cb)({value:null,types:o.LB})],m.prototype,"symbol",null),(0,s._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=i=(0,s._)([(0,d.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const f=m},84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),s=r(2368),n=r(96674),a=r(35463),o=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(78981);let c=class extends((0,s.J)(n.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(p.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.j)("esri.TimeInterval")],c);const d=c},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>s});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},57435:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),s=r(46791),n=(r(20102),r(92604),r(26258),r(87538)),a=r(5600),o=r(52011);let l=class extends s.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.own((0,n.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,a.Cb)()],l.prototype,"getCollections",void 0),(0,i._)([(0,a.Cb)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,a.Cb)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,o.j)("esri.core.CollectionFlattener")],l);const u=l},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>w});var i=r(43697),s=r(92036),n=r(70586),a=r(41103),o=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,o.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,o.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,n.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=r(50549),c=r(1153),d=r(52011);const y=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,n.j0)((0,c.vw)(this)),r=t.store,i=new u;t.store=i,(0,a.M)(t,r,i)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,l.M9)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,l.M9)(t),s=(0,c.vw)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.vw)(e).store}let m=class extends(y(s.Z)){};m=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var f=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,l.M9)(t))}write(e,t){return(0,f.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=b(this),r=(0,l.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=b(this),i=(0,l.M9)(t),s=this.get(e);for(let t=i+1;t<l.kk;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,c.vw)(e).store}const v=e=>{let t=class extends(g(y(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(v(s.Z)){};w=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],w)},91040:(e,t,r)=>{r.d(t,{yZ:()=>n});var i=r(67900);const s=96;function n(e,t){const r=t||e.extent,n=e.width,a=(0,i.c9)(r&&r.spatialReference);return r&&n?r.width/n*a*i.hd*s:0}},25906:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ie});var i=r(43697),s=r(68773),n=r(38171),a=r(51773),o=r(3172),l=r(46791),u=r(57435),p=r(35454),c=r(22974),d=r(16453),y=r(95330),h=r(17445),m=r(81271),f=r(5600),g=r(75215),b=r(71715),v=r(52011),w=r(30556),_=r(76169),S=r(6570),I=r(82971),x=r(91040),C=r(8744),L=r(87085),O=r(71612),T=r(38009),E=r(16859),F=r(34760),N=r(72965),A=r(28294),M=r(52162),P=r(66677),U=r(21506),j=r(92036),R=r(3920),G=r(67676);r(80442);const Z={visible:"visibleSublayers"};let k=class extends((0,R.p)(j.Z)){constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(Z[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],s=e=>{const{minScale:r,maxScale:n,sublayers:a,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===n||t>=n))&&(a?a.forEach(s):i.push(e))};return r?.forEach(s),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:s}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:s,layers:t}}};(0,i._)([(0,f.Cb)()],k.prototype,"layer",null),(0,i._)([(0,f.Cb)({readOnly:!0})],k.prototype,"layers",null),(0,i._)([(0,f.Cb)({type:Number})],k.prototype,"scale",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],k.prototype,"version",null),(0,i._)([(0,f.Cb)({readOnly:!0})],k.prototype,"visibleSublayers",null),k=(0,i._)([(0,v.j)("esri.layers.support.ExportWMSImageParameters")],k);var D,$=r(90082),B=r(10699),q=r(90578);let V=0,W=D=class extends((0,B.IG)(d.w)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),h.Z_),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.Z_),(0,h.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),h.Z_),(0,h.YP)((()=>this.layer),(e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e}),h.Z_)])}get id(){return this._get("id")??V++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,g.se)(l.Z.ofType(D),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new D;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i._)([(0,f.Cb)()],W.prototype,"description",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],W.prototype,"dimensions",void 0),(0,i._)([(0,f.Cb)({type:S.Z,json:{name:"extent"}})],W.prototype,"fullExtent",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"fullExtents",void 0),(0,i._)([(0,f.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],W.prototype,"id",null),(0,i._)([(0,f.Cb)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],W.prototype,"legendUrl",void 0),(0,i._)([(0,b.r)("legendUrl",["legendUrl","legendURL"])],W.prototype,"readLegendUrl",null),(0,i._)([(0,f.Cb)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],W.prototype,"legendEnabled",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"layer",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"maxScale",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"minScale",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],W.prototype,"name",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"parent",void 0),(0,i._)([(0,f.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],W.prototype,"popupEnabled",void 0),(0,i._)([(0,f.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],W.prototype,"queryable",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"sublayers",void 0),(0,i._)([(0,q.p)("sublayers")],W.prototype,"castSublayers",null),(0,i._)([(0,f.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],W.prototype,"spatialReferences",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],W.prototype,"title",void 0),(0,i._)([(0,f.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],W.prototype,"visible",null),W=D=(0,i._)([(0,v.j)("esri.layers.support.WMSSublayer")],W);const J=W;var H=r(20102);const X={84:4326,83:4269,27:4267};function z(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map((e=>e.textContent)).join("\r\n");throw new H.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=ee("Capability",r),s=ee("Service",r),n=i&&ee("Request",i);if(!i||!s||!n)return null;const a=ee("Layer",i);if(!a)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",l=re("Title",s,"")||re("Name",s,""),u=re("AccessConstraints",s,""),p=/^none$/i.test(u)?"":u,c=re("Abstract",s,""),d=parseInt(re("MaxWidth",s,"5000"),10),y=parseInt(re("MaxHeight",s,"5000"),10),h=ne(n,"GetMap"),m=se(n,"GetMap"),f=oe(a,o,t);if(!f)return null;let g,b=0;const v=Array.prototype.slice.call(i.childNodes),w=f.sublayers??[],_=e=>{null!=e&&w.push(e)};v.forEach((e=>{"Layer"===e.nodeName&&(0===b?g=e:1===b?(f.name&&(f.name="",_(oe(g,o,t))),_(oe(e,o,t))):_(oe(e,o,t)),b++)}));let I=f.sublayers,x=f.extent;const C=f.fullExtents??[];if(I||(I=[]),0===I.length&&I.push(f),!x){const e=new S.Z(I[0].extent);f.extent=e.toJSON(),x=f.extent}const L=f.spatialReferences.length>0?f.spatialReferences:Q(f),O=se(n,"GetFeatureInfo"),T=O?ne(n,"GetFeatureInfo"):null,E=Y(I),F=f.minScale||0,N=f.maxScale||0,A=f.dimensions??[],M=E.reduce(((e,t)=>e.concat(t.dimensions??[])),[]),P=A.concat(M).filter(ue);let U=null;if(P.length){const e=P.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t?.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2).filter(G.pC);U={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:p,description:c,dimensions:A,extent:x,fullExtents:C,featureInfoFormats:T,featureInfoUrl:O,mapUrl:m,maxWidth:d,maxHeight:y,maxScale:N,minScale:F,layers:E,spatialReferences:L,supportedImageFormatTypes:h,timeInfo:U,title:l,version:o}}function Q(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=Q(t);if(e.length>0)return e}return[]}function Y(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Y(r.sublayers)),delete r.sublayers);return t}function K(e,t,r){return t.getAttribute(e)??r}function ee(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(le(i)&&i.nodeName===e)return i}return null}function te(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const s=t.childNodes[i];le(s)&&s.nodeName===e&&r.push(s)}return r}function re(e,t,r){return ee(e,t)?.textContent??r}function ie(e,t,r){if(!e)return null;const i=parseFloat(e.getAttribute("minx")),s=parseFloat(e.getAttribute("miny")),n=parseFloat(e.getAttribute("maxx")),a=parseFloat(e.getAttribute("maxy"));let o,l,u,p;r?(o=isNaN(s)?-Number.MAX_VALUE:s,l=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(a)?Number.MAX_VALUE:a,p=isNaN(n)?Number.MAX_VALUE:n):(o=isNaN(i)?-Number.MAX_VALUE:i,l=isNaN(s)?-Number.MAX_VALUE:s,u=isNaN(n)?Number.MAX_VALUE:n,p=isNaN(a)?Number.MAX_VALUE:a);const c=new I.Z({wkid:t});return new S.Z({xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c})}function se(e,t){const r=ee(t,e);if(r){const e=ee("DCPType",r);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,r,i){const s=ee("OnlineResource",r);return s?K("xlink:href",s,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const r=[],i=(0,m.mN)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}return null}function ne(e,t){const r=te("Operation",e);if(!r.length)return te("Format",ee(t,e)).map((({textContent:e})=>e)).filter(G.pC);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function ae(e,t,r){const i=ee(t,e);if(!i)return r;const{textContent:s}=i;if(null==s||""===s)return r;const n=Number(s);return isNaN(n)?r:n}function oe(e,t,r){if(!e)return null;const i={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},s=ee("LatLonBoundingBox",e),n=ee("EX_GeographicBoundingBox",e);let a=null;s&&(a=ie(s,4326)),n&&(a=new S.Z(0,0,0,0,new I.Z({wkid:4326})),a.xmin=parseFloat(re("westBoundLongitude",n,"0")),a.ymin=parseFloat(re("southBoundLatitude",n,"0")),a.xmax=parseFloat(re("eastBoundLongitude",n,"0")),a.ymax=parseFloat(re("northBoundLatitude",n,"0"))),s||n||(a=new S.Z(-180,-90,180,90,new I.Z({wkid:4326}))),i.minScale=ae(e,"MaxScaleDenominator",0),i.maxScale=ae(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)i.name=e.textContent||"";else if("Title"===e.nodeName)i.title=e.textContent||"";else if("Abstract"===e.nodeName)i.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(o);if(r&&0===r.indexOf("EPSG:")){const i=parseInt(r.substring(5),10);0===i||isNaN(i)||a||(a="1.3.0"===t?ie(e,i,(0,M.A)(i)):ie(e,i))}const s=r&&r.indexOf(":");if(s&&s>-1){let n=parseInt(r.substring(s+1,r.length),10);0===n||isNaN(n)||(n=X[n]??n);const a="1.3.0"===t?ie(e,n,(0,M.A)(n)):ie(e,n);a&&i.fullExtents&&i.fullExtents.push(a)}}else if(e.nodeName===o)(e.textContent?.split(" ")??[]).forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=X[t]??t;i.spatialReferences.includes(e)||i.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||i.legendUrl){if("Layer"===e.nodeName){const s=oe(e,t,r);s&&(s.parentLayerId=i.id,i.sublayers||(i.sublayers=[]),i.sublayers.push(s))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(i.legendUrl=e.getAttribute("xlink:href"))}}})),i.extent=a?.toJSON(),i.dimensions=te("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,s=e.getAttribute("unitSymbol")??void 0,n=e.getAttribute("default")??void 0,a="0"!==K("default",e,"0"),o="0"!==K("nearestValue",e,"0"),l="0"!==K("current",e,"0");return ue({name:t,units:r})?{name:"time",units:"ISO8601",extent:de(i),default:de(n),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:pe(i),unitSymbol:s,default:pe(n),multipleValues:a,nearestValue:o}:{name:t,units:r,extent:ce(i),unitSymbol:s,default:ce(n),multipleValues:a,nearestValue:o}})),i}function le(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter(G.pC):r.map((e=>parseFloat(e)))}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter(G.pC):r}function de(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?ye(t[2]):void 0}})).filter(G.pC):r.map((e=>new Date(e)))}function ye(e){const t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:he(t[1]),months:he(t[2]),days:he(t[3]),hours:he(t[4]),minutes:he(t[5]),seconds:he(t[6])}:null}function he(e){if(!e)return 0;const t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function me(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const fe=new Set([102100,3857,102113,900913]),ge=new Set([3395,54004]),be=new p.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function ve(e){return"text/html"===e}function we(e){return"text/plain"===e}let _e=class extends((0,O.h)((0,A.n)((0,F.Q)((0,N.M)((0,T.q)((0,E.I)((0,d.R)(L.Z)))))))){constructor(...e){super(...e),this.allSublayers=new u.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),h.Z_),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.Z_),(0,h.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),h.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(y.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new S.Z({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(ve)??this.featureInfoFormats.find(we)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(ve(e)||we(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new I.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Se(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Se(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const s=new Map,n=e.flatten((({sublayers:e})=>e??[]));for(const e of n)if("number"==typeof e.parent?.id){const t=s.get(e.parent.id);null!=t?t.push(e.id):s.set(e.parent.id,[e.id])}for(const e of n){const r={sublayer:e,...i},n=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(s.has(e.id)&&(n.sublayerIds=s.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=n.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,m.mN)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,m.fl)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio??1,n=(0,x.yZ)({extent:e,width:t})*s,a=new k({layer:this,scale:n}),{xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c}=e,d=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&fe.has(r)?t.find((e=>fe.has(e)))||t.find((e=>ge.has(e)))||102100:r)}(c,this.spatialReferences),y="1.3.0"===this.version&&(0,M.A)(d)?`${l},${o},${p},${u}`:`${o},${l},${u},${p}`,h=a.toJSON();return{bbox:y,["1.3.0"===this.version?"crs":"srs"]:null==d||isNaN(d)?void 0:"EPSG:"+d,...h}}async fetchImage(e,t,r,i){const s=this.mapUrl,n=this.createExportImageParameters(e,t,r,i);if(!n.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,p={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...n,time:u,...this.refreshParameters}),signal:i?.signal};return(0,o.default)(s??"",p).then((e=>e.data))}async fetchImageBitmap(e,t,r,i){const s=this.mapUrl??"",n=this.createExportImageParameters(e,t,r,i);if(!n.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,p={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...n,time:u,...this.refreshParameters}),signal:i?.signal},{data:c}=await(0,o.default)(s,p);return(0,$.g)(c,s,i?.signal)}fetchFeatureInfo(e,t,r,i,s){const n=(0,x.yZ)({extent:e,width:t}),a=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new k({layer:this,scale:n}).visibleSublayers);if(null==this.featureInfoUrl||null==a)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:s}:{x:i,y:s},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...l},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,m.fl)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,P.G)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const r=900913===t?I.Z.WebMercator:new I.Z({wkid:t});return(0,C.fS)(r,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,m.qg)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new a.Z({title:this.title,content:t}),i=new n.Z({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,o.default)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=z(i)}if(this.parsedUrl){const e=new m.R9(this.parsedUrl.path),{httpsDomains:t}=s.default.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Se(e,t,r){e=e??[];const i=new Map;e.every((e=>null==e.id))&&(e=(0,c.d9)(e)).forEach(((e,t)=>e.id=t));for(const s of e){const e=new J;e.read(s,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const s=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new l.Z),r.sublayers.push(e)}else s.push(e)}return s}(0,i._)([(0,f.Cb)({readOnly:!0})],_e.prototype,"allSublayers",void 0),(0,i._)([(0,f.Cb)({json:{type:Object,write:!0}})],_e.prototype,"customParameters",void 0),(0,i._)([(0,f.Cb)({json:{type:Object,write:!0}})],_e.prototype,"customLayerParameters",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:!0}})],_e.prototype,"copyright",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"description",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],_e.prototype,"dimensions",void 0),(0,i._)([(0,f.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],_e.prototype,"fullExtent",void 0),(0,i._)([(0,b.r)(["web-document","portal-item"],"fullExtent",["extent"])],_e.prototype,"readFullExtentFromItemOrMap",null),(0,i._)([(0,w.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],_e.prototype,"writeFullExtent",null),(0,i._)([(0,f.Cb)()],_e.prototype,"fullExtents",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"featureInfoFormat",null),(0,i._)([(0,f.Cb)({type:[String],readOnly:!0})],_e.prototype,"featureInfoFormats",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"featureInfoUrl",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"fetchFeatureInfoFunction",void 0),(0,i._)([(0,f.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:be.jsonValues,read:{reader:be.read,source:"format"},write:{writer:be.write,target:"format"}}}}})],_e.prototype,"imageFormat",void 0),(0,i._)([(0,b.r)("imageFormat",["supportedImageFormatTypes"])],_e.prototype,"readImageFormat",null),(0,i._)([(0,f.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],_e.prototype,"imageMaxHeight",void 0),(0,i._)([(0,f.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],_e.prototype,"imageMaxWidth",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"imageTransparency",void 0),(0,i._)([(0,f.Cb)(U.rn)],_e.prototype,"legendEnabled",void 0),(0,i._)([(0,f.Cb)({type:["show","hide","hide-children"]})],_e.prototype,"listMode",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"mapUrl",void 0),(0,i._)([(0,f.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],_e.prototype,"isReference",void 0),(0,i._)([(0,f.Cb)({type:["WMS"]})],_e.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"resourceInfo",void 0),(0,i._)([(0,f.Cb)({type:I.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],_e.prototype,"spatialReference",void 0),(0,i._)([(0,b.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],_e.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i._)([(0,f.Cb)({type:[g.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],_e.prototype,"spatialReferences",void 0),(0,i._)([(0,w.c)(["web-document","portal-item"],"spatialReferences")],_e.prototype,"writeSpatialReferences",null),(0,i._)([(0,f.Cb)({type:l.Z.ofType(J),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,_.d)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],_e.prototype,"sublayers",void 0),(0,i._)([(0,b.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],_e.prototype,"readSublayersFromItemOrMap",null),(0,i._)([(0,b.r)("service","sublayers",["layers"])],_e.prototype,"readSublayers",null),(0,i._)([(0,w.c)("sublayers",{layers:{type:[J]},visibleLayers:{type:[String]}})],_e.prototype,"writeSublayers",null),(0,i._)([(0,f.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],_e.prototype,"type",void 0),(0,i._)([(0,f.Cb)(U.HQ)],_e.prototype,"url",null),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"version",void 0),_e=(0,i._)([(0,v.j)("esri.layers.WMSLayer")],_e);const Ie=_e},38009:(e,t,r)=>{r.d(t,{q:()=>f});var i=r(43697),s=r(20102),n=r(81271),a=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(30556),u=r(50549),p=r(76169);const c={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,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,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},d={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},y={ArcGISFeatureLayer:!0},h={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,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,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":c,"web-map/basemap":d,"web-map/tables":y,"link-chart/operational-layers":{...c,LinkChartLayer:!0},"link-chart/basemap":d,"link-chart/tables":y,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,OrientedImageryLayer:!0}};var m=r(21506);const f=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,p.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e??"Layer"}read(e,t){t&&(t.layer=this),(0,u.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=h[e];let i=!!r?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new s.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof s.Z&&"web-document-write:property-required"===e.name)).length;return(0,n.jc)(r?.url)?(t?.messages?.push(new s.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&&i?null:r}beforeSave(){}};return(0,i._)([(0,a.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,i._)([(0,a.Cb)(m.rT)],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,a.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,a.Cb)(m.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,a.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,i._)([(0,l.c)("title"),(0,l.c)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.OperationalLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>S});var i=r(43697),s=r(68773),n=r(40330),a=r(3172),o=r(66643),l=r(20102),u=r(92604),p=r(70586),c=r(95330),d=r(81271),y=r(5600),h=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),b=r(48522),v=r(15235),w=r(86082),_=r(14661);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!s.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,_.Ss)(r);let s,a;if(i)s=r.portal.url;else try{s=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!s||!(0,d.Zo)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=b.Z.getDefault();if(s&&s.loaded&&(0,d.Fv)(s.restUrl)===(0,d.Fv)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.q6)((0,a.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.default.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||b.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},I={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var i=r(43697),s=r(92604),n=r(95330),a=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(46791),u=(r(20102),r(26258),r(87538));const p=new l.Z,c=new WeakMap;function d(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function y(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:y(t,e%t):0}let h=0,m=0;function f(){const e=Date.now();for(const t of p)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of p)t=y(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==m){if(m=t,clearInterval(h),0===m)return void(h=0);h=setInterval(f,m)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,n.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){d(e)&&p.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&p.includes(this)&&p.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,n.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,a.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,a.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),s=r(92835),n=r(84552),a=r(5600),o=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(35671),p=r(76259),c=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=c.v.fromJSON(r.timeOffsetUnits);return i&&s?new n.Z({value:i,unit:s}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,a.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,a.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,a.Cb)({value:null,type:p.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},52162:(e,t,r)=>{r.d(t,{A:()=>s});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&i.some((([t,r])=>e>=t&&e<=r))}},76259:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),s=r(92835),n=r(84552),a=r(2368),o=r(96674),l=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),c=r(30556),d=r(80216);function y(e,t){return n.Z.fromJSON({value:e,unit:t})}let h=class extends((0,a.J)(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 r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,c.c)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.Cb)({type:d.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"timeReference",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],h);const m=h},90082:(e,t,r)=>{r.d(t,{V:()=>a,g:()=>n});var i=r(20102),s=r(95330);async function n(e,t,r){let n;try{n=await createImageBitmap(e)}catch(e){throw new i.Z("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.k_)(r),n}async function a(e,t,r,n,a){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.Z("request:server",`Unable to load tile ${t}/${r}/${n}`,{error:e,level:t,row:r,col:n})}return(0,s.k_)(a),o}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1916],{36030:(e,t,r)=>{r.d(t,{J:()=>i});var s=r(35454),n=r(5600);function i(e,t={}){const r=e instanceof s.X?e:new s.X(e,t),i={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(i.readOnly=!!t.readOnly),void 0!==t?.default&&(i.json.default=t.default),void 0!==t?.name&&(i.json.name=t.name),void 0!==t?.nonNullable&&(i.nonNullable=t.nonNullable),(0,n.Cb)(i)}},74085:(e,t,r)=>{function s(e){}r.d(t,{Bg:()=>s}),r(80442)},45091:(e,t,r)=>{r.d(t,{Z:()=>d});var s,n,i=r(80442),o=r(71143);(n=s||(s={}))[n.varint=0]="varint",n[n.fixed64=1]="fixed64",n[n.delimited=2]="delimited",n[n.fixed32=5]="fixed32",n[n.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,i.Z)("safari")||(0,i.Z)("ios")?6:(0,i.Z)("ff")?12:32;class d{constructor(e,t,r=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=s.unknown,this._init(e,t,r,n)}_init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}asUnsafe(){return this}clone(){return new d(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;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=d.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){d.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case s.varint:this._decodeVarint();break;case s.fixed64:this._skip(8);break;case s.delimited:this._skip(this._getLength());break;case s.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,s=0;if(this._end-t>=10)do{if(s=e[t++],r|=127&s,0==(128&s))break;if(s=e[t++],r|=(127&s)<<7,0==(128&s))break;if(s=e[t++],r|=(127&s)<<14,0==(128&s))break;if(s=e[t++],r|=(127&s)<<21,0==(128&s))break;if(s=e[t++],r+=268435456*(127&s),0==(128&s))break;if(s=e[t++],r+=34359738368*(127&s),0==(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),0==(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),0==(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),0==(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),0==(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],0!=(128&s));)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t=this._pos,r=0,s=0;const n=1&e[t];if(this._end-t>=10)do{if(s=e[t++],r|=127&s,0==(128&s))break;if(s=e[t++],r|=(127&s)<<7,0==(128&s))break;if(s=e[t++],r|=(127&s)<<14,0==(128&s))break;if(s=e[t++],r|=(127&s)<<21,0==(128&s))break;if(s=e[t++],r+=268435456*(127&s),0==(128&s))break;if(s=e[t++],r+=34359738368*(127&s),0==(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),0==(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),0==(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),0==(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),0==(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],0!=(128&s));)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,n?-(r+1)/2:r/2}_getLength(){if(this._dataType!==s.delimited)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>u){const s=e.subarray(t,r);return l.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)}}d.pool=new o.Z(d,void 0,(e=>{e._data=null,e._dataView=null}))},33955:(e,t,r)=>{r.d(t,{Ji:()=>f,YX:()=>u,aW:()=>d,im:()=>y,l9:()=>p,oU:()=>h,q9:()=>m,wp:()=>c});var s=r(6570),n=r(9361),i=r(65091),o=r(94139),a=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function c(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function y(e){return null==e?null:e instanceof n.Z?e:c(e)?o.Z.fromJSON(e):p(e)?l.Z.fromJSON(e):h(e)?a.Z.fromJSON(e):d(e)?i.Z.fromJSON(e):u(e)?s.Z.fromJSON(e):null}function f(e){return e?c(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:i.Z};function m(e){return e&&g[e]||null}},82397:(e,t,r)=>{r.d(t,{G6:()=>f,Ie:()=>y,J9:()=>p,RF:()=>c,U1:()=>h,vY:()=>o}),r(33955);const s=(e,t,r)=>[t,r],n=(e,t,r)=>[t,r,e[2]],i=(e,t,r)=>[t,r,e[2],e[3]];function o(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function l({scale:e,translate:t},r){return t[1]-r*e[1]}function u(e,t,r){const s=new Array(r.length);if(!r.length)return s;const[n,i]=e.scale;let o=a(e,r[0][0]),u=l(e,r[0][1]);s[0]=t(r[0],o,u);for(let e=1;e<r.length;e++){const a=r[e];o+=a[0]*n,u-=a[1]*i,s[e]=t(a,o,u)}return s}function d(e,t,r){const s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=u(e,t,r[n]);return s}function c(e,t,r,s,n){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(s&&(t.z=r.z),n&&(t.m=r.m)),t}function p(e,t,r,o,a){return null!=r&&(t.points=function(e,t,r,o){return u(e,r?o?i:n:o?n:s,t)}(e,r.points,o,a)),t}function h(e,t,r,s,n){return null==r||(t.x=a(e,r.x),t.y=l(e,r.y),t!==r&&(s&&(t.z=r.z),n&&(t.m=r.m))),t}function y(e,t,r,o,a){return null!=r&&(t.rings=function(e,t,r,o){return d(e,r?o?i:n:o?n:s,t)}(e,r.rings,o,a)),t}function f(e,t,r,o,a){return null!=r&&(t.paths=function(e,t,r,o){return d(e,r?o?i:n:o?n:s,t)}(e,r.paths,o,a)),t}},86973:(e,t,r)=>{r.d(t,{M:()=>n,P:()=>i});var s=r(35454);const n=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>i});var s=r(67900),n=r(8744);function i(e,t,r){if(null==t||null==r||r.vcsWkid||(0,n.fS)(t,r))return null;const i=(0,s._R)(t)/(0,s._R)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var s,n=r(43697),i=r(35454),o=r(96674),a=r(5600),l=r(75215),u=(r(67676),r(80442),r(36030)),d=r(71715),c=r(52011),p=r(72729),h=r(86719);const y=new i.X({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 f=s=class extends o.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,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new s({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,visible:this.visible})}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,d.r)("description")],f.prototype,"readDescription",null),(0,n._)([(0,a.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],f.prototype,"domain",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],f.prototype,"length",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n._)([(0,u.J)(h.v)],f.prototype,"type",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"valueType",void 0),(0,n._)([(0,d.r)("valueType",["description"])],f.prototype,"readValueType",null),(0,n._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=s=(0,n._)([(0,c.j)("esri.layers.support.Field")],f);const g=f},72729:(e,t,r)=>{r.d(t,{im:()=>x,V5:()=>v}),r(80442);var s,n=r(43697),i=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let d=s=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],d.prototype,"code",void 0),d=s=(0,n._)([(0,l.j)("esri.layers.support.CodedValue")],d);const c=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,a.J)(c)],p.prototype,"type",void 0),p=(0,n._)([(0,l.j)("esri.layers.support.Domain")],p);const h=p;var y;let f=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,o.Cb)({type:[d],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,n._)([(0,a.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=y=(0,n._)([(0,l.j)("esri.layers.support.CodedValueDomain")],f);const g=f;var m;r(92604),r(20102);let _=m=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,n._)([(0,a.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,n._)([(0,l.j)("esri.layers.support.InheritedDomain")],_);const b=_;var k;let w=k=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new k({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.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,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,n._)([(0,a.J)({range:"range"})],w.prototype,"type",void 0),w=k=(0,n._)([(0,l.j)("esri.layers.support.RangeDomain")],w);const T=w,v={key:"type",base:h,typeMap:{range:w,"coded-value":g,inherited:b}};function x(e){if(!e||!e.type)return null;switch(e.type){case"range":return T.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>s});const s=new(r(35454).X)({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",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},77863:(e,t,r)=>{r.d(t,{G$:()=>v,K9:()=>V,wn:()=>_});var s=r(20102),n=r(45091),i=r(5428),o=r(78760);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["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"],u=["upperLeft","lowerLeft"];function d(e){return e>=a.length?null:a[e]}function c(e){return e>=l.length?null:l[e]}function p(e){return e>=u.length?null:u[e]}function h(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const s=e.asUnsafe(),n=t.createPointGeometry(r);for(;s.next();)switch(s.tag()){case 3:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addCoordinatePoint(n,s.getSInt64(),i++);break}default:s.skip()}return n}function f(e,t,r){const s=e.asUnsafe(),n=t.createGeometry(r),i=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;s.next();)switch(s.tag()){case 2:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addLength(n,s.getUInt32(),i++);break}case 3:{const e=s.getUInt32(),r=s.pos()+e;let o=0;for(t.allocateCoordinates(n);s.pos()<r;)t.addCoordinate(n,s.getSInt64(),o),o++,o===i&&(o=0);break}default:s.skip()}return n}function g(e){const t=e.asUnsafe(),r=new i.Z;let s="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.coords.push(t.getSInt64());break}case 1:s=o.A[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:s}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:d(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=d(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=c(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function k(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(m);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 w(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function T(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function v(e){const t={originPosition:p(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=p(r.getEnum());break;case 2:t.scale=r.processMessage(w);break;case 3:t.translate=r.processMessage(T);break;default:r.skip()}return t}function x(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.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 G(e,t){const r=t.createFeatureResult(),s=e.asUnsafe();r.geometryType=h(t,0);let n=!1;for(;s.next();)switch(s.tag()){case 1:r.objectIdFieldName=s.getString();break;case 3:r.globalIdFieldName=s.getString();break;case 4:r.geohashFieldName=s.getString();break;case 5:r.geometryProperties=s.processMessage(x);break;case 7:r.geometryType=h(t,s.getEnum());break;case 8:r.spatialReference=s.processMessageWithArgs(F,t);break;case 10:r.hasZ=s.getBool();break;case 11:r.hasM=s.getBool();break;case 12:r.transform=s.processMessage(v);break;case 9:{const e=s.getBool();r.exceededTransferLimit=e;break}case 13:t.addField(r,s.processMessage(_));break;case 15:n||(t.prepareFeatures(r),n=!0),t.addFeature(r,s.processMessageWithArgs(k,t,r,r.fields));break;case 2:r.uniqueIdField=s.processMessage(b);break;default:s.skip()}return t.finishFeatureResult(r),r}function S(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(g);break;case 1:r.featureResult=e.processMessageWithArgs(G,t);break;default:e.skip()}return null!=s&&r.featureResult&&t.addQueryGeometry(r,s),r}function V(e,t){try{const r=2,s=new n.Z(new Uint8Array(e),new DataView(e)),i={};for(;s.next();)s.tag()===r?i.queryResult=s.processMessageWithArgs(S,t):s.skip();return i}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:()=>l,J:()=>u});var s=r(67900),n=r(8744),i=r(70272),o=r(44876),a=r(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 o.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.u_}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.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 a.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,o=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=o),n}},61916:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var s=r(74085),n=r(99001),i=r(82971),o=r(69285),a=(r(80442),r(1533),r(60437),r(24470),r(82397),r(86973),r(1231));r(8744);class l{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var d=r(98732);function c(e,t){return t}function p(e,t,r,s){switch(r){case 0:return g(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?g(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function h(e,t,r,s){return 2===r?g(e,t,2):p(e,t,r,s)}function y(e,t,r,s){return 2===r?g(e,t,3):p(e,t,r,s)}function f(e,t,r,s){return 3===r?g(e,t,3):h(e,t,r,s)}function g({translate:e,scale:t},r,s){return e[s]+r*t[s]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=c,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return new u}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,o.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return new i.Z}addField(e,t){e.fields.push(a.Z.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength??0;if(r>0)for(const e in t.attributes){const s=t.attributes[e];"string"==typeof s&&s.length>r&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,n=(0,d.$g)(r.clone(),r,!1,!1,this._transform),i=(0,d.di)(n,s,!1,!1);let o=null;switch(s){case"esriGeometryPoint":o="point";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryMultipoint":o="multipoint"}i.type=o,e.queryGeometryType=s,e.queryGeometry=i}prepareFeatures(e){switch(this._transform=e.transform??null,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,s.Bg)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l((0,n.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=this._transform?this._applyTransform(this._transform,t,r,0):t;if(null!=s)switch(r){case 0:e.x=s;break;case 1:e.y=s;break;case 2:e.hasZ?e.z=s:e.m=s;break;case 3:e.m=s}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._transform?this._applyTransform(this._transform,e,t,r):e}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),n=e[e.length-1],i=this._coordinateBuffer;if(i){if(0===r){const e=this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT;n.push(new Float64Array(i.buffer,e,this._vertexDimension))}i[this._coordinateBufferPtr++]=s}}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?f:t?h:r?y:p}}var _=r(45178);class b{_parseFeatureQuery(e){const t=(0,_.C)(e.buffer,new m(e.options)),r={...t,spatialReference:t.spatialReference?.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(r)}}function k(){return new b}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3874],{22303:(e,t,r)=>{r.d(t,{Z:()=>h});var o,s,i=r(35270),l=r(22021),n=r(75215);function a(e){return(0,l.uZ)((0,n.vU)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class p{static blendColors(e,t,r,o=new p){return o.r=Math.round(e.r+(t.r-e.r)*r),o.g=Math.round(e.g+(t.g-e.g)*r),o.b=Math.round(e.b+(t.b-e.b)*r),o.a=e.a+(t.a-e.a)*r,o._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),o=r[1];if("rgb"===o&&3===e.length||"rgba"===o&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===o&&3===e.length||"hsla"===o&&4===e.length)return p.fromArray((0,i.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,o=(1<<r)-1;let s=Number("0x"+e.substr(1));return isNaN(s)?null:(["b","g","r"].forEach((e=>{const i=s&o;s>>=r,t[e]=4===r?17*i:i})),t.a=1,t)}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.St)(e)?(0,i.h$)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return e&&new p([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),o=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,o,a(255*this.a)]:[t,r,o]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,o){this.r=e,this.g=t,this.b=r,this.a=o}}p.prototype.declaredClass="esri.Color",(s=(o=p||(p={})).AlphaMode||(o.AlphaMode={}))[s.ALWAYS=0]="ALWAYS",s[s.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=p},6352:(e,t,r)=>{r.d(t,{a:()=>d});var o,s=r(43697),i=r(22303),l=r(96674),n=r(22974),a=r(5600),u=(r(75215),r(52011)),p=r(37308);let h=o=class extends l.wq{constructor(){super(...arguments),this.color=new i.Z("white")}clone(){return new o({color:(0,n.d9)(this.color)})}};(0,s._)([(0,a.Cb)(p.a)],h.prototype,"color",void 0),h=o=(0,s._)([(0,u.j)("esri.symbols.callouts.LineCallout3DBorder")],h);const d=h;Object.freeze(Object.defineProperty({__proto__:null,default:d},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>a,St:()=>s,VL:()=>l,h$:()=>i,rW:()=>u});const o={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!o[e]||!!o[e.toLowerCase()]}function i(e){return o[e]??o[e.toLowerCase()]}function l(e){return[...i(e)]}function n(e,t,r){r<0&&++r,r>1&&--r;const o=6*r;return o<1?e+(t-e)*o:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,o=1){const s=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,l=2*r-i;return[Math.round(255*n(l,i,s+1/3)),Math.round(255*n(l,i,s)),Math.round(255*n(l,i,s-1/3)),o]}function u(e){const t=e.length>5,r=t?8:4,o=(1<<r)-1,s=t?1:17,i=t?9===e.length:5===e.length;let l=Number("0x"+e.substr(1));if(isNaN(l))return null;const n=[0,0,0,1];let a;return i&&(a=l&o,l>>=r,n[3]=s*a/255),a=l&o,l>>=r,n[2]=s*a,a=l&o,l>>=r,n[1]=s*a,a=l&o,l>>=r,n[0]=s*a,n}},83379:(e,t,r)=>{r.d(t,{Z:()=>m});var o=r(43697),s=r(20102),i=r(70586),l=r(609),n=r(95330),a=r(20941),u=r(5600),p=r(52011);const h="loaded",d=e=>{let t=class extends e{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((e=>{const t=this.load.bind(this);this.load=r=>{const o=new Promise(((e,t)=>{const o=(0,n.$F)(r,t);this.destroyed&&t(new s.Z("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally((()=>{o&&o.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal}),(0,n.fu)(e.signal,(()=>{this._promiseProps.abort()}))}return e(),o}}))),this.when((()=>{this._set("loadStatus",h),this._loadController=null}),(e=>{this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null}))}destroy(){this._loadController=(0,i.IM)(this._loadController),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===h}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.Z("load:cancelled","Cancelled")),this._loadController?.abort()),this}};return(0,o._)([(0,u.Cb)({readOnly:!0})],t.prototype,"loaded",null),(0,o._)([(0,u.Cb)({readOnly:!0})],t.prototype,"loadError",void 0),(0,o._)([(0,u.Cb)({clonable:!1})],t.prototype,"loadStatus",void 0),(0,o._)([(0,u.Cb)({type:[a.Z],readOnly:!0})],t.prototype,"loadWarnings",null),t=(0,o._)([(0,p.j)("esri.core.Loadable")],t),t};let y=class extends(d(l.D)){};var c;y=(0,o._)([(0,p.j)("esri.core.Loadable")],y),(c=y||(y={})).LoadableMixin=d,c.isLoadable=function(e){return!(!e||!e.load)};const m=y},609:(e,t,r)=>{r.d(t,{D:()=>d,v:()=>h});var o,s,i=r(43697),l=r(92036),n=r(70586),a=r(95330),u=r(52011);(s=o||(o={}))[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";class p{constructor(){this._resolver=(0,a.hh)(),this._status=o.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=o.RESOLVED,this._cleanUp()}),(()=>{this._status=o.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===o.RESOLVED}isRejected(){return this._status===o.REJECTED}isFulfilled(){return this._status!==o.PENDING}abort(){this._resolver.reject((0,a.zE)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,a.hh)(),t=[...this._resolvingPromises,(0,n.j0)(e.promise)],r=this._allPromise=Promise.all(t);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(e=>{this.isFulfilled()||this._allPromise!==r||(0,a.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const h=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new p,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps?.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then((()=>this)).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,i._)([(0,u.j)("esri.core.Promise")],t),t};let d=class extends(h(l.Z)){};d=(0,i._)([(0,u.j)("esri.core.Promise")],d)},70921:(e,t,r)=>{r.d(t,{R:()=>i,Z:()=>s});var o=r(46791);function s(e,t,r=o.Z){return t||(t=new r),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function i(e){return e}},62357:(e,t,r)=>{r.d(t,{F2:()=>l,Wz:()=>n,t_:()=>a,vW:()=>u});const o=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,s="screenUtils.toPt: input not recognized!",i=96;function l(e){return e?e/72*i:0}function n(e){return e?72*e/i:0}function a(e){if("string"==typeof e){const t=e.match(o);if(t){const r=Number(t[1]),o=t[3]&&t[3].toLowerCase(),s="-"===e.charAt(0),i="px"===o?n(r):r;return s?-i:i}return console.warn(s),null}return e}function u(e=0,t=0){return{x:e,y:t}}},70171:(e,t,r)=>{let o;r.d(t,{Kd:()=>l,Ze:()=>p,qe:()=>a});const s=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function i(){return s??globalThis.navigator?.language??"en"}function l(){return void 0===o&&(o=i()),o}const n=[];function a(e){return n.push(e),{remove(){n.splice(n.indexOf(e),1)}}}const u=[];function p(e){return u.push(e),{remove(){n.splice(u.indexOf(e),1)}}}globalThis.addEventListener?.("languagechange",(function(){const e=i();o!==e&&(o=e,[...u].forEach((t=>{t.call(null,e)})),[...n].forEach((t=>{t.call(null,e)})))}))},84230:(e,t,r)=>{r.d(t,{A2:()=>l,S1:()=>p,fb:()=>i,ln:()=>h,oP:()=>u,rQ:()=>n,y2:()=>a});var o=r(40330),s=r(3172);const i={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function l(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function n(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function a(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}async function u(e,t){const r=o.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const l=`${e.substring(0,i)}/rest/info`,n=null!=t?t.signal:null,{data:a}=await(0,s.default)(l,{query:{f:"json"},responseType:"json",signal:n});return a?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function h(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},48522:(e,t,r)=>{r.d(t,{Z:()=>P});var o=r(43697),s=r(68773),i=r(40330),l=r(3172),n=r(20102),a=r(96674),u=r(83379),p=r(70586),h=r(95330),d=r(5600),y=r(75215),c=(r(67676),r(80442),r(71715)),m=r(52011),b=r(6570),f=r(70171);let g;var v=r(41253),_=r(92036);let w=class extends _.Z{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o._)([(0,d.Cb)()],w.prototype,"nextQueryParams",void 0),(0,o._)([(0,d.Cb)()],w.prototype,"queryParams",void 0),(0,o._)([(0,d.Cb)()],w.prototype,"results",void 0),(0,o._)([(0,d.Cb)()],w.prototype,"total",void 0),w=(0,o._)([(0,m.j)("esri.portal.PortalQueryResult")],w);const C=w;var S,Z=r(86082),j=r(71058);let x;const O={PortalGroup:()=>Promise.resolve().then(r.bind(r,68916)),PortalItem:()=>Promise.all([r.e(5235),r.e(9880)]).then(r.bind(r,15235)),PortalUser:()=>Promise.resolve().then(r.bind(r,86082))};let L=S=class extends((0,a.eC)(u.Z)){constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.default.portalUrl,this.urlKey=null,this.user=null,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){D.unregister(this),this.defaultBasemap=(0,p.SC)(this.defaultBasemap),this.defaultDevBasemap=(0,p.SC)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.SC)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.hw)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)s.default.request.trustedServers.includes(t)||s.default.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=!(this.user&&this.user.orgId)||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.substring(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.default.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(5235),r.e(3668)]).then(r.bind(r,93668)).then((({default:t})=>{(0,h.k_)(e),x=t})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e))).then((e=>{if(i.id){const e=i.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==S.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=i.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),D.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(4547),r.e(5235),r.e(9016),r.e(5665),r.e(3602)]).then(r.bind(r,65665))).default;return e?e.map((e=>new t({id:e.id,url:e.url}))):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(t?.fetchBasemaps3D){const o=await this._fetchBasemaps3D(e,t);r.unshift(...o)}return r}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then((e=>e.categorySchema)):(0,h.Hc)(e)?Promise.reject((0,h.zE)()):Promise.resolve([])}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new v.Z;if(r.num=100,r.sortField="title",t&&t.length){const o=[];for(const e of t)o.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,e).then((e=>e.results))}return(0,h.Hc)(e)?Promise.reject((0,h.zE)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,f.Kd)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,f.Kd)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return g&&!g.destroyed||(g=new S),g}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const o=this.restUrl+"/portals/self",s={authMode:e,query:{culture:(0,f.Kd)().toLowerCase()},...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),t&&(s.query.default=!0),this.request(o,s)}queryPortal(e,t,r,o){const s=(0,y.se)(v.Z,t),i=t=>this.request(this.restUrl+e,{...s.toRequestOptions(this),...o}).then((e=>{const r=s.clone();return r.start=e.nextStart,new C({nextQueryParams:r,queryParams:s,total:e.total,results:S._resultsToTypedArray(t,{portal:this},e,o)})})).then((e=>Promise.all(e.results.map((t=>"function"==typeof t.when?t.when():e))).then((()=>e),(t=>((0,h.r9)(t),e)))));return r&&O[r]?O[r]().then((({default:e})=>((0,h.k_)(o),i(e)))):i()}signIn(){if(this.authMode===S.AUTH_MODE_ANONYMOUS)return Promise.reject(new n.Z("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate")))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate")))).then((e=>{e&&(this.sourceJSON=e,this.read(e))}));return i.id?i.id.getCredential(this.restUrl).then((t=>e(t))):e(this.credential)}normalizeUrl(e){const t=this.credential&&this.credential.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then((e=>{const t=S._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map((t=>"function"==typeof t.when?t.when():e))).then((()=>t),(()=>t))}))}request(e,t={}){const r={f:"json",...t.query},{authMode:o=(this.authMode===S.AUTH_MODE_ANONYMOUS?"anonymous":"auto"),body:s=null,cacheBust:i=!1,method:n="auto",responseType:a="json",signal:u}=t,p={authMode:o,body:s,cacheBust:i,method:n,query:r,responseType:a,timeout:0,signal:u};return(0,l.default)(this._normalizeSSL(e),p).then((e=>e.data))}toJSON(){throw new n.Z("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new S({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new n.Z("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new v.Z;r.query=e||(s.default.apiKey&&(0,j.r)(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,t);if(!o.total)return[];const i=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=i.sortField||"name",r.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(r,t);return l.total?l.results.filter((e=>"Web Map"===e.type)).map((e=>new x({portalItem:e}))):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];const o=new v.Z({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,t);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(o,t);return l.total?l.results.filter((e=>"Web Scene"===e.type)).map((e=>new x({portalItem:e}))):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=x.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,o){let s=[];if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(s=s.map((r=>{const o=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};L.AUTH_MODE_ANONYMOUS="anonymous",L.AUTH_MODE_AUTO="auto",L.AUTH_MODE_IMMEDIATE="immediate",(0,o._)([(0,d.Cb)()],L.prototype,"access",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"allSSL",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"authMode",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"authorizedCrossOriginDomains",void 0),(0,o._)([(0,c.r)("authorizedCrossOriginDomains")],L.prototype,"readAuthorizedCrossOriginDomains",null),(0,o._)([(0,d.Cb)()],L.prototype,"basemapGalleryGroupQuery",void 0),(0,o._)([(0,d.Cb)({json:{name:"3DBasemapGalleryGroupQuery"}})],L.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"bingKey",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canListApps",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canListData",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canListPreProvisionedItems",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canProvisionDirectPurchase",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSearchPublic",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canShareBingPublic",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSharePublic",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSignInArcGIS",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"canSignInIDP",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"colorSetsGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"commentsEnabled",void 0),(0,o._)([(0,d.Cb)({type:Date})],L.prototype,"created",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"credential",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"culture",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"currentVersion",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"customBaseUrl",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"defaultBasemap",void 0),(0,o._)([(0,c.r)("defaultBasemap")],L.prototype,"readDefaultBasemap",null),(0,o._)([(0,d.Cb)()],L.prototype,"defaultDevBasemap",void 0),(0,o._)([(0,c.r)("defaultDevBasemap")],L.prototype,"readDefaultDevBasemap",null),(0,o._)([(0,d.Cb)({type:b.Z})],L.prototype,"defaultExtent",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"defaultVectorBasemap",void 0),(0,o._)([(0,c.r)("defaultVectorBasemap")],L.prototype,"readDefaultVectorBasemap",null),(0,o._)([(0,d.Cb)()],L.prototype,"description",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"eueiEnabled",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"extraQuery",null),(0,o._)([(0,d.Cb)()],L.prototype,"featuredGroups",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"featuredItemsGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"galleryTemplatesGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"livingAtlasGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"hasCategorySchema",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"helpBase",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"helperServices",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"helpMap",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"homePageFeaturedContent",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"homePageFeaturedContentCount",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"httpPort",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"httpsPort",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"id",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"ipCntryCode",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"isOrganization",null),(0,o._)([(0,d.Cb)()],L.prototype,"isPortal",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"isReadOnly",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"itemPageUrl",null),(0,o._)([(0,d.Cb)()],L.prototype,"layerTemplatesGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"maxTokenExpirationMinutes",void 0),(0,o._)([(0,d.Cb)({type:Date})],L.prototype,"modified",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"name",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"portalHostname",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"portalMode",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"portalProperties",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"region",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"restUrl",null),(0,o._)([(0,d.Cb)()],L.prototype,"rotatorPanels",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"showHomePageDescription",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"sourceJSON",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"staticImagesUrl",void 0),(0,o._)([(0,d.Cb)({json:{name:"2DStylesGroupQuery"}})],L.prototype,"stylesGroupQuery2d",void 0),(0,o._)([(0,d.Cb)({json:{name:"stylesGroupQuery"}})],L.prototype,"stylesGroupQuery3d",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"supportsHostedServices",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"symbolSetsGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"templatesGroupQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"thumbnail",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],L.prototype,"thumbnailUrl",null),(0,o._)([(0,d.Cb)()],L.prototype,"units",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"url",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"urlKey",void 0),(0,o._)([(0,c.r)("urlKey")],L.prototype,"readUrlKey",null),(0,o._)([(0,d.Cb)()],L.prototype,"user",void 0),(0,o._)([(0,c.r)("user")],L.prototype,"readUser",null),(0,o._)([(0,d.Cb)()],L.prototype,"useStandardizedQuery",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"useVectorBasemaps",void 0),(0,o._)([(0,d.Cb)()],L.prototype,"vectorBasemapGalleryGroupQuery",void 0),L=S=(0,o._)([(0,m.j)("esri.portal.Portal")],L);const P=L,D=new FinalizationRegistry((e=>{e.remove()}))},68916:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var o=r(43697),s=r(20102),i=r(96674),l=r(70586),n=r(5600),a=r(75215),u=(r(67676),r(80442),r(52011)),p=r(41253);let h=class extends i.wq{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.get("portal.restUrl");return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return(0,l.s3)(this.portal).request(this.url+"/categorySchema",e).then((t=>{const r=t.categorySchema||[];return r.some((e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source))?this._fetchCategorySchemaSet("LivingAtlas",e):r}))}fetchMembers(e){return(0,l.s3)(this.portal).request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}queryItems(e,t){let r=(0,a.se)(p.Z,e);const o=(0,l.s3)(this.portal);return parseFloat(o.currentVersion)>5?(r=r||new p.Z,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new p.Z,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=(0,l.s3)(this.portal);return r.fetchSelf(r.authMode,!0,t).then((e=>{const o=e.contentCategorySetsGroupQuery;if(o){const e=new p.Z;return e.disableExtraQuery=!0,e.num=1,e.query=o,r.queryGroups(e,t)}throw new s.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const o=r.results[0],s=new p.Z;return s.num=1,s.query=`typekeywords:"${e}"`,o.queryItems(s,t)}throw new s.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((e=>e.total?e.results[0].fetchData("json",t).then((e=>{const t=e&&e.categorySchema;return t&&t.length?t:[]})):[]))}};(0,o._)([(0,n.Cb)()],h.prototype,"access",void 0),(0,o._)([(0,n.Cb)({type:Date})],h.prototype,"created",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"description",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"id",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"isInvitationOnly",void 0),(0,o._)([(0,n.Cb)({type:Date})],h.prototype,"modified",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"owner",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"portal",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"snippet",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"sortField",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"sortOrder",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"tags",void 0),(0,o._)([(0,n.Cb)()],h.prototype,"thumbnail",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,o._)([(0,n.Cb)()],h.prototype,"title",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],h.prototype,"url",null),h=(0,o._)([(0,u.j)("esri.portal.PortalGroup")],h);const d=h},41253:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(92036),l=r(35454),n=r(22974),a=r(5600),u=(r(75215),r(52011)),p=r(6570),h=r(82971),d=r(40488);const y=new l.X({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.Z{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new o({categories:this.categories?(0,n.d9)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map((e=>Array.isArray(e)?JSON.stringify(e):e)));let o="";if(this.extent){const e=(0,d.iV)(this.extent,h.Z.WGS84);null!=e&&(o=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let s=this.query;!this.disableExtraQuery&&e.extraQuery&&(s="("+s+")"+e.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((e=>y.toJSON(e.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...t,...i}}}};(0,s._)([(0,a.Cb)()],c.prototype,"categories",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"disableExtraQuery",void 0),(0,s._)([(0,a.Cb)({type:p.Z})],c.prototype,"extent",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"filter",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"num",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"query",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"sortField",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"sortOrder",null),(0,s._)([(0,a.Cb)()],c.prototype,"start",void 0),c=o=(0,s._)([(0,u.j)("esri.portal.PortalQueryParams")],c);const m=c},86082:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var o=r(43697),s=r(20102),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011));let a=class extends i.wq{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o._)([(0,l.Cb)({type:Date})],a.prototype,"created",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"id",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"portal",void 0),(0,o._)([(0,l.Cb)()],a.prototype,"title",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],a.prototype,"url",null),(0,o._)([(0,l.Cb)()],a.prototype,"username",void 0),a=(0,o._)([(0,n.j)("esri.portal.PortalFolder")],a);const u=a;var p,h=r(68916);let d=p=class extends i.wq{constructor(...e){super(...e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}`:null}get url(){const e=this.get("portal.restUrl");return e?`${e}/community/users/${this.username}`:null}addItem(e){const t=e&&e.item,r=e&&e.data,o=e&&e.folder,s={method:"post"};t&&(s.query=t.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then((e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load())))}deleteItem(e){let t=this.userContentUrl;return e.ownerFolder&&(t+="/"+e.ownerFolder),this.portal.request(t+`/items/${e.id}/delete`,{method:"post"}).then((()=>{e.id=null,e.portal=null}))}deleteItems(e){const t=this.userContentUrl+"/deleteItems",r=e.map((e=>e.id));if(r.length){const o={method:"post",query:{items:r.join(",")}};return this.portal.request(t,o).then((()=>{e.forEach((e=>{e.id=null,e.portal=null}))}))}return Promise.resolve(void 0)}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((e=>{let t;return t=e&&e.folders?e.folders.map((e=>{const t=u.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchGroups(){return this.portal.request(this.url??"").then((e=>{let t;return t=e&&e.groups?e.groups.map((e=>{const t=h.default.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchItems(e){const t=e??{};let o,s=this.userContentUrl??"";return t.folder&&(s+="/"+t.folder.id),Promise.all([r.e(5235),r.e(9880)]).then(r.bind(r,15235)).then((({default:e})=>{o=e;const r={folders:!1,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"};return this.portal.request(s,{query:r})})).then((e=>{let t;return e&&e.items?(t=e.items.map((e=>{const t=o.fromJSON(e);return t.portal=this.portal,t})),Promise.all(t.map((e=>e.load()))).catch((e=>e)).then((()=>({items:t,nextStart:e.nextStart,total:e.total})))):{items:[],nextStart:-1,total:0}}))}fetchTags(){return this.portal.request(this.url+"/tags").then((e=>e.tags))}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new h.default({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new s.Z("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}toJSON(){throw new s.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new p;return t.sourceJSON=e,t.read(e),t}};(0,o._)([(0,l.Cb)()],d.prototype,"access",void 0),(0,o._)([(0,l.Cb)({type:Date})],d.prototype,"created",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"culture",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"description",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"email",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"favGroupId",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"fullName",void 0),(0,o._)([(0,l.Cb)({type:Date})],d.prototype,"modified",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"orgId",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"portal",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"preferredView",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"privileges",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"region",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"role",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"roleId",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"sourceJSON",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"thumbnail",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o._)([(0,l.Cb)()],d.prototype,"units",void 0),(0,o._)([(0,l.Cb)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,o._)([(0,l.Cb)({readOnly:!0})],d.prototype,"url",null),(0,o._)([(0,l.Cb)()],d.prototype,"username",void 0),(0,o._)([(0,l.Cb)()],d.prototype,"userType",void 0),d=p=(0,o._)([(0,n.j)("esri.portal.PortalUser")],d);const y=d},72245:(e,t,r)=>{r.d(t,{K3:()=>s,Rx:()=>i});var o=r(80442);const s=()=>!!(0,o.Z)("enable-feature:force-wosr"),i=()=>!!(0,o.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(o.Z.add("enable-i3s-patching",!1,!0,!0),o.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),o.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":o.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":o.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},9790:(e,t,r)=>{r.d(t,{se:()=>A,cT:()=>P,dU:()=>D,S9:()=>k,LB:()=>z,AH:()=>N,yK:()=>q,S6:()=>$,QT:()=>M,f_:()=>U});var o,s=r(75215),i=r(63213),l=r(17386),n=(r(38445),r(21218)),a=(r(95191),r(31134),r(50575),r(20825)),u=r(98587),p=(r(38128),r(40908),r(3456)),h=(r(17143),r(96742),r(43697)),d=r(22974),y=r(62357),c=r(5600),m=r(36030),b=r(52011),f=r(94075);let g=o=class extends n.Z{constructor(...e){super(...e),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(e,t,r,o){if(e&&"string"!=typeof e&&null==e.imageData)return e;const s={};return e&&(s.url=e),t&&(s.outline=t),null!=r&&(s.width=(0,y.t_)(r)),null!=o&&(s.height=(0,y.t_)(o)),s}clone(){const e=new o({color:(0,d.d9)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",(0,d.d9)(this.source)),e}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,h._)([(0,m.J)({esriPFS:"picture-fill"},{readOnly:!0})],g.prototype,"type",void 0),(0,h._)([(0,c.Cb)(f.KA)],g.prototype,"url",void 0),(0,h._)([(0,c.Cb)({type:Number,json:{write:!0}})],g.prototype,"xscale",void 0),(0,h._)([(0,c.Cb)({type:Number,json:{write:!0}})],g.prototype,"yscale",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"width",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"height",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"xoffset",void 0),(0,h._)([(0,c.Cb)({type:Number,cast:y.t_,json:{write:!0}})],g.prototype,"yoffset",void 0),(0,h._)([(0,c.Cb)(f.Ds)],g.prototype,"source",void 0),g=o=(0,h._)([(0,b.j)("esri.symbols.PictureFillSymbol")],g);const v=g;var _=r(37898),w=r(42143),C=r(86114),S=r(20256),Z=r(4095),j=r(77987),x=r(89164),O=(r(87223),r(95868),r(78724)),L=(r(2283),r(44398),r(59390));function P(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function D(e){if(!e)return!1;switch(e.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}r(69496),r(6352);const z={base:x.Z,key:"type",typeMap:{"simple-fill":S.Z,"picture-fill":v,"picture-marker":_.Z,"simple-line":Z.Z,"simple-marker":j.Z,text:O.Z,"label-3d":a.Z,"line-3d":u.Z,"mesh-3d":p.Z,"point-3d":w.Z,"polygon-3d":C.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"},N={base:x.Z,key:"type",typeMap:{"picture-marker":_.Z,"simple-marker":j.Z,text:O.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"},k=(0,i.d)({types:z}),M={base:x.Z,key:"type",typeMap:{"simple-fill":S.Z,"picture-fill":v,"picture-marker":_.Z,"simple-line":Z.Z,"simple-marker":j.Z,text:O.Z,"line-3d":u.Z,"mesh-3d":p.Z,"point-3d":w.Z,"polygon-3d":C.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"},q={base:x.Z,key:"type",typeMap:{text:O.Z,"label-3d":a.Z},errorContext:"symbol"},U=(x.Z,a.Z,u.Z,p.Z,w.Z,C.Z,L.Z,{base:x.Z,key:"type",typeMap:{"line-3d":u.Z,"mesh-3d":p.Z,"point-3d":w.Z,"polygon-3d":C.Z,"web-style":L.Z,cim:l.Z},errorContext:"symbol"}),$={base:x.Z,key:"type",typeMap:{"label-3d":a.Z},errorContext:"symbol"},A=(0,s.N7)(z)},17386:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(22974),l=r(19153),n=r(5600),a=(r(75215),r(36030)),u=r(71715),p=r(52011),h=r(30556),d=r(35671),y=r(89164);let c=o=class extends y.Z{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){const r=this.data.primitiveOverrides;if(r){const o=r.map((r=>{const o=r.valueExpressionInfo;return(0,d.io)(e,t,o.expression)}));await Promise.all(o)}}}clone(){return new o({data:(0,i.d9)(this.data)})}hash(){return(0,l.hP)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.Cb)({json:{write:!1}})],c.prototype,"color",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"data",void 0),(0,s._)([(0,u.r)("data",["symbol"])],c.prototype,"readData",null),(0,s._)([(0,h.c)("data",{})],c.prototype,"writeData",null),(0,s._)([(0,a.J)({CIMSymbolReference:"cim"},{readOnly:!0})],c.prototype,"type",void 0),c=o=(0,s._)([(0,p.j)("esri.symbols.CIMSymbol")],c);const m=c},38445:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(52011),a=r(95868),u=r(56332),p=r(52879);let h=o=class extends a.Z{constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new o({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,l.J)({Extrude:"extrude"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],h.prototype,"size",void 0),(0,s._)([(0,i.Cb)({type:p.b,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)(u.Z)],h.prototype,"edges",void 0),h=o=(0,s._)([(0,n.j)("esri.symbols.ExtrudeSymbol3DLayer")],h);const d=h},21218:(e,t,r)=>{r.d(t,{Z:()=>u});var o=r(43697),s=r(5600),i=(r(75215),r(67676),r(80442),r(52011)),l=r(4095),n=r(89164);let a=class extends n.Z{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,o._)([(0,s.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.Z}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,o._)([(0,s.Cb)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,o._)([(0,i.j)("esri.symbols.FillSymbol")],a);const u=a},95191:(e,t,r)=>{r.d(t,{Z:()=>j});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(52011),a=r(95868),u=r(56332),p=r(4618),h=r(74721),d=r(17495),y=r(50178),c=(r(92604),r(20102),r(52879));let m=o=class extends c.b{constructor(e){super(e),this.colorMixMode=null}clone(){const e={color:null!=this.color?this.color.clone():null,colorMixMode:this.colorMixMode};return new o(e)}};(0,s._)([(0,l.J)({multiply:"multiply",replace:"replace",tint:"tint"})],m.prototype,"colorMixMode",void 0),m=o=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DFillMaterial")],m);var b,f=r(22303),g=r(96674),v=r(62357),_=r(37308),w=r(45119);let C=b=class extends g.wq{constructor(e){super(e),this.color=new f.Z([0,0,0,1]),this.size=(0,v.Wz)(1),this.pattern=null,this.patternCap="butt"}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new b(e)}};var S;(0,s._)([(0,i.Cb)(_.a)],C.prototype,"color",void 0),(0,s._)([(0,i.Cb)(_.y)],C.prototype,"size",void 0),(0,s._)([(0,i.Cb)(d.D)],C.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:w.Hc,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],C.prototype,"patternCap",void 0),C=b=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DOutline")],C);let Z=S=class extends a.Z{constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const e={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new S(e)}static fromSimpleFillSymbol(e){const t=e.outline&&e.outline.style&&"inside-frame"!==e.outline.style&&"solid"!==e.outline.style?new p.Z({style:e.outline.style}):null,r={size:e.outline?.width??0,color:(e.outline?.color??y.ix).clone(),pattern:t};return t&&e.outline?.cap&&(r.patternCap=e.outline.cap),new S({material:new m({color:(e.color??y.l9).clone()}),pattern:e.style&&"solid"!==e.style?new h.Z({style:e.style}):null,outline:r})}};(0,s._)([(0,l.J)({Fill:"fill"},{readOnly:!0})],Z.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:m,json:{write:!0}})],Z.prototype,"material",void 0),(0,s._)([(0,i.Cb)(d.q)],Z.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],Z.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:C,json:{write:!0}})],Z.prototype,"outline",void 0),(0,s._)([(0,i.Cb)(u.Z)],Z.prototype,"edges",void 0),Z=S=(0,s._)([(0,n.j)("esri.symbols.FillSymbol3DLayer")],Z);const j=Z},31134:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(96674),l=r(62357),n=r(5600),a=r(90578),u=(r(67676),r(80442),r(52011)),p=r(61565);let h=o=class extends i.wq{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(e){return(0,l.t_)(e)}clone(){return new o({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,s._)([(0,n.Cb)({type:p.JT,json:{default:"none",write:!0}})],h.prototype,"decoration",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"family",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],h.prototype,"size",void 0),(0,s._)([(0,a.p)("size")],h.prototype,"castSize",null),(0,s._)([(0,n.Cb)({type:p.g6,json:{default:"normal",write:!0}})],h.prototype,"style",void 0),(0,s._)([(0,n.Cb)({type:p.vC,json:{default:"normal",write:!0}})],h.prototype,"weight",void 0),h=o=(0,s._)([(0,u.j)("esri.symbols.Font")],h);const d=h},50575:(e,t,r)=>{r.d(t,{Z:()=>q});var o,s=r(43697),i=r(92604),l=r(81271),n=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(95868),h=r(50178),d=r(35454),y=r(96674),c=r(71715),m=r(30556),b=r(25929);const f=(0,d.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let g=o=class extends y.wq{constructor(e){super(e)}readHref(e,t,r){return e?(0,b.f)(e,r):t.dataURI}writeHref(e,t,r,o){e&&((0,l.HK)(e)?t.dataURI=e:(t.href=(0,b.t)(e,o),(0,l.YP)(t.href)&&(t.href=(0,l.Fv)(t.href))))}clone(){return new o({href:this.href,primitive:this.primitive})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],g.prototype,"href",void 0),(0,s._)([(0,c.r)("href")],g.prototype,"readHref",null),(0,s._)([(0,m.c)("href",{href:{type:String},dataURI:{type:String}})],g.prototype,"writeHref",null),(0,s._)([(0,a.J)(f)],g.prototype,"primitive",void 0),g=o=(0,s._)([(0,u.j)("esri.symbols.support.IconSymbol3DLayerResource")],g);var v,_=r(37308),w=r(92036);let C=v=class extends w.Z{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new v({x:this.x,y:this.y})}};(0,s._)([(0,n.Cb)({type:Number})],C.prototype,"x",void 0),(0,s._)([(0,n.Cb)({type:Number})],C.prototype,"y",void 0),C=v=(0,s._)([(0,u.j)("esri.symbols.support.Symbol3DAnchorPosition2D")],C);var S,Z=r(22303),j=r(62357);let x=S=class extends y.wq{constructor(e){super(e),this.color=new Z.Z([0,0,0,1]),this.size=(0,j.Wz)(1)}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size};return new S(e)}};(0,s._)([(0,n.Cb)(_.a)],x.prototype,"color",void 0),(0,s._)([(0,n.Cb)(_.y)],x.prototype,"size",void 0),x=S=(0,s._)([(0,u.j)("esri.symbols.support.Symbol3DIconOutline")],x);var O,L=r(52879);const P="esri.symbols.IconSymbol3DLayer";let D=O=class extends p.Z{constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new O({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,outline:null!=this.outline?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(e){const t=e.color||h.ix,r=z(e),o=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||h.ix).clone()}:null;return new O({size:e.size,resource:{primitive:M(e.style)},material:{color:t},outline:o,anchor:r?"relative":void 0,anchorPosition:r})}static fromPictureMarkerSymbol(e){const t=!e.color||(0,h.rx)(e.color)?h.ix:e.color,r=z(e);return new O({size:e.width<=e.height?e.height:e.width,resource:{href:e.url},material:{color:t.clone()},anchor:r?"relative":void 0,anchorPosition:r})}static fromCIMSymbol(e){return new O({resource:{href:(0,l._l)({mediaType:"application/json",data:JSON.stringify(e.data)})}})}};function z(e){const t="width"in e?e.width:e.size,r="height"in e?e.height:e.size,o=N(e.xoffset),s=N(e.yoffset);return(o||s)&&t&&r?{x:-o/t,y:s/r}:null}function N(e){return isFinite(e)?e:0}(0,s._)([(0,n.Cb)({type:L.b,json:{write:!0}})],D.prototype,"material",void 0),(0,s._)([(0,n.Cb)({type:g,json:{write:!0}})],D.prototype,"resource",void 0),(0,s._)([(0,a.J)({Icon:"icon"},{readOnly:!0})],D.prototype,"type",void 0),(0,s._)([(0,n.Cb)(_.y)],D.prototype,"size",void 0),(0,s._)([(0,a.J)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,n.Cb)({json:{default:"center"}})],D.prototype,"anchor",void 0),(0,s._)([(0,n.Cb)({type:C,json:{type:[Number],read:{reader:e=>new C({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],D.prototype,"anchorPosition",void 0),(0,s._)([(0,n.Cb)({type:x,json:{write:!0}})],D.prototype,"outline",void 0),D=O=(0,s._)([(0,u.j)(P)],D);const k={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function M(e){return k[e]||(i.Z.getLogger(P).warn(`${e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const q=D},20825:(e,t,r)=>{r.d(t,{Z:()=>b});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(87223),h=r(2283),d=r(84275),y=r(7413);const c=i.Z.ofType({base:null,key:"type",typeMap:{text:h.Z}});let m=o=class extends p.Z{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new c,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,d.gv)(this)}hasVisibleVerticalOffset(){return(0,d.Uy)(this)}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail),callout:(0,l.d9)(this.callout),verticalOffset:(0,l.d9)(this.verticalOffset)})}static fromTextSymbol(e){return new o({symbolLayers:[h.Z.fromTextSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:y.Z,json:{write:!0}})],m.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(d.Y2)],m.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({json:{read:!1,write:!1}})],m.prototype,"styleOrigin",void 0),(0,s._)([(0,n.Cb)({type:c})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LabelSymbol3D:"label-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=o=(0,s._)([(0,u.j)("esri.symbols.LabelSymbol3D")],m);const b=m},98587:(e,t,r)=>{r.d(t,{Z:()=>b});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(38128),h=r(96742),d=r(87223);const y=i.Z.ofType({base:null,key:"type",typeMap:{line:p.Z,path:h.Z}}),c=i.Z.ofType({base:null,key:"type",typeMap:{line:p.Z,path:h.Z}});let m=o=class extends d.Z{constructor(e){super(e),this.symbolLayers=new y,this.type="line-3d"}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleLineSymbol(e){return new o({symbolLayers:[p.Z.fromSimpleLineSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:y,json:{type:c}})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LineSymbol3D:"line-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=o=(0,s._)([(0,u.j)("esri.symbols.LineSymbol3D")],m);const b=m},38128:(e,t,r)=>{r.d(t,{Z:()=>Z});var o=r(43697),s=r(62357),i=r(5600),l=r(75215),n=(r(67676),r(80442),r(36030)),a=r(52011),u=r(22303),p=r(2368),h=r(96674),d=r(57742);let y=class extends((0,p.J)(h.wq)){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return null!=e&&e.placement===this.placement&&e.style===this.style&&(null==this.color&&null==e.color||null!=this.color&&null!=e.color&&this.color.toJSON()===e.color.toJSON())}};(0,o._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],y.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:d.J,json:{default:"begin-end",write:!0}})],y.prototype,"placement",void 0),(0,o._)([(0,i.Cb)({type:d.k,json:{default:"arrow",write:!0}})],y.prototype,"style",void 0),(0,o._)([(0,i.Cb)({type:u.Z,json:{type:[l.z8],default:null,write:!0}})],y.prototype,"color",void 0),y=(0,o._)([(0,a.j)("esri.symbols.LineStyleMarker3D")],y);const c=y;var m,b=r(95868),f=r(4618),g=r(17495),v=r(50178),_=r(37308),w=r(52879),C=r(45119);let S=m=class extends b.Z{constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.Wz)(1),this.pattern=null,this.marker=null}clone(){const e={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new m(e)}static fromSimpleLineSymbol(e){const t={enabled:!0,size:e.width??(0,s.Wz)(1),cap:e.cap||"butt",join:e.join||"miter",pattern:e.style&&"inside-frame"!==e.style?new f.Z({style:e.style}):null,material:new w.b({color:(e.color||v.ix).clone()}),marker:e.marker?new c({placement:e.marker.placement,style:e.marker.style,color:e.marker.color?.clone()??null}):null};return new m(t)}};(0,o._)([(0,i.Cb)({type:w.b,json:{write:!0}})],S.prototype,"material",void 0),(0,o._)([(0,n.J)({Line:"line"},{readOnly:!0})],S.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:C.w2,json:{write:!0,default:"miter"}})],S.prototype,"join",void 0),(0,o._)([(0,i.Cb)({type:C.Hc,json:{write:!0,default:"butt"}})],S.prototype,"cap",void 0),(0,o._)([(0,i.Cb)(_.y)],S.prototype,"size",void 0),(0,o._)([(0,i.Cb)(g.D)],S.prototype,"pattern",void 0),(0,o._)([(0,i.Cb)({types:{key:"type",base:c,typeMap:{style:c}},json:{write:!0}})],S.prototype,"marker",void 0),S=m=(0,o._)([(0,a.j)("esri.symbols.LineSymbol3DLayer")],S);const Z=S},40908:(e,t,r)=>{r.d(t,{Z:()=>u});var o=r(43697),s=r(62357),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),n=r(89164);let a=class extends n.Z{constructor(e){super(e),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,o._)([(0,i.Cb)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],a.prototype,"angle",void 0),(0,o._)([(0,i.Cb)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"xoffset",void 0),(0,o._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"yoffset",void 0),(0,o._)([(0,i.Cb)({type:Number,cast:e=>"auto"===e?e:(0,s.t_)(e),json:{write:!0}})],a.prototype,"size",void 0),a=(0,o._)([(0,l.j)("esri.symbols.MarkerSymbol")],a);const u=a},3456:(e,t,r)=>{r.d(t,{Z:()=>c});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(95191),h=r(87223);const d=i.Z.ofType({base:null,key:"type",typeMap:{fill:p.Z}});let y=o=class extends h.Z{constructor(e){super(e),this.symbolLayers=new d,this.type="mesh-3d"}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleFillSymbol(e){return new o({symbolLayers:[p.Z.fromSimpleFillSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:d})],y.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],y.prototype,"type",void 0),y=o=(0,s._)([(0,u.j)("esri.symbols.MeshSymbol3D")],y);const c=y},17143:(e,t,r)=>{r.d(t,{Z:()=>_});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(52011),a=r(95868),u=r(35454),p=r(96674),h=r(25929);const d=(0,u.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let y=o=class extends p.wq{clone(){return new o({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.Cb)({type:String,json:{read:h.r,write:h.w}})],y.prototype,"href",void 0),(0,s._)([(0,l.J)(d)],y.prototype,"primitive",void 0),y=o=(0,s._)([(0,n.j)("esri.symbols.support.ObjectSymbol3DLayerResource")],y);var c,m=r(92036);let b=c=class extends m.Z{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new c({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.Cb)({type:Number})],b.prototype,"x",void 0),(0,s._)([(0,i.Cb)({type:Number})],b.prototype,"y",void 0),(0,s._)([(0,i.Cb)({type:Number})],b.prototype,"z",void 0),b=c=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DAnchorPosition3D")],b);var f,g=r(52879);let v=f=class extends a.Z{constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new f({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.Cb)({type:g.b,json:{write:!0}})],v.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],v.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:y,json:{write:!0}})],v.prototype,"resource",void 0),(0,s._)([(0,l.J)({Object:"object"},{readOnly:!0})],v.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"width",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"height",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"depth",void 0),(0,s._)([(0,l.J)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,i.Cb)({json:{default:"origin"}})],v.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:b,json:{type:[Number],read:{reader:e=>new b({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],v.prototype,"anchorPosition",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"tilt",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],v.prototype,"isPrimitive",null),v=f=(0,s._)([(0,n.j)("esri.symbols.ObjectSymbol3DLayer")],v);const _=v},96742:(e,t,r)=>{r.d(t,{Z:()=>y});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),n=r(71715),a=r(52011),u=r(95868),p=r(52879),h=r(45119);let d=o=class extends u.Z{constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return null!=e?e:null==t.height&&null!=t.size?t.size:void 0}readHeight(e,t){return null!=e?e:null==t.width&&null!=t.size?t.size:void 0}clone(){return new o({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,i.Cb)({type:p.b,json:{write:!0}})],d.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],d.prototype,"castShadows",void 0),(0,s._)([(0,l.J)({Path:"path"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["circle","quad"],json:{write:!0,default:"circle"}})],d.prototype,"profile",void 0),(0,s._)([(0,i.Cb)({type:h.w2,json:{write:!0,default:"miter"}})],d.prototype,"join",void 0),(0,s._)([(0,i.Cb)({type:h.KW,json:{write:!0,default:"butt"}})],d.prototype,"cap",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],d.prototype,"width",void 0),(0,s._)([(0,n.r)("width",["width","size","height"])],d.prototype,"readWidth",null),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],d.prototype,"height",void 0),(0,s._)([(0,n.r)("height",["height","size","width"])],d.prototype,"readHeight",null),(0,s._)([(0,i.Cb)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],d.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:["heading","all"],json:{write:!0,default:"all"}})],d.prototype,"profileRotation",void 0),d=o=(0,s._)([(0,a.j)("esri.symbols.PathSymbol3DLayer")],d);const y=d},37898:(e,t,r)=>{r.d(t,{Z:()=>c});var o,s=r(43697),i=r(22974),l=r(62357),n=r(5600),a=(r(75215),r(36030)),u=r(71715),p=r(52011),h=r(40908),d=r(94075);let y=o=class extends h.Z{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const o={};return e&&(o.url=e),null!=t&&(o.width=(0,l.t_)(t)),null!=r&&(o.height=(0,l.t_)(r)),o}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new o({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,i.d9)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.Cb)({json:{write:!1}})],y.prototype,"color",void 0),(0,s._)([(0,a.J)({esriPMS:"picture-marker"},{readOnly:!0})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)(d.KA)],y.prototype,"url",void 0),(0,s._)([(0,n.Cb)(d.Ds)],y.prototype,"source",void 0),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],y.prototype,"height",void 0),(0,s._)([(0,u.r)("height",["height","size"])],y.prototype,"readHeight",null),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],y.prototype,"width",void 0),(0,s._)([(0,n.Cb)({json:{write:!1}})],y.prototype,"size",void 0),y=o=(0,s._)([(0,p.j)("esri.symbols.PictureMarkerSymbol")],y);const c=y},42143:(e,t,r)=>{r.d(t,{Z:()=>g});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(50575),h=r(17143),d=r(87223),y=r(2283),c=r(84275),m=r(7413);const b=i.Z.ofType({base:null,key:"type",typeMap:{icon:p.Z,object:h.Z,text:y.Z}});let f=o=class extends d.Z{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new b,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,c.gv)(this)}hasVisibleVerticalOffset(){return(0,c.Uy)(this)}clone(){return new o({verticalOffset:(0,l.d9)(this.verticalOffset),callout:(0,l.d9)(this.callout),styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new o({symbolLayers:[p.Z.fromSimpleMarkerSymbol(e)]})}static fromPictureMarkerSymbol(e){return new o({symbolLayers:[p.Z.fromPictureMarkerSymbol(e)]})}static fromCIMSymbol(e){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return null;const r=e.data.symbol;return new o(r?.callout?{symbolLayers:[p.Z.fromCIMSymbol(e)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}:{symbolLayers:[p.Z.fromCIMSymbol(e)]})}static fromTextSymbol(e){return new o({symbolLayers:[y.Z.fromTextSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:m.Z,json:{write:!0}})],f.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(c.Y2)],f.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({type:b,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PointSymbol3D:"point-3d"},{readOnly:!0})],f.prototype,"type",void 0),f=o=(0,s._)([(0,u.j)("esri.symbols.PointSymbol3D")],f);const g=f},86114:(e,t,r)=>{r.d(t,{Z:()=>_});var o,s=r(43697),i=r(46791),l=r(22974),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(38445),h=r(95191),d=r(50575),y=r(38128),c=r(17143),m=r(87223),b=r(2283),f=r(44398);const g=i.Z.ofType({base:null,key:"type",typeMap:{extrude:p.Z,fill:h.Z,icon:d.Z,line:y.Z,object:c.Z,text:b.Z,water:f.Z}});let v=o=class extends m.Z{constructor(e){super(e),this.symbolLayers=new g,this.type="polygon-3d"}clone(){return new o({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromJSON(e){const t=new o;if(t.read(e),2===t.symbolLayers.length&&"fill"===t.symbolLayers.at(0).type&&"line"===t.symbolLayers.at(1).type){const r=t.symbolLayers.at(0),o=t.symbolLayers.at(1);!o.enabled||e.symbolLayers&&e.symbolLayers[1]&&!1===e.symbolLayers[1].enable||(r.outline={size:o.size,color:null!=o.material?o.material.color:null}),t.symbolLayers.removeAt(1)}return t}static fromSimpleFillSymbol(e){return new o({symbolLayers:[h.Z.fromSimpleFillSymbol(e)]})}};(0,s._)([(0,n.Cb)({type:g,json:{write:!0}})],v.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],v.prototype,"type",void 0),v=o=(0,s._)([(0,u.j)("esri.symbols.PolygonSymbol3D")],v);const _=v},20256:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(22303),l=r(35454),n=r(22974),a=r(5600),u=(r(75215),r(36030)),p=r(52011),h=r(21218),d=r(4095);const y=new l.X({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let c=o=class extends h.Z{constructor(...e){super(...e),this.color=new i.Z([0,0,0,.25]),this.outline=new d.Z,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const o={};return e&&(o.style=e),t&&(o.outline=t),r&&(o.color=r),o}clone(){return new o({color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s._)([(0,a.Cb)()],c.prototype,"color",void 0),(0,s._)([(0,a.Cb)()],c.prototype,"outline",void 0),(0,s._)([(0,u.J)({esriSFS:"simple-fill"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:y.apiValues,json:{read:y.read,write:y.write}})],c.prototype,"style",void 0),c=o=(0,s._)([(0,p.j)("esri.symbols.SimpleFillSymbol")],c);const m=c},4095:(e,t,r)=>{r.d(t,{Z:()=>Z});var o=r(43697),s=r(35454),i=r(22974),l=r(62357),n=r(5600),a=(r(75215),r(36030)),u=r(52011),p=(r(67676),r(80442),r(89164));let h=class extends p.Z{constructor(e){super(e),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,o._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"width",void 0),h=(0,o._)([(0,u.j)("esri.symbols.LineSymbol")],h);const d=h;var y,c=r(22303),m=r(96674),b=r(71715),f=r(30556),g=r(57742);let v=y=class extends m.wq{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,o){t[r]="web-map"===o?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,o){"web-map"===o?.origin||(t[r]=e)}clone(){return new y({color:(0,i.d9)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,o._)([(0,n.Cb)({type:["begin","end","begin-end"],json:{write:!0}})],v.prototype,"placement",void 0),(0,o._)([(0,a.J)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.Cb)({json:{origins:{"web-map":{write:!1}}}})],v.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:g.k})],v.prototype,"style",void 0),(0,o._)([(0,f.c)("style")],v.prototype,"writeStyle",null),(0,o._)([(0,n.Cb)({type:c.Z,value:null,json:{write:{allowNull:!0}}})],v.prototype,"color",null),(0,o._)([(0,b.r)("color")],v.prototype,"readColor",null),(0,o._)([(0,f.c)("color")],v.prototype,"writeColor",null),v=y=(0,o._)([(0,u.j)("esri.symbols.LineSymbolMarker")],v);const _=v;var w;const C=new s.X({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let S=w=class extends d{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,o,s,i){if(e&&"string"!=typeof e)return e;const n={};return null!=e&&(n.style=e),null!=t&&(n.color=t),null!=r&&(n.width=(0,l.t_)(r)),null!=o&&(n.cap=o),null!=s&&(n.join=s),null!=i&&(n.miterLimit=(0,l.t_)(i)),n}clone(){return new w({color:(0,i.d9)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,o._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],S.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:C.apiValues,json:{read:C.read,write:C.write}})],S.prototype,"style",void 0),(0,o._)([(0,n.Cb)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&(null==r||null==r.origin)})}}})],S.prototype,"cap",void 0),(0,o._)([(0,n.Cb)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&(null==r||null==r.origin)})}}})],S.prototype,"join",void 0),(0,o._)([(0,n.Cb)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":_}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],S.prototype,"marker",void 0),(0,o._)([(0,n.Cb)({type:Number,json:{read:!1,write:!1}})],S.prototype,"miterLimit",void 0),S=w=(0,o._)([(0,u.j)("esri.symbols.SimpleLineSymbol")],S);const Z=S},77987:(e,t,r)=>{r.d(t,{Z:()=>f});var o,s=r(43697),i=r(22303),l=r(35454),n=r(22974),a=r(62357),u=r(5600),p=(r(75215),r(36030)),h=r(52011),d=r(30556),y=r(40908),c=r(4095);const m=new l.X({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let b=o=class extends y.Z{constructor(...e){super(...e),this.color=new i.Z([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new c.Z}normalizeCtorArgs(e,t,r,o){if(e&&"string"!=typeof e)return e;const s={};return e&&(s.style=e),null!=t&&(s.size=(0,a.t_)(t)),r&&(s.outline=r),o&&(s.color=o),s}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}set path(e){this.style="path",this._set("path",e)}clone(){return new o({angle:this.angle,color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s._)([(0,u.Cb)()],b.prototype,"color",void 0),(0,s._)([(0,d.c)("color")],b.prototype,"writeColor",null),(0,s._)([(0,p.J)({esriSMS:"simple-marker"},{readOnly:!0})],b.prototype,"type",void 0),(0,s._)([(0,u.Cb)()],b.prototype,"size",void 0),(0,s._)([(0,u.Cb)({type:m.apiValues,json:{read:m.read,write:m.write}})],b.prototype,"style",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],b.prototype,"path",null),(0,s._)([(0,u.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":c.Z}},json:{default:null,write:!0}})],b.prototype,"outline",void 0),b=o=(0,s._)([(0,h.j)("esri.symbols.SimpleMarkerSymbol")],b);const f=b},89164:(e,t,r)=>{r.d(t,{Z:()=>y});var o=r(43697),s=r(22303),i=r(35454),l=r(96674),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),u=r(52011);const p=new i.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,d=class extends l.wq{constructor(e){super(e),this.id="sym"+h++,this.type=null,this.color=new s.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,o._)([(0,n.Cb)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write}}})],d.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:s.Z,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,o._)([(0,a.r)("color")],d.prototype,"readColor",null),d=(0,o._)([(0,u.j)("esri.symbols.Symbol")],d);const y=d},87223:(e,t,r)=>{r.d(t,{Z:()=>z});var o=r(43697),s=r(46791),i=r(70921),l=r(92604),n=r(81271),a=r(20941),u=r(5600),p=r(90578),h=(r(67676),r(80442),r(71715)),d=r(52011),y=r(30556),c=r(48522),m=r(25929),b=r(38445),f=r(95191),g=r(50575),v=r(38128),_=r(17143),w=r(96742),C=r(89164),S=r(95868),Z=r(2283),j=r(44398),x=r(71144),O=r(23203);const L={icon:g.Z,object:_.Z,line:v.Z,path:w.Z,fill:f.Z,extrude:b.Z,text:Z.Z,water:j.Z},P=s.Z.ofType({base:S.Z,key:"type",typeMap:L,errorContext:"symbol-layer"});let D=class extends C.Z{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;const t=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers,r=t&&t.type||s.Z;this._set("symbolLayers",new r)}get color(){return null}set color(e){this.constructed&&l.Z.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){(0,i.Z)(e,this._get("symbolLayers"))}readStyleOrigin(e,t,r){if(e.styleUrl&&e.name){const t=(0,m.f)(e.styleUrl,r);return new x.Z({styleUrl:t,name:e.name})}if(e.styleName&&e.name)return new x.Z({portal:r&&r.portal||c.Z.getDefault(),styleName:e.styleName,name:e.name});r&&r.messages&&r.messages.push(new a.Z("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:r,definition:e}))}writeStyleOrigin(e,t,r,o){if(e.styleUrl&&e.name){let r=(0,m.t)(e.styleUrl,o);(0,n.YP)(r)&&(r=(0,n.Fv)(r)),t.styleOrigin={styleUrl:r,name:e.name}}else e.styleName&&e.name&&(e.portal&&o&&o.portal&&!(0,n.tm)(e.portal.restUrl,o.portal.restUrl)?o&&o.messages&&o.messages.push(new a.Z("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}normalizeCtorArgs(e){return e instanceof S.Z||e&&L[e.type]?{symbolLayers:[e]}:Array.isArray(e)?{symbolLayers:e}:e}};(0,o._)([(0,u.Cb)({json:{read:!1,write:!1}})],D.prototype,"color",null),(0,o._)([(0,u.Cb)({type:P,nonNullable:!0,json:{write:!0}}),(0,p.p)(i.R)],D.prototype,"symbolLayers",null),(0,o._)([(0,u.Cb)({type:x.Z})],D.prototype,"styleOrigin",void 0),(0,o._)([(0,h.r)("styleOrigin")],D.prototype,"readStyleOrigin",null),(0,o._)([(0,y.c)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],D.prototype,"writeStyleOrigin",null),(0,o._)([(0,u.Cb)({type:O.p,json:{read:!1}})],D.prototype,"thumbnail",void 0),(0,o._)([(0,u.Cb)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],D.prototype,"type",void 0),D=(0,o._)([(0,d.j)("esri.symbols.Symbol3D")],D);const z=D},95868:(e,t,r)=>{r.d(t,{Z:()=>u});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),n=r(30556);let a=class extends s.wq{constructor(e){super(e),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(e,t,r){e||(t[r]=e)}};(0,o._)([(0,i.Cb)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,o._)([(0,n.c)("enabled")],a.prototype,"writeEnabled",null),(0,o._)([(0,i.Cb)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,o._)([(0,l.j)("esri.symbols.Symbol3DLayer")],a);const u=a},78724:(e,t,r)=>{r.d(t,{Z:()=>f});var o,s=r(43697),i=r(22303),l=r(22974),n=r(62357),a=r(5600),u=r(90578),p=r(36030),h=r(52011),d=r(30556),y=r(31134),c=r(89164),m=r(61565);let b=o=class extends c.Z{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new y.Z,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const o={};return e&&(o.text=e),t&&(o.font=t),r&&(o.color=r),o}writeLineWidth(e,t,r,o){o&&"string"!=typeof o?o.origin:t[r]=e}castLineWidth(e){return(0,n.t_)(e)}writeLineHeight(e,t,r,o){o&&"string"!=typeof o?o.origin:t[r]=e}clone(){return new o({angle:this.angle,backgroundColor:(0,l.d9)(this.backgroundColor),borderLineColor:(0,l.d9)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.d9)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.d9)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],b.prototype,"backgroundColor",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],b.prototype,"borderLineColor",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0},cast:n.t_})],b.prototype,"borderLineSize",void 0),(0,s._)([(0,a.Cb)({type:y.Z,json:{write:!0}})],b.prototype,"font",void 0),(0,s._)([(0,a.Cb)({...m.x0,json:{write:!0}})],b.prototype,"horizontalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"kerning",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],b.prototype,"haloColor",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],b.prototype,"haloSize",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"rightToLeft",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"rotated",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"text",void 0),(0,s._)([(0,p.J)({esriTS:"text"},{readOnly:!0})],b.prototype,"type",void 0),(0,s._)([(0,a.Cb)({...m.Nj,json:{write:!0}})],b.prototype,"verticalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],b.prototype,"xoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],b.prototype,"yoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],b.prototype,"angle",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],b.prototype,"width",void 0),(0,s._)([(0,a.Cb)({type:Number})],b.prototype,"lineWidth",void 0),(0,s._)([(0,d.c)("lineWidth")],b.prototype,"writeLineWidth",null),(0,s._)([(0,u.p)("lineWidth")],b.prototype,"castLineWidth",null),(0,s._)([(0,a.Cb)(m.Ck)],b.prototype,"lineHeight",void 0),(0,s._)([(0,d.c)("lineHeight")],b.prototype,"writeLineHeight",null),b=o=(0,s._)([(0,h.j)("esri.symbols.TextSymbol")],b);const f=b},2283:(e,t,r)=>{r.d(t,{Z:()=>S});var o,s=r(43697),i=r(22974),l=r(5600),n=(r(75215),r(36030)),a=r(52011),u=r(30556),p=r(31134),h=r(95868),d=r(37308),y=r(22303),c=r(96674);let m=o=class extends c.wq{constructor(){super(...arguments),this.color=new y.Z([0,0,0,1]),this.size=0}clone(){const e={color:(0,i.d9)(this.color),size:this.size};return new o(e)}};(0,s._)([(0,l.Cb)(d.a)],m.prototype,"color",void 0),(0,s._)([(0,l.Cb)(d.y)],m.prototype,"size",void 0),m=o=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DHalo")],m);var b=r(52879),f=r(2368);r(67676),r(80442);let g=class extends((0,f.J)(c.wq)){constructor(e){super(e),this.color=null}};(0,s._)([(0,l.Cb)(d.a)],g.prototype,"color",void 0),g=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DTextBackground")],g);var v,_=r(61565);let w=v=class extends h.Z{constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(e){null!=e&&null!=this._userSize&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,r,o){const s={...o,textSymbol3D:!0};t.font=e.write({},s),delete t.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font&&null!=this.font.size?this.font.size:9}set size(e){this._userSize=e,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const e=new v({enabled:this.enabled,font:this.font&&(0,i.d9)(this.font),halo:this.halo&&(0,i.d9)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.d9)(this.background)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new v({font:null!=e.font?e.font.clone():new p.Z,halo:C(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new b.b({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new g({color:e.backgroundColor.clone()}):null})}};function C(e,t){return e&&null!=t&&t>0?new m({color:(0,i.d9)(e),size:t}):null}(0,s._)([(0,l.Cb)({type:p.Z,json:{write:!0}})],w.prototype,"font",null),(0,s._)([(0,u.c)("font")],w.prototype,"writeFont",null),(0,s._)([(0,l.Cb)({type:m,json:{write:!0}})],w.prototype,"halo",void 0),(0,s._)([(0,l.Cb)({..._.x0,json:{default:"center",write:!0}})],w.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.Cb)({..._.Ck,json:{default:1,write:!0}})],w.prototype,"lineHeight",void 0),(0,s._)([(0,l.Cb)({type:b.b,json:{write:!0}})],w.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:g,json:{write:!0}})],w.prototype,"background",void 0),(0,s._)([(0,l.Cb)(d.y)],w.prototype,"size",null),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],w.prototype,"text",void 0),(0,s._)([(0,n.J)({Text:"text"},{readOnly:!0})],w.prototype,"type",void 0),(0,s._)([(0,l.Cb)({..._.Nj,json:{default:"baseline",write:!0}})],w.prototype,"verticalAlignment",void 0),w=v=(0,s._)([(0,a.j)("esri.symbols.TextSymbol3DLayer")],w);const S=w},44398:(e,t,r)=>{r.d(t,{Z:()=>c});var o,s=r(43697),i=r(22303),l=r(22974),n=r(5600),a=r(75215),u=r(36030),p=r(52011),h=r(95868);let d=o=class extends h.Z{constructor(e){super(e),this.color=y.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new o({color:(0,l.d9)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.Cb)({type:i.Z,nonNullable:!0,json:{type:[a.z8],write:(e,t,r)=>t[r]=e.toArray(i.Z.AlphaMode.UNLESS_OPAQUE),default:()=>y.clone(),defaultEquals:e=>e.toCss(!0)===y.toCss(!0)}})],d.prototype,"color",void 0),(0,s._)([(0,u.J)({Water:"water"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],d.prototype,"waterbodySize",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:!0,default:null}})],d.prototype,"waveDirection",void 0),(0,s._)([(0,n.Cb)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],d.prototype,"waveStrength",void 0),d=o=(0,s._)([(0,p.j)("esri.symbols.WaterSymbol3DLayer")],d);const y=new i.Z([0,119,190]),c=d},59390:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(92604),l=r(95330),n=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(48522),h=r(25929),d=r(89164),y=r(23203);let c=o=class extends d.Z{constructor(e){super(e),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const e=null!=this.portal?this.portal:p.Z.getDefault(),t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?.portal,super.read(e,t)}clone(){return new o({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){return this._fetchSymbol("webRef",e)}fetchCIMSymbol(e){return this._fetchSymbol("cimRef",e)}async _fetchSymbol(e,t){const o=null!=t?t.cache:null,s=o?this._fetchCacheKey:null;if(null!=o){const e=s&&o.get(s);if(e)return e.clone()}const{resolveWebStyleSymbol:n}=await r.e(4499).then(r.bind(r,74499));(0,l.k_)(t);const a=n(this,{portal:this.portal},e,t);a.catch((e=>{i.Z.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",e)}));const u=await a;return"webRef"===e&&"point-3d"===u.type||"cimRef"===e&&"cim"===u.type?(null!=o&&o.set(s,u.clone()),u):null}};(0,s._)([(0,n.Cb)({json:{write:!1}})],c.prototype,"color",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"styleName",void 0),(0,s._)([(0,n.Cb)({type:p.Z,json:{write:!1}})],c.prototype,"portal",void 0),(0,s._)([(0,n.Cb)({type:String,json:{read:h.r,write:h.w}})],c.prototype,"styleUrl",void 0),(0,s._)([(0,n.Cb)({type:y.p,json:{read:!1}})],c.prototype,"thumbnail",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.J)({styleSymbolReference:"web-style"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,n.Cb)()],c.prototype,"_fetchCacheKey",null),c=o=(0,s._)([(0,u.j)("esri.symbols.WebStyleSymbol")],c);const m=c},27539:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let n=class extends s.wq{constructor(e){super(e),this.visible=!0}clone(){}};(0,o._)([(0,i.Cb)({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,o._)([(0,i.Cb)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,o._)([(0,l.j)("esri.symbols.callouts.Callout3D")],n);const a=n},69496:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),i=r(22303),l=r(22974),n=r(62357),a=r(5600),u=(r(75215),r(36030)),p=r(52011),h=r(27539),d=r(6352),y=r(37308);let c=o=class extends h.Z{constructor(e){super(e),this.type="line",this.color=new i.Z([0,0,0,1]),this.size=(0,n.Wz)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new o({color:(0,l.d9)(this.color),size:this.size,border:(0,l.d9)(this.border)})}};(0,s._)([(0,u.J)({line:"line"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)(y.a)],c.prototype,"color",void 0),(0,s._)([(0,a.Cb)(y.y)],c.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:d.a,json:{write:!0}})],c.prototype,"border",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],c.prototype,"visible",null),c=o=(0,s._)([(0,p.j)("esri.symbols.callouts.LineCallout3D")],c);const m=c},84275:(e,t,r)=>{r.d(t,{Uy:()=>i,Y2:()=>n,gv:()=>l});var o=r(27539),s=r(69496);function i(e){if(!e)return!1;const t=e.verticalOffset;return!!t&&!(t.screenLength<=0||null!=t.maxWorldLength&&t.maxWorldLength<=0)}function l(e){if(!e)return!1;if(!e.supportsCallout||!e.supportsCallout())return!1;const t=e.callout;return!!t&&!!t.visible&&!!i(e)}const n={types:{key:"type",base:o.Z,typeMap:{line:s.Z}},json:{write:!0}}},56332:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(43697),s=r(22303),i=r(96674),l=r(22974),n=r(62357),a=r(5600),u=(r(75215),r(52011)),p=r(37308);let h=class extends i.wq{constructor(e){super(e),this.color=new s.Z([0,0,0,1]),this.extensionLength=0,this.size=(0,n.Wz)(1)}clone(){}cloneProperties(){return{color:(0,l.d9)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,o._)([(0,a.Cb)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],h.prototype,"type",void 0),(0,o._)([(0,a.Cb)(p.a)],h.prototype,"color",void 0),(0,o._)([(0,a.Cb)({...p.y,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],h.prototype,"extensionLength",void 0),(0,o._)([(0,a.Cb)(p.y)],h.prototype,"size",void 0),h=(0,o._)([(0,u.j)("esri.symbols.edges.Edges3D")],h);const d=h;r(92604),r(67676),r(80442),r(20102);var y,c=r(36030);let m=y=class extends d{constructor(e){super(e),this.type="sketch"}clone(){return new y(this.cloneProperties())}};(0,o._)([(0,c.J)({sketch:"sketch"},{readOnly:!0})],m.prototype,"type",void 0),m=y=(0,o._)([(0,u.j)("esri.symbols.edges.SketchEdges3D")],m);const b=m;var f;let g=f=class extends d{constructor(e){super(e),this.type="solid"}clone(){return new f(this.cloneProperties())}};(0,o._)([(0,c.J)({solid:"solid"},{readOnly:!0})],g.prototype,"type",void 0),g=f=(0,o._)([(0,u.j)("esri.symbols.support.SolidEdges3D")],g);const v={types:{key:"type",base:d,typeMap:{solid:g,sketch:b}},json:{write:!0}}},32626:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let n=class extends s.wq{constructor(e){super(e)}clone(){}};(0,o._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,o._)([(0,l.j)("esri.symbols.patterns.LinePattern3D")],n);const a=n},4618:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(35454),l=r(5600),n=(r(75215),r(67676),r(80442),r(36030)),a=r(52011),u=r(32626);const p=(0,i.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let h=o=class extends u.Z{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new o(e)}};(0,s._)([(0,l.Cb)({type:["style"]})],h.prototype,"type",void 0),(0,s._)([(0,n.J)(p),(0,l.Cb)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],h.prototype,"style",void 0),h=o=(0,s._)([(0,a.j)("esri.symbols.patterns.LineStylePattern3D")],h);const d=h},41776:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(43697),s=r(96674),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let n=class extends s.wq{constructor(e){super(e)}clone(){}};(0,o._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,o._)([(0,l.j)("esri.symbols.patterns.Pattern3D")],n);const a=n},74721:(e,t,r)=>{r.d(t,{Z:()=>u});var o,s=r(43697),i=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),n=r(41776);let a=o=class extends n.Z{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new o(e)}};(0,s._)([(0,i.Cb)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],a.prototype,"style",void 0),a=o=(0,s._)([(0,l.j)("esri.symbols.patterns.StylePattern3D")],a);const u=a},17495:(e,t,r)=>{r.d(t,{D:()=>a,q:()=>n});var o=r(32626),s=r(4618),i=r(41776),l=r(74721);const n={types:{key:"type",base:i.Z,typeMap:{style:l.Z}},json:{write:!0}},a={types:{key:"type",base:o.Z,typeMap:{style:s.Z}},json:{write:!0}}},71144:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(92036),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(48522);let u=o=class extends i.Z{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new o({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.Cb)({type:String})],u.prototype,"name",void 0),(0,s._)([(0,l.Cb)({type:String})],u.prototype,"styleUrl",void 0),(0,s._)([(0,l.Cb)({type:String})],u.prototype,"styleName",void 0),(0,s._)([(0,l.Cb)({type:a.Z})],u.prototype,"portal",void 0),u=o=(0,s._)([(0,n.j)("esri.symbols.support.StyleOrigin")],u);const p=u},52879:(e,t,r)=>{r.d(t,{b:()=>u});var o,s=r(43697),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(37308);let u=o=class extends i.wq{constructor(e){super(e),this.color=null}clone(){const e={color:null!=this.color?this.color.clone():null};return new o(e)}};(0,s._)([(0,l.Cb)(a.a)],u.prototype,"color",void 0),u=o=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DMaterial")],u)},7413:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(37308);let u=o=class extends i.wq{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new o({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.Cb)(a.y)],u.prototype,"screenLength",void 0),(0,s._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],u.prototype,"minWorldLength",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],u.prototype,"maxWorldLength",void 0),u=o=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DVerticalOffset")],u);const p=u},23203:(e,t,r)=>{r.d(t,{p:()=>a});var o,s=r(43697),i=r(92036),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011));let a=o=class extends i.Z{constructor(){super(...arguments),this.url=""}clone(){return new o({url:this.url})}};(0,s._)([(0,l.Cb)({type:String})],a.prototype,"url",void 0),a=o=(0,s._)([(0,n.j)("esri.symbols.support.Thumbnail")],a)},50178:(e,t,r)=>{r.d(t,{ix:()=>s,l9:()=>i,rx:()=>l});var o=r(22303);const s=new o.Z("white"),i=(new o.Z("black"),new o.Z([255,255,255,0]));function l(e){return 0===e.r&&0===e.g&&0===e.b}},21878:(e,t,r)=>{r.d(t,{im:()=>Z,cW:()=>_,vX:()=>w});var o=r(9790),s=r(20102),i=r(84230),l=r(87223),n=r(59390),a=r(42143),u=r(4095),p=r(98587),h=r(77987),d=r(37898),y=r(20256),c=r(3456),m=r(86114),b=r(78724),f=r(20825);const g={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function v(e,t=g){if(!e)return{symbol:null};const{retainId:r=g.retainId,ignoreDrivers:i=g.ignoreDrivers,hasLabelingContext:l=g.hasLabelingContext,retainCIM:v=g.retainCIM}=t;let _=null;if((0,o.dU)(e)||e instanceof n.Z)_=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new s.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};_=v?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)_=p.Z.fromSimpleLineSymbol(e);else if(e instanceof h.Z)_=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)_=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof y.Z)_=t.geometryType&&"mesh"===t.geometryType?c.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof b.Z))return{error:new s.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};_=l?f.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return r&&_&&"cim"!==_.type&&(_.id=e.id),i&&(0,o.dU)(_)&&_.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:_}}function _(e,t,r,o){const s=S(e,{},{context:o,isLabelSymbol:!1});null!=s&&(t[r]=s)}function w(e,t,r,o){const s=S(e,{},{context:o,isLabelSymbol:!0});null!=s&&(t[r]=s)}function C(e){return e instanceof l.Z||e instanceof n.Z}function S(e,t,r){if(null==e)return null;const{context:o,isLabelSymbol:l}=r,n=o?.origin,a=o?.messages;if("web-scene"===n&&!C(e)){const r=v(e,{retainCIM:!0,hasLabelingContext:l});return null!=r.symbol?r.symbol.write(t,o):(a?.push(new s.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:o,error:r.error})),null)}return("web-map"===n||"portal-item"===n&&!(0,i.A2)(o?.layer))&&C(e)?(a?.push(new s.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:o})),null):e.write(t,o)}function Z(e,t){return(0,o.S9)(e,null,t)}},57742:(e,t,r)=>{r.d(t,{J:()=>o,k:()=>s});const o=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},37308:(e,t,r)=>{r.d(t,{a:()=>n,y:()=>a});var o=r(22303),s=r(62357),i=r(75215),l=r(65242);const n={type:o.Z,json:{type:[i.z8],default:null,read:{source:["color","transparency"],reader:function(e,t){const r=null!=t.transparency?(0,l.b)(t.transparency):1,s=t.color;return s&&Array.isArray(s)?new o.Z([s[0]||0,s[1]||0,s[2]||0,r]):null}},write:{target:{color:{type:[i.z8]},transparency:{type:i.z8}},writer:function(e,t){t.color=e.toJSON().slice(0,3);const r=(0,l.a)(e.a);0!==r&&(t.transparency=r)}}}},a={type:Number,cast:s.t_,json:{write:!0}}},27883:(e,t,r)=>{r.d(t,{EJ:()=>c,KV:()=>d,n2:()=>h,v9:()=>y,wm:()=>f});var o=r(3172),s=r(20102),i=r(95330),l=r(81271),n=r(48522),a=r(41253),u=r(72245);let p={};function h(e,t,r){return e&&null!=e.styleUrl?async function(e,t){try{return{data:(await c(e,t)).data,baseUrl:(0,l.Yd)(e),styleUrl:e}}catch(e){return(0,i.r9)(e),null}}(e.styleUrl,r):e&&null!=e.styleName?function(e,t,r){const o=null!=t.portal?t.portal:n.Z.getDefault();let i;const l=`${o.url} - ${o.user&&o.user.username} - ${e}`;return p[l]||(p[l]=function(e,t,r){return t.load(r).then((()=>{const o=new a.Z({disableExtraQuery:!0,query:`owner:${m} AND type:${b} AND typekeywords:"${e}"`});return t.queryItems(o,r)})).then((({results:t})=>{let o=null;const i=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===i));if(t&&e.type===b&&e.owner===m){o=e;break}}if(!o)throw new s.Z("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return o.load(r)}))}(e,o,r).then((e=>(i=e,e.fetchData()))).then((t=>({data:t,baseUrl:i.itemUrl??"",styleName:e})))),p[l]}(e.styleName,t,r):Promise.reject(new s.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function y(e,t,r=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())for(const t of r){const r=e.formatInfos.find((e=>e.type===t));if(r)return r.href}return e.webRef}function c(e,t){const r={responseType:"json",query:{f:"json"},...t};return(0,o.default)((0,l.Fv)(e),r)}const m="esri_en",b="Style",f="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},45119:(e,t,r)=>{r.d(t,{Hc:()=>a,KW:()=>u,Uz:()=>n,w2:()=>p}),r(80442),r(65617);var o=r(60437);const s=(0,o.al)(-.5,-.5,-.5,.5,.5,.5),i=(0,o.al)(-.5,-.5,0,.5,.5,1),l=(0,o.al)(-.5,-.5,0,.5,.5,.5);function n(e){switch(e){case"sphere":case"cube":case"diamond":return s;case"cylinder":case"cone":case"inverted-cone":return i;case"tetrahedron":return l;default:return}}const a=["butt","square","round"],u=[...a,"none"],p=["miter","bevel","round"]},61565:(e,t,r)=>{r.d(t,{Ck:()=>a,JT:()=>i,M8:()=>h,Nj:()=>p,g6:()=>l,vC:()=>n,x0:()=>u});var o=r(22021),s=r(75215);const i=["none","underline","line-through"],l=["normal","italic","oblique"],n=["normal","lighter","bold","bolder"],a={type:Number,cast:e=>{const t=(0,s.q9)(e);return 0===t?1:(0,o.uZ)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},h=8},94075:(e,t,r)=>{r.d(t,{Ds:()=>n,KA:()=>l});var o=r(81271),s=r(25929);function i(e,t){return function(e){return!(null==e||"service"!==e.origin&&"portal-item"!==e.origin||"feature"!==e.layer?.type&&"stream"!==e.layer?.type)}(t)&&!(0,o.YP)(e)&&t?.layer?.parsedUrl?(0,o.v_)(t.layer.parsedUrl.path,"images",e):(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,o._l)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):i(t.url,r)}},write:{writer(e,t,r,i){!function(e,t,r,i){if((0,o.HK)(e)){const l=(0,o.sJ)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,r&&r.imageData===t.imageData&&r.url&&(0,s.w)(r.url,t,"url",i)}else(0,s.w)(e,t,"url",i)}(e,t,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const o={};return t.imageData&&(o.imageData=t.imageData),t.contentType&&(o.contentType=t.contentType),t.url&&(o.url=i(t.url,r)),o}}}}},65242:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>i});var o=r(75215);function s(e){const t=(0,o.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3005,3172,9880],{22303:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s,n=r(35270),i=r(22021),a=r(75215);function l(e){return(0,i.uZ)((0,a.vU)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class c{static blendColors(e,t,r,o=new c){return o.r=Math.round(e.r+(t.r-e.r)*r),o.g=Math.round(e.g+(t.g-e.g)*r),o.b=Math.round(e.b+(t.b-e.b)*r),o.a=e.a+(t.a-e.a)*r,o._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),o=r[1];if("rgb"===o&&3===e.length||"rgba"===o&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===o&&3===e.length||"hsla"===o&&4===e.length)return c.fromArray((0,n.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,o=(1<<r)-1;let s=Number("0x"+e.substr(1));return isNaN(s)?null:(["b","g","r"].forEach((e=>{const n=s&o;s>>=r,t[e]=4===r?17*n:n})),t.a=1,t)}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.St)(e)?(0,n.h$)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}static fromJSON(e){return e&&new c([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),o=l(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,o,l(255*this.a)]:[t,r,o]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,o){this.r=e,this.g=t,this.b=r,this.a=o}}c.prototype.declaredClass="esri.Color",o=c||(c={}),(s=o.AlphaMode||(o.AlphaMode={}))[s.ALWAYS=0]="ALWAYS",s[s.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=c},99880:(e,t,r)=>{r.d(t,{V:()=>l});var o=r(68773),s=(r(3172),r(20102)),n=r(92604),i=r(81271);const a=n.Z.getLogger("esri.assets");function l(e){if(!o.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(o.default.assetsPath,e)}},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>s,VL:()=>i,h$:()=>n,rW:()=>u});const o={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!o[e]||!!o[e.toLowerCase()]}function n(e){return o[e]??o[e.toLowerCase()]}function i(e){return[...n(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const o=6*r;return o<1?e+(t-e)*o:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,o=1){const s=(e%360+360)%360/360,n=r<=.5?r*(t+1):r+t-r*t,i=2*r-n;return[Math.round(255*a(i,n,s+1/3)),Math.round(255*a(i,n,s)),Math.round(255*a(i,n,s-1/3)),o]}function u(e){const t=e.length>5,r=t?8:4,o=(1<<r)-1,s=t?1:17,n=t?9===e.length:5===e.length;let i=Number("0x"+e.substr(1));if(isNaN(i))return null;const a=[0,0,0,1];let l;return n&&(l=i&o,i>>=r,a[3]=s*l/255),l=i&o,i>>=r,a[2]=s*l,l=i&o,i>>=r,a[1]=s*l,l=i&o,i>>=r,a[0]=s*l,a}},36030:(e,t,r)=>{r.d(t,{J:()=>n});var o=r(35454),s=r(5600);function n(e,t={}){const r=e instanceof o.X?e:new o.X(e,t),n={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(n.readOnly=!!t.readOnly),void 0!==t?.default&&(n.json.default=t.default),void 0!==t?.name&&(n.json.name=t.name),void 0!==t?.nonNullable&&(n.nonNullable=t.nonNullable),(0,s.Cb)(n)}},10661:(e,t,r)=>{r.d(t,{s:()=>s});var o=r(42100);class s extends o.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var o=r(75215),s=r(6570),n=r(9361),i=r(65091),a=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:n.Z,key:"type",typeMap:{extent:s.Z,multipoint:i.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,o.N7)(c)},33955:(e,t,r)=>{r.d(t,{Ji:()=>f,YX:()=>u,aW:()=>c,im:()=>p,l9:()=>h,oU:()=>m,q9:()=>y,wp:()=>d});var o=r(6570),s=r(9361),n=r(65091),i=r(94139),a=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function p(e){return null==e?null:e instanceof s.Z?e:d(e)?i.Z.fromJSON(e):h(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):c(e)?n.Z.fromJSON(e):u(e)?o.Z.fromJSON(e):null}function f(e){return e?d(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:i.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:n.Z};function y(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{M:()=>s,P:()=>n});var o=r(35454);const s=(0,o.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),n=(0,o.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g}),r(66577);var o=r(18571),s=r(5847),n=r(75993),i=r(55914),a=r(40932),l=r(73506),u=r(15612),c=r(80676),d=r(87521),h=r(72758),m=r(23808),p=r(6570),f=r(94139);class g{convertVectorFieldData(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,c.KC)(t,e.type);return Promise.resolve(null!=r?r.toJSON():null)}computeStatisticsHistograms(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,u.js)(t);return Promise.resolve(r)}async decode(e){const t=await(0,n.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=s.Z.fromJSON(e.pixelBlock),e.extent=e.extent?p.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve(null!=t?t.toJSON():null)}async updateSymbolizer(e){this.symbolizer=h.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,a.Ue)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:p.Z.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?s.Z.fromJSON(e):null)),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?f.Z.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return null!=t?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(s.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve(null!=t&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,u.Hv)(s.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,i.Vl)(s.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new s.Z(e):null)),r=(0,i.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let o,n=r;return e.coefs&&(n=(0,i.Uk)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(o=(0,i.Qh)(e.destDimension,e.gcsGrid),n=(0,c.xQ)(n,e.isUV?"vector-uv":"vector-magdir",o)),{pixelBlock:n?.toJSON(),localNorthDirections:o}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:o,indexData:s}=await(0,m.GE)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:o.buffer,indexBuffer:s.buffer},transferList:[o.buffer,s.buffer]}}async getProjectionOffsetGrid(e){const t=p.Z.fromJSON(e.projectedExtent),r=p.Z.fromJSON(e.srcBufferExtent);let s=null;e.datumTransformationSteps&&(s=new o.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,l.Mk)(t.spatialReference,r.spatialReference,s))&&await(0,l.zD)();const n=e.rasterTransform?(0,d.c)(e.rasterTransform):null;return(0,l.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:s,rasterTransform:n})}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var o=r(68773),s=r(40330),n=r(20102),i=r(80442),a=r(22974),l=r(95330),u=r(81271),c=r(19745),d=r(71058),h=r(85958);async function m(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.u0)(t.query.toString().replaceAll("+"," ")));const a=(0,u.HK)(e),c=(0,u.jc)(e);c||a||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...t}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=O("request:interceptor",e,t)}if((o instanceof Error||o instanceof n.Z)&&(r=O("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}(b,y);if(null!=e)return{data:e,getHeader:v,httpStatus:200,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType&&((0,i.Z)("host-webworker")||(0,i.Z)("host-node")))throw O("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y);if("head"===t.method){if(t.body)throw O("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||c)throw O("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?p||(p=await r.e(9884).then(r.bind(r,29884))):m._abortableFetch||(m._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const w=new AbortController;(0,l.fu)(t,(()=>w.abort()));const S={controller:w,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:f.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},k=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body;let a=null,u=null;if(g&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust&&!("polyfill"in m._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:f.priority,redirect:"follow",signal:n},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.default.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=o.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!x(t)&&!(0,l.Hc)(n)){let o;"immediate"===r.authMode?(await C(),o=await s.id.getCredential(t,{signal:n}),e.credential=o):"no-prompt"===r.authMode?(await C(),o=await s.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=o):s.id&&(o=s.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await q(e)}while(!await P(e,t,r))}catch(r){const o=O("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.kl)(n)){const e=(0,u.P$)(n,!0);e&&f.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&s.id){const e=s.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,i.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):v,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return b?.after?.(k),k}let p;const f=o.default.request,g="FormData"in globalThis,y=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],v=()=>null,S=Symbol();function k(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||m._corsServers.includes(t)||(0,u.kl)(t)}function O(e,t,r,o){let s="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:v,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=o&&(e=>o.headers.get(e)),r=o?.status,n=t.message;n&&(s=n),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=S in t?t[S]:t}return(0,l.D_)(t)?(0,l.zE)():new n.Z(e,s,i)}async function C(){s.id||await Promise.all([r.e(7126),r.e(6261),r.e(9255),r.e(1400),r.e(450)]).then(r.bind(r,73660))}function x(e){return w.some((t=>t.test(e)))}async function q(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},n=(0,u.jc)(t)||(0,u.HK)(t),a=r.responseType||"json",d=n?0:null!=r.timeout?r.timeout:f.timeout;let p=!1;if(!n){e.useSSL&&(t=(0,u.hO)(t)),r.cacheBust&&"default"===o.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let n={...r.query};e.credentialToken&&(n.token=e.credentialToken);let a=(0,u.B7)(n);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const l=t.length+1+a.length;let d;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>f.maxUrlLength;const m=r.useProxy||!!(0,u.ed)(t);if(m){const e=(0,u.b7)(t);d=e.path,!p&&d.length+1+l>f.maxUrlLength&&(p=!0),e.query&&(n={...e.query,...n})}if("HEAD"===o.method&&(p||m)){if(p){if(l>f.maxUrlLength)throw O("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw O("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(m)throw O("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.fl)(t,n):(o.body=(0,u.B7)(n),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,n),m&&(e.useProxy=!0,t=`${d}?${t}`),n.token&&g&&o.body instanceof FormData&&!(0,c.P)(t)&&o.body.set("token",n.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(p?(0,u.fl)(t,n):t))}let y,b,w=0,v=!1;d>0&&(w=setTimeout((()=>{v=!0,e.controller.abort()}),d));try{if("native-request-init"===r.responseType)b=o,b.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!n&&!e.useProxy&&f.proxyUrl&&!k(t)){if(y=await m._abortableFetch(t,o),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!m._corsServers.includes(t)&&m._corsServers.push(t)}(t),"native"===r.responseType)b=y;else if("HEAD"!==o.method)if(y.ok){switch(a){case"array-buffer":b=await y.arrayBuffer();break;case"blob":case"image":b=await y.blob();break;default:b=await y.text()}if(w&&(clearTimeout(w),w=0),"json"===a||"xml"===a||"document"===a)if(b)switch(a){case"json":b=JSON.parse(b);break;case"xml":b=N(b,"application/xml");break;case"document":b=N(b,"text/html")}else b=null;if(b){if("array-buffer"===a||"blob"===a){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&b["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(b).json();e.error&&(b=e)}catch{}}"image"===a&&b instanceof Blob&&(b=await Z(URL.createObjectURL(b),e,!0))}}else{b=await y.text();try{b=JSON.parse(b)}catch{}}}else b=await Z(t,e)}catch(o){if("AbortError"===o.name){if(v)throw new Error("Timeout exceeded");throw(0,l.zE)("Request canceled")}if(!(!y&&o instanceof TypeError&&f.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||k(t))throw o;e.redoRequest=!0,(0,u.tD)({proxyUrl:f.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{w&&clearTimeout(w)}return[y,b]}function N(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function P(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let n,i;if(r&&(r.error?n=r.error:"error"===r.status&&Array.isArray(r.messages)&&(n={...r},n[S]=r,n.details=r.messages)),!n&&!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[S]=r,n;let a,l=null;n&&(i=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,a=n.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===i&&(4===l||n.message?.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&y.includes(i)&&!x(e.params.url)&&(403!==i||a&&!b.includes(a)&&(null==l||2===l&&e.credentialToken))){await C();try{const t=await s.id.getCredential(e.params.url,{error:O("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function Z(e,t,r=!1){const o=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.fetchPriority=f.priority,s.src=e,(0,h.fY)(s,e,r,o)}m._abortableFetch=null,m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},98046:(e,t,r)=>{r.d(t,{Z:()=>m});var o,s=r(43697),n=r(22303),i=r(22974),a=r(5600),l=r(75215),u=r(36030),c=r(52011),d=r(899);let h=o=class extends d.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new o({fromColor:(0,i.d9)(this.fromColor),toColor:(0,i.d9)(this.toColor),algorithm:this.algorithm})}};(0,s._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,s._)([(0,a.Cb)({type:n.Z,json:{type:[l.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,s._)([(0,a.Cb)({type:n.Z,json:{type:[l.z8],write:!0}})],h.prototype,"toColor",void 0),(0,s._)([(0,a.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=o=(0,s._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],h);const m=h},899:(e,t,r)=>{r.d(t,{Z:()=>l});var o=r(43697),s=r(96674),n=r(5600),i=(r(75215),r(67676),r(80442),r(52011));let a=class extends s.wq{constructor(e){super(e),this.type=null}};(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,o._)([(0,i.j)("esri.rest.support.ColorRamp")],a);const l=a},1515:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),n=r(22974),i=r(5600),a=(r(75215),r(52011)),l=r(98046),u=r(899);let c=o=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new o({colorRamps:(0,n.d9)(this.colorRamps)})}};(0,s._)([(0,i.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,s._)([(0,i.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=o=(0,s._)([(0,a.j)("esri.rest.support.MultipartColorRamp")],c);const d=c},94593:(e,t,r)=>{r.d(t,{V:()=>i,i:()=>a});var o=r(98046),s=r(899),n=r(1515);const i={key:"type",base:s.Z,typeMap:{algorithmic:o.Z,multipart:n.Z}};function a(e){return e&&e.type?"algorithmic"===e.type?o.Z.fromJSON(e):"multipart"===e.type?n.Z.fromJSON(e):null:null}},71058:(e,t,r)=>{r.d(t,{r:()=>n});var o=r(81271);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,o.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>u,fY:()=>a,jH:()=>c,jz:()=>d});var o=r(68773),s=r(80442),n=r(95330),i=r(81271);function a(e,t,r=!1,o){return new Promise(((i,a)=>{if((0,n.Hc)(o))return void a(l());let u=()=>{h(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;h(),i(t)},d=()=>{if(!e)return;const t=e;h(),t.src="",a(l())};const h=()=>{(0,s.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",d),d=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",d),(0,s.Z)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){o.default.request.crossOriginNoCorsDomains||(o.default.request.crossOriginNoCorsDomains={});const t=o.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.P$)(r)??""]=0:(t[(0,i.P$)("http://"+r)??""]=0,t[(0,i.P$)("https://"+r)??""]=0)}function c(e){const t=o.default.request.crossOriginNoCorsDomains;if(t){let r=(0,i.P$)(e);if(r)return r=r.toLowerCase(),!(0,i.D6)(r,(0,i.TI)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=o.default.request.crossOriginNoCorsDomains,r=(0,i.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const s=(0,i.mN)(e);e=s.path,"json"===s.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|