@arcgis/core 4.24.0-next.20220429 → 4.24.0-next.20220430

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.
Files changed (52) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{3a43a2918b44781aaf85.js → 055a0ebf22a82f859474.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{3273b6be43eeb49ee842.js → 0b12ff7b2ed2838afbb8.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0e25548573baf855e394.js +1 -0
  5. package/assets/esri/core/workers/chunks/{c388ac33496f004d56f3.js → 135a90ae61f3b3cae91b.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{54f9b1ab9d472bf4baca.js → 1facbda248863cf72cbd.js} +1 -1
  7. package/assets/esri/core/workers/chunks/2133499e642193f6738f.js +1 -0
  8. package/assets/esri/core/workers/chunks/{3c572629f46e5093223c.js → 30333a95dc0a44e23fb5.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{7afe89eafab00afb31f2.js → 30837d93116f0337972f.js} +1 -1
  10. package/assets/esri/core/workers/chunks/31df729c17470245288c.js +2 -0
  11. package/assets/esri/core/workers/chunks/{c0bf663240df7be68131.js.LICENSE.txt → 31df729c17470245288c.js.LICENSE.txt} +1 -1
  12. package/assets/esri/core/workers/chunks/{e5d6f3815ecab8560404.js → 4130ea1f5a9f197168d7.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{f5855075104c12bf71d8.js → 59e341b2db44351bf557.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{73630d52768e3d932f30.js → 5a10b58533b4116115ac.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{dc193247a1980360ec4f.js → 8e98ff9404a802352037.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{863cfe35ee640bac103f.js → 94e51fe1c539df6257c2.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{cbe7e6283a427a618d4b.js → 9519a02b9b8db88a3150.js} +1 -1
  18. package/assets/esri/core/workers/chunks/a59ee7d2b98c85f27dd2.js +1 -0
  19. package/assets/esri/core/workers/chunks/{92ef9b0c61640e0ecbb4.js → a5dbab94697757c87c49.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{147d3ee9aa81d7b2b7fa.js → a6406a248b7b2ed65f35.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{ebdf61eb364ac0856f40.js → acbd0f4d72d1f5d8e4e8.js} +1 -1
  22. package/assets/esri/core/workers/chunks/ad68fe924456d6d7d4f0.js +1 -0
  23. package/assets/esri/core/workers/chunks/b06c949fc7d08e376a5f.js +1 -0
  24. package/assets/esri/core/workers/chunks/c9b09099488d0e719dfb.js +1 -0
  25. package/assets/esri/core/workers/chunks/{4a05d0dfa73ff570e1fa.js → d15e6662d90718411d62.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{b74b9dceabbf7b1aec39.js → d16aac3461af9cee0c29.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{b9d9be39cd64f28dd478.js → d60dd3e1028f714f2258.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{cab6decfcb3f596a3837.js → d8c59b1d73650c060dfb.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{d24339b37cc9316e6d99.js → dcb6e1b33402d7fa455b.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{a8da24116180d708cf81.js → df653bca2b14dffc82d1.js} +1 -1
  31. package/chunks/index.js +1 -1
  32. package/config.js +1 -1
  33. package/interfaces.d.ts +8 -0
  34. package/layers/mixins/PortalLayer.js +1 -1
  35. package/package.json +2 -2
  36. package/request.js +1 -1
  37. package/support/revision.js +1 -1
  38. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  39. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  40. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  41. package/views/3d/terrain/PatchRenderData.js +1 -1
  42. package/views/3d/terrain/TerrainSurface.js +1 -1
  43. package/views/3d/terrain/Tile.js +1 -1
  44. package/widgets/FeatureTable/Grid/Grid.js +2 -2
  45. package/widgets/Sketch/SketchViewModel.js +1 -1
  46. package/assets/esri/core/workers/chunks/3f6b17c9d2629ed396da.js +0 -1
  47. package/assets/esri/core/workers/chunks/68d57660c7c71b82ff3c.js +0 -1
  48. package/assets/esri/core/workers/chunks/6ef8de3aa9a8d9c22161.js +0 -1
  49. package/assets/esri/core/workers/chunks/b548bf032c8af34fe155.js +0 -1
  50. package/assets/esri/core/workers/chunks/bbcae04235830debd814.js +0 -1
  51. package/assets/esri/core/workers/chunks/c0bf663240df7be68131.js +0 -2
  52. package/assets/esri/core/workers/chunks/cd9668acbe3babd2b188.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5906],{38171:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),s=r(66577),n=r(51773),a=r(78223),l=r(2368),o=r(96674),u=r(70586),p=r(99001),d=r(5600),c=(r(67676),r(80442),r(75215),r(52011)),m=r(33955);function h(e){if(!(0,u.pC)(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 y=class extends((0,l.J)(o.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))}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&&(0,u.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&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:(0,u.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,u.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,u.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}};(0,i._)([(0,d.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,m.im)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],y.prototype,"aggregateGeometries",null),(0,i._)([(0,d.Cb)({value:null})],y.prototype,"attributes",null),(0,i._)([(0,d.Cb)({value:null,types:s.qM,json:{read:m.im}})],y.prototype,"geometry",null),(0,i._)([(0,d.Cb)({type:Boolean})],y.prototype,"isAggregate",void 0),(0,i._)([(0,d.Cb)({clonable:"reference"})],y.prototype,"layer",void 0),(0,i._)([(0,d.Cb)({type:n.Z})],y.prototype,"popupTemplate",void 0),(0,i._)([(0,d.Cb)({clonable:"reference"})],y.prototype,"sourceLayer",void 0),(0,i._)([(0,d.Cb)({value:null,types:a.LB})],y.prototype,"symbol",null),(0,i._)([(0,d.Cb)({type:Boolean,value:!0})],y.prototype,"visible",null),y=(0,i._)([(0,c.j)("esri.Graphic")],y),(y||(y={})).generateUID=p.D;const f=y},84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i,s=r(43697),n=r(96674),a=r(35463),l=r(5600),o=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let p=i=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}clone(){return new i({value:this.value,unit:this.unit})}};(0,s._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),(0,s._)([(0,l.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],p.prototype,"unit",void 0),p=i=(0,s._)([(0,o.j)("esri.TimeInterval")],p);const d=p},57435:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),s=r(80539),n=r(3920),a=r(70586),l=(r(95330),r(26258),r(87538)),o=r(5600),u=(r(67676),r(80442),r(75215),r(52011));let p=class extends((0,n.p)(s.Z)){constructor(e){super(e),this.getCollections=null}initialize(){this.handles.add((0,l.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,a.pC)(this.getCollections)?this.getCollections():null;if((0,a.Wi)(e))return void this.removeAll();let t=0;for(const r of e)(0,a.pC)(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?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,o.Cb)()],p.prototype,"getCollections",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"getChildrenFunction",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"itemFilterFunction",void 0),p=(0,i._)([(0,u.j)("esri.core.CollectionFlattener")],p);const d=p},91040:(e,t,r)=>{r.d(t,{yZ:()=>s});var i=r(67900);function s(e,t){const r=t||e.extent,s=e.width,n=(0,i.c9)(r&&r.spatialReference);return r&&s?r.width/s*n*i.hd*96:0}},25906:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ve});var i=r(43697),s=r(68773),n=r(38171),a=r(51773),l=r(3172),o=r(80539),u=r(57435),p=r(3920),d=r(35454),c=r(22974),m=r(70586),h=r(16453),y=r(95330),f=r(17452),g=r(5600),b=r(75215),v=r(71715),w=r(52011),_=r(30556),x=r(76169),C=r(6570),I=r(82971),S=r(91040),E=r(8744),N=r(29600),T=r(71612),O=r(38009),F=r(16859),U=r(34760),L=r(72965),R=r(28294),j=r(52162),P=r(66677),A=r(21506),M=r(15923);r(67676),r(80442);const D={visible:"visibleSublayers"};let Z=class extends((0,p.p)(M.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(D[e.propertyName])))],"layer"))}get layers(){const{visibleSublayers:e}=this;return e.filter((e=>e.name)).map((e=>e.name)).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=null==e?void 0:e.sublayers,i=[],s=e=>{const{minScale:r,maxScale:n,sublayers:a,visible:l}=e;l&&(0===t||(0===r||t<=r)&&(0===n||t>=n))&&(a?a.forEach(s):i.unshift(e))};return null==r||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,g.Cb)()],Z.prototype,"layer",null),(0,i._)([(0,g.Cb)({readOnly:!0})],Z.prototype,"layers",null),(0,i._)([(0,g.Cb)({type:Number})],Z.prototype,"scale",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],Z.prototype,"version",null),(0,i._)([(0,g.Cb)({readOnly:!0})],Z.prototype,"visibleSublayers",null),Z=(0,i._)([(0,w.j)("esri.layers.support.ExportWMSImageParameters")],Z);var q,k=r(61247),V=r(90578);let B=0,W=q=class extends h.w{constructor(e){super(e),this._sublayersHandles=new k.Z,this.dimensions=null,this.fullExtents=null,this.featureInfoFormat=null,this.featureInfoUrl=null,this.legendUrl=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.popupEnabled=!1,this.queryable=!1,this.spatialReferences=null}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?C.Z.fromJSON(e):null}get id(){const e=this._get("id");return null==e?B++:e}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?t.legendUrl||t.legendURL:null}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((t=>t.layer=e))}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}set sublayers(e){const t=this._get("sublayers");t&&(t.forEach((e=>{e.layer=null})),this._sublayersHandles.removeAll(),this._sublayersHandles=null),e&&(e.forEach((e=>{e.parent=this,e.layer=this.layer})),this._sublayersHandles.add([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this.layer})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))])),this._set("sublayers",e)}castSublayers(e){return(0,b.se)(o.Z.ofType(q),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new q;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()))),this.hasOwnProperty("featureInfoFormat")&&(e.featureInfoFormat=this.featureInfoFormat),this.hasOwnProperty("featureInfoUrl")&&(e.featureInfoUrl=this.featureInfoUrl),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,g.Cb)()],W.prototype,"description",null),(0,i._)([(0,g.Cb)({readOnly:!0})],W.prototype,"dimensions",void 0),(0,i._)([(0,g.Cb)({value:null})],W.prototype,"fullExtent",null),(0,i._)([(0,v.r)("fullExtent",["extent"])],W.prototype,"readExtent",null),(0,i._)([(0,g.Cb)()],W.prototype,"fullExtents",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"featureInfoFormat",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"featureInfoUrl",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],W.prototype,"id",null),(0,i._)([(0,g.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],W.prototype,"legendUrl",void 0),(0,i._)([(0,v.r)(["web-document"],"legendUrl")],W.prototype,"readLegendUrl",null),(0,i._)([(0,g.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],W.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({value:null})],W.prototype,"layer",null),(0,i._)([(0,g.Cb)()],W.prototype,"maxScale",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"minScale",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,i._)([(0,g.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],W.prototype,"name",null),(0,i._)([(0,g.Cb)()],W.prototype,"parent",void 0),(0,i._)([(0,g.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],W.prototype,"popupEnabled",void 0),(0,i._)([(0,g.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],W.prototype,"queryable",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"sublayers",null),(0,i._)([(0,V.p)("sublayers")],W.prototype,"castSublayers",null),(0,i._)([(0,g.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],W.prototype,"spatialReferences",void 0),(0,i._)([(0,g.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],W.prototype,"title",null),(0,i._)([(0,g.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],W.prototype,"visible",null),W=q=(0,i._)([(0,w.j)("esri.layers.support.WMSSublayer")],W);const $=W;var H=r(20102);const G={84:4326,83:4269,27:4267};function J(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=Y("Capability",r),s=Y("Service",r),n=Y("Request",i);if(!i||!s||!n)return null;const a=Y("Layer",i);if(!a)return null;const l="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",o=ee("Title",s,"")||ee("Name",s,""),u=ee("AccessConstraints",s,""),p=/^none$/i.test(u)?"":u,d=ee("Abstract",s,""),c=parseInt(ee("MaxWidth",s,"5000"),10),m=parseInt(ee("MaxHeight",s,"5000"),10),h=ie(n,"GetMap"),y=re(n,"GetMap"),f=ne(a,l,t);let g,b,v,w=0;if(Array.prototype.slice.call(i.childNodes).forEach((e=>{"Layer"===e.nodeName&&(0===w?g=e:1===w?(f.name&&(f.name="",f.sublayers.push(ne(g,l,t))),f.sublayers.push(ne(e,l,t))):f.sublayers.push(ne(e,l,t)),w++)})),!f)return null;const _=f.fullExtents;if(b=f.sublayers,b||(b=[]),0===b.length&&b.push(f),v=f.extent,!v){const e=new C.Z(b[0].extent);f.extent=e.toJSON(),v=f.extent}const x=f.spatialReferences.length>0?f.spatialReferences:X(f),I=re(n,"GetFeatureInfo");let S;if(I){const e=ie(n,"GetFeatureInfo");e.includes("text/html")?S="text/html":e.includes("text/plain")&&(S="text/plain")}if(!S){const e=t=>{t&&(t.queryable=!1,t.sublayers&&t.sublayers.forEach((t=>{e(t)})))};e(f)}const E=z(b),N=f.minScale||0,T=f.maxScale||0,O=f.dimensions,F=E.reduce(((e,t)=>e.concat(t.dimensions)),[]),U=O.concat(F).filter(le);let L=null;if(U.length>0){let e=Number.POSITIVE_INFINITY,t=Number.NEGATIVE_INFINITY;U.forEach((r=>{const{extent:i}=r;!function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(i)?i.forEach((r=>{e=Math.min(e,r.min.getTime()),t=Math.max(t,r.max.getTime())})):i.forEach((r=>{e=Math.min(e,r.getTime()),t=Math.max(t,r.getTime())}))})),L={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[e,t]}}return{copyright:p,description:d,dimensions:O,extent:v,fullExtents:_,featureInfoFormat:S,featureInfoUrl:I,mapUrl:y,maxWidth:c,maxHeight:m,maxScale:T,minScale:N,layers:E,spatialReferences:x,supportedImageFormatTypes:h,timeInfo:L,title:o,version:l}}function X(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=X(t);if(e.length>0)return e}return[]}function z(e){let t=[];return e.forEach((e=>{t.push(e),e.sublayers&&e.sublayers.length&&(t=t.concat(z(e.sublayers)),delete e.sublayers)})),t}function Q(e,t,r){var i;return null!=(i=t.getAttribute(e))?i:r}function Y(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(ae(i)&&i.nodeName===e)return i}return null}function K(e,t){const r=[];for(let i=0;i<t.childNodes.length;i++){const s=t.childNodes[i];ae(s)&&s.nodeName===e&&r.push(s)}return r}function ee(e,t,r){const i=Y(e,t);return i?i.textContent:r}function te(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 l,o,u,p;r?(l=isNaN(s)?-Number.MAX_VALUE:s,o=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(a)?Number.MAX_VALUE:a,p=isNaN(n)?Number.MAX_VALUE:n):(l=isNaN(i)?-Number.MAX_VALUE:i,o=isNaN(s)?-Number.MAX_VALUE:s,u=isNaN(n)?Number.MAX_VALUE:n,p=isNaN(a)?Number.MAX_VALUE:a);const d=new I.Z({wkid:t});return new C.Z({xmin:l,ymin:o,xmax:u,ymax:p,spatialReference:d})}function re(e,t){const r=Y(t,e);if(r){const e=Y("DCPType",r);if(e){const t=Y("HTTP",e);if(t){const e=Y("Get",t);if(e){let t=function(e,t,r,i){const s=Y("OnlineResource",r);return s?Q("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,f.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 ie(e,t){const r=K("Operation",e);if(0===r.length)return K("Format",Y(t,e)).map((e=>e.textContent));const i=[];return r.forEach((e=>{e.getAttribute("name")===t&&K("Format",e).forEach((e=>{i.push(e.textContent)}))})),i}function se(e,t,r){const i=Y(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 ne(e,t,r){var i;if(!e)return null;const s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},n=Y("LatLonBoundingBox",e),a=Y("EX_GeographicBoundingBox",e);let l=null;n&&(l=te(n,4326)),a&&(l=new C.Z(0,0,0,0,new I.Z({wkid:4326})),l.xmin=parseFloat(ee("westBoundLongitude",a,"0")),l.ymin=parseFloat(ee("southBoundLatitude",a,"0")),l.xmax=parseFloat(ee("eastBoundLongitude",a,"0")),l.ymax=parseFloat(ee("northBoundLatitude",a,"0"))),n||a||(l=new C.Z(-180,-90,180,90,new I.Z({wkid:4326}))),s.minScale=se(e,"MaxScaleDenominator",0),s.maxScale=se(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)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.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)||l||(l="1.3.0"===t?te(e,i,(0,j.A)(i)):te(e,i))}const i=r&&r.indexOf(":");if(i&&i>-1){let n=parseInt(r.substring(i+1,r.length),10);0===n||isNaN(n)||(n=G[n]?G[n]:n);const a="1.3.0"===t?te(e,n,(0,j.A)(n)):te(e,n);s.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=G[t]?G[t]:t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||s.legendURL){if("Layer"===e.nodeName){const i=ne(e,t,r);i&&(i.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(i))}}else{const t=Y("LegendURL",e);if(t){const e=Y("OnlineResource",t);e&&(s.legendURL=e.getAttribute("xlink:href"))}}})),s.extent=null==(i=l)?void 0:i.toJSON(),s.dimensions=K("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"),n=e.getAttribute("default"),a="0"!==Q("default",e,"0"),l="0"!==Q("nearestValue",e,"0"),o="0"!==Q("current",e,"0");return le({name:t,units:r})?{name:"time",units:"ISO8601",extent:pe(i),default:pe(n),multipleValues:a,nearestValue:l,current:o}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:oe(i),unitSymbol:s,default:oe(n),multipleValues:a,nearestValue:l}:{name:t,units:r,extent:ue(i),unitSymbol:s,default:ue(n),multipleValues:a,nearestValue:l}})),s}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function le(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function oe(e){if(!e)return null;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((e=>e)):r.map((e=>parseFloat(e)))}function ue(e){if(!e)return null;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((e=>e)):r}function pe(e){if(!e)return null;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]?de(t[2]):void 0}})).filter((e=>e)):r.map((e=>new Date(e)))}function de(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:ce(t[1]),months:ce(t[2]),days:ce(t[3]),hours:ce(t[4]),minutes:ce(t[5]),seconds:ce(t[6])}:null}function ce(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 he=new Set([102100,3857,102113,900913]),ye=new Set([3395,54004]),fe=new d.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});let ge=class extends((0,p.p)((0,T.h)((0,R.n)((0,U.Q)((0,L.M)((0,O.q)((0,F.I)((0,h.R)(N.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.featureInfoFormat=null,this.featureInfoUrl=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.url=null,this.version=null,this.watch("sublayers",((e,t)=>{if(t){for(const e of t)e.layer=null;this.handles.remove("wms-sublayer")}if(e){for(const t of e)t.parent=this,t.layer=this;this.handles.add([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))],"wms-sublayer")}}),!0)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,m.pC)(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 new C.Z({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]})}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}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&&this.spatialReference.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return be(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return be(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const s=new Map,n=e.flatten((({sublayers:e})=>e&&e.toArray())).toArray();n.forEach((e=>{"number"==typeof e.parent.id&&(s.has(e.parent.id)?s.get(e.parent.id).push(e.id):s.set(e.parent.id,[e.id]))})),n.forEach((e=>{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((e=>e.visible&&!e.sublayers)).map((e=>e.name))}createExportImageParameters(e,t,r,i){const s=i&&i.pixelRatio||1,n=(0,S.yZ)({extent:e,width:t})*s,a=new Z({layer:this,scale:n}),{xmin:l,ymin:o,xmax:u,ymax:p,spatialReference:d}=e,c=function(e,t){let r=e.wkid;return(0,m.Wi)(t)?r:(!t.includes(r)&&e.latestWkid&&(r=e.latestWkid),he.has(r)?t.find((e=>he.has(e)))||t.find((e=>ye.has(e)))||102100:r)}(d,this.spatialReferences),h="1.3.0"===this.version&&(0,j.A)(c)?`${o},${l},${p},${u}`:`${l},${o},${u},${p}`,y=a.toJSON();return{bbox:h,["1.3.0"===this.version?"crs":"srs"]:isNaN(c)?void 0:"EPSG:"+c,...y}}async fetchImage(e,t,r,i){var s,n;const a=this.mapUrl,o=this.createExportImageParameters(e,t,r,i);if(!o.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const u=null==i||null==(s=i.timeExtent)?void 0:s.start,p=null==i||null==(n=i.timeExtent)?void 0:n.end,d=(0,m.pC)(u)&&(0,m.pC)(p)?u.getTime()===p.getTime()?me(u):`${me(u)}/${me(p)}`:void 0,c={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...o,time:d,...this.refreshParameters}),signal:null==i?void 0:i.signal};return(0,l.default)(a,c).then((e=>e.data))}fetchFeatureInfo(e,t,r,i,s){const l=(0,S.yZ)({extent:e,width:t}),o=function(e){return e.length?e.filter((e=>e.popupEnabled&&e.name&&e.queryable)).map((e=>e.name)).join(","):""}(new Z({layer:this,scale:l}).visibleSublayers);if(!this.featureInfoUrl||!o)return null;const u="1.3.0"===this.version?{I:i,J:s}:{x:i,y:s},p={query_layers:o,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...u},d={...this.createExportImageParameters(e,t,r),...p},c=this._mixCustomParameters(d),m=(0,f.fl)(this.featureInfoUrl,c),h=document.createElement("iframe");h.src=m,h.style.border="none",h.style.margin="0",h.style.width="100%",h.setAttribute("sandbox","");const y=new a.Z({title:this.title,content:h});return new n.Z({sourceLayer:this,popupTemplate:y})}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)||this.spatialReferences.some((t=>{const r=900913===t?I.Z.WebMercator:new I.Z({wkid:t});return(0,E.fS)(r,e)}))}async _fetchService(e){if(!this.resourceInfo){this.parsedUrl.query&&this.parsedUrl.query.service&&(this.parsedUrl.query.SERVICE=this.parsedUrl.query.service,delete this.parsedUrl.query.service),this.parsedUrl.query&&this.parsedUrl.query.request&&(this.parsedUrl.query.REQUEST=this.parsedUrl.query.request,delete this.parsedUrl.query.request);const t=await(0,l.default)(this.parsedUrl.path,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...this.parsedUrl.query,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=J(t.data)}if(this.parsedUrl){const e=new f.R9(this.parsedUrl.path);"https"!==e.scheme||e.port&&"443"!==e.port||s.Z.request.httpsDomains.includes(e.host)||s.Z.request.httpsDomains.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 be(e,t,r){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 $;e.read(s,t),-1===(null==r?void 0:r.indexOf(e.name))&&(e.visible=!1),i.set(e.id,e)}const s=[];for(const t of e){const e=i.get(t.id);if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);r.sublayers||(r.sublayers=new o.Z),r.sublayers.unshift(e)}else s.unshift(e)}return s}(0,i._)([(0,g.Cb)({readOnly:!0})],ge.prototype,"allSublayers",void 0),(0,i._)([(0,g.Cb)({json:{type:Object,write:!0}})],ge.prototype,"customParameters",void 0),(0,i._)([(0,g.Cb)({json:{type:Object,write:!0}})],ge.prototype,"customLayerParameters",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:!0}})],ge.prototype,"copyright",void 0),(0,i._)([(0,g.Cb)()],ge.prototype,"description",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ge.prototype,"dimensions",void 0),(0,i._)([(0,g.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],ge.prototype,"fullExtent",void 0),(0,i._)([(0,v.r)(["web-document","portal-item"],"fullExtent",["extent"])],ge.prototype,"readFullExtentFromItemOrMap",null),(0,i._)([(0,_.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],ge.prototype,"writeFullExtent",null),(0,i._)([(0,g.Cb)()],ge.prototype,"fullExtents",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"featureInfoFormat",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"featureInfoUrl",void 0),(0,i._)([(0,g.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:fe.jsonValues,read:{reader:fe.read,source:"format"},write:{writer:fe.write,target:"format"}}}}})],ge.prototype,"imageFormat",void 0),(0,i._)([(0,v.r)("imageFormat",["supportedImageFormatTypes"])],ge.prototype,"readImageFormat",null),(0,i._)([(0,g.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],ge.prototype,"imageMaxHeight",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],ge.prototype,"imageMaxWidth",void 0),(0,i._)([(0,g.Cb)()],ge.prototype,"imageTransparency",void 0),(0,i._)([(0,g.Cb)(A.rn)],ge.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({type:["show","hide","hide-children"]})],ge.prototype,"listMode",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"mapUrl",void 0),(0,i._)([(0,g.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ge.prototype,"isReference",void 0),(0,i._)([(0,g.Cb)({type:["WMS"]})],ge.prototype,"operationalLayerType",void 0),(0,i._)([(0,g.Cb)()],ge.prototype,"resourceInfo",void 0),(0,i._)([(0,g.Cb)({type:I.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],ge.prototype,"spatialReference",void 0),(0,i._)([(0,v.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],ge.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i._)([(0,g.Cb)({type:[b.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],ge.prototype,"spatialReferences",void 0),(0,i._)([(0,_.c)(["web-document","portal-item"],"spatialReferences")],ge.prototype,"writeSpatialReferences",null),(0,i._)([(0,g.Cb)({type:o.Z.ofType($),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,x.d)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],ge.prototype,"sublayers",void 0),(0,i._)([(0,v.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],ge.prototype,"readSublayersFromItemOrMap",null),(0,i._)([(0,v.r)("service","sublayers",["layers"])],ge.prototype,"readSublayers",null),(0,i._)([(0,_.c)("sublayers",{layers:{type:[$]},visibleLayers:{type:[String]}})],ge.prototype,"writeSublayers",null),(0,i._)([(0,g.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],ge.prototype,"type",void 0),(0,i._)([(0,g.Cb)(A.HQ)],ge.prototype,"url",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"version",void 0),ge=(0,i._)([(0,w.j)("esri.layers.WMSLayer")],ge);const ve=ge},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),s=r(40330),n=r(3172),a=r(66643),l=r(20102),o=r(92604),u=r(70586),p=r(95330),d=r(17452),c=r(5600),m=(r(67676),r(80442),r(75215),r(71715)),h=r(52011),y=r(30556),f=r(65587),g=r(15235),b=r(86082);const v=o.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.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 i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,p.D_)(e)||v.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,p.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const l=s.id.findServerInfo(this.url);if(null==l||!l.owningSystemUrl)return null;const o=`${l.owningSystemUrl}/sharing/rest`,p=f.Z.getDefault();if(p&&p.loaded&&(0,d.Fv)(p.restUrl)===(0,d.Fv)(o))return p.user;const c=`${o}/community/self`,m=(0,u.pC)(e)?e.signal:null,h=await(0,a.q6)((0,n.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:m}));return h.ok?b.default.fromJSON(h.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||f.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 the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,c.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},_={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),l=(r(67676),r(80442),r(75215),r(52011)),o=r(80539),u=(r(26258),r(87538));const p=new o.Z,d=new WeakMap;function c(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function m(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:m(t,e%t):0}let h=0,y=0;function f(){const e=Date.now();for(const r of p)if(r.refreshInterval){var t;e-(null!=(t=d.get(r))?t:0)+5>=6e4*r.refreshInterval&&(d.set(r,e),r.refresh(e))}}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of p)t=m(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?d.get(r)||d.set(r,e):d.delete(r);if(t!==y){if(y=t,clearInterval(h),0===y)return void(h=0);h=setInterval(f,y)}}));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((()=>{!function(e){c(e)&&p.push(e)}(this)}),(()=>{}))}destroy(){c(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.declaredClass).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,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>c});var i=r(43697),s=r(92835),n=r(84552),a=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),o=r(52011),u=r(35671),p=r(30547),d=r(78981);const c=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=d.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,l.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,o.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 i.some((([t,r])=>e>=t&&e<=r))}},30547:(e,t,r)=>{r.d(t,{Z:()=>v});var i,s=r(43697),n=r(92835),a=r(84552),l=r(96674),o=r(22974),u=r(70586),p=r(5600),d=(r(75215),r(71715)),c=r(52011),m=r(30556);r(67676),r(80442);let h=i=class extends l.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new i({respectsDaylightSaving:e,timezone:t})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"respectsDaylightSaving",void 0),(0,s._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],h.prototype,"readRespectsDaylightSaving",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],h.prototype,"timezone",void 0),h=i=(0,s._)([(0,c.j)("esri.layers.support.TimeReference")],h);const y=h;var f,g=r(78981);let b=f=class extends l.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 n.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new a.Z({value:t.timeInterval,unit:g.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new a.Z({value:t.defaultTimeInterval,unit:g.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:n,fullTimeExtent:a,trackIdField:l,useTime:u}=this;return new f({cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:(0,o.d9)(n),fullTimeExtent:(0,o.d9)(a),trackIdField:l,useTime:u})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,s._)([(0,p.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,s._)([(0,d.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,s._)([(0,m.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,s._)([(0,p.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,s._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,s._)([(0,m.c)("interval")],b.prototype,"writeInterval",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,s._)([(0,p.Cb)({type:y,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=f=(0,s._)([(0,c.j)("esri.layers.support.TimeInfo")],b);const v=b},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
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5906],{38171:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),s=r(66577),n=r(51773),a=r(78223),l=r(2368),o=r(96674),u=r(70586),p=r(99001),d=r(5600),c=(r(67676),r(80442),r(75215),r(52011)),m=r(33955);function h(e){if(!(0,u.pC)(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 y=class extends((0,l.J)(o.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))}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&&(0,u.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&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:(0,u.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,u.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,u.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}};(0,i._)([(0,d.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,m.im)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],y.prototype,"aggregateGeometries",null),(0,i._)([(0,d.Cb)({value:null})],y.prototype,"attributes",null),(0,i._)([(0,d.Cb)({value:null,types:s.qM,json:{read:m.im}})],y.prototype,"geometry",null),(0,i._)([(0,d.Cb)({type:Boolean})],y.prototype,"isAggregate",void 0),(0,i._)([(0,d.Cb)({clonable:"reference"})],y.prototype,"layer",void 0),(0,i._)([(0,d.Cb)({type:n.Z})],y.prototype,"popupTemplate",void 0),(0,i._)([(0,d.Cb)({clonable:"reference"})],y.prototype,"sourceLayer",void 0),(0,i._)([(0,d.Cb)({value:null,types:a.LB})],y.prototype,"symbol",null),(0,i._)([(0,d.Cb)({type:Boolean,value:!0})],y.prototype,"visible",null),y=(0,i._)([(0,c.j)("esri.Graphic")],y),(y||(y={})).generateUID=p.D;const f=y},84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i,s=r(43697),n=r(96674),a=r(35463),l=r(5600),o=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let p=i=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}clone(){return new i({value:this.value,unit:this.unit})}};(0,s._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),(0,s._)([(0,l.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],p.prototype,"unit",void 0),p=i=(0,s._)([(0,o.j)("esri.TimeInterval")],p);const d=p},57435:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),s=r(80539),n=r(3920),a=r(70586),l=(r(95330),r(26258),r(87538)),o=r(5600),u=(r(67676),r(80442),r(75215),r(52011));let p=class extends((0,n.p)(s.Z)){constructor(e){super(e),this.getCollections=null}initialize(){this.handles.add((0,l.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,a.pC)(this.getCollections)?this.getCollections():null;if((0,a.Wi)(e))return void this.removeAll();let t=0;for(const r of e)(0,a.pC)(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?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,o.Cb)()],p.prototype,"getCollections",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"getChildrenFunction",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"itemFilterFunction",void 0),p=(0,i._)([(0,u.j)("esri.core.CollectionFlattener")],p);const d=p},91040:(e,t,r)=>{r.d(t,{yZ:()=>s});var i=r(67900);function s(e,t){const r=t||e.extent,s=e.width,n=(0,i.c9)(r&&r.spatialReference);return r&&s?r.width/s*n*i.hd*96:0}},25906:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ve});var i=r(43697),s=r(68773),n=r(38171),a=r(51773),l=r(3172),o=r(80539),u=r(57435),p=r(3920),d=r(35454),c=r(22974),m=r(70586),h=r(16453),y=r(95330),f=r(17452),g=r(5600),b=r(75215),v=r(71715),w=r(52011),_=r(30556),x=r(76169),C=r(6570),I=r(82971),S=r(91040),E=r(8744),N=r(29600),T=r(71612),O=r(38009),F=r(16859),U=r(34760),L=r(72965),R=r(28294),j=r(52162),P=r(66677),A=r(21506),M=r(15923);r(67676),r(80442);const D={visible:"visibleSublayers"};let Z=class extends((0,p.p)(M.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(D[e.propertyName])))],"layer"))}get layers(){const{visibleSublayers:e}=this;return e.filter((e=>e.name)).map((e=>e.name)).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=null==e?void 0:e.sublayers,i=[],s=e=>{const{minScale:r,maxScale:n,sublayers:a,visible:l}=e;l&&(0===t||(0===r||t<=r)&&(0===n||t>=n))&&(a?a.forEach(s):i.unshift(e))};return null==r||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,g.Cb)()],Z.prototype,"layer",null),(0,i._)([(0,g.Cb)({readOnly:!0})],Z.prototype,"layers",null),(0,i._)([(0,g.Cb)({type:Number})],Z.prototype,"scale",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],Z.prototype,"version",null),(0,i._)([(0,g.Cb)({readOnly:!0})],Z.prototype,"visibleSublayers",null),Z=(0,i._)([(0,w.j)("esri.layers.support.ExportWMSImageParameters")],Z);var q,k=r(61247),V=r(90578);let B=0,W=q=class extends h.w{constructor(e){super(e),this._sublayersHandles=new k.Z,this.dimensions=null,this.fullExtents=null,this.featureInfoFormat=null,this.featureInfoUrl=null,this.legendUrl=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.popupEnabled=!1,this.queryable=!1,this.spatialReferences=null}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?C.Z.fromJSON(e):null}get id(){const e=this._get("id");return null==e?B++:e}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?t.legendUrl||t.legendURL:null}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((t=>t.layer=e))}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}set sublayers(e){const t=this._get("sublayers");t&&(t.forEach((e=>{e.layer=null})),this._sublayersHandles.removeAll(),this._sublayersHandles=null),e&&(e.forEach((e=>{e.parent=this,e.layer=this.layer})),this._sublayersHandles.add([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this.layer})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))])),this._set("sublayers",e)}castSublayers(e){return(0,b.se)(o.Z.ofType(q),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new q;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()))),this.hasOwnProperty("featureInfoFormat")&&(e.featureInfoFormat=this.featureInfoFormat),this.hasOwnProperty("featureInfoUrl")&&(e.featureInfoUrl=this.featureInfoUrl),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,g.Cb)()],W.prototype,"description",null),(0,i._)([(0,g.Cb)({readOnly:!0})],W.prototype,"dimensions",void 0),(0,i._)([(0,g.Cb)({value:null})],W.prototype,"fullExtent",null),(0,i._)([(0,v.r)("fullExtent",["extent"])],W.prototype,"readExtent",null),(0,i._)([(0,g.Cb)()],W.prototype,"fullExtents",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"featureInfoFormat",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"featureInfoUrl",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],W.prototype,"id",null),(0,i._)([(0,g.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],W.prototype,"legendUrl",void 0),(0,i._)([(0,v.r)(["web-document"],"legendUrl")],W.prototype,"readLegendUrl",null),(0,i._)([(0,g.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],W.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({value:null})],W.prototype,"layer",null),(0,i._)([(0,g.Cb)()],W.prototype,"maxScale",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"minScale",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,i._)([(0,g.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],W.prototype,"name",null),(0,i._)([(0,g.Cb)()],W.prototype,"parent",void 0),(0,i._)([(0,g.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],W.prototype,"popupEnabled",void 0),(0,i._)([(0,g.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],W.prototype,"queryable",void 0),(0,i._)([(0,g.Cb)()],W.prototype,"sublayers",null),(0,i._)([(0,V.p)("sublayers")],W.prototype,"castSublayers",null),(0,i._)([(0,g.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],W.prototype,"spatialReferences",void 0),(0,i._)([(0,g.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],W.prototype,"title",null),(0,i._)([(0,g.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],W.prototype,"visible",null),W=q=(0,i._)([(0,w.j)("esri.layers.support.WMSSublayer")],W);const $=W;var H=r(20102);const G={84:4326,83:4269,27:4267};function J(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=Y("Capability",r),s=Y("Service",r),n=Y("Request",i);if(!i||!s||!n)return null;const a=Y("Layer",i);if(!a)return null;const l="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",o=ee("Title",s,"")||ee("Name",s,""),u=ee("AccessConstraints",s,""),p=/^none$/i.test(u)?"":u,d=ee("Abstract",s,""),c=parseInt(ee("MaxWidth",s,"5000"),10),m=parseInt(ee("MaxHeight",s,"5000"),10),h=ie(n,"GetMap"),y=re(n,"GetMap"),f=ne(a,l,t);let g,b,v,w=0;if(Array.prototype.slice.call(i.childNodes).forEach((e=>{"Layer"===e.nodeName&&(0===w?g=e:1===w?(f.name&&(f.name="",f.sublayers.push(ne(g,l,t))),f.sublayers.push(ne(e,l,t))):f.sublayers.push(ne(e,l,t)),w++)})),!f)return null;const _=f.fullExtents;if(b=f.sublayers,b||(b=[]),0===b.length&&b.push(f),v=f.extent,!v){const e=new C.Z(b[0].extent);f.extent=e.toJSON(),v=f.extent}const x=f.spatialReferences.length>0?f.spatialReferences:X(f),I=re(n,"GetFeatureInfo");let S;if(I){const e=ie(n,"GetFeatureInfo");e.includes("text/html")?S="text/html":e.includes("text/plain")&&(S="text/plain")}if(!S){const e=t=>{t&&(t.queryable=!1,t.sublayers&&t.sublayers.forEach((t=>{e(t)})))};e(f)}const E=z(b),N=f.minScale||0,T=f.maxScale||0,O=f.dimensions,F=E.reduce(((e,t)=>e.concat(t.dimensions)),[]),U=O.concat(F).filter(le);let L=null;if(U.length>0){let e=Number.POSITIVE_INFINITY,t=Number.NEGATIVE_INFINITY;U.forEach((r=>{const{extent:i}=r;!function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(i)?i.forEach((r=>{e=Math.min(e,r.min.getTime()),t=Math.max(t,r.max.getTime())})):i.forEach((r=>{e=Math.min(e,r.getTime()),t=Math.max(t,r.getTime())}))})),L={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[e,t]}}return{copyright:p,description:d,dimensions:O,extent:v,fullExtents:_,featureInfoFormat:S,featureInfoUrl:I,mapUrl:y,maxWidth:c,maxHeight:m,maxScale:T,minScale:N,layers:E,spatialReferences:x,supportedImageFormatTypes:h,timeInfo:L,title:o,version:l}}function X(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=X(t);if(e.length>0)return e}return[]}function z(e){let t=[];return e.forEach((e=>{t.push(e),e.sublayers&&e.sublayers.length&&(t=t.concat(z(e.sublayers)),delete e.sublayers)})),t}function Q(e,t,r){var i;return null!=(i=t.getAttribute(e))?i:r}function Y(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(ae(i)&&i.nodeName===e)return i}return null}function K(e,t){const r=[];for(let i=0;i<t.childNodes.length;i++){const s=t.childNodes[i];ae(s)&&s.nodeName===e&&r.push(s)}return r}function ee(e,t,r){const i=Y(e,t);return i?i.textContent:r}function te(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 l,o,u,p;r?(l=isNaN(s)?-Number.MAX_VALUE:s,o=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(a)?Number.MAX_VALUE:a,p=isNaN(n)?Number.MAX_VALUE:n):(l=isNaN(i)?-Number.MAX_VALUE:i,o=isNaN(s)?-Number.MAX_VALUE:s,u=isNaN(n)?Number.MAX_VALUE:n,p=isNaN(a)?Number.MAX_VALUE:a);const d=new I.Z({wkid:t});return new C.Z({xmin:l,ymin:o,xmax:u,ymax:p,spatialReference:d})}function re(e,t){const r=Y(t,e);if(r){const e=Y("DCPType",r);if(e){const t=Y("HTTP",e);if(t){const e=Y("Get",t);if(e){let t=function(e,t,r,i){const s=Y("OnlineResource",r);return s?Q("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,f.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 ie(e,t){const r=K("Operation",e);if(0===r.length)return K("Format",Y(t,e)).map((e=>e.textContent));const i=[];return r.forEach((e=>{e.getAttribute("name")===t&&K("Format",e).forEach((e=>{i.push(e.textContent)}))})),i}function se(e,t,r){const i=Y(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 ne(e,t,r){var i;if(!e)return null;const s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},n=Y("LatLonBoundingBox",e),a=Y("EX_GeographicBoundingBox",e);let l=null;n&&(l=te(n,4326)),a&&(l=new C.Z(0,0,0,0,new I.Z({wkid:4326})),l.xmin=parseFloat(ee("westBoundLongitude",a,"0")),l.ymin=parseFloat(ee("southBoundLatitude",a,"0")),l.xmax=parseFloat(ee("eastBoundLongitude",a,"0")),l.ymax=parseFloat(ee("northBoundLatitude",a,"0"))),n||a||(l=new C.Z(-180,-90,180,90,new I.Z({wkid:4326}))),s.minScale=se(e,"MaxScaleDenominator",0),s.maxScale=se(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)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.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)||l||(l="1.3.0"===t?te(e,i,(0,j.A)(i)):te(e,i))}const i=r&&r.indexOf(":");if(i&&i>-1){let n=parseInt(r.substring(i+1,r.length),10);0===n||isNaN(n)||(n=G[n]?G[n]:n);const a="1.3.0"===t?te(e,n,(0,j.A)(n)):te(e,n);s.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=G[t]?G[t]:t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||s.legendURL){if("Layer"===e.nodeName){const i=ne(e,t,r);i&&(i.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(i))}}else{const t=Y("LegendURL",e);if(t){const e=Y("OnlineResource",t);e&&(s.legendURL=e.getAttribute("xlink:href"))}}})),s.extent=null==(i=l)?void 0:i.toJSON(),s.dimensions=K("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"),n=e.getAttribute("default"),a="0"!==Q("default",e,"0"),l="0"!==Q("nearestValue",e,"0"),o="0"!==Q("current",e,"0");return le({name:t,units:r})?{name:"time",units:"ISO8601",extent:pe(i),default:pe(n),multipleValues:a,nearestValue:l,current:o}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:oe(i),unitSymbol:s,default:oe(n),multipleValues:a,nearestValue:l}:{name:t,units:r,extent:ue(i),unitSymbol:s,default:ue(n),multipleValues:a,nearestValue:l}})),s}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function le(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function oe(e){if(!e)return null;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((e=>e)):r.map((e=>parseFloat(e)))}function ue(e){if(!e)return null;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((e=>e)):r}function pe(e){if(!e)return null;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]?de(t[2]):void 0}})).filter((e=>e)):r.map((e=>new Date(e)))}function de(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:ce(t[1]),months:ce(t[2]),days:ce(t[3]),hours:ce(t[4]),minutes:ce(t[5]),seconds:ce(t[6])}:null}function ce(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 he=new Set([102100,3857,102113,900913]),ye=new Set([3395,54004]),fe=new d.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});let ge=class extends((0,p.p)((0,T.h)((0,R.n)((0,U.Q)((0,L.M)((0,O.q)((0,F.I)((0,h.R)(N.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.featureInfoFormat=null,this.featureInfoUrl=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.url=null,this.version=null,this.watch("sublayers",((e,t)=>{if(t){for(const e of t)e.layer=null;this.handles.remove("wms-sublayer")}if(e){for(const t of e)t.parent=this,t.layer=this;this.handles.add([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))],"wms-sublayer")}}),!0)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,m.pC)(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 new C.Z({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]})}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}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&&this.spatialReference.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return be(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return be(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const s=new Map,n=e.flatten((({sublayers:e})=>e&&e.toArray())).toArray();n.forEach((e=>{"number"==typeof e.parent.id&&(s.has(e.parent.id)?s.get(e.parent.id).push(e.id):s.set(e.parent.id,[e.id]))})),n.forEach((e=>{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((e=>e.visible&&!e.sublayers)).map((e=>e.name))}createExportImageParameters(e,t,r,i){const s=i&&i.pixelRatio||1,n=(0,S.yZ)({extent:e,width:t})*s,a=new Z({layer:this,scale:n}),{xmin:l,ymin:o,xmax:u,ymax:p,spatialReference:d}=e,c=function(e,t){let r=e.wkid;return(0,m.Wi)(t)?r:(!t.includes(r)&&e.latestWkid&&(r=e.latestWkid),he.has(r)?t.find((e=>he.has(e)))||t.find((e=>ye.has(e)))||102100:r)}(d,this.spatialReferences),h="1.3.0"===this.version&&(0,j.A)(c)?`${o},${l},${p},${u}`:`${l},${o},${u},${p}`,y=a.toJSON();return{bbox:h,["1.3.0"===this.version?"crs":"srs"]:isNaN(c)?void 0:"EPSG:"+c,...y}}async fetchImage(e,t,r,i){var s,n;const a=this.mapUrl,o=this.createExportImageParameters(e,t,r,i);if(!o.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const u=null==i||null==(s=i.timeExtent)?void 0:s.start,p=null==i||null==(n=i.timeExtent)?void 0:n.end,d=(0,m.pC)(u)&&(0,m.pC)(p)?u.getTime()===p.getTime()?me(u):`${me(u)}/${me(p)}`:void 0,c={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...o,time:d,...this.refreshParameters}),signal:null==i?void 0:i.signal};return(0,l.default)(a,c).then((e=>e.data))}fetchFeatureInfo(e,t,r,i,s){const l=(0,S.yZ)({extent:e,width:t}),o=function(e){return e.length?e.filter((e=>e.popupEnabled&&e.name&&e.queryable)).map((e=>e.name)).join(","):""}(new Z({layer:this,scale:l}).visibleSublayers);if(!this.featureInfoUrl||!o)return null;const u="1.3.0"===this.version?{I:i,J:s}:{x:i,y:s},p={query_layers:o,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...u},d={...this.createExportImageParameters(e,t,r),...p},c=this._mixCustomParameters(d),m=(0,f.fl)(this.featureInfoUrl,c),h=document.createElement("iframe");h.src=m,h.style.border="none",h.style.margin="0",h.style.width="100%",h.setAttribute("sandbox","");const y=new a.Z({title:this.title,content:h});return new n.Z({sourceLayer:this,popupTemplate:y})}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)||this.spatialReferences.some((t=>{const r=900913===t?I.Z.WebMercator:new I.Z({wkid:t});return(0,E.fS)(r,e)}))}async _fetchService(e){if(!this.resourceInfo){this.parsedUrl.query&&this.parsedUrl.query.service&&(this.parsedUrl.query.SERVICE=this.parsedUrl.query.service,delete this.parsedUrl.query.service),this.parsedUrl.query&&this.parsedUrl.query.request&&(this.parsedUrl.query.REQUEST=this.parsedUrl.query.request,delete this.parsedUrl.query.request);const t=await(0,l.default)(this.parsedUrl.path,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...this.parsedUrl.query,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=J(t.data)}if(this.parsedUrl){const e=new f.R9(this.parsedUrl.path);"https"!==e.scheme||e.port&&"443"!==e.port||s.Z.request.httpsDomains.includes(e.host)||s.Z.request.httpsDomains.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 be(e,t,r){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 $;e.read(s,t),-1===(null==r?void 0:r.indexOf(e.name))&&(e.visible=!1),i.set(e.id,e)}const s=[];for(const t of e){const e=i.get(t.id);if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);r.sublayers||(r.sublayers=new o.Z),r.sublayers.unshift(e)}else s.unshift(e)}return s}(0,i._)([(0,g.Cb)({readOnly:!0})],ge.prototype,"allSublayers",void 0),(0,i._)([(0,g.Cb)({json:{type:Object,write:!0}})],ge.prototype,"customParameters",void 0),(0,i._)([(0,g.Cb)({json:{type:Object,write:!0}})],ge.prototype,"customLayerParameters",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:!0}})],ge.prototype,"copyright",void 0),(0,i._)([(0,g.Cb)()],ge.prototype,"description",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ge.prototype,"dimensions",void 0),(0,i._)([(0,g.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],ge.prototype,"fullExtent",void 0),(0,i._)([(0,v.r)(["web-document","portal-item"],"fullExtent",["extent"])],ge.prototype,"readFullExtentFromItemOrMap",null),(0,i._)([(0,_.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],ge.prototype,"writeFullExtent",null),(0,i._)([(0,g.Cb)()],ge.prototype,"fullExtents",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"featureInfoFormat",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"featureInfoUrl",void 0),(0,i._)([(0,g.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:fe.jsonValues,read:{reader:fe.read,source:"format"},write:{writer:fe.write,target:"format"}}}}})],ge.prototype,"imageFormat",void 0),(0,i._)([(0,v.r)("imageFormat",["supportedImageFormatTypes"])],ge.prototype,"readImageFormat",null),(0,i._)([(0,g.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],ge.prototype,"imageMaxHeight",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],ge.prototype,"imageMaxWidth",void 0),(0,i._)([(0,g.Cb)()],ge.prototype,"imageTransparency",void 0),(0,i._)([(0,g.Cb)(A.rn)],ge.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({type:["show","hide","hide-children"]})],ge.prototype,"listMode",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"mapUrl",void 0),(0,i._)([(0,g.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ge.prototype,"isReference",void 0),(0,i._)([(0,g.Cb)({type:["WMS"]})],ge.prototype,"operationalLayerType",void 0),(0,i._)([(0,g.Cb)()],ge.prototype,"resourceInfo",void 0),(0,i._)([(0,g.Cb)({type:I.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],ge.prototype,"spatialReference",void 0),(0,i._)([(0,v.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],ge.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i._)([(0,g.Cb)({type:[b.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],ge.prototype,"spatialReferences",void 0),(0,i._)([(0,_.c)(["web-document","portal-item"],"spatialReferences")],ge.prototype,"writeSpatialReferences",null),(0,i._)([(0,g.Cb)({type:o.Z.ofType($),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,x.d)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],ge.prototype,"sublayers",void 0),(0,i._)([(0,v.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],ge.prototype,"readSublayersFromItemOrMap",null),(0,i._)([(0,v.r)("service","sublayers",["layers"])],ge.prototype,"readSublayers",null),(0,i._)([(0,_.c)("sublayers",{layers:{type:[$]},visibleLayers:{type:[String]}})],ge.prototype,"writeSublayers",null),(0,i._)([(0,g.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],ge.prototype,"type",void 0),(0,i._)([(0,g.Cb)(A.HQ)],ge.prototype,"url",void 0),(0,i._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"version",void 0),ge=(0,i._)([(0,w.j)("esri.layers.WMSLayer")],ge);const ve=ge},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),s=r(40330),n=r(3172),a=r(66643),l=r(20102),o=r(92604),u=r(70586),p=r(95330),d=r(17452),c=r(5600),m=(r(67676),r(80442),r(75215),r(71715)),h=r(52011),y=r(30556),f=r(65587),g=r(15235),b=r(86082);const v=o.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.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 i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,p.D_)(e)||v.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,p.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const l=s.id.findServerInfo(this.url);if(null==l||!l.owningSystemUrl)return null;const o=`${l.owningSystemUrl}/sharing/rest`,p=f.Z.getDefault();if(p&&p.loaded&&(0,d.Fv)(p.restUrl)===(0,d.Fv)(o))return p.user;const c=`${o}/community/self`,m=(0,u.pC)(e)?e.signal:null,h=await(0,a.q6)((0,n.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:m}));return h.ok?b.default.fromJSON(h.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||f.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,c.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},_={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),l=(r(67676),r(80442),r(75215),r(52011)),o=r(80539),u=(r(26258),r(87538));const p=new o.Z,d=new WeakMap;function c(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function m(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:m(t,e%t):0}let h=0,y=0;function f(){const e=Date.now();for(const r of p)if(r.refreshInterval){var t;e-(null!=(t=d.get(r))?t:0)+5>=6e4*r.refreshInterval&&(d.set(r,e),r.refresh(e))}}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of p)t=m(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?d.get(r)||d.set(r,e):d.delete(r);if(t!==y){if(y=t,clearInterval(h),0===y)return void(h=0);h=setInterval(f,y)}}));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((()=>{!function(e){c(e)&&p.push(e)}(this)}),(()=>{}))}destroy(){c(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.declaredClass).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,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>c});var i=r(43697),s=r(92835),n=r(84552),a=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),o=r(52011),u=r(35671),p=r(30547),d=r(78981);const c=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=d.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,l.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,o.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 i.some((([t,r])=>e>=t&&e<=r))}},30547:(e,t,r)=>{r.d(t,{Z:()=>v});var i,s=r(43697),n=r(92835),a=r(84552),l=r(96674),o=r(22974),u=r(70586),p=r(5600),d=(r(75215),r(71715)),c=r(52011),m=r(30556);r(67676),r(80442);let h=i=class extends l.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new i({respectsDaylightSaving:e,timezone:t})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"respectsDaylightSaving",void 0),(0,s._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],h.prototype,"readRespectsDaylightSaving",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],h.prototype,"timezone",void 0),h=i=(0,s._)([(0,c.j)("esri.layers.support.TimeReference")],h);const y=h;var f,g=r(78981);let b=f=class extends l.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 n.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new a.Z({value:t.timeInterval,unit:g.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new a.Z({value:t.defaultTimeInterval,unit:g.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:n,fullTimeExtent:a,trackIdField:l,useTime:u}=this;return new f({cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:(0,o.d9)(n),fullTimeExtent:(0,o.d9)(a),trackIdField:l,useTime:u})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,s._)([(0,p.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,s._)([(0,d.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,s._)([(0,m.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,s._)([(0,p.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,s._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,s._)([(0,m.c)("interval")],b.prototype,"writeInterval",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,s._)([(0,p.Cb)({type:y,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=f=(0,s._)([(0,c.j)("esri.layers.support.TimeInfo")],b);const v=b},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 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6199],{10699:(e,t,r)=>{r.d(t,{I:()=>o});var s=r(43697),i=r(52011);let l=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+l++})}};return t=(0,s._)([(0,i.j)("esri.core.Identifiable")],t),t};let n=class extends(o(class{})){};n=(0,s._)([(0,i.j)("esri.core.Identifiable")],n)},16453:(e,t,r)=>{r.d(t,{R:()=>b,w:()=>w});var s=r(43697),i=r(15923),l=r(70586),o=r(41103),n=r(22974),a=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new p,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const s=this._originStores[r];s&&s.forEach(((s,i)=>{e&&e.has(i)||t.set(i,(0,n.d9)(s),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=a.s3.USER){let s=this._originStores[r];if(s||(s=new Map,this._originStores[r]=s),s.set(e,t),!this._values.has(e)||(0,l.j0)(this._propertyOriginMap.get(e))<=r){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),s!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const s=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 s}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],s=r&&r.get(e),i=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),i!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(50549),c=r(1153),h=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,l.j0)((0,c.vw)(this)),r=t.store,s=new p;t.store=s,(0,o.M)(t,r,s)}read(e,t){(0,u.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),s=(0,a.M9)(t);if("string"==typeof e)return r.get(e,s);const i={};return e.forEach((e=>{i[e]=r.get(e,s)})),i}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),s=(0,a.M9)(t),i=(0,c.vw)(this);let l;l="string"==typeof e?"*"===e?r.keys(s):[e]:e,l.forEach((e=>{i.invalidate(e),r.revert(e,s),i.commit(e)}))}};return t=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,c.vw)(e).store}let f=class extends(d(i.Z)){};f=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],f);var v=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return m(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,v.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=m(this),r=(0,a.M9)(e),s=t.keys(r);for(const e of s)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=m(this),s=(0,a.M9)(t),i=this.get(e);for(let t=s+1;t<a.kk;++t)r.delete(e,t);r.set(e,i,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function m(e){return(0,c.vw)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(b(i.Z)){};w=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],w)},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var s=r(43697),i=r(68773),l=(r(66577),r(3172)),o=r(20102),n=r(32448),a=r(10699),p=r(83379),u=r(92604),c=r(95330),h=r(17452),d=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),f=r(6570),v=r(82971);let g=0;const m=u.Z.getLogger("esri.layers.Layer");let b=class extends(n.Z.EventedMixin((0,a.I)(p.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,v.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=v.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,s=await r.e(3529).then(r.bind(r,63529));try{return await s.fromUrl(t)}catch(e){throw m.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},s=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await s.fromItem(t)}catch(e){const r=t&&t.portalItem,s=r&&r.id||"unset",l=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw m.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+l+"', id: '"+s+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,c.D_)(e)||u.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,h.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,l.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,d.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,s._)([(0,d.Cb)({type:f.Z})],b.prototype,"fullExtent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,s._)([(0,d.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,s._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,s._)([(0,d.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,s._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,s._)([(0,d.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,s._)([(0,d.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,s._)([(0,d.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,s._)([(0,d.Cb)({type:v.Z})],b.prototype,"spatialReference",void 0),(0,s._)([(0,d.Cb)({type:String})],b.prototype,"title",void 0),(0,s._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,s._)([(0,d.Cb)()],b.prototype,"url",void 0),(0,s._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,s._)([(0,y.j)("esri.layers.Layer")],b);const w=b},16199:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(43697),i=(r(66577),r(3172)),l=r(20102),o=r(16453),n=r(19153),a=r(17452),p=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),d=r(29600),y=r(71612),f=r(38009),v=r(16859),g=r(34760),m=r(72965),b=r(39450),w=r(11145),_=r(5833),S=r(6570),C=r(82971),O=r(13473);let I=class extends((0,y.h)((0,g.Q)((0,m.M)((0,f.q)((0,v.I)((0,o.R)(d.Z))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new S.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,C.Z.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=C.Z.WebMercator,this.subDomains=null,this.tileInfo=new w.Z({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new O.Z({x:-20037508.342787,y:20037508.342787,spatialReference:C.Z.WebMercator}),spatialReference:C.Z.WebMercator,lods:[new b.Z({level:0,scale:591657527.591555,resolution:156543.033928}),new b.Z({level:1,scale:295828763.795777,resolution:78271.5169639999}),new b.Z({level:2,scale:147914381.897889,resolution:39135.7584820001}),new b.Z({level:3,scale:73957190.948944,resolution:19567.8792409999}),new b.Z({level:4,scale:36978595.474472,resolution:9783.93962049996}),new b.Z({level:5,scale:18489297.737236,resolution:4891.96981024998}),new b.Z({level:6,scale:9244648.868618,resolution:2445.98490512499}),new b.Z({level:7,scale:4622324.434309,resolution:1222.99245256249}),new b.Z({level:8,scale:2311162.217155,resolution:611.49622628138}),new b.Z({level:9,scale:1155581.108577,resolution:305.748113140558}),new b.Z({level:10,scale:577790.554289,resolution:152.874056570411}),new b.Z({level:11,scale:288895.277144,resolution:76.4370282850732}),new b.Z({level:12,scale:144447.638572,resolution:38.2185141425366}),new b.Z({level:13,scale:72223.819286,resolution:19.1092570712683}),new b.Z({level:14,scale:36111.909643,resolution:9.55462853563415}),new b.Z({level:15,scale:18055.954822,resolution:4.77731426794937}),new b.Z({level:16,scale:9027.977411,resolution:2.38865713397468}),new b.Z({level:17,scale:4513.988705,resolution:1.19432856685505}),new b.Z({level:18,scale:2256.994353,resolution:.597164283559817}),new b.Z({level:19,scale:1128.497176,resolution:.298582141647617}),new b.Z({level:20,scale:564.248588,resolution:.14929107082380833}),new b.Z({level:21,scale:282.124294,resolution:.07464553541190416}),new b.Z({level:22,scale:141.062147,resolution:.03732276770595208}),new b.Z({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then((()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new a.R9(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new l.Z("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)}));return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||t.fullExtent&&t.fullExtent.spatialReference&&C.Z.fromJSON(t.fullExtent.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,s=new a.R9(t),i=s.scheme?s.scheme+"://":"//",l=i+s.authority+"/";if(s.authority.includes("{subDomain}")){if(r&&r.length>0&&s.authority.split(".").length>1)for(const t of r)e.push(i+s.authority.replace(/\{subDomain\}/gi,t)+"/")}else e.push(l);return e.map((e=>("/"!==e.charAt(e.length-1)&&(e+="/"),e)))}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new a.R9(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){e&&(0,a.oC)(e)&&(e="https:"+e),e&&(e=e.replace(/\{z\}/gi,"{level}").replace(/\{x\}/gi,"{col}").replace(/\{y\}/gi,"{row}"),e=(0,a.Fv)(e)),t.templateUrl=e}fetchTile(e,t,r,s={}){const{signal:l}=s,o=this.getTileUrl(e,t,r),n={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,i.default)(o,n).then((e=>e.data))}getTileUrl(e,t,r){const s=this.levelValues[e];return this.tileServers[t%this.tileServers.length]+(0,n.gx)(this.urlPath,{level:s,z:s,col:r,x:r,row:t,y:t})}};(0,s._)([(0,p.Cb)({type:String,value:"",json:{write:!0}})],I.prototype,"copyright",void 0),(0,s._)([(0,p.Cb)({type:S.Z,json:{write:!0},nonNullable:!0})],I.prototype,"fullExtent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1,write:!1}})],I.prototype,"legendEnabled",void 0),(0,s._)([(0,p.Cb)({type:["show","hide"]})],I.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)()],I.prototype,"levelValues",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],I.prototype,"isReference",void 0),(0,s._)([(0,p.Cb)({type:["WebTiledLayer"],value:"WebTiledLayer"})],I.prototype,"operationalLayerType",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1,write:!1}})],I.prototype,"popupEnabled",void 0),(0,s._)([(0,p.Cb)({type:C.Z})],I.prototype,"spatialReference",void 0),(0,s._)([(0,u.r)("spatialReference",["spatialReference","fullExtent.spatialReference"])],I.prototype,"readSpatialReference",null),(0,s._)([(0,p.Cb)({type:[String],json:{write:!0}})],I.prototype,"subDomains",void 0),(0,s._)([(0,p.Cb)({type:w.Z,json:{write:!0}})],I.prototype,"tileInfo",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],I.prototype,"tileServers",null),(0,s._)([(0,p.Cb)({json:{read:!1}})],I.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],I.prototype,"urlPath",null),(0,s._)([(0,p.Cb)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],I.prototype,"urlTemplate",void 0),(0,s._)([(0,u.r)("urlTemplate",["urlTemplate","templateUrl"])],I.prototype,"readUrlTemplate",null),(0,s._)([(0,h.c)("urlTemplate",{templateUrl:{type:String}})],I.prototype,"writeUrlTemplate",null),(0,s._)([(0,p.Cb)({type:_.B,json:{write:!0}})],I.prototype,"wmtsInfo",void 0),I=(0,s._)([(0,c.j)("esri.layers.WebTileLayer")],I);const Z=I},16859:(e,t,r)=>{r.d(t,{I:()=>w});var s=r(43697),i=r(40330),l=r(3172),o=r(66643),n=r(20102),a=r(92604),p=r(70586),u=r(95330),c=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),f=r(30556),v=r(65587),g=r(15235),m=r(86082);const b=a.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.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 s=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await s.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,u.D_)(e)||b.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,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const s=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(s)return s;const n=i.id.findServerInfo(this.url);if(null==n||!n.owningSystemUrl)return null;const a=`${n.owningSystemUrl}/sharing/rest`,u=v.Z.getDefault();if(u&&u.loaded&&(0,c.Fv)(u.restUrl)===(0,c.Fv)(a))return u.user;const h=`${a}/community/self`,d=(0,p.pC)(e)?e.signal:null,y=await(0,o.q6)((0,l.default)(h,{authMode:"no-prompt",query:{f:"json"},signal:d}));return y.ok?m.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,c.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new n.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 the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,h.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,s._)([(0,d.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,h.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,s._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var s=r(43697),i=r(92604),l=r(95330),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(80539),p=(r(26258),r(87538));const u=new a.Z,c=new WeakMap;function h(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let y=0,f=0;function v(){const e=Date.now();for(const r of u)if(r.refreshInterval){var t;e-(null!=(t=c.get(r))?t:0)+5>=6e4*r.refreshInterval&&(c.set(r,e),r.refresh(e))}}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of u)t=d(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==f){if(f=t,clearInterval(y),0===f)return void(y=0);y=setInterval(v,f)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,l.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){h(e)&&u.push(e)}(this)}),(()=>{}))}destroy(){h(this)&&u.includes(this)&&u.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,l.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{i.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,s._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,s._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,r)=>{r.d(t,{Z:()=>u});var s,i=r(43697),l=r(96674),o=r(5600),n=(r(67676),r(80442),r(75215)),a=r(52011);let p=s=class extends l.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"cols",void 0),(0,i._)([(0,o.Cb)({type:n.z8,json:{write:!0}})],p.prototype,"level",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"levelValue",void 0),(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"origin",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],p.prototype,"resolution",void 0),(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"rows",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],p.prototype,"scale",void 0),p=s=(0,i._)([(0,a.j)("esri.layers.support.LOD")],p);const u=p},11145:(e,t,r)=>{r.d(t,{Z:()=>O});var s,i=r(43697),l=r(35454),o=r(96674),n=r(70586),a=r(67900),p=r(5600),u=(r(67676),r(80442),r(75215)),c=r(71715),h=r(52011),d=r(30556),y=r(13473),f=r(82971),v=r(24470),g=r(8744),m=r(40488),b=r(39450);const w=new l.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let _=s=class extends o.wq{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:r,size:i=256,spatialReference:l=f.Z.WebMercator,numLODs:o=24}=e;if(!(0,g.JY)(l)){const e=[];if(r)for(let t=0;t<r.length;t++){const s=r[t];e.push({level:t,scale:s,resolution:s})}else{let t=5e-4;for(let r=o-1;r>=0;r--)e.unshift({level:r,scale:t,resolution:t}),t*=2}return new s({dpi:96,lods:e,origin:new y.Z(0,0,l),size:[i,i],spatialReference:l})}const n=(0,g.C5)(l),p=e.origin?new y.Z({x:e.origin.x,y:e.origin.y,spatialReference:l}):new y.Z(n?{x:n.origin[0],y:n.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),u=1/(39.37*(0,a.c9)(l)*96),c=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],s=t*u;c.push({level:e,scale:t,resolution:s})}else{let e=(0,g.sT)(l)?512/i*591657527.5917094:256/i*591657527.591555;const r=Math.ceil(o/t);c.push({level:0,scale:e,resolution:e*u});for(let s=1;s<r;s++){const r=e/2**t,i=r*u;c.push({level:s,scale:r,resolution:i}),e=r}}return new s({dpi:96,lods:c,origin:p,size:[i,i],spatialReference:l})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,g.C5)(e);return e.isWrappable&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return y.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const s=[];this._levelToLOD={},e&&(t=-1/0,r=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,this._levelToLOD[e.level]=e}))),this._set("scales",s),this._set("minScale",t),this._set("maxScale",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];{const r=Math.floor(e),s=r+1;return t[r]/(t[r]/t[s])**(e-r)}}scaleToZoom(e){const t=this.scales,r=t.length-1;let s=0;for(;s<r;s++){const r=t[s],i=t[s+1];if(r<=e)return s;if(i===e)return s+1;if(r>e&&i<e)return s+Math.log(r/e)/Math.log(r/i)}return s}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,s){const i=this.lodAt(e);if(!i)return null;let l,o;if("number"==typeof t)l=t,o=r;else if((0,g.fS)(t.spatialReference,this.spatialReference))l=t.x,o=t.y,s=r;else{const e=(0,m.iV)(t,this.spatialReference);if((0,n.Wi)(e))return null;l=e.x,o=e.y,s=r}const a=i.resolution*this.size[0],p=i.resolution*this.size[1];return s||(s={id:null,level:0,row:0,col:0,extent:(0,v.Ue)()}),s.level=e,s.row=Math.floor((this.origin.y-o)/p+.001),s.col=Math.floor((l-this.origin.x)/a+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return;const i=e.level-r.level,l=r.resolution*this.size[0]/2**i,o=r.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,v.Ue)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:r}=this.lodAt(t.level),s=r*this.size[0],i=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+s,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return s.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const r=[],i=this.lods.length;for(let e=0;e<i;e++){const s=this.lods[e],i=s.resolution*t;r.push(new b.Z({level:s.level,scale:s.scale,resolution:i}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const s=e[r];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var S,C;(0,i._)([(0,p.Cb)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,i._)([(0,p.Cb)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,i._)([(0,p.Cb)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"isWrappable",null),(0,i._)([(0,p.Cb)({type:y.Z,json:{write:!0}})],_.prototype,"origin",void 0),(0,i._)([(0,c.r)("origin")],_.prototype,"readOrigin",null),(0,i._)([(0,p.Cb)({type:[b.Z],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"minScale",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"maxScale",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"scales",void 0),(0,i._)([(0,p.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,i._)([(0,c.r)("size",["rows","cols"])],_.prototype,"readSize",null),(0,i._)([(0,d.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],_.prototype,"writeSize",null),(0,i._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=s=(0,i._)([(0,h.j)("esri.layers.support.TileInfo")],_),(C=(S=_||(_={})).ExtrapolateOptions||(S.ExtrapolateOptions={}))[C.NONE=0]="NONE",C[C.POWER_OF_TWO=1]="POWER_OF_TWO";const O=_},5833:(e,t,r)=>{r.d(t,{B:()=>p});var s,i=r(43697),l=r(96674),o=r(22974),n=r(5600),a=(r(75215),r(52011));let p=s=class extends l.wq{constructor(e){super(e)}clone(){return new s({customLayerParameters:(0,o.d9)(this.customLayerParameters),customParameters:(0,o.d9)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i._)([(0,n.Cb)({json:{type:Object,write:!0}})],p.prototype,"customLayerParameters",void 0),(0,i._)([(0,n.Cb)({json:{type:Object,write:!0}})],p.prototype,"customParameters",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"layerIdentifier",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"tileMatrixSet",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"url",void 0),p=s=(0,i._)([(0,a.j)("esri.layer.support.WMTSLayerInfo")],p)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6199],{10699:(e,t,r)=>{r.d(t,{I:()=>o});var s=r(43697),i=r(52011);let l=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+l++})}};return t=(0,s._)([(0,i.j)("esri.core.Identifiable")],t),t};let n=class extends(o(class{})){};n=(0,s._)([(0,i.j)("esri.core.Identifiable")],n)},16453:(e,t,r)=>{r.d(t,{R:()=>b,w:()=>w});var s=r(43697),i=r(15923),l=r(70586),o=r(41103),n=r(22974),a=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new p,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const s=this._originStores[r];s&&s.forEach(((s,i)=>{e&&e.has(i)||t.set(i,(0,n.d9)(s),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=a.s3.USER){let s=this._originStores[r];if(s||(s=new Map,this._originStores[r]=s),s.set(e,t),!this._values.has(e)||(0,l.j0)(this._propertyOriginMap.get(e))<=r){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),s!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const s=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 s}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],s=r&&r.get(e),i=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),i!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(50549),c=r(1153),h=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,l.j0)((0,c.vw)(this)),r=t.store,s=new p;t.store=s,(0,o.M)(t,r,s)}read(e,t){(0,u.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),s=(0,a.M9)(t);if("string"==typeof e)return r.get(e,s);const i={};return e.forEach((e=>{i[e]=r.get(e,s)})),i}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),s=(0,a.M9)(t),i=(0,c.vw)(this);let l;l="string"==typeof e?"*"===e?r.keys(s):[e]:e,l.forEach((e=>{i.invalidate(e),r.revert(e,s),i.commit(e)}))}};return t=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,c.vw)(e).store}let f=class extends(d(i.Z)){};f=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],f);var v=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return m(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,v.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=m(this),r=(0,a.M9)(e),s=t.keys(r);for(const e of s)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=m(this),s=(0,a.M9)(t),i=this.get(e);for(let t=s+1;t<a.kk;++t)r.delete(e,t);r.set(e,i,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function m(e){return(0,c.vw)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(b(i.Z)){};w=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],w)},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var s=r(43697),i=r(68773),l=(r(66577),r(3172)),o=r(20102),n=r(32448),a=r(10699),p=r(83379),u=r(92604),c=r(95330),h=r(17452),d=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),f=r(6570),v=r(82971);let g=0;const m=u.Z.getLogger("esri.layers.Layer");let b=class extends(n.Z.EventedMixin((0,a.I)(p.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,v.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=v.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,s=await r.e(3529).then(r.bind(r,63529));try{return await s.fromUrl(t)}catch(e){throw m.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},s=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await s.fromItem(t)}catch(e){const r=t&&t.portalItem,s=r&&r.id||"unset",l=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw m.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+l+"', id: '"+s+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,c.D_)(e)||u.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,h.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,l.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,d.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,s._)([(0,d.Cb)({type:f.Z})],b.prototype,"fullExtent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,s._)([(0,d.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,s._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,s._)([(0,d.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,s._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,s._)([(0,d.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,s._)([(0,d.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,s._)([(0,d.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,s._)([(0,d.Cb)({type:v.Z})],b.prototype,"spatialReference",void 0),(0,s._)([(0,d.Cb)({type:String})],b.prototype,"title",void 0),(0,s._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,s._)([(0,d.Cb)()],b.prototype,"url",void 0),(0,s._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,s._)([(0,y.j)("esri.layers.Layer")],b);const w=b},16199:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(43697),i=(r(66577),r(3172)),l=r(20102),o=r(16453),n=r(19153),a=r(17452),p=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),d=r(29600),y=r(71612),f=r(38009),v=r(16859),g=r(34760),m=r(72965),b=r(39450),w=r(11145),_=r(5833),S=r(6570),C=r(82971),O=r(13473);let I=class extends((0,y.h)((0,g.Q)((0,m.M)((0,f.q)((0,v.I)((0,o.R)(d.Z))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new S.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,C.Z.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=C.Z.WebMercator,this.subDomains=null,this.tileInfo=new w.Z({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new O.Z({x:-20037508.342787,y:20037508.342787,spatialReference:C.Z.WebMercator}),spatialReference:C.Z.WebMercator,lods:[new b.Z({level:0,scale:591657527.591555,resolution:156543.033928}),new b.Z({level:1,scale:295828763.795777,resolution:78271.5169639999}),new b.Z({level:2,scale:147914381.897889,resolution:39135.7584820001}),new b.Z({level:3,scale:73957190.948944,resolution:19567.8792409999}),new b.Z({level:4,scale:36978595.474472,resolution:9783.93962049996}),new b.Z({level:5,scale:18489297.737236,resolution:4891.96981024998}),new b.Z({level:6,scale:9244648.868618,resolution:2445.98490512499}),new b.Z({level:7,scale:4622324.434309,resolution:1222.99245256249}),new b.Z({level:8,scale:2311162.217155,resolution:611.49622628138}),new b.Z({level:9,scale:1155581.108577,resolution:305.748113140558}),new b.Z({level:10,scale:577790.554289,resolution:152.874056570411}),new b.Z({level:11,scale:288895.277144,resolution:76.4370282850732}),new b.Z({level:12,scale:144447.638572,resolution:38.2185141425366}),new b.Z({level:13,scale:72223.819286,resolution:19.1092570712683}),new b.Z({level:14,scale:36111.909643,resolution:9.55462853563415}),new b.Z({level:15,scale:18055.954822,resolution:4.77731426794937}),new b.Z({level:16,scale:9027.977411,resolution:2.38865713397468}),new b.Z({level:17,scale:4513.988705,resolution:1.19432856685505}),new b.Z({level:18,scale:2256.994353,resolution:.597164283559817}),new b.Z({level:19,scale:1128.497176,resolution:.298582141647617}),new b.Z({level:20,scale:564.248588,resolution:.14929107082380833}),new b.Z({level:21,scale:282.124294,resolution:.07464553541190416}),new b.Z({level:22,scale:141.062147,resolution:.03732276770595208}),new b.Z({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then((()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new a.R9(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new l.Z("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)}));return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||t.fullExtent&&t.fullExtent.spatialReference&&C.Z.fromJSON(t.fullExtent.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,s=new a.R9(t),i=s.scheme?s.scheme+"://":"//",l=i+s.authority+"/";if(s.authority.includes("{subDomain}")){if(r&&r.length>0&&s.authority.split(".").length>1)for(const t of r)e.push(i+s.authority.replace(/\{subDomain\}/gi,t)+"/")}else e.push(l);return e.map((e=>("/"!==e.charAt(e.length-1)&&(e+="/"),e)))}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new a.R9(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){e&&(0,a.oC)(e)&&(e="https:"+e),e&&(e=e.replace(/\{z\}/gi,"{level}").replace(/\{x\}/gi,"{col}").replace(/\{y\}/gi,"{row}"),e=(0,a.Fv)(e)),t.templateUrl=e}fetchTile(e,t,r,s={}){const{signal:l}=s,o=this.getTileUrl(e,t,r),n={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,i.default)(o,n).then((e=>e.data))}getTileUrl(e,t,r){const s=this.levelValues[e];return this.tileServers[t%this.tileServers.length]+(0,n.gx)(this.urlPath,{level:s,z:s,col:r,x:r,row:t,y:t})}};(0,s._)([(0,p.Cb)({type:String,value:"",json:{write:!0}})],I.prototype,"copyright",void 0),(0,s._)([(0,p.Cb)({type:S.Z,json:{write:!0},nonNullable:!0})],I.prototype,"fullExtent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1,write:!1}})],I.prototype,"legendEnabled",void 0),(0,s._)([(0,p.Cb)({type:["show","hide"]})],I.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)()],I.prototype,"levelValues",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],I.prototype,"isReference",void 0),(0,s._)([(0,p.Cb)({type:["WebTiledLayer"],value:"WebTiledLayer"})],I.prototype,"operationalLayerType",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1,write:!1}})],I.prototype,"popupEnabled",void 0),(0,s._)([(0,p.Cb)({type:C.Z})],I.prototype,"spatialReference",void 0),(0,s._)([(0,u.r)("spatialReference",["spatialReference","fullExtent.spatialReference"])],I.prototype,"readSpatialReference",null),(0,s._)([(0,p.Cb)({type:[String],json:{write:!0}})],I.prototype,"subDomains",void 0),(0,s._)([(0,p.Cb)({type:w.Z,json:{write:!0}})],I.prototype,"tileInfo",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],I.prototype,"tileServers",null),(0,s._)([(0,p.Cb)({json:{read:!1}})],I.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],I.prototype,"urlPath",null),(0,s._)([(0,p.Cb)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],I.prototype,"urlTemplate",void 0),(0,s._)([(0,u.r)("urlTemplate",["urlTemplate","templateUrl"])],I.prototype,"readUrlTemplate",null),(0,s._)([(0,h.c)("urlTemplate",{templateUrl:{type:String}})],I.prototype,"writeUrlTemplate",null),(0,s._)([(0,p.Cb)({type:_.B,json:{write:!0}})],I.prototype,"wmtsInfo",void 0),I=(0,s._)([(0,c.j)("esri.layers.WebTileLayer")],I);const Z=I},16859:(e,t,r)=>{r.d(t,{I:()=>w});var s=r(43697),i=r(40330),l=r(3172),o=r(66643),n=r(20102),a=r(92604),p=r(70586),u=r(95330),c=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),f=r(30556),v=r(65587),g=r(15235),m=r(86082);const b=a.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.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 s=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await s.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,u.D_)(e)||b.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,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const s=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(s)return s;const n=i.id.findServerInfo(this.url);if(null==n||!n.owningSystemUrl)return null;const a=`${n.owningSystemUrl}/sharing/rest`,u=v.Z.getDefault();if(u&&u.loaded&&(0,c.Fv)(u.restUrl)===(0,c.Fv)(a))return u.user;const h=`${a}/community/self`,d=(0,p.pC)(e)?e.signal:null,y=await(0,o.q6)((0,l.default)(h,{authMode:"no-prompt",query:{f:"json"},signal:d}));return y.ok?m.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,c.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new n.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,s._)([(0,h.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,s._)([(0,d.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,h.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,s._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var s=r(43697),i=r(92604),l=r(95330),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(80539),p=(r(26258),r(87538));const u=new a.Z,c=new WeakMap;function h(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let y=0,f=0;function v(){const e=Date.now();for(const r of u)if(r.refreshInterval){var t;e-(null!=(t=c.get(r))?t:0)+5>=6e4*r.refreshInterval&&(c.set(r,e),r.refresh(e))}}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of u)t=d(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==f){if(f=t,clearInterval(y),0===f)return void(y=0);y=setInterval(v,f)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,l.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){h(e)&&u.push(e)}(this)}),(()=>{}))}destroy(){h(this)&&u.includes(this)&&u.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,l.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{i.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,s._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,s._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,r)=>{r.d(t,{Z:()=>u});var s,i=r(43697),l=r(96674),o=r(5600),n=(r(67676),r(80442),r(75215)),a=r(52011);let p=s=class extends l.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"cols",void 0),(0,i._)([(0,o.Cb)({type:n.z8,json:{write:!0}})],p.prototype,"level",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"levelValue",void 0),(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"origin",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],p.prototype,"resolution",void 0),(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"rows",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],p.prototype,"scale",void 0),p=s=(0,i._)([(0,a.j)("esri.layers.support.LOD")],p);const u=p},11145:(e,t,r)=>{r.d(t,{Z:()=>O});var s,i=r(43697),l=r(35454),o=r(96674),n=r(70586),a=r(67900),p=r(5600),u=(r(67676),r(80442),r(75215)),c=r(71715),h=r(52011),d=r(30556),y=r(13473),f=r(82971),v=r(24470),g=r(8744),m=r(40488),b=r(39450);const w=new l.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let _=s=class extends o.wq{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:r,size:i=256,spatialReference:l=f.Z.WebMercator,numLODs:o=24}=e;if(!(0,g.JY)(l)){const e=[];if(r)for(let t=0;t<r.length;t++){const s=r[t];e.push({level:t,scale:s,resolution:s})}else{let t=5e-4;for(let r=o-1;r>=0;r--)e.unshift({level:r,scale:t,resolution:t}),t*=2}return new s({dpi:96,lods:e,origin:new y.Z(0,0,l),size:[i,i],spatialReference:l})}const n=(0,g.C5)(l),p=e.origin?new y.Z({x:e.origin.x,y:e.origin.y,spatialReference:l}):new y.Z(n?{x:n.origin[0],y:n.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),u=1/(39.37*(0,a.c9)(l)*96),c=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],s=t*u;c.push({level:e,scale:t,resolution:s})}else{let e=(0,g.sT)(l)?512/i*591657527.5917094:256/i*591657527.591555;const r=Math.ceil(o/t);c.push({level:0,scale:e,resolution:e*u});for(let s=1;s<r;s++){const r=e/2**t,i=r*u;c.push({level:s,scale:r,resolution:i}),e=r}}return new s({dpi:96,lods:c,origin:p,size:[i,i],spatialReference:l})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,g.C5)(e);return e.isWrappable&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return y.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const s=[];this._levelToLOD={},e&&(t=-1/0,r=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,this._levelToLOD[e.level]=e}))),this._set("scales",s),this._set("minScale",t),this._set("maxScale",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];{const r=Math.floor(e),s=r+1;return t[r]/(t[r]/t[s])**(e-r)}}scaleToZoom(e){const t=this.scales,r=t.length-1;let s=0;for(;s<r;s++){const r=t[s],i=t[s+1];if(r<=e)return s;if(i===e)return s+1;if(r>e&&i<e)return s+Math.log(r/e)/Math.log(r/i)}return s}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,s){const i=this.lodAt(e);if(!i)return null;let l,o;if("number"==typeof t)l=t,o=r;else if((0,g.fS)(t.spatialReference,this.spatialReference))l=t.x,o=t.y,s=r;else{const e=(0,m.iV)(t,this.spatialReference);if((0,n.Wi)(e))return null;l=e.x,o=e.y,s=r}const a=i.resolution*this.size[0],p=i.resolution*this.size[1];return s||(s={id:null,level:0,row:0,col:0,extent:(0,v.Ue)()}),s.level=e,s.row=Math.floor((this.origin.y-o)/p+.001),s.col=Math.floor((l-this.origin.x)/a+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return;const i=e.level-r.level,l=r.resolution*this.size[0]/2**i,o=r.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,v.Ue)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:r}=this.lodAt(t.level),s=r*this.size[0],i=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+s,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return s.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const r=[],i=this.lods.length;for(let e=0;e<i;e++){const s=this.lods[e],i=s.resolution*t;r.push(new b.Z({level:s.level,scale:s.scale,resolution:i}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const s=e[r];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var S,C;(0,i._)([(0,p.Cb)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,i._)([(0,p.Cb)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,i._)([(0,p.Cb)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"isWrappable",null),(0,i._)([(0,p.Cb)({type:y.Z,json:{write:!0}})],_.prototype,"origin",void 0),(0,i._)([(0,c.r)("origin")],_.prototype,"readOrigin",null),(0,i._)([(0,p.Cb)({type:[b.Z],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"minScale",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"maxScale",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"scales",void 0),(0,i._)([(0,p.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,i._)([(0,c.r)("size",["rows","cols"])],_.prototype,"readSize",null),(0,i._)([(0,d.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],_.prototype,"writeSize",null),(0,i._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=s=(0,i._)([(0,h.j)("esri.layers.support.TileInfo")],_),(C=(S=_||(_={})).ExtrapolateOptions||(S.ExtrapolateOptions={}))[C.NONE=0]="NONE",C[C.POWER_OF_TWO=1]="POWER_OF_TWO";const O=_},5833:(e,t,r)=>{r.d(t,{B:()=>p});var s,i=r(43697),l=r(96674),o=r(22974),n=r(5600),a=(r(75215),r(52011));let p=s=class extends l.wq{constructor(e){super(e)}clone(){return new s({customLayerParameters:(0,o.d9)(this.customLayerParameters),customParameters:(0,o.d9)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i._)([(0,n.Cb)({json:{type:Object,write:!0}})],p.prototype,"customLayerParameters",void 0),(0,i._)([(0,n.Cb)({json:{type:Object,write:!0}})],p.prototype,"customParameters",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"layerIdentifier",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"tileMatrixSet",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"url",void 0),p=s=(0,i._)([(0,a.j)("esri.layer.support.WMTSLayerInfo")],p)}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 31df729c17470245288c.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[280],{77210:(t,e,r)=>{r.d(e,{YY:()=>o});const n="undefined"!=typeof window?window:{},i=(n.document,n.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,r,n)=>t.addEventListener(e,r,n),rel:(t,e,r,n)=>t.removeEventListener(e,r,n),ce:(t,e)=>new CustomEvent(t,e)}),o=(new WeakMap,t=>i.$resourcesUrl$=t);new WeakMap,new Map},44291:(t,e,r)=>{r.d(e,{v:()=>j});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=n.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},l=function(t,e,r){var n=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&a.call(t,i)&&n.unshift(t),n.filter(r)},c=function t(e,r,n){for(var o=[],s=Array.from(e);s.length;){var l=s.shift();if("SLOT"===l.tagName){var c=l.assignedElements(),u=t(c.length?c:l.children,!0,n);n.flatten?o.push.apply(o,u):o.push({scope:l,candidates:u})}else{a.call(l,i)&&n.filter(l)&&(r||!e.includes(l))&&o.push(l);var d=l.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(l);if(d){var f=t(!0===d?l.children:d.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scope:l,candidates:f})}else s.unshift.apply(s,l.children)}}return o},u=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},f=function(t){return"INPUT"===t.tagName},p=function(t){var e=t.getBoundingClientRect(),r=e.width,n=e.height;return 0===r&&0===n},g=function(t,e){return!(e.disabled||function(t){return f(t)&&"hidden"===t.type}(e)||function(t,e){var r=e.displayCheck,n=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=a.call(t,"details>summary:first-of-type")?t.parentElement:t;if(a.call(i,"details:not([open]) *"))return!0;if(!r||"full"===r){if("function"==typeof n){for(var o=t;t;){var l=t.parentElement,c=s(t);if(l&&!l.shadowRoot&&!0===n(l))return p(t);t=t.assignedSlot?t.assignedSlot:l||c===t.ownerDocument?l:c.host}t=o}return!t.getClientRects().length}return"non-zero-area"===r&&p(t)}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var r=0;r<e.children.length;r++){var n=e.children.item(r);if("LEGEND"===n.tagName)return!!a.call(e,"fieldset[disabled] *")||!n.contains(t)}return!0}e=e.parentElement}return!1}(e))},b=function(t,e){return!(function(t){return function(t){return f(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,r=t.form||s(t),n=function(t){return r.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=n(window.CSS.escape(t.name));else try{e=n(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var i=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]}(e,t.form);return!i||i===t}(t)}(e)||u(e)<0||!g(t,e))},h=function t(e){var r=[],n=[];return e.forEach((function(e,i){var o=!!e.scope,a=o?e.scope:e,s=u(a,o),l=o?t(e.candidates):a;0===s?o?r.push.apply(r,l):r.push(a):n.push({documentOrder:i,tabIndex:s,item:e,isScope:o,content:l})})),n.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(r)},m=function(t,e){var r;return r=(e=e||{}).getShadowRoot?c([t],e.includeContainer,{filter:b.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e)),h(r)},v=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==a.call(t,i)&&b(e,t)},y=n.concat("iframe").join(","),w=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==a.call(t,y)&&g(e,t)};function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){A(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O,T=(O=[],{activateTrap:function(t){if(O.length>0){var e=O[O.length-1];e!==t&&e.pause()}var r=O.indexOf(t);-1===r||O.splice(r,1),O.push(t)},deactivateTrap:function(t){var e=O.indexOf(t);-1!==e&&O.splice(e,1),O.length>0&&O[O.length-1].unpause()}}),S=function(t){return setTimeout(t,0)},E=function(t,e){var r=-1;return t.every((function(t,n){return!e(t)||(r=n,!1)})),r},I=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t?t.apply(void 0,r):t},C=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},j=function(t,e){var r,n=(null==e?void 0:e.document)||document,i=x({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(t,e,r){return t&&void 0!==t[e]?t[e]:i[r||e]},s=function(t){return o.containerGroups.findIndex((function(e){var r=e.container,n=e.tabbableNodes;return r.contains(t)||n.find((function(e){return e===t}))}))},u=function(t){var e=i[t];if("function"==typeof e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];e=e.apply(void 0,o)}if(!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=n.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},d=function(){var t=u("initialFocus");if(!1===t)return!1;if(void 0===t)if(s(n.activeElement)>=0)t=n.activeElement;else{var e=o.tabbableGroups[0];t=e&&e.firstTabbableNode||u("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},f=function(){if(o.containerGroups=o.containers.map((function(t){var e,r,n=m(t,i.tabbableOptions),o=(e=t,(r=(r=i.tabbableOptions)||{}).getShadowRoot?c([e],r.includeContainer,{filter:g.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):l(e,r.includeContainer,g.bind(null,r)));return{container:t,tabbableNodes:n,focusableNodes:o,firstTabbableNode:n.length>0?n[0]:null,lastTabbableNode:n.length>0?n[n.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=o.findIndex((function(e){return e===t}));if(!(r<0))return e?o.slice(r+1).find((function(t){return v(t,i.tabbableOptions)})):o.slice(0,r).reverse().find((function(t){return v(t,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function t(e){!1!==e&&e!==n.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(d()))},b=function(t){var e=u("setReturnFocus",t);return e||!1!==e&&t},h=function(t){var e=C(t);s(e)>=0||(I(i.clickOutsideDeactivates,t)?r.deactivate({returnFocus:i.returnFocusOnDeactivate&&!w(e,i.tabbableOptions)}):I(i.allowOutsideClick,t)||t.preventDefault())},y=function(t){var e=C(t),r=s(e)>=0;r||e instanceof Document?r&&(o.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),p(o.mostRecentlyFocusedNode||d()))},k=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==I(i.escapeDeactivates,t))return t.preventDefault(),void r.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=C(t);f();var r=null;if(o.tabbableGroups.length>0){var n=s(e),a=n>=0?o.containerGroups[n]:void 0;if(n<0)r=t.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var l=E(o.tabbableGroups,(function(t){var r=t.firstTabbableNode;return e===r}));if(l<0&&(a.container===e||w(e,i.tabbableOptions)&&!v(e,i.tabbableOptions)&&!a.nextTabbableNode(e,!1))&&(l=n),l>=0){var c=0===l?o.tabbableGroups.length-1:l-1;r=o.tabbableGroups[c].lastTabbableNode}}else{var d=E(o.tabbableGroups,(function(t){var r=t.lastTabbableNode;return e===r}));if(d<0&&(a.container===e||w(e,i.tabbableOptions)&&!v(e,i.tabbableOptions)&&!a.nextTabbableNode(e))&&(d=n),d>=0){var g=d===o.tabbableGroups.length-1?0:d+1;r=o.tabbableGroups[g].firstTabbableNode}}}else r=u("fallbackFocus");r&&(t.preventDefault(),p(r))}(t)},A=function(t){var e=C(t);s(e)>=0||I(i.clickOutsideDeactivates,t)||I(i.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},O=function(){if(o.active)return T.activateTrap(r),o.delayInitialFocusTimer=i.delayInitialFocus?S((function(){p(d())})):p(d()),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",h,{capture:!0,passive:!1}),n.addEventListener("touchstart",h,{capture:!0,passive:!1}),n.addEventListener("click",A,{capture:!0,passive:!1}),n.addEventListener("keydown",k,{capture:!0,passive:!1}),r},j=function(){if(o.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",h,!0),n.removeEventListener("touchstart",h,!0),n.removeEventListener("click",A,!0),n.removeEventListener("keydown",k,!0),r};return(r={get active(){return o.active},get paused(){return o.paused},activate:function(t){if(o.active)return this;var e=a(t,"onActivate"),r=a(t,"onPostActivate"),i=a(t,"checkCanFocusTrap");i||f(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,e&&e();var s=function(){i&&f(),O(),r&&r()};return i?(i(o.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(t){if(!o.active)return this;var e=x({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},t);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,j(),o.active=!1,o.paused=!1,T.deactivateTrap(r);var n=a(e,"onDeactivate"),s=a(e,"onPostDeactivate"),l=a(e,"checkCanReturnFocus"),c=a(e,"returnFocus","returnFocusOnDeactivate");n&&n();var u=function(){S((function(){c&&p(b(o.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(b(o.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,j()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,f(),O(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return o.containers=e.map((function(t){return"string"==typeof t?n.querySelector(t):t})),o.active&&f(),this}}).updateContainerElements(t),r}},8728:(t,e,r)=>{r.d(e,{Z:()=>dt});var n,i,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=s.call(Object),u=a.toString,d=(n=Object.getPrototypeOf,i=Object,function(t){return n(i(t))}),f={exports:{}},p={},g={exports:{}},b={};function h(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var m=/javascript\s*\:/gim;b.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},b.getDefaultWhiteList=h,b.onAttr=function(t,e,r){},b.onIgnoreAttr=function(t,e,r){},b.safeAttrValue=function(t,e){return m.test(e)?"":e};var v=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},y=function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")},w=b,k=function(t,e){";"!==(t=y(t))[t.length-1]&&(t+=";");var r=t.length,n=!1,i=0,o=0,a="";function s(){if(!n){var r=v(t.slice(i,o)),s=r.indexOf(":");if(-1!==s){var l=v(r.slice(0,s)),c=v(r.slice(s+1));if(l){var u=e(i,a.length,l,c,r);u&&(a+=u+"; ")}}}i=o+1}for(;o<r;o++){var l=t[o];if("/"===l&&"*"===t[o+1]){var c=t.indexOf("*/",o+2);if(-1===c)break;i=(o=c+1)+1,n=!1}else"("===l?n=!0:")"===l?n=!1:";"===l?n||s():"\n"===l&&s()}return v(a)};function x(t){return null==t}function A(t){(t=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{})).whiteList=t.whiteList||w.whiteList,t.onAttr=t.onAttr||w.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||w.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||w.safeAttrValue,this.options=t}A.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,r=e.whiteList,n=e.onAttr,i=e.onIgnoreAttr,o=e.safeAttrValue;return k(t,(function(t,e,a,s,l){var c=r[a],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(s):c instanceof RegExp&&(u=c.test(s)),!0!==u&&(u=!1),s=o(a,s)){var d,f={position:e,sourcePosition:t,source:l,isWhite:u};return u?x(d=n(a,s,f))?a+":"+s:d:x(d=i(a,s,f))?void 0:d}}))};var O=A;!function(t,e){var r=b,n=O;for(var i in(e=t.exports=function(t,e){return new n(e).process(t)}).FilterCSS=n,r)e[i]=r[i]}(g,g.exports);var T={indexOf:function(t,e){var r,n;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var n,i;if(Array.prototype.forEach)return t.forEach(e,r);for(n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}},S=g.exports.FilterCSS,E=g.exports.getDefaultWhiteList,I=T;var C=new S;function j(t){return t.replace(F,"&lt;").replace(L,"&gt;")}var F=/</g,L=/>/g,N=/"/g,D=/&quot;/g,z=/&#([a-zA-Z0-9]*);?/gim,R=/&colon;?/gim,P=/&newline;?/gim,V=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,G=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,B=/u\s*r\s*l\s*\(.*/gi;function W(t){return t.replace(N,"&quot;")}function q(t){return t.replace(D,'"')}function $(t){return t.replace(z,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function U(t){return t.replace(R,":").replace(P," ")}function H(t){for(var e="",r=0,n=t.length;r<n;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return I.trim(e)}function M(t){return H(t=U(t=$(t=q(t))))}function _(t){return j(t=W(t))}p.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},p.getDefaultWhiteList=function(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}},p.onTag=function(t,e,r){},p.onIgnoreTag=function(t,e,r){},p.onTagAttr=function(t,e,r){},p.onIgnoreTagAttr=function(t,e,r){},p.safeAttrValue=function(t,e,r,n){if(r=M(r),"href"===e||"src"===e){if("#"===(r=I.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===e){if(V.lastIndex=0,V.test(r))return""}else if("style"===e){if(G.lastIndex=0,G.test(r))return"";if(B.lastIndex=0,B.test(r)&&(V.lastIndex=0,V.test(r)))return"";!1!==n&&(r=(n=n||C).process(r))}return _(r)},p.escapeHtml=j,p.escapeQuote=W,p.unescapeQuote=q,p.escapeHtmlEntities=$,p.escapeDangerHtml5Entities=U,p.clearNonPrintableCharacter=H,p.friendlyAttrValue=M,p.escapeAttrValue=_,p.onIgnoreTagStripAll=function(){return""},p.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var r=!Array.isArray(t),n=[],i=!1;return{onIgnoreTag:function(o,a,s){if(function(e){return!!r||-1!==I.indexOf(t,e)}(o)){if(s.isClosing){var l="[/removed]",c=s.position+l.length;return n.push([!1!==i?i:s.position,c]),i=!1,l}return i||(i=s.position),"[removed]"}return e(o,a,s)},remove:function(t){var e="",r=0;return I.forEach(n,(function(n){e+=t.slice(r,n[0]),r=n[1]})),e+=t.slice(r)}}},p.stripCommentTag=function(t){for(var e="",r=0;r<t.length;){var n=t.indexOf("\x3c!--",r);if(-1===n){e+=t.slice(r);break}e+=t.slice(r,n);var i=t.indexOf("--\x3e",n);if(-1===i)break;r=i+3}return e},p.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)}))).join("")},p.cssFilter=C,p.getDefaultCSSWhiteList=E;var X={},Y=T;function Z(t){var e=Y.spaceIndex(t);if(-1===e)var r=t.slice(1,-1);else r=t.slice(1,e+1);return"/"===(r=Y.trim(r).toLowerCase()).slice(0,1)&&(r=r.slice(1)),"/"===r.slice(-1)&&(r=r.slice(0,-1)),r}function K(t){return"</"===t.slice(0,2)}var Q=/[^a-zA-Z0-9_:\.\-]/gim;function J(t,e){for(;e<t.length;e++){var r=t[e];if(" "!==r)return"="===r?e:-1}}function tt(t,e){for(;e>0;e--){var r=t[e];if(" "!==r)return"="===r?e:-1}}function et(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}X.parseTag=function(t,e,r){var n="",i=0,o=!1,a=!1,s=0,l=t.length,c="",u="";t:for(s=0;s<l;s++){var d=t.charAt(s);if(!1===o){if("<"===d){o=s;continue}}else if(!1===a){if("<"===d){n+=r(t.slice(i,s)),o=s,i=s;continue}if(">"===d){n+=r(t.slice(i,o)),c=Z(u=t.slice(o,s+1)),n+=e(o,n.length,c,u,K(u)),i=s+1,o=!1;continue}if('"'===d||"'"===d)for(var f=1,p=t.charAt(s-f);""===p.trim()||"="===p;){if("="===p){a=d;continue t}p=t.charAt(s-++f)}}else if(d===a){a=!1;continue}}return i<t.length&&(n+=r(t.substr(i))),n},X.parseAttr=function(t,e){var r=0,n=[],i=!1,o=t.length;function a(t,r){if(!((t=(t=Y.trim(t)).replace(Q,"").toLowerCase()).length<1)){var i=e(t,r||"");i&&n.push(i)}}for(var s=0;s<o;s++){var l,c=t.charAt(s);if(!1!==i||"="!==c)if(!1===i||s!==r||'"'!==c&&"'"!==c||"="!==t.charAt(s-1)){if(/\s|\n|\t/.test(c)){if(t=t.replace(/\s|\n|\t/g," "),!1===i){if(-1===(l=J(t,s))){a(Y.trim(t.slice(r,s))),i=!1,r=s+1;continue}s=l-1;continue}if(-1===(l=tt(t,s-1))){a(i,et(Y.trim(t.slice(r,s)))),i=!1,r=s+1;continue}}}else{if(-1===(l=t.indexOf(c,s+1)))break;a(i,Y.trim(t.slice(r+1,l))),i=!1,r=(s=l)+1}else i=t.slice(r,s),r=s+1}return r<t.length&&(!1===i?a(t.slice(r)):a(i,et(Y.trim(t.slice(r))))),Y.trim(n.join(" "))};var rt=g.exports.FilterCSS,nt=p,it=X,ot=it.parseTag,at=it.parseAttr,st=T;function lt(t){return null==t}function ct(t){(t=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=nt.onIgnoreTagStripAll),t.whiteList=t.whiteList||t.allowList||nt.whiteList,t.onTag=t.onTag||nt.onTag,t.onTagAttr=t.onTagAttr||nt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||nt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||nt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||nt.safeAttrValue,t.escapeHtml=t.escapeHtml||nt.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new rt(t.css))}ct.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,r=e.whiteList,n=e.onTag,i=e.onIgnoreTag,o=e.onTagAttr,a=e.onIgnoreTagAttr,s=e.safeAttrValue,l=e.escapeHtml,c=this.cssFilter;e.stripBlankChar&&(t=nt.stripBlankChar(t)),e.allowCommentTag||(t=nt.stripCommentTag(t));var u=!1;e.stripIgnoreTagBody&&(u=nt.StripTagBody(e.stripIgnoreTagBody,i),i=u.onIgnoreTag);var d=ot(t,(function(t,e,u,d,f){var p,g={sourcePosition:t,position:e,isClosing:f,isWhite:r.hasOwnProperty(u)};if(!lt(p=n(u,d,g)))return p;if(g.isWhite){if(g.isClosing)return"</"+u+">";var b=function(t){var e=st.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var r="/"===(t=st.trim(t.slice(e+1,-1)))[t.length-1];return r&&(t=st.trim(t.slice(0,-1))),{html:t,closing:r}}(d),h=r[u],m=at(b.html,(function(t,e){var r,n=-1!==st.indexOf(h,t);return lt(r=o(u,t,e,n))?n?(e=s(u,t,e,c))?t+'="'+e+'"':t:lt(r=a(u,t,e,n))?void 0:r:r}));return d="<"+u,m&&(d+=" "+m),b.closing&&(d+=" /"),d+">"}return lt(p=i(u,d,g))?l(d):p}),l);return u&&(d=u.remove(d)),d};var ut=ct;!function(t,e){var r=p,n=X,i=ut;function o(t,e){return new i(e).process(t)}for(var a in(e=t.exports=o).filterXSS=o,e.FilterXSS=i,r)e[a]=r[a];for(var a in n)e[a]=n[a];"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}(f,f.exports);var dt=function(){function t(t,e){var r,n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(t,e,r,i){return"a"===t&&"href"===e||("img"===t||"source"===t)&&"src"===e?n.sanitizeUrl(r):f.exports.safeAttrValue(t,e,r,i)}},t&&!e?r=t:t&&e?(r=Object.create(this.arcgisFilterOptions),Object.keys(t).forEach((function(e){"whiteList"===e?r.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]):r[e]=t[e]}))):(r=Object.create(this.arcgisFilterOptions)).whiteList=this.arcgisWhiteList,this.xssFilterOptions=r,this._xssFilter=new f.exports.FilterXSS(r)}return t.prototype.sanitize=function(t,e){switch(void 0===e&&(e={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,e);default:if(e.allowUndefined&&void 0===t)return;return null}},t.prototype.sanitizeUrl=function(t,e){var r=(null!=e?e:{}).isProtocolRequired,n=void 0===r||r,i=this._trim(t.substring(0,t.indexOf(":"))),o="/"===t,a=/^#/.test(t),s=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return o||a||s?f.exports.escapeAttrValue(t):i||n?"":f.exports.escapeAttrValue("https://".concat(t))},t.prototype.sanitizeHTMLAttribute=function(t,e,r,n){return"function"==typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(t,e,r,n):f.exports.safeAttrValue(t,e,r,n)},t.prototype.validate=function(t,e){void 0===e&&(e={});var r=this.sanitize(t,e);return{isValid:t===r,sanitized:r}},t.prototype._extendObjectOfArrays=function(t){var e={};return t.forEach((function(t){Object.keys(t).forEach((function(r){Array.isArray(t[r])&&Array.isArray(e[r])?e[r]=e[r].concat(t[r]):e[r]=t[r]}))})),e},t.prototype._iterateOverObject=function(t,e){var r=this;void 0===e&&(e={});try{var n=!1,i=void 0;if(Array.isArray(t))i=t.reduce((function(t,i){var o=r.validate(i,e);return o.isValid?t.concat([i]):(n=!0,t.concat([o.sanitized]))}),[]);else{if(!function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=u.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=d(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}(t)){if(e.allowUndefined&&void 0===t)return;return null}i=Object.keys(t).reduce((function(i,o){var a=t[o],s=r.validate(a,e);return s.isValid?i[o]=a:(n=!0,i[o]=s.sanitized),i}),{})}return n?i:t}catch(t){return null}},t.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},t}()}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * focus-trap 6.8.1
2
+ * focus-trap 6.9.0
3
3
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
4
4
  */
5
5