@arcgis/core 4.25.0-next.20220818 → 4.25.0-next.20220821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/LengthDimension.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0b1d39dc063c4c3385e2.js +1 -0
- package/assets/esri/core/workers/chunks/{59a04f1640cd2b710028.js → 0c625803648e554f1fcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{50985ec72b9e4557d371.js → 0f1fae79b5311d55c0da.js} +1 -1
- package/assets/esri/core/workers/chunks/1a360d839c4eb83aaa02.js +1 -0
- package/assets/esri/core/workers/chunks/3381b5454cd530cf940a.js +1 -0
- package/assets/esri/core/workers/chunks/3900c702242358c5d00e.js +1 -0
- package/assets/esri/core/workers/chunks/43f84cb852c9ab5e742f.js +1 -0
- package/assets/esri/core/workers/chunks/4637bfd3deff50b03f2e.js +1 -0
- package/assets/esri/core/workers/chunks/4d5bdf18feeb9c8cb6ff.js +1 -0
- package/assets/esri/core/workers/chunks/5c2574365af4a484cd4b.js +1 -0
- package/assets/esri/core/workers/chunks/70179a003b5e52a99e10.js +1 -0
- package/assets/esri/core/workers/chunks/77a38124ef155a1b0f3e.js +1 -0
- package/assets/esri/core/workers/chunks/{ab0ce16ced3532f0e429.js → 81418b47acb4ef68daf7.js} +1 -1
- package/assets/esri/core/workers/chunks/88b5ce63c4706d0954dc.js +1 -0
- package/assets/esri/core/workers/chunks/{064a4baa576964efa238.js → 9809878b87595ac77dc4.js} +1 -1
- package/assets/esri/core/workers/chunks/9dbe94a70624a5592690.js +1 -0
- package/assets/esri/core/workers/chunks/{d013daa46de022f0db4d.js → a0750175b499a89fd07d.js} +1 -1
- package/assets/esri/core/workers/chunks/be4a8a4b2804188817b3.js +1 -0
- package/assets/esri/core/workers/chunks/da13db62d54cbca350c3.js +1 -0
- package/assets/esri/core/workers/chunks/e472e4f4a2f046846258.js +1 -0
- package/assets/esri/core/workers/chunks/f351cccf879ba295acbc.js +1 -0
- package/chunks/boundedPlane.js +1 -1
- package/chunks/pe.js +1 -1
- package/core/Identifiable.js +1 -1
- package/geometry/Circle.js +1 -1
- package/geometry/Extent.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/Multipoint.js +1 -1
- package/geometry/Point.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/geometryEngineAsync.js +1 -1
- package/geometry/projection.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/boundsUtils.js +1 -1
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/cut.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/geometry/support/quantizationUtils.js +1 -1
- package/interfaces.d.ts +60 -84
- package/layers/DimensionLayer.js +1 -1
- package/layers/support/ExportImageServiceParameters.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/package.json +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMResourceManager.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/quantizeTime.js +5 -0
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +5 -0
- package/views/2d/engine/webgl/animatedFormats/apng.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/gif.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionComputation.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimensioning/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
- package/views/3d/analysis/support/measurementUtils.js +1 -1
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/interfaces.js +1 -1
- package/views/support/geodesicLengthMeasurementUtils.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/229bfbf3faa789f40b7e.js +0 -1
- package/assets/esri/core/workers/chunks/2e715520e5badbe570ac.js +0 -1
- package/assets/esri/core/workers/chunks/40098b3be512ad8461f8.js +0 -1
- package/assets/esri/core/workers/chunks/420ae87ba8dc74fd05f5.js +0 -1
- package/assets/esri/core/workers/chunks/46c836fc575251f1ff34.js +0 -1
- package/assets/esri/core/workers/chunks/481532ce4871b0d94587.js +0 -1
- package/assets/esri/core/workers/chunks/5fa78a6745ef14c7c4d1.js +0 -1
- package/assets/esri/core/workers/chunks/606f45a93c707054c521.js +0 -1
- package/assets/esri/core/workers/chunks/78e59b29e59b10f64aa9.js +0 -1
- package/assets/esri/core/workers/chunks/7be7c53727cb1bc73a64.js +0 -1
- package/assets/esri/core/workers/chunks/8d3fba983c360e1fdabf.js +0 -1
- package/assets/esri/core/workers/chunks/a69d194526bdc489b30b.js +0 -1
- package/assets/esri/core/workers/chunks/b59855826d235cba0889.js +0 -1
- package/assets/esri/core/workers/chunks/bff5812e3797c8e42ac0.js +0 -1
- package/assets/esri/core/workers/chunks/d6e177749bde46ab57fc.js +0 -1
- package/assets/esri/core/workers/chunks/d9c8a8bed6b34ed57faf.js +0 -1
- package/views/2d/engine/webgl/animatedFormats/BaseAnimatableTextureResource.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9454],{6352:(t,e,o)=>{o.d(e,{a:()=>c});var r,s=o(43697),i=o(22303),l=o(96674),n=o(22974),a=o(5600),p=(o(75215),o(52011)),y=o(37308);let h=r=class extends l.wq{constructor(){super(...arguments),this.color=new i.Z("white")}clone(){return new r({color:(0,n.d9)(this.color)})}};(0,s._)([(0,a.Cb)(y.a)],h.prototype,"color",void 0),h=r=(0,s._)([(0,p.j)("esri.symbols.callouts.LineCallout3DBorder")],h);const c=h;Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}))},2368:(t,e,o)=>{o.d(e,{J:()=>y,j:()=>h});var r=o(43697),s=o(15923),i=(o(80442),o(22974)),l=(o(92604),o(70586)),n=o(31263),a=o(1153),p=o(52011);const y=t=>{let e=class extends t{clone(){const t=(0,l.s3)((0,a.vw)(this),"unable to clone instance of non-accessor class"),e=t.metadatas,o=t.store,r={},s=new Map;for(const t in e){const l=e[t],a=o?.originOf(t),p=l.clonable;if(l.readOnly||!1===p||a!==n.s3.USER&&a!==n.s3.DEFAULTS&&a!==n.s3.WEB_MAP&&a!==n.s3.WEB_SCENE)continue;const y=this[t];let h=null;h="function"==typeof p?p(y):"reference"===p?y:(0,i.Vo)(y),null!=y&&null==h||(a===n.s3.DEFAULTS?s.set(t,h):r[t]=h)}const p=new(0,Object.getPrototypeOf(this).constructor)(r);if(s.size){const t=(0,a.vw)(p)?.store;if(t)for(const[e,o]of s)t.set(e,o,n.s3.DEFAULTS)}return p}};return e=(0,r._)([(0,p.j)("esri.core.Clonable")],e),e};let h=class extends(y(s.Z)){};h=(0,r._)([(0,p.j)("esri.core.Clonable")],h)},10699:(t,e,o)=>{o.d(e,{IG:()=>l});var r=o(43697),s=o(52011);let i=0;const l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return e=(0,r._)([(0,s.j)("esri.core.Identifiable")],e),e};let n=class extends(l(class{})){};n=(0,r._)([(0,s.j)("esri.core.Identifiable")],n)},16453:(t,e,o)=>{o.d(e,{R:()=>v,w:()=>f});var r=o(43697),s=o(15923),i=o(70586),l=o(41103),n=o(22974),a=o(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new p,o=this._originStores[a.s3.DEFAULTS];o&&o.forEach(((t,o)=>{e.set(o,(0,n.d9)(t),a.s3.DEFAULTS)}));for(let o=a.s3.SERVICE;o<a.kk;o++){const r=this._originStores[o];r&&r.forEach(((r,s)=>{t&&t.has(s)||e.set(s,(0,n.d9)(r),o)}))}return e}get(t,e){const o=void 0===e?this._values:this._originStores[e];return o?o.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,o=a.s3.USER){let r=this._originStores[o];if(r||(r=new Map,this._originStores[o]=r),r.set(t,e),!this._values.has(t)||(0,i.j0)(this._propertyOriginMap.get(t))<=o){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,o),r!==e}return!1}delete(t,e=a.s3.USER){const o=this._originStores[e];if(!o)return;const r=o.get(t);if(o.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let o=e-1;o>=0;o--){const e=this._originStores[o];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,o);break}}}return r}has(t,e){const o=void 0===e?this._values:this._originStores[e];return!!o&&o.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const o=this._originStores[e],r=o&&o.get(t),s=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),s!==r}originOf(t){return this._propertyOriginMap.get(t)||a.s3.DEFAULTS}forEach(t){this._values.forEach(t)}}var y=o(50549),h=o(1153),c=o(52011);const d=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,i.j0)((0,h.vw)(this)),o=e.store,r=new p;e.store=r,(0,l.M)(e,o,r)}read(t,e){(0,y.i)(this,t,e)}getAtOrigin(t,e){const o=u(this),r=(0,a.M9)(e);if("string"==typeof t)return o.get(t,r);const s={};return t.forEach((t=>{s[t]=o.get(t,r)})),s}originOf(t){return(0,a.x3)(this.originIdOf(t))}originIdOf(t){return u(this).originOf(t)}revert(t,e){const o=u(this),r=(0,a.M9)(e),s=(0,h.vw)(this);let i;i="string"==typeof t?"*"===t?o.keys(r):[t]:t,i.forEach((t=>{s.invalidate(t),o.revert(t,r),s.commit(t)}))}};return e=(0,r._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function u(t){return(0,h.vw)(t).store}let b=class extends(d(s.Z)){};b=(0,r._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],b);var m=o(76169);const w=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return g(this).delete(t,(0,a.M9)(e))}write(t={},e){return(0,m.c)(this,t=t||{},e),t}setAtOrigin(t,e,o){(0,h.vw)(this).setAtOrigin(t,e,(0,a.M9)(o))}removeOrigin(t){const e=g(this),o=(0,a.M9)(t),r=e.keys(o);for(const t of r)e.originOf(t)===o&&e.set(t,e.get(t,o),a.s3.USER)}updateOrigin(t,e){const o=g(this),r=(0,a.M9)(e),s=this.get(t);for(let e=r+1;e<a.kk;++e)o.delete(t,e);o.set(t,s,r)}toJSON(t){return this.write({},t)}};return e=(0,r._)([(0,c.j)("esri.core.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function g(t){return(0,h.vw)(t).store}const v=t=>{let e=class extends(w(d(t))){constructor(...t){super(...t)}};return e=(0,r._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],e),e};let f=class extends(v(s.Z)){};f=(0,r._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],f)},70921:(t,e,o)=>{o.d(e,{R:()=>i,Z:()=>s});var r=o(46791);function s(t,e,o=r.Z){return e||(e=new o),e===t||(e.removeAll(),(s=t)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?e.addMany(t):t&&e.add(t)),e;var s}function i(t){return t}},87085:(t,e,o)=>{o.d(e,{Z:()=>v});var r=o(43697),s=(o(66577),o(3172)),i=o(20102),l=o(32448),n=o(10699),a=o(83379),p=o(92604),y=o(95330),h=o(17452),c=o(5600),d=(o(67676),o(80442),o(75215),o(52011)),u=o(68773),b=o(6570),m=o(82971);let w=0,g=class extends(l.Z.EventedMixin((0,n.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new b.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+w++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await o.e(3529).then(o.bind(o,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},r=await Promise.all([o.e(4547),o.e(8008)]).then(o.bind(o,28008));try{return await r.fromItem(e)}catch(t){const o=e&&e.portalItem,r=o&&o.id||"unset",s=o&&o.portal&&o.portal.url||u.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,y.D_)(t)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"baseLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const t=this.url;return t?(0,h.mN)(t):null}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,s.default)(t,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,c.Cb)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,r._)([(0,c.Cb)({type:b.Z})],g.prototype,"fullExtent",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,r._)([(0,c.Cb)({type:String,clonable:!1})],g.prototype,"id",void 0),(0,r._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,r._)([(0,c.Cb)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,r._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,r._)([(0,c.Cb)({clonable:!1})],g.prototype,"parent",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,r._)([(0,c.Cb)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,r._)([(0,c.Cb)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,r._)([(0,c.Cb)({type:m.Z})],g.prototype,"spatialReference",void 0),(0,r._)([(0,c.Cb)({type:String})],g.prototype,"title",void 0),(0,r._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,r._)([(0,c.Cb)()],g.prototype,"url",void 0),(0,r._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,r._)([(0,d.j)("esri.layers.Layer")],g);const v=g},78223:(t,e,o)=>{o.d(e,{se:()=>q,cT:()=>A,dU:()=>P,S9:()=>T,LB:()=>J,AH:()=>U,yK:()=>E,S6:()=>F,QT:()=>W,f_:()=>I});var r,s=o(75215),i=o(63213),l=o(17386),n=(o(38445),o(21218)),a=o(95191),p=(o(31134),o(50575),o(20825)),y=o(98587),h=(o(38128),o(40908),o(43697)),c=o(46791),d=o(22974),u=o(5600),b=o(36030),m=o(52011),w=o(87223);const g=c.Z.ofType({base:null,key:"type",typeMap:{fill:a.Z}});let v=r=class extends w.Z{constructor(t){super(t),this.symbolLayers=new g,this.type="mesh-3d"}clone(){return new r({styleOrigin:(0,d.d9)(this.styleOrigin),symbolLayers:(0,d.d9)(this.symbolLayers),thumbnail:(0,d.d9)(this.thumbnail)})}};(0,h._)([(0,u.Cb)({type:g})],v.prototype,"symbolLayers",void 0),(0,h._)([(0,b.J)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],v.prototype,"type",void 0),v=r=(0,h._)([(0,m.j)("esri.symbols.MeshSymbol3D")],v);const f=v;o(17143),o(96742);var _,C=o(62357),S=o(94075);let j=_=class extends n.Z{constructor(...t){super(...t),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),e&&(s.outline=e),null!=o&&(s.width=(0,C.t_)(o)),null!=r&&(s.height=(0,C.t_)(r)),s}clone(){const t=new _({color:(0,d.d9)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return t._set("source",(0,d.d9)(this.source)),t}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,h._)([(0,b.J)({esriPFS:"picture-fill"},{readOnly:!0})],j.prototype,"type",void 0),(0,h._)([(0,u.Cb)(S.KA)],j.prototype,"url",void 0),(0,h._)([(0,u.Cb)({type:Number,json:{write:!0}})],j.prototype,"xscale",void 0),(0,h._)([(0,u.Cb)({type:Number,json:{write:!0}})],j.prototype,"yscale",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:C.t_,json:{write:!0}})],j.prototype,"width",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:C.t_,json:{write:!0}})],j.prototype,"height",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:C.t_,json:{write:!0}})],j.prototype,"xoffset",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:C.t_,json:{write:!0}})],j.prototype,"yoffset",void 0),(0,h._)([(0,u.Cb)(S.Ds)],j.prototype,"source",void 0),j=_=(0,h._)([(0,m.j)("esri.symbols.PictureFillSymbol")],j);const Z=j;var x=o(37898),L=o(42143),z=o(86114),O=o(20256),k=o(4095),D=o(77987),N=o(89164),M=(o(95868),o(78724)),$=(o(2283),o(44398),o(59390));function A(t){if(!t)return!1;switch(t.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function P(t){if(!t)return!1;switch(t.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}o(69496),o(6352);const J={base:N.Z,key:"type",typeMap:{"simple-fill":O.Z,"picture-fill":Z,"picture-marker":x.Z,"simple-line":k.Z,"simple-marker":D.Z,text:M.Z,"label-3d":p.Z,"line-3d":y.Z,"mesh-3d":f,"point-3d":L.Z,"polygon-3d":z.Z,"web-style":$.Z,cim:l.Z},errorContext:"symbol"},U={base:N.Z,key:"type",typeMap:{"picture-marker":x.Z,"simple-marker":D.Z,text:M.Z,"web-style":$.Z,cim:l.Z},errorContext:"symbol"},T=(0,i.d)({types:J}),W={base:N.Z,key:"type",typeMap:{"simple-fill":O.Z,"picture-fill":Z,"picture-marker":x.Z,"simple-line":k.Z,"simple-marker":D.Z,text:M.Z,"line-3d":y.Z,"mesh-3d":f,"point-3d":L.Z,"polygon-3d":z.Z,"web-style":$.Z,cim:l.Z},errorContext:"symbol"},E={base:N.Z,key:"type",typeMap:{text:M.Z,"label-3d":p.Z},errorContext:"symbol"},I=(N.Z,p.Z,y.Z,L.Z,z.Z,$.Z,{base:N.Z,key:"type",typeMap:{"line-3d":y.Z,"mesh-3d":f,"point-3d":L.Z,"polygon-3d":z.Z,"web-style":$.Z,cim:l.Z},errorContext:"symbol"}),F={base:N.Z,key:"type",typeMap:{"label-3d":p.Z},errorContext:"symbol"},q=(0,s.N7)(J)},17386:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22974),l=o(19153),n=o(5600),a=(o(75215),o(36030)),p=o(71715),y=o(52011),h=o(30556),c=o(35671),d=o(89164);let u=r=class extends d.Z{constructor(t){super(t),this.data=null,this.type="cim"}readData(t,e){return e}writeData(t,e){if(t)for(const o in t)e[o]=t[o]}async collectRequiredFields(t,e){if("CIMSymbolReference"===this.data.type){const o=this.data.primitiveOverrides;if(o){const r=o.map((o=>{const r=o.valueExpressionInfo;return(0,c.io)(t,e,r.expression)}));await Promise.all(r)}}}clone(){return new r({data:(0,i.d9)(this.data)})}hash(){return(0,l.hP)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.Cb)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"data",void 0),(0,s._)([(0,p.r)("data",["symbol"])],u.prototype,"readData",null),(0,s._)([(0,h.c)("data",{})],u.prototype,"writeData",null),(0,s._)([(0,a.J)({CIMSymbolReference:"cim"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,s._)([(0,y.j)("esri.symbols.CIMSymbol")],u);const b=u},38445:(t,e,o)=>{o.d(e,{Z:()=>d});var r,s=o(43697),i=o(70586),l=o(5600),n=(o(67676),o(80442),o(75215),o(36030)),a=o(52011),p=o(95868),y=o(56332),h=o(52879);let c=r=class extends p.Z{constructor(t){super(t),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new r({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:(0,i.pC)(this.material)?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,n.J)({Extrude:"extrude"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],c.prototype,"size",void 0),(0,s._)([(0,l.Cb)({type:h.b,json:{write:!0}})],c.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0),(0,s._)([(0,l.Cb)(y.Z)],c.prototype,"edges",void 0),c=r=(0,s._)([(0,a.j)("esri.symbols.ExtrudeSymbol3DLayer")],c);const d=c},21218:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(5600),i=(o(67676),o(80442),o(75215),o(52011)),l=o(4095),n=o(89164);let a=class extends n.Z{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,r._)([(0,s.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.Z}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,r._)([(0,s.Cb)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,i.j)("esri.symbols.FillSymbol")],a);const p=a},95191:(t,e,o)=>{o.d(e,{Z:()=>x});var r,s=o(43697),i=o(70586),l=o(5600),n=(o(67676),o(80442),o(75215),o(36030)),a=o(52011),p=o(95868),y=o(56332),h=o(4618),c=o(74721),d=o(17495),u=o(50178),b=(o(92604),o(20102),o(52879));let m=r=class extends b.b{constructor(t){super(t),this.colorMixMode=null}clone(){const t={color:(0,i.pC)(this.color)?this.color.clone():null,colorMixMode:this.colorMixMode};return new r(t)}};(0,s._)([(0,n.J)({multiply:"multiply",replace:"replace",tint:"tint"})],m.prototype,"colorMixMode",void 0),m=r=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DFillMaterial")],m);var w,g=o(22303),v=o(96674),f=o(62357),_=o(37308),C=o(45119);let S=w=class extends v.wq{constructor(t){super(t),this.color=new g.Z([0,0,0,1]),this.size=(0,f.Wz)(1),this.pattern=null,this.patternCap="butt"}clone(){const t={color:(0,i.pC)(this.color)?this.color.clone():null,size:this.size,pattern:(0,i.pC)(this.pattern)?this.pattern.clone():null,patternCap:this.patternCap};return new w(t)}};var j;(0,s._)([(0,l.Cb)(_.a)],S.prototype,"color",void 0),(0,s._)([(0,l.Cb)(_.y)],S.prototype,"size",void 0),(0,s._)([(0,l.Cb)(d.D)],S.prototype,"pattern",void 0),(0,s._)([(0,l.Cb)({type:C.Hc,json:{default:"butt",write:{overridePolicy(){return{enabled:(0,i.pC)(this.pattern)}}}}})],S.prototype,"patternCap",void 0),S=w=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DOutline")],S);let Z=j=class extends p.Z{constructor(t){super(t),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const t={edges:(0,i.pC)(this.edges)?this.edges.clone():null,enabled:this.enabled,material:(0,i.pC)(this.material)?this.material.clone():null,pattern:(0,i.pC)(this.pattern)?this.pattern.clone():null,castShadows:this.castShadows,outline:(0,i.pC)(this.outline)?this.outline.clone():null};return new j(t)}static fromSimpleFillSymbol(t){const e=t.outline&&t.outline.style&&"inside-frame"!==t.outline.style&&"solid"!==t.outline.style?new h.Z({style:t.outline.style}):null,o={size:t.outline?.width??0,color:(t.outline?.color??u.ix).clone(),pattern:e};return e&&t.outline?.cap&&(o.patternCap=t.outline.cap),new j({material:new m({color:(t.color??u.l9).clone()}),pattern:t.style&&"solid"!==t.style?new c.Z({style:t.style}):null,outline:o})}};(0,s._)([(0,n.J)({Fill:"fill"},{readOnly:!0})],Z.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:m,json:{write:!0}})],Z.prototype,"material",void 0),(0,s._)([(0,l.Cb)(d.q)],Z.prototype,"pattern",void 0),(0,s._)([(0,l.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],Z.prototype,"castShadows",void 0),(0,s._)([(0,l.Cb)({type:S,json:{write:!0}})],Z.prototype,"outline",void 0),(0,s._)([(0,l.Cb)(y.Z)],Z.prototype,"edges",void 0),Z=j=(0,s._)([(0,a.j)("esri.symbols.FillSymbol3DLayer")],Z);const x=Z},31134:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(96674),l=o(62357),n=o(5600),a=(o(67676),o(80442),o(90578)),p=o(52011),y=o(61565);let h=r=class extends i.wq{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return(0,l.t_)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,s._)([(0,n.Cb)({type:y.JT,json:{default:"none",write:!0}})],h.prototype,"decoration",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"family",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],h.prototype,"size",void 0),(0,s._)([(0,a.p)("size")],h.prototype,"castSize",null),(0,s._)([(0,n.Cb)({type:y.g6,json:{default:"normal",write:!0}})],h.prototype,"style",void 0),(0,s._)([(0,n.Cb)({type:y.vC,json:{default:"normal",write:!0}})],h.prototype,"weight",void 0),h=r=(0,s._)([(0,p.j)("esri.symbols.Font")],h);const c=h},50575:(t,e,o)=>{o.d(e,{Z:()=>P});var r,s=o(43697),i=o(92604),l=o(70586),n=o(17452),a=o(5600),p=(o(67676),o(80442),o(75215),o(36030)),y=o(52011),h=o(95868),c=o(50178),d=o(35454),u=o(96674),b=o(71715),m=o(30556),w=o(25929);const g=(0,d.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let v=r=class extends u.wq{constructor(t){super(t)}readHref(t,e,o){return t?(0,w.f)(t,o):e.dataURI}writeHref(t,e,o,r){t&&((0,n.HK)(t)?e.dataURI=t:(e.href=(0,w.t)(t,r),(0,n.YP)(e.href)&&(e.href=(0,n.Fv)(e.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,a.Cb)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],v.prototype,"href",void 0),(0,s._)([(0,b.r)("href")],v.prototype,"readHref",null),(0,s._)([(0,m.c)("href",{href:{type:String},dataURI:{type:String}})],v.prototype,"writeHref",null),(0,s._)([(0,p.J)(g)],v.prototype,"primitive",void 0),v=r=(0,s._)([(0,y.j)("esri.symbols.support.IconSymbol3DLayerResource")],v);var f,_=o(37308),C=o(15923);let S=f=class extends C.Z{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new f({x:this.x,y:this.y})}};(0,s._)([(0,a.Cb)({type:Number})],S.prototype,"x",void 0),(0,s._)([(0,a.Cb)({type:Number})],S.prototype,"y",void 0),S=f=(0,s._)([(0,y.j)("esri.symbols.support.Symbol3DAnchorPosition2D")],S);var j,Z=o(22303),x=o(62357);let L=j=class extends u.wq{constructor(t){super(t),this.color=new Z.Z([0,0,0,1]),this.size=(0,x.Wz)(1)}clone(){const t={color:(0,l.pC)(this.color)?this.color.clone():null,size:this.size};return new j(t)}};(0,s._)([(0,a.Cb)(_.a)],L.prototype,"color",void 0),(0,s._)([(0,a.Cb)(_.y)],L.prototype,"size",void 0),L=j=(0,s._)([(0,y.j)("esri.symbols.support.Symbol3DIconOutline")],L);var z,O=o(52879);const k="esri.symbols.IconSymbol3DLayer";let D=z=class extends h.Z{constructor(t){super(t),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new z({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:(0,l.pC)(this.material)?this.material.clone():null,outline:(0,l.pC)(this.outline)?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(t){const e=t.color||c.ix,o=N(t),r=t.outline&&t.outline.width>0?{size:t.outline.width,color:(t.outline.color||c.ix).clone()}:null;return new z({size:t.size,resource:{primitive:A(t.style)},material:{color:e},outline:r,anchor:o?"relative":void 0,anchorPosition:o})}static fromPictureMarkerSymbol(t){const e=!t.color||(0,c.rx)(t.color)?c.ix:t.color,o=N(t);return new z({size:t.width<=t.height?t.height:t.width,resource:{href:t.url},material:{color:e.clone()},anchor:o?"relative":void 0,anchorPosition:o})}static fromCIMSymbol(t){return new z({resource:{href:(0,n._l)({mediaType:"application/json",data:JSON.stringify(t.data)})}})}};function N(t){const e="width"in t?t.width:t.size,o="height"in t?t.height:t.size,r=M(t.xoffset),s=M(t.yoffset);return(r||s)&&e&&o?{x:-r/e,y:s/o}:null}function M(t){return isFinite(t)?t:0}(0,s._)([(0,a.Cb)({type:O.b,json:{write:!0}})],D.prototype,"material",void 0),(0,s._)([(0,a.Cb)({type:v,json:{write:!0}})],D.prototype,"resource",void 0),(0,s._)([(0,p.J)({Icon:"icon"},{readOnly:!0})],D.prototype,"type",void 0),(0,s._)([(0,a.Cb)(_.y)],D.prototype,"size",void 0),(0,s._)([(0,p.J)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,a.Cb)({json:{default:"center"}})],D.prototype,"anchor",void 0),(0,s._)([(0,a.Cb)({type:S,json:{type:[Number],read:{reader:t=>new S({x:t[0],y:t[1]})},write:{writer:(t,e)=>{e.anchorPosition=[t.x,t.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],D.prototype,"anchorPosition",void 0),(0,s._)([(0,a.Cb)({type:L,json:{write:!0}})],D.prototype,"outline",void 0),D=z=(0,s._)([(0,y.j)(k)],D);const $={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function A(t){return $[t]||(i.Z.getLogger(k).warn(`${t} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const P=D},20825:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(87223),h=o(2283),c=o(84275),d=o(7413);const u=i.Z.ofType({base:null,key:"type",typeMap:{text:h.Z}});let b=r=class extends y.Z{constructor(t){super(t),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new u,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,c.gv)(this)}hasVisibleVerticalOffset(){return(0,c.Uy)(this)}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail),callout:(0,l.d9)(this.callout),verticalOffset:(0,l.d9)(this.verticalOffset)})}static fromTextSymbol(t){return new r({symbolLayers:[h.Z.fromTextSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:d.Z,json:{write:!0}})],b.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(c.Y2)],b.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({json:{read:!1,write:!1}})],b.prototype,"styleOrigin",void 0),(0,s._)([(0,n.Cb)({type:u})],b.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LabelSymbol3D:"label-3d"},{readOnly:!0})],b.prototype,"type",void 0),b=r=(0,s._)([(0,p.j)("esri.symbols.LabelSymbol3D")],b);const m=b},98587:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(38128),h=o(96742),c=o(87223);const d=i.Z.ofType({base:null,key:"type",typeMap:{line:y.Z,path:h.Z}}),u=i.Z.ofType({base:null,key:"type",typeMap:{line:y.Z,path:h.Z}});let b=r=class extends c.Z{constructor(t){super(t),this.symbolLayers=new d,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleLineSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleLineSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:d,json:{type:u}})],b.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LineSymbol3D:"line-3d"},{readOnly:!0})],b.prototype,"type",void 0),b=r=(0,s._)([(0,p.j)("esri.symbols.LineSymbol3D")],b);const m=b},38128:(t,e,o)=>{o.d(e,{Z:()=>Z});var r=o(43697),s=o(70586),i=o(62357),l=o(5600),n=(o(67676),o(80442),o(75215)),a=o(36030),p=o(52011),y=o(22303),h=o(2368),c=o(96674),d=o(57742);let u=class extends((0,h.J)(c.wq)){constructor(t){super(t),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(t){return(0,s.pC)(t)&&t.placement===this.placement&&t.style===this.style&&((0,s.Wi)(this.color)&&(0,s.Wi)(t.color)||(0,s.pC)(this.color)&&(0,s.pC)(t.color)&&this.color.toJSON()===t.color.toJSON())}};(0,r._)([(0,l.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],u.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:d.J,json:{default:"begin-end",write:!0}})],u.prototype,"placement",void 0),(0,r._)([(0,l.Cb)({type:d.k,json:{default:"arrow",write:!0}})],u.prototype,"style",void 0),(0,r._)([(0,l.Cb)({type:y.Z,json:{type:[n.z8],default:null,write:!0}})],u.prototype,"color",void 0),u=(0,r._)([(0,p.j)("esri.symbols.LineStyleMarker3D")],u);const b=u;var m,w=o(95868),g=o(4618),v=o(17495),f=o(50178),_=o(37308),C=o(52879),S=o(45119);let j=m=class extends w.Z{constructor(t){super(t),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,i.Wz)(1),this.pattern=null,this.marker=null}clone(){const t={enabled:this.enabled,material:(0,s.pC)(this.material)?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:(0,s.pC)(this.pattern)?this.pattern.clone():null,marker:(0,s.pC)(this.marker)?this.marker.clone():null};return new m(t)}static fromSimpleLineSymbol(t){const e={enabled:!0,size:t.width??(0,i.Wz)(1),cap:t.cap||"butt",join:t.join||"miter",pattern:t.style&&"inside-frame"!==t.style?new g.Z({style:t.style}):null,material:new C.b({color:(t.color||f.ix).clone()}),marker:t.marker?new b({placement:t.marker.placement,style:t.marker.style,color:t.marker.color?.clone()??null}):null};return new m(e)}};(0,r._)([(0,l.Cb)({type:C.b,json:{write:!0}})],j.prototype,"material",void 0),(0,r._)([(0,a.J)({Line:"line"},{readOnly:!0})],j.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:S.w2,json:{write:!0,default:"miter"}})],j.prototype,"join",void 0),(0,r._)([(0,l.Cb)({type:S.Hc,json:{write:!0,default:"butt"}})],j.prototype,"cap",void 0),(0,r._)([(0,l.Cb)(_.y)],j.prototype,"size",void 0),(0,r._)([(0,l.Cb)(v.D)],j.prototype,"pattern",void 0),(0,r._)([(0,l.Cb)({types:{key:"type",base:b,typeMap:{style:b}},json:{write:!0}})],j.prototype,"marker",void 0),j=m=(0,r._)([(0,p.j)("esri.symbols.LineSymbol3DLayer")],j);const Z=j},40908:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(62357),i=o(5600),l=(o(67676),o(80442),o(75215),o(52011)),n=o(89164);let a=class extends n.Z{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,r._)([(0,i.Cb)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],a.prototype,"angle",void 0),(0,r._)([(0,i.Cb)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"xoffset",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"yoffset",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:t=>"auto"===t?t:(0,s.t_)(t),json:{write:!0}})],a.prototype,"size",void 0),a=(0,r._)([(0,l.j)("esri.symbols.MarkerSymbol")],a);const p=a},17143:(t,e,o)=>{o.d(e,{Z:()=>_});var r,s=o(43697),i=o(70586),l=o(5600),n=(o(67676),o(80442),o(75215),o(36030)),a=o(52011),p=o(95868),y=o(35454),h=o(96674),c=o(25929);const d=(0,y.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let u=r=class extends h.wq{clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,l.Cb)({type:String,json:{read:c.r,write:c.w}})],u.prototype,"href",void 0),(0,s._)([(0,n.J)(d)],u.prototype,"primitive",void 0),u=r=(0,s._)([(0,a.j)("esri.symbols.support.ObjectSymbol3DLayerResource")],u);var b,m=o(15923);let w=b=class extends m.Z{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new b({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,l.Cb)({type:Number})],w.prototype,"x",void 0),(0,s._)([(0,l.Cb)({type:Number})],w.prototype,"y",void 0),(0,s._)([(0,l.Cb)({type:Number})],w.prototype,"z",void 0),w=b=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DAnchorPosition3D")],w);var g,v=o(52879);let f=g=class extends p.Z{constructor(t){super(t),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new g({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:(0,i.pC)(this.material)?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,l.Cb)({type:v.b,json:{write:!0}})],f.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0),(0,s._)([(0,l.Cb)({type:u,json:{write:!0}})],f.prototype,"resource",void 0),(0,s._)([(0,n.J)({Object:"object"},{readOnly:!0})],f.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"width",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"height",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"depth",void 0),(0,s._)([(0,n.J)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,l.Cb)({json:{default:"origin"}})],f.prototype,"anchor",void 0),(0,s._)([(0,l.Cb)({type:w,json:{type:[Number],read:{reader:t=>new w({x:t[0],y:t[1],z:t[2]})},write:{writer:(t,e)=>{e.anchorPosition=[t.x,t.y,t.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],f.prototype,"anchorPosition",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"heading",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"tilt",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"roll",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],f.prototype,"isPrimitive",null),f=g=(0,s._)([(0,a.j)("esri.symbols.ObjectSymbol3DLayer")],f);const _=f},96742:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(70586),l=o(5600),n=(o(67676),o(80442),o(75215),o(36030)),a=o(71715),p=o(52011),y=o(95868),h=o(52879),c=o(45119);let d=r=class extends y.Z{constructor(t){super(t),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(t,e){return null!=t?t:null==e.height&&null!=e.size?e.size:void 0}readHeight(t,e){return null!=t?t:null==e.width&&null!=e.size?e.size:void 0}clone(){return new r({enabled:this.enabled,material:(0,i.pC)(this.material)?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,l.Cb)({type:h.b,json:{write:!0}})],d.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],d.prototype,"castShadows",void 0),(0,s._)([(0,n.J)({Path:"path"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:["circle","quad"],json:{write:!0,default:"circle"}})],d.prototype,"profile",void 0),(0,s._)([(0,l.Cb)({type:c.w2,json:{write:!0,default:"miter"}})],d.prototype,"join",void 0),(0,s._)([(0,l.Cb)({type:c.KW,json:{write:!0,default:"butt"}})],d.prototype,"cap",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],d.prototype,"width",void 0),(0,s._)([(0,a.r)("width",["width","size","height"])],d.prototype,"readWidth",null),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],d.prototype,"height",void 0),(0,s._)([(0,a.r)("height",["height","size","width"])],d.prototype,"readHeight",null),(0,s._)([(0,l.Cb)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],d.prototype,"anchor",void 0),(0,s._)([(0,l.Cb)({type:["heading","all"],json:{write:!0,default:"all"}})],d.prototype,"profileRotation",void 0),d=r=(0,s._)([(0,p.j)("esri.symbols.PathSymbol3DLayer")],d);const u=d},37898:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(22974),l=o(62357),n=o(5600),a=(o(75215),o(36030)),p=o(71715),y=o(52011),h=o(40908),c=o(94075);let d=r=class extends h.Z{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t&&null==t.imageData)return t;const r={};return t&&(r.url=t),null!=e&&(r.width=(0,l.t_)(e)),null!=o&&(r.height=(0,l.t_)(o)),r}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,i.d9)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.Cb)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,a.J)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.Cb)(c.KA)],d.prototype,"url",void 0),(0,s._)([(0,n.Cb)(c.Ds)],d.prototype,"source",void 0),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],d.prototype,"height",void 0),(0,s._)([(0,p.r)("height",["height","size"])],d.prototype,"readHeight",null),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],d.prototype,"width",void 0),(0,s._)([(0,n.Cb)({json:{write:!1}})],d.prototype,"size",void 0),d=r=(0,s._)([(0,y.j)("esri.symbols.PictureMarkerSymbol")],d);const u=d},42143:(t,e,o)=>{o.d(e,{Z:()=>g});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(50575),h=o(17143),c=o(87223),d=o(2283),u=o(84275),b=o(7413);const m=i.Z.ofType({base:null,key:"type",typeMap:{icon:y.Z,object:h.Z,text:d.Z}});let w=r=class extends c.Z{constructor(t){super(t),this.verticalOffset=null,this.callout=null,this.symbolLayers=new m,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const t of this.symbolLayers.items)switch(t.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,u.gv)(this)}hasVisibleVerticalOffset(){return(0,u.Uy)(this)}clone(){return new r({verticalOffset:(0,l.d9)(this.verticalOffset),callout:(0,l.d9)(this.callout),styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleMarkerSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleMarkerSymbol(t)]})}static fromPictureMarkerSymbol(t){return new r({symbolLayers:[y.Z.fromPictureMarkerSymbol(t)]})}static fromCIMSymbol(t){const e=t.data?.symbol?.type;return"CIMPointSymbol"!==e?null:t.data.symbol.callout?new r({symbolLayers:[y.Z.fromCIMSymbol(t)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}):new r({symbolLayers:[y.Z.fromCIMSymbol(t)]})}static fromTextSymbol(t){return new r({symbolLayers:[d.Z.fromTextSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:b.Z,json:{write:!0}})],w.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(u.Y2)],w.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({type:m,json:{origins:{"web-scene":{write:!0}}}})],w.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PointSymbol3D:"point-3d"},{readOnly:!0})],w.prototype,"type",void 0),w=r=(0,s._)([(0,p.j)("esri.symbols.PointSymbol3D")],w);const g=w},86114:(t,e,o)=>{o.d(e,{Z:()=>_});var r,s=o(43697),i=o(46791),l=o(22974),n=o(70586),a=o(5600),p=(o(75215),o(36030)),y=o(52011),h=o(38445),c=o(95191),d=o(50575),u=o(38128),b=o(17143),m=o(87223),w=o(2283),g=o(44398);const v=i.Z.ofType({base:null,key:"type",typeMap:{extrude:h.Z,fill:c.Z,icon:d.Z,line:u.Z,object:b.Z,text:w.Z,water:g.Z}});let f=r=class extends m.Z{constructor(t){super(t),this.symbolLayers=new v,this.type="polygon-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromJSON(t){const e=new r;if(e.read(t),2===e.symbolLayers.length&&"fill"===e.symbolLayers.getItemAt(0).type&&"line"===e.symbolLayers.getItemAt(1).type){const o=e.symbolLayers.getItemAt(0),r=e.symbolLayers.getItemAt(1);!r.enabled||t.symbolLayers&&t.symbolLayers[1]&&!1===t.symbolLayers[1].enable||(o.outline={size:r.size,color:(0,n.pC)(r.material)?r.material.color:null}),e.symbolLayers.removeAt(1)}return e}static fromSimpleFillSymbol(t){return new r({symbolLayers:[c.Z.fromSimpleFillSymbol(t)]})}};(0,s._)([(0,a.Cb)({type:v,json:{write:!0}})],f.prototype,"symbolLayers",void 0),(0,s._)([(0,p.J)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],f.prototype,"type",void 0),f=r=(0,s._)([(0,y.j)("esri.symbols.PolygonSymbol3D")],f);const _=f},20256:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22303),l=o(35454),n=o(22974),a=o(5600),p=(o(75215),o(36030)),y=o(52011),h=o(21218),c=o(4095);const d=new l.X({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let u=r=class extends h.Z{constructor(...t){super(...t),this.color=new i.Z([0,0,0,.25]),this.outline=new c.Z,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.style=t),e&&(r.outline=e),o&&(r.color=o),r}clone(){return new r({color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s._)([(0,a.Cb)()],u.prototype,"color",void 0),(0,s._)([(0,a.Cb)()],u.prototype,"outline",void 0),(0,s._)([(0,p.J)({esriSFS:"simple-fill"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:d.apiValues,json:{read:d.read,write:d.write}})],u.prototype,"style",void 0),u=r=(0,s._)([(0,y.j)("esri.symbols.SimpleFillSymbol")],u);const b=u},4095:(t,e,o)=>{o.d(e,{Z:()=>j});var r=o(43697),s=o(35454),i=o(22974),l=o(62357),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=(o(67676),o(80442),o(89164));let h=class extends y.Z{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,r._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"width",void 0),h=(0,r._)([(0,p.j)("esri.symbols.LineSymbol")],h);const c=h;var d,u=o(22303),b=o(96674),m=o(71715),w=o(30556),g=o(57742);let v=d=class extends b.wq{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,o,r){e[o]="web-map"===r?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,o,r){"web-map"===r?.origin||(e[o]=t)}clone(){return new d({color:(0,i.d9)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,r._)([(0,n.Cb)({type:["begin","end","begin-end"],json:{write:!0}})],v.prototype,"placement",void 0),(0,r._)([(0,a.J)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.Cb)({json:{origins:{"web-map":{write:!1}}}})],v.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:g.k})],v.prototype,"style",void 0),(0,r._)([(0,w.c)("style")],v.prototype,"writeStyle",null),(0,r._)([(0,n.Cb)({type:u.Z,value:null,json:{write:{allowNull:!0}}})],v.prototype,"color",null),(0,r._)([(0,m.r)("color")],v.prototype,"readColor",null),(0,r._)([(0,w.c)("color")],v.prototype,"writeColor",null),v=d=(0,r._)([(0,p.j)("esri.symbols.LineSymbolMarker")],v);const f=v;var _;const C=new s.X({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let S=_=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,o,r,s,i){if(t&&"string"!=typeof t)return t;const n={};return null!=t&&(n.style=t),null!=e&&(n.color=e),null!=o&&(n.width=(0,l.t_)(o)),null!=r&&(n.cap=r),null!=s&&(n.join=s),null!=i&&(n.miterLimit=(0,l.t_)(i)),n}clone(){return new _({color:(0,i.d9)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,r._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],S.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:C.apiValues,json:{read:C.read,write:C.write}})],S.prototype,"style",void 0),(0,r._)([(0,n.Cb)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&(null==o||null==o.origin)})}}})],S.prototype,"cap",void 0),(0,r._)([(0,n.Cb)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&(null==o||null==o.origin)})}}})],S.prototype,"join",void 0),(0,r._)([(0,n.Cb)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":f}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],S.prototype,"marker",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:!1,write:!1}})],S.prototype,"miterLimit",void 0),S=_=(0,r._)([(0,p.j)("esri.symbols.SimpleLineSymbol")],S);const j=S},77987:(t,e,o)=>{o.d(e,{Z:()=>w});var r,s=o(43697),i=o(22303),l=o(35454),n=o(22974),a=o(62357),p=o(5600),y=(o(75215),o(36030)),h=o(52011),c=o(30556),d=o(40908),u=o(4095);const b=new l.X({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let m=r=class extends d.Z{constructor(...t){super(...t),this.color=new i.Z([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new u.Z}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),null!=e&&(s.size=(0,a.t_)(e)),o&&(s.outline=o),r&&(s.color=r),s}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new r({angle:this.angle,color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s._)([(0,p.Cb)()],m.prototype,"color",void 0),(0,s._)([(0,c.c)("color")],m.prototype,"writeColor",null),(0,s._)([(0,y.J)({esriSMS:"simple-marker"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],m.prototype,"size",void 0),(0,s._)([(0,p.Cb)({type:b.apiValues,json:{read:b.read,write:b.write}})],m.prototype,"style",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],m.prototype,"path",null),(0,s._)([(0,p.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":u.Z}},json:{default:null,write:!0}})],m.prototype,"outline",void 0),m=r=(0,s._)([(0,h.j)("esri.symbols.SimpleMarkerSymbol")],m);const w=m},87223:(t,e,o)=>{o.d(e,{Z:()=>D});var r=o(43697),s=o(46791),i=o(70921),l=o(92604),n=o(17452),a=o(20941),p=o(5600),y=(o(67676),o(80442),o(90578)),h=o(71715),c=o(52011),d=o(30556),u=o(65587),b=o(25929),m=o(38445),w=o(95191),g=o(50575),v=o(38128),f=o(17143),_=o(96742),C=o(89164),S=o(95868),j=o(2283),Z=o(44398),x=o(71144),L=o(23203);const z={icon:g.Z,object:f.Z,line:v.Z,path:_.Z,fill:w.Z,extrude:m.Z,text:j.Z,water:Z.Z},O=s.Z.ofType({base:S.Z,key:"type",typeMap:z,errorContext:"symbol-layer"});let k=class extends C.Z{constructor(t){super(t),this.styleOrigin=null,this.thumbnail=null,this.type=null;const e=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers,o=e&&e.type||s.Z;this._set("symbolLayers",new o)}get color(){return null}set color(t){this.constructed&&l.Z.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(t){(0,i.Z)(t,this._get("symbolLayers"))}readStyleOrigin(t,e,o){if(t.styleUrl&&t.name){const e=(0,b.f)(t.styleUrl,o);return new x.Z({styleUrl:e,name:t.name})}if(t.styleName&&t.name)return new x.Z({portal:o&&o.portal||u.Z.getDefault(),styleName:t.styleName,name:t.name});o&&o.messages&&o.messages.push(new a.Z("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:t}))}writeStyleOrigin(t,e,o,r){if(t.styleUrl&&t.name){let o=(0,b.t)(t.styleUrl,r);(0,n.YP)(o)&&(o=(0,n.Fv)(o)),e.styleOrigin={styleUrl:o,name:t.name}}else t.styleName&&t.name&&(t.portal&&r&&r.portal&&!(0,n.tm)(t.portal.restUrl,r.portal.restUrl)?r&&r.messages&&r.messages.push(new a.Z("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):e.styleOrigin={styleName:t.styleName,name:t.name})}normalizeCtorArgs(t){return t instanceof S.Z||t&&z[t.type]?{symbolLayers:[t]}:Array.isArray(t)?{symbolLayers:t}:t}};(0,r._)([(0,p.Cb)({json:{read:!1,write:!1}})],k.prototype,"color",null),(0,r._)([(0,p.Cb)({type:O,nonNullable:!0,json:{write:!0}}),(0,y.p)(i.R)],k.prototype,"symbolLayers",null),(0,r._)([(0,p.Cb)({type:x.Z})],k.prototype,"styleOrigin",void 0),(0,r._)([(0,h.r)("styleOrigin")],k.prototype,"readStyleOrigin",null),(0,r._)([(0,d.c)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],k.prototype,"writeStyleOrigin",null),(0,r._)([(0,p.Cb)({type:L.p,json:{read:!1}})],k.prototype,"thumbnail",void 0),(0,r._)([(0,p.Cb)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],k.prototype,"type",void 0),k=(0,r._)([(0,c.j)("esri.symbols.Symbol3D")],k);const D=k},95868:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(96674),i=o(5600),l=(o(67676),o(80442),o(75215),o(52011)),n=o(30556);let a=class extends s.wq{constructor(t){super(t),this.enabled=!0,this.type=null}writeEnabled(t,e,o){t||(e[o]=t)}};(0,r._)([(0,i.Cb)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,r._)([(0,n.c)("enabled")],a.prototype,"writeEnabled",null),(0,r._)([(0,i.Cb)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,l.j)("esri.symbols.Symbol3DLayer")],a);const p=a},78724:(t,e,o)=>{o.d(e,{Z:()=>w});var r,s=o(43697),i=o(22303),l=o(22974),n=o(62357),a=o(5600),p=o(90578),y=o(36030),h=o(52011),c=o(30556),d=o(31134),u=o(89164),b=o(61565);let m=r=class extends u.Z{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new d.Z,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),o&&(r.color=o),r}writeLineWidth(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}castLineWidth(t){return(0,n.t_)(t)}writeLineHeight(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,l.d9)(this.backgroundColor),borderLineColor:(0,l.d9)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.d9)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.d9)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"backgroundColor",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"borderLineColor",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],m.prototype,"borderLineSize",void 0),(0,s._)([(0,a.Cb)({type:d.Z,json:{write:!0}})],m.prototype,"font",void 0),(0,s._)([(0,a.Cb)({...b.x0,json:{write:!0}})],m.prototype,"horizontalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"kerning",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"haloColor",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"haloSize",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"rightToLeft",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"rotated",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"text",void 0),(0,s._)([(0,y.J)({esriTS:"text"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,a.Cb)({...b.Nj,json:{write:!0}})],m.prototype,"verticalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"xoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"yoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],m.prototype,"angle",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],m.prototype,"width",void 0),(0,s._)([(0,a.Cb)({type:Number})],m.prototype,"lineWidth",void 0),(0,s._)([(0,c.c)("lineWidth")],m.prototype,"writeLineWidth",null),(0,s._)([(0,p.p)("lineWidth")],m.prototype,"castLineWidth",null),(0,s._)([(0,a.Cb)(b.Ck)],m.prototype,"lineHeight",void 0),(0,s._)([(0,c.c)("lineHeight")],m.prototype,"writeLineHeight",null),m=r=(0,s._)([(0,h.j)("esri.symbols.TextSymbol")],m);const w=m},2283:(t,e,o)=>{o.d(e,{Z:()=>j});var r,s=o(43697),i=o(22974),l=o(70586),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(30556),h=o(31134),c=o(95868),d=o(37308),u=o(22303),b=o(96674);let m=r=class extends b.wq{constructor(){super(...arguments),this.color=new u.Z([0,0,0,1]),this.size=0}clone(){const t={color:(0,i.d9)(this.color),size:this.size};return new r(t)}};(0,s._)([(0,n.Cb)(d.a)],m.prototype,"color",void 0),(0,s._)([(0,n.Cb)(d.y)],m.prototype,"size",void 0),m=r=(0,s._)([(0,p.j)("esri.symbols.support.Symbol3DHalo")],m);var w=o(52879),g=o(2368);o(67676),o(80442);let v=class extends((0,g.J)(b.wq)){constructor(t){super(t),this.color=null}};(0,s._)([(0,n.Cb)(d.a)],v.prototype,"color",void 0),v=(0,s._)([(0,p.j)("esri.symbols.support.Symbol3DTextBackground")],v);var f,_=o(61565);let C=f=class extends c.Z{constructor(t){super(t),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(t){(0,l.pC)(t)&&(0,l.pC)(this._userSize)&&(t.size=this._userSize),this._set("font",t)}writeFont(t,e,o,r){const s={...r,textSymbol3D:!0};e.font=t.write({},s),delete e.font.size}get size(){return(0,l.pC)(this._userSize)?this._userSize:(0,l.pC)(this.font)&&null!=this.font.size?this.font.size:9}set size(t){this._userSize=t,(0,l.pC)(this.font)&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const t=new f({enabled:this.enabled,font:this.font&&(0,i.d9)(this.font),halo:this.halo&&(0,i.d9)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:(0,l.pC)(this.material)?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.d9)(this.background)});return t._userSize=this._userSize,t}static fromTextSymbol(t){return new f({font:(0,l.pC)(t.font)?t.font.clone():new h.Z,halo:S(t.haloColor,t.haloSize),horizontalAlignment:t.horizontalAlignment,lineHeight:t.lineHeight,material:t.color?new w.b({color:t.color.clone()}):null,text:t.text,verticalAlignment:t.verticalAlignment,background:t.backgroundColor?new v({color:t.backgroundColor.clone()}):null})}};function S(t,e){return t&&e>0?new m({color:(0,i.d9)(t),size:e}):null}(0,s._)([(0,n.Cb)({type:h.Z,json:{write:!0}})],C.prototype,"font",null),(0,s._)([(0,y.c)("font")],C.prototype,"writeFont",null),(0,s._)([(0,n.Cb)({type:m,json:{write:!0}})],C.prototype,"halo",void 0),(0,s._)([(0,n.Cb)({..._.x0,json:{default:"center",write:!0}})],C.prototype,"horizontalAlignment",void 0),(0,s._)([(0,n.Cb)({..._.Ck,json:{default:1,write:!0}})],C.prototype,"lineHeight",void 0),(0,s._)([(0,n.Cb)({type:w.b,json:{write:!0}})],C.prototype,"material",void 0),(0,s._)([(0,n.Cb)({type:v,json:{write:!0}})],C.prototype,"background",void 0),(0,s._)([(0,n.Cb)(d.y)],C.prototype,"size",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],C.prototype,"text",void 0),(0,s._)([(0,a.J)({Text:"text"},{readOnly:!0})],C.prototype,"type",void 0),(0,s._)([(0,n.Cb)({..._.Nj,json:{default:"baseline",write:!0}})],C.prototype,"verticalAlignment",void 0),C=f=(0,s._)([(0,p.j)("esri.symbols.TextSymbol3DLayer")],C);const j=C},44398:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(22303),l=o(22974),n=o(5600),a=o(75215),p=o(36030),y=o(52011),h=o(95868);let c=r=class extends h.Z{constructor(t){super(t),this.color=d.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:(0,l.d9)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.Cb)({type:i.Z,nonNullable:!0,json:{type:[a.z8],write:(t,e,o)=>e[o]=t.toArray(i.Z.AlphaMode.UNLESS_OPAQUE),default:()=>d.clone(),defaultEquals:t=>t.toCss(!0)===d.toCss(!0)}})],c.prototype,"color",void 0),(0,s._)([(0,p.J)({Water:"water"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],c.prototype,"waterbodySize",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:!0,default:null}})],c.prototype,"waveDirection",void 0),(0,s._)([(0,n.Cb)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],c.prototype,"waveStrength",void 0),c=r=(0,s._)([(0,y.j)("esri.symbols.WaterSymbol3DLayer")],c);const d=new i.Z([0,119,190]),u=c},59390:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(92604),l=o(70586),n=o(95330),a=o(5600),p=(o(67676),o(80442),o(75215),o(36030)),y=o(52011),h=o(65587),c=o(25929),d=o(89164),u=o(23203);let b=r=class extends d.Z{constructor(t){super(t),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const t=(0,l.pC)(this.portal)?this.portal:h.Z.getDefault(),e=t.user?t.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${e}:${t.url}`}read(t,e){this.portal=e?e.portal:void 0,super.read(t,e)}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(t){return this._fetchSymbol("webRef",t)}fetchCIMSymbol(t){return this._fetchSymbol("cimRef",t)}async _fetchSymbol(t,e){const r=(0,l.pC)(e)?e.cache:null,s=r?this._fetchCacheKey:null;if((0,l.pC)(r)){const t=r.get(s);if(t)return t.clone()}const a=await o.e(4499).then(o.bind(o,74499));(0,n.k_)(e);const p=a.resolveWebStyleSymbol(this,{portal:this.portal},t,e);p.catch((t=>{i.Z.getLogger(this.declaredClass).error("#fetchSymbol()","Failed to create symbol from style",t)}));const y=await p;return"webRef"===t&&"point-3d"===y.type||"cimRef"===t&&"cim"===y.type?((0,l.pC)(r)&&r.set(s,y.clone()),y):null}};(0,s._)([(0,a.Cb)({json:{write:!1}})],b.prototype,"color",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"styleName",void 0),(0,s._)([(0,a.Cb)({type:h.Z,json:{write:!1}})],b.prototype,"portal",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:c.r,write:c.w}})],b.prototype,"styleUrl",void 0),(0,s._)([(0,a.Cb)({type:u.p,json:{read:!1}})],b.prototype,"thumbnail",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"name",void 0),(0,s._)([(0,p.J)({styleSymbolReference:"web-style"},{readOnly:!0})],b.prototype,"type",void 0),(0,s._)([(0,a.Cb)()],b.prototype,"_fetchCacheKey",null),b=r=(0,s._)([(0,y.j)("esri.symbols.WebStyleSymbol")],b);const m=b},27539:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(67676),o(80442),o(75215),o(52011));let n=class extends s.wq{constructor(t){super(t),this.visible=!0}clone(){}};(0,r._)([(0,i.Cb)({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,r._)([(0,l.j)("esri.symbols.callouts.Callout3D")],n);const a=n},69496:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(22303),l=o(22974),n=o(70586),a=o(62357),p=o(5600),y=(o(75215),o(36030)),h=o(52011),c=o(27539),d=o(6352),u=o(37308);let b=r=class extends c.Z{constructor(t){super(t),this.type="line",this.color=new i.Z([0,0,0,1]),this.size=(0,a.Wz)(1),this.border=null}get visible(){return this.size>0&&(0,n.pC)(this.color)&&this.color.a>0}clone(){return new r({color:(0,l.d9)(this.color),size:this.size,border:(0,l.d9)(this.border)})}};(0,s._)([(0,y.J)({line:"line"},{readOnly:!0})],b.prototype,"type",void 0),(0,s._)([(0,p.Cb)(u.a)],b.prototype,"color",void 0),(0,s._)([(0,p.Cb)(u.y)],b.prototype,"size",void 0),(0,s._)([(0,p.Cb)({type:d.a,json:{write:!0}})],b.prototype,"border",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],b.prototype,"visible",null),b=r=(0,s._)([(0,h.j)("esri.symbols.callouts.LineCallout3D")],b);const m=b},84275:(t,e,o)=>{o.d(e,{Uy:()=>l,Y2:()=>a,gv:()=>n});var r=o(70586),s=o(27539),i=o(69496);function l(t){if(!t)return!1;const e=t.verticalOffset;return!!e&&!(e.screenLength<=0||(0,r.pC)(e.maxWorldLength)&&e.maxWorldLength<=0)}function n(t){if(!t)return!1;if(!t.supportsCallout||!t.supportsCallout())return!1;const e=t.callout;return!!e&&!!e.visible&&!!l(t)}const a={types:{key:"type",base:s.Z,typeMap:{line:i.Z}},json:{write:!0}}},56332:(t,e,o)=>{o.d(e,{Z:()=>v});var r=o(43697),s=o(22303),i=o(96674),l=o(22974),n=o(62357),a=o(5600),p=(o(75215),o(52011)),y=o(37308);let h=class extends i.wq{constructor(t){super(t),this.color=new s.Z([0,0,0,1]),this.extensionLength=0,this.size=(0,n.Wz)(1)}clone(){}cloneProperties(){return{color:(0,l.d9)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r._)([(0,a.Cb)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],h.prototype,"type",void 0),(0,r._)([(0,a.Cb)(y.a)],h.prototype,"color",void 0),(0,r._)([(0,a.Cb)({...y.y,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],h.prototype,"extensionLength",void 0),(0,r._)([(0,a.Cb)(y.y)],h.prototype,"size",void 0),h=(0,r._)([(0,p.j)("esri.symbols.edges.Edges3D")],h);const c=h;o(92604),o(67676),o(80442),o(20102);var d,u=o(36030);let b=d=class extends c{constructor(t){super(t),this.type="sketch"}clone(){return new d(this.cloneProperties())}};(0,r._)([(0,u.J)({sketch:"sketch"},{readOnly:!0})],b.prototype,"type",void 0),b=d=(0,r._)([(0,p.j)("esri.symbols.edges.SketchEdges3D")],b);const m=b;var w;let g=w=class extends c{constructor(t){super(t),this.type="solid"}clone(){return new w(this.cloneProperties())}};(0,r._)([(0,u.J)({solid:"solid"},{readOnly:!0})],g.prototype,"type",void 0),g=w=(0,r._)([(0,p.j)("esri.symbols.support.SolidEdges3D")],g);const v={types:{key:"type",base:c,typeMap:{solid:g,sketch:m}},json:{write:!0}}},32626:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(67676),o(80442),o(75215),o(52011));let n=class extends s.wq{constructor(t){super(t)}clone(){}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.symbols.patterns.LinePattern3D")],n);const a=n},4618:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(35454),l=o(5600),n=(o(67676),o(80442),o(75215),o(36030)),a=o(52011),p=o(32626);const y=(0,i.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let h=r=class extends p.Z{constructor(t){super(t),this.type="style",this.style="solid"}clone(){const t={style:this.style};return new r(t)}};(0,s._)([(0,l.Cb)({type:["style"]})],h.prototype,"type",void 0),(0,s._)([(0,n.J)(y),(0,l.Cb)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],h.prototype,"style",void 0),h=r=(0,s._)([(0,a.j)("esri.symbols.patterns.LineStylePattern3D")],h);const c=h},41776:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(67676),o(80442),o(75215),o(52011));let n=class extends s.wq{constructor(t){super(t)}clone(){}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.symbols.patterns.Pattern3D")],n);const a=n},74721:(t,e,o)=>{o.d(e,{Z:()=>p});var r,s=o(43697),i=o(5600),l=(o(67676),o(80442),o(75215),o(52011)),n=o(41776);let a=r=class extends n.Z{constructor(t){super(t),this.type="style",this.style="solid"}clone(){const t={style:this.style};return new r(t)}};(0,s._)([(0,i.Cb)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],a.prototype,"style",void 0),a=r=(0,s._)([(0,l.j)("esri.symbols.patterns.StylePattern3D")],a);const p=a},17495:(t,e,o)=>{o.d(e,{D:()=>a,q:()=>n});var r=o(32626),s=o(4618),i=o(41776),l=o(74721);const n={types:{key:"type",base:i.Z,typeMap:{style:l.Z}},json:{write:!0}},a={types:{key:"type",base:r.Z,typeMap:{style:s.Z}},json:{write:!0}}},71144:(t,e,o)=>{o.d(e,{Z:()=>y});var r,s=o(43697),i=o(15923),l=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(65587);let p=r=class extends i.Z{constructor(t){super(t),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.Cb)({type:String})],p.prototype,"name",void 0),(0,s._)([(0,l.Cb)({type:String})],p.prototype,"styleUrl",void 0),(0,s._)([(0,l.Cb)({type:String})],p.prototype,"styleName",void 0),(0,s._)([(0,l.Cb)({type:a.Z})],p.prototype,"portal",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.StyleOrigin")],p);const y=p},52879:(t,e,o)=>{o.d(e,{b:()=>y});var r,s=o(43697),i=o(96674),l=o(70586),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011)),p=o(37308);let y=r=class extends i.wq{constructor(t){super(t),this.color=null}clone(){const t={color:(0,l.pC)(this.color)?this.color.clone():null};return new r(t)}};(0,s._)([(0,n.Cb)(p.a)],y.prototype,"color",void 0),y=r=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DMaterial")],y)},7413:(t,e,o)=>{o.d(e,{Z:()=>y});var r,s=o(43697),i=o(96674),l=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(37308);let p=r=class extends i.wq{constructor(t){super(t),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new r({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.Cb)(a.y)],p.prototype,"screenLength",void 0),(0,s._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],p.prototype,"minWorldLength",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],p.prototype,"maxWorldLength",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DVerticalOffset")],p);const y=p},23203:(t,e,o)=>{o.d(e,{p:()=>a});var r,s=o(43697),i=o(15923),l=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=r=class extends i.Z{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,s._)([(0,l.Cb)({type:String})],a.prototype,"url",void 0),a=r=(0,s._)([(0,n.j)("esri.symbols.support.Thumbnail")],a)},50178:(t,e,o)=>{o.d(e,{ix:()=>s,l9:()=>i,rx:()=>l});var r=o(22303);const s=new r.Z("white"),i=(new r.Z("black"),new r.Z([255,255,255,0]));function l(t){return 0===t.r&&0===t.g&&0===t.b}},57742:(t,e,o)=>{o.d(e,{J:()=>r,k:()=>s});const r=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},37308:(t,e,o)=>{o.d(e,{a:()=>n,y:()=>a});var r=o(22303),s=o(62357),i=o(75215),l=o(65242);const n={type:r.Z,json:{type:[i.z8],default:null,read:{source:["color","transparency"],reader:function(t,e){const o=null!=e.transparency?(0,l.b)(e.transparency):1,s=e.color;return s&&Array.isArray(s)?new r.Z([s[0]||0,s[1]||0,s[2]||0,o]):null}},write:{target:{color:{type:[i.z8]},transparency:{type:i.z8}},writer:function(t,e){e.color=t.toJSON().slice(0,3);const o=(0,l.a)(t.a);0!==o&&(e.transparency=o)}}}},a={type:Number,cast:s.t_,json:{write:!0}}},45119:(t,e,o)=>{o.d(e,{$K:()=>i,Hc:()=>y,KW:()=>h,Uz:()=>p,w2:()=>c}),o(80442);var r=o(65617),s=o(60437);function i(t,{isPrimitive:e,width:o,depth:s,height:i}){const l=e?10:1;if(null==o&&null==i&&null==s)return[l*t[0],l*t[1],l*t[2]];const n=(0,r.f)(o,s,i);let a;for(let e=0;e<3;e++){const o=n[e];if(null!=o){a=o/t[e];break}}for(let e=0;e<3;e++)null==n[e]&&(n[e]=t[e]*a);return n}const l=(0,s.al)(-.5,-.5,-.5,.5,.5,.5),n=(0,s.al)(-.5,-.5,0,.5,.5,1),a=(0,s.al)(-.5,-.5,0,.5,.5,.5);function p(t){switch(t){case"sphere":case"cube":case"diamond":return l;case"cylinder":case"cone":case"inverted-cone":return n;case"tetrahedron":return a;default:return}}const y=["butt","square","round"],h=[...y,"none"],c=["miter","bevel","round"]},61565:(t,e,o)=>{o.d(e,{Ck:()=>a,JT:()=>i,Nj:()=>y,g6:()=>l,vC:()=>n,x0:()=>p});var r=o(22021),s=o(75215);const i=["none","underline","line-through"],l=["normal","italic","oblique"],n=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,s.q9)(t);return 0===e?1:(0,r.uZ)(e,.1,4)},nonNullable:!0},p={type:["left","right","center"],nonNullable:!0},y={type:["baseline","top","middle","bottom"],nonNullable:!0}},94075:(t,e,o)=>{o.d(e,{Ds:()=>n,KA:()=>l});var r=o(17452),s=o(25929);function i(t,e){return function(t){return!(null==t||"service"!==t.origin&&"portal-item"!==t.origin||"feature"!==t.layer?.type&&"stream"!==t.layer?.type)}(e)&&!(0,r.YP)(t)&&e?.layer?.parsedUrl?(0,r.v_)(e.layer.parsedUrl.path,"images",t):(0,s.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,o){return e.imageData?(0,r._l)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):i(e.url,o)}},write:{writer(t,e,o,i){!function(t,e,o,i){if((0,r.HK)(t)){const l=(0,r.sJ)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,o&&o.imageData===e.imageData&&o.url&&(0,s.w)(o.url,e,"url",i)}else(0,s.w)(t,e,"url",i)}(t,e,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,o){const r={};return e.imageData&&(r.imageData=e.imageData),e.contentType&&(r.contentType=e.contentType),e.url&&(r.url=i(e.url,o)),r}}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6210],{66210:(e,t,i)=>{i.r(t),i.d(t,{default:()=>bt});var r=i(43697),s=i(51773),n=i(70586),a=i(16453),o=i(95330),l=i(5600),u=(i(67676),i(80442),i(75215)),p=i(52011),c=i(30556),m=i(87085),d=i(66577),h=i(38171),y=i(30030),g=i(3172),f=i(20102),b=i(35454),R=i(22974),v=i(92604),w=i(17445),_=i(17452),S=i(71715),C=i(21506),I=i(35956),x=i(96674),F=i(40297);const T={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var D=i(93010),P=i(75509),N=i(27922);const O={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767]},j={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},V=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function M(e){return V.has(e.type)}function A(e,t){if(!e||!t)return(0,R.d9)(e||t);const i=(0,R.d9)(e);if(t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=null),J(i.rasterFunctionDefinition.arguments,t)}else"none"!==t.functionName.toLowerCase()&&(Z(i.functionArguments).Raster=t);return i}function J(e,t){for(const i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&J(e[i].arguments,t))}function E(e){const t=(0,R.d9)(T[e.functionName+"Function"]),i=e.functionArguments;for(const e in i)"raster"===e.toLowerCase()?(t.arguments[e]=E(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=H(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return t}function Z(e){const t=e?.Raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?Z(t.functionArguments):e}const q={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function z(e,t){const i=O[String(t).toLowerCase()];return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function L(e){if((0,n.Wi)(e))return;const{fields:t}=e,i=t&&t.find((e=>e&&e.name&&"value"===e.name.toLowerCase()));return i&&i.name}function k(e){const t=[];return e.forEach((e=>{const i=e;if(Array.isArray(i))t.push(i);else{if(null==i.min||null==i.max)return;const e=[i.min,i.max,i.avg||0,i.stddev||0];t.push(e)}})),t}function H(e){const t=[],i=[];return e.forEach((e=>{t.push(e[0]),i.push((0,D.io)([...e.slice(1),255]))})),{type:"RasterColormap",values:t,colors:i}}var U,Q=i(90578),G=i(94139);const B=(0,b.w)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),W=(0,b.w)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let $=U=class extends x.wq{constructor(e){super(e),this.ascending=!0,this.itemRenderingRule=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return W.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}readOperation(e,t){const i=t.mosaicOperation,r=t.mosaicOperator&&t.mosaicOperator.toLowerCase(),s=i||(r?B.toJSON(r):null);return B.fromJSON(s)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new U({ascending:this.ascending,itemRenderingRule:(0,R.d9)(this.itemRenderingRule),lockRasterIds:(0,R.d9)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,R.d9)(this.multidimensionalDefinition),objectIds:(0,R.d9)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,R.d9)(this.viewpoint),where:this.where})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],$.prototype,"ascending",void 0),(0,r._)([(0,S.r)("ascending",["ascending","sortAscending"])],$.prototype,"readAscending",null),(0,r._)([(0,l.Cb)({type:F.Z,json:{write:!0}})],$.prototype,"itemRenderingRule",void 0),(0,r._)([(0,l.Cb)({type:[u.z8],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],$.prototype,"lockRasterIds",void 0),(0,r._)([(0,l.Cb)({type:String,json:{type:W.jsonValues,write:{target:"mosaicMethod",writer:W.write}}})],$.prototype,"method",void 0),(0,r._)([(0,S.r)("method",["mosaicMethod","defaultMosaicMethod"])],$.prototype,"readMethod",null),(0,r._)([(0,l.Cb)({type:[I.Z],json:{write:!0}})],$.prototype,"multidimensionalDefinition",void 0),(0,r._)([(0,l.Cb)({type:[u.z8],json:{name:"fids",write:!0}})],$.prototype,"objectIds",void 0),(0,r._)([(0,l.Cb)({json:{type:B.jsonValues,read:{reader:B.read},write:{target:"mosaicOperation",writer:B.write}}})],$.prototype,"operation",void 0),(0,r._)([(0,S.r)("operation",["mosaicOperation","mosaicOperator"])],$.prototype,"readOperation",null),(0,r._)([(0,l.Cb)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],$.prototype,"sortField",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],$.prototype,"sortValue",void 0),(0,r._)([(0,Q.p)("sortValue")],$.prototype,"castSortValue",null),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],$.prototype,"viewpoint",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],$.prototype,"where",void 0),$=U=(0,r._)([(0,p.j)("esri.layers.support.MosaicRule")],$);const K=$;var X=i(69608);let Y=class extends x.wq{constructor(){super(...arguments),this.layer=null,this.adjustAspectRatio=void 0,this.compression=void 0,this.pixelType=void 0,this.lercVersion=2}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.layer.bandIds}set bandIds(e){this.layer&&(this.layer.bandIds=e)}get compressionQuality(){return this.layer?.compressionQuality}set compressionQuality(e){this.layer&&(this.layer.compressionQuality=e)}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer?.compressionTolerance}set compressionTolerance(e){this.layer&&(this.layer.compressionTolerance=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){return"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer?.interpolation}set interpolation(e){this.layer&&(this.layer.interpolation=e)}get noData(){return this.layer?.noData}set noData(e){this.layer&&(this.layer.noData=e)}get noDataInterpretation(){return this.layer?.noDataInterpretation}set noDataInterpretation(e){this.layer&&(this.layer.noDataInterpretation=e)}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("renderingRule"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("renderer"),e.commitProperty("definitionExpression"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const i=e.definitionExpression;return t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new K({where:i})),t}get renderingRule(){const e=this.layer;let t=e.renderingRule;const i=e.pixelFilter,r=!e.format||e.format.includes("jpg")||e.format.includes("png");return t=this._addResampleRasterFunction(t),r&&!i&&"vector-field"!==e.renderer?.type&&(t=this.combineRendererWithRenderingRule()),t}combineRendererWithRenderingRule(){const e=this.layer,{rasterInfo:t,renderingRule:i,renderer:r}=e;return r&&M(r)?A(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const i=t.convertToRFT,r=new F.Z;r.functionName="Stretch";const s=q[P.v.toJSON(e.stretchType)],n="u8",a={StretchType:s,Statistics:k(e.statistics),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===q.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):s===q.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,r.outputPixelType=n):s===q.minMax?r.outputPixelType=n:s===q.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=a,r.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new F.Z;if(i)n.functionArguments={ColorRamp:(0,D.pM)(s)};else{const i=(0,D.Uh)(s);if(i)n.functionArguments={colorRamp:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach((e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm")),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,D.Jw)(s,256)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new F.Z({rasterFunctionDefinition:E(n)}):n}return i?new F.Z({rasterFunctionDefinition:E(r)}):r}(e,t);case"class-breaks":return function(e,t){const i=[],r=[],s=[],a=[],o=1e-6,{pixelType:l,rasterAttributeTable:u}=t,p=(0,n.Wi)(u)?null:u.features,c=L(u);if(p&&Array.isArray(p)&&e.classBreakInfos){e.classBreakInfos.forEach(((t,i)=>{const r=t.symbol.color;let s;r.a&&p.forEach((n=>{s=n.attributes[e.field],(s>=t.minValue&&s<t.maxValue||i===e.classBreakInfos.length-1&&s>=t.minValue)&&a.push([n.attributes[c],r.r,r.g,r.b])}))}));const i=l?z(a,l):a,r=new F.Z;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new F.Z({rasterFunctionDefinition:E(r)}):r}e.classBreakInfos.forEach(((e,t)=>{const n=e.symbol&&e.symbol.color;n.a?(0===t?i.push(e.minValue,e.maxValue+o):i.push(e.minValue+o,e.maxValue+o),r.push(t),a.push([t,n.r,n.g,n.b])):s.push(e.minValue,e.maxValue)}));const m=l?z(a,l):a,d=new F.Z;d.functionName="Remap",d.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},d.variableName="Raster";const h=new F.Z;return h.functionName="Colormap",h.functionArguments={Colormap:m,Raster:d},t.convertToRFT?new F.Z({rasterFunctionDefinition:E(h)}):h}(e,t);case"unique-value":return function(e,t){const i=[],{pixelType:r,rasterAttributeTable:s}=t,a=(0,n.Wi)(s)?null:s.features,o=L(s),l=e.defaultSymbol?.color?.toRgb(),u=e.uniqueValueInfos;if(u)if(a){const t=new Map;u.forEach((e=>{const i=e.value,r=e.symbol.color;null!=i&&r&&r.a&&t.set(String(i),r.toRgb())}));const r=e.field;a.forEach((({attributes:e})=>{const s=String(e[r]),n=e[o];if(t.has(s)){const e=t.get(s);i.push([n,...e])}else l&&i.push([n,...l])}))}else for(let e=0;e<u.length;e++){const t=u[e],r=t.symbol.color,s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}const p=r&&i.length>0?z(i,r):i,c=new F.Z;return c.functionName="Colormap",c.functionArguments={},c.functionArguments.Colormap=p,c.variableName="Raster",t.convertToRFT?new F.Z({rasterFunctionDefinition:E(c)}):c}(e,t);case"raster-colormap":return function(e,t){const i=e.extractColormap();if(!i||0===i.length)return;const{pixelType:r}=t,s=r?z(i,r):i,n=new F.Z;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new F.Z({rasterFunctionDefinition:E(n)}):n}(e,t);case"vector-field":return function(e,t){const i=new F.Z;i.functionName="VectorFieldRenderer";const{dataType:r,bandProperties:s}=t,n="vector-uv"===r;let a,o;s&&2===s.length&&(a=s.map((e=>e.BandName.toLowerCase())).indexOf("magnitude"),o=s.map((e=>e.BandName.toLowerCase())).indexOf("direction")),-1!==a&&null!==a||(a=0,o=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find((e=>"Magnitude"===e.field)):new N.Z,c={magnitudeBandID:a,directionBandID:o,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:j[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};return i.functionArguments=c,t.convertToRFT?new F.Z({rasterFunctionDefinition:E(i)}):i}(e,t);case"raster-shaded-relief":return function(e,t){const i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new F.Z;const r=new F.Z;r.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,a={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(a.Azimuth=e.azimuth,a.Altitude=e.altitude),3===n&&(a.PSPower=e.pixelSizePower,a.PSZFactor=e.pixelSizeFactor),r.functionArguments=a,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?a.ColorRamp=(0,D.pM)(e.colorRamp):a.Colormap=(0,D.Jw)(e.colorRamp,256)),i?new F.Z({rasterFunctionDefinition:E(r)}):r}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:t.attributeTable,pixelType:t.pixelType,dataType:t.dataType,bandProperties:t.keyProperties?.BandProperties,convertColorRampToColormap:e.version<10.6,convertToRFT:!!i?.rasterFunctionDefinition,bandCount:t.bandCount}),i):i}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,i=this.layer.serviceRasterInfo.pixelSize;let r=new F.Z({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:i}});return r=e?.rasterFunctionDefinition?new F.Z({rasterFunctionDefinition:E(r)}):r,A(r,e)}};(0,r._)([(0,l.Cb)()],Y.prototype,"layer",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"adjustAspectRatio",void 0),(0,r._)([(0,c.c)("adjustAspectRatio")],Y.prototype,"writeAdjustAspectRatio",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"bandIds",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"compression",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"compressionQuality",null),(0,r._)([(0,c.c)("compressionQuality")],Y.prototype,"writeCompressionQuality",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"compressionTolerance",null),(0,r._)([(0,c.c)("compressionTolerance")],Y.prototype,"writeCompressionTolerance",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"format",null),(0,r._)([(0,l.Cb)({type:String,json:{read:{reader:X.c.read},write:{writer:X.c.write}}})],Y.prototype,"interpolation",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"noData",null),(0,r._)([(0,l.Cb)({type:String,json:{read:{reader:X.k.read},write:{writer:X.k.write}}})],Y.prototype,"noDataInterpretation",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"pixelType",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"lercVersion",void 0),(0,r._)([(0,c.c)("lercVersion")],Y.prototype,"writeLercVersion",null),(0,r._)([(0,l.Cb)({type:Number})],Y.prototype,"version",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"mosaicRule",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Y.prototype,"renderingRule",null),Y=(0,r._)([(0,p.j)("esri.layers.mixins.ExportImageServiceParameters")],Y);var ee=i(1231),te=i(99514),ie=i(29876),re=i(5847),se=i(48526),ne=i(88281),ae=i(99815),oe=i(75993),le=i(80676),ue=i(67058),pe=i(72758),ce=i(82526),me=i(11282),de=i(82971);let he=class extends x.wq{constructor(){super(...arguments),this.north=null,this.up=null,this.spatialReference=null}};(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],he.prototype,"north",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],he.prototype,"up",void 0),(0,r._)([(0,l.Cb)({type:de.Z,json:{write:!0}})],he.prototype,"spatialReference",void 0),he=(0,r._)([(0,p.j)("esri.rest.support.ImageAngleResult")],he);const ye=he;var ge=i(74889);let fe=class extends x.wq{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};(0,r._)([(0,l.Cb)({json:{write:!0}})],fe.prototype,"catalogItemVisibilities",void 0),(0,r._)([(0,l.Cb)({type:ge.default,json:{write:!0}})],fe.prototype,"catalogItems",void 0),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],fe.prototype,"location",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],fe.prototype,"name",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],fe.prototype,"objectId",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],fe.prototype,"processedValues",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],fe.prototype,"properties",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],fe.prototype,"value",void 0),fe=(0,r._)([(0,p.j)("esri.rest.support.ImageIdentifyResult")],fe);const be=fe;let Re=class extends x.wq{constructor(){super(...arguments),this.geometries=null}};(0,r._)([(0,l.Cb)({json:{write:!0}})],Re.prototype,"geometries",void 0),Re=(0,r._)([(0,p.j)("esri.rest.support.ImagePixelLocationResult")],Re);const ve=Re;let we=class extends x.wq{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,r._)([(0,l.Cb)({json:{write:!0}})],we.prototype,"attributes",void 0),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],we.prototype,"location",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],we.prototype,"locationId",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],we.prototype,"rasterId",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],we.prototype,"resolution",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],we.prototype,"pixelValue",void 0),we=(0,r._)([(0,p.j)("esri.rest.support.ImageSample")],we);const _e=we;let Se=class extends x.wq{constructor(){super(...arguments),this.samples=null}};(0,r._)([(0,l.Cb)({type:[_e],json:{write:!0}})],Se.prototype,"samples",void 0),Se=(0,r._)([(0,p.j)("esri.rest.support.ImageSampleResult")],Se);const Ce=Se;function Ie(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const i=[];null!=t.start&&i.push(t.start),null==t.end||i.includes(t.end)||i.push(t.end),e.time=i.join(",")}}async function xe(e,t,i){const r=(0,me.en)(e),s=t.geometry?[t.geometry]:[],a=await(0,ce.aX)(s),o=t.toJSON();Ie(o);const l=a&&a[0];(0,n.pC)(l)&&(o.geometry=l.toJSON());const u=(0,me.cv)({...r.query,f:"json",...o});return(0,me.lA)(u,i)}async function Fe(e,t,i){const r=(0,me.en)(e),s=t.geometry?[t.geometry]:[];return(0,ce.aX)(s).then((e=>{const s=t.toJSON(),a=e&&e[0];(0,n.pC)(a)&&(s.geometry=JSON.stringify(a.toJSON()));const o=(0,me.cv)({...r.query,f:"json",...s}),l=(0,me.lA)(o,i);return(0,g.default)(r.path+"/identify",l)})).then((e=>be.fromJSON(e.data)))}function Te(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:i}=t;return null!=e?i?{icsid:e,icsns:i}:{icsid:e}:{ics:t}}return e.toJSON()}function De(e,t){const i=Te(e),{icsid:r,icsns:s,wkid:n}=i;return null!=r?null==s||t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?`0:${r}`:JSON.stringify(i):n?n.toString():JSON.stringify(i)}i(10158);var Pe,Ne=i(4967),Oe=(i(67900),i(8744),i(98732),i(6570)),je=(i(9361),i(65091)),Ve=i(38913),Me=(i(58901),i(45091),i(57444)),Ae=(i(40330),i(98326),i(56545),i(41818)),Je=i(5396),Ee=(i(75935),i(28141),i(26059)),Ze=i(36679);let qe=Pe=class extends x.wq{constructor(){super(...arguments),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Pe((0,R.d9)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,r._)([(0,l.Cb)({type:[String],json:{name:"angleName",write:!0}})],qe.prototype,"angleNames",void 0),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],qe.prototype,"point",void 0),(0,r._)([(0,l.Cb)({type:de.Z,json:{write:!0}})],qe.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({type:u.z8,json:{write:!0}})],qe.prototype,"rasterId",void 0),qe=Pe=(0,r._)([(0,p.j)("esri.rest.support.ImageAngleParameters")],qe);const ze=qe;var Le,ke=i(92835),He=i(33955);let Ue=Le=class extends x.wq{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.renderingRule=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,He.Ji)(e),t[i]=e.toJSON())}clone(){return new Le((0,R.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,r._)([(0,l.Cb)({types:d.qM,json:{read:He.im}})],Ue.prototype,"geometry",void 0),(0,r._)([(0,c.c)("geometry")],Ue.prototype,"writeGeometry",null),(0,r._)([(0,l.Cb)({type:K,json:{write:!0}})],Ue.prototype,"mosaicRule",void 0),(0,r._)([(0,l.Cb)({type:F.Z,json:{write:!0}})],Ue.prototype,"renderingRule",void 0),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],Ue.prototype,"pixelSize",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],Ue.prototype,"raster",void 0),(0,r._)([(0,l.Cb)({type:ke.Z,json:{read:{source:"time"},write:{target:"time"}}})],Ue.prototype,"timeExtent",void 0),Ue=Le=(0,r._)([(0,p.j)("esri.rest.support.ImageHistogramParameters")],Ue);const Qe=Ue;var Ge;let Be=Ge=class extends x.wq{constructor(){super(...arguments),this.geometry=null,this.renderingRules=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,He.Ji)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=K.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=F.Z.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}writeRenderingRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRenderingRules(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map((e=>e.rasterFunctionDefinition||e.toJSON()))))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){const r=(0,n.pC)(e.start)?e.start.getTime():null,s=(0,n.pC)(e.end)?e.end.getTime():null;t[i]=null!=r?null!=s?`${r},${s}`:`${r}`:null}}clone(){return new Ge((0,R.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,r._)([(0,l.Cb)({json:{write:!0}})],Be.prototype,"geometry",void 0),(0,r._)([(0,c.c)("geometry")],Be.prototype,"writeGeometry",null),(0,r._)([(0,l.Cb)({type:K,json:{write:!0}})],Be.prototype,"mosaicRule",null),(0,r._)([(0,c.c)("mosaicRule")],Be.prototype,"writeMosaicRule",null),(0,r._)([(0,l.Cb)({type:F.Z,json:{write:!0}})],Be.prototype,"renderingRule",null),(0,r._)([(0,c.c)("renderingRule")],Be.prototype,"writeRenderingRule",null),(0,r._)([(0,l.Cb)({type:[F.Z],json:{write:!0}})],Be.prototype,"renderingRules",void 0),(0,r._)([(0,c.c)("renderingRules")],Be.prototype,"writeRenderingRules",null),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],Be.prototype,"pixelSize",void 0),(0,r._)([(0,c.c)("pixelSize")],Be.prototype,"writePixelSize",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"returnGeometry",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"returnCatalogItems",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"returnPixelValues",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],Be.prototype,"maxItemCount",void 0),(0,r._)([(0,l.Cb)({type:ke.Z,json:{write:{target:"time"}}})],Be.prototype,"timeExtent",void 0),(0,r._)([(0,c.c)("timeExtent")],Be.prototype,"writeTimeExtent",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],Be.prototype,"raster",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],Be.prototype,"viewId",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"processAsMultidimensional",void 0),Be=Ge=(0,r._)([(0,p.j)("esri.rest.support.ImageIdentifyParameters")],Be);const We=Be;var $e;let Ke=$e=class extends x.wq{constructor(){super(...arguments),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map((e=>e.toJSON()))}}clone(){return new $e({geometries:this.geometries.map((e=>e.clone())),rasterId:this.rasterId})}};(0,r._)([(0,l.Cb)({type:[G.Z],json:{write:!0}})],Ke.prototype,"geometries",void 0),(0,r._)([(0,c.c)("geometries")],Ke.prototype,"writeGeometry",null),(0,r._)([(0,l.Cb)({type:u.z8,json:{write:!0}})],Ke.prototype,"rasterId",void 0),Ke=$e=(0,r._)([(0,p.j)("esri.rest.support.ImagePixelLocationParameters")],Ke);const Xe=Ke;var Ye;let et=Ye=class extends x.wq{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,He.Ji)(e),t[i]=e.toJSON())}set locations(e){if(e?.length){const t=new je.Z({spatialReference:e[0].spatialReference});t.points=e.map((e=>[e.x,e.y])),this._set("locations",e),this.geometry=t}}clone(){return new Ye((0,R.d9)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,r._)([(0,l.Cb)({types:d.qM,json:{read:He.im}})],et.prototype,"geometry",void 0),(0,r._)([(0,c.c)("geometry")],et.prototype,"writeGeometry",null),(0,r._)([(0,l.Cb)()],et.prototype,"locations",null),(0,r._)([(0,l.Cb)({type:String,json:{type:X.c.jsonValues,read:X.c.read,write:X.c.write}})],et.prototype,"interpolation",void 0),(0,r._)([(0,l.Cb)({type:K,json:{write:!0}})],et.prototype,"mosaicRule",void 0),(0,r._)([(0,l.Cb)({type:[String],json:{write:!0}})],et.prototype,"outFields",void 0),(0,r._)([(0,l.Cb)({type:G.Z,json:{write:!0}})],et.prototype,"pixelSize",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],et.prototype,"raster",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],et.prototype,"returnFirstValueOnly",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],et.prototype,"sampleDistance",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],et.prototype,"sampleCount",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],et.prototype,"sliceId",void 0),(0,r._)([(0,l.Cb)({type:ke.Z,json:{read:{source:"time"},write:{target:"time"}}})],et.prototype,"timeExtent",void 0),et=Ye=(0,r._)([(0,p.j)("esri.rest.support.ImageSampleParameters")],et);const tt=et;var it=i(23808);const rt=(0,b.w)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"}),st=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),nt=(0,l.Eg)(u.q9,{min:0,max:255}),at=e=>{let t=class extends e{constructor(){super(...arguments),this._functionRasterInfos={},this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this._defaultServiceMosaicRule=null,this._serviceSourceType=null,this._serviceSupportsMosaicRule=null,this._rasterAttributeTableFieldPrefix="Raster.",this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new Y({layer:this}))}readDefaultServiceMosaicRule(e,t){return this._serviceSupportsMosaicRule?K.fromJSON(t):null}readServiceSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||(0,n.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.length<1||(0,n.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.forEach((t=>{e.set(t.name.toLowerCase().replace(/ /gi,"_"),t.name)})),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every((e=>"number"==typeof e)))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get fieldsIndex(){return this.fields?new te.Z(this.fields):null}set format(e){e&&st.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=K.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const i=e||t.mosaicRule;return i?K.fromJSON(i):this._isMosaicRuleSupported(t)?K.fromJSON(t):null}writeMosaicRule(e,t,i){let r=this.mosaicRule;const s=this.definitionExpression;r?s&&s!==r.where&&(r=r.clone(),r.where=s):s&&(r=new K({where:s})),this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}get multidimensionalInfo(){return(0,n.pC)(this.serviceRasterInfo)?this.serviceRasterInfo.multidimensionalInfo:null}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=nt(e))}readObjectIdField(e,t){if(!e){const i=t.fields.filter((e=>"esriFieldTypeOID"===e.type||"oid"===e.type));e=i&&i[0]&&i[0].name}return e}get parsedUrl(){return this.url?(0,_.mN)(this.url):null}set renderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("renderer",e)}readRenderer(e,t,i){const r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,y.ij)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),M(s)||v.Z.getLogger(this.declaredClass).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this._rasterAttributeTableFieldPrefix||"Raster.",t=new ee.Z({name:"Raster.ItemPixelValue",alias:"Item Pixel Value",domain:null,editable:!1,length:50,type:"string"}),i=new ee.Z({name:"Raster.ServicePixelValue",alias:"Service Pixel Value",domain:null,editable:!1,length:50,type:"string"}),r=new ee.Z({name:"Raster.ServicePixelValue.Raw",alias:"Raw Service Pixel Value",domain:null,editable:!1,length:50,type:"string"});let s=this.fields?(0,R.d9)(this.fields):[];s.push(i),this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0&&s.push(t),this.version>=10.4&&(0,n.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.some((e=>"none"===e.name.toLowerCase()))&&s.push(r),(0,n.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.filter((e=>"none"!==e.name.toLowerCase())).forEach((e=>{s.push(new ee.Z({name:"Raster.ServicePixelValue."+e.name,alias:e.name,domain:null,editable:!1,length:50,type:"string"}))})),this._isVectorDataSet()&&(s.push(new ee.Z({name:"Raster.Magnitude",alias:"Magnitude",domain:null,editable:!1,type:"double"})),s.push(new ee.Z({name:"Raster.Direction",alias:"Direction",domain:null,editable:!1,type:"double"})));const{attributeTable:a}=this.rasterInfo;if((0,n.pC)(a)){const t=a.fields.filter((e=>"esriFieldTypeOID"!==e.type&&"value"!==e.name.toLowerCase())).map((t=>{const i=(0,R.d9)(t);return i.name=e+t.name,i}));s=s.concat(t)}return s}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=F.Z.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}readRenderingRule(e,t){const i=t.rasterFunctionInfos;return t.renderingRule||i&&i.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?F.Z.fromJSON({rasterFunctionDefinition:t.renderingRule}):F.Z.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}writeRenderingRule(e,t,i){const r=e.toJSON();r.rasterFunctionDefinition?t[i]=r.rasterFunctionDefinition:t[i]=r}readSpatialReference(e,t){const i=e||t.extent.spatialReference;return i?de.Z.fromJSON(i):null}readPixelType(e){return rt.fromJSON(e)||e}writePixelType(e,t,i){((0,n.Wi)(this.serviceRasterInfo)||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[i]=rt.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e;if(!this._isPicture()&&this.renderer&&this.symbolizer&&!this.pixelFilter){const r=JSON.stringify(this._cachedRendererJson)!==JSON.stringify(this.renderer.toJSON()),s=this._rasterJobHandler.instance,{bandIds:n}=this;if(s){r&&(this.symbolizer.bind(),await s.updateSymbolizer(this.symbolizer,t),this._cachedRendererJson=this.renderer.toJSON());const a=await s.symbolize({bandIds:n,...e},t);i={extent:e.extent,pixelBlock:a}}else i={extent:e.extent,pixelBlock:this.symbolizer.symbolize({bandIds:n,...e})}}return i}destroy(){this._shutdownJobHandler()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}async computeAngles(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsComputeAngles)throw new f.Z("imagery-layer:compute-angles","this operation is not supported on the input image service");return e=(0,u.TJ)(ze,e).clone(),async function(e,t,i){const r=t.toJSON();(0,n.pC)(r.angleName)&&(r.angleName=r.angleName.join(",")),(0,n.pC)(t.point)&&t.point.spatialReference?.imageCoordinateSystem&&(r.point.spatialReference=Te(t.point.spatialReference)),(0,n.pC)(t.spatialReference)&&t.spatialReference.imageCoordinateSystem&&(r.spatialReference=De(t.spatialReference));const s=(0,me.en)(e),a=(0,me.cv)({...s.query,f:"json",...r}),o=(0,me.lA)(a,i),{data:l}=await(0,g.default)(`${s.path}/computeAngles`,o);return l.spatialReference=l.spatialReference?null!=l.spatialReference.geodataXform?new de.Z({wkid:0,imageCoordinateSystem:l.spatialReference}):de.Z.fromJSON(l.spatialReference):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new ye(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsComputePixelLocation)throw new f.Z("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,u.TJ)(Xe,e).clone(),async function(e,t,i){const r=t.toJSON(),{geometries:s}=t;for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(r.geometries.geometries[e].spatialReference=Te(s[e].spatialReference));const n=(0,me.en)(e),a=(0,me.cv)({...n.query,f:"json",...r}),o=(0,me.lA)(a,i),{data:l}=await(0,g.default)(`${n.path}/computePixelLocation`,o);return ve.fromJSON(l)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsComputeHistograms)throw new f.Z("imagery-layer:compute-histograms","this operation is not supported on the input image service");e=(0,u.TJ)(Qe,e).clone();const{raster:i,mosaicRule:r,renderingRule:s}=this;return s&&null==e.renderingRule&&(e.renderingRule=s),r&&null==e.mosaicRule&&(e.mosaicRule=r),i&&null==e.raster&&(e.raster=i),async function(e,t,i){const r=await xe(e,t,i),s=(0,me.en)(e),{data:n}=await(0,g.default)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsComputeStatisticsHistograms)throw new f.Z("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");e=(0,u.TJ)(Qe,e).clone();const{raster:i,mosaicRule:r,renderingRule:s}=this;return s&&null==e.renderingRule&&(e.renderingRule=s),r&&null==e.mosaicRule&&(e.mosaicRule=r),i&&null==e.raster&&(e.raster=i),async function(e,t,i){const r=await xe(e,t,i),s=(0,me.en)(e),{data:n}=await(0,g.default)(`${s.path}/computeStatisticsHistograms`,r),{statistics:a}=n;return a?.length&&a.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:a,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return(0,n.pC)(t)?t.get(e):void 0}getFieldDomain(e,t){const i=this.getField(e);return i?i.domain:null}async fetchImage(e,t,i,r={}){if(null==e||null==t||null==i)throw new f.Z("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required.");if(this.renderer||this.symbolizer){const e=await this.generateRasterInfo(this.renderingRule,{signal:r.signal});e&&(this.rasterInfo=e)}const s=this.getExportImageServiceParameters(e,t,i,r.timeExtent);if(null==s){if(r.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=i,{imageOrCanvasElement:e}}const s=this.bandIds?.length||this.rasterInfo.bandCount,n=t*i,{pixelType:a}=this.rasterInfo,o=[];for(let e=0;e<s;e++)o.push(re.Z.createEmptyBand(a,n));return{pixelData:{pixelBlock:new re.Z({width:t,height:i,pixels:o,mask:new Uint8Array(n),pixelType:a}),extent:e}}}const n={imageServiceParameters:s,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:r.requestAsImageElement&&!this.pixelFilter||!1,signal:r.signal};return this._requestArrayBuffer(n)}fetchKeyProperties(e){return(0,g.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.renderingRule:null})}).then((e=>e.data))}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new f.Z("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,g.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.renderingRule:null})}).then((e=>ge.default.fromJSON(e.data)))}getCatalogItemRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return async function(e,t,i){const r=(0,me.en)(e),s=(0,me.cv)({...r.query,f:"json"}),n=(0,me.lA)(s,i),a=`${r.path}/${t}/info`,o=(0,g.default)(`${a}`,n),l=(0,g.default)(`${a}/keyProperties`,n),u=await Promise.allSettled([o,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))));const d=Oe.Z.fromJSON(p.extent),h=Math.ceil(d.width/p.pixelSizeX-.1),y=Math.ceil(d.height/p.pixelSizeY-.1),f=d.spatialReference,b=new G.Z({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:f}),R=p.histograms?.length?p.histograms:null,v=new Ze.Z({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new se.Z({width:h,height:y,bandCount:p.bandCount,extent:d,spatialReference:f,pixelSize:b,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:R,keyProperties:c,storageInfo:v})}(this.parsedUrl.path,e,i)}async getCatalogItemICSInfo(e,t){const{data:i}=await(0,g.default)(this.parsedUrl.path+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),r=i&&i.ics;if(!r)return;let s=null;try{s=(await(0,g.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!s||!s.spatialReference)return{ics:r,icsToPixelTransform:null,icsExtent:null,northDirection:null};const n=this.version>=10.7?(0,g.default)(this.parsedUrl.path+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>({}))):{},a=s.spatialReference,o={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[s]}),inSR:a.wkid||JSON.stringify(a),outSR:"0:"+e},l=(0,g.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(o),...t}).then((e=>e.data)).catch((()=>({}))),u=(s.xmin+s.xmax)/2,p=(s.ymax-s.ymin)/6,c=s.ymin+p,m=[];for(let e=0;e<5;e++)m.push({x:u,y:c+p*e});const d={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:m}),inSR:a.wkid||JSON.stringify(a),outSR:"0:"+e},h=(0,g.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(d),...t}).then((e=>e.data)).catch((()=>({}))),y=await Promise.all([n,l,h]);let f=y[0].ipxf;if(null==f){const e=r.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const b=Oe.Z.fromJSON(y[1]&&y[1].geometries&&y[1].geometries[0]);b&&(b.spatialReference=new de.Z({wkid:0,imageCoordinateSystem:r}));const R=y[2].geometries?y[2].geometries.filter((e=>null!=e&&null!=e.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y)):[],v=R.length;if(v<3)return{ics:r,icsToPixelTransform:f,icsExtent:b,northDirection:null};let w=0,_=0,S=0,C=0;for(let e=0;e<v;e++)w+=R[e].x,_+=R[e].y,S+=R[e].x*R[e].x,C+=R[e].x*R[e].y;const I=(v*C-w*_)/(v*S-w*w);let x=0;const F=R[4].x>R[0].x,T=R[4].y>R[0].y;return I===1/0?x=T?90:270:0===I?x=F?0:180:I>0?x=F?180*Math.atan(I)/Math.PI:180*Math.atan(I)/Math.PI+180:I<0&&(x=T?180+180*Math.atan(I)/Math.PI:360+180*Math.atan(I)/Math.PI),{ics:r,icsToPixelTransform:f,icsExtent:b,northDirection:x}}async generateRasterInfo(e,t){if(this.serviceRasterInfo&&(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e)))return this.serviceRasterInfo;const i=function(e){if(!e)return null;const t=JSON.stringify(e).match(/"rasterFunction":"(.*?")/gi)?.map((e=>e.replace('"rasterFunction":"',"").replace('"',"")));return t?t.join("/"):null}(e);if(this._functionRasterInfos[i])return this._functionRasterInfos[i];const r=this._generateRasterInfo(e,t);this._functionRasterInfos[i]=r;try{return await r}catch{return this._functionRasterInfos[i]=null,null}}getExportImageServiceParameters(e,t,i,r){const s=De((e=e.clone().shiftCentralMeridian()).spatialReference,this.parsedUrl.path);this.pixelType!==this.serviceRasterInfo.pixelType&&(this.exportImageServiceParameters.pixelType=this.pixelType);const a=this.exportImageServiceParameters.toJSON(),{bandIds:o,noData:l}=a;let{renderingRule:u}=a;const p=this.renderingRule?.rasterFunctionDefinition,c=!this.renderer||"raster-stretch"===this.renderer.type;if(o?.length&&this._hasRenderingRule(this.renderingRule)&&!p&&c){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:o}};if("Stretch"===u.rasterFunction)e.rasterFunctionArguments.Raster=u.rasterFunctionArguments.Raster,u.rasterFunctionArguments.Raster=e;else if("Colormap"===u.rasterFunction){const t=u.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,u.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=u,u=e;a.bandIds=void 0}else a.bandIds=o?.join(",");l instanceof Array&&l.length>0&&(a.noData=l.join(","));const m=this._serviceSupportsMosaicRule?this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,r):null;if(a.mosaicRule=(0,n.pC)(m)?JSON.stringify(m):null,this.multidimensionalSubset&&(0,n.pC)(m)&&m.multidimensionalDefinition&&(0,ae.nb)(m.multidimensionalDefinition,this.multidimensionalSubset))return null;a.renderingRule=this._getRenderingRuleString(F.Z.fromJSON(u));const d={};if(r){const{start:e,end:t}=r.toJSON();e&&t&&e===t?d.time=""+e:null==e&&null==t||(d.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:s,imageSR:s,size:t+","+i,...a,...d}}async getSamples(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsGetSamples)throw new f.Z("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,u.TJ)(tt,e).clone();const{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,i){const r=t.toJSON();Ie(r),r.outFields?.length&&(r.outFields=r.outFields.join(","));const s=(await(0,ce.aX)(t.geometry))?.[0];(0,n.pC)(s)&&(r.geometry=s.toJSON());const a=(0,me.en)(e),o=(0,me.cv)({...a.query,f:"json",...r}),l=(0,me.lA)(o,i),{data:u}=await(0,g.default)(`${a.path}/getSamples`,l),p=u?.samples?.map((e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map((e=>Number(e)));return{...e,pixelValue:t}}));return Ce.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsIdentify)throw new f.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");e=(0,u.TJ)(We,e).clone();const{raster:i,mosaicRule:r,renderingRule:s}=this;if(s&&null==e.renderingRule&&(e.renderingRule=s),r&&null==e.mosaicRule){const t=this._combineMosaicRuleWithTimeExtent(r,e.timeExtent);e.mosaicRule=(0,n.Wg)(t)}return i&&null==e.raster&&(e.raster=i),Fe(this.url,e,this._getRequestOptions(t))}createQuery(){const e=new Me.Z;return e.outFields=["*"],e.returnGeometry=!0,e.where=this.definitionExpression||"1=1",e}async queryRasters(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Ne.e)(this.url,e,t)}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Je.G)(this.url,e,t)}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Ae.P)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new f.Z("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:a}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,l=null,u=null;const p="raster.servicepixelvalue",c=this._rasterFunctionNamesIndex;if((0,n.pC)(e.outFields)&&(o=e.outFields.some((e=>!e.toLowerCase().includes(p))),this.version>=10.4)){const t=e.outFields.filter((e=>e.toLowerCase().includes(p)&&e.length>p.length)).map((e=>{const t=e.slice(p.length+1);return[this._updateRenderingRulesFunctionName(t,c),t]}));l=t.map((e=>new F.Z({functionName:e[0]}))),u=t.map((e=>e[1])),0===l.length?this.renderingRule?(l.push(this.renderingRule),u.push(this.renderingRule.functionName)):l=null:this.renderingRule&&!l.some((e=>e.functionName===this.renderingRule.functionName))&&(l.push(this.renderingRule),u.push(this.renderingRule.functionName))}const m=(0,n.Wi)(e.outSpatialReference)||e.outSpatialReference.equals(this.spatialReference),d=e.timeExtent||this.timeExtent,h=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d),y=this._getQueryParams({geometry:e.geometry,timeExtent:d,mosaicRule:h,renderingRule:this.version<10.4?this.renderingRule:null,renderingRules:l,pixelSize:i,returnCatalogItems:o,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete y.f;const g=new We(y);try{await this.generateRasterInfo(this.renderingRule);const i=await Fe(this.url,g,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,l=i.value.toLowerCase().includes("nodata");if(!o||m||!i?.catalogItems?.features.length||!a&&l)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:a,templateFields:s});const p=this.objectIdField||"ObjectId",c=i.catalogItems.features,d=c.map((e=>e.attributes?.[p])),h=new Me.Z({objectIds:d,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[p]}),y=await this.queryRasters(h);return y?.features?.length&&y.features.forEach((t=>{c.forEach((i=>{i.attributes[p]===t.attributes[p]&&(i.geometry=new Ve.Z(t.geometry),(0,n.pC)(e.outSpatialReference)&&(i.geometry.spatialReference=e.outSpatialReference))}))})),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:a,templateFields:s})}catch{throw new f.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const i=(0,g.default)(this.parsedUrl.path+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>e.data?.statistics)),r=(0,g.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>e.data?.histograms)),s=await Promise.all([i,r]);return s[0]&&s[0].forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:s[0]||null,histograms:s[1]||null}}async createFlowMesh(e,t){const i=this._rasterJobHandler.instance;return i?i.createFlowMesh(e,t):(0,it.GE)(e.meshType,e.simulationSettings,e.flowData,(0,n.pC)(t.signal)?t.signal:(new AbortController).signal)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,i=(0,n.pC)(this.serviceRasterInfo)?Promise.resolve(this.serviceRasterInfo):(0,Ee.g)(this.parsedUrl.path,t,{signal:e,query:this._getQueryParams()}).then((e=>(this._set("serviceRasterInfo",e),e))),r=this._hasRenderingRule(this.renderingRule)?this.generateRasterInfo(this.renderingRule,{signal:e}):null,s=this._getRasterFunctionInfos();return Promise.all([i,r,s]).then((e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.renderer&&!this._isSupportedRenderer(this.renderer)&&(this._set("renderer",null),v.Z.getLogger(this.declaredClass).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("renderer",this._configRenderer(this.renderer)),this.addHandles([(0,w.YP)((()=>this.renderingRule),(e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this.generateRasterInfo(e).then((e=>{e&&(this.rasterInfo=e)}))})),(0,w.YP)((()=>this.multidimensionalSubset),((e,t)=>{if(this.exportImageServiceParameters&&this.mosaicRule&&this.mosaicRule.multidimensionalDefinition?.length){const{multidimensionalDefinition:i}=this.mosaicRule;(0,n.pC)(i)&&(0,ae.nb)(i,e)!==(0,ae.nb)(i,t)&&(this.exportImageServiceParameters.version+=1)}}))]);const{serviceRasterInfo:t}=this;(0,n.pC)(t.multidimensionalInfo)&&this._updateMultidimensionalDefinition(t)}))}_combineMosaicRuleWithTimeExtent(e,t){const i=this.timeInfo;if((0,n.Wi)(e)||(0,n.Wi)(this.multidimensionalInfo)||(0,n.Wi)(t)||(0,n.Wi)(i?.startField))return e;const{startField:r}=i,s=this.multidimensionalInfo.variables.some((e=>e.dimensions.some((e=>e.name===r))))?r:"StdTime";if(e=e.clone(),"mosaic-dataset"===this._serviceSourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter((e=>e.dimensionName!==s)),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const a=e.multidimensionalDefinition.filter((e=>e.dimensionName===s)),o=(0,n.pC)(t.start)?t.start.getTime():null,l=(0,n.pC)(t.end)?t.end.getTime():null,u=null==o||null==l||o===l,p=u?[o||l]:[[o,l]],c=this.version>=10.8;if(a.length)a.forEach((e=>{e.dimensionName===s&&(c?(e.dimensionName=null,e.isSlice=null,e.values=null):(e.isSlice=u,e.values=p))}));else if(!c){const t=e.multidimensionalDefinition.filter((e=>null!=e.variableName&&null==e.dimensionName));t.length?t.forEach((e=>{e.dimensionName=s,e.isSlice=u,e.values=p})):e.multidimensionalDefinition.push(new I.Z({variableName:"",dimensionName:s,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return(0,n.Wi)(e)?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter((e=>!(!e.variableName&&!e.dimensionName))),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this._serviceSourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(await this._fetchCapabilities(t?.signal),!this.capabilities.operations.supportsQuery)throw new f.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=(0,n.pC)(e)?(0,u.TJ)(Me.Z,e):this.createQuery(),t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:e,requestOptions:t}}async _initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new ne.Z;this._rasterJobHandler.connectionPromise=e.initialize().then((()=>{this._rasterJobHandler.instance=e}),(()=>null)),await this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null}_isSupportedRenderer(e){const{rasterInfo:t,renderingRule:i}=this;return"unique-value"===e.type&&this._hasRenderingRule(i)&&1===t.bandCount&&["u8","s8"].includes(t.pixelType)||(0,ue.U0)(this.rasterInfo).includes(this.renderer.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:i,ssl:r}=await(0,g.default)(this.parsedUrl.path,{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,r&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map((e=>e.trim())).indexOf("tilesonly")>-1)throw new f.Z("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&e.timeInfo&&!(e.objectIdField&&e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if((0,n.Wi)(e))return!1;const{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){if(!this._isPicture()&&!this.pixelFilter||this._isVectorDataSet()){if(!this.bandIds&&this.rasterInfo.bandCount>=3){const e=(0,ue.YD)(this.rasterInfo);!e||3===this.rasterInfo.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=(0,ue.Ob)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.renderingRule?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}));const t=(0,ue.ol)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=t,this.symbolizer.rasterInfo=this.rasterInfo):this.symbolizer=new pe.Z({rendererJSON:t,rasterInfo:this.rasterInfo}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:(0,n.pC)(e.pixelBlock)&&e.pixelBlock.clone()}}_getQueryParams(e){(0,n.pC)(e?.renderingRule)&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):(0,oe.J)(e,t,i)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;return this.loaded?t:t&&this.version>=10.3?1===t.length&&"none"===t[0].name.toLowerCase()?t:(await(0,g.default)(this.parsedUrl.path+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e})).data?.rasterFunctionInfos:null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:i,signal:r}=e;if(i&&this._canRequestImageElement(t.format))return{imageOrCanvasElement:(await(0,g.default)(this.parsedUrl.path+"/exportImage",{responseType:"image",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:r})).data,params:t};const s=this._initJobHandler(),n=(0,g.default)(this.parsedUrl.path+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:r}),a=(await Promise.all([n,s]))[0].data,o=t.format||"jpgpng";let l=o;if("bsq"!==l&&"bip"!==l&&(l=(0,oe.y)(a)),!l)throw new f.Z("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(a)));const u={signal:r},p="gif"===o||"bmp"===o||o.includes("png")&&("png"===l||"jpg"===l)?(0,oe.J)(a,{useCanvas:!0,...t},u):this._decodePixelBlock(a,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:o},u);return{pixelData:{pixelBlock:await p,extent:t.extent},params:t}}_generateRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return(0,Ee.N)(this.parsedUrl.path,e,i)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this._defaultServiceMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;const t=(0,ae.Tj)(e,{multidimensionalSubset:this.multidimensionalSubset});if((0,n.pC)(t)&&t.length>0){this.mosaicRule=this.mosaicRule||new K;const e=this.mosaicRule.multidimensionalDefinition;(!e||e&&e.length<=0)&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:a,templateFields:o}=t,l=e.processedValues;let u=e.catalogItems&&e.catalogItems.features,p=e.properties&&e.properties.Values&&e.properties.Values.map((e=>e.replace(/ /gi,", ")))||[];const c=this.objectIdField||"ObjectId",m="string"==typeof i&&i.toLowerCase().includes("nodata"),d=[];if(i&&!u&&!m){const e={};e[c]=0,p=[i],u=[new h.Z(this.fullExtent,null,e)]}if(!u)return[];let y,g,f;this._updateResponseFieldNames(u,o),m&&!s&&(u=[]);for(let e=0;e<u.length;e++){if(y=u[e],null!=i){if(g=p[e],f=this.renderingRule&&l&&l.length>0&&r&&r.length>0&&r.includes(this.renderingRule.functionName)?l[r.indexOf(this.renderingRule.functionName)]:i,"nodata"===g.toLowerCase()&&!s)continue;const t="Raster.ItemPixelValue",a="Raster.ServicePixelValue";y.attributes[t]=g,y.attributes[a]=f,this._updateFeatureWithMagDirValues(y,g);const o=this.fields&&this.fields.length>0;let u=this.renderingRule&&(0,n.pC)(this.serviceRasterInfo.attributeTable)?o?g:i:f;this.renderingRule||(u=o?g:i),this._updateFeatureWithRasterAttributeTableValues(y,u)}if(y.sourceLayer=y.layer=this,a&&this._updateFeatureWithDomainValues(y),r&&l&&r.length===l.length)for(let e=0;e<r.length;e++){const t="Raster.ServicePixelValue."+r[e];y.attributes[t]=l[e]}d.push(u[e])}return d}_updateFeatureWithRasterAttributeTableValues(e,t){const i=this.rasterInfo&&this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if((0,n.Wi)(i))return;const{features:r,fields:s}=i,a=s.map((e=>e.name)).filter((e=>"value"===e.toLowerCase())),o=a&&a[0];if(!o)return;const l=r.filter((e=>e.attributes[o]===(null!=t?parseInt(t,10):null)));l&&l[0]&&s.forEach((t=>{const i=this._rasterAttributeTableFieldPrefix+t.name;e.attributes[i]=l[0].attributes[t.name]}))}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const i=t.split(/,\s*/).map((e=>parseFloat(e))),r=i.map((e=>[e])),s=i.map((e=>({minValue:e,maxValue:e,noDataValue:null}))),n=new re.Z({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new Oe.Z(0,0,0,0,this.spatialReference)});const a="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,le.Tg)([n.pixels[0][0],n.pixels[1][0]]);e.attributes["Raster.Magnitude"]=a[0],e.attributes["Raster.Direction"]=a[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter((e=>e.domain&&"coded-value"===e.domain.type));null!=t&&t.forEach((t=>{const i=e.attributes[t.name];if(null!=i){const r=t.domain.codedValues.find((e=>e.code===i));r&&(e.attributes[t.name]=r.name)}}))}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const i=this.fieldsIndex;(0,n.Wi)(i)||e.forEach((e=>{if(e&&e.attributes)for(const r of t)if(i.has(r)){const t=i.get(r).name;t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}}))}_getRenderingRuleString(e){if(this._hasRenderingRule(e)){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRenderingRule(e){return e&&e.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const i=e.toLowerCase().replace(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e&&e.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map((e=>e.trim())):["image","catalog"],{currentVersion:i,advancedQueryCapabilities:r,maxRecordCount:s}=e,n=t.includes("image"),a="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!!(e.spatialReference||e.extent&&e.extent.spatialReference),l=t.includes("edit");return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:n,supportsExportImage:n,supportsIdentify:n,supportsMeasure:t.includes("mensuration")&&o,supportsDownload:t.includes("download"),supportsQuery:t.includes("catalog")&&e.fields&&e.fields.length>0,supportsGetSamples:i>=10.2&&n,supportsProject:i>=10.3&&n,supportsComputeStatisticsHistograms:i>=10.4&&n,supportsQueryBoundary:i>=10.6&&n,supportsCalculateVolume:i>=10.7&&a,supportsComputePixelLocation:i>=10.7&&t.includes("catalog"),supportsComputeAngles:i>=10.91,supportsAdd:l,supportsDelete:l,supportsEditing:l,supportsUpdate:l,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryTopFeatures:!1},query:{maxRecordCount:s,maxRecordCountFactor:void 0,supportsStatistics:!!r?.supportsStatistics,supportsOrderBy:!!r?.supportsOrderBy,supportsDistinct:!!r?.supportsDistinct,supportsPagination:!!r?.supportsPagination,supportsStandardizedQueriesOnly:!!r?.useStandardizedQueries,supportsPercentileStatistics:!!r?.supportsPercentileStatistics,supportsCentroid:!!r?.supportsReturningGeometryCentroid,supportsDistance:!!r?.supportsQueryWithDistance,supportsExtent:!!r?.supportsReturningQueryExtent,supportsGeometryProperties:!!r?.supportsReturningGeometryProperties,supportsHavingClause:!!r?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:!1,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!r?.supportsDefaultSR,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}}}};return(0,r._)([(0,l.Cb)()],t.prototype,"_functionRasterInfos",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"_rasterJobHandler",void 0),(0,r._)([(0,l.Cb)({dependsOn:["_serviceSupportsMosaicRule"]})],t.prototype,"_defaultServiceMosaicRule",void 0),(0,r._)([(0,S.r)("_defaultServiceMosaicRule",["defaultMosaicMethod"])],t.prototype,"readDefaultServiceMosaicRule",null),(0,r._)([(0,l.Cb)()],t.prototype,"_cachedRendererJson",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"_serviceSourceType",void 0),(0,r._)([(0,S.r)("_serviceSourceType",["serviceSourceType","fields"])],t.prototype,"readServiceSourceType",null),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"_serviceSupportsMosaicRule",void 0),(0,r._)([(0,S.r)("_serviceSupportsMosaicRule",["currentVersion","fields"])],t.prototype,"readServiceSupportsMosaicRule",null),(0,r._)([(0,l.Cb)()],t.prototype,"_rasterAttributeTableFieldPrefix",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"_rasterFunctionNamesIndex",null),(0,r._)([(0,l.Cb)()],t.prototype,"adjustAspectRatio",void 0),(0,r._)([(0,l.Cb)({type:[u.z8],json:{write:!0}})],t.prototype,"bandIds",void 0),(0,r._)([(0,S.r)("bandIds")],t.prototype,"readBandIds",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],t.prototype,"capabilities",void 0),(0,r._)([(0,S.r)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],t.prototype,"readCapabilities",null),(0,r._)([(0,l.Cb)({type:Number})],t.prototype,"compressionQuality",void 0),(0,r._)([(0,c.c)("compressionQuality")],t.prototype,"writeCompressionQuality",null),(0,r._)([(0,l.Cb)({type:Number})],t.prototype,"compressionTolerance",void 0),(0,r._)([(0,c.c)("compressionTolerance")],t.prototype,"writeCompressionTolerance",null),(0,r._)([(0,l.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,constructOnly:!0})],t.prototype,"exportImageServiceParameters",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"rasterInfo",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:[ee.Z]})],t.prototype,"fields",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"fieldsIndex",null),(0,r._)([(0,l.Cb)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"],json:{write:!0}})],t.prototype,"format",null),(0,r._)([(0,S.r)("service","format",["serviceDataType"])],t.prototype,"readFormat",null),(0,r._)([(0,l.Cb)({type:Oe.Z})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"hasMultidimensions",void 0),(0,r._)([(0,l.Cb)({json:{read:{source:"maxImageHeight"}}})],t.prototype,"imageMaxHeight",void 0),(0,r._)([(0,l.Cb)({json:{read:{source:"maxImageWidth"}}})],t.prototype,"imageMaxWidth",void 0),(0,r._)([(0,l.Cb)({type:String,json:{type:X.c.jsonValues,read:X.c.read,write:X.c.write}})],t.prototype,"interpolation",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"minScale",void 0),(0,r._)([(0,S.r)("service","minScale")],t.prototype,"readMinScale",null),(0,r._)([(0,l.Cb)()],t.prototype,"maxScale",void 0),(0,r._)([(0,S.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,r._)([(0,l.Cb)({type:K})],t.prototype,"mosaicRule",null),(0,r._)([(0,S.r)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],t.prototype,"readMosaicRule",null),(0,r._)([(0,c.c)("mosaicRule")],t.prototype,"writeMosaicRule",null),(0,r._)([(0,l.Cb)()],t.prototype,"multidimensionalInfo",null),(0,r._)([(0,l.Cb)({type:ie.Z})],t.prototype,"multidimensionalSubset",void 0),(0,r._)([(0,l.Cb)({json:{type:u.z8}})],t.prototype,"noData",void 0),(0,r._)([(0,c.c)("noData")],t.prototype,"writeNoData",null),(0,r._)([(0,l.Cb)({type:String,json:{type:X.k.jsonValues,read:X.k.read,write:X.k.write}})],t.prototype,"noDataInterpretation",void 0),(0,r._)([(0,l.Cb)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],t.prototype,"objectIdField",void 0),(0,r._)([(0,S.r)("objectIdField")],t.prototype,"readObjectIdField",null),(0,r._)([(0,l.Cb)({})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.Cb)({})],t.prototype,"typeIdField",void 0),(0,r._)([(0,l.Cb)({})],t.prototype,"types",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"parsedUrl",null),(0,r._)([(0,l.Cb)({type:Function})],t.prototype,"pixelFilter",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"raster",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"viewId",void 0),(0,r._)([(0,l.Cb)({types:y.dr,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:y.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"renderer",null),(0,r._)([(0,S.r)("renderer")],t.prototype,"readRenderer",null),(0,r._)([(0,c.c)("renderer")],t.prototype,"writeRenderer",null),(0,r._)([(0,l.Cb)()],t.prototype,"symbolizer",void 0),(0,r._)([(0,l.Cb)(C.Oh)],t.prototype,"opacity",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"rasterFields",null),(0,r._)([(0,l.Cb)({constructOnly:!0})],t.prototype,"rasterFunctionInfos",void 0),(0,r._)([(0,l.Cb)({type:F.Z})],t.prototype,"renderingRule",null),(0,r._)([(0,S.r)("renderingRule",["renderingRule","rasterFunctionInfos"])],t.prototype,"readRenderingRule",null),(0,r._)([(0,c.c)("renderingRule")],t.prototype,"writeRenderingRule",null),(0,r._)([(0,l.Cb)()],t.prototype,"serviceDataType",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:de.Z})],t.prototype,"spatialReference",void 0),(0,r._)([(0,S.r)("spatialReference",["spatialReference","extent"])],t.prototype,"readSpatialReference",null),(0,r._)([(0,l.Cb)({json:{type:rt.jsonValues}})],t.prototype,"pixelType",void 0),(0,r._)([(0,S.r)("pixelType")],t.prototype,"readPixelType",null),(0,r._)([(0,c.c)("pixelType")],t.prototype,"writePixelType",null),(0,r._)([(0,l.Cb)({constructOnly:!0,type:se.Z})],t.prototype,"serviceRasterInfo",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.Cb)(C.HQ)],t.prototype,"url",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"version",void 0),(0,r._)([(0,S.r)("version",["currentVersion","fields","timeInfo"])],t.prototype,"readVersion",null),t=(0,r._)([(0,p.j)("esri.layers.mixins.ArcGISImageService")],t),t};var ot=i(17287),lt=i(71612),ut=i(17017),pt=i(38009),ct=i(16859),mt=i(34760),dt=i(72965),ht=i(28294),yt=i(60199),gt=i(32163);let ft=class extends((0,lt.h)((0,ht.n)((0,mt.Q)((0,dt.M)((0,pt.q)((0,ct.I)(at((0,ut.N)((0,ot.Y)((0,a.R)(m.Z))))))))))){constructor(...e){super(...e),this.legendEnabled=!0,this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,n.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(o.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}writeOperationalLayerType(e,t,i){const r="vector-field"===this.renderer?.type;t[i]=r?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.rasterFields,i=this.title,r=new Set;let s=!1,n=!1;this.capabilities&&(s=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,n="esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType);const a=new Set;s&&a.add("raster.itempixelvalue");for(const e of t){const t=e.name.toLowerCase();a.has(t)||t.includes("raster.servicepixelvalue.")||r.add(e.name)}return n&&r.add("raster.magnitude").add("raster.direction"),(0,gt.eZ)({fields:t,title:i},{...e,visibleFieldNames:r})}queryFeatures(e,t){return this.queryRasters(e,t).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}serviceSupportsSpatialReference(e){return(0,yt.D)(this,e)}};(0,r._)([(0,l.Cb)(C.rn)],ft.prototype,"legendEnabled",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],ft.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ft.prototype,"isReference",void 0),(0,r._)([(0,l.Cb)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],ft.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.c)("web-map","operationalLayerType")],ft.prototype,"writeOperationalLayerType",null),(0,r._)([(0,l.Cb)(C.C_)],ft.prototype,"popupEnabled",void 0),(0,r._)([(0,l.Cb)({type:s.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],ft.prototype,"popupTemplate",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],ft.prototype,"defaultPopupTemplate",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],ft.prototype,"type",void 0),ft=(0,r._)([(0,p.j)("esri.layers.ImageryLayer")],ft);const bt=ft},17287:(e,t,i)=>{i.d(t,{Y:()=>u});var r=i(43697),s=i(92604),n=i(70586),a=i(5600),o=(i(67676),i(80442),i(75215),i(52011)),l=i(66677);const u=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,s.Z.getLogger(this.declaredClass)))}};return(0,r._)([(0,a.Cb)()],t.prototype,"title",null),(0,r._)([(0,a.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,i)=>{i.d(t,{I:()=>R});var r=i(43697),s=i(40330),n=i(3172),a=i(66643),o=i(20102),l=i(92604),u=i(70586),p=i(95330),c=i(17452),m=i(5600),d=(i(67676),i(80442),i(75215),i(71715)),h=i(52011),y=i(30556),g=i(65587),f=i(15235),b=i(86082);const R=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem?.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new f.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const r=await i.e(8062).then(i.bind(i,18062));return(0,p.k_)(t),await r.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.D_)(e)||l.Z.getLogger(this.declaredClass).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?s.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,(0,u.Wi)(i)||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id.findServerInfo(this.url);if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,o=g.Z.getDefault();if(o&&o.loaded&&(0,c.Fv)(o.restUrl)===(0,c.Fv)(r))return o.user;const l=`${r}/community/self`,p=(0,u.pC)(e)?e.signal:null,m=await(0,a.q6)((0,n.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:p}));return m.ok?b.default.fromJSON(m.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||g.Z.getDefault());return i&&r&&!(0,c.tm)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new o.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,r._)([(0,m.Cb)({type:f.default})],t.prototype,"portalItem",null),(0,r._)([(0,d.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,m.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,m.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,r._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},v={credential:null,user:null}},41818:(e,t,i)=>{i.d(t,{P:()=>a});var r=i(11282),s=i(34599),n=i(57444);async function a(e,t,i){const a=(0,r.en)(e);return(0,s.executeQueryForCount)(a,n.Z.from(t),{...i}).then((e=>e.data.count))}},5396:(e,t,i)=>{i.d(t,{G:()=>a});var r=i(11282),s=i(34599),n=i(57444);async function a(e,t,i){const a=(0,r.en)(e);return(0,s.executeQueryForIds)(a,n.Z.from(t),{...i}).then((e=>e.data.objectIds))}},4967:(e,t,i)=>{i.d(t,{F:()=>l,e:()=>o});var r=i(11282),s=i(34599),n=i(74889),a=i(57444);async function o(e,t,i){const r=await l(e,t,i);return n.default.fromJSON(r)}async function l(e,t,i){const n=(0,r.en)(e),o={...i},l=a.Z.from(t),{data:u}=await(0,s.executeQuery)(n,l,l.sourceSpatialReference,o);return u}},98326:(e,t,i)=>{i.d(t,{Z:()=>c});var r,s=i(43697),n=i(96674),a=i(5600),o=(i(67676),i(80442),i(75215)),l=i(52011);const u={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let p=r=class extends n.wq{constructor(e){super(e),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:e}=this,t=function(e){const{exifInfo:t,exifName:i,tagName:r}=e;if(!t||!i||!r)return null;const s=t.find((e=>e.name===i));return s?function(e){const{tagName:t,tags:i}=e;if(!i||!t)return null;const r=i.find((e=>e.name===t));return r&&r.value||null}({tagName:r,tags:s.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:e});return u[t]||null}clone(){return new r({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,s._)([(0,a.Cb)({type:String})],p.prototype,"contentType",void 0),(0,s._)([(0,a.Cb)()],p.prototype,"exifInfo",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],p.prototype,"orientationInfo",null),(0,s._)([(0,a.Cb)({type:o.z8})],p.prototype,"id",void 0),(0,s._)([(0,a.Cb)({type:String})],p.prototype,"globalId",void 0),(0,s._)([(0,a.Cb)({type:String})],p.prototype,"keywords",void 0),(0,s._)([(0,a.Cb)({type:String})],p.prototype,"name",void 0),(0,s._)([(0,a.Cb)({json:{read:!1}})],p.prototype,"parentGlobalId",void 0),(0,s._)([(0,a.Cb)({json:{read:!1}})],p.prototype,"parentObjectId",void 0),(0,s._)([(0,a.Cb)({type:o.z8})],p.prototype,"size",void 0),(0,s._)([(0,a.Cb)({json:{read:!1}})],p.prototype,"url",void 0),p=r=(0,s._)([(0,l.j)("esri.layers.support.AttachmentInfo")],p);const c=p}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4547],{83305:(e,t,n)=>{n.d(t,{e:()=>E,f:()=>l,g:()=>P,h:()=>f,i:()=>s,j:()=>N,l:()=>u,p:()=>G});var r=n(99880),o=n(80442);let _,i=null;function s(){return!!i}function u(){return _||(_=n.e(6774).then(n.bind(n,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,r.V)(`esri/geometry/support/${e}`)}))).then((e=>{T(e)})),_)}var P,l,E,c;!function(e){function t(e,t,n){i.ensureCache.prepare();const r=h(n),o=n===r,_=i.ensureFloat64(r),s=i._pe_geog_to_proj(i.getPointer(e),t,_);return s&&L(n,t,_,o),s}function n(e,t,n){return r(e,t,n,0)}function r(e,t,n,r){i.ensureCache.prepare();const o=h(n),_=n===o,s=i.ensureFloat64(o),u=i._pe_proj_to_geog_center(i.getPointer(e),t,s,r);return u&&L(n,t,s,_),u}e.geogToProj=t,e.projGeog=function(e,r,o,_){switch(_){case l.PE_TRANSFORM_P_TO_G:return n(e,r,o);case l.PE_TRANSFORM_G_TO_P:return t(e,r,o)}return 0},e.projToGeog=n,e.projToGeogCenter=r}(P||(P={})),(c=l||(l={})).init=function(){c.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},n={},r=e=>{if(e){const t=e.getType();switch(t){case l.PE_TYPE_GEOGCS:e=i.castObject(e,i.PeGeogcs);break;case l.PE_TYPE_PROJCS:e=i.castObject(e,i.PeProjcs);break;case l.PE_TYPE_GEOGTRAN:e=i.castObject(e,i.PeGeogtran);break;default:t&l.PE_TYPE_UNIT&&(e=i.castObject(e,i.PeUnit))}}return e};function o(e,n){let o=null,_=t[e];if(_||(_={},t[e]=_),_.hasOwnProperty(String(n)))o=_[n];else{const t=i.PeFactory.prototype.factoryByType(e,n);i.compare(t,i.NULL)||(o=t,_[n]=o)}return o=r(o),o}e.initialize=function(){i.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(l.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,_=n[e];if(_||(_={},n[e]=_),_.hasOwnProperty(t))o=_[t];else{const n=i.PeFactory.prototype.fromString(e,t);i.compare(n,i.NULL)||(o=n,_[t]=o)}return o=r(o),o},e.geogcs=function(e){return o(l.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(l.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return i.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(l.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(l.PE_TYPE_UNIT,e)}}(E||(E={}));let a=null;var S,C,f,A,p,R,O,N,M;function T(e){function t(e,t,n){e[t]=n(e[t])}i=e,l.init(),S.init(),p.init(),O.init(),N.init(),a=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const n=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const e of n)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(l.PE_NAME_MAX))}));for(const e of[i.PeGeogtran,i.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(l.PE_PARM_MAX);let n=e.call(this);for(let e=0;e<t.length;e++){const r=i.getValue(n,"*");t[e]=r?i.wrapPointer(r,i.PeParameter):null,n+=Int32Array.BYTES_PER_ELEMENT}return t}));t(i.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const n=[];return L(n,t,e.call(this)),n})),t(i.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=i._pe_getPeGTlistExtendedGTsSize();return function(){let n=null;const r=e.call(this);if(!i.compare(r,i.NULL)){n=[r];const e=this.getSteps();if(e>1){const o=i.getPointer(r);for(let r=1;r<e;r++)n.push(i.wrapPointer(o+t*r,i.PeGTlistExtendedGTs))}}return n}}));const r=i._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let n=null;const o=e.call(this);if(!i.compare(o,i.NULL)){n=[o];const e=o.getNump();if(e>1){const t=i.getPointer(o);for(let o=1;o<e;o++)n.push(i.wrapPointer(t+r*o,i.PeHorizon))}}return t.set(e,n),n};t(i.PeProjcs.prototype,"horizonGcsGenerate",o),t(i.PeProjcs.prototype,"horizonPcsGenerate",o),i.PeObject.prototype.toString=function(e=l.PE_STR_OPTS_NONE){i.ensureCache.prepare();const t=i.getPointer(this),n=i.ensureInt8(new Array(l.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(t,e,n))}}function g(e){if(!e)return;const t=i.getClass(e);if(!t)return;const n=i.getCache(t);if(!n)return;const r=i.getPointer(e);r&&delete n[r]}function d(e,t){const n=[],r=new Array(t);for(let t=0;t<e;t++)n.push(i.ensureInt8(r));return n}function h(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function L(e,t,n,r=!1){if(r)for(let r=0;r<2*t;r++)e[r]=i.getValue(n+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===e.length;for(let o=0;o<t;o++)r&&(e[o]=new Array(2)),e[o][0]=i.getValue(n,"double"),e[o][1]=i.getValue(n+Float64Array.BYTES_PER_ELEMENT,"double"),n+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=i._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,n,r,o,_,s){let u=null;const P=new i.PeInteger(s);try{const l=i.PeGTlistExtended.prototype.getGTlist(e,n,r,o,_,P);if((s=P.val)&&(u=[l],s>1)){const e=i.getPointer(l);for(let n=1;n<s;n++)u.push(i.wrapPointer(e+t*n,i.PeGTlistExtendedEntry))}}finally{i.destroy(P)}return u}}(S||(S={})),function(e){e.destroy=function(e){if(e&&e.length){for(const t of e)g(t),t.getEntries().forEach((e=>{g(e);const t=e.getGeogtran();g(t),t.getParameters().forEach(g),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{g(e);const t=e.getDatum();g(t),g(t.getSpheroid()),g(e.getPrimem()),g(e.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(C||(C={})),function(e){e.geogToGeog=function(e,t,n,r,o){i.ensureCache.prepare();const _=h(n),s=n===_,u=i.ensureFloat64(_);let P=0;r&&(P=i.ensureFloat64(r));const l=i._pe_geog_to_geog(i.getPointer(e),t,u,P,o);return l&&L(n,t,u,s),l}}(f||(f={})),function(e){const t=(e,t,n,r,o,_)=>{let s,u;switch(i.ensureCache.prepare(),e){case"dd":s=i._pe_geog_to_dd,u=l.PE_DD_MAX;break;case"ddm":s=i._pe_geog_to_ddm,u=l.PE_DDM_MAX;break;case"dms":s=i._pe_geog_to_dms,u=l.PE_DMS_MAX}let P=0;t&&(P=i.getPointer(t));const E=h(r),c=i.ensureFloat64(E),a=d(n,u),S=s(P,n,c,o,i.ensureInt32(a));if(S)for(let e=0;e<n;e++)_[e]=i.UTF8ToString(a[e]);return S},n=(e,t,n,r,o)=>{let _;switch(i.ensureCache.prepare(),e){case"dd":_=i._pe_dd_to_geog;break;case"ddm":_=i._pe_ddm_to_geog;break;case"dms":_=i._pe_dms_to_geog}let s=0;t&&(s=i.getPointer(t));const u=r.map((e=>i.ensureString(e))),P=i.ensureInt32(u),l=i.ensureFloat64(new Array(2*n)),E=_(s,n,P,l);return E&&L(o,n,l),E};e.geogToDms=function(e,n,r,o,_){return t("dms",e,n,r,o,_)},e.dmsToGeog=function(e,t,r,o){return n("dms",e,t,r,o)},e.geogToDdm=function(e,n,r,o,_){return t("ddm",e,n,r,o,_)},e.ddmToGeog=function(e,t,r,o){return n("ddm",e,t,r,o)},e.geogToDd=function(e,n,r,o,_){return t("dd",e,n,r,o,_)},e.ddToGeog=function(e,t,r,o){return n("dd",e,t,r,o)}}(A||(A={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,n,r,o,_,s){i.ensureCache.prepare();let u=0;e&&(u=i.getPointer(e));const P=h(n),E=i.ensureFloat64(P),c=d(t,l.PE_MGRS_MAX),a=i.ensureInt32(c),S=i._pe_geog_to_mgrs_extended(u,t,E,r,o,_,a);if(S)for(let e=0;e<t;e++)s[e]=i.UTF8ToString(c[e]);return S},e.mgrsToGeogExtended=function(e,t,n,r,o){i.ensureCache.prepare();let _=0;e&&(_=i.getPointer(e));const s=n.map((e=>i.ensureString(e))),u=i.ensureInt32(s),P=i.ensureFloat64(new Array(2*t)),l=i._pe_mgrs_to_geog_extended(_,t,u,r,P);return l&&L(o,t,P),l}}(p||(p={})),function(e){e.geogToUsng=function(e,t,n,r,o,_,s){i.ensureCache.prepare();let u=0;e&&(u=i.getPointer(e));const P=h(n),E=i.ensureFloat64(P),c=d(t,l.PE_MGRS_MAX),a=i.ensureInt32(c),S=i._pe_geog_to_usng(u,t,E,r,o,_,a);if(S)for(let e=0;e<t;e++)s[e]=i.UTF8ToString(c[e]);return S},e.usngToGeog=function(e,t,n,r){i.ensureCache.prepare();let o=0;e&&(o=i.getPointer(e));const _=n.map((e=>i.ensureString(e))),s=i.ensureInt32(_),u=i.ensureFloat64(new Array(2*t)),P=i._pe_usng_to_geog(o,t,s,u);return P&&L(r,t,u),P}}(R||(R={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,n,r,o){i.ensureCache.prepare();let _=0;e&&(_=i.getPointer(e));const s=h(n),u=i.ensureFloat64(s),P=d(t,l.PE_UTM_MAX),E=i.ensureInt32(P),c=i._pe_geog_to_utm(_,t,u,r,E);if(c)for(let e=0;e<t;e++)o[e]=i.UTF8ToString(P[e]);return c},e.utmToGeog=function(e,t,n,r,o){i.ensureCache.prepare();let _=0;e&&(_=i.getPointer(e));const s=n.map((e=>i.ensureString(e))),u=i.ensureInt32(s),P=i.ensureFloat64(new Array(2*t)),l=i._pe_utm_to_geog(_,t,u,r,P);return l&&L(o,t,P),l}}(O||(O={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(n,r=e.PE_PCSINFO_OPTION_DOMAIN){let o=null,_=null;return t.has(n)&&(_=t.get(n),_[r]&&(o=_[r])),o||(o=i.PePCSInfo.prototype.generate(n,r),_||(_=[],t.set(n,_)),_[r]=o),o}}(N||(N={})),function(e){e.versionString=function(){return i.PeVersion.prototype.version_string()}}(M||(M={}));const G=Object.freeze(Object.defineProperty({__proto__:null,get _pe(){return i},isLoaded:s,isSupported:function(){return!!(0,o.Z)("esri-wasm")},load:u,get PeCSTransformations(){return P},get PeDefs(){return l},get PeFactory(){return E},get PeGCSExtent(){return a},get PeGTlistExtended(){return S},get PeGTlistExtendedEntry(){return C},get PeGTTransformations(){return f},get PeNotationDms(){return A},get PeNotationMgrs(){return p},get PeNotationUsng(){return R},get PeNotationUtm(){return O},get PePCSInfo(){return N},get PeVersion(){return M},_init:T},Symbol.toStringTag,{value:"Module"}))},44547:(e,t,n)=>{n.d(t,{Up:()=>B,Bm:()=>z,iQ:()=>Y,kR:()=>F,zD:()=>m,iV:()=>w,CM:()=>X,oj:()=>U,dz:()=>D,KC:()=>Z,Wt:()=>x});var r=n(20102),o=n(22021),_=n(70586),i=n(95330),s=n(67900),u=n(58971),P=n(10661),l=n(52138),E=(n(17896),n(65617)),c=n(6570),a=n(65091),S=n(83305),C=n(94139),f=n(38913),A=n(58901),p=n(24678),R=(n(24470),n(68441));Math.PI;const O=R.sv.radius,N=R.sv.eccentricitySquared,M={a1:O*N,a2:O*N*O*N,a3:O*N*N/2,a4:O*N*O*N*2.5,a5:O*N+O*N*N/2,a6:1-N};R.sv.radius,R.sv.flattening,R.Z1.radius,R.Z1.flattening,R.yr.radius,R.yr.flattening,R.yr.radius;var T=n(18571),g=n(8744),d=n(56726),h=n(69285);let L=null,G=null,I=null,y={};const W=new P.s;function F(){return!!L&&(0,S.i)()}function m(e){return(0,_.Wi)(I)&&(I=Promise.all([(0,S.l)(),n.e(5837).then(n.bind(n,45837)).then((e=>e.g)),n.e(819).then(n.bind(n,80819))])),I.then((([,t,{hydratedAdapter:n}])=>{(0,i.k_)(e),G=n,L=t.default,L._enableProjection(S.p),W.notify()}))}function w(e,t,n=null,r=null){return Array.isArray(e)?0===e.length?[]:U(G,e,e[0].spatialReference,t,n,r):U(G,[e],e.spatialReference,t,n,r)[0]}function U(e,t,n,r,o=null,i=null){if((0,_.Wi)(n)||(0,_.Wi)(r))return t;if(B(n,r,o))return t.map((e=>(0,_.Wg)(function(e,t,n){return e?"x"in e?function(e,t,n,r,o){he[0]=e.x,he[1]=e.y;const _=e.z;return he[2]=void 0!==_?_:o,X(he,t,0,he,r,0,1)?(n.x=he[0],n.y=he[1],n.spatialReference=r,void 0===_?(n.z=void 0,n.hasZ=!1):(n.z=he[2],n.hasZ=!0),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}(e,t,new C.Z,n,0):"xmin"in e?function(e,t,n,r,o){const{xmin:_,ymin:i,xmax:s,ymax:u,hasZ:P,hasM:l}=e;return K(_,i,P?e.zmin:o,t,he,r)?(n.xmin=he[0],n.ymin=he[1],P&&(n.zmin=he[2]),K(s,u,P?e.zmax:o,t,he,r)?(n.xmax=he[0],n.ymax=he[1],P&&(n.zmax=he[2]),l&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null):null}(e,t,new c.Z,n,0):"rings"in e?j(e,t,new f.Z,n,0):"paths"in e?function(e,t,n,r,o){const{paths:_,hasZ:i,hasM:s}=e,u=[];return b(_,i??!1,s??!1,t,u,r,o)?(n.paths=u,n.spatialReference=r,n.hasZ=i,n.hasM=s,n):null}(e,t,new A.Z,n,0):"points"in e?function(e,t,n,r,o){const{points:_,hasZ:i,hasM:s}=e,u=[],P=_.length,l=[];for(const e of _)l.push(e[0],e[1],i?e[2]:o);if(!X(l,t,0,l,r,0,P))return null;for(let e=0;e<P;++e){const t=3*e,n=l[t],r=l[t+1];i&&s?u.push([n,r,l[t+2],_[e][3]]):i?u.push([n,r,l[t+2]]):s?u.push([n,r,_[e][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=i,n.hasM=s,n}(e,t,new a.Z,n,0):null:null}(e,n,r))));if((0,_.Wi)(o)){const e=T.Z.cacheKey(n,r);void 0!==y[e]?o=y[e]:(o=function(e,t,n=null){if((0,_.Wi)(e)||(0,_.Wi)(t))return null;if((0,_.Wi)(L)||(0,_.Wi)(G))throw new H;const r=L._getTransformation(G,e,t,n,n?.spatialReference);return null!==r?T.Z.fromGE(r):null}(n,r,void 0),(0,_.Wi)(o)&&(o=new T.Z),y[e]=o)}if((0,_.Wi)(L)||(0,_.Wi)(e))throw new H;return(0,_.pC)(i)?L._project(e,t,n,r,o,i):L._project(e,t,n,r,o)}function D(e,t){return(0,_.Wi)(e)?{pending:null,geometry:null}:(0,g.fS)(e.spatialReference,t)?{pending:null,geometry:e}:(0,g.JY)(e.spatialReference)&&(0,g.JY)(t)?B(e.spatialReference,t)||F()?{pending:null,geometry:v(e,t)}:((0,u.it)(W),{pending:m(),geometry:null}):{pending:null,geometry:null}}class H extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var k;function v(e,t){try{const n=w(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const r=(0,h.k)(n.type,e.spatialReference,t);return(0,_.pC)(r)&&r(n),n}catch(e){if(!(e instanceof H))throw e;return null}}function B(e,t,n){return!n&&(!!(0,g.fS)(e,t)||(0,g.JY)(e)&&(0,g.JY)(t)&&!!fe(e,t,Oe))}async function Y(e,t,n,r){if(F())return(0,i.Yn)(r);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:o}of e)if(!B(t,n,o))return m(r)}else if(!B(e,t,n))return m(r);return(0,i.Yn)(r)}function x(e,t,n=t.spatialReference,r=0){return(0,_.pC)(e.spatialReference)&&(0,_.pC)(n)&&(0,_.pC)(j(e,e.spatialReference,t,n,r))}function j(e,t,n,r,o){const{rings:_,hasZ:i,hasM:s}=e,u=[];return b(_,i??!1,s??!1,t,u,r,o)?(n.rings=u,n.spatialReference=r,n.hasZ=i,n.hasM=s,n):null}function Z(e,t,n,r=0){he[0]=e.x,he[1]=e.y;const o=e.z;return he[2]=void 0!==o?o:r,X(he,e.spatialReference,0,t,n,0,1)}function K(e,t,n,r,o,_){return Te[0]=e,Te[1]=t,Te[2]=n,X(Te,r,0,o,_,0,1)}function X(e,t,n,r,o,i,s=1){const u=fe(t,o,Oe);if((0,_.Wi)(u))return!1;if(u===Q){if(e===r&&n===i)return!0;const t=n+3*s;for(let o=n,_=i;o<t;o++,_++)r[_]=e[o];return!0}const P=n+3*s;for(let t=n,o=i;t<P;t+=3,o+=3)u(e,t,r,o);return!0}function b(e,t,n,r,o,_,i=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:i);if(!X(s,r,0,s,_,0,s.length/3))return!1;let u=0;o.length=0;for(const r of e){const e=new Array;for(const o of r)t&&n?e.push([s[u++],s[u++],s[u++],o[3]]):t?e.push([s[u++],s[u++],s[u++]]):n?(e.push([s[u++],s[u++],o[2]]),u++):(e.push([s[u++],s[u++]]),u++);o.push(e)}return!0}function z(e,t,n,r){if((0,_.Wi)(e)||(0,_.Wi)(r))return!1;const o=J(e,pe),i=J(r,Re);if(o===i&&!V(i)&&(o!==k.UNKNOWN||(0,g.fS)(e,r)))return(0,l.f)(n,t),!0;if(V(i)){const e=Ce[o][k.LON_LAT],r=Ce[k.LON_LAT][i];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,ge,0),r(ge,0,de,0),q(Ne*ge[0],Ne*ge[1],n),n[12]=de[0],n[13]=de[1],n[14]=de[2],!0)}if((i===k.WEB_MERCATOR||i===k.PLATE_CARREE)&&(o===k.WGS84||o===k.CGCS2000&&i===k.PLATE_CARREE||o===k.SPHERICAL_ECEF||o===k.WEB_MERCATOR)){const e=Ce[o][k.LON_LAT],r=Ce[k.LON_LAT][i];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,ge,0),r(ge,0,de,0),o===k.SPHERICAL_ECEF?function(e,t,n){q(e,t,n),(0,l.t)(n,n)}(Ne*ge[0],Ne*ge[1],n):(0,l.i)(n),n[12]=de[0],n[13]=de[1],n[14]=de[2],!0)}return!1}function V(e){return e===k.SPHERICAL_ECEF||e===k.SPHERICAL_MARS_PCPF||e===k.SPHERICAL_MOON_PCPF}function q(e,t,n){const r=Math.sin(e),o=Math.cos(e),_=Math.sin(t),i=Math.cos(t),s=n;return s[0]=-r,s[4]=-_*o,s[8]=i*o,s[12]=0,s[1]=o,s[5]=-_*r,s[9]=i*r,s[13]=0,s[2]=0,s[6]=i,s[10]=_,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}function J(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.c9)(e,1)),e.wkt===p.GG.wkt?t.spatialReferenceId=k.SPHERICAL_ECEF:(0,g.oR)(e)?t.spatialReferenceId=k.WGS84:(0,g.sS)(e)?t.spatialReferenceId=k.WEB_MERCATOR:(0,g.QM)(e)?t.spatialReferenceId=k.PLATE_CARREE:e.wkt===p.wY.wkt?t.spatialReferenceId=k.WGS84_ECEF:e.wkid===d.W.CGCS2000?t.spatialReferenceId=k.CGCS2000:e.wkt===p.HQ.wkt?t.spatialReferenceId=k.SPHERICAL_MARS_PCPF:e.wkt===p.VY.wkt?t.spatialReferenceId=k.SPHERICAL_MOON_PCPF:(0,g.BZ)(e)?t.spatialReferenceId=k.GCSMARS2000:(0,g.V2)(e)?t.spatialReferenceId=k.GCSMOON2000:t.spatialReferenceId=k.UNKNOWN):k.UNKNOWN}function Q(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function $(e,t,n,r){n[r++]=Me*(e[t++]/R.sv.radius),n[r++]=Me*(Math.PI/2-2*Math.atan(Math.exp(-e[t++]/R.sv.radius))),n[r]=e[t]}function ee(e,t,n,r){!function(e,t,n,r,_){const i=.4999999*Math.PI,s=(0,o.uZ)(Ne*e[t+1],-i,i),u=Math.sin(s);n[r++]=Ne*e[t]*_.radius,n[r++]=_.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[r]=e[t+2]}(e,t,n,r,R.sv)}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"}(k||(k={}));const te=R.sv.radius*Math.PI/180,ne=180/(R.sv.radius*Math.PI);function re(e,t,n,r){n[r]=e[t]*te,n[r+1]=e[t+1]*te,n[r+2]=e[t+2]}function oe(e,t,n,r){n[r]=e[t]*ne,n[r+1]=e[t+1]*ne,n[r+2]=e[t+2]}function _e(e,t,n,r,o){const _=o+e[t+2],i=Ne*e[t+1],s=Ne*e[t],u=Math.cos(i);n[r++]=Math.cos(s)*u*_,n[r++]=Math.sin(s)*u*_,n[r]=Math.sin(i)*_}function ie(e,t,n,r){_e(e,t,n,r,R.Z1.radius)}function se(e,t,n,r){_e(e,t,n,r,R.yr.radius)}function ue(e,t,n,r){_e(e,t,n,r,R.sv.radius)}function Pe(e,t,n,r,_){const i=e[t],s=e[t+1],u=e[t+2],P=Math.sqrt(i*i+s*s+u*u),l=(0,o.Kt)(u/(0===P?1:P)),E=Math.atan2(s,i);n[r++]=Me*E,n[r++]=Me*l,n[r]=P-_}function le(e,t,n,r){Pe(e,t,n,r,R.Z1.radius)}function Ee(e,t,n,r){Pe(e,t,n,r,R.yr.radius)}function ce(e,t,n,r){Pe(e,t,n,r,R.sv.radius)}function ae(e,t,n,r){!function(e,t,n,r,o){const _=Ne*e[t],i=Ne*e[t+1],s=e[t+2],u=Math.sin(i),P=Math.cos(i),l=o.radius/Math.sqrt(1-o.eccentricitySquared*u*u);n[r++]=(l+s)*P*Math.cos(_),n[r++]=(l+s)*P*Math.sin(_),n[r++]=(l*(1-o.eccentricitySquared)+s)*u}(e,t,n,r,R.sv)}function Se(e,t,n,r){const o=M,_=e[t],i=e[t+1],s=e[t+2];let u,P,l,E,c,a,S,C,f,A,p,O,N,T,g,d,h,L,G,I,y;u=Math.abs(s),P=_*_+i*i,l=Math.sqrt(P),E=P+s*s,c=Math.sqrt(E),I=Math.atan2(i,_),a=s*s/E,S=P/E,T=o.a2/c,g=o.a3-o.a4/c,S>.3?(C=u/c*(1+S*(o.a1+T+a*g)/c),G=Math.asin(C),A=C*C,f=Math.sqrt(1-A)):(f=l/c*(1-a*(o.a5-T-S*g)/c),G=Math.acos(f),A=1-f*f,C=Math.sqrt(A)),p=1-R.sv.eccentricitySquared*A,O=R.sv.radius/Math.sqrt(p),N=o.a6*O,T=l-O*f,g=u-N*C,h=f*T+C*g,d=f*g-C*T,L=d/(N/p+h),G+=L,y=h+d*L/2,s<0&&(G=-G),n[r++]=Me*I,n[r++]=Me*G,n[r]=y}const Ce={[k.WGS84]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:ee,[k.PLATE_CARREE]:re,[k.WGS84]:Q,[k.WGS84_ECEF]:ae},[k.CGCS2000]:{[k.CGCS2000]:Q,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:re,[k.WGS84]:null,[k.WGS84_ECEF]:ae},[k.GCSMARS2000]:{[k.CGCS2000]:null,[k.GCSMARS2000]:Q,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:se,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.GCSMOON2000]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:Q,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:ie,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.WEB_MERCATOR]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:$,[k.WGS84_COMPARABLE_LON_LAT]:$,[k.SPHERICAL_ECEF]:function(e,t,n,r){$(e,t,n,r),ue(n,r,n,r)},[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:Q,[k.PLATE_CARREE]:function(e,t,n,r){$(e,t,n,r),re(n,r,n,r)},[k.WGS84]:$,[k.WGS84_ECEF]:function(e,t,n,r){$(e,t,n,r),ae(n,r,n,r)}},[k.WGS84_ECEF]:{[k.CGCS2000]:Se,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Se,[k.WGS84_COMPARABLE_LON_LAT]:Se,[k.SPHERICAL_ECEF]:function(e,t,n,r){Se(e,t,n,r),ue(n,r,n,r)},[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:function(e,t,n,r){Se(e,t,n,r),ee(n,r,n,r)},[k.PLATE_CARREE]:function(e,t,n,r){Se(e,t,n,r),re(n,r,n,r)},[k.WGS84]:Se,[k.WGS84_ECEF]:Q},[k.SPHERICAL_ECEF]:{[k.CGCS2000]:ce,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:ce,[k.WGS84_COMPARABLE_LON_LAT]:ce,[k.SPHERICAL_ECEF]:Q,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:function(e,t,n,r){ce(e,t,n,r),ee(n,r,n,r)},[k.PLATE_CARREE]:function(e,t,n,r){ce(e,t,n,r),re(n,r,n,r)},[k.WGS84]:ce,[k.WGS84_ECEF]:function(e,t,n,r){ce(e,t,n,r),ae(n,r,n,r)}},[k.SPHERICAL_MARS_PCPF]:{[k.CGCS2000]:null,[k.GCSMARS2000]:Ee,[k.GCSMOON2000]:null,[k.LON_LAT]:Ee,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:Q,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.SPHERICAL_MOON_PCPF]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:le,[k.LON_LAT]:le,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:Q,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.UNKNOWN]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:null,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:Q,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.LON_LAT]:{[k.CGCS2000]:Q,[k.GCSMARS2000]:Q,[k.GCSMOON2000]:Q,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:se,[k.SPHERICAL_MOON_PCPF]:ie,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:ee,[k.PLATE_CARREE]:re,[k.WGS84]:Q,[k.WGS84_ECEF]:ae},[k.WGS84_COMPARABLE_LON_LAT]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:re,[k.WGS84]:Q,[k.WGS84_ECEF]:ae},[k.PLATE_CARREE]:{[k.CGCS2000]:oe,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:oe,[k.WGS84_COMPARABLE_LON_LAT]:oe,[k.SPHERICAL_ECEF]:function(e,t,n,r){oe(e,t,n,r),ue(n,r,n,r)},[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:function(e,t,n,r){oe(e,t,n,r),ee(n,r,n,r)},[k.PLATE_CARREE]:Q,[k.WGS84]:oe,[k.WGS84_ECEF]:function(e,t,n,r){oe(e,t,n,r),ae(n,r,n,r)}}};function fe(e,t,n=Ae()){return(0,_.Wi)(e)||(0,_.Wi)(t)?null:function(e,t,n){if((0,_.Wi)(e)||(0,_.Wi)(t)||n.source.spatialReference===e&&n.dest.spatialReference===t)return n;const r=J(e,n.source),o=J(t,n.dest);return r===k.UNKNOWN&&o===k.UNKNOWN?(0,g.fS)(e,t)?n.projector=Q:n.projector=null:n.projector=Ce[r][o],n}(e,t,n).projector}function Ae(){return{source:{spatialReference:null,spatialReferenceId:k.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:k.UNKNOWN,metersPerUnit:1},projector:Q}}const pe={spatialReference:null,spatialReferenceId:k.UNKNOWN},Re={spatialReference:null,spatialReferenceId:k.UNKNOWN},Oe=Ae(),Ne=(Ae(),(0,o.Vl)(1)),Me=(0,o.BV)(1),Te=(0,E.c)(),ge=(0,E.c)(),de=(0,E.c)(),he=(0,E.c)();(0,E.c)()},18571:(e,t,n)=>{n.d(t,{Z:()=>_});let r=0;class o{constructor(e){this.uid=r++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(e){const t=new o;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=r++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=r++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=r++}getInverse(){const e=new o;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class _{constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e&&e.steps)for(const t of e.steps)t instanceof o?this.steps.push(t):this.steps.push(new o({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}static cacheKey(e,t){return[void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():"",void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():""].join(",")}static fromGE(e){const t=new _;let n="";for(const r of e.steps){const e=o.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}getInverse(){const e=new _;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[_.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[_.cacheKey(e,t)];return void 0===r?null:r}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9348,5787],{57435:(e,t,i)=>{i.d(t,{Z:()=>u});var r=i(43697),s=i(46791),o=i(3920),n=i(70586),l=(i(80442),i(20102),i(92604),i(26258),i(87538)),a=i(5600),d=(i(67676),i(75215),i(52011));let p=class extends((0,o.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,n.pC)(this.getCollections)?this.getCollections():null;if((0,n.Wi)(e))return void this.removeAll();let t=0;for(const i of e)(0,n.pC)(i)&&(t=this._processCollection(t,i));this.splice(t,this.length)}_createNewInstance(e){return new s.Z(e)}_processCollection(e,t){if(!t)return e;const i=this.itemFilterFunction?this.itemFilterFunction:e=>!!e;for(const r of t)if(r){if(i(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const i of t)e=this._processCollection(e,i);else e=this._processCollection(e,t)}}return e}};(0,r._)([(0,a.Cb)()],p.prototype,"getCollections",void 0),(0,r._)([(0,a.Cb)()],p.prototype,"getChildrenFunction",void 0),(0,r._)([(0,a.Cb)()],p.prototype,"itemFilterFunction",void 0),p=(0,r._)([(0,d.j)("esri.core.CollectionFlattener")],p);const u=p},10699:(e,t,i)=>{i.d(t,{IG:()=>n});var r=i(43697),s=i(52011);let o=0;const n=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,r._)([(0,s.j)("esri.core.Identifiable")],t),t};let l=class extends(n(class{})){};l=(0,r._)([(0,s.j)("esri.core.Identifiable")],l)},16453:(e,t,i)=>{i.d(t,{R:()=>m,w:()=>_});var r=i(43697),s=i(15923),o=i(70586),n=i(41103),l=i(22974),a=i(31263);class d{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new d,i=this._originStores[a.s3.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,l.d9)(e),a.s3.DEFAULTS)}));for(let i=a.s3.SERVICE;i<a.kk;i++){const r=this._originStores[i];r&&r.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,l.d9)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=a.s3.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||(0,o.j0)(this._propertyOriginMap.get(e))<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=a.s3.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i&&i.get(e),s=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),s!==r}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=i(50549),u=i(1153),h=i(52011);const y=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,o.j0)((0,u.vw)(this)),i=t.store,r=new d;t.store=r,(0,n.M)(t,i,r)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const i=c(this),r=(0,a.M9)(t);if("string"==typeof e)return i.get(e,r);const s={};return e.forEach((e=>{s[e]=i.get(e,r)})),s}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return c(this).originOf(e)}revert(e,t){const i=c(this),r=(0,a.M9)(t),s=(0,u.vw)(this);let o;o="string"==typeof e?"*"===e?i.keys(r):[e]:e,o.forEach((e=>{s.invalidate(e),i.revert(e,r),s.commit(e)}))}};return t=(0,r._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function c(e){return(0,u.vw)(e).store}let f=class extends(y(s.Z)){};f=(0,r._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],f);var b=i(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,b.c)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,u.vw)(this).setAtOrigin(e,t,(0,a.M9)(i))}removeOrigin(e){const t=v(this),i=(0,a.M9)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),a.s3.USER)}updateOrigin(e,t){const i=v(this),r=(0,a.M9)(t),s=this.get(e);for(let t=r+1;t<a.kk;++t)i.delete(e,t);i.set(e,s,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,u.vw)(e).store}const m=e=>{let t=class extends(g(y(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(m(s.Z)){};_=(0,r._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},70921:(e,t,i)=>{i.d(t,{R:()=>o,Z:()=>s});var r=i(46791);function s(e,t,i=r.Z){return t||(t=new i),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function o(e){return e}},68668:(e,t,i)=>{i.d(t,{G:()=>l,w:()=>a});var r=i(66643),s=i(46791),o=i(83379),n=i(70586);async function l(e,t){return await e.load(),a(e,t)}async function a(e,t){const i=[],l=(...e)=>{for(const t of e)(0,n.Wi)(t)||(Array.isArray(t)?l(...t):s.Z.isCollection(t)?t.forEach((e=>l(e))):o.Z.isLoadable(t)&&i.push(t))};t(l);let a=null;if(await(0,r.UI)(i,(async e=>{!1!==(await(0,r.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load())).ok||a||(a=e)})),a)throw a.loadError;return e}},89348:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Z});var r=i(43697),s=i(57435),o=i(68668),n=i(70586),l=i(16453),a=i(17445),d=i(5600),p=(i(67676),i(80442),i(1153)),u=(i(75215),i(52011)),h=i(30556),y=i(87085),c=i(71612),f=i(38009),b=i(16859),g=i(72965),v=i(87344),m=i(46791),_=i(70921),w=i(92604),C=i(95330);function I(e,t,i){let r,s;if(e)for(let o=0,n=e.length;o<n;o++){if(r=e.getItemAt(o),r[t]===i)return r;if("group"===r?.type&&(s=I(r.layers,t,i),s))return s}}const S=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new m.Z;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||w.Z.getLogger(this.declaredClass).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},i=e=>{e.parent=null,this.layerRemoved(e)};this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>i(e.item)))}destroy(){const e=this.layers.removeAll();for(const t of e)this.layerRemoved(t),t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,_.Z)(e,this._get("layers")))}add(e,t){const i=this.layers;if(t=i.getNextIndex(t),e instanceof y.Z){const r=e;r.parent===this?this.reorder(r,t):i.add(r,t)}else(0,C.y8)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):w.Z.getLogger(this.declaredClass).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const i=this.layers;t=i.getNextIndex(t),e.slice().forEach((e=>{e.parent!==this?(i.add(e,t),t+=1):this.reorder(e,t)}))}findLayerById(e){return I(this.layers,"id",e)}findLayerByUid(e){return I(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,r._)([(0,d.Cb)()],t.prototype,"layers",null),t=(0,r._)([(0,u.j)("esri.support.LayersMixin")],t),t};function O(e,t,i){if(e)for(let r=0,s=e.length;r<s;r++){const s=e.getItemAt(r);if(s[t]===i)return s;if("group"===s?.type){const e=O(s.tables,t,i);if(e)return e}}}const M=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new m.Z,this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&w.Z.getLogger(this.declaredClass).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))}destroy(){const e=this.tables.removeAll();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,_.Z)(e,this._get("tables")))}findTableById(e){return O(this.tables,"id",e)}findTableByUid(e){return O(this.tables,"uid",e)}};return(0,r._)([(0,d.Cb)()],t.prototype,"tables",null),t=(0,r._)([(0,u.j)("esri.support.TablesMixin")],t),t};var L=i(15650);let E=class extends((0,c.h)((0,g.M)((0,f.q)((0,b.I)(M(S((0,l.R)(y.Z)))))))){constructor(e){var t;super(e),this._visibilityHandles={},this.allLayers=new s.Z({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new s.Z({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group"}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles((0,a.YP)((()=>this.visible),this._onVisibilityChange.bind(this),a.Z_))}_writeLayers(e,t,i,r){const s=[];if(!e)return s;e.forEach((e=>{const t=(0,L.Nw)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);(0,n.pC)(t)&&t.layerType&&s.push(t)})),t.layers=s}set portalItem(e){this._set("portalItem",e)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"],layerModuleTypeMap:v.T},e)),Promise.resolve(this)}loadAll(){return(0,o.G)(this,(e=>{e(this.layers,this.tables)}))}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this._visibilityHandles[e.uid]=(0,a.YP)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),a.Z_)}layerRemoved(e){const t=this._visibilityHandles[e.uid];t&&(t.remove(),delete this._visibilityHandles[e.uid]),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,p.vw)(this).initialized)return;const i=this.layers;let r=i.find((e=>e.visible));switch(e){case"exclusive":i.length&&!r&&(r=i.getItemAt(0),r.visible=!0),this._turnOffOtherLayers(r);break;case"inherited":i.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,r._)([(0,d.Cb)({readOnly:!0,dependsOn:[]})],E.prototype,"allLayers",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],E.prototype,"allTables",void 0),(0,r._)([(0,d.Cb)()],E.prototype,"fullExtent",void 0),(0,r._)([(0,d.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],E.prototype,"layers",void 0),(0,r._)([(0,h.c)("layers")],E.prototype,"_writeLayers",null),(0,r._)([(0,d.Cb)({type:["GroupLayer"]})],E.prototype,"operationalLayerType",void 0),(0,r._)([(0,d.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],E.prototype,"portalItem",null),(0,r._)([(0,d.Cb)()],E.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)({json:{read:!1},readOnly:!0,value:"group"})],E.prototype,"type",void 0),(0,r._)([(0,d.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{read:!1,write:!1}}}})],E.prototype,"visibilityMode",null),E=(0,r._)([(0,u.j)("esri.layers.GroupLayer")],E);const Z=E},87085:(e,t,i)=>{i.d(t,{Z:()=>m});var r=i(43697),s=(i(66577),i(3172)),o=i(20102),n=i(32448),l=i(10699),a=i(83379),d=i(92604),p=i(95330),u=i(17452),h=i(5600),y=(i(67676),i(80442),i(75215),i(52011)),c=i(68773),f=i(6570),b=i(82971);let g=0,v=class extends(n.Z.EventedMixin((0,l.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,b.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=b.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;return(await i.e(3529).then(i.bind(i,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},r=await Promise.all([i.e(4547),i.e(8008)]).then(i.bind(i,28008));try{return await r.fromItem(t)}catch(e){const i=t&&t.portalItem,r=i&&i.id||"unset",s=i&&i.portal&&i.portal.url||c.Z.portalUrl;throw d.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.D_)(e)||d.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"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,u.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,h.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r._)([(0,h.Cb)({type:f.Z})],v.prototype,"fullExtent",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r._)([(0,h.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r._)([(0,h.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r._)([(0,h.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r._)([(0,h.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r._)([(0,h.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r._)([(0,h.Cb)({type:b.Z})],v.prototype,"spatialReference",void 0),(0,r._)([(0,h.Cb)({type:String})],v.prototype,"title",void 0),(0,r._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r._)([(0,h.Cb)()],v.prototype,"url",void 0),(0,r._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r._)([(0,y.j)("esri.layers.Layer")],v);const m=v},16859:(e,t,i)=>{i.d(t,{I:()=>m});var r=i(43697),s=i(40330),o=i(3172),n=i(66643),l=i(20102),a=i(92604),d=i(70586),p=i(95330),u=i(17452),h=i(5600),y=(i(67676),i(80442),i(75215),i(71715)),c=i(52011),f=i(30556),b=i(65587),g=i(15235),v=i(86082);const m=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem?.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new g.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const r=await i.e(8062).then(i.bind(i,18062));return(0,p.k_)(t),await r.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.D_)(e)||a.Z.getLogger(this.declaredClass).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?s.id?.findCredential(this.url):null;if(!t)return!0;const i=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=i,(0,d.Wi)(i)||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id.findServerInfo(this.url);if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,l=b.Z.getDefault();if(l&&l.loaded&&(0,u.Fv)(l.restUrl)===(0,u.Fv)(r))return l.user;const a=`${r}/community/self`,p=(0,d.pC)(e)?e.signal:null,h=await(0,n.q6)((0,o.default)(a,{authMode:"no-prompt",query:{f:"json"},signal:p}));return h.ok?v.default.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||b.Z.getDefault());return i&&r&&!(0,u.tm)(r.restUrl,i.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,r._)([(0,h.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,r._)([(0,c.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},84230:(e,t,i)=>{function r(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function s(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}i.d(t,{rQ:()=>r,y2:()=>s})},15650:(e,t,i)=>{i.d(t,{Nw:()=>h});var r=i(20102),s=i(22974),o=i(70586),n=i(78286),l=i(827),a=i(84230);const d=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),p=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","ogc-feature","route","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function u(e,t){"maxScale"in e&&(t.maxScale=(0,l.k)(e.maxScale)),"minScale"in e&&(t.minScale=(0,l.k)(e.minScale))}function h(e,t,i){if(!("write"in e)||!e.write)return i&&i.messages&&i.messages.push(new r.Z("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if(function(e,t){if(t.restrictedWebMapWriting){const i=function(e){return"basemap"===e.layerContainerType?d:"operational-layers"===e.layerContainerType?p:null}(t);return!(0,o.pC)(i)||i.has(e.type)&&!(0,a.rQ)(e)}return!0}(e,i)){const t={};return e.write(t,i)?t:null}return(0,o.pC)(t)&&function(e,t){if(function(e,t){if((0,a.rQ)(e)){const i=(0,n.hS)("featureCollection.layers",t),r=i&&i[0]&&i[0].layerDefinition;r&&u(e,r)}else"stream"===e.type?u(e,t.layerDefinition=t.layerDefinition||{}):"group"!==e.type&&u(e,t)}(e,t),"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,l.k)(e.opacity),t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type)if((0,a.rQ)(e)){const i=t.featureCollection;i&&(i.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,s.d9)(t)),t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4166],{10699:(t,e,r)=>{r.d(e,{IG:()=>n});var i=r(43697),s=r(52011);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,s.j)("esri.core.Identifiable")],e),e};let a=class extends(n(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(t,e,r)=>{r.d(e,{R:()=>b,w:()=>_});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),a=r(22974),l=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new p,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,a.d9)(t),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{t&&t.has(s)||e.set(s,(0,a.d9)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||(0,o.j0)(this._propertyOriginMap.get(t))<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.s3.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r&&r.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||l.s3.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=r(50549),d=r(1153),h=r(52011);const c=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,o.j0)((0,d.vw)(this)),r=e.store,i=new p;e.store=i,(0,n.M)(e,r,i)}read(t,e){(0,u.i)(this,t,e)}getAtOrigin(t,e){const r=y(this),i=(0,l.M9)(e);if("string"==typeof t)return r.get(t,i);const s={};return t.forEach((t=>{s[t]=r.get(t,i)})),s}originOf(t){return(0,l.x3)(this.originIdOf(t))}originIdOf(t){return y(this).originOf(t)}revert(t,e){const r=y(this),i=(0,l.M9)(e),s=(0,d.vw)(this);let o;o="string"==typeof t?"*"===t?r.keys(i):[t]:t,o.forEach((t=>{s.invalidate(t),r.revert(t,i),s.commit(t)}))}};return e=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function y(t){return(0,d.vw)(t).store}let g=class extends(c(s.Z)){};g=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],g);var f=r(76169);const v=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return m(this).delete(t,(0,l.M9)(e))}write(t={},e){return(0,f.c)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,d.vw)(this).setAtOrigin(t,e,(0,l.M9)(r))}removeOrigin(t){const e=m(this),r=(0,l.M9)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.s3.USER)}updateOrigin(t,e){const r=m(this),i=(0,l.M9)(e),s=this.get(t);for(let e=i+1;e<l.kk;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function m(t){return(0,d.vw)(t).store}const b=t=>{let e=class extends(v(c(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],e),e};let _=class extends(b(s.Z)){};_=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},87085:(t,e,r)=>{r.d(e,{Z:()=>b});var i=r(43697),s=(r(66577),r(3172)),o=r(20102),n=r(32448),a=r(10699),l=r(83379),p=r(92604),u=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(52011)),y=r(68773),g=r(6570),f=r(82971);let v=0,m=class extends(n.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(e)}catch(t){const r=e&&e.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||y.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,u.D_)(t)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"baseLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const t=this.url;return t?(0,d.mN)(t):null}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,s.default)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],m.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:g.Z})],m.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],m.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String,clonable:!1})],m.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],m.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)({clonable:!1})],m.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],m.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],m.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],m.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],m.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],m.prototype,"title",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],m.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"visible",void 0),m=(0,i._)([(0,c.j)("esri.layers.Layer")],m);const b=m},44166:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var i=r(43697),s=r(20102),o=r(16453),n=r(1654),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),p=r(87085),u=r(16859);let d=class extends((0,u.I)((0,o.R)(p.Z))){constructor(t){super(t),this.resourceInfo=null,this.type="unknown"}initialize(){this.addResolvingPromise(new Promise(((t,e)=>{(0,n.Os)((()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unknown layer type";t&&(r+=" "+t),e(new s.Z("layer:unknown-layer-type",r,{layerType:t}))}))})))}read(t,e){super.read({resourceInfo:t},e)}write(){return null}};(0,i._)([(0,a.Cb)({readOnly:!0})],d.prototype,"resourceInfo",void 0),(0,i._)([(0,a.Cb)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i._)([(0,a.Cb)({json:{read:!1},readOnly:!0,value:"unknown"})],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.UnknownLayer")],d);const h=d},16859:(t,e,r)=>{r.d(e,{I:()=>b});var i=r(43697),s=r(40330),o=r(3172),n=r(66643),a=r(20102),l=r(92604),p=r(70586),u=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),g=r(30556),f=r(65587),v=r(15235),m=r(86082);const b=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem?.destroy(),this.portalItem=null}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(e),await i.load({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,u.D_)(t)||l.Z.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,u.r9)(t),!0))))}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=_.credential===e?_.user:await this._fetchEditingUser(t);return _.credential=e,_.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id.findServerInfo(this.url);if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=f.Z.getDefault();if(a&&a.loaded&&(0,d.Fv)(a.restUrl)===(0,d.Fv)(i))return a.user;const l=`${i}/community/self`,u=(0,p.pC)(t)?t.signal:null,h=await(0,n.q6)((0,o.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?m.default.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.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(t,{...e,layer:this})}};return(0,i._)([(0,h.Cb)({type:v.default})],e.prototype,"portalItem",null),(0,i._)([(0,c.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,i._)([(0,h.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),e=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],e),e},_={credential:null,user:null}}}]);
|